recce-nightly 1.2.0.20250506__py3-none-any.whl → 1.26.0.20251124__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/__init__.py +27 -22
- recce/adapter/base.py +11 -14
- recce/adapter/dbt_adapter/__init__.py +810 -480
- recce/adapter/dbt_adapter/dbt_version.py +3 -0
- recce/adapter/sqlmesh_adapter.py +24 -35
- recce/apis/check_api.py +39 -28
- recce/apis/check_func.py +33 -27
- recce/apis/run_api.py +25 -19
- recce/apis/run_func.py +29 -23
- recce/artifact.py +119 -51
- recce/cli.py +1299 -323
- recce/config.py +42 -33
- recce/connect_to_cloud.py +138 -0
- recce/core.py +55 -47
- recce/data/404.html +1 -1
- recce/data/__next.__PAGE__.txt +10 -0
- recce/data/__next._full.txt +23 -0
- recce/data/__next._head.txt +8 -0
- recce/data/__next._index.txt +8 -0
- recce/data/__next._tree.txt +5 -0
- recce/data/_next/static/52aV_JrNUZU6dMFgvTQEO/_buildManifest.js +11 -0
- recce/data/_next/static/52aV_JrNUZU6dMFgvTQEO/_clientMiddlewareManifest.json +1 -0
- recce/data/_next/static/chunks/02b996c7f6a29a06.js +4 -0
- recce/data/_next/static/chunks/19c10d219a6a21ff.js +1 -0
- recce/data/_next/static/chunks/2df9ec28a061971d.js +11 -0
- recce/data/_next/static/chunks/3098c987393bda15.js +1 -0
- recce/data/_next/static/chunks/393dc43e483f717a.css +2 -0
- recce/data/_next/static/chunks/399e8d91a7e45073.js +2 -0
- recce/data/_next/static/chunks/4d0186f631230245.js +1 -0
- recce/data/_next/static/chunks/5794ba9e10a9c060.js +11 -0
- recce/data/_next/static/chunks/715761c929a3f28b.js +110 -0
- recce/data/_next/static/chunks/71f88fcc615bf282.js +1 -0
- recce/data/_next/static/chunks/80d2a95eaf1201ea.js +1 -0
- recce/data/_next/static/chunks/9979c6109bbbee35.js +1 -0
- recce/data/_next/static/chunks/99d638224186c118.js +1 -0
- recce/data/_next/static/chunks/d003eb36240e92f3.js +1 -0
- recce/data/_next/static/chunks/d3167cdfec4fc351.js +1 -0
- recce/data/_next/static/chunks/e124bccf574a3361.css +1 -0
- recce/data/_next/static/chunks/f40141db1bdb46f0.css +6 -0
- recce/data/_next/static/chunks/fcc53a88741a52f9.js +1 -0
- recce/data/_next/static/chunks/turbopack-b1920d28cfb1f28d.js +3 -0
- recce/data/_next/static/media/favicon.a8d38d84.ico +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.d80d830d.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.f9d58125.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.076c2a93.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.a4fa76b5.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.cde454cc.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.d5761935.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.40ec0659.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.b671449b.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.9f7b8541.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.f9eb854e.woff2 +0 -0
- recce/data/_next/static/media/reload-image.7aa931c7.svg +4 -0
- recce/data/_not-found/__next._full.txt +17 -0
- recce/data/_not-found/__next._head.txt +8 -0
- recce/data/_not-found/__next._index.txt +8 -0
- recce/data/_not-found/__next._not-found.__PAGE__.txt +5 -0
- recce/data/_not-found/__next._not-found.txt +4 -0
- recce/data/_not-found/__next._tree.txt +3 -0
- recce/data/_not-found.html +1 -0
- recce/data/_not-found.txt +17 -0
- recce/data/auth_callback.html +68 -0
- recce/data/imgs/reload-image.svg +4 -0
- recce/data/index.html +1 -27
- recce/data/index.txt +23 -7
- recce/diff.py +6 -12
- recce/event/__init__.py +86 -74
- recce/event/collector.py +33 -22
- recce/event/track.py +49 -27
- recce/exceptions.py +1 -1
- recce/git.py +7 -7
- recce/github.py +57 -53
- recce/mcp_server.py +716 -0
- recce/models/__init__.py +4 -1
- recce/models/check.py +6 -7
- recce/models/run.py +1 -0
- recce/models/types.py +131 -28
- recce/pull_request.py +27 -25
- recce/run.py +165 -121
- recce/server.py +303 -111
- recce/state/__init__.py +31 -0
- recce/state/cloud.py +632 -0
- recce/state/const.py +26 -0
- recce/state/local.py +56 -0
- recce/state/state.py +119 -0
- recce/state/state_loader.py +174 -0
- recce/summary.py +188 -143
- recce/tasks/__init__.py +19 -3
- recce/tasks/core.py +11 -13
- recce/tasks/dataframe.py +82 -18
- recce/tasks/histogram.py +69 -34
- recce/tasks/lineage.py +2 -2
- recce/tasks/profile.py +152 -86
- recce/tasks/query.py +139 -87
- recce/tasks/rowcount.py +37 -31
- recce/tasks/schema.py +18 -15
- recce/tasks/top_k.py +35 -35
- recce/tasks/valuediff.py +216 -152
- recce/util/__init__.py +3 -0
- recce/util/api_token.py +80 -0
- recce/util/breaking.py +87 -85
- recce/util/cll.py +274 -219
- recce/util/io.py +22 -17
- recce/util/lineage.py +65 -16
- recce/util/logger.py +1 -1
- recce/util/onboarding_state.py +45 -0
- recce/util/perf_tracking.py +85 -0
- recce/util/recce_cloud.py +322 -72
- recce/util/singleton.py +4 -4
- recce/yaml/__init__.py +7 -10
- recce_cloud/__init__.py +24 -0
- recce_cloud/api/__init__.py +17 -0
- recce_cloud/api/base.py +111 -0
- recce_cloud/api/client.py +150 -0
- recce_cloud/api/exceptions.py +26 -0
- recce_cloud/api/factory.py +63 -0
- recce_cloud/api/github.py +76 -0
- recce_cloud/api/gitlab.py +82 -0
- recce_cloud/artifact.py +57 -0
- recce_cloud/ci_providers/__init__.py +9 -0
- recce_cloud/ci_providers/base.py +82 -0
- recce_cloud/ci_providers/detector.py +147 -0
- recce_cloud/ci_providers/github_actions.py +136 -0
- recce_cloud/ci_providers/gitlab_ci.py +130 -0
- recce_cloud/cli.py +245 -0
- recce_cloud/upload.py +214 -0
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/METADATA +68 -37
- recce_nightly-1.26.0.20251124.dist-info/RECORD +180 -0
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/WHEEL +1 -1
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/top_level.txt +1 -0
- tests/adapter/dbt_adapter/conftest.py +9 -5
- tests/adapter/dbt_adapter/dbt_test_helper.py +37 -22
- tests/adapter/dbt_adapter/test_dbt_adapter.py +0 -15
- tests/adapter/dbt_adapter/test_dbt_cll.py +656 -41
- tests/adapter/dbt_adapter/test_selector.py +22 -21
- tests/recce_cloud/__init__.py +0 -0
- tests/recce_cloud/test_ci_providers.py +351 -0
- tests/recce_cloud/test_cli.py +372 -0
- tests/recce_cloud/test_client.py +273 -0
- tests/recce_cloud/test_platform_clients.py +333 -0
- tests/tasks/conftest.py +1 -1
- tests/tasks/test_histogram.py +58 -66
- tests/tasks/test_lineage.py +36 -23
- tests/tasks/test_preset_checks.py +45 -31
- tests/tasks/test_profile.py +339 -15
- tests/tasks/test_query.py +46 -46
- tests/tasks/test_row_count.py +65 -46
- tests/tasks/test_schema.py +65 -42
- tests/tasks/test_top_k.py +22 -18
- tests/tasks/test_valuediff.py +43 -32
- tests/test_cli.py +174 -60
- tests/test_cli_mcp_optional.py +45 -0
- tests/test_cloud_listing_cli.py +324 -0
- tests/test_config.py +7 -9
- tests/test_connect_to_cloud.py +82 -0
- tests/test_core.py +151 -4
- tests/test_dbt.py +7 -7
- tests/test_mcp_server.py +332 -0
- tests/test_pull_request.py +1 -1
- tests/test_server.py +25 -19
- tests/test_summary.py +29 -17
- recce/data/_next/static/Kcbs3GEIyH2LxgLYat0es/_buildManifest.js +0 -1
- recce/data/_next/static/chunks/1f229bf6-d9fe92e56db8d93b.js +0 -1
- recce/data/_next/static/chunks/29e3cc0d-8c150e37dff9631b.js +0 -1
- recce/data/_next/static/chunks/368-7587b306577df275.js +0 -65
- recce/data/_next/static/chunks/36e1c10d-bb0210cbd6573a8d.js +0 -1
- recce/data/_next/static/chunks/3998a672-eaad84bdd88cc73e.js +0 -1
- recce/data/_next/static/chunks/3a92ee20-3b5d922d4157af5e.js +0 -1
- recce/data/_next/static/chunks/450c323b-1bb5db526e54435a.js +0 -1
- recce/data/_next/static/chunks/47d8844f-79a1b53c66a7d7ec.js +0 -1
- recce/data/_next/static/chunks/6dc81886-c94b9b91bc2c3caf.js +0 -1
- recce/data/_next/static/chunks/6ef81909-694dc38134099299.js +0 -1
- recce/data/_next/static/chunks/700-3b65fc3666820d00.js +0 -2
- recce/data/_next/static/chunks/7a8a3e83-d7fa409d97b38b2b.js +0 -1
- recce/data/_next/static/chunks/7f27ae6c-413f6b869a04183a.js +0 -1
- recce/data/_next/static/chunks/8d700b6a-f0b1f6b9e0d97ce2.js +0 -1
- recce/data/_next/static/chunks/9746af58-d74bef4d03eea6ab.js +0 -1
- recce/data/_next/static/chunks/a30376cd-7d806e1602f2dc3a.js +0 -1
- recce/data/_next/static/chunks/app/_not-found/page-8a886fa0855c3105.js +0 -1
- recce/data/_next/static/chunks/app/layout-9102e22cb73f74d6.js +0 -1
- recce/data/_next/static/chunks/app/page-cee661090afbd6aa.js +0 -1
- recce/data/_next/static/chunks/b63b1b3f-7395c74e11a14e95.js +0 -1
- recce/data/_next/static/chunks/c132bf7d-8102037f9ccf372a.js +0 -1
- recce/data/_next/static/chunks/c1ceaa8b-a1e442154d23515e.js +0 -1
- recce/data/_next/static/chunks/cd9f8d63-cf0d5a7b0f7a92e8.js +0 -54
- recce/data/_next/static/chunks/ce84277d-f42c2c58049cea2d.js +0 -1
- recce/data/_next/static/chunks/e24bf851-0f8cbc99656833e7.js +0 -1
- recce/data/_next/static/chunks/fee69bc6-f17d36c080742e74.js +0 -1
- recce/data/_next/static/chunks/framework-ded83d71b51ce901.js +0 -1
- recce/data/_next/static/chunks/main-a0859f1f36d0aa6c.js +0 -1
- recce/data/_next/static/chunks/main-app-0225a2255968e566.js +0 -1
- recce/data/_next/static/chunks/pages/_app-d5672bf3d8b6371b.js +0 -1
- recce/data/_next/static/chunks/pages/_error-ed75be3f25588548.js +0 -1
- recce/data/_next/static/chunks/webpack-567d72f0bc0820d5.js +0 -1
- recce/data/_next/static/css/c9ecb46a4b21c126.css +0 -14
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.22628180.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.31d693bb.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.7e2c1e62.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.94a63aea.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.6f8fa298.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.97e20d5e.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.013b84f9.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.aff52ab0.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.5f21869b.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.c0035377.woff2 +0 -0
- recce/state.py +0 -753
- recce_nightly-1.2.0.20250506.dist-info/RECORD +0 -142
- tests/test_state.py +0 -123
- /recce/data/_next/static/{Kcbs3GEIyH2LxgLYat0es → 52aV_JrNUZU6dMFgvTQEO}/_ssgManifest.js +0 -0
- /recce/data/_next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/entry_points.txt +0 -0
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[368],{31886:function(e,t,n){"use strict";n.d(t,{IH:function(){return ru},S1:function(){return rc},j:function(){return rd}});var r,i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E,_,C=n(99094),O=n(95379),T=n(23104),I=n(90035),A=function(){var e,t=(0,I.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""}},R=n(61447),M=n(494),j=n(40068),N=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},[])},D=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=M.q.Unknown),{event:e,code:t,message:n}},L=n(15173),z=(0,O.ev)([],(0,O.CR)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),F=function(e){var t,n=(0,I.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,F);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=15&r[6]|64,r[8]=63&r[8]|128,(0,O.ev)([],(0,O.CR)(r.entries()),!1).map(function(e){var t=(0,O.CR)(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?"-".concat(z[r]):z[r]}).join("")};function B(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var $=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,O.mG)(this,void 0,void 0,function(){var n,r=this;return(0,O.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(j.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=F()),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,O.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,O.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,N(t,this.config.flushQueueSize).reduce(function(t,n){return(0,O.mG)(r,void 0,void 0,function(){return(0,O.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,O.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,O.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,O._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 L.Dg,s.label=1;case 1:return s.trys.push([1,3,,4]),r=(0,L.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(B(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:M.q.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case M.q.Success:this.handleSuccessResponse(e,t);break;case M.q.Invalid:this.handleInvalidResponse(e,t);break;case M.q.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case M.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,O.ev)((0,O.ev)((0,O.ev)((0,O.ev)([],(0,O.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,O.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,O.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,O.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(B(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(B(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(B(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(D(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}(),U=function(){function e(){this.name="identity",this.type="before",this.identityStore=(0,R.bM)().identityStore}return e.prototype.execute=function(e){return(0,O.mG)(this,void 0,void 0,function(){var t;return(0,O.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return e.instanceName&&(this.identityStore=(0,R.bM)(e.instanceName).identityStore),[2]})})},e}(),V=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!q(t,n))return!1}return!0},q=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,O.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&&V(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 V(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},W=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,O.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(m.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(m.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(m.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(m.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(m.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(m.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(m.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(m.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(m.UNSET,e,j.q$),this},e.prototype.clearAll=function(){return this._properties={},this._properties[m.CLEAR_ALL]=j.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[m.CLEAR_ALL]||this._propertySet.has(t))&&(e===m.ADD?"number"==typeof n:e===m.UNSET||e===m.REMOVE||q(t,n))},e}();(r=m||(m={})).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 H=[m.CLEAR_ALL,m.UNSET,m.SET,m.SET_ONCE,m.ADD,m.APPEND,m.PREPEND,m.PREINSERT,m.POSTINSERT,m.REMOVE],G=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 V(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,O.pi)({},this.properties):{};return e[g.REVENUE_PRODUCT_ID]=this.productId,e[g.REVENUE_QUANTITY]=this.quantity,e[g.REVENUE_PRICE]=this.price,e[g.REVENUE_TYPE]=this.revenueType,e[g.REVENUE_CURRENCY]=this.currency,e[g.REVENUE]=this.revenue,e[g.RECEIPT]=this.receipt,e[g.RECEIPT_SIG]=this.receiptSig,e},e}();(i=g||(g={})).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 Z=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};(o=v||(v={})).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=y||(y={})).IDENTIFY="$identify",s.GROUP_IDENTIFY="$groupidentify",s.REVENUE="revenue_amount";var K=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,O.mG)(this,void 0,void 0,function(){return(0,O.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=F(),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,O.mG)(this,void 0,void 0,function(){var r,i;return(0,O.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,O.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,l,u,c,d,f,h,p;return(0,O.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,O.CR)(e,1)[0],n=(0,O.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,O.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,O.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,O.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,O.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,O.pi)({},t);return e.execute(n).catch(function(e){return D(n,0,String(e))})})).then(function(e){var r=(0,O.CR)(e,1)[0]||D(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,O.mG)(this,void 0,void 0,function(){var e,t=this;return(0,O.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}(),Y=function(e,t){return(0,O.pi)((0,O.pi)({},t),{event_type:y.IDENTIFY,user_properties:e.getUserProperties()})},J=function(e,t,n,r){var i;return(0,O.pi)((0,O.pi)({},r),{event_type:y.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},X=function(e,t,n){var r,i=new W;return i.set(e,t),(0,O.pi)((0,O.pi)({},n),{event_type:y.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},Q=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 K(this),this.name=e}return e.prototype._init=function(e){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.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,O.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s;return(0,O.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,O.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,O.pi)((0,O.pi)((0,O.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return(0,T.S)(this.dispatch(r))},e.prototype.identify=function(e,t){var n=Y(e,t);return(0,T.S)(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=J(e,t,n,r);return(0,T.S)(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=X(e,t,n);return(0,T.S)(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,O.pi)((0,O.pi)({},t),{event_type:y.REVENUE,event_properties:e.getEventProperties()});return(0,T.S)(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),(0,T.S)())},e.prototype._addPlugin=function(e){return(0,T.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,T.S)())},e.prototype._removePlugin=function(e){return(0,T.S)(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(D(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,O.mG)(this,void 0,void 0,function(){var t=this;return(0,O.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(v).includes(t)||(n[t]=e[t])}),H.forEach(function(n){if(Object.keys(e).includes(n)){var r=e[n];switch(n){case v.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case v.UNSET:Object.keys(r).forEach(function(e){delete t[e]});break;case v.SET:Object.assign(t,r)}}}),Object.assign(t,n),t},e.prototype.process=function(e){return(0,O.mG)(this,void 0,void 0,function(){var t,n,r;return(0,O.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,D(e,0,"Event skipped due to optOut config")];return e.event_type===y.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=D(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,T.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}(),ee=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},et=function(e){return ee(e,"attribution")},en=function(e){return ee(e,"pageViews")},er=function(e){return ee(e,"sessions")},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){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return en(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}},ea=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},el=function(e){return e&&void 0!==e._q},eu=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:""},ec="2.16.0",ed=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(ec),"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,O.mG)(this,void 0,void 0,function(){var r,i,o;return(0,O.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,O.pi)((0,O.pi)((0,O.pi)((0,O.pi)((0,O.pi)((0,O.pi)((0,O.pi)((0,O.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:eu()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:F(),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}(),ef=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,O.mG)(this,void 0,void 0,function(){var t;return(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eh=n(28328),ep=n(62923),em=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[j.xp,t,e.substring(0,n)].filter(Boolean).join("_")},eg=function(){function e(e){this.options=(0,O.pi)({},e)}return e.prototype.isEnabled=function(){return(0,O.mG)(this,void 0,void 0,function(){var t,n;return(0,O.Jh)(this,function(r){switch(r.label){case 0:if(!(0,I.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,O.mG)(this,void 0,void 0,function(){var n,r;return(0,O.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=ev(n))&&void 0!==t?t:ey(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,O.mG)(this,void 0,void 0,function(){var r,i;return(0,O.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=(0,I.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,O.mG)(this,void 0,void 0,function(){var r,i,o,s,a,l,u;return(0,O.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,I.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,O.mG)(this,void 0,void 0,function(){return(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return[2]})})},e}(),ev=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},ey=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eb=n(60949),ew=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,O.mG)(this,void 0,void 0,function(){var t,n,r;return(0,O.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,O.mG)(this,void 0,void 0,function(){var t;return(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),ex=function(e){function t(t){var n,r,i,o=this;try{i=null===(n=(0,I.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,O.ZT)(t,e),t.prototype.set=function(t,n){var r;return(0,O.mG)(this,void 0,void 0,function(){var i;return(0,O.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}(ew),eS=function(e){function t(){var t;return e.call(this,null===(t=(0,I.l)())||void 0===t?void 0:t.sessionStorage)||this}return(0,O.ZT)(t,e),t}(ew),ek=n(94060),eE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,O.ZT)(t,e),t.prototype.send=function(e,t){return(0,O.mG)(this,void 0,void 0,function(){var n=this;return(0,O.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}(ek.d),e_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,O.ZT)(t,e),t.prototype.send=function(e,t){return(0,O.mG)(this,void 0,void 0,function(){var n=this;return(0,O.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=(0,I.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}(ek.d),eC=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},eO=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},eT="[Amplitude]",eI="".concat(eT," Form Started"),eA="".concat(eT," Form Submitted"),eP="".concat(eT," File Downloaded"),eR="session_start",eM="session_end",ej="".concat(eT," File Extension"),eN="".concat(eT," File Name"),eD="".concat(eT," Link ID"),eL="".concat(eT," Link Text"),ez="".concat(eT," Link URL"),eF="".concat(eT," Form ID"),eB="".concat(eT," Form Name"),e$="".concat(eT," Form Destination"),eU="cookie",eV=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,A,P,R,M,j){void 0===r&&(r=new ef),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=eU),void 0===g&&(g=new eh.Y),void 0===v&&(v=ep.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 ex({loggerProvider:g})),void 0===T&&(T={ipAddress:!0,language:!0,platform:!0}),void 0===I&&(I="fetch"),void 0===A&&(A=!1),void 0===P&&(P=!0);var N=e.call(this,{apiKey:t,storageProvider:O,transportProvider:eW(I)})||this;return N.apiKey=t,N.appVersion=n,N.cookieOptions=i,N.defaultTracking=o,N.autocapture=s,N.flushIntervalMillis=l,N.flushMaxRetries=u,N.flushQueueSize=c,N.identityStorage=d,N.ingestionMetadata=f,N.instanceName=h,N.loggerProvider=g,N.logLevel=v,N.minIdLength=y,N.offline=b,N.partnerId=x,N.plan=S,N.serverUrl=k,N.serverZone=E,N.sessionTimeout=C,N.storageProvider=O,N.trackingOptions=T,N.transport=I,N.useBatch=A,N.fetchRemoteConfig=P,N.version=ec,N._optOut=!1,N._cookieStorage=r,N.deviceId=a,N.lastEventId=p,N.lastEventTime=m,N.optOut=w,N.sessionId=_,N.pageCounter=M,N.userId=R,N.debugLogsEnabled=j,N.loggerProvider.enable(j?ep.i.Debug:N.logLevel),N}return(0,O.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(em(this.apiKey),e)},t}(L.De),eq=function(e,t){switch(void 0===e&&(e=eU),void 0===t&&(t={}),e){case"localStorage":return new ex;case"sessionStorage":return new eS;case"none":return new ef;default:return new eg((0,O.pi)((0,O.pi)({},t),{expirationDays:t.expiration}))}},eW=function(e){return"xhr"===e?new eE:"beacon"===e?new e_:new eb.V},eH=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},eG=function(){var e,t=eH();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=eZ(n[0]),i=eZ(n[1]);return i&&(e[r]=i),e},{}):{}},eZ=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},eK="dclid",eY="fbclid",eJ="gbraid",eX="gclid",eQ="ko_click_id",e0="li_fat_id",e1="msclkid",e2="rtd_cid",e3="ttclid",e5="twclid",e4="wbraid",e6={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},e9=function(){function e(){}return e.prototype.parse=function(){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return[2,(0,O.pi)((0,O.pi)((0,O.pi)((0,O.pi)({},e6),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=eG();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=eG();return(e={})[eK]=t[eK],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},e}();(a=b||(b={})).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=w||(w={})).REVENUE_PRODUCT_ID="$productId",l.REVENUE_QUANTITY="$quantity",l.REVENUE_PRICE="$price",l.REVENUE_TYPE="$revenueType",l.REVENUE_CURRENCY="$currency",l.REVENUE="$revenue",(u=x||(x={})).IDENTIFY="$identify",u.GROUP_IDENTIFY="$groupidentify",u.REVENUE="revenue_amount";var e8=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},e7=function(e){void 0===e&&(e={});var t,n,r,i=eH(),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,O.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,O.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,te()];case 1:return[2,(n.event_properties=O.pi.apply(void 0,[O.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,O.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,O.Jh)(this,function(s){switch(s.label){case 0:if(n=tn(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,O.mG)(void 0,void 0,void 0,function(){var a,l;return(0,O.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,O.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,O.mG)(void 0,void 0,void 0,function(){var t;return(0,O.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===s&&tt(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,O.pi)((0,O.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,O.pi)((0,O.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",m),n&&(i.history.pushState=n)),[2]})})}}},te=function(){return(0,O.mG)(void 0,void 0,void 0,function(){var e;return(0,O.Jh)(this,function(t){switch(t.label){case 0:return e=e8,[4,new e9().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tt=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[b.SET]||{},r=t[b.UNSET]||{},i=(0,O.ev)((0,O.ev)([],(0,O.CR)(Object.keys(n)),!1),(0,O.CR)(Object.keys(r)),!1);return Object.keys(e6).every(function(e){return i.includes(e)})}return!1},tn=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},tr=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,O.mG)(void 0,void 0,void 0,function(){var i,o;return(0,O.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=to(e);t||r.track(eI,((n={})[eF]=ti(e.id),n[eB]=ti(e.name),n[e$]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=to(e);t||r.track(eI,((n={})[eF]=ti(e.id),n[eB]=ti(e.name),n[e$]=o,n)),r.track(eA,((i={})[eF]=ti(e.id),i[eB]=ti(e.name),i[e$]=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,I.l)())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},ti=function(e){if("string"==typeof e)return e},to=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},ts=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,O.mG)(void 0,void 0,void 0,function(){var i,o;return(0,O.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(eP,((n={})[ej]=s,n[eN]=t.pathname,n[eD]=e.id,n[eL]=e.text,n[ez]=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,I.l)())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},ta=!1,tl=function(e){ta||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."),ta=!0)},tu=function(){var e=(0,I.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,O.mG)(void 0,void 0,void 0,function(){return(0,O.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,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return r(),[2]})})}}};(c=S||(S={})).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=k||(k={})).US="US",d.EU="EU";var tc="Remote config fetch rejected due to timeout after 5 seconds",td="Unexpected error occurred",tf=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,O.mG)(r,void 0,void 0,function(){var r,i,o;return(0,O.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,O.mG)(r,void 0,void 0,function(){var t,n,r;return(0,O.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,O.mG)(r,void 0,void 0,function(){var n,r,i,o,s,a,l,u,c,d,f;return(0,O.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:tc})];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,O.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,O.pi)((0,O.pi)({},s),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:td})];switch(new ek.d().buildStatus(l.status)){case S.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case S.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:tc})];return[2,this.completeRequest({err:null!==(f=u.message)&&void 0!==f?f:td})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,O.mG)(r,void 0,void 0,function(){var n=this;return(0,O.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,O.mG)(r,void 0,void 0,function(){var t;return(0,O.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===k.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===k.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}(),th=function(e){var t=e.localConfig,n=e.configKeys;return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return[2,new tf({localConfig:t,configKeys:n})]})})},tp=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,O.mG)(this,void 0,void 0,function(){var e;return(0,O.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,th({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,O.mG)(this,void 0,void 0,function(){var s,a,l,u,c,d,f,h,p,m,g,v,y;return(0,O.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,O.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,O.pi)({},s.autocapture.elementInteractions),c=null!==(t=(u=l.elementInteractions).pageUrlAllowlist)&&void 0!==t?t:[],d=[];try{for(h=(f=(0,O.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,O.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,O.pi)((0,O.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 L.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}(),tm=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tg="data-amp-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 tA=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,O.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,O.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,O.ev)((0,O.ev)([],(0,O.CR)(i)),(0,O.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}(),tP=tA.EMPTY;function tR(e){return e instanceof tA||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,O.ev)([e,t],(0,O.CR)(n))):setTimeout.apply(void 0,(0,O.ev)([e,t],(0,O.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,O.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}(tA),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,O.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,O.FC)(this,arguments,function(){var t,n,r;return(0,O.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,O.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,O.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,O.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,O.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,O.mG)(this,void 0,void 0,function(){var s;return(0,O.Jh)(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=(0,O.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,O.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,O.ev)([],(0,O.CR)(e))):i(e)})));var i,o=(0,O.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,O.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,O.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?tP:(this.currentObservers=null,i.push(e),new tA(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,O.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:tP},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,O.ev)([],(0,O.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"],nA=["password","hidden"];function nP(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,O.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(tA),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,O.ev)([e,t],(0,O.CR)(n))):setInterval.apply(void 0,(0,O.ev)([e,t],(0,O.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,O.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,O.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=E||(E={})).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?tg:i,s=e.visualTaggingOptions,a=void 0===s?{enabled:!0,messenger:new nC}:s;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tm,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={})[E.ClickObservable]=n,e[E.ChangeObservable]=r,e[E.NavigateObservable]=t,e[E.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,O.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,O.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(!nA.includes(String(e.getAttribute("type")))&&!nI.includes(a))try{for(var g=(0,O.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,O.mG)(void 0,void 0,void 0,function(){var r,i,o,s,f,h,p,m,g,v;return(0,O.Jh)(this,function(y){var b,w,x,S,k,E,_,C,T,I,A,P,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}))}),nP(function(e){var t=(0,O.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===C&&(C=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=C.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=C.now(),n||(n=C.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),A=0,P=I,void 0===A&&(A=0),void 0===R&&(R=nL),M=-1,null!=P&&(nB(P)?R=P:M=P),j=new tX(function(e){var t=nK(A)?+A-R.now():A;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})),nP(n_),nP(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,O.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(nP(n_),nP(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(nP(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}),nP(n_),nP(function(e){return H("click",e.closestTrackedAncestor)})),J=[Z],K&&J.push(K),X=nG.apply(void 0,(0,O.ev)([],(0,O.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,O.pi)((0,O.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tk[t.serverZone]}),{isElementSelectable:ng(e,(0,O.ev)((0,O.ev)([],(0,O.CR)(p),!1),(0,O.CR)(m),!1)),cssSelectorAllowlist:p,actionClickAllowlist:m})))),[2]})})},execute:function(e){return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,O.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,O.Jh)(this,function(i){try{for(t=(e=(0,O.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="dclid",n0="fbclid",n1="gbraid",n2="gclid",n3="ko_click_id",n5="li_fat_id",n4="msclkid",n6="rtd_cid",n9="ttclid",n8="twclid",n7="wbraid",re={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},rt=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},rn=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,s=(0,O._T)(e,["referrer","referring_domain"]),a=t||{},l=(a.referrer,a.referring_domain),u=(0,O._T)(a,["referrer","referring_domain"]);if(rr(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=rt(o||"")!==rt(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},rr=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})},ri=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ro=function(){function e(){}return e.prototype.parse=function(){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return[2,(0,O.pi)((0,O.pi)((0,O.pi)((0,O.pi)({},re),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=A();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=A();return(e={})[nQ]=t[nQ],e[n0]=t[n0],e[n1]=t[n1],e[n2]=t[n2],e[n3]=t[n3],e[n5]=t[n5],e[n4]=t[n4],e[n6]=t[n6],e[n9]=t[n9],e[n8]=t[n8],e[n7]=t[n7],e},e}(),rs=function(){function e(e,t){var n,r,i,o;this.shouldTrackNewCampaign=!1,this.options=(0,O.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:ri(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),[j.xp,i,r.substring(0,o)].filter(Boolean).join("_")),this.currentCampaign=re,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,O.mG)(this,void 0,void 0,function(){var e,t;return(0,O.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=O.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||Z(this.sessionTimeout,this.lastEventTime),!rn(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,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ro().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,Y(Object.entries((0,O.pi)((0,O.pi)({},re),t)).reduce(function(e,t){var r,i=(0,O.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 W)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),ra=(h=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,O.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,T.S)(this._init((0,O.pi)((0,O.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,r,i;return(0,O.mG)(this,void 0,void 0,function(){var o,s,a,l,u,c=this;return(0,O.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,O.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,_,C,T,I,P,R,M,N,D,L,z,B,$,U,V,q,W,H,G,Z,K;return(0,O.Jh)(this,function(Y){var J,X,Q;switch(Y.label){case 0:if(e=h.identityStorage||eU,x={},!(e!==eU))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,O.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o;return(0,O.Jh)(this,function(s){switch(s.label){case 0:return[4,new eg().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 eg({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=O.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=eq(h.identityStorage,t),void 0===(Q=null===(_=null===(E=h.cookieOptions)||void 0===E?void 0:E.upgrade)||void 0===_||_)&&(Q=!0),(0,O.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,s,a,l;return(0,O.Jh)(this,function(u){switch(u.label){case 0:return e="".concat(j.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,O.CR)(t.split("."),6))[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],[2,{deviceId:r,userId:eO(i),sessionId:eC(s),lastEventId:eC(l),lastEventTime:eC(a),optOut:!!o}]}})}))];case 6:return o=Y.sent(),[4,i.get(em(f))];case 7:return s=Y.sent(),a=A(),l=null!==(R=null!==(P=null!==(I=null!==(T=null!==(C=h.deviceId)&&void 0!==C?C:a.ampDeviceId)&&void 0!==T?T:a.deviceId)&&void 0!==I?I:null==s?void 0:s.deviceId)&&void 0!==P?P:o.deviceId)&&void 0!==R?R:F(),u=null!==(M=null==s?void 0:s.lastEventId)&&void 0!==M?M: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!==(z=null==s?void 0:s.sessionId)&&void 0!==z?z: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 eV(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)).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 ef),[2,w]}})}))];case 1:if(o=d.sent(),!t.fetchRemoteConfig)return[3,4];return[4,(m=o,(0,O.mG)(void 0,void 0,void 0,function(){var e;return(0,O.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tp(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),!et(this.config.defaultTracking))return[3,7];return s=et((g=this.config).defaultTracking)&&g.defaultTracking&&"object"==typeof g.defaultTracking&&g.defaultTracking.attribution&&"object"==typeof g.defaultTracking.attribution?(0,O.pi)({},g.defaultTracking.attribution):{},this.webAttribution=new rs(s,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(l=Number.isNaN(Number((a=A()).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,R.bM)(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tu()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new $).promise];case 10:return d.sent(),[4,this.add(new ed).promise];case 11:return d.sent(),[4,this.add(new U).promise];case 12:if(d.sent(),tl(this.config),!ee(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(ts()).promise];case 13:d.sent(),d.label=14;case 14:if(!ee(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tr()).promise];case 15:d.sent(),d.label=16;case 16:if(!en(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(e7(es(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:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21: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,R.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,R.Sb)(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(F()),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,T.S)(Promise.resolve());if(e===this.config.sessionId)return(0,T.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,er(this.config.defaultTracking)&&(r&&i&&n.push(this.track(eM,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 er(this.config.defaultTracking)&&n.push(this.track(eR,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,T.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=eW(e)},t.prototype.identify=function(t,n){if(el(t)){var r=t._q;t._q=[],t=ea(new W,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(el(r)){var o=r._q;r._q=[],r=ea(new W,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(el(t)){var r=t._q;t._q=[],t=ea(new G,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,O.mG)(this,void 0,void 0,function(){var n,r,i;return(0,O.Jh)(this,function(o){return n=Date.now(),r=Z(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===eR||t.event_type===eM||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,O.pi)((0,O.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}(Q)),{init:(0,C.w_)(h.init.bind(h),"init",(0,C.yh)(h),(0,C.zn)(h,["config"])),add:(0,C.w_)(h.add.bind(h),"add",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.plugins"])),remove:(0,C.w_)(h.remove.bind(h),"remove",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.plugins"])),track:(0,C.w_)(h.track.bind(h),"track",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.queue.length"])),logEvent:(0,C.w_)(h.logEvent.bind(h),"logEvent",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.queue.length"])),identify:(0,C.w_)(h.identify.bind(h),"identify",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.queue.length"])),groupIdentify:(0,C.w_)(h.groupIdentify.bind(h),"groupIdentify",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.queue.length"])),setGroup:(0,C.w_)(h.setGroup.bind(h),"setGroup",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.queue.length"])),revenue:(0,C.w_)(h.revenue.bind(h),"revenue",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.queue.length"])),flush:(0,C.w_)(h.flush.bind(h),"flush",(0,C.yh)(h),(0,C.zn)(h,["config.apiKey","timeline.queue.length"])),getUserId:(0,C.w_)(h.getUserId.bind(h),"getUserId",(0,C.yh)(h),(0,C.zn)(h,["config","config.userId"])),setUserId:(0,C.w_)(h.setUserId.bind(h),"setUserId",(0,C.yh)(h),(0,C.zn)(h,["config","config.userId"])),getDeviceId:(0,C.w_)(h.getDeviceId.bind(h),"getDeviceId",(0,C.yh)(h),(0,C.zn)(h,["config","config.deviceId"])),setDeviceId:(0,C.w_)(h.setDeviceId.bind(h),"setDeviceId",(0,C.yh)(h),(0,C.zn)(h,["config","config.deviceId"])),reset:(0,C.w_)(h.reset.bind(h),"reset",(0,C.yh)(h),(0,C.zn)(h,["config","config.userId","config.deviceId"])),getSessionId:(0,C.w_)(h.getSessionId.bind(h),"getSessionId",(0,C.yh)(h),(0,C.zn)(h,["config"])),setSessionId:(0,C.w_)(h.setSessionId.bind(h),"setSessionId",(0,C.yh)(h),(0,C.zn)(h,["config"])),extendSession:(0,C.w_)(h.extendSession.bind(h),"extendSession",(0,C.yh)(h),(0,C.zn)(h,["config"])),setOptOut:(0,C.w_)(h.setOptOut.bind(h),"setOptOut",(0,C.yh)(h),(0,C.zn)(h,["config"])),setTransport:(0,C.w_)(h.setTransport.bind(h),"setTransport",(0,C.yh)(h),(0,C.zn)(h,["config"]))}),rl=n(78342),ru=ra.add,rc=(ra.extendSession,ra.flush,ra.getDeviceId,ra.getSessionId,ra.getUserId,ra.groupIdentify,ra.identify,ra.init),rd=(ra.logEvent,ra.remove,ra.reset,ra.revenue,ra.setDeviceId,ra.setGroup,ra.setOptOut,ra.setSessionId,ra.setTransport,ra.setUserId,ra.track);(p=_||(_={})).IdentifyOperation=v,p.SpecialEventType=y,p.RevenueProperty=g,p.LogLevel=ep.i,p.ServerZone=rl.J,p.OfflineDisabled=null,p.DEFAULT_CSS_SELECTOR_ALLOWLIST=tm,p.DEFAULT_DATA_ATTRIBUTE_PREFIX=tg,p.DEFAULT_ACTION_CLICK_ALLOWLIST=tv},61447: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()}},15173:function(e,t,n){"use strict";n.d(t,{De:function(){return a},Dg:function(){return u},RG:function(){return l}});var r=n(40068),i=n(28328),o=n(62923),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}()},90035: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}},28328:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(62923),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}()},94060:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(494),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}()},60949: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(94060).d)},40068: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"},62923: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"},78342:function(e,t,n){"use strict";var r,i;n.d(t,{J:function(){return r}}),(i=r||(r={})).US="US",i.EU="EU",i.STAGING="STAGING"},494: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"},99094: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(62923),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}}},23104:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var r=function(e){return{promise:e||Promise.resolve()}}},3938: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=n(95379),T=n(99094),I=n(62923),A=n(28328),P=n(60949),R=n(15173),M=n(78342),j=n(40068),N="[Amplitude]",D="".concat(N," Session Replay ID"),L=M.J.US,z="".concat(N," Session Replay Debug"),F="amp-mask";j.xp,(a=w||(w={})).GET_SR_PROPS="get-sr-props",a.DEBUG_INFO="debug-info",a.FETCH_REQUEST="fetch-request";var B=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}(),$=function(){return{flushMaxRetries:2,logLevel:I.i.Warn,loggerProvider:new A.Y,transportProvider:new P.V}},U=function(e){function t(t,n){var r,i=this,o=$();return(i=e.call(this,(0,O.pi)((0,O.pi)({transportProvider:o.transportProvider,loggerProvider:new B(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||L,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,O.ZT)(t,e),t}(R.De),V=n(90035),q=n(23104),W=n(61447),H=n(57508);(l=x||(x={})).Unknown="unknown",l.Skipped="skipped",l.Success="success",l.RateLimit="rate_limit",l.PayloadTooLarge="payload_too_large",l.Invalid="invalid",l.Failed="failed",l.Timeout="Timeout",l.SystemError="SystemError";var G=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,S,k,E=e.code||0,_=this.buildStatus(E);switch(_){case x.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 x.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 x.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(m=e.error)&&void 0!==m?m:""}};case x.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!==(S=e.exceeded_daily_quota_users)&&void 0!==S?S:{},throttledEvents:null!==(k=e.throttled_events)&&void 0!==k?k:[]}};case x.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?x.Success:429===e?x.RateLimit:413===e?x.PayloadTooLarge:408===e?x.Timeout:e>=400&&e<500?x.Invalid:e>=500?x.Failed:x.Unknown},e}();(u=S||(S={})).US="US",u.EU="EU",u.STAGING="STAGING";var Z="Remote config fetch rejected due to timeout after 5 seconds",K="Unexpected error occurred",Y=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,O.mG)(r,void 0,void 0,function(){var r,i,o;return(0,O.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,O.mG)(r,void 0,void 0,function(){var t,n,r;return(0,O.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,O.mG)(r,void 0,void 0,function(){var n,r,i,o,s,a,l,u,c,d,f;return(0,O.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:Z})];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,O.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,O.pi)((0,O.pi)({},s),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:K})];switch(new G().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:Z})];return[2,this.completeRequest({err:null!==(f=u.message)&&void 0!==f?f:K})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,O.mG)(r,void 0,void 0,function(){var n=this;return(0,O.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,O.mG)(r,void 0,void 0,function(){var t;return(0,O.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===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}(),J=function(e){var t=e.localConfig,n=e.configKeys;return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return[2,new Y({localConfig:t,configKeys:n})]})})},X=n(77918),Q="medium",ee=function(e,t,n){switch(t){case"light":if("input"!==e)return!0;var r=n?(0,X.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 ee(e,Q,n)}},et=function(e,t,n){var r,i,o;if(void 0===t&&(t={defaultMaskLevel:Q}),n){if(n.closest("."+F)||(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 ee(e,null!==(o=t.defaultMaskLevel)&&void 0!==o?o:Q,n)},en=function(e,t){return function(n,r){return et(e,t,r)?n.replace(/[^\s]/g,"*"):n}},er=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},ei=function(){var e=(0,V.l)();return(null==e?void 0:e.location)?e.location.href:""},eo=function(e,t){return t||(e===M.J.STAGING?"https://api-sr.stag2.amplitude.com/sessions/v2/track":e===M.J.EU?"https://api-sr.eu.amplitude.com/sessions/v2/track":"https://api-sr.amplitude.com/sessions/v2/track")},es=function(){return(0,O.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,O.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=(0,V.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:""}]}})})},ea=function(e){var t=(0,O.pi)({},e),n=t.apiKey;return t.apiKey="****".concat(n.substring(n.length-4)),t},el=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},eu=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,n,r;return(0,O.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,O.Jh)(this,function(E){switch(E.label){case 0:(i=(0,O.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,O.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,O.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,O.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,O.pi)((0,O.pi)({},m(h)),m(f));try{for(y=(v=(0,O.XA)(Object.entries(g))).next();!y.done;y=v.next())w=(b=(0,O.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=el(p,this.localConfig.loggerProvider)}return this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:ea(i)},null,2)),[2,i]}})})},e}(),ec=n(94060),ed=n(494),ef="Failed to store session replay events in IndexedDB",eh="1.22.0",ep=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,O.pi)((0,O.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,O.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,O.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,O.mG)(this,void 0,void 0,function(){var i,o,s,a,l,u,c,d,f,h,p,m;return(0,O.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=ei(),a=eh,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(eo(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 ec.d().buildStatus(e)){case ed.q.Success:this.handleSuccessResponse(t);break;case ed.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,O.pi)((0,O.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 em=(e,t)=>t.some(t=>e instanceof t),eg=new WeakMap,ev=new WeakMap,ey=new WeakMap,eb={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return eg.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ew(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function ew(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(ew(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return ey.set(t,e),t}(e);if(ev.has(e))return ev.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(ex(this),e),ew(this.request)}:function(...e){return ew(t.apply(ex(this),e))}:(t instanceof IDBTransaction&&function(e){if(eg.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)});eg.set(e,t)}(t),em(t,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,eb):t;return n!==e&&(ev.set(e,n),ey.set(n,e)),n}let ex=e=>ey.get(e),eS=["get","getKey","getAll","getAllKeys","count"],ek=["put","add","delete","clear"],eE=new Map;function e_(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(eE.get(t))return eE.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=ek.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||eS.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 eE.set(t,o),o}eb={...o=eb,get:(e,t,n)=>e_(e,t)||o.get(e,t,n),has:(e,t)=>!!e_(e,t)||o.has(e,t)};let eC=["continue","continuePrimaryKey","advance"],eO={},eT=new WeakMap,eI=new WeakMap,eA={get(e,t){if(!eC.includes(t))return e[t];let n=eO[t];return n||(n=eO[t]=function(...e){eT.set(this,eI.get(this)[t](...e))}),n}};async function*eP(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let n=new Proxy(t,eA);for(eI.set(n,t),ey.set(n,ex(t));t;)yield n,t=await (eT.get(n)||t.continue()),eT.delete(n)}function eR(e,t){return t===Symbol.asyncIterator&&em(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&em(e,[IDBIndex,IDBObjectStore])}eb={...s=eb,get:(e,t,n)=>eR(e,t)?eP:s.get(e,t,n),has:(e,t)=>eR(e,t)||s.has(e,t)};var eM=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}();(c=k||(k={})).RECORDING="recording",c.SENT="sent";var ej="sessionCurrentSequence",eN="sequencesToSend",eD=function(){var e=(0,V.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)}})},eL=function(e){return(0,O.mG)(void 0,void 0,void 0,function(){return(0,O.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]}})})},ez=function(e){var t,n;return e.objectStoreNames.contains(ej)||(n=e.createObjectStore(ej,{keyPath:"sessionId"})),e.objectStoreNames.contains(eN)||(t=e.createObjectStore(eN,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:n}},eF=function(e){function t(t){var n=e.call(this,t)||this;return n.getSequencesToSend=function(){return(0,O.mG)(n,void 0,void 0,function(){var e,t,n,r,i,o;return(0,O.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(ef,": ").concat(o)),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(e){return(0,O.mG)(n,void 0,void 0,function(){var t,n,r;return(0,O.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(ej,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(eN,{sessionId:e,events:t.events})];case 2:return n=i.sent(),[4,this.db.put(ej,{sessionId:e,events:[]})];case 3:return i.sent(),[2,(0,O.pi)((0,O.pi)({},t),{sessionId:e,sequenceId:n})];case 4:return r=i.sent(),this.loggerProvider.warn("".concat(ef,": ").concat(r)),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(e,t){return(0,O.mG)(n,void 0,void 0,function(){var n,r,i,o,s,a;return(0,O.Jh)(this,function(l){switch(l.label){case 0:return l.trys.push([0,10,,11]),[4,(n=this.db.transaction(ej,"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(ef,": ").concat(a)),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(e,t){return(0,O.mG)(n,void 0,void 0,function(){var n;return(0,O.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.db.put(eN,{sessionId:e,events:t})];case 1:return[2,r.sent()];case 2:return n=r.sent(),this.loggerProvider.warn("".concat(ef,": ").concat(n)),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(e,t){return(0,O.mG)(n,void 0,void 0,function(){var e;return(0,O.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(eN,t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this.loggerProvider.warn("".concat(ef,": ").concat(e)),[3,4];case 4:return[2]}})})},n.transitionFromKeyValStore=function(e){return(0,O.mG)(n,void 0,void 0,function(){var t,n,r,i,o,s,a,l=this;return(0,O.Jh)(this,function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),[4,eD()];case 1:if(!(t=u.sent()))return[2];n=function(e,t){return(0,O.mG)(l,void 0,void 0,function(){var n,r,i=this;return(0,O.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,O.mG)(i,void 0,void 0,function(){return(0,O.Jh)(this,function(n){return[2,this.addEventToCurrentSequence(e,t)]})})});r.concat(l)}else a.status!==k.SENT&&r.push(i.storeSendingEvents(e,a.events))}),[4,eL(r)];case 1:return o.sent(),[2]}})})},r="".concat(j.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,O.mG)(l,void 0,void 0,function(){var i,o,s,a=this;return(0,O.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!==k.SENT&&s.push(a.storeSendingEvents(r,l[t].events))})}}),[4,eL(s)];case 1:l.sent(),l.label=2;case 2:return t(),[2]}})})}})];case 3:return u.sent(),(o=(0,V.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,O.ZT)(t,e),t.new=function(e,n,r){return(0,O.mG)(this,void 0,void 0,function(){var i,o,s,a;return(0,O.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,O.mG)(void 0,void 0,void 0,function(){return(0,O.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=ew(s);return r&&s.addEventListener("upgradeneeded",e=>{r(ew(s.result),e.oldVersion,e.newVersion,ew(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:ez})];case 1:return[2,e.sent()]}})}))];case 1:return o=l.sent(),[4,(s=new t((0,O.pi)((0,O.pi)({},n),{db:o}))).transitionFromKeyValStore(r)];case 2:return l.sent(),[2,s];case 3:return a=l.sent(),n.loggerProvider.warn("".concat(ef,": ").concat(a)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return(0,O.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s;return(0,O.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=O.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}(eM),eB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return(0,O.ZT)(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,n=(0,O.ev)([],(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return(0,O.mG)(this,void 0,void 0,function(){var n;return(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(n){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return(0,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(eM),e$=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,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.Jh)(this,function(n){return[2,e.flush(t)]})})}return(0,O.Jh)(this,function(p){switch(p.label){case 0:if(e=new ep((0,O.pi)((0,O.pi)({},t),{loggerProvider:t.loggerProvider,payloadBatcher:s})),l=function(){return new eB({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:r})},u=function(){return(0,O.mG)(void 0,void 0,void 0,function(){var e;return(0,O.Jh)(this,function(s){switch(s.label){case 0:return[4,eF.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&&es().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,O.mG)(void 0,void 0,void 0,function(){return(0,O.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,O.mG)(void 0,void 0,void 0,function(){var e;return(0,O.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}]}})})},eU=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,O.mG)(this,void 0,void 0,function(){var t;return(0,O.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,O.mG)(this,void 0,void 0,function(){var t;return(0,O.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}(),eV=((d=eV||{})[d.DomContentLoaded=0]="DomContentLoaded",d[d.Load=1]="Load",d[d.FullSnapshot=2]="FullSnapshot",d[d.IncrementalSnapshot=3]="IncrementalSnapshot",d[d.Meta=4]="Meta",d[d.Custom=5]="Custom",d[d.Plugin=6]="Plugin",d),eq=((f=eq||{})[f.Mutation=0]="Mutation",f[f.MouseMove=1]="MouseMove",f[f.MouseInteraction=2]="MouseInteraction",f[f.Scroll=3]="Scroll",f[f.ViewportResize=4]="ViewportResize",f[f.Input=5]="Input",f[f.TouchMove=6]="TouchMove",f[f.MediaInteraction=7]="MediaInteraction",f[f.StyleSheetRule=8]="StyleSheetRule",f[f.CanvasMutation=9]="CanvasMutation",f[f.Font=10]="Font",f[f.Log=11]="Log",f[f.Drag=12]="Drag",f[f.StyleDeclaration=13]="StyleDeclaration",f[f.Selection=14]="Selection",f[f.AdoptedStyleSheet=15]="AdoptedStyleSheet",f[f.CustomElement=16]="CustomElement",f),eW=((h=eW||{})[h.MouseUp=0]="MouseUp",h[h.MouseDown=1]="MouseDown",h[h.Click=2]="Click",h[h.ContextMenu=3]="ContextMenu",h[h.DblClick=4]="DblClick",h[h.Focus=5]="Focus",h[h.Blur=6]="Blur",h[h.TouchStart=7]="TouchStart",h[h.TouchMove_Departed=8]="TouchMove_Departed",h[h.TouchEnd=9]="TouchEnd",h[h.TouchCancel=10]="TouchCancel",h),eH=((p=eH||{})[p.Mouse=0]="Mouse",p[p.Pen=1]="Pen",p[p.Touch=2]="Touch",p),eG=((m=eG||{})[m["2D"]=0]="2D",m[m.WebGL=1]="WebGL",m[m.WebGL2=2]="WebGL2",m),eZ=((g=eZ||{})[g.Play=0]="Play",g[g.Pause=1]="Pause",g[g.Seeked=2]="Seeked",g[g.VolumeChange=3]="VolumeChange",g[g.RateChange=4]="RateChange",g),eK=((v=eK||{}).Start="start",v.Pause="pause",v.Resume="resume",v.Resize="resize",v.Finish="finish",v.FullsnapshotRebuilded="fullsnapshot-rebuilded",v.LoadStylesheetStart="load-stylesheet-start",v.LoadStylesheetEnd="load-stylesheet-end",v.SkipStart="skip-start",v.SkipEnd="skip-end",v.MouseInteraction="mouse-interaction",v.EventCast="event-cast",v.CustomEvent="custom-event",v.Flush="flush",v.StateChange="state-change",v.PlayBack="play-back",v.Destroy="destroy",v),eY=((y=eY||{})[y.Document=0]="Document",y[y.DocumentType=1]="DocumentType",y[y.Element=2]="Element",y[y.Text=3]="Text",y[y.CDATA=4]="CDATA",y[y.Comment=5]="Comment",y);function eJ(e,t,n){for(var r=null,i=[],o=e,s=0;o&&"break"!==function(){var e,a,l,u,c=new Date().getTime()-C.getTime();if(void 0!==E.timeoutMs&&c>E.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=e4((e=o.getAttribute("id"))&&E.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||e4.apply(void 0,(0,O.ev)([],(0,O.CR)(Array.from(o.attributes).filter(function(e){return E.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||e4.apply(void 0,(0,O.ev)([],(0,O.CR)(Array.from(o.classList).filter(E.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||e4((a=o.tagName.toLowerCase(),E.tagName(a)?{name:a,penalty:2}:null))||[e2()],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(e5).map(function(e){return e3(e,f)})));else if("two"==t)d=d.slice(0,1),f&&(d=d.concat(d.filter(e5).map(function(e){return e3(e,f)})));else if("one"==t){var h=(0,O.CR)(d=d.slice(0,1),1)[0];f&&e5(h)&&(d=[e3(h,f)])}else"none"==t&&(d=[e2()],f&&(d=[e3(d[0],f)]));try{for(var p=(l=void 0,(0,O.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>=E.seedMinLength&&(r=eX(i,n)))return"break";o=o.parentElement,s++}(););return(r||(r=eX(i,n)),!r&&n)?n():r}function eX(e,t){var n,r,i=e9(function e(t,n){var r,i,o,s,a;return void 0===n&&(n=[]),(0,O.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,O.XA)(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,O.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>E.threshold)return t?t():null;try{for(var o=(0,O.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(e1(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 eQ(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 e0(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function e1(e){var t=eQ(e);switch(_.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 e2(){return{name:"*",penalty:3}}function e3(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function e5(e){return"html"!==e.name&&!e.name.startsWith("#")}function e4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(e6);return n.length>0?n:null}function e6(e){return null!=e}function e9(e){return(0,O.ev)([],(0,O.CR)(e),!1).sort(function(e,t){return e0(e)-e0(t)})}var e8=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}},e7=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,O.pi)((0,O.pi)({},t),{timestamp:s,count:1}),e},{}))}},te=function(e,t){var n=t.eventsManager,r=t.sessionId,i=t.deviceIdFn;return function(t){if(t.type===eW.Click){var o,s=(0,V.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=H.IM.mirror.getNode(t.id);if(f)try{o=function(e,t){if(C=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};_=(n=(E=(0,O.pi)((0,O.pi)({},r),void 0)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=eJ(e,"all",function(){return eJ(e,"two",function(){return eJ(e,"one",function(){return eJ(e,"none")})})});if(i){var o=e9(function e(t,n,r){var i,o,s;return void 0===r&&(r={counter:0,visited:new Map}),(0,O.Jh)(this,function(a){switch(a.label){case 0:if(!(t.length>2&&t.length>E.optimizedMinLength))return[3,5];i=1,a.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(r.counter>E.maxNumberOfTries||(r.counter+=1,(o=(0,O.ev)([],(0,O.CR)(t),!1)).splice(i,1),s=eQ(o),r.visited.has(s)))return[2];if(!(e1(o)&&(l=o,_.querySelector(eQ(l))===n)))return[3,4];return[4,o];case 2:return a.sent(),r.visited.set(s,!0),[5,(0,O.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]),eQ(i)}throw Error("Selector was not found.")}(f)}catch(t){e.debug("error resolving selector from finder")}var h=H.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})}}}}}},tt=function(){function e(e,t){var n=(0,V.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=eo(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}(),tn=H.P6.getWindowHeight,tr=H.P6.getWindowWidth,ti=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,V.l)();i&&r&&t.transport.send(r,{version:1,events:[{maxScrollX:t._maxScrollX,maxScrollY:t._maxScrollY,maxScrollWidth:t._maxScrollWidth,maxScrollHeight:t._maxScrollHeight,viewportHeight:tn(),viewportWidth:tr(),pageUrl:i.location.href,timestamp:t.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=tr(),this._maxScrollHeight=tn(),this.transport=e}return e.default=function(t,n){return new e(new tt(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=tr();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=tn();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),to=function(e){var t=e.sessionId,n=e.deviceId;this.deviceId=n,this.sessionId=t,t&&n&&(this.sessionReplayId="".concat(n,"/").concat(t))},ts=Uint8Array,ta=Uint16Array,tl=Uint32Array,tu=new ts([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]),tc=new ts([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]),td=new ts([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tf=function(e,t){for(var n=new ta(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new tl(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]},th=tf(tu,2),tp=th[0],tm=th[1];tp[28]=258,tm[258]=28;for(var tg=tf(tc,0),tv=(tg[0],tg[1]),ty=new ta(32768),tb=0;tb<32768;++tb){var tw=(43690&tb)>>>1|(21845&tb)<<1;tw=(61680&(tw=(52428&tw)>>>2|(13107&tw)<<2))>>>4|(3855&tw)<<4,ty[tb]=((65280&tw)>>>8|(255&tw)<<8)>>>1}for(var tx=function(e,t,n){for(var r,i=e.length,o=0,s=new ta(t);o<i;++o)++s[e[o]-1];var a=new ta(t);for(o=0;o<t;++o)a[o]=a[o-1]+s[o-1]<<1;if(n){r=new ta(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[ty[d]>>>l]=u}else for(o=0,r=new ta(i);o<i;++o)r[o]=ty[a[e[o]-1]++]>>>15-e[o];return r},tS=new ts(288),tb=0;tb<144;++tb)tS[tb]=8;for(var tb=144;tb<256;++tb)tS[tb]=9;for(var tb=256;tb<280;++tb)tS[tb]=7;for(var tb=280;tb<288;++tb)tS[tb]=8;for(var tk=new ts(32),tb=0;tb<32;++tb)tk[tb]=5;var tE=tx(tS,9,0),t_=tx(tk,5,0),tC=function(e){return(e/8>>0)+(7&e&&1)},tO=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof ta?ta:e instanceof tl?tl:ts)(n-t);return r.set(e.subarray(t,n)),r},tT=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},tI=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 ts(0),0];if(1==i){var s=new ts(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 ta(f+1),p=tP(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 ts(h),p]},tP=function(e,t,n){return -1==e.s?Math.max(tP(e.l,t,n+1),tP(e.r,t,n+1)):t[e.s]=n},tR=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ta(++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]},tM=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},tj=function(e,t,n){var r=n.length,i=tC(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},tN=function(e,t,n,r,i,o,s,a,l,u,c){tT(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=tR(g),S=x[0],k=x[1],E=tR(b),_=E[0],C=E[1],O=new ta(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),A=I[0],P=I[1],R=19;R>4&&!A[td[R-1]];--R);var M=u+5<<3,j=tM(i,tS)+tM(o,tk)+s,N=tM(i,g)+tM(o,b)+s+14+3*R+tM(O,A)+(2*O[16]+3*O[17]+7*O[18]);if(M<=j&&M<=N)return tj(t,c,e.subarray(l,l+u));if(tT(t,c,1+(N<j)),c+=2,N<j){d=tx(g,v,0),f=g,h=tx(b,w,0),p=b;var D=tx(A,P,0);tT(t,c,k-257),tT(t,c+5,C-1),tT(t,c+10,R-4),c+=14;for(var T=0;T<R;++T)tT(t,c+3*T,A[td[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];tT(t,c,D[B]),c+=A[B],B>15&&(tT(t,c,F[T]>>>5&127),c+=F[T]>>>12)}}else d=tE,f=tS,h=t_,p=tk;for(var T=0;T<a;++T)if(r[T]>255){var B=r[T]>>>18&31;tI(t,c,d[B+257]),c+=f[B+257],B>7&&(tT(t,c,r[T]>>>23&31),c+=tu[B]);var $=31&r[T];tI(t,c,h[$]),c+=p[$],$>3&&(tI(t,c,r[T]>>>5&8191),c+=tc[$])}else tI(t,c,d[r[T]]),c+=f[r[T]];return tI(t,c,d[256]),c+f[256]},tD=new tl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tL=function(e,t,n,r,i,o){var s=e.length,a=new ts(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=tj(l,u,e.subarray(c,d)):(l[c]=o,u=tj(l,u,e.subarray(c,s)))}else{for(var f=tD[t-1],h=f>>>13,p=8191&f,m=(1<<n)-1,g=new ta(32768),v=new ta(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 tl(25e3),S=new ta(288),k=new ta(32),E=0,_=0,c=0,C=0,O=0,T=0;c<s;++c){var I=w(c),A=32767&c,P=v[I];if(g[A]=P,v[I]=A,O<=c){var R=s-c;if((E>7e3||C>24576)&&R>423){u=tN(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=A-P&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&&A!=P;){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,P=q)}}}P=g[A=P],L+=A-P+32768&32767}if(N){x[C++]=268435456|tm[j]<<18|tv[N];var G=31&tm[j],Z=31&tv[N];_+=tu[G]+tc[Z],++S[257+G],++k[Z],O=c+j,++E}else x[C++]=e[c],++S[e[c]]}}u=tN(e,l,o,x,S,k,_,C,T,c-T,u)}return tO(a,0,r+tC(u)+i)},tz=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}}},tF=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},tB=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 t$=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 ts(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 ts(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 tO(r,0,i)}(JSON.stringify({...e,v:"v1"})),void 0===n&&(n={}),(r=tz()).p(t),tB(o=tL(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),tF(o,o.length-4,r.d()),o),!0)};var tU=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(t$(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,V.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}(),tV=n(96142),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,V.l)();if(t){var n=t.fetch;n&&(t.fetch=function(t,r){return(0,O.mG)(e,void 0,void 0,function(){var e,i,o,s,a,l,u;return(0,O.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,V.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,O.mG)(e,void 0,void 0,function(){var e,i,o,s;return(0,O.Jh)(this,function(a){switch(a.label){case 0:if(a.trys.push([0,3,,4]),e=void 0,!(i=this.config)||(e={config:ea(i),version:eh},!r))return[3,2];return[4,es()];case 1:o=a.sent(),e=(0,O.pi)((0,O.pi)({},o),e),a.label=2;case 2:return this.recordCancelCallback?H.IM.addCustomEvent(t,(0,O.pi)((0,O.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 B(new A.Y)}return e.prototype.init=function(e,t){return(0,q.S)(this._init(e,t))},e.prototype._init=function(e,t){var n,r,i,o,s,a;return(0,O.mG)(this,void 0,void 0,function(){var l,u,c,d,f,h,p,m,g;return(0,O.Jh)(this,function(v){switch(v.label){case 0:return this.loggerProvider=new B(t.loggerProvider||new A.Y),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new to({sessionId:t.sessionId,deviceId:t.deviceId}),l=this,[4,(0,O.mG)(void 0,void 0,void 0,function(){var n;return(0,O.Jh)(this,function(r){switch(r.label){case 0:return[4,J({localConfig:n=new U(e,t),configKeys:["sessionReplay"]})];case 1:return[2,new eu(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=ti.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,V.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,e$({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?e7:e8,v.label=7;case 7:return v.trys.push([7,9,,10]),[4,e$({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(eU.bind.apply(eU,(0,O.ev)([void 0],(0,O.CR)(d),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new tU(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,q.S)(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t){return(0,O.mG)(this,void 0,void 0,function(){var n,r,i;return(0,O.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 to({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={})[D]=n.sessionReplayId?n.sessionReplayId:null,i=e,t.debugMode&&(i[z]=JSON.stringify({appHash:er(t.apiKey).toString()}))),this.addCustomRRWebEvent(w.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){if(void 0===e&&(e=!1),!(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId)){this.loggerProvider.log("Session is not being recorded due to lack of session id.");return}var t,n=this.getDeviceId();if(!n){this.loggerProvider.log("Session is not being recorded due to lack of device id.");return}this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:n}),this.recordEvents()},e.prototype.shouldOptOut=function(){if(null===(e=this.config)||void 0===e?void 0:e.instanceName){var e,t,n;n=(0,W.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(er(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,n=[];return(null===(t=null==e?void 0:e.console)||void 0===t?void 0:t.enabled)&&n.push((0,tV.N)({level:e.console.levels})),n.length>0?n:void 0},e.prototype.recordEvents=function(){var e,t,n=this,r=this.config,i=this.getShouldRecord(),o=null===(e=this.identifiers)||void 0===e?void 0:e.sessionId;if(i&&o&&r){this.stopRecordingEvents(),null===(t=this.networkObservers)||void 0===t||t.start(function(e){n.addCustomRRWebEvent(w.FETCH_REQUEST,e)});var s=r.privacyConfig,a=r.interactionConfig,l=r.loggingConfig,u=(null==a?void 0:a.enabled)?{mouseInteraction:this.eventsManager&&te(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:o,deviceIdFn:this.getDeviceId.bind(this)}),scroll:this.scrollHook}:{};this.loggerProvider.log("Session Replay capture beginning for ".concat(o,".")),this.recordCancelCallback=(0,H.IM)({emit:function(e){if(n.shouldOptOut()){n.loggerProvider.log("Opting session ".concat(o," out of recording due to optOut config.")),n.stopRecordingEvents(),n.sendEvents();return}n.eventCompressor&&n.eventCompressor.enqueueEvent(e,o)},inlineStylesheet:r.shouldInlineStylesheet,hooks:u,maskAllInputs:!0,maskTextClass:F,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),maskInputFn:en("input",s),maskTextFn:en("text",s),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return n.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0},plugins:this.getRecordingPlugins(l)}),this.addCustomRRWebEvent(w.DEBUG_INFO)}},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,O.mG)(this,void 0,void 0,function(){return(0,O.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||$();return{logger:t.loggerProvider,logLevel:t.logLevel}}},tG=(b=new tW,{init:(0,T.w_)(b.init.bind(b),"init",tH(b)),setSessionId:(0,T.w_)(b.setSessionId.bind(b),"setSessionId",tH(b)),getSessionId:(0,T.w_)(b.getSessionId.bind(b),"getSessionId",tH(b)),getSessionReplayProperties:(0,T.w_)(b.getSessionReplayProperties.bind(b),"getSessionReplayProperties",tH(b)),flush:(0,T.w_)(b.flush.bind(b),"flush",tH(b)),shutdown:(0,T.w_)(b.shutdown.bind(b),"shutdown",tH(b))}),tZ=tG.init,tK=tG.setSessionId,tY=tG.getSessionId,tJ=tG.getSessionReplayProperties,tX=tG.flush,tQ=tG.shutdown,t0="1.16.0",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,O.pi)({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var n,r,i,o,s;return(0,O.mG)(this,void 0,void 0,function(){var t;return(0,O.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,O.pi)((0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.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,O.mG)(this,void 0,void 0,function(){var n,r,i;return(0,O.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,O.pi)((0,O.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,O.pi)((0,O.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,O.mG)(this,void 0,void 0,function(){return(0,O.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",A="rule",P="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 P:return e.return=e.return||e.value;case I:return"";case R:return e.return=e.value+"{"+M(e.children,r)+"}";case A: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?A:u,d,f,h)}function D(e,t,n,r){return b(e,t,n,P,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 P: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 A: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,A={},P=[];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++)A[t[n]]=!0;P.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,A=0,P=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,P-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+A:-1==F&&(W=a(W,/\f/g,"")),M>0&&d(W)-P&&f(M>32?D(W+";",i,r,P-1):D(a(W," ","")+";",i,r,P-2),C);break;case 59:W+=";";default:if(f(q=N(W,n,r,T,A,s,E,$,U=[],V=[],P),m),123===B){if(0===A)e(W,n,q,q,U,m,P,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=[],P),V),s,V,P,E,i?U:V);break;default:e(W,q,q,q,[""],V,0,E,V)}}}T=A=M=0,L=F=1,$=W="",P=w;break;case 58:P=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=A>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(),A=P=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:A,registered:{},insert:m};return z.sheet.hydrate(P),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(52409),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(52409),i=n(48111),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(52409),i=n(48111),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 A(e){return O(e,k)}T.propTypes={},T.filterProps=x,I.propTypes={},I.filterProps=S,A.propTypes={},A.filterProps=k;var P=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"],P(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}P(G,Z,K,Y,J,X,Q,ee,et,m({prop:"gridTemplateRows"}),m({prop:"gridTemplateAreas"}),m({prop:"gridArea"})),P(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}),P(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 eA(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 eP=["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 eA(t,"light",a,s),eA(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,eP),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(51982);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 A=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 P="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 P?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){P&&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||A(),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
|
-
Sentry.addTracingExtensions();
|
|
3
|
-
Sentry.init({...});
|
|
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=A(),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.
|
|
5
|
-
Event: ${C(t)}`),0):(o=i.ignoreErrors,!t.type&&o&&o.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),L&&0===n.length&&N.error(`Could not extract message for event ${C(e)}`),n})(t).some(e=>U(e,o)))?(L&&N.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
6
|
-
Event: ${C(t)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&U(n,t)}(t,i.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=ew(e);return!!n&&U(n,t)}(t,i.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=ew(e);return!n||U(n,t)}(t,i.allowUrls)||(L&&N.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
7
|
-
Event: ${C(t)}.
|
|
8
|
-
Url: ${ew(t)}`),0):(L&&N.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
9
|
-
Event: ${C(t)}.
|
|
10
|
-
Url: ${ew(t)}`),0):(L&&N.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
11
|
-
Event: ${C(t)}`),0))?t:null}});function ew(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return L&&N.error(`Cannot extract url for event ${C(e)}`),null}}em(ey,eb);let ex="FunctionToString",eS=new WeakMap,ek=()=>({name:ex,setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=H(this),n=eS.has(ep())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){eS.set(e,!0)}});em(ex,ek);let eE=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function e_(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}let eC="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eO=0;function eT(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if(H(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>eT(e,t));return e.apply(this,i)}catch(e){throw eO++,setTimeout(()=>{eO--}),eh(n=>{n.addEventProcessor(e=>(t.mechanism&&(O(e,void 0,void 0),T(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),ec(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}W(r,e),q(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}let eI="<anonymous>";function eA(e){try{if(!e||"function"!=typeof e)return eI;return e.name||eI}catch(e){return eI}}let eP={},eR={};function eM(e,t){eP[e]=eP[e]||[],eP[e].push(t)}function ej(e,t){eR[e]||(t(),eR[e]=!0)}function eN(e,t){let n=e&&eP[e];if(n)for(let r of n)try{r(t)}catch(t){P&&N.error(`Error while triggering instrumentation handler.
|
|
12
|
-
Type: ${e}
|
|
13
|
-
Name: ${eA(r)}
|
|
14
|
-
Error:`,t)}}function eD(){"console"in S&&R.forEach(function(e){e in S.console&&V(S.console,e,function(t){return M[e]=t,function(...t){eN("console",{args:t,level:e});let n=M[e];n&&n.apply(S.console,t)}})})}function eL(){if(!S.document)return;let e=eN.bind(null,"dom"),t=ez(e,!0);S.document.addEventListener("click",t,!1),S.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=S[t]&&S[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(V(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=ez(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),V(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function ez(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;q(n,"_sentryCaptured",!0),r&&!r._sentryId&&q(r,"_sentryId",E());let a="keypress"===n.type?"input":n.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(n)&&(e({event:n,name:a,global:t}),o=n.type,s=r?r._sentryId:void 0),clearTimeout(i),i=S.setTimeout(()=>{s=void 0,o=void 0},1e3)}}let eF="__sentry_xhr_v3__";function eB(){if(!S.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;V(e,"open",function(e){return function(...t){let n=Date.now(),r=h(t[0])?t[0].toUpperCase():void 0,i=function(e){if(h(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[eF]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let e=this[eF];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}eN("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?V(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),V(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[eF];return i&&h(n)&&h(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),V(e,"send",function(e){return function(...t){let n=this[eF];return n&&(void 0!==t[0]&&(n.body=t[0]),eN("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this})),e.apply(this,t)}})}function e$(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function eU(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in S))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(e$(S.fetch))return!0;let e=!1,t=S.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=e$(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){P&&N.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&V(S,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:eq(t),method:eV(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:eq(t),method:eV(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return eN("fetch",{...i}),e.apply(S,t).then(e=>(eN("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw eN("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function eV(e,t){return!!e&&"object"==typeof e&&!!e[t]}function eq(e){return"string"==typeof e?e:e?eV(e,"url")?e.url:e.toString?e.toString():"":""}function eW(){if(!function(){let e=S.chrome,t=e&&e.app&&e.app.runtime,n="history"in S&&!!S.history.pushState&&!!S.history.replaceState;return!t&&n}())return;let e=S.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=a,t=String(n);a=t,eN("history",{from:e,to:t})}return e.apply(this,t)}}S.onpopstate=function(...t){let n=S.location.href,r=a;if(a=n,eN("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},V(S.history,"pushState",t),V(S.history,"replaceState",t)}let eH=["fatal","error","warning","log","info","debug"];function eG(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}let eZ="Breadcrumbs",eK=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:eZ,setupOnce(){},setup(e){var n;t.console&&function(e){let t="console";eM(t,e),ej(t,eD)}(function(t){var n;if(ep()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":eH.includes(n)?n:"log",message:$(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${$(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}ef(r,{input:t.args,level:t.level})}),t.dom&&(eM("dom",(n=t.dom,function(t){let r,i;if(ep()!==e)return;let o="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>1024&&(eC&&N.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,n=e&&e.target?e.target:e;r=F(n,{keyAttrs:o,maxStringLength:s}),i=function(e){if(!S.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}(n)}catch(e){r="<unknown>"}if(0===r.length)return;let a={category:`ui.${t.name}`,message:r};i&&(a.data={"ui.component_name":i}),ef(a,{event:t.event,name:t.name,global:t.global})})),ej("dom",eL)),t.xhr&&(eM("xhr",function(t){if(ep()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[eF];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:l}=i;ef({category:"xhr",data:{method:o,url:s,status_code:a},type:"http"},{xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r})}),ej("xhr",eB)),t.fetch&&function(e){let t="fetch";eM(t,e),ej(t,eU)}(function(t){if(ep()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error)ef({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{let e=t.response;ef({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}),t.history&&function(e){let t="history";eM(t,e),ej(t,eW)}(function(t){if(ep()!==e)return;let n=t.from,r=t.to,i=eG(S.location.href),o=n?eG(n):void 0,s=eG(r);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),ef({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on&&e.on("beforeSendEvent",function(t){ep()===e&&ef({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:C(t)},{event:t})})}}};em(eZ,eK);let eY="Dedupe",eJ=()=>{let e;return{name:eY,setupOnce(){},processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&eQ(e,t)&&eX(e,t))}(t,n)||function(e,t){let n=e0(t),r=e0(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&eQ(e,t)&&eX(e,t))}(t,n)))return eC&&N.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function eX(e,t){let n=e1(e),r=e1(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function eQ(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function e0(e){return e.exception&&e.exception.values&&e.exception.values[0]}function e1(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}em(eY,eJ);let e2=null;function e3(){e2=S.onerror,S.onerror=function(e,t,n,r,i){return eN("error",{column:r,error:i,line:n,msg:e,url:t}),!!e2&&!e2.__SENTRY_LOADER__&&e2.apply(this,arguments)},S.onerror.__SENTRY_INSTRUMENTED__=!0}let e5=null;function e4(){e5=S.onunhandledrejection,S.onunhandledrejection=function(e){return eN("unhandledrejection",e),!e5||!!e5.__SENTRY_LOADER__||e5.apply(this,arguments)},S.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function e6(e,t){let n=e8(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function e9(e,t){return{exception:{values:[e6(e,t)]}}}function e8(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(e7.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}let e7=/Minified React error #\d+;/i;function te(e,t,r,i,o){let s;if(d(t)&&t.error)return e9(e,t.error);if(f(t)||c(t,"DOMException")){if("stack"in t)s=e9(e,t);else{let n=t.name||(f(t)?"DOMError":"DOMException"),o=t.message?`${n}: ${t.message}`:n;O(s=tt(e,o,r,i),o)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return u(t)?e9(e,t):(g(t)||v(t)?T(s=function(e,t,r,i){let o=ep(),s=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:v(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(G(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return B(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return B(r,t)}}return""}(e),r=t?"promise rejection":"exception";if(d(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(v(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:i})}]},extra:{__serialized__:function e(t,r=3,i=102400){let o=function(e,t=100,r=Infinity){try{return function e(t,r,i=Infinity,o=Infinity,s=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[a,l]=s;if(null==r||["number","boolean","string"].includes(typeof r)&&!("number"==typeof r&&r!=r))return r;let u=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(w(t))return"[VueViewModel]";if(g(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${eA(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!u.startsWith("[object "))return u;if(r.__sentry_skip_normalization__)return r;let c="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===c)return u.replace("object ","");if(a(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,c-1,o,s)}catch(e){}let d=Array.isArray(r)?[]:{},f=0,h=G(r);for(let t in h){if(!Object.prototype.hasOwnProperty.call(h,t))continue;if(f>=o){d[t]="[MaxProperties ~]";break}let n=h[t];d[t]=e(t,n,c-1,o,s),f++}return l(r),d}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}(t,r);return~-encodeURI(JSON.stringify(o)).split(/%..|./).length>i?e(t,r-1,i):o}(t,s)}};if(r){let t=e8(e,r);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,r,o),{synthetic:!0}):(O(s=tt(e,t,r,i),`${t}`,void 0),T(s,{synthetic:!0})),s)}function tt(e,t,n,r){let i={};if(r&&n){let r=e8(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(p(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}let tn="GlobalHandlers",tr=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:tn,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){let t="error";eM(t,e),ej(t,e3)}(t=>{let{stackParser:n,attachStacktrace:r}=ts();if(ep()!==e||eO>0)return;let{msg:i,url:o,line:s,column:a,error:l}=t,u=void 0===l&&h(i)?function(e,t,n,r){let i=d(e)?e.message:e,o="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(o=s[1],i=s[2]),ti({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,s,a):ti(te(n,l||i,void 0,r,!1),o,s,a);u.level="error",ed(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),to("onerror")),t.onunhandledrejection&&(function(e){let t="unhandledrejection";eM(t,e),ej(t,e4)}(t=>{let{stackParser:n,attachStacktrace:r}=ts();if(ep()!==e||eO>0)return;let i=function(e){if(m(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=m(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:te(n,i,void 0,r,!0);o.level="error",ed(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),to("onunhandledrejection"))}}};function ti(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=h(t)&&t.length>0?t:function(){try{return S.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:u,filename:d,function:"?",in_app:!0,lineno:c}),e}function to(e){eC&&N.log(`Global Handler attached: ${e}`)}function ts(){let e=ep();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}em(tn,tr);let ta="HttpContext",tl=()=>({name:ta,setupOnce(){},preprocessEvent(e){if(!S.navigator&&!S.location&&!S.document)return;let t=e.request&&e.request.url||S.location&&S.location.href,{referrer:n}=S.document||{},{userAgent:r}=S.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function tu(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function tc(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}em(ta,tl);let td="LinkedErrors",tf=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:td,setupOnce(){},preprocessEvent(e,r,i){let o=i.getOptions();!function(e,t,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!b(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=(function e(t,n,r,i,o,s,a,l){if(s.length>=r+1)return s;let u=[...s];if(b(i[o],Error)){tu(a,l);let s=t(n,i[o]),c=u.length;tc(s,o,c,l),u=e(t,n,r,i[o],o,[s,...u],s,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if(b(i,Error)){tu(a,l);let c=t(n,i),d=u.length;tc(c,`errors[${s}]`,d,l),u=e(t,n,r,i,o,[c,...u],c,d)}}),u})(e,t,i,s.originalException,r,o.exception.values,a,0).map(e=>(e.value&&(e.value=B(e.value,n)),e)))}(e6,o.stackParser,o.maxValueLength,n,t,e,r)}}};em(td,tf);let th=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],tp="TryCatch",tm=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:tp,setupOnce(){t.setTimeout&&V(S,"setTimeout",tg),t.setInterval&&V(S,"setInterval",tg),t.requestAnimationFrame&&V(S,"requestAnimationFrame",tv),t.XMLHttpRequest&&"XMLHttpRequest"in S&&V(XMLHttpRequest.prototype,"send",ty);let e=t.eventTarget;e&&(Array.isArray(e)?e:th).forEach(tb)}}};function tg(e){return function(...t){let n=t[0];return t[0]=eT(n,{mechanism:{data:{function:eA(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tv(e){return function(t){return e.apply(this,[eT(t,{mechanism:{data:{function:"requestAnimationFrame",handler:eA(e)},handled:!1,type:"instrument"}})])}}function ty(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&V(n,e,function(t){let n={mechanism:{data:{function:e,handler:eA(t)},handled:!1,type:"instrument"}},r=H(t);return r&&(n.mechanism.data.handler=eA(r)),eT(t,n)})}),e.apply(this,t)}}function tb(e){let t=S[e]&&S[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(V(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=eT(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:eA(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,eT(r,{mechanism:{data:{function:"addEventListener",handler:eA(r),target:e},handled:!1,type:"instrument"}}),i])}}),V(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}em(tp,tm),eb(),ek(),tm(),eK(),tr(),tf(),eJ(),tl();let tw=(e={},t=es())=>{if(!S.document){eC&&N.error("Global document not defined in showReportDialog call");return}let{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){eC&&N.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());let o=S.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(e,t){let n=function(e){let t="string"==typeof e?function(e){let t=eE.exec(e);if(!t){j(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i="",o,s="",a]=t.slice(1),l="",u=a,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return e_({host:o,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}(e):e_(e);if(t&&function(e){if(!P)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(N.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(N.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(N.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(N.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e);if(!n)return"";let r=`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(n)}embed/error-page/`,i=`dsn=${function(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e){if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${r}?${i}`}(i,e),e.onLoad&&(o.onload=e.onLoad);let{onClose:s}=e;if(s){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{s()}finally{S.removeEventListener("message",e)}};S.addEventListener("message",e)}let a=S.document.head||S.document.body;a?a.appendChild(o):eC&&N.error("Not injecting report dialog. No injection point found in HTML")};n(55829);var tx,tS,tk=n(66703);let tE="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,t_={componentStack:null,error:null,eventId:null};class tC extends tk.Component{constructor(e){super(e),tC.prototype.__init.call(this),this.state=t_,this._openFallbackReportDialog=!0;let t=ep();t&&t.on&&e.showDialog&&(this._openFallbackReportDialog=!1,t.on("afterSendEvent",t=>{t.type||t.event_id!==this._lastEventId||tw({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,{componentStack:t}){let{beforeCapture:n,onError:r,showDialog:i,dialogOptions:o}=this.props;eh(s=>{if(function(e){let t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(tk.version)&&u(e)){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){let n=new WeakMap;!function e(t,r){if(!n.has(t)){if(t.cause)return n.set(t,!0),e(t.cause,r);t.cause=r}}(e,t)}(e,n)}n&&n(s,e,t);let a=ec(e,{captureContext:{contexts:{react:{componentStack:t}}},mechanism:{handled:!!this.props.fallback}});r&&r(e,t,a),i&&(this._lastEventId=a,this._openFallbackReportDialog&&tw({...o,eventId:a})),this.setState({error:e,componentStack:t,eventId:a})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n)}__init(){this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(t_)}}render(){let{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return(t="function"==typeof e?e({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,tk.isValidElement(t))?t:(e&&tE&&N.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}},35275:function(e,t,n){"use strict";n.d(t,{Pn:function(){return p},RI:function(){return m}});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=Object.freeze(Object.defineProperties(["",""],{raw:{value:Object.freeze(["",""])}})),o=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map(function(e){return"function"==typeof e?e():e}),this.tag}return r(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return this.tag(i,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,t){return t.onString?t.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce(function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,t){return t.onEndResult?t.onEndResult(e):e},e)}}]),e}(),s={separator:"",conjunction:"",serial:!1},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,s=e.serial,a=n.match(/(\n?[^\S\n]+)$/);if(t=a?t.join(i+a[1]):t.join(i+" "),o&&r>1){var l=t.lastIndexOf(i);t=t.slice(0,l)+(s?i:"")+" "+o+t.slice(l+1)}}return t}}},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}(n.map(function(e){return e.length})));if(r){var i=RegExp("^.{"+r+"}","gm");return t.replace(i,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw Error("Unknown type: "+e)}}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw Error("Side not supported: "+e)}}};new o(a({separator:","}),l,u),new o(a({separator:",",conjunction:"and"}),l,u),new o(a({separator:",",conjunction:"or"}),l,u);var c=function(e){return{onSubstitution:function(t,n){if(null!=e&&"string"==typeof e)"string"==typeof t&&t.includes(e)&&(t=t.split(e));else throw Error("You need to specify a string character to split by.");return t}}},d=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};new o(c("\n"),function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(d):d(e)?e:""}}},a,l,u);var f=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}};new o(c("\n"),a,l,u,f(/&/g,"&"),f(/</g,"<"),f(/>/g,">"),f(/"/g,"""),f(/'/g,"'"),f(/`/g,"`"));var h=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}};new o(h(/(?:\n(?:\s*))+/g," "),u),new o(h(/(?:\n\s*)/g,""),u),new o(a({separator:","}),h(/(?:\s+)/g," "),u),new o(a({separator:",",conjunction:"or"}),h(/(?:\s+)/g," "),u),new o(a({separator:",",conjunction:"and"}),h(/(?:\s+)/g," "),u),new o(a,l,u),new o(a,h(/(?:\s+)/g," "),u);var p=new o(l,u),m=new o(l("all"),u)},24989:function(e,t,n){"use strict";var r=n(76153),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,s,a,l,u,c,d,f=!1;t||(t={}),s=t.debug||!1;try{if(l=r(),u=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){s&&console.error("unable to copy using execCommand: ",r),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){s&&console.error("unable to copy using clipboardData: ",r),s&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",a=n.replace(/#{\s*key\s*}/g,o),window.prompt(a,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),d&&document.body.removeChild(d),l()}return f}},8502:function(e,t,n){"use strict";n.d(t,{Oq:function(){return d},dO:function(){return a},jn:function(){return i},iz:function(){return f},Dz:function(){return r},cv:function(){return u},oc:function(){return c}});var r=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},i=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},o=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},a=function(e){var t=e.borderBox,n=e.margin,a=void 0===n?s:n,l=e.border,u=void 0===l?s:l,c=e.padding,d=void 0===c?s:c,f=r(i(t,a)),h=r(o(t,u)),p=r(o(h,d));return{marginBox:f,borderBox:r(t),paddingBox:h,contentBox:p,margin:a,border:u,padding:d}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){if(!e)throw Error("Invariant failed")}(!1),n},u=function(e,t){var n=e.borderBox,r=e.border,i=e.margin,o=e.padding;return a({borderBox:{top:n.top+t.y,left:n.left+t.x,bottom:n.bottom+t.y,right:n.right+t.x},border:r,margin:i,padding:o})},c=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),u(e,t)},d=function(e,t){return a({borderBox:e,margin:{top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},padding:{top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},border:{top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)}})},f=function(e){return d(e.getBoundingClientRect(),window.getComputedStyle(e))}},32139:function(e,t,n){e.exports={graphlib:n(4732),layout:n(23372),debug:n(58159),util:{time:n(82453).time,notime:n(82453).notime},version:n(26521)}},75398:function(e,t,n){"use strict";var r=n(83861),i=n(82751);e.exports={run:function(e){var t,n,o,s="greedy"===e.graph().acyclicer?i(e,function(t){return e.edge(t).weight}):(t=[],n={},o={},r.forEach(e.nodes(),function i(s){r.has(o,s)||(o[s]=!0,n[s]=!0,r.forEach(e.outEdges(s),function(e){r.has(n,e.w)?t.push(e):i(e.w)}),delete n[s])}),t);r.forEach(s,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))})},undo:function(e){r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}},16290:function(e,t,n){var r=n(83861),i=n(82453);function o(e,t,n,r,o,s){var a=o[t][s-1],l=i.addDummyNode(e,"border",{width:0,height:0,rank:s,borderType:t},n);o[t][s]=l,e.setParent(l,r),a&&e.setEdge(a,l,{weight:1})}e.exports=function(e){r.forEach(e.children(),function t(n){var i=e.children(n),s=e.node(n);if(i.length&&r.forEach(i,t),r.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a<l;++a)o(e,"borderLeft","_bl",n,s,a),o(e,"borderRight","_br",n,s,a)}})}},62831:function(e,t,n){"use strict";var r=n(83861);function i(e){r.forEach(e.nodes(),function(t){o(e.node(t))}),r.forEach(e.edges(),function(t){o(e.edge(t))})}function o(e){var t=e.width;e.width=e.height,e.height=t}function s(e){e.y=-e.y}function a(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();("lr"===t||"rl"===t)&&i(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();("bt"===t||"rl"===t)&&(r.forEach(e.nodes(),function(t){s(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"y")&&s(n)})),("lr"===t||"rl"===t)&&(r.forEach(e.nodes(),function(t){a(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"x")&&a(n)}),i(e))}}},69369:function(e){function t(){var e={};e._next=e._prev=e,this._sentinel=e}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return n(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},58159:function(e,t,n){var r=n(83861),i=n(82453),o=n(4732).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),r.forEach(e.edges(),function(e){n.setEdge(e.v,e.w,{},e.name)}),r.forEach(t,function(e,t){n.setNode("layer"+t,{rank:"same"}),r.reduce(e,function(e,t){return n.setEdge(e,t,{style:"invis"}),t})}),n}}},4732:function(e,t,n){var r;try{r=n(53784)}catch(e){}r||(r=window.graphlib),e.exports=r},82751:function(e,t,n){var r=n(83861),i=n(4732).Graph,o=n(69369);e.exports=function(e,t){if(1>=e.nodeCount())return[];var n,u,c,d,f,h,p=(n=t||s,u=new i,c=0,d=0,r.forEach(e.nodes(),function(e){u.setNode(e,{v:e,in:0,out:0})}),r.forEach(e.edges(),function(e){var t=u.edge(e.v,e.w)||0,r=n(e);u.setEdge(e.v,e.w,t+r),d=Math.max(d,u.node(e.v).out+=r),c=Math.max(c,u.node(e.w).in+=r)}),f=r.range(d+c+3).map(function(){return new o}),h=c+1,r.forEach(u.nodes(),function(e){l(f,h,u.node(e))}),{graph:u,buckets:f,zeroIdx:h}),m=function(e,t,n){for(var r,i=[],o=t[t.length-1],s=t[0];e.nodeCount();){for(;r=s.dequeue();)a(e,t,n,r);for(;r=o.dequeue();)a(e,t,n,r);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(r=t[l].dequeue()){i=i.concat(a(e,t,n,r,!0));break}}}return i}(p.graph,p.buckets,p.zeroIdx);return r.flatten(r.map(m,function(t){return e.outEdges(t.v,t.w)}),!0)};var s=r.constant(1);function a(e,t,n,i,o){var s=o?[]:void 0;return r.forEach(e.inEdges(i.v),function(r){var i=e.edge(r),a=e.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,l(t,n,a)}),r.forEach(e.outEdges(i.v),function(r){var i=e.edge(r),o=r.w,s=e.node(o);s.in-=i,l(t,n,s)}),e.removeNode(i.v),s}function l(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},23372:function(e,t,n){"use strict";var r=n(83861),i=n(75398),o=n(26729),s=n(9e4),a=n(82453).normalizeRanks,l=n(28717),u=n(82453).removeEmptyRanks,c=n(1806),d=n(16290),f=n(62831),h=n(80182),p=n(56754),m=n(82453),g=n(4732).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?m.time:m.notime;n("layout",function(){var t=n(" buildLayoutGraph",function(){var t,n;return t=new g({multigraph:!0,compound:!0}),n=C(e.graph()),t.setGraph(r.merge({},y,_(n,v),r.pick(n,b))),r.forEach(e.nodes(),function(n){var i=C(e.node(n));t.setNode(n,r.defaults(_(i,w),x)),t.setParent(n,e.parent(n))}),r.forEach(e.edges(),function(n){var i=C(e.edge(n));t.setEdge(n,r.merge({},k,_(i,S),r.pick(i,E)))}),t});n(" runLayout",function(){n(" makeSpaceForEdgeLabels",function(){var e;e=t.graph(),e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),n(" removeSelfEdges",function(){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),n(" acyclic",function(){i.run(t)}),n(" nestingGraph.run",function(){c.run(t)}),n(" rank",function(){s(m.asNonCompoundGraph(t))}),n(" injectEdgeLabelProxies",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};m.addDummyNode(t,"edge-proxy",i,"_ep")}})}),n(" removeEmptyRanks",function(){u(t)}),n(" nestingGraph.cleanup",function(){c.cleanup(t)}),n(" normalizeRanks",function(){a(t)}),n(" assignRankMinMax",function(){var e;e=0,r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}),n(" removeEdgeLabelProxies",function(){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),n(" normalize.run",function(){o.run(t)}),n(" parentDummyChains",function(){l(t)}),n(" addBorderSegments",function(){d(t)}),n(" order",function(){h(t)}),n(" insertSelfEdges",function(){var e;e=m.buildLayerMatrix(t),r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){m.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),n(" adjustCoordinateSystem",function(){f.adjust(t)}),n(" position",function(){p(t)}),n(" positionSelfEdges",function(){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}),n(" removeBorderNodes",function(){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),s=t.node(r.last(n.borderLeft)),a=t.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}),n(" normalize.undo",function(){o.undo(t)}),n(" fixupEdgeLabelCoords",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),n(" undoCoordinateSystem",function(){f.undo(t)}),n(" translateGraph",function(){(function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,l=s.marginy||0;function u(e){var r=e.x,s=e.y,a=e.width,l=e.height;t=Math.min(t,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-l/2),o=Math.max(o,s+l/2)}r.forEach(e.nodes(),function(t){u(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.has(n,"x")&&u(n)}),t-=a,i-=l,r.forEach(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=i}),r.forEach(e.edges(),function(n){var o=e.edge(n);r.forEach(o.points,function(e){e.x-=t,e.y-=i}),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)}),s.width=n-t+a,s.height=o-i+l})(t)}),n(" assignNodeIntersects",function(){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),s=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(m.intersectRect(o,n)),i.points.push(m.intersectRect(s,r))})}),n(" reversePoints",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}),n(" acyclic.undo",function(){i.undo(t)})}),n(" updateInputGraph",function(){r.forEach(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(e.edges(),function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height})})};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],x={width:0,height:0},S=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function _(e,t){return r.mapValues(r.pick(e,t),Number)}function C(e){var t={};return r.forEach(e,function(e,n){t[n.toLowerCase()]=e}),t}},83861:function(e,t,n){var r;try{r={cloneDeep:n(92367),constant:n(37730),defaults:n(69174),each:n(24749),filter:n(20339),find:n(61188),flatten:n(1771),forEach:n(86087),forIn:n(19360),has:n(62833),isUndefined:n(80371),last:n(39046),map:n(78923),mapValues:n(72952),max:n(60926),merge:n(44892),min:n(35093),minBy:n(22789),now:n(9859),pick:n(98826),range:n(23268),reduce:n(92795),sortBy:n(17639),uniqueId:n(26322),values:n(57319),zipObject:n(10584)}}catch(e){}r||(r=window._),e.exports=r},1806:function(e,t,n){var r=n(83861),i=n(82453);e.exports={run:function(e){var t,n=i.addDummyNode(e,"root",{},"_root"),o=(t={},r.forEach(e.children(),function(n){!function n(i,o){var s=e.children(i);s&&s.length&&r.forEach(s,function(e){n(e,o+1)}),t[i]=o}(n,1)}),t),s=r.max(r.values(o))-1,a=2*s+1;e.graph().nestingRoot=n,r.forEach(e.edges(),function(t){e.edge(t).minlen*=a});var l=r.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)+1;r.forEach(e.children(),function(t){(function e(t,n,o,s,a,l,u){var c=t.children(u);if(!c.length){u!==n&&t.setEdge(n,u,{weight:0,minlen:o});return}var d=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),h=t.node(u);t.setParent(d,u),h.borderTop=d,t.setParent(f,u),h.borderBottom=f,r.forEach(c,function(r){e(t,n,o,s,a,l,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,h=i.borderBottom?i.borderBottom:r,p=i.borderTop?s:2*s,m=c!==h?1:a-l[u]+1;t.setEdge(d,c,{weight:p,minlen:m,nestingEdge:!0}),t.setEdge(h,f,{weight:p,minlen:m,nestingEdge:!0})}),t.parent(u)||t.setEdge(n,d,{weight:0,minlen:a+l[u]})})(e,n,a,l,s,o,t)}),e.graph().nodeRankFactor=a},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}}},26729:function(e,t,n){"use strict";var r=n(83861),i=n(82453);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),function(t){(function(e,t){var n,r,o,s=t.v,a=e.node(s).rank,l=t.w,u=e.node(l).rank,c=t.name,d=e.edge(t),f=d.labelRank;if(u!==a+1){for(e.removeEdge(t),o=0,++a;a<u;++o,++a)d.points=[],r={width:0,height:0,edgeLabel:d,edgeObj:t,rank:a},n=i.addDummyNode(e,"edge",r,"_d"),a===f&&(r.width=d.width,r.height=d.height,r.dummy="edge-label",r.labelpos=d.labelpos),e.setEdge(s,n,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(n),s=n;e.setEdge(s,l,{weight:d.weight},c)}})(e,t)})},undo:function(e){r.forEach(e.graph().dummyChains,function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)})}}},44338:function(e,t,n){var r=n(83861);e.exports=function(e,t,n){var i,o={};r.forEach(n,function(n){for(var r,s,a=e.parent(n);a;){if((r=e.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=r}})}},68430:function(e,t,n){var r=n(83861);e.exports=function(e,t){return r.map(t,function(t){var n=e.inEdges(t);if(!n.length)return{v:t};var i=r.reduce(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}})}},78666:function(e,t,n){var r=n(83861),i=n(4732).Graph;e.exports=function(e,t,n){var o=function(e){for(var t;e.hasNode(t=r.uniqueId("_root")););return t}(e),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return e.node(t)});return r.forEach(e.nodes(),function(i){var a=e.node(i),l=e.parent(i);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(i),s.setParent(i,l||o),r.forEach(e[n](i),function(t){var n=t.v===i?t.w:t.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:e.edge(t).weight+a})}),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))}),s}},77902:function(e,t,n){"use strict";var r=n(83861);e.exports=function(e,t){for(var n=0,i=1;i<t.length;++i)n+=function(e,t,n){for(var i=r.zipObject(n,r.map(n,function(e,t){return t})),o=r.flatten(r.map(t,function(t){return r.sortBy(r.map(e.outEdges(t),function(t){return{pos:i[t.w],weight:e.edge(t).weight}}),"pos")}),!0),s=1;s<n.length;)s<<=1;var a=2*s-1;s-=1;var l=r.map(Array(a),function(){return 0}),u=0;return r.forEach(o.forEach(function(e){var t=e.pos+s;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),t=t-1>>1,l[t]+=e.weight;u+=e.weight*n})),u}(e,t[i-1],t[i]);return n}},80182:function(e,t,n){"use strict";var r=n(83861),i=n(12737),o=n(77902),s=n(96023),a=n(78666),l=n(44338),u=n(4732).Graph,c=n(82453);function d(e,t,n){return r.map(t,function(t){return a(e,t,n)})}function f(e,t){r.forEach(t,function(t){r.forEach(t,function(t,n){e.node(t).order=n})})}e.exports=function(e){var t=c.maxRank(e),n=d(e,r.range(1,t+1),"inEdges"),a=d(e,r.range(t-1,-1,-1),"outEdges"),h=i(e);f(e,h);for(var p,m=Number.POSITIVE_INFINITY,g=0,v=0;v<4;++g,++v){(function(e,t){var n=new u;r.forEach(e,function(e){var i=e.graph().root,o=s(e,i,n,t);r.forEach(o.vs,function(t,n){e.node(t).order=n}),l(e,n,o.vs)})})(g%2?n:a,g%4>=2),h=c.buildLayerMatrix(e);var y=o(e,h);y<m&&(v=0,p=r.cloneDeep(h),m=y)}f(e,p)}},12737:function(e,t,n){"use strict";var r=n(83861);e.exports=function(e){var t={},n=r.filter(e.nodes(),function(t){return!e.children(t).length}),i=r.max(r.map(n,function(t){return e.node(t).rank})),o=r.map(r.range(i+1),function(){return[]}),s=r.sortBy(n,function(t){return e.node(t).rank});return r.forEach(s,function n(i){r.has(t,i)||(t[i]=!0,o[e.node(i).rank].push(i),r.forEach(e.successors(i),n))}),o}},63784:function(e,t,n){"use strict";var r=n(83861);e.exports=function(e,t){var n={};return r.forEach(e,function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)}),r.forEach(t.edges(),function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))}),function(e){for(var t=[];e.length;){var n=e.pop();t.push(n),r.forEach(n.in.reverse(),function(e){return function(t){!t.merged&&(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(n)),r.forEach(n.out,function(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}(n))}return r.map(r.filter(t,function(e){return!e.merged}),function(e){return r.pick(e,["vs","i","barycenter","weight"])})}(r.filter(n,function(e){return!e.indegree}))}},96023:function(e,t,n){var r=n(83861),i=n(68430),o=n(63784),s=n(38832);e.exports=function e(t,n,a,l){var u=t.children(n),c=t.node(n),d=c?c.borderLeft:void 0,f=c?c.borderRight:void 0,h={};d&&(u=r.filter(u,function(e){return e!==d&&e!==f}));var p=i(t,u);r.forEach(p,function(n){if(t.children(n.v).length){var i=e(t,n.v,a,l);h[n.v]=i,r.has(i,"barycenter")&&(r.isUndefined(n.barycenter)?(n.barycenter=i.barycenter,n.weight=i.weight):(n.barycenter=(n.barycenter*n.weight+i.barycenter*i.weight)/(n.weight+i.weight),n.weight+=i.weight))}});var m=o(p,a);r.forEach(m,function(e){e.vs=r.flatten(e.vs.map(function(e){return h[e]?h[e].vs:e}),!0)});var g=s(m,l);if(d&&(g.vs=r.flatten([d,g.vs,f],!0),t.predecessors(d).length)){var v=t.node(t.predecessors(d)[0]),y=t.node(t.predecessors(f)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+v.order+y.order)/(g.weight+2),g.weight+=2}return g}},38832:function(e,t,n){var r=n(83861),i=n(82453);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n,s=i.partition(e,function(e){return r.has(e,"barycenter")}),a=s.lhs,l=r.sortBy(s.rhs,function(e){return-e.i}),u=[],c=0,d=0,f=0;a.sort((n=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:n?t.i-e.i:e.i-t.i})),f=o(u,l,f),r.forEach(a,function(e){f+=e.vs.length,u.push(e.vs),c+=e.barycenter*e.weight,d+=e.weight,f=o(u,l,f)});var h={vs:r.flatten(u,!0)};return d&&(h.barycenter=c/d,h.weight=d),h}},28717:function(e,t,n){var r=n(83861);e.exports=function(e){var t,n,i=(t={},n=0,r.forEach(e.children(),function i(o){var s=n;r.forEach(e.children(o),i),t[o]={low:s,lim:n++}}),t);r.forEach(e.graph().dummyChains,function(t){for(var n=e.node(t),r=n.edgeObj,o=function(e,t,n,r){var i,o,s=[],a=[],l=Math.min(t[n].low,t[r].low),u=Math.max(t[n].lim,t[r].lim);i=n;do s.push(i=e.parent(i));while(i&&(t[i].low>l||u>t[i].lim));for(o=i,i=r;(i=e.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(e,i,r.v,r.w),s=o.path,a=o.lca,l=0,u=s[0],c=!0;t!==r.w;){if(n=e.node(t),c){for(;(u=s[l])!==a&&e.node(u).maxRank<n.rank;)l++;u===a&&(c=!1)}if(!c){for(;l<s.length-1&&e.node(u=s[l+1]).minRank<=n.rank;)l++;u=s[l]}e.setParent(t,u),t=e.successors(t)[0]}})}},64353:function(e,t,n){"use strict";var r=n(83861),i=n(4732).Graph,o=n(82453);function s(e,t){var n={};return r.reduce(t,function(t,i){var o=0,s=0,a=t.length,u=r.last(i);return r.forEach(i,function(t,c){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),f=d?e.node(d).order:a;(d||t===u)&&(r.forEach(i.slice(s,c+1),function(t){r.forEach(e.predecessors(t),function(r){var i=e.node(r),s=i.order;(s<o||f<s)&&!(i.dummy&&e.node(t).dummy)&&l(n,r,t)})}),s=c+1,o=f)}),i}),n}function a(e,t){var n={};function i(t,i,o,s,a){var u;r.forEach(r.range(i,o),function(i){u=t[i],e.node(u).dummy&&r.forEach(e.predecessors(u),function(t){var r=e.node(t);r.dummy&&(r.order<s||r.order>a)&&l(n,t,u)})})}return r.reduce(t,function(t,n){var o,s=-1,a=0;return r.forEach(n,function(r,l){if("border"===e.node(r).dummy){var u=e.predecessors(r);u.length&&(o=e.node(u[0]).order,i(n,a,l,s,o),a=l,s=o)}i(n,a,n.length,o,t.length)}),n}),n}function l(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function u(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},s={},a={};return r.forEach(t,function(e){r.forEach(e,function(e,t){o[e]=e,s[e]=e,a[e]=t})}),r.forEach(t,function(e){var t=-1;r.forEach(e,function(e){var l=i(e);if(l.length)for(var c=((l=r.sortBy(l,function(e){return a[e]})).length-1)/2,d=Math.floor(c),f=Math.ceil(c);d<=f;++d){var h=l[d];s[e]===e&&t<a[h]&&!u(n,e,h)&&(s[h]=e,s[e]=o[e]=o[h],t=a[h])}})}),{root:o,align:s}}function d(e,t,n,o,s){var a,l,u,c,d,f={},h=(u=new i,a=(c=e.graph()).nodesep,l=c.edgesep,d=function(e,t,n){var i,o,u=e.node(t),c=e.node(n);if(i=0+u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=-u.width/2;break;case"r":o=u.width/2}if(o&&(i+=s?o:-o),o=0,i+=(u.dummy?l:a)/2+(c.dummy?l:a)/2+c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":o=c.width/2;break;case"r":o=-c.width/2}return o&&(i+=s?o:-o),o=0,i},r.forEach(t,function(t){var i;r.forEach(t,function(t){var r=n[t];if(u.setNode(r),i){var o=n[i],s=u.edge(o,r);u.setEdge(o,r,Math.max(d(e,t,i),s||0))}i=t})}),u),p=s?"borderLeft":"borderRight";function m(e,t){for(var n=h.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return m(function(e){f[e]=h.inEdges(e).reduce(function(e,t){return Math.max(e,f[t.v]+h.edge(t))},0)},h.predecessors.bind(h)),m(function(t){var n=h.outEdges(t).reduce(function(e,t){return Math.min(e,f[t.w]-h.edge(t))},Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==p&&(f[t]=Math.max(f[t],n))},h.successors.bind(h)),r.forEach(o,function(e){f[e]=f[n[e]]}),f}function f(e,t){return r.minBy(r.values(t),function(t){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(t,function(t,r){var o=e.node(r).width/2;n=Math.max(t+o,n),i=Math.min(t-o,i)}),n-i})}function h(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(s){var a,l=n+s,u=e[l];if(u!==t){var c=r.values(u);(a="l"===s?i-r.min(c):o-r.max(c))&&(e[l]=r.mapValues(u,function(e){return e+a}))}})})}function p(e,t){return r.mapValues(e.ul,function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2})}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),i=r.merge(s(e,n),a(e,n)),l={};r.forEach(["u","d"],function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(t=r.map(t,function(e){return r.values(e).reverse()}));var s=("u"===o?e.predecessors:e.successors).bind(e),a=c(e,t,i,s),u=d(e,t,a.root,a.align,"r"===n);"r"===n&&(u=r.mapValues(u,function(e){return-e})),l[o+n]=u})});var u=f(e,l);return h(l,u),p(l,e.graph().align)},findType1Conflicts:s,findType2Conflicts:a,addConflict:l,hasConflict:u,verticalAlignment:c,horizontalCompaction:d,alignCoordinates:h,findSmallestWidthAlignment:f,balance:p}},56754:function(e,t,n){"use strict";var r=n(83861),i=n(82453),o=n(64353).positionX;e.exports=function(e){var t,n,s,a;t=e=i.asNonCompoundGraph(e),n=i.buildLayerMatrix(t),s=t.graph().ranksep,a=0,r.forEach(n,function(e){var n=r.max(r.map(e,function(e){return t.node(e).height}));r.forEach(e,function(e){t.node(e).y=a+n/2}),a+=n+s}),r.forEach(o(e),function(t,n){e.node(n).x=t})}},82080:function(e,t,n){"use strict";var r=n(83861),i=n(4732).Graph,o=n(89394).slack;e.exports=function(e){var t,n,s=new i({directed:!1}),a=e.nodes()[0],l=e.nodeCount();for(s.setNode(a,{});r.forEach(s.nodes(),function t(n){r.forEach(e.nodeEdges(n),function(r){var i=r.v,a=n===i?r.w:i;s.hasNode(a)||o(e,r)||(s.setNode(a,{}),s.setEdge(n,a,{}),t(a))})}),s.nodeCount()<l;)t=function(e,t){return r.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)})}(s,e),n=s.hasNode(t.v)?o(e,t):-o(e,t),function(e,t,n){r.forEach(e.nodes(),function(e){t.node(e).rank+=n})}(s,e,n);return s}},9e4:function(e,t,n){"use strict";var r=n(89394).longestPath,i=n(82080),o=n(60666);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:o(e);break;case"tight-tree":r(e),i(e);break;case"longest-path":s(e)}};var s=r},60666:function(e,t,n){"use strict";var r=n(83861),i=n(82080),o=n(89394).slack,s=n(89394).longestPath,a=n(4732).alg.preorder,l=n(4732).alg.postorder,u=n(82453).simplify;function c(e){s(e=u(e));var t,n,r=i(e);for(h(r),d(r,e);t=p(r);)n=m(r,e,t),g(r,e,t,n)}function d(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){var r;r=e.node(n).parent,e.edge(n,r).cutvalue=f(e,t,n)})}function f(e,t,n){var i=e.node(n).parent,o=!0,s=t.edge(n,i),a=0;return s||(o=!1,s=t.edge(i,n)),a=s.weight,r.forEach(t.nodeEdges(n),function(r){var s=r.v===n,l=s?r.w:r.v;if(l!==i){var u=s===o,c=t.edge(r).weight;if(a+=u?c:-c,e.hasEdge(n,l)){var d=e.edge(n,l).cutvalue;a+=u?-d:d}}}),a}function h(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,i,o,s){var a=i,l=t.node(o);return n[o]=!0,r.forEach(t.neighbors(o),function(s){r.has(n,s)||(i=e(t,n,i,s,o))}),l.low=a,l.lim=i++,s?l.parent=s:delete l.parent,i}(e,{},1,t)}function p(e){return r.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function m(e,t,n){var i=n.v,s=n.w;t.hasEdge(i,s)||(i=n.w,s=n.v);var a=e.node(i),l=e.node(s),u=a,c=!1;a.lim>l.lim&&(u=l,c=!0);var d=r.filter(t.edges(),function(t){return c===v(e,e.node(t.v),u)&&c!==v(e,e.node(t.w),u)});return r.minBy(d,function(e){return o(t,e)})}function g(e,t,n,i){var o,s,l=n.v,u=n.w;e.removeEdge(l,u),e.setEdge(i.v,i.w,{}),h(e),d(e,t),o=r.find(e.nodes(),function(e){return!t.node(e).parent}),s=(s=a(e,o)).slice(1),r.forEach(s,function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)})}function v(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=h,c.initCutValues=d,c.calcCutValue=f,c.leaveEdge=p,c.enterEdge=m,c.exchangeEdges=g},89394:function(e,t,n){"use strict";var r=n(83861);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var s=r.min(r.map(e.outEdges(i),function(t){return n(t.w)-e.edge(t).minlen}));return(s===Number.POSITIVE_INFINITY||null==s)&&(s=0),o.rank=s})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},82453:function(e,t,n){"use strict";var r=n(83861),i=n(4732).Graph;function o(e,t,n,i){var o;do o=r.uniqueId(i);while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function s(e){return r.max(r.map(e.nodes(),function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n}))}e.exports={addDummyNode:o,simplify:function(e){var t=new i().setGraph(e.graph());return r.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t},successorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.outEdges(t),function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.inEdges(t),function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,l=e.width/2,u=e.height/2;if(!s&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*l>Math.abs(s)*u?(a<0&&(u=-u),n=u*s/a,r=u):(s<0&&(l=-l),n=l,r=l*a/s),{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(s(e)+1),function(){return[]});return r.forEach(e.nodes(),function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)}),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank}));r.forEach(e.nodes(),function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)})},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank})),n=[];r.forEach(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=e.graph().nodeRankFactor;r.forEach(n,function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,function(t){e.node(t).rank+=i})})},addBorderNode:function(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(e,"border",i,t)},maxRank:s,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},26521:function(e){e.exports="0.8.5"},83006:function(e,t,n){var r,i,o;i=[],void 0!==(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){a(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,n,s){var a=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,s):i(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(l.href)},4e4),setTimeout(function(){i(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e){var s;navigator.msSaveOrOpenBlob((void 0===(s=o)?s={autoBom:!1}:"object"!=typeof s&&(console.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),n)}else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){i(a)})}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});o.saveAs=a.saveAs=a,e.exports=a})?r.apply(t,i):r)&&(e.exports=o)},53784:function(e,t,n){var r=n(85816);e.exports={Graph:r.Graph,json:n(56495),alg:n(37610),version:r.version}},98268:function(e,t,n){var r=n(98252);e.exports=function(e){var t,n={},i=[];return r.each(e.nodes(),function(o){t=[],function i(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),i),r.each(e.predecessors(o),i))}(o),t.length&&i.push(t)}),i}},70727:function(e,t,n){var r=n(98252);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return r.each(t,function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);(function e(t,n,i,o,s,a){!r.has(o,n)&&(o[n]=!0,i||a.push(n),r.each(s(n),function(n){e(t,n,i,o,s,a)}),i&&a.push(n))})(e,t,"post"===n,s,i,o)}),o}},95151:function(e,t,n){var r=n(14985),i=n(98252);e.exports=function(e,t,n){return i.transform(e.nodes(),function(i,o){i[o]=r(e,o,t,n)},{})}},14985:function(e,t,n){var r=n(98252),i=n(14341);e.exports=function(e,t,n,r){return function(e,t,n,r){var o,s,a={},l=new i,u=function(e){var t=e.v!==o?e.v:e.w,r=a[t],i=n(e),u=s.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);u<r.distance&&(r.distance=u,r.predecessor=o,l.decrease(t,u))};for(e.nodes().forEach(function(e){var n=e===t?0:Number.POSITIVE_INFINITY;a[e]={distance:n},l.add(e,n)});l.size()>0&&(s=a[o=l.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(o).forEach(u);return a}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},56032:function(e,t,n){var r=n(98252),i=n(15946);e.exports=function(e){return r.filter(i(e),function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},57280:function(e,t,n){var r=n(98252);e.exports=function(e,t,n){var r,o,s,a;return r=t||i,o=n||function(t){return e.outEdges(t)},s={},(a=e.nodes()).forEach(function(e){s[e]={},s[e][e]={distance:0},a.forEach(function(t){e!==t&&(s[e][t]={distance:Number.POSITIVE_INFINITY})}),o(e).forEach(function(t){var n=t.v===e?t.w:t.v,i=r(t);s[e][n]={distance:i,predecessor:e}})}),a.forEach(function(e){var t=s[e];a.forEach(function(n){var r=s[n];a.forEach(function(n){var i=r[e],o=t[n],s=r[n],a=i.distance+o.distance;a<s.distance&&(s.distance=a,s.predecessor=o.predecessor)})})}),s};var i=r.constant(1)},37610:function(e,t,n){e.exports={components:n(98268),dijkstra:n(14985),dijkstraAll:n(95151),findCycles:n(56032),floydWarshall:n(57280),isAcyclic:n(25801),postorder:n(15599),preorder:n(6867),prim:n(52038),tarjan:n(15946),topsort:n(7223)}},25801:function(e,t,n){var r=n(7223);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},15599:function(e,t,n){var r=n(70727);e.exports=function(e,t){return r(e,t,"post")}},6867:function(e,t,n){var r=n(70727);e.exports=function(e,t){return r(e,t,"pre")}},52038:function(e,t,n){var r=n(98252),i=n(68329),o=n(14341);e.exports=function(e,t){var n,s=new i,a={},l=new o;function u(e){var r=e.v===n?e.w:e.v,i=l.priority(r);if(void 0!==i){var o=t(e);o<i&&(a[r]=n,l.decrease(r,o))}}if(0===e.nodeCount())return s;r.each(e.nodes(),function(e){l.add(e,Number.POSITIVE_INFINITY),s.setNode(e)}),l.decrease(e.nodes()[0],0);for(var c=!1;l.size()>0;){if(n=l.removeMin(),r.has(a,n))s.setEdge(n,a[n]);else if(c)throw Error("Input graph is not connected: "+e);else c=!0;e.nodeEdges(n).forEach(u)}return s}},15946:function(e,t,n){var r=n(98252);e.exports=function(e){var t=0,n=[],i={},o=[];return e.nodes().forEach(function(s){r.has(i,s)||function s(a){var l=i[a]={onStack:!0,lowlink:t,index:t++};if(n.push(a),e.successors(a).forEach(function(e){r.has(i,e)?i[e].onStack&&(l.lowlink=Math.min(l.lowlink,i[e].index)):(s(e),l.lowlink=Math.min(l.lowlink,i[e].lowlink))}),l.lowlink===l.index){var u,c=[];do i[u=n.pop()].onStack=!1,c.push(u);while(a!==u);o.push(c)}}(s)}),o}},7223:function(e,t,n){var r=n(98252);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),function s(a){if(r.has(n,a))throw new o;r.has(t,a)||(n[a]=!0,t[a]=!0,r.each(e.predecessors(a),s),delete n[a],i.push(a))}),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=Error()},14341:function(e,t,n){var r=n(98252);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(e){return e.key})},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},68329:function(e,t,n){"use strict";var r=n(98252);function i(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(e,t){e[t]?e[t]++:e[t]=1}function s(e,t){--e[t]||delete e[t]}function a(e,t,n,i){var o=""+t,s=""+n;if(!e&&o>s){var a=o;o=s,s=a}return o+"\x01"+s+"\x01"+(r.isUndefined(i)?"\0":i)}function l(e,t){return a(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},i.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},i.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,function(e){n.length>1?i.setNode(e,t):i.setNode(e)}),this},i.prototype.setNode=function(e,t){return r.has(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return r.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";else{t+="";for(var n=t;!r.isUndefined(n);n=this.parent(n))if(n===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var i={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var o=n.parent(r);return void 0===o||t.hasNode(o)?(i[r]=o,o):o in i?i[o]:e(o)}(e))}),t},i.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},i.prototype.setEdge=function(){var e,t,n,i,s=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(e=l.v,t=l.w,n=l.name,2==arguments.length&&(i=arguments[1],s=!0)):(e=l,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var u=a(this._isDirected,e,t,n);if(r.has(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(e,t,n);var c=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[u]=c,o(this._preds[t],e),o(this._sucs[e],t),this._in[t][u]=c,this._out[e][u]=c,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1==arguments.length?l(this._isDirected,arguments[0]):a(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var i=1==arguments.length?l(this._isDirected,arguments[0]):a(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(e,t,n){var r=1==arguments.length?l(this._isDirected,arguments[0]):a(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[t],e),s(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,function(e){return e.v===t}):i}},i.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,function(e){return e.w===t}):i}},i.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},85816:function(e,t,n){e.exports={Graph:n(68329),version:n(28861)}},56495:function(e,t,n){var r=n(98252),i=n(68329);e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:r.map(e.nodes(),function(t){var n=e.node(t),i=e.parent(t),o={v:t};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}),edges:r.map(e.edges(),function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i})};return r.isUndefined(e.graph())||(t.value=r.clone(e.graph())),t},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),r.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},98252:function(e,t,n){var r;try{r={clone:n(15058),constant:n(37730),each:n(24749),filter:n(20339),has:n(62833),isArray:n(53170),isEmpty:n(94765),isFunction:n(83137),isUndefined:n(80371),keys:n(53707),map:n(78923),reduce:n(92795),size:n(16257),transform:n(2088),union:n(99043),values:n(57319)}}catch(e){}r||(r=window._),e.exports=r},28861:function(e){e.exports="2.1.8"},55829:function(e,t,n){"use strict";var r=n(3326),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var v=s[g];if(!o[v]&&!(r&&r[v])&&!(m&&m[v])&&!(a&&a[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},9508:function(e,t,n){"use strict";n.d(t,{rT:function(){return Q}});let r=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function i(e){let t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}let o=null;function s(e={}){return o||(o=e.includeStyleProperties?e.includeStyleProperties:i(window.getComputedStyle(document.documentElement)))}function a(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function l(e,t={}){return{width:t.width||function(e){let t=a(e,"border-left-width"),n=a(e,"border-right-width");return e.clientWidth+t+n}(e),height:t.height||function(e){let t=a(e,"border-top-width"),n=a(e,"border-bottom-width");return e.clientHeight+t+n}(e)}}function u(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function c(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function d(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),c(i)}let f=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||f(n,t))};function h(e,t,n,i){let o=window.getComputedStyle(e,n),a=o.getPropertyValue("content");if(""===a||"none"===a)return;let l=r();try{t.className=`${t.className} ${l}`}catch(e){return}let u=document.createElement("style");u.appendChild(function(e,t,n,r){let i=`.${e}:${t}`,o=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):s(r).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${i}{${o}}`)}(l,n,o,i)),t.appendChild(u)}let p="application/font-woff",m="image/jpeg",g={woff:p,woff2:p,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:m,jpeg:m,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function v(e){return g[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function y(e){return -1!==e.search(/^(data:)/)}function b(e,t){return`data:${t};base64,${e}`}async function w(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(n({res:r,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)})}let x={};async function S(e,t,n){var r,i,o;let s,a;let l=(r=e,i=t,o=n.includeQueryParams,a=r.replace(/\?.*/,""),o&&(a=r),/ttf|otf|eot|woff2?/i.test(a)&&(a=a.replace(/.*\//,"")),i?`[${i}]${a}`:a);if(null!=x[l])return x[l];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await w(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));s=b(r,t)}catch(r){s=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return x[l]=s,s}async function k(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):u(t)}async function E(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),u(t.toDataURL())}let n=e.poster,r=v(n);return u(await S(n,r,t))}async function _(e,t){var n;try{if(null===(n=null==e?void 0:e.contentDocument)||void 0===n?void 0:n.body)return await P(e.contentDocument.body,t,!0)}catch(e){}return e.cloneNode(!1)}async function C(e,t){return f(e,HTMLCanvasElement)?k(e):f(e,HTMLVideoElement)?E(e,t):f(e,HTMLIFrameElement)?_(e,t):e.cloneNode(T(e))}let O=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase(),T=e=>null!=e.tagName&&"SVG"===e.tagName.toUpperCase();async function I(e,t,n){var r,o;if(T(t))return t;let s=[];return O(e)&&e.assignedNodes?s=i(e.assignedNodes()):f(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?s=i(e.contentDocument.body.childNodes):s=i((null!==(o=e.shadowRoot)&&void 0!==o?o:e).childNodes),0===s.length||f(e,HTMLVideoElement)||await s.reduce((e,r)=>e.then(()=>P(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function A(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;i<n.length;i++){let o=n[i].getAttribute("xlink:href");if(o){let n=e.querySelector(o),i=document.querySelector(o);n||!i||r[o]||(r[o]=await P(i,t,!0))}}let i=Object.values(r);if(i.length){let t="http://www.w3.org/1999/xhtml",n=document.createElementNS(t,"svg");n.setAttribute("xmlns",t),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";let r=document.createElementNS(t,"defs");n.appendChild(r);for(let e=0;e<i.length;e++)r.appendChild(i[e]);e.appendChild(n)}return e}async function P(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then(e=>C(e,t)).then(n=>I(e,n,t)).then(n=>{var r,i,o;return r=e,i=n,o=t,f(i,Element)&&(!function(e,t,n){let r=t.style;if(!r)return;let i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):s(n).forEach(n=>{let o=i.getPropertyValue(n);if("font-size"===n&&o.endsWith("px")){let e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}f(e,HTMLIFrameElement)&&"display"===n&&"inline"===o&&(o="block"),"d"===n&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(n,o,i.getPropertyPriority(n))})}(r,i,o),h(r,i,":before",o),h(r,i,":after",o),f(r,HTMLTextAreaElement)&&(i.innerHTML=r.value),f(r,HTMLInputElement)&&i.setAttribute("value",r.value),function(e,t){if(f(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(r,i)),i}).then(e=>A(e,t)):null}let R=/url\((['"]?)([^'"]+?)\1\)/g,M=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,j=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function N(e,t,n,r,i){try{let o;let s=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,a=v(t);if(i){let e=await i(s);o=b(e,a)}else o=await S(s,a,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${o}$3`)}catch(e){}return e}function D(e){return -1!==e.search(R)}async function L(e,t,n){if(!D(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(j,e=>{for(;;){let[n,,r]=M.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(R,(e,n,r)=>(t.push(r),e)),t.filter(e=>!y(e))})(r).reduce((e,r)=>e.then(e=>N(e,r,t,n)),Promise.resolve(r))}async function z(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await L(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function F(e,t){await z("background",e,t)||await z("background-image",e,t),await z("mask",e,t)||await z("-webkit-mask",e,t)||await z("mask-image",e,t)||await z("-webkit-mask-image",e,t)}async function B(e,t){let n=f(e,HTMLImageElement);if(!(n&&!y(e.src))&&!(f(e,SVGImageElement)&&!y(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await S(r,v(r),t);await new Promise((r,o)=>{e.onload=r,e.onerror=t.onImageErrorHandler?(...e)=>{try{r(t.onImageErrorHandler(...e))}catch(e){o(e)}}:o,e.decode&&(e.decode=r),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function $(e,t){let n=i(e.childNodes).map(e=>U(e,t));await Promise.all(n).then(()=>e)}async function U(e,t){f(e,Element)&&(await F(e,t),await B(e,t),await $(e,t))}let V={};async function q(e){let t=V[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},V[e]=t,t}async function W(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),w(o,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function H(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=o.exec(n)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function G(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{i(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1,s=e.href,a=q(s).then(e=>W(e,t)).then(e=>H(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?o+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(a)}})}catch(o){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(q(n.href).then(e=>W(e,t)).then(e=>H(e).forEach(e=>{i.insertRule(e,i.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{i(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function Z(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=i(e.ownerDocument.styleSheets);return(await G(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>D(e.style.getPropertyValue("src")))}function K(e){return e.trim().replace(/["']/g,"")}async function Y(e,t){let n=await Z(e,t),r=function(e){let t=new Set;return!function e(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(e=>{t.add(K(e))}),Array.from(n.children).forEach(t=>{t instanceof HTMLElement&&e(t)})}(e),t}(e);return(await Promise.all(n.filter(e=>r.has(K(e.style.fontFamily))).map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return L(e.cssText,n,t)}))).join("\n")}async function J(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await Y(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function X(e,t={}){let{width:n,height:r}=l(e,t),i=await P(e,t,!0);return await J(i,t),await U(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await d(i,n,r)}async function Q(e,t={}){let{width:n,height:r}=l(e,t),i=await X(e,t),o=await u(i),s=document.createElement("canvas"),a=s.getContext("2d"),c=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),d=t.canvasWidth||n,f=t.canvasHeight||r;return s.width=d*c,s.height=f*c,!t.skipAutoScale&&(s.width>16384||s.height>16384)&&(s.width>16384&&s.height>16384?s.width>s.height?(s.height*=16384/s.width,s.width=16384):(s.width*=16384/s.height,s.height=16384):s.width>16384?(s.height*=16384/s.width,s.width=16384):(s.width*=16384/s.height,s.height=16384)),s.style.width=`${d}`,s.style.height=`${f}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(o,0,0,s.width,s.height),s}},58450:function(e,t,n){e=n.nmd(e);var r,i,o,s,a,l,u,c,d,f,h,p="__lodash_hash_undefined__",m="[object Arguments]",g="[object Function]",v="[object Object]",y=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[m]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w[g]=w["[object Map]"]=w["[object Number]"]=w[v]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var x="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,k=x||S||Function("return this")(),E=t&&!t.nodeType&&t,_=E&&e&&!e.nodeType&&e,C=_&&_.exports===E,O=C&&x.process,T=function(){try{var e=_&&_.require&&_.require("util").types;if(e)return e;return O&&O.binding&&O.binding("util")}catch(e){}}(),I=T&&T.isTypedArray,A=Array.prototype,P=Function.prototype,R=Object.prototype,M=k["__core-js_shared__"],j=P.toString,N=R.hasOwnProperty,D=(u=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",L=R.toString,z=j.call(Object),F=RegExp("^"+j.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=C?k.Buffer:void 0,$=k.Symbol,U=k.Uint8Array,V=B?B.allocUnsafe:void 0,q=(c=Object.getPrototypeOf,d=Object,function(e){return c(d(e))}),W=Object.create,H=R.propertyIsEnumerable,G=A.splice,Z=$?$.toStringTag:void 0,K=function(){try{var e=eh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=B?B.isBuffer:void 0,J=Math.max,X=Date.now,Q=eh(k,"Map"),ee=eh(Object,"create"),et=function(){function e(){}return function(t){if(!e_(t))return{};if(W)return W(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function en(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function er(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eo(e){var t=this.__data__=new er(e);this.size=t.size}function es(e,t,n){(void 0===n||ey(e[t],n))&&(void 0!==n||t in e)||el(e,t,n)}function ea(e,t){for(var n=e.length;n--;)if(ey(e[n][0],t))return n;return -1}function el(e,t,n){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}en.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},en.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},en.prototype.get=function(e){var t=this.__data__;if(ee){var n=t[e];return n===p?void 0:n}return N.call(t,e)?t[e]:void 0},en.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:N.call(t,e)},en.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ee&&void 0===t?p:t,this},er.prototype.clear=function(){this.__data__=[],this.size=0},er.prototype.delete=function(e){var t=this.__data__,n=ea(t,e);return!(n<0)&&(n==t.length-1?t.pop():G.call(t,n,1),--this.size,!0)},er.prototype.get=function(e){var t=this.__data__,n=ea(t,e);return n<0?void 0:t[n][1]},er.prototype.has=function(e){return ea(this.__data__,e)>-1},er.prototype.set=function(e,t){var n=this.__data__,r=ea(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ei.prototype.clear=function(){this.size=0,this.__data__={hash:new en,map:new(Q||er),string:new en}},ei.prototype.delete=function(e){var t=ef(this,e).delete(e);return this.size-=t?1:0,t},ei.prototype.get=function(e){return ef(this,e).get(e)},ei.prototype.has=function(e){return ef(this,e).has(e)},ei.prototype.set=function(e,t){var n=ef(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},eo.prototype.clear=function(){this.__data__=new er,this.size=0},eo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},eo.prototype.get=function(e){return this.__data__.get(e)},eo.prototype.has=function(e){return this.__data__.has(e)},eo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof er){var r=n.__data__;if(!Q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ei(r)}return n.set(e,t),this.size=n.size,this};var eu=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),s=o.length;s--;){var a=o[++r];if(!1===t(i[a],a,i))break}return e};function ec(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=N.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var i=L.call(e);return r&&(t?e[Z]=n:delete e[Z]),i}(e):L.call(e)}function ed(e){return eC(e)&&ec(e)==m}function ef(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eh(e,t){var n=null==e?void 0:e[t];return!(!e_(n)||D&&D in n)&&(ek(n)?F:y).test(function(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function ep(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&b.test(e))&&e>-1&&e%1==0&&e<t}function em(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}function eg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ev=(r=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eA,i=0,o=0,function(){var e=X(),t=16-(e-o);if(o=e,t>0){if(++i>=800)return arguments[0]}else i=0;return r.apply(void 0,arguments)});function ey(e,t){return e===t||e!=e&&t!=t}var eb=ed(function(){return arguments}())?ed:function(e){return eC(e)&&N.call(e,"callee")&&!H.call(e,"callee")},ew=Array.isArray;function ex(e){return null!=e&&eE(e.length)&&!ek(e)}var eS=Y||function(){return!1};function ek(e){if(!e_(e))return!1;var t=ec(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eE(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function e_(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eC(e){return null!=e&&"object"==typeof e}var eO=I?function(e){return I(e)}:function(e){return eC(e)&&eE(e.length)&&!!w[ec(e)]};function eT(e){return ex(e)?function(e,t){var n=ew(e),r=!n&&eb(e),i=!n&&!r&&eS(e),o=!n&&!r&&!i&&eO(e),s=n||r||i||o,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var u in e)(t||N.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ep(u,l)))&&a.push(u);return a}(e,!0):function(e){if(!e_(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=em(e),n=[];for(var r in e)"constructor"==r&&(t||!N.call(e,r))||n.push(r);return n}(e)}var eI=(f=function(e,t,n,r){!function e(t,n,r,i,o){t!==n&&eu(n,function(s,a){if(o||(o=new eo),e_(s))(function(e,t,n,r,i,o,s){var a=eg(e,n),l=eg(t,n),u=s.get(l);if(u){es(e,n,u);return}var c=o?o(a,l,n+"",e,t,s):void 0,d=void 0===c;if(d){var f,h,p,m=ew(l),g=!m&&eS(l),y=!m&&!g&&eO(l);c=l,m||g||y?ew(a)?c=a:eC(a)&&ex(a)?c=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(a):g?(d=!1,c=function(e,t){if(t)return e.slice();var n=e.length,r=V?V(n):new e.constructor(n);return e.copy(r),r}(l,!0)):y?(d=!1,new U(h=new(f=l.buffer).constructor(f.byteLength)).set(new U(f)),p=h,c=new l.constructor(p,l.byteOffset,l.length)):c=[]:function(e){if(!eC(e)||ec(e)!=v)return!1;var t=q(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&j.call(n)==z}(l)||eb(l)?(c=a,eb(a)?c=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=void 0;void 0===l&&(l=e[a]),i?el(n,a,l):function(e,t,n){var r=e[t];N.call(e,t)&&ey(r,n)&&(void 0!==n||t in e)||el(e,t,n)}(n,a,l)}return n}(a,eT(a)):(!e_(a)||ek(a))&&(c="function"!=typeof l.constructor||em(l)?{}:et(q(l)))):d=!1}d&&(s.set(l,c),i(c,l,r,o,s),s.delete(l)),es(e,n,c)})(t,n,a,r,e,i,o);else{var l=i?i(eg(t,a),s,a+"",t,n,o):void 0;void 0===l&&(l=s),es(t,a,l)}},eT)}(e,t,n,r)},ev((s=h=function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=f.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!e_(n))return!1;var r=typeof t;return("number"==r?!!(ex(n)&&ep(t,n.length)):"string"==r&&(t in n))&&ey(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var s=t[n];s&&f(e,s,n,i)}return e},a=void 0,l=eA,a=J(void 0===a?s.length-1:a,0),function(){for(var e=arguments,t=-1,n=J(e.length-a,0),r=Array(n);++t<n;)r[t]=e[a+t];t=-1;for(var i=Array(a+1);++t<a;)i[t]=e[t];return i[a]=l(r),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(s,this,i)}),h+""));function eA(e){return e}e.exports=eI},65684:function(e,t,n){var r=n(72719)(n(33427),"DataView");e.exports=r},33608:function(e,t,n){var r=n(98863),i=n(65958),o=n(67323),s=n(10372),a=n(19545);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},18016:function(e,t,n){var r=n(78037),i=n(53001),o=n(683),s=n(83148),a=n(85877);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},6223:function(e,t,n){var r=n(72719)(n(33427),"Map");e.exports=r},58990:function(e,t,n){var r=n(76166),i=n(50153),o=n(21897),s=n(90381),a=n(24878);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},11577:function(e,t,n){var r=n(72719)(n(33427),"Promise");e.exports=r},42713:function(e,t,n){var r=n(72719)(n(33427),"Set");e.exports=r},43302:function(e,t,n){var r=n(58990),i=n(89325),o=n(69032);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports=s},16214:function(e,t,n){var r=n(18016),i=n(96951),o=n(27441),s=n(9476),a=n(48661),l=n(56903);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=l,e.exports=u},77624:function(e,t,n){var r=n(33427).Symbol;e.exports=r},57821:function(e,t,n){var r=n(33427).Uint8Array;e.exports=r},25062:function(e,t,n){var r=n(72719)(n(33427),"WeakMap");e.exports=r},62112:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},24996:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},70903:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}},3550:function(e,t,n){var r=n(50449);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},25927:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},6517:function(e,t,n){var r=n(49776),i=n(31474),o=n(53170),s=n(81430),a=n(16770),l=n(50762),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&s(e),f=!n&&!c&&!d&&l(e),h=n||c||d||f,p=h?r(e.length,String):[],m=p.length;for(var g in e)(t||u.call(e,g))&&!(h&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m)))&&p.push(g);return p}},9157:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},4578:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},23905:function(e){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},53755:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},65353:function(e,t,n){var r=n(90341)("length");e.exports=r},48436:function(e,t,n){var r=n(88355),i=n(37414);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},31258:function(e,t,n){var r=n(88355),i=n(37414),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},88938:function(e,t,n){var r=n(37414);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},95770:function(e,t,n){var r=n(80209),i=n(53707);e.exports=function(e,t){return e&&r(t,i(t),e)}},47115:function(e,t,n){var r=n(80209),i=n(85586);e.exports=function(e,t){return e&&r(t,i(t),e)}},88355:function(e,t,n){var r=n(71862);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},54269:function(e,t,n){var r=n(16214),i=n(24996),o=n(31258),s=n(95770),a=n(47115),l=n(934),u=n(72754),c=n(83769),d=n(42160),f=n(82457),h=n(10813),p=n(90315),m=n(67496),g=n(16550),v=n(59712),y=n(53170),b=n(81430),w=n(463),x=n(33747),S=n(9246),k=n(53707),E=n(85586),_="[object Arguments]",C="[object Function]",O="[object Object]",T={};T[_]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[O]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[C]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,I,A,P,R){var M,j=1&n,N=2&n,D=4&n;if(I&&(M=P?I(t,A,P,R):I(t)),void 0!==M)return M;if(!x(t))return t;var L=y(t);if(L){if(M=m(t),!j)return u(t,M)}else{var z=p(t),F=z==C||"[object GeneratorFunction]"==z;if(b(t))return l(t,j);if(z==O||z==_||F&&!P){if(M=N||F?{}:v(t),!j)return N?d(t,a(M,t)):c(t,s(M,t))}else{if(!T[z])return P?t:{};M=g(t,z,j)}}R||(R=new r);var B=R.get(t);if(B)return B;R.set(t,M),S(t)?t.forEach(function(r){M.add(e(r,n,I,r,t,R))}):w(t)&&t.forEach(function(r,i){M.set(i,e(r,n,I,i,t,R))});var $=D?N?h:f:N?E:k,U=L?void 0:$(t);return i(U||t,function(r,i){U&&(r=t[i=r]),o(M,i,e(r,n,I,i,t,R))}),M}},92603:function(e,t,n){var r=n(33747),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},94273:function(e,t,n){var r=n(14357),i=n(84639)(r);e.exports=i},86435:function(e,t,n){var r=n(35711);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(void 0===l?a==a&&!r(a):n(a,l)))var l=a,u=s}return u}},23376:function(e,t,n){var r=n(94273);e.exports=function(e,t){var n=[];return r(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},26560:function(e){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return -1}},57169:function(e,t,n){var r=n(4578),i=n(54148);e.exports=function e(t,n,o,s,a){var l=-1,u=t.length;for(o||(o=i),a||(a=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,s,a):r(a,c):s||(a[a.length]=c)}return a}},68091:function(e,t,n){var r=n(32243)();e.exports=r},14357:function(e,t,n){var r=n(68091),i=n(53707);e.exports=function(e,t){return e&&r(e,t,i)}},22008:function(e,t,n){var r=n(74646),i=n(71323);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},69112:function(e,t,n){var r=n(4578),i=n(53170);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},99852:function(e,t,n){var r=n(77624),i=n(75123),o=n(24629),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},88289:function(e){e.exports=function(e,t){return e>t}},32076:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},37775:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},50449:function(e,t,n){var r=n(26560),i=n(42840),o=n(36369);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},43652:function(e,t,n){var r=n(99852),i=n(63095);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},11260:function(e,t,n){var r=n(66084),i=n(63095);e.exports=function e(t,n,o,s,a){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,s,e,a):t!=t&&n!=n)}},66084:function(e,t,n){var r=n(16214),i=n(92176),o=n(29033),s=n(47781),a=n(90315),l=n(53170),u=n(81430),c=n(50762),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:a(e),x=b?f:a(t);w=w==d?h:w,x=x==d?h:x;var S=w==h,k=x==h,E=w==x;if(E&&u(e)){if(!u(t))return!1;y=!0,S=!1}if(E&&!S)return v||(v=new r),y||c(e)?i(e,t,n,m,g,v):o(e,t,w,n,m,g,v);if(!(1&n)){var _=S&&p.call(e,"__wrapped__"),C=k&&p.call(t,"__wrapped__");if(_||C){var O=_?e.value():e,T=C?t.value():t;return v||(v=new r),g(O,T,n,m,v)}}return!!E&&(v||(v=new r),s(e,t,n,m,g,v))}},62033:function(e,t,n){var r=n(90315),i=n(63095);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},15246:function(e,t,n){var r=n(16214),i=n(11260);e.exports=function(e,t,n,o){var s=n.length,a=s,l=!o;if(null==e)return!a;for(e=Object(e);s--;){var u=n[s];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<a;){var c=(u=n[s])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(o)var p=o(d,f,c,e,t,h);if(!(void 0===p?i(f,d,3,o,h):p))return!1}}return!0}},42840:function(e){e.exports=function(e){return e!=e}},30788:function(e,t,n){var r=n(83137),i=n(93802),o=n(33747),s=n(88217),a=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:a).test(s(e))}},3657:function(e,t,n){var r=n(90315),i=n(63095);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},92977:function(e,t,n){var r=n(99852),i=n(23558),o=n(63095),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[r(e)]}},80929:function(e,t,n){var r=n(82888),i=n(96223),o=n(42639),s=n(53170),a=n(33646);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):a(e)}},17236:function(e,t,n){var r=n(52801),i=n(37515),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},78657:function(e,t,n){var r=n(33747),i=n(52801),o=n(15815),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var a in e)"constructor"==a&&(t||!s.call(e,a))||n.push(a);return n}},56094:function(e){e.exports=function(e,t){return e<t}},58781:function(e,t,n){var r=n(94273),i=n(13359);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},82888:function(e,t,n){var r=n(15246),i=n(45235),o=n(13615);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},96223:function(e,t,n){var r=n(11260),i=n(23928),o=n(91430),s=n(40383),a=n(86454),l=n(13615),u=n(71323);e.exports=function(e,t){return s(e)&&a(t)?l(u(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?o(n,e):r(t,s,3)}}},1753:function(e,t,n){var r=n(16214),i=n(48436),o=n(68091),s=n(85603),a=n(33747),l=n(85586),u=n(51927);e.exports=function e(t,n,c,d,f){t!==n&&o(n,function(o,l){if(f||(f=new r),a(o))s(t,n,l,c,e,d,f);else{var h=d?d(u(t,l),o,l+"",t,n,f):void 0;void 0===h&&(h=o),i(t,l,h)}},l)}},85603:function(e,t,n){var r=n(48436),i=n(934),o=n(69645),s=n(72754),a=n(59712),l=n(31474),u=n(53170),c=n(63489),d=n(81430),f=n(83137),h=n(33747),p=n(27529),m=n(50762),g=n(51927),v=n(87943);e.exports=function(e,t,n,y,b,w,x){var S=g(e,n),k=g(t,n),E=x.get(k);if(E){r(e,n,E);return}var _=w?w(S,k,n+"",e,t,x):void 0,C=void 0===_;if(C){var O=u(k),T=!O&&d(k),I=!O&&!T&&m(k);_=k,O||T||I?u(S)?_=S:c(S)?_=s(S):T?(C=!1,_=i(k,!0)):I?(C=!1,_=o(k,!0)):_=[]:p(k)||l(k)?(_=S,l(S)?_=v(S):(!h(S)||f(S))&&(_=a(k))):C=!1}C&&(x.set(k,_),b(_,k,y,w,x),x.delete(k)),r(e,n,_)}},56263:function(e,t,n){var r=n(9157),i=n(22008),o=n(80929),s=n(58781),a=n(7319),l=n(38993),u=n(56921),c=n(42639),d=n(53170);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var f=-1;return t=r(t,l(o)),a(s(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return u(e,t,n)})}},53690:function(e,t,n){var r=n(65259),i=n(91430);e.exports=function(e,t){return r(e,t,function(t,n){return i(e,n)})}},65259:function(e,t,n){var r=n(22008),i=n(61284),o=n(74646);e.exports=function(e,t,n){for(var s=-1,a=t.length,l={};++s<a;){var u=t[s],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},90341:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},93024:function(e,t,n){var r=n(22008);e.exports=function(e){return function(t){return r(t,e)}}},71721:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var s=-1,a=n(t((r-e)/(i||1)),0),l=Array(a);a--;)l[o?a:++s]=e,e+=i;return l}},41716:function(e){e.exports=function(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}},37078:function(e,t,n){var r=n(42639),i=n(41201),o=n(73239);e.exports=function(e,t){return o(i(e,t,r),e+"")}},61284:function(e,t,n){var r=n(31258),i=n(74646),o=n(16770),s=n(33747),a=n(71323);e.exports=function(e,t,n,l){if(!s(e))return e;t=i(t,e);for(var u=-1,c=t.length,d=c-1,f=e;null!=f&&++u<c;){var h=a(t[u]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(u!=d){var m=f[h];void 0===(p=l?l(m,h,f):void 0)&&(p=s(m)?m:o(t[u+1])?[]:{})}r(f,h,p),f=f[h]}return e}},60311:function(e,t,n){var r=n(37730),i=n(71862),o=n(42639),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=s},7319:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},49776:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},28978:function(e,t,n){var r=n(77624),i=n(9157),o=n(53170),s=n(35711),a=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}},30104:function(e,t,n){var r=n(8852),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},38993:function(e){e.exports=function(e){return function(t){return e(t)}}},91808:function(e,t,n){var r=n(43302),i=n(3550),o=n(25927),s=n(472),a=n(98556),l=n(42724);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=o;else if(d>=200){var m=t?null:a(e);if(m)return l(m);f=!1,c=s,p=new r}else p=t?[]:h;e:for(;++u<d;){var g=e[u],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v==v){for(var y=p.length;y--;)if(p[y]===v)continue e;t&&p.push(v),h.push(g)}else c(p,v,n)||(p!==h&&p.push(v),h.push(g))}return h}},86407:function(e,t,n){var r=n(9157);e.exports=function(e,t){return r(t,function(t){return e[t]})}},71964:function(e){e.exports=function(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var a=r<o?t[r]:void 0;n(s,e[r],a)}return s}},472:function(e){e.exports=function(e,t){return e.has(t)}},23630:function(e,t,n){var r=n(42639);e.exports=function(e){return"function"==typeof e?e:r}},74646:function(e,t,n){var r=n(53170),i=n(40383),o=n(38619),s=n(62912);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(s(e))}},91547:function(e,t,n){var r=n(57821);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},934:function(e,t,n){e=n.nmd(e);var r=n(33427),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}},72384:function(e,t,n){var r=n(91547);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},70864:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70927:function(e,t,n){var r=n(77624),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},69645:function(e,t,n){var r=n(91547);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},21937:function(e,t,n){var r=n(35711);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,s=r(e),a=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&e<t||c&&n&&o&&!i&&!s||l&&n&&o||!a&&o||!u)return -1}return 0}},56921:function(e,t,n){var r=n(21937);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,s=t.criteria,a=o.length,l=n.length;++i<a;){var u=r(o[i],s[i]);if(u){if(i>=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},72754:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},80209:function(e,t,n){var r=n(31258),i=n(88355);e.exports=function(e,t,n,o){var s=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var u=t[a],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),s?i(n,u,c):r(n,u,c)}return n}},83769:function(e,t,n){var r=n(80209),i=n(17186);e.exports=function(e,t){return r(e,i(e),t)}},42160:function(e,t,n){var r=n(80209),i=n(67458);e.exports=function(e,t){return r(e,i(e),t)}},76260:function(e,t,n){var r=n(33427)["__core-js_shared__"];e.exports=r},74726:function(e,t,n){var r=n(37078),i=n(82569);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,s)}return t})}},84639:function(e,t,n){var r=n(13359);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,s=t?o:-1,a=Object(n);(t?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},32243:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}},1704:function(e,t,n){var r=n(80929),i=n(13359),o=n(53707);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(a[e],e,a)}}var u=e(t,n,s);return u>-1?a[l?t[u]:u]:void 0}}},1252:function(e,t,n){var r=n(71721),i=n(82569),o=n(20544);e.exports=function(e){return function(t,n,s){return s&&"number"!=typeof s&&i(t,n,s)&&(n=s=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),s=void 0===s?t<n?1:-1:o(s),r(t,n,s,e)}}},98556:function(e,t,n){var r=n(42713),i=n(81250),o=n(42724),s=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=s},71862:function(e,t,n){var r=n(72719),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},92176:function(e,t,n){var r=n(43302),i=n(53755),o=n(472);e.exports=function(e,t,n,s,a,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var v=e[p],y=t[p];if(s)var b=u?s(y,v,p,t,e,l):s(v,y,p,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(v===e||a(v,e,n,s,l)))return g.push(t)})){m=!1;break}}else if(!(v===y||a(v,y,n,s,l))){m=!1;break}}return l.delete(e),l.delete(t),m}},29033:function(e,t,n){var r=n(77624),i=n(57821),o=n(37414),s=n(92176),a=n(89006),l=n(42724),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)break;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=s(h(e),h(t),r,u,d,f);return f.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},47781:function(e,t,n){var r=n(82457),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=l;++d<c;){var v=e[f=u[d]],y=t[f];if(o)var b=l?o(y,v,f,t,e,a):o(v,y,f,e,t,a);if(!(void 0===b?v===y||s(v,y,n,o,a):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(m=!1)}return a.delete(e),a.delete(t),m}},25589:function(e,t,n){var r=n(1771),i=n(41201),o=n(73239);e.exports=function(e){return o(i(e,void 0,r),e+"")}},48590:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},82457:function(e,t,n){var r=n(69112),i=n(17186),o=n(53707);e.exports=function(e){return r(e,o,i)}},10813:function(e,t,n){var r=n(69112),i=n(67458),o=n(85586);e.exports=function(e){return r(e,o,i)}},3111:function(e,t,n){var r=n(6118);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},45235:function(e,t,n){var r=n(86454),i=n(53707);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,r(s)]}return t}},72719:function(e,t,n){var r=n(30788),i=n(17683);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},44841:function(e,t,n){var r=n(35918)(Object.getPrototypeOf,Object);e.exports=r},75123:function(e,t,n){var r=n(77624),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},17186:function(e,t,n){var r=n(70903),i=n(49752),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:r(s(e=Object(e)),function(t){return o.call(e,t)})}:i;e.exports=a},67458:function(e,t,n){var r=n(4578),i=n(44841),o=n(17186),s=n(49752),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:s;e.exports=a},90315:function(e,t,n){var r=n(65684),i=n(6223),o=n(11577),s=n(42713),a=n(25062),l=n(99852),u=n(88217),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",m=u(r),g=u(i),v=u(o),y=u(s),b=u(a),w=l;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=c||o&&w(o.resolve())!=d||s&&w(new s)!=f||a&&w(new a)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return p;case g:return c;case v:return d;case y:return f;case b:return h}return t}),e.exports=w},17683:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},91919:function(e,t,n){var r=n(74646),i=n(31474),o=n(53170),s=n(16770),a=n(23558),l=n(71323);e.exports=function(e,t,n){t=r(t,e);for(var u=-1,c=t.length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&a(c)&&s(f,c)&&(o(e)||i(e))}},91863:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},98863:function(e,t,n){var r=n(10964);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},65958:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},67323:function(e,t,n){var r=n(10964),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},10372:function(e,t,n){var r=n(10964),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},19545:function(e,t,n){var r=n(10964);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},67496:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},16550:function(e,t,n){var r=n(91547),i=n(72384),o=n(70864),s=n(70927),a=n(69645);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return s(e)}}},59712:function(e,t,n){var r=n(92603),i=n(44841),o=n(52801);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},54148:function(e,t,n){var r=n(77624),i=n(31474),o=n(53170),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(s&&e&&e[s])}},16770:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},82569:function(e,t,n){var r=n(37414),i=n(13359),o=n(16770),s=n(33747);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return("number"==a?!!(i(n)&&o(t,n.length)):"string"==a&&t in n)&&r(n[t],e)}},40383:function(e,t,n){var r=n(53170),i=n(35711),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},6118:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},93802:function(e,t,n){var r,i=n(76260),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},52801:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},86454:function(e,t,n){var r=n(33747);e.exports=function(e){return e==e&&!r(e)}},78037:function(e){e.exports=function(){this.__data__=[],this.size=0}},53001:function(e,t,n){var r=n(88938),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},683:function(e,t,n){var r=n(88938);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},83148:function(e,t,n){var r=n(88938);e.exports=function(e){return r(this.__data__,e)>-1}},85877:function(e,t,n){var r=n(88938);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},76166:function(e,t,n){var r=n(33608),i=n(18016),o=n(6223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},50153:function(e,t,n){var r=n(3111);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},21897:function(e,t,n){var r=n(3111);e.exports=function(e){return r(this,e).get(e)}},90381:function(e,t,n){var r=n(3111);e.exports=function(e){return r(this,e).has(e)}},24878:function(e,t,n){var r=n(3111);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},89006:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},13615:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},51599:function(e,t,n){var r=n(51984);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},10964:function(e,t,n){var r=n(72719)(Object,"create");e.exports=r},37515:function(e,t,n){var r=n(35918)(Object.keys,Object);e.exports=r},15815:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},88958:function(e,t,n){e=n.nmd(e);var r=n(48590),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},24629:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},35918:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},41201:function(e,t,n){var r=n(62112),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=o[s];return u[t]=n(l),r(e,this,u)}}},33427:function(e,t,n){var r=n(48590),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},51927:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},89325:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},69032:function(e){e.exports=function(e){return this.__data__.has(e)}},42724:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},73239:function(e,t,n){var r=n(60311),i=n(58331)(r);e.exports=i},58331:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},96951:function(e,t,n){var r=n(18016);e.exports=function(){this.__data__=new r,this.size=0}},27441:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},9476:function(e){e.exports=function(e){return this.__data__.get(e)}},48661:function(e){e.exports=function(e){return this.__data__.has(e)}},56903:function(e,t,n){var r=n(18016),i=n(6223),o=n(58990);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},36369:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}},98397:function(e,t,n){var r=n(65353),i=n(91863),o=n(57851);e.exports=function(e){return i(e)?o(e):r(e)}},38619:function(e,t,n){var r=n(51599),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=s},71323:function(e,t,n){var r=n(35711),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},88217:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8852:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},57851:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+a+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,s,"["+t+"]"].join("|")+")"+(l+a+u),"g");e.exports=function(e){for(var t=c.lastIndex=0;c.test(e);)++t;return t}},15058:function(e,t,n){var r=n(54269);e.exports=function(e){return r(e,4)}},92367:function(e,t,n){var r=n(54269);e.exports=function(e){return r(e,5)}},37730:function(e){e.exports=function(e){return function(){return e}}},65581:function(e,t,n){var r=n(33747),i=n(9859),o=n(64942),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function w(){var e,n,r,o=i();if(b(o))return x(o);f=setTimeout(w,(e=o-h,n=o-p,r=t-e,g?a(r,c-n):r))}function x(e){return(f=void 0,v&&l)?y(e):(l=u=void 0,d)}function S(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(w,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(w,t),y(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?s(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},S.flush=function(){return void 0===f?d:x(i())},S}},69174:function(e,t,n){var r=n(37078),i=n(37414),o=n(82569),s=n(85586),a=Object.prototype,l=a.hasOwnProperty,u=r(function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&o(t[0],t[1],u)&&(r=1);++n<r;)for(var c=t[n],d=s(c),f=-1,h=d.length;++f<h;){var p=d[f],m=e[p];(void 0===m||i(m,a[p])&&!l.call(e,p))&&(e[p]=c[p])}return e});e.exports=u},24749:function(e,t,n){e.exports=n(86087)},37414:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},20339:function(e,t,n){var r=n(70903),i=n(23376),o=n(80929),s=n(53170);e.exports=function(e,t){return(s(e)?r:i)(e,o(t,3))}},61188:function(e,t,n){var r=n(1704)(n(10867));e.exports=r},10867:function(e,t,n){var r=n(26560),i=n(80929),o=n(89408),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return -1;var l=null==n?0:o(n);return l<0&&(l=s(a+l,0)),r(e,i(t,3),l)}},1771:function(e,t,n){var r=n(57169);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},86087:function(e,t,n){var r=n(24996),i=n(94273),o=n(23630),s=n(53170);e.exports=function(e,t){return(s(e)?r:i)(e,o(t))}},19360:function(e,t,n){var r=n(68091),i=n(23630),o=n(85586);e.exports=function(e,t){return null==e?e:r(e,i(t),o)}},23928:function(e,t,n){var r=n(22008);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},62833:function(e,t,n){var r=n(32076),i=n(91919);e.exports=function(e,t){return null!=e&&i(e,t,r)}},91430:function(e,t,n){var r=n(37775),i=n(91919);e.exports=function(e,t){return null!=e&&i(e,t,r)}},42639:function(e){e.exports=function(e){return e}},31474:function(e,t,n){var r=n(43652),i=n(63095),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},53170:function(e){var t=Array.isArray;e.exports=t},13359:function(e,t,n){var r=n(83137),i=n(23558);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},63489:function(e,t,n){var r=n(13359),i=n(63095);e.exports=function(e){return i(e)&&r(e)}},81430:function(e,t,n){e=n.nmd(e);var r=n(33427),i=n(62280),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?r.Buffer:void 0,l=a?a.isBuffer:void 0;e.exports=l||i},94765:function(e,t,n){var r=n(17236),i=n(90315),o=n(31474),s=n(53170),a=n(13359),l=n(81430),u=n(52801),c=n(50762),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},83137:function(e,t,n){var r=n(99852),i=n(33747);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},23558:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},463:function(e,t,n){var r=n(62033),i=n(38993),o=n(88958),s=o&&o.isMap,a=s?i(s):r;e.exports=a},54483:function(e,t,n){var r=n(99852),i=n(63095);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},33747:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},63095:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},27529:function(e,t,n){var r=n(99852),i=n(44841),o=n(63095),s=Object.prototype,a=Function.prototype.toString,l=s.hasOwnProperty,u=a.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},9246:function(e,t,n){var r=n(3657),i=n(38993),o=n(88958),s=o&&o.isSet,a=s?i(s):r;e.exports=a},74925:function(e,t,n){var r=n(99852),i=n(53170),o=n(63095);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},35711:function(e,t,n){var r=n(99852),i=n(63095);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},50762:function(e,t,n){var r=n(92977),i=n(38993),o=n(88958),s=o&&o.isTypedArray,a=s?i(s):r;e.exports=a},80371:function(e){e.exports=function(e){return void 0===e}},53707:function(e,t,n){var r=n(6517),i=n(17236),o=n(13359);e.exports=function(e){return o(e)?r(e):i(e)}},85586:function(e,t,n){var r=n(6517),i=n(78657),o=n(13359);e.exports=function(e){return o(e)?r(e,!0):i(e)}},39046:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},78923:function(e,t,n){var r=n(9157),i=n(80929),o=n(58781),s=n(53170);e.exports=function(e,t){return(s(e)?r:o)(e,i(t,3))}},72952:function(e,t,n){var r=n(88355),i=n(14357),o=n(80929);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},60926:function(e,t,n){var r=n(86435),i=n(88289),o=n(42639);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},51984:function(e,t,n){var r=n(58990);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},44892:function(e,t,n){var r=n(1753),i=n(74726)(function(e,t,n){r(e,t,n)});e.exports=i},35093:function(e,t,n){var r=n(86435),i=n(56094),o=n(42639);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},22789:function(e,t,n){var r=n(86435),i=n(80929),o=n(56094);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},81250:function(e){e.exports=function(){}},9859:function(e,t,n){var r=n(33427);e.exports=function(){return r.Date.now()}},98826:function(e,t,n){var r=n(53690),i=n(25589)(function(e,t){return null==e?{}:r(e,t)});e.exports=i},33646:function(e,t,n){var r=n(90341),i=n(93024),o=n(40383),s=n(71323);e.exports=function(e){return o(e)?r(s(e)):i(e)}},23268:function(e,t,n){var r=n(1252)();e.exports=r},92795:function(e,t,n){var r=n(23905),i=n(94273),o=n(80929),s=n(41716),a=n(53170);e.exports=function(e,t,n){var l=a(e)?r:s,u=arguments.length<3;return l(e,o(t,4),n,u,i)}},16257:function(e,t,n){var r=n(17236),i=n(90315),o=n(13359),s=n(74925),a=n(98397);e.exports=function(e){if(null==e)return 0;if(o(e))return s(e)?a(e):e.length;var t=i(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},17639:function(e,t,n){var r=n(57169),i=n(56263),o=n(37078),s=n(82569),a=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=a},49752:function(e){e.exports=function(){return[]}},62280:function(e){e.exports=function(){return!1}},38158:function(e,t,n){var r=n(65581),i=n(33747);e.exports=function(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}},20544:function(e,t,n){var r=n(64942),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},89408:function(e,t,n){var r=n(20544);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},64942:function(e,t,n){var r=n(30104),i=n(33747),o=n(35711),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?s:+e}},87943:function(e,t,n){var r=n(80209),i=n(85586);e.exports=function(e){return r(e,i(e))}},62912:function(e,t,n){var r=n(28978);e.exports=function(e){return null==e?"":r(e)}},2088:function(e,t,n){var r=n(24996),i=n(92603),o=n(14357),s=n(80929),a=n(44841),l=n(53170),u=n(81430),c=n(83137),d=n(33747),f=n(50762);e.exports=function(e,t,n){var h=l(e),p=h||u(e)||f(e);if(t=s(t,4),null==n){var m=e&&e.constructor;n=p?h?new m:[]:d(e)&&c(m)?i(a(e)):{}}return(p?r:o)(e,function(e,r,i){return t(n,e,r,i)}),n}},99043:function(e,t,n){var r=n(57169),i=n(37078),o=n(91808),s=n(63489),a=i(function(e){return o(r(e,1,s,!0))});e.exports=a},26322:function(e,t,n){var r=n(62912),i=0;e.exports=function(e){var t=++i;return r(e)+t}},57319:function(e,t,n){var r=n(86407),i=n(53707);e.exports=function(e){return null==e?[]:r(e,i(e))}},10584:function(e,t,n){var r=n(31258),i=n(71964);e.exports=function(e,t){return i(e||[],t||[],r)}},24998:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n,i,o=0;o<e.length;o++)if(!((n=e[o])===(i=t[o])||r(n)&&r(i)))return!1;return!0}function o(e,t){void 0===t&&(t=i);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}},79294:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(44491)},81503:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),c=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(function(e,t,r){for(var i,o=[],s=t;s<r;s+=3)o.push(n[(i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),a.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var i=function(e){if(a.isBuffer(e)){var t,n=0|f(e.length),r=s(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return r?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=A[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return y(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=t,o=n,0===i&&o===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else -1!==c&&(o-=o-c),c=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}function y(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function b(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function x(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(I(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,i){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,l=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],s=c[d];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,u,c,d,f,h,p,m,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var v=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(a!=a)break;e[n+s]=a}return s}(this,e,t,n);case"utf8":case"utf-8":return l=t,u=n,T(_(e,this.length-l),this,l,u);case"ascii":return c=t,d=n,T(C(e),this,c,d);case"latin1":case"binary":return i=this,o=e,s=t,a=n,T(C(o),i,s,a);case"base64":return f=t,h=n,T(O(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,m=n,T(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-p),this,p,m);default:if(v)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),v=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,s=0;for(this[t]=255&e;++s<n&&(o*=256);)this[t+s]=e/o&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),l=s.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function _(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function O(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=u}return(h?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+h]=255&s,h+=p,s/=256,u-=8);e[n+h-p]|=128*m}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(72);e.exports=i}()},51036:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else if(47===n)break;else n=47;if(47===n){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,s=arguments.length-1;s>=-1&&!o;s--)s>=0?r=arguments[s]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,s=o-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,u=s<l?s:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else s>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(a+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!s){i=r+1;break}}else -1===l&&(s=!1,l=r+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(o=r):(a=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){i=r+1;break}}else -1===o&&(s=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47===l){if(!o){r=a+1;break}continue}-1===i&&(o=!1,i=a+1),46===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return -1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){a=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===s?s=c:1!==d&&(d=1):-1!==s&&(d=-1)}return -1===s||-1===l||0===d||1===d&&s===l-1&&s===a+1?-1!==l&&(0===a&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(a,l)):(0===a&&o?(r.name=e.slice(1,s),r.base=e.slice(1,l)):(r.name=e.slice(a,s),r.base=e.slice(a,l)),r.ext=e.slice(s,l)),a>0?r.dir=e.slice(0,a-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},44491:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},67824:function(e,t,n){"use strict";var r=n(13189);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},14836:function(e,t,n){e.exports=n(67824)()},13189:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},49115:function(e,t){"use strict";t.Z=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame(function(){n=null,e.apply(void 0,t)}))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r}},44307:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,s){if(o===s)return!0;if(o&&s&&"object"==typeof o&&"object"==typeof s){var a,l,u,c;if(o.constructor!==s.constructor)return!1;if(Array.isArray(o)){if((a=o.length)!=s.length)return!1;for(l=a;0!=l--;)if(!e(o[l],s[l]))return!1;return!0}if(n&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],s.get(l.value[0])))return!1;return!0}if(r&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if((a=o.length)!=s.length)return!1;for(l=a;0!=l--;)if(o[l]!==s[l])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof s.valueOf)return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof s.toString)return o.toString()===s.toString();if((a=(u=Object.keys(o)).length)!==Object.keys(s).length)return!1;for(l=a;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=a;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],s[u[l]]))return!1;return!0}return o!=o&&s!=s}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},21436:function(e,t,n){"use strict";n.d(t,{w_:function(){return l}});var r=n(66703),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),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)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function l(e){return function(t){return r.createElement(u,s({attr:s({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,s({key:n},t.attr),e(t.child))})}(e.child))}}function u(e){var t=function(t){var n,i=e.attr,o=e.size,l=e.title,u=a(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:n,style:s(s({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},94280:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},3326:function(e,t,n){"use strict";e.exports=n(94280)},70917:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case o:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case c:case p:case h:case a:return e;default:return t}}case r:return t}}}(e)===l}},55973:function(e,t,n){"use strict";e.exports=n(70917)},40901:function(e,t,n){"use strict";n.d(t,{zt:function(){return M},$j:function(){return R}});var r=n(18638),i=n(85355),o=n(93694);let s=function(e){e()},a=()=>s;var l=n(66703);let u=Symbol.for("react-redux-context"),c="undefined"!=typeof globalThis?globalThis:{},d=function(){var e;if(!l.createContext)return{};let t=null!=(e=c[u])?e:c[u]=new Map,n=t.get(l.createContext);return n||(n=l.createContext(null),t.set(l.createContext,n)),n}();var f=n(52409),h=n(48111),p=n(55829),m=n.n(p),g=n(55973);let v=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function y(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function b(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function w(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=b(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=b(i),i=r(t,n)),i},r}}function x(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function S(e,t,n){return(0,f.Z)({},n,e,t)}let k={notify(){},get:()=>[]};function E(e,t){let n;let r=k,i=0,o=!1;function s(){c.onStateChange&&c.onStateChange()}function l(){i++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=function(){let e=a(),t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function u(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=k)}let c={addNestedSub:function(e){l();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),u())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:s,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,l())},tryUnsubscribe:function(){o&&(o=!1,u())},getListeners:()=>r};return c}let _="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function O(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!C(e[n[r]],t[n[r]]))return!1;return!0}let T=["reactReduxForwardedRef"],I=()=>{throw Error("uSES not initialized!")},A=[null,null];function P(e,t){return e===t}var R=function(e,t,n,{pure:r,areStatesEqual:i=P,areOwnPropsEqual:o=O,areStatePropsEqual:s=O,areMergedPropsEqual:a=O,forwardRef:u=!1,context:c=d}={}){let p=e?"function"==typeof e?w(e,"mapStateToProps"):x(e,"mapStateToProps"):y(()=>({})),b=t&&"object"==typeof t?y(e=>(function(e,t){let n={};for(let r in e){let i=e[r];"function"==typeof i&&(n[r]=(...e)=>t(i(...e)))}return n})(t,e)):t?"function"==typeof t?w(t,"mapDispatchToProps"):x(t,"mapDispatchToProps"):y(e=>({dispatch:e})),k=n?"function"==typeof n?function(e,{displayName:t,areMergedPropsEqual:r}){let i,o=!1;return function(e,t,s){let a=n(e,t,s);return o?r(a,i)||(i=a):(o=!0,i=a),i}}:x(n,"mergeProps"):()=>S,C=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:C,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:b,initMergeProps:k,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function d(t){var n;let i;let[o,s,a]=l.useMemo(()=>{let{reactReduxForwardedRef:e}=t,n=(0,h.Z)(t,T);return[t.context,e,n]},[t]),u=l.useMemo(()=>o&&o.Consumer&&(0,g.isContextConsumer)(l.createElement(o.Consumer,null))?o:c,[o,c]),d=l.useContext(u),p=!!t.store&&!!t.store.getState&&!!t.store.dispatch,m=!!d&&!!d.store,y=p?t.store:d.store,b=m?d.getServerState:y.getState,w=l.useMemo(()=>(function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=(0,h.Z)(t,v),s=n(e,o);return function(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a,l,u,c,d,f=!1;return function(h,p){return f?function(f,h){let p=!o(h,l),m=!i(f,a,h,l);return(a=f,l=h,p&&m)?(u=e(a,l),t.dependsOnOwnProps&&(c=t(r,l)),d=n(u,c,l)):p?(e.dependsOnOwnProps&&(u=e(a,l)),t.dependsOnOwnProps&&(c=t(r,l)),d=n(u,c,l)):m?function(){let t=e(a,l),r=!s(t,u);return u=t,r&&(d=n(u,c,l)),d}():d}(h,p):(u=e(a=h,l=p),c=t(r,l),d=n(u,c,l),f=!0,d)}}(s,r(e,o),i(e,o),e,o)})(y.dispatch,r),[y]),[x,S]=l.useMemo(()=>{if(!C)return A;let e=E(y,p?void 0:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[y,p,d]),k=l.useMemo(()=>p?d:(0,f.Z)({},d,{subscription:x}),[p,d,x]),O=l.useRef(),P=l.useRef(a),R=l.useRef(),M=l.useRef(!1);l.useRef(!1);let j=l.useRef(!1),N=l.useRef();_(()=>(j.current=!0,()=>{j.current=!1}),[]);let D=l.useMemo(()=>()=>R.current&&a===P.current?R.current:w(y.getState(),a),[y,a]),L=l.useMemo(()=>e=>x?function(e,t,n,r,i,o,s,a,l,u,c){if(!e)return()=>{};let d=!1,f=null,h=()=>{let e,n;if(d||!a.current)return;let h=t.getState();try{e=r(h,i.current)}catch(e){n=e,f=e}n||(f=null),e===o.current?s.current||u():(o.current=e,l.current=e,s.current=!0,c())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(C,y,x,w,P,O,M,j,R,S,e):()=>{},[x]);n=[P,O,M,a,R,S],_(()=>(function(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())})(...n),void 0);try{i=I(L,D,b?()=>w(b(),a):D)}catch(e){throw N.current&&(e.message+=`
|
|
15
|
-
The error may be correlated with this previous error:
|
|
16
|
-
${N.current.stack}
|
|
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),A=Array.isArray(I)?I:S.map(function(){return I}),P=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:A[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&&(P?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(52826);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",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(){},51982:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},64729:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23438);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},52409:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},52826:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(64729);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},48111:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return r}})},2890:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},23438:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(28108);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},28108:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},74614:function(e,t,n){"use strict";function r(e,t={}){let n=!1;function i(t){let n=(["container","root"].includes(t??"")?[e]:[e,t]).filter(Boolean).join("__"),r=`chakra-${n}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),o))t[e]=i(e);return r(e,t)},toPart:i,extend:function(...n){for(let e of n)e in t||(t[e]=i(e));return r(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}n.d(t,{TB:function(){return i}}),r("accordion").parts("root","container","button","panel","icon"),r("alert").parts("title","description","container","icon","spinner"),r("avatar").parts("label","badge","container","excessLabel","group"),r("breadcrumb").parts("link","item","container","separator"),r("button").parts();let i=r("checkbox").parts("control","icon","container","label");r("progress").parts("track","filledTrack","label"),r("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),r("editable").parts("preview","input","textarea"),r("form").parts("container","requiredIndicator","helperText"),r("formError").parts("text","icon"),r("input").parts("addon","field","element","group"),r("list").parts("container","item","icon"),r("menu").parts("button","list","item","groupTitle","icon","command","divider"),r("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),r("numberinput").parts("root","field","stepperGroup","stepper"),r("pininput").parts("field"),r("popover").parts("content","header","body","footer","popper","arrow","closeButton"),r("progress").parts("label","filledTrack","track"),r("radio").parts("container","control","label"),r("select").parts("field","icon"),r("slider").parts("container","track","thumb","filledTrack","mark"),r("stat").parts("container","label","helpText","number","icon"),r("switch").parts("container","track","thumb","label"),r("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),r("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),r("tag").parts("container","label","closeButton"),r("card").parts("container","header","body","footer"),r("stepper").parts("stepper","step","title","description","indicator","separator","icon","number")},19774:function(e,t,n){"use strict";n.d(t,{h:function(){return 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),A=(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:P,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,P),as:O,type:null!=k?k:R,"data-active":(0,s.P)(m),"data-loading":(0,s.P)(h),__css:A,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 A(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 P=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=>P._.includes(e)||"default"===e,i={};return A(t,(e,t)=>{null!=e&&(i[t.join(".")]={isSemantic:!1,value:e})}),A(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[P.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:A,inputProps:P,...R}=h,M=T;(null==n?void 0:n.value)&&h.value&&(M=n.value.includes(h.value));let j=A;(null==n?void 0:n.onChange)&&h.value&&(j=(0,o.P)(n.onChange,A));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(P,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":A,"aria-invalid":P,...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":A,"aria-invalid":P?!!P: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,A,P,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]),A=(0,o.useCallback)(e=>{0===e.button&&(S(!1),k.remove(document,"mouseup",A,!1))},[k]),P=(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",A,!1),null==c||c(e)}},[n,b,c,k,A]),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:P,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})})},[]),A=(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]),P=(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?A():I()},[d,A,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(),A()},[A,j]),openAndFocusLastItem:(0,a.useCallback)(()=>{O.current=!0,j(),P()},[j,P]),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]),A=(0,a.useCallback)(e=>{var t;null==r||r(e),E.current&&k(t=E.current).activeElement!==t&&I(e)},[I,r]),P=(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:A,onMouseLeave:P,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(44016);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"},44016: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)}}},A=function(){var e=I();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},P=function(){var e=A();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=P(),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(P)[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(48111),eo=n(52409),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,A=void 0!==I&&I,P=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 A?A(n):A;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)}}},[A]),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:P,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(2890),ev=n(64729),ey=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},eb=function(e){return Array.isArray(e)?e:[e]},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"))},eA=function(e){var t;return!!(e&&(null===(t=eC(e))||void 0===t?void 0:t.focusGuard))},eP=function(e){return!eA(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=eA(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(eP),i=e8(n||e,e,r),o=new Map,s=eV(r,o),a=s.filter(function(e){return eP(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(eP),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:eA(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},tA=function(){tS=!1,tx="just",tp(function(){tx="meanwhile"})},tP=function(){document.addEventListener("focusin",tO),document.addEventListener("focusout",tT),window.addEventListener("focus",tI),window.addEventListener("blur",tA)},tR=function(){document.removeEventListener("focusin",tO),document.removeEventListener("focusout",tT),window.removeEventListener("focus",tI),window.removeEventListener("blur",tA)},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&&tP();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:A,...P}=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)({...P,enabled:R||!!A}),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 A="bottom",P="right",R="left",M="auto",j=["top",A,P,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 A:t={x:a,y:n.y+n.height};break;case P: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===P)&&"end"===f)&&(j=A,_-=(b&&D===N&&N.visualViewport?N.visualViewport.height:D[L])-c.height,_*=g?1:-1),(d===R||("top"===d||d===A)&&"end"===f)&&(M=P,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=[P,A].indexOf(e)>=0?1:-1,n=["top",A].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",P,A,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,P].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",A].indexOf(O)>=0,D=I?"width":"height",L=es(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),B=I?T?P:R:T?A:"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?A:P,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?A:P,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,P].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?A:P,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 A=s.orderedModifiers[T],P=A.fn,R=A.options,M=void 0===R?{}:R,j=A.name;"function"==typeof P&&(s=P({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:A,getRadioProps:P,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,A=null!=g?g:null==E?void 0:E.isInvalid,[P,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)(A),"data-checked":(0,u.P)(U),"data-focus":(0,u.P)(M),"data-focus-visible":(0,u.P)(M&&P),"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,A,U,M,T,P]),{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)(A),"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,A,x]);return{state:{isInvalid:A,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)(A)}},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)(A)}},htmlProps:S}}({...C,isChecked:O,isFocusable:E,isDisabled:k,onChange:T,name:I}),[N,D]=(0,a.V)(j,o.oE),L=P(D),z=A(_,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),A={...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,...A,_dark:{...s._dark,...A},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(52409),l=n(9116),u=n(73513),c=n(93949),d=n(37362),f=n(66703),h=n(74580),p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,m=(0,h.Z)(function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),g=function(e){return"theme"!==e},v=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?m:g},y=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,d.hC)(t,n,r),(0,c.L)(function(){return(0,d.My)(t,n,r)}),null},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),A=(0,S.F)(),{children:P,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=A.__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:A,offset:P,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:A,offset:P,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:A.direction});if(!(0,u.isValidElement)(P)||M)_=(0,r.jsx)(E.m.span,{display:"inline-block",tabIndex:0,...W.getTriggerProps(),children:P});else{let e=u.Children.only(P);_=(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:P})});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 A={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(A,{w:A.width,h:A.height,minW:A.minWidth,maxW:A.maxWidth,minH:A.minHeight,maxH:A.maxHeight,overscroll:A.overscrollBehavior,overscrollX:A.overscrollBehaviorX,overscrollY:A.overscrollBehaviorY});let P={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,A,P,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({},$,A,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:A,defineMultiStyleConfig:P}=(0,I.D)(i.keys),R=(0,I.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),M=P({baseStyle:A({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
|
-
45deg,
|
|
20
|
-
${t} 25%,
|
|
21
|
-
transparent 25%,
|
|
22
|
-
transparent 50%,
|
|
23
|
-
${t} 50%,
|
|
24
|
-
${t} 75%,
|
|
25
|
-
transparent 75%,
|
|
26
|
-
transparent
|
|
27
|
-
)`,backgroundSize:`${e} ${e}`}}let et=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,{definePartsStyle:en,defineMultiStyleConfig:er}=(0,I.D)(o.keys),ei=(0,j.gJ)("alert-fg"),eo=(0,j.gJ)("alert-bg"),es=en({container:{bg:eo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ei.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ei.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function ea(e){let{theme:t,colorScheme:n}=e,r=Q(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}let el=en(e=>{let{colorScheme:t}=e,n=ea(e);return{container:{[ei.variable]:`colors.${t}.600`,[eo.variable]:n.light,_dark:{[ei.variable]:`colors.${t}.200`,[eo.variable]:n.dark}}}}),eu=en(e=>{let{colorScheme:t}=e,n=ea(e);return{container:{[ei.variable]:`colors.${t}.600`,[eo.variable]:n.light,_dark:{[ei.variable]:`colors.${t}.200`,[eo.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ei.reference}}}),ec=er({baseStyle:es,variants:{subtle:el,"left-accent":eu,"top-accent":en(e=>{let{colorScheme:t}=e,n=ea(e);return{container:{[ei.variable]:`colors.${t}.600`,[eo.variable]:n.light,_dark:{[ei.variable]:`colors.${t}.200`,[eo.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ei.reference}}}),solid:en(e=>{let{colorScheme:t}=e;return{container:{[ei.variable]:"colors.white",[eo.variable]:`colors.${t}.600`,_dark:{[ei.variable]:"colors.gray.900",[eo.variable]:`colors.${t}.200`},color:ei.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),ed={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},ef={...ed,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},eh=e=>"function"==typeof e;function ep(e,...t){return eh(e)?e(...t):e}let{definePartsStyle:em,defineMultiStyleConfig:eg}=(0,I.D)(s.keys),ev=(0,j.gJ)("avatar-border-color"),ey=(0,j.gJ)("avatar-bg"),eb=(0,j.gJ)("avatar-font-size"),ew=(0,j.gJ)("avatar-size"),ex=(0,I.k0)({borderRadius:"full",border:"0.2em solid",borderColor:ev.reference,[ev.variable]:"white",_dark:{[ev.variable]:"colors.gray.800"}}),eS=(0,I.k0)({bg:ey.reference,fontSize:eb.reference,width:ew.reference,height:ew.reference,lineHeight:"1",[ey.variable]:"colors.gray.200",_dark:{[ey.variable]:"colors.whiteAlpha.400"}}),ek=(0,I.k0)(e=>{let{name:t,theme:n}=e,r=t?function(e){var t;let n=et();return!e||Z(e)?n:e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)n=e.charCodeAt(t)+((n<<5)-n),n&=n;return n=(n%t.length+t.length)%t.length,t[n]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t&=t;let n="#";for(let e=0;e<3;e+=1){let r=t>>8*e&255;n+=`00${r.toString(16)}`.substr(-2)}return n}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:n}({string:t}):"colors.gray.400",i=X(r)(n),o="white";return i||(o="gray.800"),{bg:ey.reference,fontSize:eb.reference,color:o,borderColor:ev.reference,verticalAlign:"top",width:ew.reference,height:ew.reference,"&:not([data-loaded])":{[ey.variable]:r},[ev.variable]:"colors.white",_dark:{[ev.variable]:"colors.gray.800"}}}),eE=(0,I.k0)({fontSize:eb.reference,lineHeight:"1"});function e_(e){let t="100%"!==e?ef[e]:void 0;return em({container:{[ew.variable]:t??e,[eb.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[ew.variable]:t??e,[eb.variable]:`calc(${t??e} / 2.5)`}})}let eC=eg({baseStyle:em(e=>({badge:ep(ex,e),excessLabel:ep(eS,e),container:ep(ek,e),label:eE})),sizes:{"2xs":e_(4),xs:e_(6),sm:e_(8),md:e_(12),lg:e_(16),xl:e_(24),"2xl":e_(32),full:e_("100%")},defaultProps:{size:"md"}}),eO=(0,j._6)("badge",["bg","color","shadow"]),eT=(0,I.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:eO.bg.reference,color:eO.color.reference,boxShadow:eO.shadow.reference}),eI=(0,I.k0)(e=>{let{colorScheme:t,theme:n}=e,r=Q(`${t}.500`,.6)(n);return{[eO.bg.variable]:`colors.${t}.500`,[eO.color.variable]:"colors.white",_dark:{[eO.bg.variable]:r,[eO.color.variable]:"colors.whiteAlpha.800"}}}),eA=(0,I.k0)(e=>{let{colorScheme:t,theme:n}=e,r=Q(`${t}.200`,.16)(n);return{[eO.bg.variable]:`colors.${t}.100`,[eO.color.variable]:`colors.${t}.800`,_dark:{[eO.bg.variable]:r,[eO.color.variable]:`colors.${t}.200`}}}),eP=(0,I.k0)(e=>{let{colorScheme:t,theme:n}=e,r=Q(`${t}.200`,.8)(n);return{[eO.color.variable]:`colors.${t}.500`,_dark:{[eO.color.variable]:r},[eO.shadow.variable]:`inset 0 0 0px 1px ${eO.color.reference}`}}),eR=(0,I.fj)({baseStyle:eT,variants:{solid:eI,subtle:eA,outline:eP},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:eM,definePartsStyle:ej}=(0,I.D)(a.keys),eN=(0,j.gJ)("breadcrumb-link-decor"),eD=eM({baseStyle:ej({link:(0,I.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:eN.reference,[eN.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[eN.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})});function eL(e,t){return n=>"dark"===n.colorMode?t:e}function ez(e){let{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}let eF=(0,I.k0)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),eB=(0,I.k0)(e=>{let{colorScheme:t,theme:n}=e;if("gray"===t)return{color:eL("gray.800","whiteAlpha.900")(e),_hover:{bg:eL("gray.100","whiteAlpha.200")(e)},_active:{bg:eL("gray.200","whiteAlpha.300")(e)}};let r=Q(`${t}.200`,.12)(n),i=Q(`${t}.200`,.24)(n);return{color:eL(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:eL(`${t}.50`,r)(e)},_active:{bg:eL(`${t}.100`,i)(e)}}}),e$=(0,I.k0)(e=>{let{colorScheme:t}=e,n=eL("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...ep(eB,e)}}),eU={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},eV=(0,I.k0)(e=>{let{colorScheme:t}=e;if("gray"===t){let t=eL("gray.100","whiteAlpha.200")(e);return{bg:t,color:eL("gray.800","whiteAlpha.900")(e),_hover:{bg:eL("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:eL("gray.300","whiteAlpha.400")(e)}}}let{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:o=`${t}.700`}=eU[t]??{},s=eL(n,`${t}.200`)(e);return{bg:s,color:eL(r,"gray.800")(e),_hover:{bg:eL(i,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:eL(o,`${t}.400`)(e)}}}),eq=(0,I.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:eL(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:eL(`${t}.700`,`${t}.500`)(e)}}}),eW=(0,I.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),eH={lg:(0,I.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,I.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,I.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,I.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},eG=(0,I.fj)({baseStyle:eF,variants:{ghost:eB,outline:e$,solid:eV,link:eq,unstyled:eW},sizes:eH,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:eZ,defineMultiStyleConfig:eK}=(0,I.D)(T.keys),eY=(0,j.gJ)("card-bg"),eJ=(0,j.gJ)("card-padding"),eX=(0,j.gJ)("card-shadow"),eQ=(0,j.gJ)("card-radius"),e0=(0,j.gJ)("card-border-width","0"),e1=(0,j.gJ)("card-border-color"),e2=eZ({container:{[eY.variable]:"colors.chakra-body-bg",backgroundColor:eY.reference,boxShadow:eX.reference,borderRadius:eQ.reference,color:"chakra-body-text",borderWidth:e0.reference,borderColor:e1.reference},body:{padding:eJ.reference,flex:"1 1 0%"},header:{padding:eJ.reference},footer:{padding:eJ.reference}}),e3={sm:eZ({container:{[eQ.variable]:"radii.base",[eJ.variable]:"space.3"}}),md:eZ({container:{[eQ.variable]:"radii.md",[eJ.variable]:"space.5"}}),lg:eZ({container:{[eQ.variable]:"radii.xl",[eJ.variable]:"space.7"}})},e5=eK({baseStyle:e2,variants:{elevated:eZ({container:{[eX.variable]:"shadows.base",_dark:{[eY.variable]:"colors.gray.700"}}}),outline:eZ({container:{[e0.variable]:"1px",[e1.variable]:"colors.chakra-border-color"}}),filled:eZ({container:{[eY.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[eJ.variable]:0},header:{[eJ.variable]:0},footer:{[eJ.variable]:0}}},sizes:e3,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:e4,defineMultiStyleConfig:e6}=(0,I.D)(l.keys),e9=(0,j.gJ)("checkbox-size"),e8=(0,I.k0)(e=>{let{colorScheme:t}=e;return{w:e9.reference,h:e9.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:eL(`${t}.500`,`${t}.200`)(e),borderColor:eL(`${t}.500`,`${t}.200`)(e),color:eL("white","gray.900")(e),_hover:{bg:eL(`${t}.600`,`${t}.300`)(e),borderColor:eL(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:eL("gray.200","transparent")(e),bg:eL("gray.200","whiteAlpha.300")(e),color:eL("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:eL(`${t}.500`,`${t}.200`)(e),borderColor:eL(`${t}.500`,`${t}.200`)(e),color:eL("white","gray.900")(e)},_disabled:{bg:eL("gray.100","whiteAlpha.100")(e),borderColor:eL("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:eL("red.500","red.300")(e)}}}),e7=(0,I.k0)({_disabled:{cursor:"not-allowed"}}),te=(0,I.k0)({userSelect:"none",_disabled:{opacity:.4}}),tt=(0,I.k0)({transitionProperty:"transform",transitionDuration:"normal"}),tn=e6({baseStyle:e4(e=>({icon:tt,container:e7,control:ep(e8,e),label:te})),sizes:{sm:e4({control:{[e9.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:e4({control:{[e9.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:e4({control:{[e9.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}});function tr(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function ti(e,t){var n,r;let i=function(e,t=""){return`--${function(e,t=""){return[t,tr(e)].filter(Boolean).join("-")}(e,t)}`}(e,t?.prefix);return{variable:i,reference:(n="string"==typeof(r=t?.fallback)?r:r?.reference,`var(${tr(i)}${n?`, ${n}`:""})`)}}let to=ti("close-button-size"),ts=ti("close-button-bg"),ta=(0,I.k0)({w:[to.reference],h:[to.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ts.variable]:"colors.blackAlpha.100",_dark:{[ts.variable]:"colors.whiteAlpha.100"}},_active:{[ts.variable]:"colors.blackAlpha.200",_dark:{[ts.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ts.reference}),tl={lg:(0,I.k0)({[to.variable]:"sizes.10",fontSize:"md"}),md:(0,I.k0)({[to.variable]:"sizes.8",fontSize:"xs"}),sm:(0,I.k0)({[to.variable]:"sizes.6",fontSize:"2xs"})},tu=(0,I.fj)({baseStyle:ta,sizes:tl,defaultProps:{size:"md"}}),{variants:tc,defaultProps:td}=eR,tf=(0,I.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:eO.bg.reference,color:eO.color.reference,boxShadow:eO.shadow.reference}),th=(0,I.fj)({baseStyle:tf,variants:tc,defaultProps:td}),tp=(0,I.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),tm=(0,I.fj)({baseStyle:tp}),tg=(0,I.k0)({opacity:.6,borderColor:"inherit"}),tv=(0,I.k0)({borderStyle:"solid"}),ty=(0,I.k0)({borderStyle:"dashed"}),tb=(0,I.fj)({baseStyle:tg,variants:{solid:tv,dashed:ty},defaultProps:{variant:"solid"}}),{definePartsStyle:tw,defineMultiStyleConfig:tx}=(0,I.D)(u.keys),tS=(0,j.gJ)("drawer-bg"),tk=(0,j.gJ)("drawer-box-shadow");function tE(e){return"full"===e?tw({dialog:{maxW:"100vw",h:"100vh"}}):tw({dialog:{maxW:e}})}let t_=(0,I.k0)({bg:"blackAlpha.600",zIndex:"modal"}),tC=(0,I.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),tO=(0,I.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[tS.variable]:"colors.white",[tk.variable]:"shadows.lg",_dark:{[tS.variable]:"colors.gray.700",[tk.variable]:"shadows.dark-lg"},bg:tS.reference,boxShadow:tk.reference}}),tT=(0,I.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),tI=(0,I.k0)({position:"absolute",top:"2",insetEnd:"3"}),tA=(0,I.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),tP=(0,I.k0)({px:"6",py:"4"}),tR=tx({baseStyle:tw(e=>({overlay:t_,dialogContainer:tC,dialog:ep(tO,e),header:tT,closeButton:tI,body:tA,footer:tP})),sizes:{xs:tE("xs"),sm:tE("md"),md:tE("lg"),lg:tE("2xl"),xl:tE("4xl"),full:tE("full")},defaultProps:{size:"xs"}}),{definePartsStyle:tM,defineMultiStyleConfig:tj}=(0,I.D)(c.keys),tN=tj({baseStyle:tM({preview:(0,I.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,I.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,I.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:tD,defineMultiStyleConfig:tL}=(0,I.D)(d.keys),tz=(0,j.gJ)("form-control-color"),tF=tL({baseStyle:tD({container:{width:"100%",position:"relative"},requiredIndicator:(0,I.k0)({marginStart:"1",[tz.variable]:"colors.red.500",_dark:{[tz.variable]:"colors.red.300"},color:tz.reference}),helperText:(0,I.k0)({mt:"2",[tz.variable]:"colors.gray.600",_dark:{[tz.variable]:"colors.whiteAlpha.600"},color:tz.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:tB,defineMultiStyleConfig:t$}=(0,I.D)(f.keys),tU=(0,j.gJ)("form-error-color"),tV=t$({baseStyle:tB({text:(0,I.k0)({[tU.variable]:"colors.red.500",_dark:{[tU.variable]:"colors.red.300"},color:tU.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,I.k0)({marginEnd:"0.5em",[tU.variable]:"colors.red.500",_dark:{[tU.variable]:"colors.red.300"},color:tU.reference})})}),tq=(0,I.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),tW=(0,I.fj)({baseStyle:tq}),tH=(0,I.k0)({fontFamily:"heading",fontWeight:"bold"}),tG={"4xl":(0,I.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,I.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,I.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,I.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,I.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,I.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,I.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,I.k0)({fontSize:"sm",lineHeight:1.2})},tZ=(0,I.fj)({baseStyle:tH,sizes:tG,defaultProps:{size:"xl"}}),{definePartsStyle:tK,defineMultiStyleConfig:tY}=(0,I.D)(h.keys),tJ=(0,j.gJ)("input-height"),tX=(0,j.gJ)("input-font-size"),tQ=(0,j.gJ)("input-padding"),t0=(0,j.gJ)("input-border-radius"),t1=tK({addon:{height:tJ.reference,fontSize:tX.reference,px:tQ.reference,borderRadius:t0.reference},field:{width:"100%",height:tJ.reference,fontSize:tX.reference,px:tQ.reference,borderRadius:t0.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),t2={lg:(0,I.k0)({[tX.variable]:"fontSizes.lg",[tQ.variable]:"space.4",[t0.variable]:"radii.md",[tJ.variable]:"sizes.12"}),md:(0,I.k0)({[tX.variable]:"fontSizes.md",[tQ.variable]:"space.4",[t0.variable]:"radii.md",[tJ.variable]:"sizes.10"}),sm:(0,I.k0)({[tX.variable]:"fontSizes.sm",[tQ.variable]:"space.3",[t0.variable]:"radii.sm",[tJ.variable]:"sizes.8"}),xs:(0,I.k0)({[tX.variable]:"fontSizes.xs",[tQ.variable]:"space.2",[t0.variable]:"radii.sm",[tJ.variable]:"sizes.6"})},t3={lg:tK({field:t2.lg,group:t2.lg}),md:tK({field:t2.md,group:t2.md}),sm:tK({field:t2.sm,group:t2.sm}),xs:tK({field:t2.xs,group:t2.xs})};function t5(e){let{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||eL("blue.500","blue.300")(e),errorBorderColor:n||eL("red.500","red.300")(e)}}let t4=tK(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=t5(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:eL("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:K(t,r),boxShadow:`0 0 0 1px ${K(t,r)}`},_focusVisible:{zIndex:1,borderColor:K(t,n),boxShadow:`0 0 0 1px ${K(t,n)}`}},addon:{border:"1px solid",borderColor:eL("inherit","whiteAlpha.50")(e),bg:eL("gray.100","whiteAlpha.300")(e)}}}),t6=tK(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=t5(e);return{field:{border:"2px solid",borderColor:"transparent",bg:eL("gray.100","whiteAlpha.50")(e),_hover:{bg:eL("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:K(t,r)},_focusVisible:{bg:"transparent",borderColor:K(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:eL("gray.100","whiteAlpha.50")(e)}}}),t9=tY({baseStyle:t1,sizes:t3,variants:{outline:t4,filled:t6,flushed:tK(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=t5(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:K(t,r),boxShadow:`0px 1px 0px 0px ${K(t,r)}`},_focusVisible:{borderColor:K(t,n),boxShadow:`0px 1px 0px 0px ${K(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:tK({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),t8=(0,j.gJ)("kbd-bg"),t7=(0,I.k0)({[t8.variable]:"colors.gray.100",_dark:{[t8.variable]:"colors.whiteAlpha.100"},bg:t8.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),ne=(0,I.fj)({baseStyle:t7}),nt=(0,I.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),nn=(0,I.fj)({baseStyle:nt}),{defineMultiStyleConfig:nr,definePartsStyle:ni}=(0,I.D)(p.keys),no=nr({baseStyle:ni({icon:(0,I.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:ns,definePartsStyle:na}=(0,I.D)(m.keys),nl=(0,j.gJ)("menu-bg"),nu=(0,j.gJ)("menu-shadow"),nc=(0,I.k0)({[nl.variable]:"#fff",[nu.variable]:"shadows.sm",_dark:{[nl.variable]:"colors.gray.700",[nu.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:nl.reference,boxShadow:nu.reference}),nd=(0,I.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[nl.variable]:"colors.gray.100",_dark:{[nl.variable]:"colors.whiteAlpha.100"}},_active:{[nl.variable]:"colors.gray.200",_dark:{[nl.variable]:"colors.whiteAlpha.200"}},_expanded:{[nl.variable]:"colors.gray.100",_dark:{[nl.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:nl.reference}),nf=(0,I.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),nh=(0,I.k0)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),np=(0,I.k0)({opacity:.6}),nm=(0,I.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),ng=ns({baseStyle:na({button:(0,I.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:nc,item:nd,groupTitle:nf,icon:nh,command:np,divider:nm})}),{defineMultiStyleConfig:nv,definePartsStyle:ny}=(0,I.D)(g.keys),nb=(0,j.gJ)("modal-bg"),nw=(0,j.gJ)("modal-shadow"),nx=(0,I.k0)({bg:"blackAlpha.600",zIndex:"modal"}),nS=(0,I.k0)(e=>{let{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}}),nk=(0,I.k0)(e=>{let{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[nb.variable]:"colors.white",[nw.variable]:"shadows.lg",_dark:{[nb.variable]:"colors.gray.700",[nw.variable]:"shadows.dark-lg"},bg:nb.reference,boxShadow:nw.reference}}),nE=(0,I.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),n_=(0,I.k0)({position:"absolute",top:"2",insetEnd:"3"}),nC=(0,I.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),nO=(0,I.k0)({px:"6",py:"4"});function nT(e){return"full"===e?ny({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):ny({dialog:{maxW:e}})}let nI=nv({baseStyle:ny(e=>({overlay:nx,dialogContainer:ep(nS,e),dialog:ep(nk,e),header:nE,closeButton:n_,body:ep(nC,e),footer:nO})),sizes:{xs:nT("xs"),sm:nT("sm"),md:nT("md"),lg:nT("lg"),xl:nT("xl"),"2xl":nT("2xl"),"3xl":nT("3xl"),"4xl":nT("4xl"),"5xl":nT("5xl"),"6xl":nT("6xl"),full:nT("full")},defaultProps:{size:"md"}});var nA=n(93031);function nP(e){return(0,nA.Kn)(e)&&e.reference?e.reference:String(e)}let nR=(e,...t)=>t.map(nP).join(` ${e} `).replace(/calc/g,""),nM=(...e)=>`calc(${nR("+",...e)})`,nj=(...e)=>`calc(${nR("-",...e)})`,nN=(...e)=>`calc(${nR("*",...e)})`,nD=(...e)=>`calc(${nR("/",...e)})`,nL=e=>{let t=nP(e);return null==t||Number.isNaN(parseFloat(t))?nN(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},nz=Object.assign(e=>({add:(...t)=>nz(nM(e,...t)),subtract:(...t)=>nz(nj(e,...t)),multiply:(...t)=>nz(nN(e,...t)),divide:(...t)=>nz(nD(e,...t)),negate:()=>nz(nL(e)),toString:()=>e.toString()}),{add:nM,subtract:nj,multiply:nN,divide:nD,negate:nL}),nF={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:nB,definePartsStyle:n$}=(0,I.D)(v.keys),nU=ti("number-input-stepper-width"),nV=ti("number-input-input-padding"),nq=nz(nU).add("0.5rem").toString(),nW=ti("number-input-bg"),nH=ti("number-input-color"),nG=ti("number-input-border-color"),nZ=(0,I.k0)({[nU.variable]:"sizes.6",[nV.variable]:nq}),nK=(0,I.k0)(e=>ep(t9.baseStyle,e)?.field??{}),nY=(0,I.k0)({width:nU.reference}),nJ=(0,I.k0)({borderStart:"1px solid",borderStartColor:nG.reference,color:nH.reference,bg:nW.reference,[nH.variable]:"colors.chakra-body-text",[nG.variable]:"colors.chakra-border-color",_dark:{[nH.variable]:"colors.whiteAlpha.800",[nG.variable]:"colors.whiteAlpha.300"},_active:{[nW.variable]:"colors.gray.200",_dark:{[nW.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function nX(e){let t=t9.sizes?.[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=t.field?.fontSize??"md",i=nF.fontSizes[r];return n$({field:{...t.field,paddingInlineEnd:nV.reference,verticalAlign:"top"},stepper:{fontSize:nz(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}let nQ=nB({baseStyle:n$(e=>({root:nZ,field:ep(nK,e)??{},stepperGroup:nY,stepper:nJ})),sizes:{xs:nX("xs"),sm:nX("sm"),md:nX("md"),lg:nX("lg")},variants:t9.variants,defaultProps:t9.defaultProps}),n0=(0,I.k0)({...t9.baseStyle?.field,textAlign:"center"}),n1={lg:(0,I.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,I.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,I.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,I.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},n2={outline:(0,I.k0)(e=>ep(t9.variants?.outline,e)?.field??{}),flushed:(0,I.k0)(e=>ep(t9.variants?.flushed,e)?.field??{}),filled:(0,I.k0)(e=>ep(t9.variants?.filled,e)?.field??{}),unstyled:t9.variants?.unstyled.field??{}},n3=(0,I.fj)({baseStyle:n0,sizes:n1,variants:n2,defaultProps:t9.defaultProps}),{defineMultiStyleConfig:n5,definePartsStyle:n4}=(0,I.D)(y.keys),n6=ti("popper-bg"),n9=ti("popper-arrow-bg"),n8=ti("popper-arrow-shadow-color"),n7=(0,I.k0)({zIndex:"popover"}),re=(0,I.k0)({[n6.variable]:"colors.white",bg:n6.reference,[n9.variable]:n6.reference,[n8.variable]:"colors.gray.200",_dark:{[n6.variable]:"colors.gray.700",[n8.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),rt=(0,I.k0)({px:3,py:2,borderBottomWidth:"1px"}),rn=n5({baseStyle:n4({popper:n7,content:re,header:rt,body:(0,I.k0)({px:3,py:2}),footer:(0,I.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,I.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{defineMultiStyleConfig:rr,definePartsStyle:ri}=(0,I.D)(b.keys),ro=(0,I.k0)(e=>{let{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=eL(ee(),ee("1rem","rgba(0,0,0,0.1)"))(e),s=eL(`${t}.500`,`${t}.200`)(e),a=`linear-gradient(
|
|
28
|
-
to right,
|
|
29
|
-
transparent 0%,
|
|
30
|
-
${K(n,s)} 50%,
|
|
31
|
-
transparent 100%
|
|
32
|
-
)`;return{...!r&&i&&o,...r?{bgImage:a}:{bgColor:s}}}),rs=(0,I.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),ra=(0,I.k0)(e=>({bg:eL("gray.100","whiteAlpha.300")(e)})),rl=(0,I.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...ro(e)})),ru=ri(e=>({label:rs,filledTrack:rl(e),track:ra(e)})),rc=rr({sizes:{xs:ri({track:{h:"1"}}),sm:ri({track:{h:"2"}}),md:ri({track:{h:"3"}}),lg:ri({track:{h:"4"}})},baseStyle:ru,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rd,definePartsStyle:rf}=(0,I.D)(w.keys),rh=(0,I.k0)(e=>{let t=ep(tn.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),rp=rd({baseStyle:rf(e=>({label:tn.baseStyle?.(e).label,container:tn.baseStyle?.(e).container,control:rh(e)})),sizes:{md:rf({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:rf({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:rf({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rm,definePartsStyle:rg}=(0,I.D)(x.keys),rv=(0,j.gJ)("select-bg"),ry=rg({field:(0,I.k0)({...t9.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:rv.reference,[rv.variable]:"colors.white",_dark:{[rv.variable]:"colors.gray.700"},"> option, > optgroup":{bg:rv.reference}}),icon:(0,I.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),rb=(0,I.k0)({paddingInlineEnd:"8"}),rw=rm({baseStyle:ry,sizes:{lg:{...t9.sizes?.lg,field:{...t9.sizes?.lg.field,...rb}},md:{...t9.sizes?.md,field:{...t9.sizes?.md.field,...rb}},sm:{...t9.sizes?.sm,field:{...t9.sizes?.sm.field,...rb}},xs:{...t9.sizes?.xs,field:{...t9.sizes?.xs.field,...rb},icon:{insetEnd:"1"}}},variants:t9.variants,defaultProps:t9.defaultProps}),rx=(0,j.gJ)("skeleton-start-color"),rS=(0,j.gJ)("skeleton-end-color"),rk=(0,I.k0)({[rx.variable]:"colors.gray.100",[rS.variable]:"colors.gray.400",_dark:{[rx.variable]:"colors.gray.800",[rS.variable]:"colors.gray.600"},background:rx.reference,borderColor:rS.reference,opacity:.7,borderRadius:"sm"}),rE=(0,I.fj)({baseStyle:rk}),r_=(0,j.gJ)("skip-link-bg"),rC=(0,I.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[r_.variable]:"colors.white",_dark:{[r_.variable]:"colors.gray.700"},bg:r_.reference}}),rO=(0,I.fj)({baseStyle:rC});var rT=n(23880);let{defineMultiStyleConfig:rI,definePartsStyle:rA}=(0,I.D)(S.keys),rP=(0,j.gJ)("slider-thumb-size"),rR=(0,j.gJ)("slider-track-size"),rM=(0,j.gJ)("slider-bg"),rj=(0,I.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ez({orientation:t,vertical:{h:"100%",px:(0,rT.y)(rP.reference).divide(2).toString()},horizontal:{w:"100%",py:(0,rT.y)(rP.reference).divide(2).toString()}})}}),rN=(0,I.k0)(e=>({...ez({orientation:e.orientation,horizontal:{h:rR.reference},vertical:{w:rR.reference}}),overflow:"hidden",borderRadius:"sm",[rM.variable]:"colors.gray.200",_dark:{[rM.variable]:"colors.whiteAlpha.200"},_disabled:{[rM.variable]:"colors.gray.300",_dark:{[rM.variable]:"colors.whiteAlpha.300"}},bg:rM.reference})),rD=(0,I.k0)(e=>{let{orientation:t}=e;return{...ez({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:rP.reference,h:rP.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),rL=(0,I.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[rM.variable]:`colors.${t}.500`,_dark:{[rM.variable]:`colors.${t}.200`},bg:rM.reference}}),rz=rA(e=>({container:rj(e),track:rN(e),thumb:rD(e),filledTrack:rL(e)})),rF=rA({container:{[rP.variable]:"sizes.4",[rR.variable]:"sizes.1"}}),rB=rI({baseStyle:rz,sizes:{lg:rF,md:rA({container:{[rP.variable]:"sizes.3.5",[rR.variable]:"sizes.1"}}),sm:rA({container:{[rP.variable]:"sizes.2.5",[rR.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),r$=ti("spinner-size"),rU=(0,I.k0)({width:[r$.reference],height:[r$.reference]}),rV={xs:(0,I.k0)({[r$.variable]:"sizes.3"}),sm:(0,I.k0)({[r$.variable]:"sizes.4"}),md:(0,I.k0)({[r$.variable]:"sizes.6"}),lg:(0,I.k0)({[r$.variable]:"sizes.8"}),xl:(0,I.k0)({[r$.variable]:"sizes.12"})},rq=(0,I.fj)({baseStyle:rU,sizes:rV,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rW,definePartsStyle:rH}=(0,I.D)(k.keys),rG=(0,I.k0)({fontWeight:"medium"}),rZ=rW({baseStyle:rH({container:{},label:rG,helpText:(0,I.k0)({opacity:.8,marginBottom:"2"}),number:(0,I.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,I.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:rH({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),{defineMultiStyleConfig:rK,definePartsStyle:rY}=(0,I.D)(["stepper","step","title","description","indicator","separator","icon","number"]),rJ=(0,j.gJ)("stepper-indicator-size"),rX=(0,j.gJ)("stepper-icon-size"),rQ=(0,j.gJ)("stepper-title-font-size"),r0=(0,j.gJ)("stepper-description-font-size"),r1=(0,j.gJ)("stepper-accent-color"),r2=rK({baseStyle:rY(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[r1.variable]:`colors.${e}.500`,_dark:{[r1.variable]:`colors.${e}.200`}},title:{fontSize:rQ.reference,fontWeight:"medium"},description:{fontSize:r0.reference,color:"chakra-subtle-text"},number:{fontSize:rQ.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:rX.reference,height:rX.reference},indicator:{flexShrink:0,borderRadius:"full",width:rJ.reference,height:rJ.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:r1.reference},"&[data-status=complete]":{bg:r1.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:r1.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${rJ.reference} - 8px)`,top:`calc(${rJ.reference} + 4px)`,insetStart:`calc(${rJ.reference} / 2 - 1px)`}}})),sizes:{xs:rY({stepper:{[rJ.variable]:"sizes.4",[rX.variable]:"sizes.3",[rQ.variable]:"fontSizes.xs",[r0.variable]:"fontSizes.xs"}}),sm:rY({stepper:{[rJ.variable]:"sizes.6",[rX.variable]:"sizes.4",[rQ.variable]:"fontSizes.sm",[r0.variable]:"fontSizes.xs"}}),md:rY({stepper:{[rJ.variable]:"sizes.8",[rX.variable]:"sizes.5",[rQ.variable]:"fontSizes.md",[r0.variable]:"fontSizes.sm"}}),lg:rY({stepper:{[rJ.variable]:"sizes.10",[rX.variable]:"sizes.6",[rQ.variable]:"fontSizes.lg",[r0.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:r3,definePartsStyle:r5}=(0,I.D)(E.keys),r4=ti("switch-track-width"),r6=ti("switch-track-height"),r9=ti("switch-track-diff"),r8=nz.subtract(r4,r6),r7=ti("switch-thumb-x"),ie=ti("switch-bg"),it=(0,I.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[r4.reference],height:[r6.reference],transitionProperty:"common",transitionDuration:"fast",[ie.variable]:"colors.gray.300",_dark:{[ie.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ie.variable]:`colors.${t}.500`,_dark:{[ie.variable]:`colors.${t}.200`}},bg:ie.reference}}),ir=(0,I.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[r6.reference],height:[r6.reference],_checked:{transform:`translateX(${r7.reference})`}}),ii=r3({baseStyle:r5(e=>({container:{[r9.variable]:r8,[r7.variable]:r9.reference,_rtl:{[r7.variable]:nz(r9).negate().toString()}},track:it(e),thumb:ir})),sizes:{sm:r5({container:{[r4.variable]:"1.375rem",[r6.variable]:"sizes.3"}}),md:r5({container:{[r4.variable]:"1.875rem",[r6.variable]:"sizes.4"}}),lg:r5({container:{[r4.variable]:"2.875rem",[r6.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:io,definePartsStyle:is}=(0,I.D)(_.keys),ia=is({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),il=(0,I.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),iu=io({baseStyle:ia,variants:{simple:is(e=>{let{colorScheme:t}=e;return{th:{color:eL("gray.600","gray.400")(e),borderBottom:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e),...il},td:{borderBottom:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e),...il},caption:{color:eL("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:is(e=>{let{colorScheme:t}=e;return{th:{color:eL("gray.600","gray.400")(e),borderBottom:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e),...il},td:{borderBottom:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e),...il},caption:{color:eL("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:eL(`${t}.100`,`${t}.700`)(e)},td:{background:eL(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,I.k0)({})},sizes:{sm:is({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:is({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:is({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ic=(0,j.gJ)("tabs-color"),id=(0,j.gJ)("tabs-bg"),ih=(0,j.gJ)("tabs-border-color"),{defineMultiStyleConfig:ip,definePartsStyle:im}=(0,I.D)(C.keys),ig=(0,I.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),iv=(0,I.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),iy=(0,I.k0)(e=>{let{align:t="start",orientation:n}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===n?"column":"row"}}),ib=(0,I.k0)({p:4}),iw=im(e=>({root:ig(e),tab:iv(e),tablist:iy(e),tabpanel:ib})),ix={sm:im({tab:{py:1,px:4,fontSize:"sm"}}),md:im({tab:{fontSize:"md",py:2,px:4}}),lg:im({tab:{fontSize:"lg",py:3,px:4}})},iS=im(e=>{let{colorScheme:t,orientation:n}=e,r="vertical"===n,i=r?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[r?"marginStart":"marginBottom"]:"-2px",_selected:{[ic.variable]:`colors.${t}.600`,_dark:{[ic.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[id.variable]:"colors.gray.200",_dark:{[id.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ic.reference,bg:id.reference}}}),ik=im(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ih.variable]:"transparent",_selected:{[ic.variable]:`colors.${t}.600`,[ih.variable]:"colors.white",_dark:{[ic.variable]:`colors.${t}.300`,[ih.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ih.reference},color:ic.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),iE=im(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[id.variable]:"colors.gray.50",_dark:{[id.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[id.variable]:"colors.white",[ic.variable]:`colors.${t}.600`,_dark:{[id.variable]:"colors.gray.800",[ic.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ic.reference,bg:id.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),i_=im(e=>{let{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:K(n,`${t}.700`),bg:K(n,`${t}.100`)}}}}),iC=ip({baseStyle:iw,sizes:ix,variants:{line:iS,enclosed:ik,"enclosed-colored":iE,"soft-rounded":i_,"solid-rounded":im(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ic.variable]:"colors.gray.600",_dark:{[ic.variable]:"inherit"},_selected:{[ic.variable]:"colors.white",[id.variable]:`colors.${t}.600`,_dark:{[ic.variable]:"colors.gray.800",[id.variable]:`colors.${t}.300`}},color:ic.reference,bg:id.reference}}}),unstyled:im({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:iO,definePartsStyle:iT}=(0,I.D)(O.keys),iI=(0,j.gJ)("tag-bg"),iA=(0,j.gJ)("tag-color"),iP=(0,j.gJ)("tag-shadow"),iR=(0,j.gJ)("tag-min-height"),iM=(0,j.gJ)("tag-min-width"),ij=(0,j.gJ)("tag-font-size"),iN=(0,j.gJ)("tag-padding-inline"),iD=iT({container:(0,I.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[iA.variable]:eO.color.reference,[iI.variable]:eO.bg.reference,[iP.variable]:eO.shadow.reference,color:iA.reference,bg:iI.reference,boxShadow:iP.reference,borderRadius:"md",minH:iR.reference,minW:iM.reference,fontSize:ij.reference,px:iN.reference,_focusVisible:{[iP.variable]:"shadows.outline"}}),label:(0,I.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,I.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),iL={sm:iT({container:{[iR.variable]:"sizes.5",[iM.variable]:"sizes.5",[ij.variable]:"fontSizes.xs",[iN.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:iT({container:{[iR.variable]:"sizes.6",[iM.variable]:"sizes.6",[ij.variable]:"fontSizes.sm",[iN.variable]:"space.2"}}),lg:iT({container:{[iR.variable]:"sizes.8",[iM.variable]:"sizes.8",[ij.variable]:"fontSizes.md",[iN.variable]:"space.3"}})},iz=iO({variants:{subtle:iT(e=>({container:eR.variants?.subtle(e)})),solid:iT(e=>({container:eR.variants?.solid(e)})),outline:iT(e=>({container:eR.variants?.outline(e)}))},baseStyle:iD,sizes:iL,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),iF=(0,I.k0)({...t9.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),iB={outline:(0,I.k0)(e=>t9.variants?.outline(e).field??{}),flushed:(0,I.k0)(e=>t9.variants?.flushed(e).field??{}),filled:(0,I.k0)(e=>t9.variants?.filled(e).field??{}),unstyled:t9.variants?.unstyled.field??{}},i$={xs:t9.sizes?.xs.field??{},sm:t9.sizes?.sm.field??{},md:t9.sizes?.md.field??{},lg:t9.sizes?.lg.field??{}},iU=(0,I.fj)({baseStyle:iF,sizes:i$,variants:iB,defaultProps:{size:"md",variant:"outline"}}),iV=ti("tooltip-bg"),iq=ti("tooltip-fg"),iW=ti("popper-arrow-bg"),iH=(0,I.k0)({bg:iV.reference,color:iq.reference,[iV.variable]:"colors.gray.700",[iq.variable]:"colors.whiteAlpha.900",_dark:{[iV.variable]:"colors.gray.300",[iq.variable]:"colors.gray.900"},[iW.variable]:iV.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),iG=(0,I.fj)({baseStyle:iH}),iZ={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},...nF,sizes:ef,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:ed,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},iK={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},iY={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},iJ={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},iX={semanticTokens:iK,direction:"ltr",...iZ,components:{Accordion:M,Alert:ec,Avatar:eC,Badge:eR,Breadcrumb:eD,Button:eG,Checkbox:tn,CloseButton:tu,Code:th,Container:tm,Divider:tb,Drawer:tR,Editable:tN,Form:tF,FormError:tV,FormLabel:tW,Heading:tZ,Input:t9,Kbd:ne,Link:nn,List:no,Menu:ng,Modal:nI,NumberInput:nQ,PinInput:n3,Popover:rn,Progress:rc,Radio:rp,Select:rw,Skeleton:rE,SkipLink:rO,Slider:rB,Spinner:rq,Stat:rZ,Switch:ii,Table:iu,Tabs:iC,Tag:iz,Textarea:iU,Tooltip:iG,Card:e5,Stepper:r2},styles:iY,config:iJ},iQ={semanticTokens:iK,direction:"ltr",components:{},...iZ,styles:iY,config:iJ}},26934:function(e,t,n){"use strict";n.d(t,{P:function(){return r},Q:function(){return i}});let r=e=>e?"":void 0,i=e=>!!e||void 0},96549:function(e,t,n){"use strict";n.d(t,{Y:function(){return u},y:function(){return c}});var r=n(93031);function i(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}let o=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,s=e=>Object.fromEntries(Object.entries(e).sort(o));function a(e){let t=s(e);return Object.assign(Object.values(t),t)}function l(e){return e?"number"==typeof(e=i(e)??e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function u(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${i(e)})`),t&&n.push("and",`(max-width: ${i(t)})`),n.join(" ")}function c(e){if(!e)return null;e.base=e.base??"0px";let t=a(e),n=Object.entries(e).sort(o).map(([e,t],n,r)=>{let[,i]=r[n+1]??[];return i=parseFloat(i)>0?l(i):void 0,{_minW:l(t),breakpoint:e,minW:t,maxW:i,maxWQuery:u(null,i),minWQuery:u(t),minMaxQuery:u(t,i)}}),i=new Set(Object.keys(s(e))),c=Array.from(i.values());return{keys:i,normalized:t,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>i.has(e))},asObject:s(e),asArray:a(e),details:n,get:e=>n.find(t=>t.breakpoint===e),media:[null,...t.map(e=>u(e)).slice(1)],toArrayValue(e){if(!(0,r.Kn)(e))throw Error("toArrayValue: value must be an object");let t=c.map(t=>e[t]??null);for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let r=c[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}},11915:function(e,t,n){"use strict";function r(...e){return function(...t){e.forEach(e=>e?.(...t))}}function i(...e){return function(t){e.some(e=>(e?.(t),t?.defaultPrevented))}}n.d(t,{P:function(){return r},v:function(){return i}})},84535:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(66703);function i(e){return r.Children.toArray(e).filter(e=>(0,r.isValidElement)(e))}},33164:function(e,t,n){"use strict";function r(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}n.d(t,{o:function(){return r}})},9396:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(66703);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:s,defaultValue:a}=e,l=(0,r.createContext)(a);return l.displayName=t,[l.Provider,function e(){let t=(0,r.useContext)(l);if(!t&&n){var a,u;let t=Error(null!=s?s:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null===(a=(u=Error).captureStackTrace)||void 0===a||a.call(u,t,e),t}return t},l]}},90010:function(e,t,n){"use strict";n.d(t,{cx:function(){return r}});let r=(...e)=>e.filter(Boolean).join(" ")},29239:function(e,t,n){"use strict";n.d(t,{t5:function(){return o}});var r=n(94279);let i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,r.EB)(e)&&i(e))}},85680:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});let r=(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})},19249:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(){return!!globalThis?.document}function o(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}function s(e){return!0==!!e.getAttribute("disabled")||!0==!!e.getAttribute("aria-disabled")}n.d(t,{Re:function(){return r},iU:function(){return o},jU:function(){return i},nV:function(){return s},oI:function(){return function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}}})},93031:function(e,t,n){"use strict";function r(e){return Array.isArray(e)}function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!r(e)}n.d(t,{Kn:function(){return i},kJ:function(){return r}})},27425:function(e,t,n){"use strict";function r(e){let{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!n||!!r||"keepMounted"===i&&!!t}n.d(t,{k:function(){return r}})},40810:function(e,t,n){"use strict";function r(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}n.d(t,{C:function(){return r}})},95034:function(e,t,n){"use strict";n.d(t,{kR:function(){return i},vY:function(){return s}});var r=n(19249);function i(e){return o(e)?.defaultView??window}function o(e){return(0,r.Re)(e)?e.ownerDocument:document}function s(e){return o(e).activeElement}},47301:function(e,t,n){"use strict";function r(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}n.d(t,{e:function(){return r}})},69475:function(e,t,n){"use strict";n.d(t,{AV:function(){return i},XQ:function(){return o},Yq:function(){return s}});var r=n(93031);let i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function o(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,r.Kn)(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}function s(e,t=i){let n={};return e.forEach((e,r)=>{let i=t[r];null!=e&&(n[i]=e)}),n}},69072:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});let r=e=>"function"==typeof e;function i(e,...t){return r(e)?e(...t):e}},57835:function(e,t,n){"use strict";function r(e,t){let n={},r={};for(let[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}n.d(t,{V:function(){return r}})},94279:function(e,t,n){"use strict";n.d(t,{EB:function(){return s},Wq:function(){return a}});var r=n(19249);let i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function s(e){if(!(0,r.Re)(e)||(0,r.oI)(e)||(0,r.nV)(e))return!1;let{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;let n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!(0,r.iU)(e)||i(e)}function a(e){return!!e&&(0,r.Re)(e)&&s(e)&&!o(e)}},18099:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return function t(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}function a(e){return({}).toString.call(e).includes("Object")}function l(e){return"function"==typeof e}n.d(t,{SV:function(){return $},ML:function(){return q}});var u,c,d=s(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),f=function(e,t){return a(t)||d("changeType"),Object.keys(t).some(function(t){return!Object.prototype.hasOwnProperty.call(e,t)})&&d("changeField"),t},h=function(e){l(e)||d("selectorType")},p=function(e){l(e)||a(e)||d("handlerType"),a(e)&&Object.values(e).some(function(e){return!l(e)})&&d("handlersType")},m=function(e){e||d("initialIsRequired"),a(e)||d("initialType"),Object.keys(e).length||d("initialContent")};function g(e,t){return l(t)?t(e.current):t}function v(e,t){return e.current=o(o({},e.current),t),t}function y(e,t,n){return l(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}(u=function(e,t){throw Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.length>=u.length?u.apply(this,r):function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.apply(t,[].concat(r,i))}})({configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "});var b=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},w={type:"cancelation",msg:"operation is manually canceled"},x=function(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(w):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n},S=function(e){if(Array.isArray(e))return e}(c=({create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(e),p(t);var n={current:e},r=s(y)(n,t),i=s(v)(n),o=s(f)(e),a=s(g)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return h(e),e(n.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(r,i,o,a)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),2!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(c,2)||function(e,t){if(e){if("string"==typeof e)return r(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,2)}}(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),k=S[0],E=S[1];function _(e){return document.body.appendChild(e)}function C(e){var t,n,r=k(function(e){return{config:e.config,reject:e.reject}}),i=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return i.onload=function(){return e()},i.onerror=r.reject,i}function O(){var e=k(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){T(t),e.resolve(t)},function(t){e.reject(t)})}function T(e){k().monaco||E({monaco:e})}var I=new Promise(function(e,t){return E({resolve:e,reject:t})}),A=function(){var e=k(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(E({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),x(I);if(window.monaco&&window.monaco.editor)return T(window.monaco),e.resolve(window.monaco),x(I);b(_,C)(O)}return x(I)},P=n(66703),R={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},M={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},j=function({children:e}){return P.createElement("div",{style:M},e)},N=(0,P.memo)(function({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:o,wrapperProps:s}){return P.createElement("section",{style:{...R.wrapper,width:e,height:t},...s},!n&&P.createElement(j,null,r),P.createElement("div",{ref:i,style:{...R.fullWidth,...!n&&R.hide},className:o}))}),D=function(e){(0,P.useEffect)(e,[])},L=function(e,t,n=!0){let r=(0,P.useRef)(!0);(0,P.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)};function z(){}function F(e,t,n,r){return e.editor.getModel(B(e,r))||e.editor.createModel(t,n,r?B(e,r):void 0)}function B(e,t){return e.Uri.parse(t)}var $=(0,P.memo)(function({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:d={},height:f="100%",width:h="100%",className:p,wrapperProps:m={},beforeMount:g=z,onMount:v=z}){let[y,b]=(0,P.useState)(!1),[w,x]=(0,P.useState)(!0),S=(0,P.useRef)(null),k=(0,P.useRef)(null),E=(0,P.useRef)(null),_=(0,P.useRef)(v),C=(0,P.useRef)(g),O=(0,P.useRef)(!1);D(()=>{let e=A();return e.then(e=>(k.current=e)&&x(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return S.current?(t=S.current?.getModel(),void(a||t?.original?.dispose(),l||t?.modified?.dispose(),S.current?.dispose())):e.cancel()}}),L(()=>{if(S.current&&k.current){let t=S.current.getOriginalEditor(),i=F(k.current,e||"",r||n||"text",o||"");i!==t.getModel()&&t.setModel(i)}},[o],y),L(()=>{if(S.current&&k.current){let e=S.current.getModifiedEditor(),r=F(k.current,t||"",i||n||"text",s||"");r!==e.getModel()&&e.setModel(r)}},[s],y),L(()=>{let e=S.current.getModifiedEditor();e.getOption(k.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],y),L(()=>{S.current?.getModel()?.original.setValue(e||"")},[e],y),L(()=>{let{original:e,modified:t}=S.current.getModel();k.current.editor.setModelLanguage(e,r||n||"text"),k.current.editor.setModelLanguage(t,i||n||"text")},[n,r,i],y),L(()=>{k.current?.editor.setTheme(u)},[u],y),L(()=>{S.current?.updateOptions(d)},[d],y);let T=(0,P.useCallback)(()=>{if(!k.current)return;C.current(k.current);let a=F(k.current,e||"",r||n||"text",o||""),l=F(k.current,t||"",i||n||"text",s||"");S.current?.setModel({original:a,modified:l})},[n,t,i,e,r,o,s]),I=(0,P.useCallback)(()=>{!O.current&&E.current&&(S.current=k.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...d}),T(),k.current?.editor.setTheme(u),b(!0),O.current=!0)},[d,u,T]);return(0,P.useEffect)(()=>{y&&_.current(S.current,k.current)},[y]),(0,P.useEffect)(()=>{w||y||I()},[w,y,I]),P.createElement(N,{width:h,height:f,isEditorReady:y,loading:c,_ref:E,className:p,wrapperProps:m})}),U=function(e){let t=(0,P.useRef)();return(0,P.useEffect)(()=>{t.current=e},[e]),t.current},V=new Map,q=(0,P.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s="light",line:a,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:d=!0,keepCurrentModel:f=!1,width:h="100%",height:p="100%",className:m,wrapperProps:g={},beforeMount:v=z,onMount:y=z,onChange:b,onValidate:w=z}){let[x,S]=(0,P.useState)(!1),[k,E]=(0,P.useState)(!0),_=(0,P.useRef)(null),C=(0,P.useRef)(null),O=(0,P.useRef)(null),T=(0,P.useRef)(y),I=(0,P.useRef)(v),R=(0,P.useRef)(),M=(0,P.useRef)(r),j=U(o),B=(0,P.useRef)(!1),$=(0,P.useRef)(!1);D(()=>{let e=A();return e.then(e=>(_.current=e)&&E(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>C.current?void(R.current?.dispose(),f?d&&V.set(o,C.current.saveViewState()):C.current.getModel()?.dispose(),C.current.dispose()):e.cancel()}),L(()=>{let s=F(_.current,e||r||"",t||i||"",o||n||"");s!==C.current?.getModel()&&(d&&V.set(j,C.current?.saveViewState()),C.current?.setModel(s),d&&C.current?.restoreViewState(V.get(o)))},[o],x),L(()=>{C.current?.updateOptions(u)},[u],x),L(()=>{C.current&&void 0!==r&&(C.current.getOption(_.current.editor.EditorOption.readOnly)?C.current.setValue(r):r===C.current.getValue()||($.current=!0,C.current.executeEdits("",[{range:C.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),C.current.pushUndoStop(),$.current=!1))},[r],x),L(()=>{let e=C.current?.getModel();e&&i&&_.current?.editor.setModelLanguage(e,i)},[i],x),L(()=>{void 0!==a&&C.current?.revealLine(a)},[a],x),L(()=>{_.current?.editor.setTheme(s)},[s],x);let q=(0,P.useCallback)(()=>{if(!(!O.current||!_.current)&&!B.current){I.current(_.current);let l=o||n,f=F(_.current,r||e||"",t||i||"",l||"");C.current=_.current?.editor.create(O.current,{model:f,automaticLayout:!0,...u},c),d&&C.current.restoreViewState(V.get(l)),_.current.editor.setTheme(s),void 0!==a&&C.current.revealLine(a),S(!0),B.current=!0}},[e,t,n,r,i,o,u,c,d,s,a]);return(0,P.useEffect)(()=>{x&&T.current(C.current,_.current)},[x]),(0,P.useEffect)(()=>{k||x||q()},[k,x,q]),M.current=r,(0,P.useEffect)(()=>{x&&b&&(R.current?.dispose(),R.current=C.current?.onDidChangeModelContent(e=>{$.current||b(C.current.getValue(),e)}))},[x,b]),(0,P.useEffect)(()=>{if(x){let e=_.current.editor.onDidChangeMarkers(e=>{let t=C.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=_.current.editor.getModelMarkers({resource:t});w?.(e)}});return()=>{e?.dispose()}}return()=>{}},[x,w]),P.createElement(N,{width:h,height:p,isEditorReady:x,loading:l,_ref:O,className:m,wrapperProps:g})})},18648:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r,i,o=n(66703),s=n(12124),a=n(25788),l=n(17168);function u({color:e,dimensions:t,lineWidth:n}){return o.createElement("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function c({color:e,radius:t}){return o.createElement("circle",{cx:t,cy:t,r:t,fill:e})}(r=i||(i={})).Lines="lines",r.Dots="dots",r.Cross="cross";let d={[i.Dots]:"#91919a",[i.Lines]:"#eee",[i.Cross]:"#e2e2e2"},f={[i.Dots]:1,[i.Lines]:1,[i.Cross]:6},h=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function p({id:e,variant:t=i.Dots,gap:n=20,size:r,lineWidth:p=1,offset:m=2,color:g,style:v,className:y}){let b=(0,o.useRef)(null),{transform:w,patternId:x}=(0,a.oR)(h,l.X),S=g||d[t],k=r||f[t],E=t===i.Dots,_=t===i.Cross,C=Array.isArray(n)?n:[n,n],O=[C[0]*w[2]||1,C[1]*w[2]||1],T=k*w[2],I=_?[T,T]:O,A=E?[T/m,T/m]:[I[0]/m,I[1]/m];return o.createElement("svg",{className:(0,s.Z)(["react-flow__background",y]),style:{...v,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:b,"data-testid":"rf__background"},o.createElement("pattern",{id:x+e,x:w[0]%O[0],y:w[1]%O[1],width:O[0],height:O[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${A[0]},-${A[1]})`},E?o.createElement(c,{color:S,radius:T/m}):o.createElement(u,{dimensions:I,color:S,lineWidth:p})),o.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${x+e})`}))}p.displayName="Background";var m=(0,o.memo)(p)},77873:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return m}});var r=n(66703),i=n(12124),o=n(17168),s=n(25788);function a(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},r.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"}))}function l(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},r.createElement("path",{d:"M0 0h32v4.2H0z"}))}function u(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},r.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"}))}function c(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},r.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"}))}function d(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},r.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"}))}let f=({children:e,className:t,...n})=>r.createElement("button",{type:"button",className:(0,i.Z)(["react-flow__controls-button",t]),...n},e);f.displayName="ControlButton";let h=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),p=({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:p=!0,fitViewOptions:m,onZoomIn:g,onZoomOut:v,onFitView:y,onInteractiveChange:b,className:w,children:x,position:S="bottom-left"})=>{let k=(0,s.AC)(),[E,_]=(0,r.useState)(!1),{isInteractive:C,minZoomReached:O,maxZoomReached:T}=(0,s.oR)(h,o.X),{zoomIn:I,zoomOut:A,fitView:P}=(0,s._K)();return((0,r.useEffect)(()=>{_(!0)},[]),E)?r.createElement(s.s_,{className:(0,i.Z)(["react-flow__controls",w]),position:S,style:e,"data-testid":"rf__controls"},t&&r.createElement(r.Fragment,null,r.createElement(f,{onClick:()=>{I(),g?.()},className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:T},r.createElement(a,null)),r.createElement(f,{onClick:()=>{A(),v?.()},className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:O},r.createElement(l,null))),n&&r.createElement(f,{className:"react-flow__controls-fitview",onClick:()=>{P(m),y?.()},title:"fit view","aria-label":"fit view"},r.createElement(u,null)),p&&r.createElement(f,{className:"react-flow__controls-interactive",onClick:()=>{k.setState({nodesDraggable:!C,nodesConnectable:!C,elementsSelectable:!C}),b?.(!C)},title:"toggle interactivity","aria-label":"toggle interactivity"},C?r.createElement(d,null):r.createElement(c,null)),x):null};p.displayName="Controls";var m=(0,r.memo)(p)},55180:function(e,t,n){"use strict";n.d(t,{a:function(){return y}});var r=n(66703),i=n(12124),o=n(17168),s=n(21719),a=n(44568),l=n(58269),u=n(25788);let c=({id:e,x:t,y:n,width:o,height:s,style:a,color:l,strokeColor:u,strokeWidth:c,className:d,borderRadius:f,shapeRendering:h,onClick:p,selected:m})=>{let{background:g,backgroundColor:v}=a||{};return r.createElement("rect",{className:(0,i.Z)(["react-flow__minimap-node",{selected:m},d]),x:t,y:n,rx:f,ry:f,width:o,height:s,fill:l||g||v,stroke:u,strokeWidth:c,shapeRendering:h,onClick:p?t=>p(t,e):void 0})};c.displayName="MiniMapNode";var d=(0,r.memo)(c);let f=e=>e.nodeOrigin,h=e=>e.getNodes().filter(e=>!e.hidden&&e.width&&e.height),p=e=>e instanceof Function?e:()=>e;var m=(0,r.memo)(function({nodeStrokeColor:e="transparent",nodeColor:t="#e2e2e2",nodeClassName:n="",nodeBorderRadius:i=5,nodeStrokeWidth:s=2,nodeComponent:a=d,onClick:l}){let c=(0,u.oR)(h,o.X),m=(0,u.oR)(f),g=p(t),v=p(e),y=p(n),b="undefined"==typeof window||window.chrome?"crispEdges":"geometricPrecision";return r.createElement(r.Fragment,null,c.map(e=>{let{x:t,y:n}=(0,u.VP)(e,m).positionAbsolute;return r.createElement(a,{key:e.id,x:t,y:n,width:e.width,height:e.height,style:e.style,selected:e.selected,className:y(e),color:g(e),borderRadius:i,strokeColor:v(e),strokeWidth:s,shapeRendering:b,onClick:l,id:e.id})}))});let g=e=>{let t=e.getNodes(),n={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:n,boundingRect:t.length>0?(0,u.oI)((0,u.RX)(t,e.nodeOrigin),n):n,rfId:e.rfId}};function v({style:e,className:t,nodeStrokeColor:n="transparent",nodeColor:c="#e2e2e2",nodeClassName:d="",nodeBorderRadius:f=5,nodeStrokeWidth:h=2,nodeComponent:p,maskColor:v="rgb(240, 240, 240, 0.6)",maskStrokeColor:y="none",maskStrokeWidth:b=1,position:w="bottom-right",onClick:x,onNodeClick:S,pannable:k=!1,zoomable:E=!1,ariaLabel:_="React Flow mini map",inversePan:C=!1,zoomStep:O=10,offsetScale:T=5}){let I=(0,u.AC)(),A=(0,r.useRef)(null),{boundingRect:P,viewBB:R,rfId:M}=(0,u.oR)(g,o.X),j=e?.width??200,N=e?.height??150,D=Math.max(P.width/j,P.height/N),L=D*j,z=D*N,F=T*D,B=P.x-(L-P.width)/2-F,$=P.y-(z-P.height)/2-F,U=L+2*F,V=z+2*F,q=`react-flow__minimap-desc-${M}`,W=(0,r.useRef)(0);W.current=D,(0,r.useEffect)(()=>{if(A.current){let e=(0,a.Z)(A.current),t=(0,s.sP)().on("zoom",k?e=>{let{transform:t,d3Selection:n,d3Zoom:r,translateExtent:i,width:o,height:a}=I.getState();if("mousemove"!==e.sourceEvent.type||!n||!r)return;let l=W.current*Math.max(1,t[2])*(C?-1:1),u={x:t[0]-e.sourceEvent.movementX*l,y:t[1]-e.sourceEvent.movementY*l},c=s.CR.translate(u.x,u.y).scale(t[2]),d=r.constrain()(c,[[0,0],[o,a]],i);r.transform(n,d)}:null).on("zoom.wheel",E?e=>{let{transform:t,d3Selection:n,d3Zoom:r}=I.getState();if("wheel"!==e.sourceEvent.type||!n||!r)return;let i=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*O,o=t[2]*Math.pow(2,i);r.scaleTo(n,o)}:null);return e.call(t),()=>{e.on("zoom",null)}}},[k,E,C,O]);let H=x?e=>{let t=(0,l.Z)(e);x(e,{x:t[0],y:t[1]})}:void 0;return r.createElement(u.s_,{position:w,style:e,className:(0,i.Z)(["react-flow__minimap",t]),"data-testid":"rf__minimap"},r.createElement("svg",{width:j,height:N,viewBox:`${B} ${$} ${U} ${V}`,role:"img","aria-labelledby":q,ref:A,onClick:H},_&&r.createElement("title",{id:q},_),r.createElement(m,{onClick:S?(e,t)=>{S(e,I.getState().nodeInternals.get(t))}:void 0,nodeColor:c,nodeStrokeColor:n,nodeBorderRadius:f,nodeClassName:d,nodeStrokeWidth:h,nodeComponent:p}),r.createElement("path",{className:"react-flow__minimap-mask",d:`M${B-F},${$-F}h${U+2*F}v${V+2*F}h${-U-2*F}z
|
|
33
|
-
M${R.x},${R.y}h${R.width}v${R.height}h${-R.width}z`,fill:v,fillRule:"evenodd",stroke:y,strokeWidth:b,pointerEvents:"none"})))}v.displayName="MiniMap";var y=(0,r.memo)(v)},30220:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},24e3:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(41828),i=n(68786),o=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},95336:function(e,t,n){"use strict";n.d(t,{R:function(){return a},m:function(){return s}});var r=n(72821),i=n(89177),o=n(41176),s=class extends i.F{#r;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#r=[],this.state=e.state||a(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){this.#o=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,n=!this.#o.canStart();try{if(!t){this.#s({type:"pending",variables:e,isPaused:n}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#s({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#o.start();return await this.#i.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#i.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#s({type:"success",data:r}),r}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#s({type:"error",error:t})}}finally{this.#i.runNext(this)}}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},72821:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0),o=r=>{t?e.push(r):i(()=>{n(r)})},s=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||s()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}()},65618:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(41828),i=n(68786),o=new class extends r.l{#a=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}}},58964:function(e,t,n){"use strict";n.d(t,{A:function(){return a},z:function(){return l}});var r=n(68786),i=n(72821),o=n(41176),s=n(89177),a=class extends s.F{#l;#u;#c;#d;#o;#f;#h;constructor(e){super(),this.#h=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#c=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#l)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#h?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,n.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:()=>{let e=(0,r.cG)(this.options,t),n={client:this.#d,queryKey:this.queryKey,meta:this.meta};return(i(n),this.#h=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};i(s),this.options.behavior?.onFetch(s,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#s({type:"fetch",meta:s.fetchOptions?.meta});let a=e=>{(0,o.DV)(e)&&e.silent||this.#s({type:"error",error:e}),(0,o.DV)(e)||(this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#o=(0,o.Mz)({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){a(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){a(e);return}this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:a,onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#o.start()}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,o.DV)(n)&&n.revert&&this.#u)return{...this.#u,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},82729:function(e,t,n){"use strict";n.d(t,{S:function(){return m}});var r=n(68786),i=n(58964),o=n(72821),s=n(41828),a=class extends s.l{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){let o=t.queryKey,s=t.queryHash??(0,r.Rm)(o,t),a=this.get(s);return a||(a=new i.A({client:e,queryKey:o,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.#p.has(e.queryHash)||(this.#p.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#p.get(e.queryHash);t&&(e.destroy(),t===e&&this.#p.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#p.get(e)}getAll(){return[...this.#p.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(95336),u=class extends s.l{constructor(e={}){super(),this.config=e,this.#m=new Set,this.#g=new Map,this.#v=0}#m;#g;#v;build(e,t,n){let r=new l.m({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#m.add(e);let t=c(e);if("string"==typeof t){let n=this.#g.get(t);n?n.push(e):this.#g.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#m.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#g.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#g.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#g.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#g.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.V.batch(()=>{this.#m.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#m.clear(),this.#g.clear()})}getAll(){return Array.from(this.#m)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function c(e){return e.options.scope?.id}var d=n(24e3),f=n(65618);function h(e){return{onFetch:(t,n)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let n=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},d=(0,r.cG)(t.options,t.fetchOptions),f=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let s={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};c(s);let a=await d(s),{maxPages:l}=t.options,u=o?r.Ht:r.VX;return{pages:u(e.pages,a,l),pageParams:u(e.pageParams,i,l)}};if(o&&s.length){let e="backward"===o,t={pages:s,pageParams:a},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(i,t);l=await f(t,n,e)}else{let t=e??s.length;do{let e=0===u?a[0]??i.initialPageParam:p(i,l);if(u>0&&null==e)break;l=await f(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var m=class{#y;#i;#f;#b;#w;#x;#S;#k;constructor(e={}){this.#y=e.queryCache||new a,this.#i=e.mutationCache||new u,this.#f=e.defaultOptions||{},this.#b=new Map,this.#w=new Map,this.#x=0}mount(){this.#x++,1===this.#x&&(this.#S=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#k=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#x--,0===this.#x&&(this.#S?.(),this.#S=void 0,this.#k?.(),this.#k=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#y.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.KC)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#y.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#y.get(i.queryHash),s=o?.state.data,a=(0,r.SE)(t,s);if(void 0!==a)return this.#y.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return o.V.batch(()=>this.#y.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){let t=this.#y;o.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#y,r={type:"active",...e};return o.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.V.batch(()=>this.#y.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e,t={}){return o.V.batch(()=>{if(this.#y.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")return Promise.resolve();let n={...e,type:e?.refetchType??e?.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.V.batch(()=>this.#y.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#y.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#i}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#b.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#b.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#w.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#w.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#i.clear()}}},89177:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(68786),i=class{#E;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#E=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#E&&(clearTimeout(this.#E),this.#E=void 0)}}},41176:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return l},Mz:function(){return d}});var r=n(24e3),i=n(65618),o=n(91840),s=n(68786);function a(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function d(e){let t,n=!1,c=0,d=!1,f=(0,o.O)(),h=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),p=()=>l(e.networkMode)&&e.canRun(),m=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),f.resolve(n))},g=n=>{d||(d=!0,e.onError?.(n),t?.(),f.reject(n))},v=()=>new Promise(n=>{t=e=>{(d||h())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),y=()=>{let t;if(d)return;let r=0===c?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(d)return;let r=e.retry??(s.sk?0:3),i=e.retryDelay??a,o="function"==typeof i?i(c,t):i,l=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);if(n||!l){g(t);return}c++,e.onFail?.(c,t),(0,s._v)(o).then(()=>h()?void 0:v()).then(()=>{n?g(t):y()})})};return{promise:f,cancel:t=>{d||(g(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?y():v().then(y),f)}}},41828:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},91840:function(e,t,n){"use strict";function r(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{O:function(){return r}})},68786:function(e,t,n){"use strict";n.d(t,{CN:function(){return k},Ht:function(){return S},KC:function(){return l},Kp:function(){return a},Nc:function(){return u},PN:function(){return s},Rm:function(){return f},SE:function(){return o},VS:function(){return m},VX:function(){return x},X7:function(){return d},Ym:function(){return h},ZT:function(){return i},_v:function(){return b},_x:function(){return c},cG:function(){return E},oE:function(){return w},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==f(s,t.options))return!1}else if(!p(t.queryKey,s))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!p(e[n],t[n]))}function m(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(y(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return new Promise(t=>{setTimeout(t,e)})}function w(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=g(t)&&g(n);if(r||v(t)&&v(n)){let i=r?t:Object.keys(t),o=i.length,s=r?n:Object.keys(n),a=s.length,l=r?[]:{},u=0;for(let o=0;o<a;o++){let a=r?o:s[o];(!r&&i.includes(a)||r)&&void 0===t[a]&&void 0===n[a]?(l[a]=void 0,u++):(l[a]=e(t[a],n[a]),l[a]===t[a]&&void 0!==t[a]&&u++)}return o===a&&u===o?t:l}return n}(e,t):t}function x(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function S(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var k=Symbol();function E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==k?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},20519:function(e,t,n){"use strict";n.d(t,{NL:function(){return s},aH:function(){return a}});var r=n(66703),i=n(20130),o=r.createContext(void 0),s=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:n})}},46842:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(66703),i=n(95336),o=n(72821),s=n(41828),a=n(68786),l=class extends s.l{#d;#_=void 0;#C;#O;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#T()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#d.defaultMutationOptions(e),(0,a.VS)(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#C,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(t.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#C?.state.status==="pending"&&this.#C.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#C?.removeObserver(this)}onMutationUpdate(e){this.#T(),this.#I(e)}getCurrentResult(){return this.#_}reset(){this.#C?.removeObserver(this),this.#C=void 0,this.#T(),this.#I()}mutate(e,t){return this.#O=t,this.#C?.removeObserver(this),this.#C=this.#d.getMutationCache().build(this.#d,this.options),this.#C.addObserver(this),this.#C.execute(e)}#T(){let e=this.#C?.state??(0,i.R)();this.#_={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#I(e){o.V.batch(()=>{if(this.#O&&this.hasListeners()){let t=this.#_.variables,n=this.#_.context;e?.type==="success"?(this.#O.onSuccess?.(e.data,t,n),this.#O.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#O.onError?.(e.error,t,n),this.#O.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#_)})})}},u=n(20519),c=n(34937);function d(e,t){let n=(0,u.NL)(t),[i]=r.useState(()=>new l(n,e));r.useEffect(()=>{i.setOptions(e)},[i,e]);let s=r.useSyncExternalStore(r.useCallback(e=>i.subscribe(o.V.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=r.useCallback((e,t)=>{i.mutate(e,t).catch(c.Z)},[i]);if(s.error&&(0,c.L)(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}},25290:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return I}});var i=n(24e3),o=n(72821),s=n(58964),a=n(41828),l=n(91840),u=n(68786),c=class extends a.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#A=null,this.#P=(0,l.O)(),this.options.experimental_prefetchInRender||this.#P.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#d;#R=void 0;#M=void 0;#_=void 0;#j;#N;#P;#A;#D;#L;#z;#F;#B;#$;#U=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),d(this.#R,this.options)?this.#V():this.updateResult(),this.#q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#W(),this.#H(),this.#R.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#R;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Nc)(this.options.enabled,this.#R))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#G(),this.#R.setOptions(this.options),n._defaulted&&!(0,u.VS)(this.options,n)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});let i=this.hasListeners();i&&h(this.#R,r,this.options,n)&&this.#V(),this.updateResult(t),i&&(this.#R!==r||(0,u.Nc)(this.options.enabled,this.#R)!==(0,u.Nc)(n.enabled,this.#R)||(0,u.KC)(this.options.staleTime,this.#R)!==(0,u.KC)(n.staleTime,this.#R))&&this.#Z();let o=this.#K();i&&(this.#R!==r||(0,u.Nc)(this.options.enabled,this.#R)!==(0,u.Nc)(n.enabled,this.#R)||o!==this.#$)&&this.#Y(o)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,u.VS)(this.getCurrentResult(),n)||(this.#_=n,this.#N=this.options,this.#j=this.#R.state),n}getCurrentResult(){return this.#_}trackResult(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#U.add(e)}getCurrentQuery(){return this.#R}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#d.defaultQueryOptions(e),n=this.#d.getQueryCache().build(this.#d,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#V({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#_))}#V(e){this.#G();let t=this.#R.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.ZT)),t}#Z(){this.#W();let e=(0,u.KC)(this.options.staleTime,this.#R);if(u.sk||this.#_.isStale||!(0,u.PN)(e))return;let t=(0,u.Kp)(this.#_.dataUpdatedAt,e);this.#F=setTimeout(()=>{this.#_.isStale||this.updateResult()},t+1)}#K(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#R):this.options.refetchInterval)??!1}#Y(e){this.#H(),this.#$=e,!u.sk&&!1!==(0,u.Nc)(this.options.enabled,this.#R)&&(0,u.PN)(this.#$)&&0!==this.#$&&(this.#B=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#V()},this.#$))}#q(){this.#Z(),this.#Y(this.#K())}#W(){this.#F&&(clearTimeout(this.#F),this.#F=void 0)}#H(){this.#B&&(clearInterval(this.#B),this.#B=void 0)}createResult(e,t){let n;let r=this.#R,i=this.options,o=this.#_,a=this.#j,c=this.#N,f=e!==r?e.state:this.#M,{state:m}=e,g={...m},v=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&d(e,t),a=n&&h(e,r,t,i);(o||a)&&(g={...g,...(0,s.z)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=g;if(t.select&&void 0!==g.data){if(o&&g.data===a?.data&&t.select===this.#D)n=this.#L;else try{this.#D=t.select,n=t.select(g.data),n=(0,u.oE)(o?.data,n,t),this.#L=n,this.#A=null}catch(e){this.#A=e}}else n=g.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===w){let e;if(o?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#z?.state.data,this.#z):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#A=null}catch(e){this.#A=e}void 0!==e&&(w="success",n=(0,u.oE)(o?.data,e,t),v=!0)}this.#A&&(y=this.#A,n=this.#L,b=Date.now(),w="error");let x="fetching"===g.fetchStatus,S="pending"===w,k="error"===w,E=S&&x,_=void 0!==n,C={status:w,fetchStatus:g.fetchStatus,isPending:S,isSuccess:"success"===w,isError:k,isInitialLoading:E,isLoading:E,data:n,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:k&&!_,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:k&&_,isStale:p(e,t),refetch:this.refetch,promise:this.#P};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===C.status?e.reject(C.error):void 0!==C.data&&e.resolve(C.data)},n=()=>{t(this.#P=C.promise=(0,l.O)())},i=this.#P;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===C.status||C.data!==i.value)&&n();break;case"rejected":("error"!==C.status||C.error!==i.reason)&&n()}}return C}updateResult(e){let t=this.#_,n=this.createResult(this.#R,this.options);if(this.#j=this.#R.state,this.#N=this.options,void 0!==this.#j.data&&(this.#z=this.#R),(0,u.VS)(n,t))return;this.#_=n;let r={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#U.size)return!0;let r=new Set(n??this.#U);return this.options.throwOnError&&r.add("error"),Object.keys(this.#_).some(e=>this.#_[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#I({...r,...e})}#G(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#R)return;let t=this.#R;this.#R=e,this.#M=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#q()}#I(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#_)}),this.#d.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,n){if(!1!==(0,u.Nc)(t.enabled,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&p(e,t)}return!1}function h(e,t,n,r){return(e!==t||!1===(0,u.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&e.isStaleByTime((0,u.KC)(t.staleTime,e))}var m=n(66703),g=n(20519);n(20130);var v=m.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),y=()=>m.useContext(v),b=n(34937),w=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},x=e=>{m.useEffect(()=>{e.clearReset()},[e])},S=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||(0,b.L)(r,[t.error,i]))},k=m.createContext(!1),E=()=>m.useContext(k);k.Provider;var _=e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},C=(e,t)=>e.isLoading&&e.isFetching&&!t,O=(e,t)=>e?.suspense&&t.isPending,T=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function I(e,t){return function(e,t,n){var r,i,s,a,l;let c=(0,g.NL)(n),d=E(),f=y(),h=c.defaultQueryOptions(e);null===(i=c.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,h),h._optimisticResults=d?"isRestoring":"optimistic",_(h),w(h,f),x(f);let p=!c.getQueryCache().get(h.queryHash),[v]=m.useState(()=>new t(c,h)),k=v.getOptimisticResult(h),I=!d&&!1!==e.subscribed;if(m.useSyncExternalStore(m.useCallback(e=>{let t=I?v.subscribe(o.V.batchCalls(e)):b.Z;return v.updateResult(),t},[v,I]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),m.useEffect(()=>{v.setOptions(h,{listeners:!1})},[h,v]),O(h,k))throw T(h,v,f);if(S({result:k,errorResetBoundary:f,throwOnError:h.throwOnError,query:c.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw k.error;if(null===(a=c.getDefaultOptions().queries)||void 0===a||null===(s=a._experimental_afterQuery)||void 0===s||s.call(a,h,k),h.experimental_prefetchInRender&&!u.sk&&C(k,d)){let e=p?T(h,v,f):null===(l=c.getQueryCache().get(h.queryHash))||void 0===l?void 0:l.promise;null==e||e.catch(b.Z).finally(()=>{v.updateResult()})}return h.notifyOnChangeProps?k:v.trackResult(k)}(e,c,t)}},34937:function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}function i(){}n.d(t,{L:function(){return r},Z:function(){return i}})},99466:function(e,t,n){"use strict";n.d(t,{BT:function(){return v}});var r=()=>"undefined"!=typeof document,i=!1,o=null,s=!1,a=!1,l=new Set;function u(e,t){l.forEach(n=>n(e,t))}var c="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function d(e){s=!0,e.metaKey||!c&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",u("keyboard",e))}function f(e){if(o="pointer","mousedown"===e.type||"pointerdown"===e.type){s=!0;let t=e.composedPath?e.composedPath()[0]:e.target,n=!1;try{n=t.matches(":focus-visible")}catch{}n||u("pointer",e)}}function h(e){(0===e.mozInputSource&&e.isTrusted||0===e.detail&&!e.pointerType)&&(s=!0,o="virtual")}function p(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(s||a||(o="virtual",u("virtual",e)),s=!1,a=!1)}function m(){s=!1,a=!0}function g(){return"pointer"!==o}function v(e){!function(){if(!r()||i)return;let{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){s=!0,e.apply(this,t)},document.addEventListener("keydown",d,!0),document.addEventListener("keyup",d,!0),document.addEventListener("click",h,!0),window.addEventListener("focus",p,!0),window.addEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",f,!0),document.addEventListener("pointermove",f,!0),document.addEventListener("pointerup",f,!0)):(document.addEventListener("mousedown",f,!0),document.addEventListener("mousemove",f,!0),document.addEventListener("mouseup",f,!0)),i=!0}(),e(g());let t=()=>e(g());return l.add(t),()=>{l.delete(t)}}},61683:function(e,t,n){"use strict";n.d(t,{IZ:function(){return d},d7:function(){return i}});let{Axios:r,AxiosError:i,CanceledError:o,isCancel:s,CancelToken:a,VERSION:l,all:u,Cancel:c,isAxiosError:d,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:m,formToJSON:g,getAdapter:v,mergeConfig:y}=n(46846).default},46846:function(e,t,n){"use strict";let r,i,o,s,a;n.d(t,{default:function(){return th}});var l,u,c,d,f,h={};function p(e,t){return function(){return e.apply(t,arguments)}}n.r(h),n.d(h,{hasBrowserEnv:function(){return eg},hasStandardBrowserEnv:function(){return ey},hasStandardBrowserWebWorkerEnv:function(){return eb},navigator:function(){return ev},origin:function(){return ew}});var m=n(79294);let{toString:g}=Object.prototype,{getPrototypeOf:v}=Object,y=(r=Object.create(null),e=>{let t=g.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),b=e=>(e=e.toLowerCase(),t=>y(t)===e),w=e=>t=>typeof t===e,{isArray:x}=Array,S=w("undefined"),k=b("ArrayBuffer"),E=w("string"),_=w("function"),C=w("number"),O=e=>null!==e&&"object"==typeof e,T=e=>{if("object"!==y(e))return!1;let t=v(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},I=b("Date"),A=b("File"),P=b("Blob"),R=b("FileList"),M=b("URLSearchParams"),[j,N,D,L]=["ReadableStream","Request","Response","Headers"].map(b);function z(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e){if("object"!=typeof e&&(e=[e]),x(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}}function F(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}let B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,$=e=>!S(e)&&e!==B,U=(i="undefined"!=typeof Uint8Array&&v(Uint8Array),e=>i&&e instanceof i),V=b("HTMLFormElement"),q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),W=b("RegExp"),H=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},G=b("AsyncFunction"),Z=(l="function"==typeof setImmediate,u=_(B.postMessage),l?setImmediate:u?(c=`axios@${Math.random()}`,d=[],B.addEventListener("message",({source:e,data:t})=>{e===B&&t===c&&d.length&&d.shift()()},!1),e=>{d.push(e),B.postMessage(c,"*")}):e=>setTimeout(e)),K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(B):void 0!==m&&m.nextTick||Z;var Y={isArray:x,isArrayBuffer:k,isBuffer:function(e){return null!==e&&!S(e)&&null!==e.constructor&&!S(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||_(e.append)&&("formdata"===(t=y(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&k(e.buffer)},isString:E,isNumber:C,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:T,isReadableStream:j,isRequest:N,isResponse:D,isHeaders:L,isUndefined:S,isDate:I,isFile:A,isBlob:P,isRegExp:W,isFunction:_,isStream:e=>O(e)&&_(e.pipe),isURLSearchParams:M,isTypedArray:U,isFileList:R,forEach:z,merge:function e(){let{caseless:t}=$(this)&&this||{},n={},r=(r,i)=>{let o=t&&F(n,i)||i;T(n[o])&&T(r)?n[o]=e(n[o],r):T(r)?n[o]=e({},r):x(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&_(t)?e[r]=p(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,s;let a={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==n&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:y,kindOfTest:b,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!C(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[Symbol.iterator]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:V,hasOwnProperty:q,hasOwnProp:q,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,n)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(_(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(x(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F,global:B,isContextDefined:$,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(O(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=x(e)?[]:{};return z(e,(e,t)=>{let o=n(e,r+1);S(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:G,isThenable:e=>e&&(O(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:Z,asap:K};function J(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Y.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});let X=J.prototype,Q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Q[e]={value:e}}),Object.defineProperties(J,Q),Object.defineProperty(X,"isAxiosError",{value:!0}),J.from=(e,t,n,r,i,o)=>{let s=Object.create(X);return Y.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),J.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var ee=n(81503).Buffer;function et(e){return Y.isPlainObject(e)||Y.isArray(e)}function en(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function er(e,t,n){return e?e.concat(t).map(function(e,t){return e=en(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ei=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});var eo=function(e,t,n){if(!Y.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(!a&&Y.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):ee.from(e):e}function u(e,n,i){let a=e;if(e&&!i&&"object"==typeof e){if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(Y.isArray(e)&&(u=e,Y.isArray(u)&&!u.some(et))||(Y.isFileList(e)||Y.endsWith(n,"[]"))&&(a=Y.toArray(e)))return n=en(n),a.forEach(function(e,r){Y.isUndefined(e)||null===e||t.append(!0===s?er([n],r,o):null===s?n:n+"[]",l(e))}),!1}}return!!et(e)||(t.append(er(i,n,o),l(e)),!1)}let c=[],d=Object.assign(ei,{defaultVisitor:u,convertValue:l,isVisitable:et});if(!Y.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!Y.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Y.forEach(n,function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&i.call(t,n,Y.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function es(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ea(e,t){this._pairs=[],e&&eo(e,this,t)}let el=ea.prototype;function eu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,t,n){let r;if(!t)return e;let i=n&&n.encode||eu;Y.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(t,n):Y.isURLSearchParams(t)?t.toString():new ea(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}el.append=function(e,t){this._pairs.push([e,t])},el.toString=function(e){let t=e?function(t){return e.call(this,t,es)}:es;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ed{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ef={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eh="undefined"!=typeof URLSearchParams?URLSearchParams:ea,ep="undefined"!=typeof FormData?FormData:null,em="undefined"!=typeof Blob?Blob:null;let eg="undefined"!=typeof window&&"undefined"!=typeof document,ev="object"==typeof navigator&&navigator||void 0,ey=eg&&(!ev||0>["ReactNative","NativeScript","NS"].indexOf(ev.product)),eb="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ew=eg&&window.location.href||"http://localhost";var ex={...h,isBrowser:!0,classes:{URLSearchParams:eh,FormData:ep,Blob:em},protocols:["http","https","file","blob","url","data"]},eS=function(e){if(Y.isFormData(e)&&Y.isFunction(e.entries)){let t={};return Y.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let s=Number.isFinite(+o),a=i>=t.length;return(o=!o&&Y.isArray(r)?r.length:o,a)?Y.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&Y.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&Y.isArray(r[o])&&(r[o]=function(e){let t,n;let r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!s}(Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let ek={transitional:ef,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=Y.isObject(e);if(o&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return i?JSON.stringify(eS(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var s,a;return(s=e,a=this.formSerializer,eo(s,new ex.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ex.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))).toString()}if((n=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return eo(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||ek.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ex.classes.FormData,Blob:ex.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ek.headers[e]={}});let eE=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var e_=e=>{let t,n,r;let i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&eE[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i};let eC=Symbol("internals");function eO(e){return e&&String(e).trim().toLowerCase()}function eT(e){return!1===e||null==e?e:Y.isArray(e)?e.map(eT):String(e)}let eI=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eA(e,t,n,r,i){if(Y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Y.isString(t)){if(Y.isString(r))return -1!==t.indexOf(r);if(Y.isRegExp(r))return r.test(t)}}class eP{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eO(t);if(!i)throw Error("header name must be a non-empty string");let o=Y.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=eT(e))}let o=(e,t)=>Y.forEach(e,(e,n)=>i(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Y.isString(e)&&(e=e.trim())&&!eI(e))o(e_(e),t);else if(Y.isHeaders(e))for(let[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=eO(e)){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eO(e)){let n=Y.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eA(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eO(e)){let i=Y.findKey(n,e);i&&(!t||eA(n,n[i],i,t))&&(delete n[i],r=!0)}}return Y.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eA(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Y.forEach(this,(r,i)=>{let o=Y.findKey(n,i);if(o){t[o]=eT(r),delete t[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();s!==i&&delete t[i],t[s]=eT(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Y.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eC]=this[eC]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eO(e);t[r]||(!function(e,t){let n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}}function eR(e,t){let n=this||ek,r=t||n,i=eP.from(r.headers),o=r.data;return Y.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eM(e){return!!(e&&e.__CANCEL__)}function ej(e,t,n){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError"}function eN(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eP.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(eP.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(eP),Y.inherits(ej,J,{__CANCEL__:!0});var eD=function(e,t){let n;let r=Array(e=e||10),i=Array(e),o=0,s=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),u=i[s];n||(n=l),r[o]=a,i[o]=l;let c=s,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===s&&(s=(s+1)%e),l-n<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},eL=function(e,t){let n,r,i=0,o=1e3/t,s=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),a=t-i;a>=o?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},o-a)))},()=>n&&s(n)]};let ez=(e,t,n=3)=>{let r=0,i=eD(50,250);return eL(n=>{let o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-r,l=i(a);r=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},eF=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eB=e=>(...t)=>Y.asap(()=>e(...t));var e$=ex.hasStandardBrowserEnv?(o=new URL(ex.origin),s=ex.navigator&&/(msie|trident)/i.test(ex.navigator.userAgent),e=>(e=new URL(e,ex.origin),o.protocol===e.protocol&&o.host===e.host&&(s||o.port===e.port))):()=>!0,eU=ex.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let s=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&s.push("path="+r),Y.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eV(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||!1==n?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eq=e=>e instanceof eP?{...e}:e;function eW(e,t){t=t||{};let n={};function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,n,i){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function s(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(eq(e),eq(t),n,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=l[r]||i,s=o(e[r],t[r],r);Y.isUndefined(s)&&o!==a||(n[r]=s)}),n}var eH=e=>{let t;let n=eW({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=n;if(n.headers=a=eP.from(a),n.url=ec(eV(n.baseURL,n.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Y.isFormData(r)){if(ex.hasStandardBrowserEnv||ex.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(t=a.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...n].join("; "))}}if(ex.hasStandardBrowserEnv&&(i&&Y.isFunction(i)&&(i=i(n)),i||!1!==i&&e$(n.url))){let e=o&&s&&eU.read(s);e&&a.set(o,e)}return n},eG="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,s,a;let l=eH(e),u=l.data,c=eP.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=l;function p(){s&&s(),a&&a(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;function g(){if(!m)return;let r=eP.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eN(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||ef;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new J(t,r.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},void 0===u&&c.setContentType(null),"setRequestHeader"in m&&Y.forEach(c.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Y.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&"json"!==d&&(m.responseType=l.responseType),h&&([o,a]=ez(h,!0),m.addEventListener("progress",o)),f&&m.upload&&([i,s]=ez(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",s)),(l.cancelToken||l.signal)&&(r=t=>{m&&(n(!t||t.type?new ej(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let v=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(v&&-1===ex.protocols.indexOf(v)){n(new J("Unsupported protocol "+v+":",J.ERR_BAD_REQUEST,e));return}m.send(u||null)})},eZ=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,i=function(e){if(!n){n=!0,s();let t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new ej(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t),s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:a}=r;return a.unsubscribe=()=>Y.asap(s),a}};let eK=function*(e,t){let n,r=e.byteLength;if(!t||r<t){yield e;return}let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},eY=async function*(e,t){for await(let n of eJ(e))yield*eK(n,t)},eJ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},eX=(e,t,n,r)=>{let i;let o=eY(e,t),s=0,a=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){a(),e.close();return}let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},eQ="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e0=eQ&&"function"==typeof ReadableStream,e1=eQ&&("function"==typeof TextEncoder?(a=new TextEncoder,e=>a.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e2=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e3=e0&&e2(()=>{let e=!1,t=new Request(ex.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e5=e0&&e2(()=>Y.isReadableStream(new Response("").body)),e4={stream:e5&&(e=>e.body)};eQ&&(f=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e4[e]||(e4[e]=Y.isFunction(f[e])?t=>t[e]():(t,n)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})}));let e6=async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){let t=new Request(ex.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e))?(await e1(e)).byteLength:void 0},e9=async(e,t)=>{let n=Y.toFiniteNumber(e.getContentLength());return null==n?e6(t):n},e8={http:null,xhr:eG,fetch:eQ&&(async e=>{let t,n,{url:r,method:i,data:o,signal:s,cancelToken:a,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:f,withCredentials:h="same-origin",fetchOptions:p}=eH(e);d=d?(d+"").toLowerCase():"text";let m=eZ([s,a&&a.toAbortSignal()],l),g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(c&&e3&&"get"!==i&&"head"!==i&&0!==(n=await e9(f,o))){let e,t=new Request(r,{method:"POST",body:o,duplex:"half"});if(Y.isFormData(o)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,r]=eF(n,ez(eB(c)));o=eX(t.body,65536,e,r)}}Y.isString(h)||(h=h?"include":"omit");let s="credentials"in Request.prototype;t=new Request(r,{...p,signal:m,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:s?h:void 0});let a=await fetch(t),l=e5&&("stream"===d||"response"===d);if(e5&&(u||l&&g)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});let t=Y.toFiniteNumber(a.headers.get("content-length")),[n,r]=u&&eF(t,ez(eB(u),!0))||[];a=new Response(eX(a.body,65536,n,()=>{r&&r(),g&&g()}),e)}d=d||"text";let v=await e4[Y.findKey(e4,d)||"text"](a,e);return!l&&g&&g(),await new Promise((n,r)=>{eN(n,r,{data:v,headers:eP.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:t})})}catch(n){if(g&&g(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,t),{cause:n.cause||n});throw J.from(n,n&&n.code,e,t)}})};Y.forEach(e8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e7=e=>`- ${e}`,te=e=>Y.isFunction(e)||null===e||!1===e;var tt=e=>{let t,n;let{length:r}=e=Y.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!te(t)&&void 0===(n=e8[(r=String(t)).toLowerCase()]))throw new J(`Unknown adapter '${r}'`);if(n)break;i[r||"#"+o]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new J("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(e7).join("\n"):" "+e7(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ej(null,e)}function tr(e){return tn(e),e.headers=eP.from(e.headers),e.data=eR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ek.adapter)(e).then(function(t){return tn(e),t.data=eR.call(e,e.transformResponse,t),t.headers=eP.from(t.headers),t},function(t){return!eM(t)&&(tn(e),t&&t.response&&(t.response.data=eR.call(e,e.transformResponse,t.response),t.response.headers=eP.from(t.response.headers))),Promise.reject(t)})}let ti="1.8.2",to={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{to[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ts={};to.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ti+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new J(r(i," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!ts[i]&&(ts[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},to.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ta={assertOptions:function(e,t,n){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],s=t[o];if(s){let t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new J("option "+o+" must be "+n,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}},validators:to};let tl=ta.validators;class tu{constructor(e){this.defaults=e,this.interceptors={request:new ed,response:new ed}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:s}=t=eW(this.defaults,t);void 0!==i&&ta.assertOptions(i,{silentJSONParsing:tl.transitional(tl.boolean),forcedJSONParsing:tl.transitional(tl.boolean),clarifyTimeoutError:tl.transitional(tl.boolean)},!1),null!=o&&(Y.isFunction(o)?t.paramsSerializer={serialize:o}:ta.assertOptions(o,{encode:tl.function,serialize:tl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ta.assertOptions(t,{baseUrl:tl.spelling("baseURL"),withXsrfToken:tl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&Y.merge(s.common,s[t.method]);s&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=eP.concat(a,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[tr.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=l.length;let f=t;for(d=0;d<r;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=tr.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return ec(eV((e=eW(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){tu.prototype[e]=function(t,n){return this.request(eW(n||{},{method:e,url:t,data:(n||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(eW(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tu.prototype[e]=t(),tu.prototype[e+"Form"]=t(!0)});class tc{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new ej(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tc(function(t){e=t}),cancel:e}}}let td={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(td).forEach(([e,t])=>{td[t]=e});let tf=function e(t){let n=new tu(t),r=p(tu.prototype.request,n);return Y.extend(r,tu.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eW(t,n))},r}(ek);tf.Axios=tu,tf.CanceledError=ej,tf.CancelToken=tc,tf.isCancel=eM,tf.VERSION=ti,tf.toFormData=eo,tf.AxiosError=J,tf.Cancel=tf.CanceledError,tf.all=function(e){return Promise.all(e)},tf.spread=function(e){return function(t){return e.apply(null,t)}},tf.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},tf.mergeConfig=eW,tf.AxiosHeaders=eP,tf.formToJSON=e=>eS(Y.isHTMLForm(e)?new FormData(e):e),tf.getAdapter=tt,tf.HttpStatusCode=td,tf.default=tf;var th=tf},88605:function(e,t,n){"use strict";n.d(t,{Ph:function(){return t5}});var r,i,o,s=n(66703),a=n(52826);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=n(48111);function f(e,t){if(null==e)return{};var n,r,i=(0,d.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function p(e){var t=e.defaultInputValue,n=e.defaultMenuIsOpen,r=e.defaultValue,i=e.inputValue,o=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,m=e.value,g=f(e,h),v=c((0,s.useState)(void 0!==i?i:void 0===t?"":t),2),y=v[0],b=v[1],w=c((0,s.useState)(void 0!==o?o:void 0!==n&&n),2),x=w[0],S=w[1],k=c((0,s.useState)(void 0!==m?m:void 0===r?null:r),2),E=k[0],_=k[1],C=(0,s.useCallback)(function(e,t){"function"==typeof l&&l(e,t),_(e)},[l]),O=(0,s.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)},[u]),T=(0,s.useCallback)(function(){"function"==typeof p&&p(),S(!0)},[p]),I=(0,s.useCallback)(function(){"function"==typeof d&&d(),S(!1)},[d]),A=void 0!==i?i:y,P=void 0!==o?o:x,R=void 0!==m?m:E;return(0,a.Z)((0,a.Z)({},g),{},{inputValue:A,menuIsOpen:P,onChange:C,onInputChange:O,onMenuClose:I,onMenuOpen:T,value:R})}var m=n(52409),g=n(23438);function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,g.Z)(r.key),r)}}var y=n(2890);function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var x=n(28108);function S(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var k=n(68312),E=n(64729),_=n(93694);let C=Math.min,O=Math.max,T=Math.round,I=Math.floor,A=e=>({x:e,y:e});function P(){return"undefined"!=typeof window}function R(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return!!P()&&(e instanceof Node||e instanceof M(e).Node)}function D(e){return!!P()&&(e instanceof Element||e instanceof M(e).Element)}function L(e){return!!P()&&(e instanceof HTMLElement||e instanceof M(e).HTMLElement)}function z(e){return!!P()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function B(e){return M(e).getComputedStyle(e)}function $(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=function(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||j(e);return z(t)?t.host:t}(t);return["html","body","#document"].includes(R(n))?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=M(i);if(o){let e=U(s);return t.concat(s,s.visualViewport||[],F(i)?i:[],e&&n?$(e):[])}return t.concat(i,$(i,[],n))}function U(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function V(e){return D(e)?e:e.contextElement}function q(e){let t=V(e);if(!L(t))return A(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){let t=B(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=L(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=T(n)!==o||T(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}(t),s=(o?T(n.width):n.width)/r,a=(o?T(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let W=A(0);function H(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=V(e),a=A(1);t&&(r?D(r)&&(a=q(r)):a=q(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===M(s))&&i)?function(e){let t=M(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:W}(s):A(0),u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){let e=M(s),t=r&&D(r)?M(r):r,n=e,i=U(n);for(;i&&r&&t!==n;){let e=q(i),t=i.getBoundingClientRect(),r=B(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=s,i=U(n=M(i))}}return function(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:d,height:f,x:u,y:c})}function G(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Z=s.useLayoutEffect,K=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Y=function(){};function J(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(s?"-"===s[0]?e+s:e+"__"+s:e));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var X=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,x.Z)(e)&&null!==e?[e]:[]},Q=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=f(e,K);return(0,a.Z)({},t)},ee=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,s=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),s)}};function et(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function en(e){return et(e)?window.pageYOffset:e.scrollTop}function er(e,t){if(et(e)){window.scrollTo(0,t);return}e.scrollTop=t}function ei(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Y,i=en(e),o=t-i,s=0;!function t(){var a;s+=10,er(e,o*((a=(a=s)/n-1)*a*a+1)+i),s<n?window.requestAnimationFrame(t):r(e)}()}function eo(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?er(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&er(e,Math.max(t.offsetTop-i,0))}function es(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ea=!1,el="undefined"!=typeof window?window:{};el.addEventListener&&el.removeEventListener&&(el.addEventListener("p",Y,{get passive(){return ea=!0}}),el.removeEventListener("p",Y,!1));var eu=ea;function ec(e){return null!=e}for(var ed=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=c(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=c(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},ef=["children","innerProps"],eh=["children","innerProps"],ep=function(e){return"auto"===e?"bottom":e},em=(0,s.createContext)(null),eg=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,l=e.menuShouldScrollIntoView,u=e.theme,d=((0,s.useContext)(em)||{}).setPortalPlacement,f=(0,s.useRef)(null),h=c((0,s.useState)(r),2),p=h[0],m=h[1],g=c((0,s.useState)(null),2),v=g[0],y=g[1],b=u.spacing.controlHeight;return Z(function(){var e=f.current;if(e){var t="fixed"===o,s=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,p=d.top,m=n.offsetParent.getBoundingClientRect().top,g=s?window.innerHeight:et(l)?window.innerHeight:l.clientHeight,v=en(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,x=g-p,S=w+v,k=c-v-p,E=f-g+v+y,_=v+p-b;switch(i){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(k>=h&&!s)return o&&ei(l,E,160),{placement:"bottom",maxHeight:t};if(!s&&k>=r||s&&x>=r)return o&&ei(l,E,160),{placement:"bottom",maxHeight:s?x-y:k-y};if("auto"===i||s){var C=t,O=s?w:S;return O>=r&&(C=Math.min(O-y-a,t)),{placement:"top",maxHeight:C}}if("bottom"===i)return o&&er(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!s)return o&&ei(l,_,160),{placement:"top",maxHeight:t};if(!s&&S>=r||s&&w>=r){var T=t;return(!s&&S>=r||s&&w>=r)&&(T=s?w-b:S-b),o&&ei(l,_,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:b});m(s.maxHeight),y(s.placement),null==d||d(s.placement)}},[r,i,o,l,n,d,b]),t({ref:f,placerProps:(0,a.Z)((0,a.Z)({},e),{},{placement:v||ep(i),maxHeight:p})})},ev=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,a.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ey=["size"],eb=["innerProps","isRtl","size"],ew={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ex=function(e){var t=e.size,n=f(e,ey);return(0,k.tZ)("svg",(0,m.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ew},n))},eS=function(e){return(0,k.tZ)(ex,(0,m.Z)({size:20},e),(0,k.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ek=function(e){return(0,k.tZ)(ex,(0,m.Z)({size:20},e),(0,k.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},eE=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,a.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},e_=(0,k.F4)(o||(r=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],i||(i=r.slice(0)),o=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}})))),eC=function(e){var t=e.delay,n=e.offset;return(0,k.tZ)("span",{css:(0,k.iv)({animation:"".concat(e_," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eO=["data"],eT=["innerRef","isDisabled","isHidden","inputClassName"],eI={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},eA={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,a.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eI)},eP=function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",n,t)},eR={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,k.tZ)(eS,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,s=e.menuIsOpen;return(0,k.tZ)("div",(0,m.Z)({ref:i},ee(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,k.tZ)(ek,null))},DownChevron:ek,CrossIcon:eS,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"group",{group:!0}),a),(0,k.tZ)(o,(0,m.Z)({},s,{selectProps:c,theme:u,getStyles:r,getClassNames:i,cx:n}),l),(0,k.tZ)("div",null,t))},GroupHeading:function(e){var t=Q(e);t.data;var n=f(t,eO);return(0,k.tZ)("div",(0,m.Z)({},ee(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,k.tZ)("span",(0,m.Z)({},t,ee(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Q(e),i=r.innerRef,o=r.isDisabled,s=r.isHidden,l=r.inputClassName,u=f(r,eT);return(0,k.tZ)("div",(0,m.Z)({},ee(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,k.tZ)("input",(0,m.Z)({className:t({input:!0},l),ref:i,style:(0,a.Z)({label:"input",color:"inherit",background:0,opacity:s?0:1,width:"100%"},eI),disabled:o},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=f(e,eb);return(0,k.tZ)("div",(0,m.Z)({},ee((0,a.Z)((0,a.Z)({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,k.tZ)(eC,{delay:0,offset:n}),(0,k.tZ)(eC,{delay:160,offset:!0}),(0,k.tZ)(eC,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,l=e.menuPosition,u=(0,s.useRef)(null),d=(0,s.useRef)(null),f=c((0,s.useState)(ep(o)),2),h=f[0],p=f[1],g=(0,s.useMemo)(function(){return{setPortalPlacement:p}},[]),v=c((0,s.useState)(null),2),y=v[0],b=v[1],w=(0,s.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===l?0:window.pageYOffset,i=t[h]+n;(i!==(null==y?void 0:y.offset)||t.left!==(null==y?void 0:y.rect.left)||t.width!==(null==y?void 0:y.rect.width))&&b({offset:i,rect:t})}},[r,l,h,null==y?void 0:y.offset,null==y?void 0:y.rect.left,null==y?void 0:y.rect.width]);Z(function(){w()},[w]);var x=(0,s.useCallback)(function(){"function"==typeof d.current&&(d.current(),d.current=null),r&&u.current&&(d.current=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=V(e),d=o||s?[...c?$(c):[],...$(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=j(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(a||t(),!f||!h)return;let p=I(d),m=I(i.clientWidth-(c+f)),g={rootMargin:-p+"px "+-m+"px "+-I(i.clientHeight-(d+h))+"px "+-I(c)+"px",threshold:O(0,C(1,l))||1},v=!0;function y(t){let r=t[0].intersectionRatio;if(r!==l){if(!v)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||G(u,e.getBoundingClientRect())||s(),v=!1}try{r=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),o}(c,n):null,h=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?H(e):null;return u&&function t(){let r=H(e);m&&!G(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(r,u.current,w,{elementResize:("ResizeObserver"in window)}))},[r,w]);Z(function(){x()},[x]);var S=(0,s.useCallback)(function(e){u.current=e,x()},[x]);if(!t&&"fixed"!==l||!y)return null;var E=(0,k.tZ)("div",(0,m.Z)({ref:S},ee((0,a.Z)((0,a.Z)({},e),{},{offset:y.offset,position:l,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),n);return(0,k.tZ)(em.Provider,{value:g},t?(0,_.createPortal)(E,t):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=f(e,eh);return(0,k.tZ)("div",(0,m.Z)({},ee((0,a.Z)((0,a.Z)({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=f(e,ef);return(0,k.tZ)("div",(0,m.Z)({},ee((0,a.Z)((0,a.Z)({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,s=e.removeProps,l=e.selectProps,u=n.Container,c=n.Label,d=n.Remove;return(0,k.tZ)(u,{data:r,innerProps:(0,a.Z)((0,a.Z)({},ee(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:l},(0,k.tZ)(c,{data:r,innerProps:(0,a.Z)({},ee(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,k.tZ)(d,{data:r,innerProps:(0,a.Z)((0,a.Z)({},ee(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:l}))},MultiValueContainer:eP,MultiValueLabel:eP,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,m.Z)({role:"button"},n),t||(0,k.tZ)(eS,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,s=e.innerProps;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,k.tZ)("div",(0,m.Z)({},ee(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},eM=n(24998),ej={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},eN=function(e){return(0,k.tZ)("span",(0,m.Z)({css:ej},e))},eD={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,s=e.selectValue,a=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(o," focused, ").concat(c(s,n),".");if("menu"===t&&u){var d="".concat(l?" selected":"").concat(a?" disabled":"");return"".concat(o).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},eL=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,l=e.selectValue,u=e.selectProps,c=e.id,d=e.isAppleDevice,f=u.ariaLiveMessages,h=u.getOptionLabel,p=u.inputValue,m=u.isMulti,g=u.isOptionDisabled,v=u.isSearchable,y=u.menuIsOpen,b=u.options,w=u.screenReaderStatus,x=u.tabSelectsValue,S=u.isLoading,E=u["aria-label"],_=u["aria-live"],C=(0,s.useMemo)(function(){return(0,a.Z)((0,a.Z)({},eD),f||{})},[f]),O=(0,s.useMemo)(function(){var e="";if(t&&C.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,s=t.value,u=i||n||(Array.isArray(s)?null:s),c=u?h(u):"",d=r||o||void 0,f=d?d.map(h):[],p=(0,a.Z)({isDisabled:u&&g(u,l),label:c,labels:f},t);e=C.onChange(p)}return e},[t,C,g,l,h]),T=(0,s.useMemo)(function(){var e="",t=n||r,o=!!(n&&l&&l.includes(n));if(t&&C.onFocus){var s={focused:t,label:h(t),isDisabled:g(t,l),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:l,isAppleDevice:d};e=C.onFocus(s)}return e},[n,r,h,g,C,i,l,d]),I=(0,s.useMemo)(function(){var e="";if(y&&b.length&&!S&&C.onFilter){var t=w({count:i.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,y,C,b,w,S]),A=(null==t?void 0:t.action)==="initial-input-focus",P=(0,s.useMemo)(function(){var e="";if(C.guidance){var t=r?"value":y?"menu":"input";e=C.guidance({"aria-label":E,context:t,isDisabled:n&&g(n,l),isMulti:m,isSearchable:v,tabSelectsValue:x,isInitialFocus:A})}return e},[E,n,r,m,g,v,y,C,l,x,A]),R=(0,k.tZ)(s.Fragment,null,(0,k.tZ)("span",{id:"aria-selection"},O),(0,k.tZ)("span",{id:"aria-focused"},T),(0,k.tZ)("span",{id:"aria-results"},I),(0,k.tZ)("span",{id:"aria-guidance"},P));return(0,k.tZ)(s.Fragment,null,(0,k.tZ)(eN,{id:c},A&&R),(0,k.tZ)(eN,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!A&&R))},ez=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eF=RegExp("["+ez.map(function(e){return e.letters}).join("")+"]","g"),eB={},e$=0;e$<ez.length;e$++)for(var eU=ez[e$],eV=0;eV<eU.letters.length;eV++)eB[eU.letters[eV]]=eU.base;var eq=function(e){return e.replace(eF,function(e){return eB[e]})},eW=(0,eM.Z)(eq),eH=function(e){return e.replace(/^\s+|\s+$/g,"")},eG=function(e){return"".concat(e.label," ").concat(e.value)},eZ=["innerRef"];function eK(e){var t=e.innerRef,n=ed(f(e,eZ),"onExited","in","enter","exit","appear");return(0,k.tZ)("input",(0,m.Z)({ref:t},n,{css:(0,k.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var eY=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},eJ=["boxSizing","height","overflow","paddingRight","position"],eX={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function eQ(e){e.cancelable&&e.preventDefault()}function e0(e){e.stopPropagation()}function e1(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function e2(){return"ontouchstart"in window||navigator.maxTouchPoints}var e3=!!("undefined"!=typeof window&&window.document&&window.document.createElement),e5=0,e4={capture:!1,passive:!1},e6=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},e9={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function e8(e){var t,n,r,i,o,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,E,_,C,O=e.children,T=e.lockEnabled,I=e.captureEnabled,A=(n=(t={isEnabled:void 0===I||I,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,a=t.onTopLeave,l=(0,s.useRef)(!1),u=(0,s.useRef)(!1),c=(0,s.useRef)(0),d=(0,s.useRef)(null),f=(0,s.useCallback)(function(e,t){if(null!==d.current){var n=d.current,s=n.scrollTop,c=n.scrollHeight,f=n.clientHeight,h=d.current,p=t>0,m=c-f-s,g=!1;m>t&&l.current&&(i&&i(e),l.current=!1),p&&u.current&&(a&&a(e),u.current=!1),p&&t>m?(r&&!l.current&&r(e),h.scrollTop=c,g=!0,l.current=!0):!p&&-t>s&&(o&&!u.current&&o(e),h.scrollTop=0,g=!0,u.current=!0),g&&eY(e)}},[r,i,o,a]),h=(0,s.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,s.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),m=(0,s.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),g=(0,s.useCallback)(function(e){if(e){var t=!!eu&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}},[m,p,h]),v=(0,s.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))},[m,p,h]),(0,s.useEffect)(function(){if(n){var e=d.current;return g(e),function(){v(e)}}},[n,g,v]),function(e){d.current=e}),P=(b=(y={isEnabled:T}).isEnabled,x=void 0===(w=y.accountForScrollbars)||w,S=(0,s.useRef)({}),E=(0,s.useRef)(null),_=(0,s.useCallback)(function(e){if(e3){var t=document.body,n=t&&t.style;if(x&&eJ.forEach(function(e){var t=n&&n[e];S.current[e]=t}),x&&e5<1){var r=parseInt(S.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(eX).forEach(function(e){var t=eX[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(o,"px"))}t&&e2()&&(t.addEventListener("touchmove",eQ,e4),e&&(e.addEventListener("touchstart",e1,e4),e.addEventListener("touchmove",e0,e4))),e5+=1}},[x]),C=(0,s.useCallback)(function(e){if(e3){var t=document.body,n=t&&t.style;e5=Math.max(e5-1,0),x&&e5<1&&eJ.forEach(function(e){var t=S.current[e];n&&(n[e]=t)}),t&&e2()&&(t.removeEventListener("touchmove",eQ,e4),e&&(e.removeEventListener("touchstart",e1,e4),e.removeEventListener("touchmove",e0,e4)))}},[x]),(0,s.useEffect)(function(){if(b){var e=E.current;return _(e),function(){C(e)}}},[b,_,C]),function(e){E.current=e});return(0,k.tZ)(s.Fragment,null,T&&(0,k.tZ)("div",{onClick:e6,css:e9}),O(function(e){A(e),P(e)}))}var e7={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},te=function(e){var t=e.name,n=e.onFocus;return(0,k.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:e7,value:"",onChange:function(){}})};function tt(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}var tn=function(e){return e.label},tr=function(e){return e.value},ti={clearIndicator:eE,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,s=i.borderRadius,l=i.spacing;return(0,a.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:eE,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,a.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,a.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,s=i.colors;return(0,a.Z)((0,a.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},eA),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,s=i.spacing.baseUnit;return(0,a.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*s})},loadingMessage:ev,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,s=i.spacing,l=i.colors;return(0,a.Z)((n={label:"menu"},(0,E.Z)(n,r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),(0,E.Z)(n,"position","absolute"),(0,E.Z)(n,"width","100%"),(0,E.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,a.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return(0,a.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return(0,a.Z)({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,s=e.isFocused;return(0,a.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:ev,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,s=o.spacing,l=o.colors;return(0,a.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,a.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return(0,a.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return(0,a.Z)({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},to={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ts={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:es(),captureMenuScroll:!es(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,a.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:eG,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,s=n.trim,l=n.matchFrom,u=s?eH(t):t,c=s?eH(o(e)):o(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=eW(u),c=eq(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:tn,getOptionValue:tr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ta(e,t,n,r){var i=tm(e,t,n),o=tg(e,t,n),s=th(e,t),a=tp(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:a,index:r}}function tl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return ta(e,n,t,r)}).filter(function(t){return td(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ta(e,n,t,r);return td(e,o)?o:void 0}).filter(ec)}function tu(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,S(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tc(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,S(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function td(e,t){var n=e.inputValue,r=t.data,i=t.isSelected,o=t.label,s=t.value;return(!ty(e)||!i)&&tv(e,{label:o,value:s,data:r},void 0===n?"":n)}var tf=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},th=function(e,t){return e.getOptionLabel(t)},tp=function(e,t){return e.getOptionValue(t)};function tm(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tg(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=tp(e,t);return n.some(function(t){return tp(e,t)===r})}function tv(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ty=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tb=1,tw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,y.Z)(e,t)}(o,e);var t,n,r,i=(t=w(),function(){var e,n=b(o);return e=t?Reflect.construct(n,arguments,b(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"==(0,x.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=tt(/^Mac/i)||tt(/^iPhone/i)||tt(/^iPad/i)||tt(/^Mac/i)&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,s=i.isMulti,a=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:a}),o&&(t.setState({inputIsHiddenAfterUpdate:!s}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,s=t.state.selectValue,a=i&&t.isOptionSelected(e,s),l=t.isOptionDisabled(e,s);if(a){var u=t.getOptionValue(e);t.setValue(s.filter(function(e){return t.getOptionValue(e)!==u}),"deselect-option",e)}else if(l){t.ariaOnChange(e,{action:"select-option",option:e,name:o});return}else i?t.setValue([].concat(S(s),[e]),"select-option",e):t.setValue(e,"select-option");r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),s=i.filter(function(e){return t.getOptionValue(e)!==o}),a=(n=s[0]||null,r?s:n);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,i=r[r.length-1],o=r.slice(0,r.length-1),s=(e=o[0]||null,n?o:e);i&&t.onChange(s,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return tf(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return tc(tl(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return J.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return th(t.props,e)},t.getOptionValue=function(e){return tp(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=ti[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,(0,a.Z)((0,a.Z)({},eR),e.components)},t.buildCategorizedOptions=function(){return tl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return tu(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,a.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&et(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ty(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,s=n.inputValue,a=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,m=h.focusedValue,g=h.selectValue;if(!l){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||s)return;t.focusValue("previous");break;case"ArrowRight":if(!r||s)return;t.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!u||!d||!p||f&&t.isOptionSelected(p,g))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:s}),t.onMenuClose()):a&&o&&t.clearValue();break;case" ":if(s)return;if(!u){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++tb),t.state.selectValue=X(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),s=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[s],t.state.focusedOptionId=tf(n,r[s])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&eo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(eo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s],focusedOptionId:this.getFocusedOptionId(o[s])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(s=i+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(to):(0,a.Z)((0,a.Z)({},to),this.props.theme):to}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,u=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return tm(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tg(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tv(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,l=e.form,u=e.menuIsOpen,c=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,g=this.commonProps,v=r||this.getElementId("input"),y=(0,a.Z)((0,a.Z)((0,a.Z)({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==p?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?s.createElement(d,(0,m.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:l,type:"text",value:i},y)):s.createElement(eK,(0,m.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Y,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,g=c.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!d)return p?null:s.createElement(l,(0,m.Z)({},u,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return y.map(function(t,a){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return s.createElement(n,(0,m.Z)({},u,{components:{Container:r,Label:i,Remove:o},isFocused:l,isDisabled:f,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var x=y[0];return s.createElement(a,(0,m.Z)({},u,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,(0,m.Z)({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?s.createElement(e,(0,m.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return s.createElement(n,(0,m.Z)({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,(0,m.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,a=n.MenuList,l=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,v=p.inputValue,y=p.isLoading,b=p.loadingMessage,w=p.minMenuHeight,x=p.maxMenuHeight,S=p.menuIsOpen,k=p.menuPlacement,E=p.menuPosition,_=p.menuPortalTarget,C=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,T=p.noOptionsMessage,I=p.onMenuScrollToTop,A=p.onMenuScrollToBottom;if(!S)return null;var P=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,a=e.isSelected,l=e.label,u=e.value,c=h===i,p=o?void 0:function(){return t.onOptionHover(i)},g=o?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:a};return s.createElement(d,(0,m.Z)({},f,{innerProps:y,data:i,isDisabled:o,isSelected:a,key:v,label:l,type:r,value:u,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,o=e.options,a=e.index,l="".concat(t.getElementId("group"),"-").concat(a),u="".concat(l,"-heading");return s.createElement(r,(0,m.Z)({},f,{key:l,data:n,options:o,Heading:i,headingProps:{id:u,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return P(e,"".concat(a,"-").concat(e.index))}))}if("option"===e.type)return P(e,"".concat(e.index))});else if(y){var R=b({inputValue:v});if(null===R)return null;e=s.createElement(u,f,R)}else{var M=T({inputValue:v});if(null===M)return null;e=s.createElement(c,f,M)}var j={minMenuHeight:w,maxMenuHeight:x,menuPlacement:k,menuPosition:E,menuShouldScrollIntoView:O},N=s.createElement(eg,(0,m.Z)({},f,j),function(n){var r=n.ref,i=n.placerProps,l=i.placement,u=i.maxHeight;return s.createElement(o,(0,m.Z)({},f,j,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:y,placement:l}),s.createElement(e8,{captureEnabled:g,onTopArrive:I,onBottomArrive:A,lockEnabled:C},function(n){return s.createElement(a,(0,m.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:y,maxHeight:u,focusedOption:h}),e)}))});return _||"fixed"===E?s.createElement(l,(0,m.Z)({},f,{appendTo:_,controlElement:this.controlRef,menuPlacement:k,menuPosition:E}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,l=this.state.selectValue;if(a&&!this.hasValue()&&!r)return s.createElement(te,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var u=l.map(function(t){return e.getOptionValue(t)}).join(n);return s.createElement("input",{name:o,type:"hidden",value:u})}var c=l.length>0?l.map(function(t,n){return s.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):s.createElement("input",{name:o,type:"hidden",value:""});return s.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return s.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return s.createElement(eL,(0,m.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,l=o.id,u=o.isDisabled,c=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return s.createElement(r,(0,m.Z)({},f,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),s.createElement(t,(0,m.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),s.createElement(i,(0,m.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),s.createElement(n,(0,m.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,s=t.ariaSelection,l=t.isFocused,u=t.prevWasFocused,c=t.instancePrefix,d=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,m=e.isMulti,g=X(f),v={};if(r&&(f!==r.value||d!==r.options||h!==r.menuIsOpen||p!==r.inputValue)){var y,b=h?tu(tl(e,g)):[],w=h?tc(tl(e,g),"".concat(c,"-option")):[],x=i?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,S=(y=t.focusedOption)&&b.indexOf(y)>-1?y:b[0],k=tf(w,S);v={selectValue:g,focusedOption:S,focusedOptionId:k,focusableOptionsWithIds:w,focusedValue:x,clearFocusValueOnUpdate:!1}}var E=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=s,C=l&&u;return l&&!C&&(_={value:(n=g[0]||null,m?g:n),options:g,action:"initial-input-focus"},C=!u),(null==s?void 0:s.action)==="initial-input-focus"&&(_=null),(0,a.Z)((0,a.Z)((0,a.Z)({},v),E),{},{prevProps:e,ariaSelection:_,prevWasFocused:C})}}],n&&v(o.prototype,n),r&&v(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(s.Component);tw.defaultProps=ts,n(76317);var tx=(0,s.forwardRef)(function(e,t){var n=p(e);return s.createElement(tw,(0,m.Z)({ref:t},n))}),tS=n(35518),tk=n(20395),tE=n(28561),t_=n(35364),tC=n(38622),tO=n(5845),tT=n(56756),tI=n(49110),tA=n(91504),tP=n(16276),tR=n(33028),tM=n(31172),tj=n(20130),tN=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],tD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return i===r||o===r},tL={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return tD(e,t,r)})||n.some(function(t){return tD(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function tz(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,l=void 0===o?tL.formatCreateLabel:o,u=e.isValidNewOption,c=void 0===u?tL.isValidNewOption:u,d=e.getNewOptionData,h=void 0===d?tL.getNewOptionData:d,p=e.onCreateOption,m=e.options,g=void 0===m?[]:m,v=e.onChange,y=f(e,tN),b=y.getOptionValue,w=void 0===b?tr:b,x=y.getOptionLabel,k=void 0===x?tn:x,E=y.inputValue,_=y.isLoading,C=y.isMulti,O=y.value,T=y.name,I=(0,s.useMemo)(function(){return c(E,X(O),g,{getOptionValue:w,getOptionLabel:k})?h(E,l(E)):void 0},[l,h,k,w,E,c,g,O]),A=(0,s.useMemo)(function(){return(n||!_)&&I?"first"===i?[I].concat(S(g)):[].concat(S(g),[I]):g},[n,i,_,I,g]),P=(0,s.useCallback)(function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===I){if(p)p(E);else{var r,i=h(E,E);v((r=[].concat(S(X(O)),[i]),C?r:i),{action:"create-option",name:T,option:i})}return}v(e,t)},[h,E,C,T,I,p,v,O]);return(0,a.Z)((0,a.Z)({},y),{},{options:A,onChange:P})}var tF=(0,s.forwardRef)(function(e,t){var n=tz(p(e));return s.createElement(tw,(0,m.Z)({ref:t},n))}),tB=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function t$(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,o=e.loadOptions;e.options;var l=e.isLoading,u=e.onInputChange,d=e.filterOption,h=f(e,tB),p=h.inputValue,m=(0,s.useRef)(void 0),g=(0,s.useRef)(!1),v=c((0,s.useState)(Array.isArray(n)?n:void 0),2),y=v[0],b=v[1],w=c((0,s.useState)(void 0!==p?p:""),2),x=w[0],S=w[1],k=c((0,s.useState)(!0===n),2),_=k[0],C=k[1],O=c((0,s.useState)(void 0),2),T=O[0],I=O[1],A=c((0,s.useState)([]),2),P=A[0],R=A[1],M=c((0,s.useState)(!1),2),j=M[0],N=M[1],D=c((0,s.useState)({}),2),L=D[0],z=D[1],F=c((0,s.useState)(void 0),2),B=F[0],$=F[1],U=c((0,s.useState)(void 0),2),V=U[0],q=U[1];i!==V&&(z({}),q(i)),n!==B&&(b(Array.isArray(n)?n:void 0),$(n)),(0,s.useEffect)(function(){return g.current=!0,function(){g.current=!1}},[]);var W=(0,s.useCallback)(function(e,t){if(!o)return t();var n=o(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[o]);(0,s.useEffect)(function(){!0===n&&W(x,function(e){g.current&&(b(e||[]),C(!!m.current))})},[]);var H=(0,s.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,u);if(!n){m.current=void 0,S(""),I(""),R([]),C(!1),N(!1);return}if(i&&L[n])S(n),I(n),R(L[n]),C(!1),N(!1);else{var r=m.current={};S(n),C(!0),N(!T),W(n,function(e){g&&r===m.current&&(m.current=void 0,C(!1),I(n),R(e||[]),N(!1),z(e?(0,a.Z)((0,a.Z)({},L),{},(0,E.Z)({},n,e)):L))})}},[i,W,T,L,u]),G=j?[]:x&&T?P:y||[];return(0,a.Z)((0,a.Z)({},h),{},{options:G,isLoading:_||void 0!==l&&l,onInputChange:H,filterOption:void 0===d?null:d})}var tU=(0,s.forwardRef)(function(e,t){var n=p(t$(e));return s.createElement(tw,(0,m.Z)({ref:t},n))}),tV=(0,s.forwardRef)(function(e,t){var n=tz(p(t$(e)));return s.createElement(tw,(0,m.Z)({ref:t},n))}),tq=e=>{let{className:t,clearValue:n,cx:r,getStyles:i,getClassNames:o,getValue:s,hasValue:a,isMulti:l,isRtl:u,options:c,selectOption:d,selectProps:f,setValue:h,theme:p,...m}=e;return{...m}},tW=e=>"string"==typeof e&&["sm","md","lg"].includes(e),tH=e=>tW(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md",tG=e=>{let t=tH((0,tS.F)().components.Input.defaultProps.size),n=null!=e?e:t;return(0,tk.S)("string"==typeof n?[n]:n,{fallback:"md"})||t},tZ=e=>(0,tj.jsx)(tO.J,{role:"presentation",focusable:"false","aria-hidden":"true",...e,children:(0,tj.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),tK=e=>(0,tj.jsx)(tO.J,{focusable:"false","aria-hidden":!0,...e,children:(0,tj.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"})}),tY=e=>e?({bottom:"top",top:"bottom"})[e]:"top",tJ=e=>(0,tj.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,tj.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),tX=e=>"object"==typeof e&&null!==e&&"colorScheme"in e&&"string"==typeof e.colorScheme,tQ=e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant,t0=e=>"object"==typeof e&&null!==e&&"isFixed"in e&&"boolean"==typeof e.isFixed,t1=e=>(0,tj.jsx)(tO.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,tj.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"})}),t2={ClearIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:s}}=e,a=tG(s),l={...(0,t_.m)("CloseButton",{size:a}),marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"},u=null!=o&&o.clearIndicator?o.clearIndicator(l,e):l,c={width:"1em",height:"1em"},d=null!=o&&o.crossIcon?o.crossIcon(c,e):c;return(0,tj.jsx)(tE.x,{role:"button",className:r({indicator:!0,"clear-indicator":!0},n),sx:u,"aria-label":"Clear selected options",...i,children:t||(0,tj.jsx)(tK,{sx:d})})},Control:e=>{let{className:t,cx:n,children:r,innerRef:i,innerProps:o,isDisabled:s,isFocused:a,menuIsOpen:l,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:h,isInvalid:p,isReadOnly:m}}=e,g=tG(c),{field:{height:v,h:y,...b}}=(0,t_.j)("Input",{size:g,variant:d,focusBorderColor:f,errorBorderColor:h}),w={...b,position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:v||y,...s?{pointerEvents:"none"}:{}},x=null!=u&&u.control?u.control(w,e):w;return(0,tj.jsx)(tE.x,{ref:i,className:n({control:!0,"control--is-disabled":s,"control--is-focused":a,"control--menu-is-open":l},t),sx:x,...o,"data-focus":!!a||void 0,"data-focus-visible":!!a||void 0,"data-invalid":!!p||void 0,"data-disabled":!!s||void 0,"data-readonly":!!m||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,useBasicStyles:s,size:a,focusBorderColor:l,errorBorderColor:u,variant:c}}=e,d=tG(a),f=(0,t_.j)("Input",{size:d,variant:c,focusBorderColor:l,errorBorderColor:u}),h={sm:"16px",md:"20px",lg:"24px"}[d],p={...f.addon,display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:h,...s&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}},m=null!=o&&o.dropdownIndicator?o.dropdownIndicator(p,e):p,g={height:"1em",width:"1em"},v=null!=o&&o.downChevron?o.downChevron(g,e):g;return(0,tj.jsx)(tE.x,{...i,className:r({indicator:!0,"dropdown-indicator":!0},n),sx:m,children:t||(0,tj.jsx)(tZ,{sx:v})})},Group:e=>{let{children:t,className:n,cx:r,theme:i,getStyles:o,Heading:s,headingProps:a,label:l,selectProps:u,innerProps:c,getClassNames:d}=e,{chakraStyles:f}=u,h={},p=null!=f&&f.group?f.group(h,e):h;return(0,tj.jsxs)(tE.x,{...c,className:r({group:!0},n),sx:p,children:[(0,tj.jsx)(s,{...a,selectProps:u,cx:r,theme:i,getStyles:o,getClassNames:d,children:l}),(0,tj.jsx)(tE.x,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:i,hasStickyGroupHeaders:o}}=e,{data:s,...a}=tq(e),l=(0,t_.j)("Menu"),u=tG(i),c={...l.groupTitle,fontSize:{sm:"xs",md:"sm",lg:"md"}[u],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[u],margin:0,borderBottomWidth:o?"1px":0,position:o?"sticky":"static",top:-2,bg:l.list.bg,zIndex:1},d=null!=r&&r.groupHeading?r.groupHeading(c,e):c;return(0,tj.jsx)(tE.x,{...a,className:t({"group-heading":!0},n),sx:d})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r,useBasicStyles:i,variant:o}}=e,s={opacity:1,...i||"outline"!==o?{display:"none"}:{}},a=null!=r&&r.indicatorSeparator?r.indicatorSeparator(s,e):s;return(0,tj.jsx)(tC.i,{className:n({"indicator-separator":!0},t),sx:a,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,s={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},a=null!=o&&o.indicatorsContainer?o.indicatorsContainer(s,e):s;return(0,tj.jsx)(tE.x,{...i,className:r({indicators:!0},n),sx:a,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:i,isReadOnly:o}}=e,{innerRef:s,isDisabled:a,isHidden:l,inputClassName:u,...c}=tq(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:a?"hidden":"visible",transform:r?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},h=null!=i&&i.inputContainer?i.inputContainer(f,e):f,p={background:0,opacity:l?0:1,width:"100%",...d},m=null!=i&&i.input?i.input(p,e):p;return(0,tj.jsx)(tE.x,{className:n({"input-container":!0},t),"data-value":r||"",sx:h,children:(0,tj.jsx)(tI.m.input,{className:n({input:!0},u),ref:s,sx:m,disabled:a,readOnly:!!o||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:i,size:o},color:s,emptyColor:a,speed:l,thickness:u,spinnerSize:c}=e,d=tG(o),f={marginRight:3},h=null!=i&&i.loadingIndicator?i.loadingIndicator(f,e):f;return(0,tj.jsx)(tT.$,{className:n({indicator:!0,"loading-indicator":!0},t),sx:h,...r,size:c||({sm:"xs",md:"sm",lg:"md"})[d],color:s,emptyColor:a,speed:l,thickness:u})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:s}}=e,a=tG(s),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[a],fontSize:a},u=null!=o&&o.loadingMessage?o.loadingMessage(l,e):l;return(0,tj.jsx)(tE.x,{...i,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),sx:u,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:i,innerRef:o,placement:s,selectProps:{chakraStyles:a}}=e,l={position:"absolute",[tY(s)]:"100%",marginY:"8px",width:"100%",zIndex:1},u=null!=a&&a.menu?a.menu(l,e):l;return(0,tj.jsx)(tA.v,{children:(0,tj.jsx)(tE.x,{...i,ref:o,className:n({menu:!0},t),sx:u,children:r})})},MenuList:e=>{var t;let{className:n,cx:r,innerRef:i,children:o,maxHeight:s,isMulti:a,innerProps:l,selectProps:{chakraStyles:u,size:c,variant:d,focusBorderColor:f,errorBorderColor:h}}=e,p=(0,t_.j)("Menu"),m=tG(c),g=(0,t_.j)("Input",{size:m,variant:d,focusBorderColor:f,errorBorderColor:h}).field,v={...p.list,minW:"100%",maxHeight:`${s}px`,overflowY:"auto","--input-border-radius":null==g?void 0:g["--input-border-radius"],borderRadius:(null==g?void 0:g.borderRadius)||(null==(t=p.list)?void 0:t.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"},y=null!=u&&u.menuList?u.menuList(v,e):v;return(0,tj.jsx)(tE.x,{...l,className:r({"menu-list":!0,"menu-list--is-multi":a},n),sx:y,ref:i,children:o})},MultiValue:e=>{let{children:t,className:n,components:r,cx:i,data:o,innerProps:s,isDisabled:a,isFocused:l,removeProps:u,selectProps:c,cropWithEllipsis:d}=e,{Container:f,Label:h,Remove:p}=r,{chakraStyles:m,colorScheme:g,tagVariant:v,size:y}=c,b=tG(y),w="",x="",S=!1;tX(o)&&(w=o.colorScheme),tQ(o)&&(x=o.variant),t0(o)&&(S=o.isFixed);let k=(0,t_.j)("Tag",{size:b,colorScheme:w||g,variant:x||v||(S?"solid":"subtle")}),E={...k.container,display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"},_=null!=m&&m.multiValue?m.multiValue(E,e):E,C={...k.label,overflow:"hidden",textOverflow:d||void 0===d?"ellipsis":void 0,whiteSpace:"nowrap"},O=null!=m&&m.multiValueLabel?m.multiValueLabel(C,e):C,T={...k.closeButton,display:"flex",alignItems:"center",justifyContent:"center"},I=null!=m&&m.multiValueRemove?m.multiValueRemove(T,e):T;return(0,tj.jsxs)(f,{data:o,innerProps:{className:i({"multi-value":!0,"multi-value--is-disabled":a},n),...s},sx:_,selectProps:c,children:[(0,tj.jsx)(h,{data:o,innerProps:{className:i({"multi-value__label":!0},n)},sx:O,selectProps:c,children:t}),(0,tj.jsx)(p,{data:o,innerProps:{className:i({"multi-value__remove":!0},n),"aria-label":`Remove ${t||"option"}`,...u},sx:I,selectProps:c,isFocused:l})]})},MultiValueContainer:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,tj.jsx)(tI.m.span,{...n,sx:r,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,tj.jsx)(tI.m.span,{...n,sx:r,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:n,isFocused:r,data:i,sx:o}=e;return t0(i)&&i.isFixed?null:(0,tj.jsx)(tE.x,{...n,role:"button",sx:o,"data-focus":!!r||void 0,"data-focus-visible":!!r||void 0,children:t||(0,tj.jsx)(t1,{})})},NoOptionsMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:s}}=e,a=tG(s),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[a],fontSize:a},u=null!=o&&o.noOptionsMessage?o.noOptionsMessage(l,e):l;return(0,tj.jsx)(tE.x,{...i,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),sx:u,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:i,children:o,isFocused:s,isDisabled:a,isSelected:l,selectProps:{chakraStyles:u,size:c,isMulti:d,hideSelectedOptions:f,selectedOptionStyle:h,selectedOptionColorScheme:p}}=e,m=(0,t_.j)("Menu").item,g=tG(c),v=(0,tP.ff)(`${p}.500`,`${p}.300`),y=(0,tP.ff)("white","black"),b="color"===h&&l,w={...m,cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:g,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[g],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[g],...b?{bg:v,color:y,_active:{bg:v}}:{}},x=null!=u&&u.option?u.option(w,e):w;return(0,tj.jsxs)(tE.x,{...i,className:n({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":l},t),sx:x,ref:r,"data-focus":!!s||void 0,"aria-disabled":!!a||void 0,"aria-selected":l,children:["check"===h&&(!d||!1===f)&&(0,tj.jsx)(tR.O,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:l?1:0,children:(0,tj.jsx)(tJ,{})}),o]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,s={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},a=null!=o&&o.placeholder?o.placeholder(s,e):s;return(0,tj.jsx)(tE.x,{...i,className:r({placeholder:!0},n),sx:a,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,isDisabled:o,isRtl:s,hasValue:a,selectProps:{chakraStyles:l}}=e,u={position:"relative",direction:s?"rtl":void 0,...o?{cursor:"not-allowed"}:{}},c=null!=l&&l.container?l.container(u,e):u;return(0,tj.jsx)(tE.x,{...i,className:r({"--is-disabled":o,"--is-rtl":s,"--has-value":a},n),sx:c,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:i,innerProps:o,selectProps:{chakraStyles:s}}=e,a={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l=null!=s&&s.singleValue?s.singleValue(a,e):a;return(0,tj.jsx)(tE.x,{className:r({"single-value":!0,"single-value--is-disabled":i},n),sx:l,...o,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:i,hasValue:o,innerProps:s,selectProps:{chakraStyles:a,size:l,variant:u,focusBorderColor:c,errorBorderColor:d,controlShouldRenderValue:f}}=e,h=tG(l),p={display:i&&o&&f?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:(0,t_.j)("Input",{size:h,variant:u,focusBorderColor:c,errorBorderColor:d}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},m=null!=a&&a.valueContainer?a.valueContainer(p,e):p;return(0,tj.jsx)(tE.x,{...s,className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o},n),sx:m,children:t})}},t3=({components:e={},theme:t,size:n,colorScheme:r="gray",isDisabled:i,isInvalid:o,isReadOnly:s,required:a,isRequired:l,inputId:u,tagVariant:c,selectedOptionStyle:d="color",selectedOptionColorScheme:f,selectedOptionColor:h,variant:p,focusBorderColor:m,errorBorderColor:g,chakraStyles:v={},onFocus:y,onBlur:b,menuIsOpen:w,...x})=>{var S;let{variant:k}=(0,tS.F)().components.Input.defaultProps,E=(0,tM.Y)({id:u,isDisabled:i,isInvalid:o,isRequired:l,isReadOnly:s,onFocus:y,onBlur:b}),_=null!=w?w:!E.readOnly&&void 0,C=d;["color","check"].includes(d)||(C="color");let O=f||h||"blue";return"string"!=typeof O&&(O="blue"),{components:{...t2,...e},colorScheme:r,size:n,tagVariant:c,selectedOptionStyle:C,selectedOptionColorScheme:O,variant:null!=p?p:k,chakraStyles:v,focusBorderColor:m,errorBorderColor:g,onFocus:E.onFocus,onBlur:E.onBlur,isDisabled:E.disabled,isInvalid:!!E["aria-invalid"],inputId:E.id,isReadOnly:E.readOnly,required:null!=a?a:E.required,menuIsOpen:_,...x,"aria-invalid":null!=(S=x["aria-invalid"])?S:E["aria-invalid"]}},t5=(0,s.forwardRef)((e,t)=>{let n=t3(e);return(0,tj.jsx)(tx,{ref:t,...n})});(0,s.forwardRef)((e,t)=>{let n=t3(e);return(0,tj.jsx)(tF,{ref:t,...n})}),(0,s.forwardRef)((e,t)=>{let n=t3(e);return(0,tj.jsx)(tU,{ref:t,...n})}),(0,s.forwardRef)((e,t)=>{let n=t3(e);return(0,tj.jsx)(tV,{ref:t,...n})})},37132:function(e,t,n){"use strict";let r,i;function o(e){return e+.5|0}n.d(t,{$:function(){return tf},A:function(){return eN},B:function(){return ej},C:function(){return tc},D:function(){return e_},E:function(){return tk},F:function(){return W},G:function(){return tQ},H:function(){return ed},I:function(){return tW},J:function(){return t2},K:function(){return t1},L:function(){return eU},M:function(){return tq},N:function(){return ey},O:function(){return B},P:function(){return es},Q:function(){return q},R:function(){return tC},S:function(){return eA},T:function(){return ea},U:function(){return ek},V:function(){return ti},W:function(){return eP},X:function(){return ts},Y:function(){return td},Z:function(){return tm},_:function(){return eB},a:function(){return t_},a0:function(){return tE},a1:function(){return eq},a2:function(){return eW},a3:function(){return e8},a4:function(){return Y},a5:function(){return et},a6:function(){return e7},a7:function(){return er},a8:function(){return function e(t,n,r,i){return new Proxy({_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tI(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)},{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tR(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=t,l=i[n];return er(l)&&a.isScriptable(n)&&(l=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,s||r);return a.delete(e),tP(e,l)&&(l=tj(i._scopes,i,e,l)),l}(n,l,t,r)),L(l)&&l.length&&(l=function(t,n,r,i){let{_proxy:o,_context:s,_subProxy:a,_descriptors:l}=r;if(void 0!==s.index&&i(t))return n[s.index%n.length];if(z(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=tj(i,o,t,u);n.push(e(r,s,a&&a[t],l))}}return n}(n,l,t,a.isIndexable)),tP(n,l)&&(l=e(l,o,s&&s[n],a)),l})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return tT},aA:function(){return t9},aB:function(){return eH},aC:function(){return t8},aD:function(){return tu},aE:function(){return eC},aF:function(){return j},aG:function(){return ex},aH:function(){return ev},aI:function(){return ew},aJ:function(){return eg},aK:function(){return eE},aL:function(){return e9},aM:function(){return ep},aN:function(){return to},aO:function(){return eD},aP:function(){return eM},aa:function(){return tI},ab:function(){return J},ac:function(){return N},ad:function(){return eV},ae:function(){return t0},af:function(){return ta},ag:function(){return ei},ah:function(){return H},ai:function(){return eo},aj:function(){return eR},ak:function(){return tw},al:function(){return tV},am:function(){return nr},an:function(){return nn},ao:function(){return t5},ap:function(){return t4},aq:function(){return t3},ar:function(){return th},as:function(){return tp},at:function(){return tl},au:function(){return tg},av:function(){return tx},aw:function(){return tS},ax:function(){return nt},ay:function(){return eT},az:function(){return t6},b:function(){return L},c:function(){return e0},d:function(){return tr},e:function(){return eX},f:function(){return ee},g:function(){return F},h:function(){return en},i:function(){return z},j:function(){return tO},k:function(){return D},l:function(){return ez},m:function(){return U},n:function(){return V},o:function(){return e4},p:function(){return eI},q:function(){return eG},r:function(){return e$},s:function(){return em},t:function(){return eS},u:function(){return eF},v:function(){return $},w:function(){return eZ},x:function(){return eb},y:function(){return tz},z:function(){return tJ}});let s=(e,t,n)=>Math.max(Math.min(e,n),t);function a(e){return s(o(2.55*e),0,255)}function l(e){return s(o(255*e),0,255)}function u(e){return s(o(e/2.55)/100,0,1)}function c(e){return s(o(100*e),0,100)}let d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},f=[..."0123456789ABCDEF"],h=e=>f[15&e],p=e=>f[(240&e)>>4]+f[15&e],m=e=>(240&e)>>4==(15&e),g=e=>m(e.r)&&m(e.g)&&m(e.b)&&m(e.a),v=(e,t)=>e<255?t(e):"",y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function b(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function w(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function x(e,t,n){let r;let i=b(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function S(e){let t,n,r;let i=e.r/255,o=e.g/255,s=e.b/255,a=Math.max(i,o,s),l=Math.min(i,o,s),u=(a+l)/2;return a!==l&&(r=a-l,n=u>.5?r/(2-a-l):r/(a+l),t=60*(t=i===a?(o-s)/r+(o<s?6:0):o===a?(s-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,u]}function k(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(l)}function E(e){return(e%360+360)%360}let _={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},C={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},O=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,T=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,I=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function A(e,t,n){if(e){let r=S(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=k(b,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function P(e,t){return e?Object.assign(t||{},e):e}function R(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=l(e[3]))):(t=P(e,{r:0,g:0,b:0,a:1})).a=l(t.a),t}class M{constructor(e){let t;if(e instanceof M)return e;let n=typeof e;if("object"===n)t=R(e);else if("string"===n){var i,o;o=e.length,"#"===e[0]&&(4===o||5===o?i={r:255&17*d[e[1]],g:255&17*d[e[2]],b:255&17*d[e[3]],a:5===o?17*d[e[4]]:255}:(7===o||9===o)&&(i={r:d[e[1]]<<4|d[e[2]],g:d[e[3]]<<4|d[e[4]],b:d[e[5]]<<4|d[e[6]],a:9===o?d[e[7]]<<4|d[e[8]]:255})),t=i||function(e){r||((r=function(){let e,t,n,r,i;let o={},s=Object.keys(C),a=Object.keys(_);for(e=0;e<s.length;e++){for(t=0,r=i=s[e];t<a.length;t++)n=a[t],i=i.replace(n,_[n]);n=parseInt(C[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let i=O.exec(e),o=255;if(i){if(i[7]!==t){let e=+i[7];o=i[8]?a(e):s(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?a(t):s(t,0,255)),g:n=255&(i[4]?a(n):s(n,0,255)),b:r=255&(i[6]?a(r):s(r,0,255)),a:o}}}(e):function(e){let t;let n=y.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?a(+n[5]):l(+n[5]));let i=E(+n[2]),o=+n[3]/100,s=+n[4]/100;return{r:(t="hwb"===n[1]?k(x,i,o,s):"hsv"===n[1]?k(w,i,o,s):k(b,i,o,s))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=P(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=R(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=g(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+v(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=S(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,i=e.rgb,o=t===n?.5:t,s=2*o-1,a=r.a-i.a,l=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=I(u(e.r)),i=I(u(e.g)),o=I(u(e.b));return{r:l(T(r+n*(I(u(t.r))-r))),g:l(T(i+n*(I(u(t.g))-i))),b:l(T(o+n*(I(u(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new M(this.rgb)}alpha(e){return this._rgb.a=l(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=o(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return A(this._rgb,2,e),this}darken(e){return A(this._rgb,2,-e),this}saturate(e){return A(this._rgb,1,e),this}desaturate(e){return A(this._rgb,1,-e),this}rotate(e){var t,n;return(n=S(t=this._rgb))[0]=E(n[0]+e),n=k(b,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}function j(){}let N=(i=0,()=>i++);function D(e){return null==e}function L(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function z(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function F(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function B(e,t){return F(e)?e:t}function $(e,t){return void 0===e?t:e}let U=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,V=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function q(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function W(e,t,n,r){let i,o,s;if(L(e)){if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i)}else if(z(e))for(i=0,o=(s=Object.keys(e)).length;i<o;i++)t.call(n,e[s[i]],s[i])}function H(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function G(e){if(L(e))return e.map(G);if(z(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=G(e[n[i]]);return t}return e}function Z(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function K(e,t,n,r){if(!Z(e))return;let i=t[e],o=n[e];z(i)&&z(o)?Y(i,o,r):t[e]=G(o)}function Y(e,t,n){let r;let i=L(t)?t:[t],o=i.length;if(!z(e))return e;let s=(n=n||{}).merger||K;for(let t=0;t<o;++t){if(!z(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)s(o[t],e,r,n)}return e}function J(e,t){return Y(e,t,{merger:X})}function X(e,t,n){if(!Z(e))return;let r=t[e],i=n[e];z(r)&&z(i)?J(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=G(i))}let Q={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){return(Q[t]||(Q[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t)))(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,ei=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function eo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let es=Math.PI,ea=2*es,el=ea+es,eu=Number.POSITIVE_INFINITY,ec=es/180,ed=es/2,ef=es/4,eh=2*es/3,ep=Math.log10,em=Math.sign;function eg(e,t,n){return Math.abs(e-t)<n}function ev(e){let t=Math.round(e),n=Math.pow(10,Math.floor(ep(e=eg(e,t,e/1e3)?t:e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ey(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function eb(e){return!("symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e))&&!isNaN(parseFloat(e))&&isFinite(e)}function ew(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ex(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function eS(e){return es/180*e}function ek(e){return 180/es*e}function eE(e){if(!F(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function e_(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*es&&(o+=ea),{angle:o,distance:i}}function eC(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eO(e,t){return(e-t+el)%ea-es}function eT(e){return(e%ea+ea)%ea}function eI(e,t,n,r){let i=eT(e),o=eT(t),s=eT(n),a=eT(o-i),l=eT(s-i),u=eT(i-o),c=eT(i-s);return i===o||i===s||r&&o===s||a>l&&u<c}function eA(e,t,n){return Math.max(t,Math.min(n,e))}function eP(e){return eA(e,-32768,32767)}function eR(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function eM(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let ej=(e,t,n,r)=>eM(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eN=(e,t,n)=>eM(e,n,r=>e[r][t]>=n);function eD(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eL=["push","pop","shift","splice","unshift"];function ez(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eL.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function eF(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eL.forEach(t=>{delete e[t]}),delete e._chartjs)}function eB(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let e$="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eU(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,e$.call(window,()=>{r=!1,e.apply(t,n)}))}}function eV(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eq=e=>"start"===e?"left":"end"===e?"right":"center",eW=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eH=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eG(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:s,vScale:a,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=s.axis,{min:d,max:f,minDefined:h,maxDefined:p}=s.getUserBounds();if(h){if(i=Math.min(ej(l,c,d).lo,n?r:ej(t,c,s.getPixelForValue(d)).lo),u){let e=l.slice(0,i+1).reverse().findIndex(e=>!D(e[a.axis]));i-=Math.max(0,e)}i=eA(i,0,r-1)}if(p){let e=Math.max(ej(l,s.axis,f,!0).hi+1,n?0:ej(t,c,s.getPixelForValue(f),!0).hi+1);if(u){let t=l.slice(e-1).findIndex(e=>!D(e[a.axis]));e+=Math.max(0,t)}o=eA(e,i,r)-i}else o=r-i}return{start:i,count:o}}function eZ(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let eK=e=>0===e||1===e,eY=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ea/n)),eJ=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ea/n)+1,eX={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ed)+1,easeOutSine:e=>Math.sin(e*ed),easeInOutSine:e=>-.5*(Math.cos(es*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eK(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eK(e)?e:eY(e,.075,.3),easeOutElastic:e=>eK(e)?e:eJ(e,.075,.3),easeInOutElastic:e=>eK(e)?e:e<.5?.5*eY(2*e,.1125,.45):.5+.5*eJ(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*(((t*=1.525)+1)*e-t)*.5:.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eX.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eX.easeInBounce(2*e):.5*eX.easeOutBounce(2*e-1)+.5};function eQ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eQ(e)?e:new M(e)}function e1(e){return eQ(e)?e:new M(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e3=["color","borderColor","backgroundColor"],e5=new Map;function e4(e,t,n){return(function(e,t){let n=e+JSON.stringify(t=t||{}),r=e5.get(n);return r||(r=new Intl.NumberFormat(e,t),e5.set(n,r)),r})(t,n).format(e)}let e6={values:e=>L(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){let t;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let s=ep(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),e4(e,i,l)},logarithmic(e,t,n){return 0===e?"0":[1,2,3,5,10,15].includes(n[t].significand||e/Math.pow(10,Math.floor(ep(e))))||t>.8*n.length?e6.numeric.call(this,e,t,n):""}};var e9={formatters:e6};let e8=Object.create(null),e7=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?Y(te(e,t),n):Y(te(e,""),t)}class tn{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e7,e,t)}override(e,t){return tt(e8,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),s="_"+t;Object.defineProperties(i,{[s]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[s],t=o[r];return z(e)?Object.assign({},t,e):$(e,t)},set(e){this[s]=e}}})}apply(e){e.forEach(e=>e(this))}}var tr=new tn({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e3},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e9.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ti(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function to(e,t,n,r){let i,o,s,a,l;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let d=0,f=n.length;for(i=0;i<f;i++)if(null==(a=n[i])||L(a)){if(L(a))for(o=0,s=a.length;o<s;o++)null==(l=a[o])||L(l)||(d=ti(e,u,c,d,l))}else d=ti(e,u,c,d,a);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return d}function ts(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ta(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function tl(e,t,n,r){tu(e,t,n,r,null)}function tu(e,t,n,r,i){let o,s,a,l,u,c,d,f;let h=t.pointStyle,p=t.rotation,m=t.radius,g=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(m)&&!(m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,ea):e.arc(n,r,m,0,ea),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=eh,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=eh,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":u=.516*m,s=Math.cos(g+ef)*(l=m-u),d=Math.cos(g+ef)*(i?i/2-u:l),a=Math.sin(g+ef)*l,f=Math.sin(g+ef)*(i?i/2-u:l),e.arc(n-d,r-a,u,g-es,g-ed),e.arc(n+f,r-s,u,g-ed,g),e.arc(n+d,r+a,u,g,g+ed),e.arc(n-f,r+s,u,g+ed,g+es),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}g+=ef;case"rectRot":d=Math.cos(g)*(i?i/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-a),e.lineTo(n+f,r-s),e.lineTo(n+d,r+a),e.lineTo(n-f,r+s),e.closePath();break;case"crossRot":g+=ef;case"cross":d=Math.cos(g)*(i?i/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s);break;case"star":d=Math.cos(g)*(i?i/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s),g+=ef,d=Math.cos(g)*(i?i/2:m),s=Math.cos(g)*m,a=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s);break;case"line":s=i?i/2:Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tc(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function td(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tf(e){e.restore()}function th(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function tp(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tm(e,t,n,r,i,o={}){let s,a;let l=L(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),D(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),s=0;s<l.length;++s)a=l[s],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),D(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(a,n,r,o.maxWidth)),e.fillText(a,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,c),e.lineTo(a,c),e.stroke()}}(e,n,r,a,o),r+=Number(i.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*es,es,!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,es,ed,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,ed,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-ed,!0),e.lineTo(n+s.topLeft,r)}let tv=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ty=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tb=e=>+e||0;function tw(e,t){let n={},r=z(t),i=r?Object.keys(t):t,o=z(e)?r?n=>$(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=tb(o(e));return n}function tx(e){return tw(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tS(e){return tw(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tk(e){let t=tx(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tE(e,t){e=e||{},t=t||tr.font;let n=$(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=$(e.style,t.style);r&&!(""+r).match(ty)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:$(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tv);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}($(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:$(e.weight,t.weight),string:""};return i.string=!i||D(i.size)||D(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function t_(e,t,n,r){let i,o,s,a=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(s=e[i])&&(void 0!==t&&"function"==typeof s&&(s=s(t),a=!1),void 0!==n&&L(s)&&(s=s[n%s.length],a=!1),void 0!==s))return r&&!a&&(r.cacheable=!1),s}function tC(e,t,n){let{min:r,max:i}=e,o=V(t,(i-r)/2),s=(e,t)=>n&&0===e?0:e+t;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function tO(e,t){return Object.assign(Object.create(e),t)}function tT(e,t=[""],n,r,i=()=>e[0]){let o=n||e;return void 0===r&&(r=tD("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tT([n,...e],t,o,r)},{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tR(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tD(tA(o,e),n)))return tP(e,i)?tj(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tL(e).includes(t),ownKeys:e=>tL(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tI(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let tA=(e,t)=>e?e+et(t):t,tP=(e,t)=>z(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tR(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tM=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function tj(e,t,n,r){var i;let o=t._rootScopes,s=er(i=t._fallback)?i(n,r):i,a=[...e,...o],l=new Set;l.add(r);let u=tN(l,a,n,s||n,r);return null!==u&&(void 0===s||s===n||null!==(u=tN(l,a,s,u,r)))&&tT(Array.from(l),[""],o,s,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return L(i)&&z(n)?n:i||{}})(t,n,r))}function tN(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let s of t){let t=tM(n,s);if(t){var o;e.add(t);let s=er(o=t._fallback)?o(n,i):o;if(void 0!==s&&s!==n&&s!==r)return s}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tD(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tL(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tz(e,t,n,r){let i,o,s;let{iScale:a}=e,{key:l="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)s=t[o=i+n],u[i]={r:a.parse(ee(s,l),o)};return u}let tF=Number.EPSILON||1e-14,tB=(e,t)=>t<e.length&&!e[t].skip&&e[t],t$=e=>"x"===e?"y":"x";function tU(e,t,n){return Math.max(Math.min(e,n),t)}function tV(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=t$(t),s=e.length,a=Array(s).fill(0),l=Array(s),u=tB(e,0);for(n=0;n<s;++n)if(r=i,i=u,u=tB(e,n+1),i){if(u){let e=u[t]-i[t];a[n]=0!==e?(u[o]-i[o])/e:0}l[n]=r?u?em(a[n-1])!==em(a[n])?0:(a[n-1]+a[n])/2:a[n-1]:a[n]}!function(e,t,n){let r,i,o,s,a;let l=e.length,u=tB(e,0);for(let c=0;c<l-1;++c)if(a=u,u=tB(e,c+1),a&&u){if(eg(t[c],0,tF)){n[c]=n[c+1]=0;continue}(s=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(s),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,a,l),function(e,t,n="x"){let r,i,o;let s=t$(n),a=e.length,l=tB(e,0);for(let u=0;u<a;++u){if(i=o,o=l,l=tB(e,u+1),!o)continue;let a=o[n],c=o[s];i&&(r=(a-i[n])/3,o[`cp1${n}`]=a-r,o[`cp1${s}`]=c-r*t[u]),l&&(r=(l[n]-a)/3,o[`cp2${n}`]=a+r,o[`cp2${s}`]=c+r*t[u])}}(e,l,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)l=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,s=eC(t,i),a=eC(o,t),l=s/(s+a),u=a/(s+a);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let c=r*l,d=r*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+d*(o.x-i.x),y:t.y+d*(o.y-i.y)}}}(n,a=e[o],e[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}t.capBezierPoints&&function(e,t){let n,r,i,o,s;let a=tc(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&tc(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=tU(i.cp1x,t.left,t.right),i.cp1y=tU(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=tU(i.cp2x,t.left,t.right),i.cp2y=tU(i.cp2y,t.top,t.bottom)))}(e,n)}function tq(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tW(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tH(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tG=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tZ=["top","right","bottom","left"];function tK(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tZ[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tJ(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tG(n),o="border-box"===i.boxSizing,s=tK(i,"padding"),a=tK(i,"border","width"),{x:l,y:u,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:s,offsetY:a}=o,l=!1;if(tY(s,a,e.target))n=s,r=a;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,l=!0}return{x:n,y:r,box:l}}(e,n),d=s.left+(c&&a.left),f=s.top+(c&&a.top),{width:h,height:p}=t;return o&&(h-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}let tX=e=>Math.round(10*e)/10;function tQ(e,t,n,r){let i=tG(e),o=tK(i,"margin"),s=tH(i.maxWidth,e,"clientWidth")||eu,a=tH(i.maxHeight,e,"clientHeight")||eu,l=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&tW(e);if(o){let e=o.getBoundingClientRect(),s=tG(o),a=tK(s,"border","width"),l=tK(s,"padding");t=e.width-l.width-a.width,n=e.height-l.height-a.height,r=tH(s.maxWidth,o,"clientWidth"),i=tH(s.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eu,maxHeight:i||eu}}(e,t,n),{width:u,height:c}=l;if("content-box"===i.boxSizing){let e=tK(i,"border","width"),t=tK(i,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=tX(Math.min(u,s,l.maxWidth)),c=tX(Math.min(c,a,l.maxHeight)),u&&!c&&(c=tX(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(u=tX(Math.floor((c=l.height)*r))),{width:u,height:c}}function t0(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o)&&(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t1=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tq()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function t2(e,t){let n=tG(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t3(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t5(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t4(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=t3(e,i,n),a=t3(i,o,n),l=t3(o,t,n),u=t3(s,a,n),c=t3(a,l,n);return t3(u,c,n)}function t6(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t9(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t8(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t7(e){return"angle"===e?{between:eI,compare:eO,normalize:eT}:{between:eR,compare:(e,t)=>e-t,normalize:e=>e}}function ne({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function nt(e,t,n){let r,i,o;if(!n)return[e];let{property:s,start:a,end:l}=n,u=t.length,{compare:c,between:d,normalize:f}=t7(s),{start:h,end:p,loop:m,style:g}=function(e,t,n){let r;let{property:i,start:o,end:s}=n,{between:a,normalize:l}=t7(i),u=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=u,d+=u,r=0;r<u&&a(l(t[c%u][i]),o,s);++r)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:e.style}}(e,t,n),v=[],y=!1,b=null,w=()=>d(a,o,r)&&0!==c(a,o),x=()=>0===c(l,r)||d(l,o,r),S=()=>y||w(),k=()=>!y||x();for(let e=h,n=h;e<=p;++e)(i=t[e%u]).skip||(r=f(i[s]))===o||(y=d(r,a,l),null===b&&S()&&(b=0===c(r,a)?e:n),null!==b&&k()&&(v.push(ne({start:b,end:e,loop:m,count:u,style:g})),b=null),n=e,o=r);return null!==b&&v.push(ne({start:b,end:p,loop:m,count:u,style:g})),v}function nn(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=nt(r[i],e.points,t);o.length&&n.push(...o)}return n}function nr(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:s,end:a}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return ni(e,[{start:s,end:a,loop:o}],n,t);let l=a<s?a+i:a,u=!!e._fullLoop&&0===s&&a===i-1;return ni(e,function(e,t,n,r){let i;let o=e.length,s=[],a=t,l=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?l.skip||(r=!1,s.push({start:t%o,end:(i-1)%o,loop:r}),t=a=n.stop?i:null):(a=i,l.skip&&(t=i)),l=n}return null!==a&&s.push({start:t%o,end:a%o,loop:r}),s}(n,s,l,u),n,t)}function ni(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=no(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,u=[],c=o,d=t[0].start,f=d;function h(e,t,r,i){let o=a?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=o;for(;n[t%l].skip;)t+=o;e%l!=t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,d=t%l)}}for(let e of t){let t;let o=n[(d=a?d:e.start)%l];for(f=d+1;f<=e.end;f++){let a=n[f%l];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eQ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=no(r.setContext(tO(i,{type:"segment",p0:o,p1:a,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:s}))),c)&&h(d,f-1,e.loop,c),o=a,c=t}d<f-1&&h(d,f-1,e.loop,c)}return u}(e,t,n,r):t}function no(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}},12124:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}}})},30964:function(e,t){"use strict";var n={value:()=>{}};function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new i(r)}function i(e){this._=e}function o(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}i.prototype=r.prototype={constructor:i,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((n=(e=i[s]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++s<a;)if(n=(e=i[s]).type)r[n]=o(r[n],e.name,t);else if(null==t)for(n in r)r[n]=o(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new i(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}},t.Z=r},88611:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(30964),i=n(44568),o=n(58269),s=n(46834),a=n(49729),l=e=>()=>e;function u(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function c(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function f(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function p(){var e,t,n,p,m=c,g=d,v=f,y=h,b={},w=(0,r.Z)("start","drag","end"),x=0,S=0;function k(e){e.on("mousedown.drag",E).filter(y).on("touchstart.drag",O).on("touchmove.drag",T,a.Q7).on("touchend.drag touchcancel.drag",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(r,o){if(!p&&m.call(this,r,o)){var l=A(this,g.call(this,r,o),r,o,"mouse");l&&((0,i.Z)(r.view).on("mousemove.drag",_,a.Dd).on("mouseup.drag",C,a.Dd),(0,s.Z)(r.view),(0,a.rG)(r),n=!1,e=r.clientX,t=r.clientY,l("start",r))}}function _(r){if((0,a.ZP)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>S}b.mouse("drag",r)}function C(e){(0,i.Z)(e.view).on("mousemove.drag mouseup.drag",null),(0,s.D)(e.view,n),(0,a.ZP)(e),b.mouse("end",e)}function O(e,t){if(m.call(this,e,t)){var n,r,i=e.changedTouches,o=g.call(this,e,t),s=i.length;for(n=0;n<s;++n)(r=A(this,o,e,t,i[n].identifier,i[n]))&&((0,a.rG)(e),r("start",e,i[n]))}}function T(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=b[r[t].identifier])&&((0,a.ZP)(e),n("drag",e,r[t]))}function I(e){var t,n,r=e.changedTouches,i=r.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),t=0;t<i;++t)(n=b[r[t].identifier])&&((0,a.rG)(e),n("end",e,r[t]))}function A(e,t,n,r,i,s){var a,l,c,d=w.copy(),f=(0,o.Z)(s||n,t);if(null!=(c=v.call(e,new u("beforestart",{sourceEvent:n,target:k,identifier:i,active:x,x:f[0],y:f[1],dx:0,dy:0,dispatch:d}),r)))return a=c.x-f[0]||0,l=c.y-f[1]||0,function n(s,h,p){var m,g=f;switch(s){case"start":b[i]=n,m=x++;break;case"end":delete b[i],--x;case"drag":f=(0,o.Z)(p||h,t),m=x}d.call(s,e,new u(s,{sourceEvent:h,subject:c,target:k,identifier:i,active:m,x:f[0]+a,y:f[1]+l,dx:f[0]-g[0],dy:f[1]-g[1],dispatch:d}),r)}}return k.filter=function(e){return arguments.length?(m="function"==typeof e?e:l(!!e),k):m},k.container=function(e){return arguments.length?(g="function"==typeof e?e:l(e),k):g},k.subject=function(e){return arguments.length?(v="function"==typeof e?e:l(e),k):v},k.touchable=function(e){return arguments.length?(y="function"==typeof e?e:l(!!e),k):y},k.on=function(){var e=w.on.apply(w,arguments);return e===w?k:e},k.clickDistance=function(e){return arguments.length?(S=(e=+e)*e,k):Math.sqrt(S)},k}u.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e}},46834:function(e,t,n){"use strict";n.d(t,{D:function(){return s},Z:function(){return o}});var r=n(44568),i=n(49729);function o(e){var t=e.document.documentElement,n=(0,r.Z)(e).on("dragstart.drag",i.ZP,i.Dd);"onselectstart"in t?n.on("selectstart.drag",i.ZP,i.Dd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function s(e,t){var n=e.document.documentElement,o=(0,r.Z)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.ZP,i.Dd),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},49729:function(e,t,n){"use strict";n.d(t,{Dd:function(){return i},Q7:function(){return r},ZP:function(){return s},rG:function(){return o}});let r={passive:!1},i={capture:!0,passive:!1};function o(e){e.stopImmediatePropagation()}function s(e){e.preventDefault(),e.stopImmediatePropagation()}},31581:function(e,t,n){"use strict";function r(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}n.d(t,{P:function(){return i},Z:function(){return r}})},778:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(33021);function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.Z.hasOwnProperty(t)?{space:r.Z[t],local:e}:e}},33021:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";t.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},58269:function(e,t,n){"use strict";function r(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}n.d(t,{Z:function(){return r}})},44568:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(45021);function i(e){return"string"==typeof e?new r.Y1([[document.querySelector(e)]],[document.documentElement]):new r.Y1([[e]],r.Jz)}},45021:function(e,t,n){"use strict";n.d(t,{Y1:function(){return z},ZP:function(){return B},Jz:function(){return L}});var r=n(3527),i=n(23121),o=n(31581),s=Array.prototype.find;function a(){return this.firstElementChild}var l=Array.prototype.filter;function u(){return Array.from(this.children)}function c(e){return Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function f(e,t,n,r,i,o){for(var s,a=0,l=t.length,u=o.length;a<u;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new d(e,o[a]);for(;a<l;++a)(s=t[a])&&(i[a]=s)}function h(e,t,n,r,i,o,s){var a,l,u,c=new Map,f=t.length,h=o.length,p=Array(f);for(a=0;a<f;++a)(l=t[a])&&(p[a]=u=s.call(l,l.__data__,a,t)+"",c.has(u)?i[a]=l:c.set(u,l));for(a=0;a<h;++a)u=s.call(e,o[a],a,o)+"",(l=c.get(u))?(r[a]=l,l.__data__=o[a],c.delete(u)):n[a]=new d(e,o[a]);for(a=0;a<f;++a)(l=t[a])&&c.get(p[a])===l&&(i[a]=l)}function p(e){return e.__data__}function m(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var g=n(778),v=n(17305);function y(e){return e.trim().split(/^|\s+/)}function b(e){return e.classList||new w(e)}function w(e){this._node=e,this._names=y(e.getAttribute("class")||"")}function x(e,t){for(var n=b(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function S(e,t){for(var n=b(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function k(){this.textContent=""}function E(){this.innerHTML=""}function _(){this.nextSibling&&this.parentNode.appendChild(this)}function C(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}w.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var O=n(33021);function T(e){var t=(0,g.Z)(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===O.P&&t.documentElement.namespaceURI===O.P?t.createElement(e):t.createElementNS(n,e)}})(t)}function I(){return null}function A(){var e=this.parentNode;e&&e.removeChild(this)}function P(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function R(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function M(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function j(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}var N=n(49621);function D(e,t,n){var r=(0,N.Z)(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var L=[null];function z(e,t){this._groups=e,this._parents=t}function F(){return new z([[document.documentElement]],L)}z.prototype=F.prototype={constructor:z,select:function(e){"function"!=typeof e&&(e=(0,r.Z)(e));for(var t=this._groups,n=t.length,i=Array(n),o=0;o<n;++o)for(var s,a,l=t[o],u=l.length,c=i[o]=Array(u),d=0;d<u;++d)(s=l[d])&&(a=e.call(s,s.__data__,d,l))&&("__data__"in s&&(a.__data__=s.__data__),c[d]=a);return new z(i,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=(0,i.Z)(e);for(var n=this._groups,r=n.length,o=[],s=[],a=0;a<r;++a)for(var l,u=n[a],c=u.length,d=0;d<c;++d)(l=u[d])&&(o.push(e.call(l,l.__data__,d,u)),s.push(l));return new z(o,s)},selectChild:function(e){var t;return this.select(null==e?a:(t="function"==typeof e?e:(0,o.P)(e),function(){return s.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?u:(t="function"==typeof e?e:(0,o.P)(e),function(){return l.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=(0,o.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var s,a=t[i],l=a.length,u=r[i]=[],c=0;c<l;++c)(s=a[c])&&e.call(s,s.__data__,c,a)&&u.push(s);return new z(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,p);var n=t?h:f,r=this._parents,i=this._groups;"function"!=typeof e&&(x=e,e=function(){return x});for(var o=i.length,s=Array(o),a=Array(o),l=Array(o),u=0;u<o;++u){var c=r[u],d=i[u],m=d.length,g="object"==typeof(w=e.call(c,c&&c.__data__,u,r))&&"length"in w?w:Array.from(w),v=g.length,y=a[u]=Array(v),b=s[u]=Array(v);n(c,d,y,b,l[u]=Array(m),g,t);for(var w,x,S,k,E=0,_=0;E<v;++E)if(S=y[E]){for(E>=_&&(_=E+1);!(k=b[_])&&++_<v;);S._next=k||null}}return(s=new z(s,r))._enter=a,s._exit=l,s},enter:function(){return new z(this._enter||this._groups.map(c),this._parents)},exit:function(){return new z(this._exit||this._groups.map(c),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=Array(i),l=0;l<s;++l)for(var u,c=n[l],d=r[l],f=c.length,h=a[l]=Array(f),p=0;p<f;++p)(u=c[p]||d[p])&&(h[p]=u);for(;l<i;++l)a[l]=n[l];return new z(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=m);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var s,a=n[o],l=a.length,u=i[o]=Array(l),c=0;c<l;++c)(s=a[c])&&(u[c]=s);u.sort(t)}return new z(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],s=0,a=o.length;s<a;++s)(i=o[s])&&e.call(i,i.__data__,s,o);return this},attr:function(e,t){var n=(0,g.Z)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:v.Z,property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=y(e+"");if(arguments.length<2){for(var r=b(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?x:S)(this,e)}}:t?function(e){return function(){x(this,e)}}:function(e){return function(){S(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?k:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?E:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(_)},lower:function(){return this.each(C)},append:function(e){var t="function"==typeof e?e:T(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:T(e),i=null==t?I:"function"==typeof t?t:(0,r.Z)(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(A)},clone:function(e){return this.select(e?R:P)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),s=o.length;if(arguments.length<2){var a=this.node().__on;if(a){for(var l,u=0,c=a.length;u<c;++u)for(r=0,l=a[u];r<s;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,a=t?j:M;r<s;++r)this.each(a(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return D(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return D(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};var B=F},17305:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(49621);function i(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):o(this.node(),e)}function o(e,t){return e.style.getPropertyValue(t)||(0,r.Z)(e).getComputedStyle(e,null).getPropertyValue(t)}},3527:function(e,t,n){"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{Z:function(){return i}})},23121:function(e,t,n){"use strict";function r(){return[]}function i(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{Z:function(){return i}})},49621:function(e,t,n){"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{Z:function(){return r}})},21719:function(e,t,n){"use strict";n.d(t,{sP:function(){return eQ},CR:function(){return eq}});var r,i=n(30964),o=n(46834);function s(e){return((e=Math.exp(e))+1/e)/2}var a,l,u=function e(t,n,r){function i(e,i){var o,a,l=e[0],u=e[1],c=e[2],d=i[0],f=i[1],h=i[2],p=d-l,m=f-u,g=p*p+m*m;if(g<1e-12)a=Math.log(h/c)/t,o=function(e){return[l+e*p,u+e*m,c*Math.exp(t*e*a)]};else{var v=Math.sqrt(g),y=(h*h-c*c+r*g)/(2*c*n*v),b=(h*h-c*c-r*g)/(2*h*n*v),w=Math.log(Math.sqrt(y*y+1)-y);a=(Math.log(Math.sqrt(b*b+1)-b)-w)/t,o=function(e){var r,i,o=e*a,d=s(w),f=c/(n*v)*(((r=Math.exp(2*(r=t*o+w)))-1)/(r+1)*d-((i=Math.exp(i=w))-1/i)/2);return[l+f*p,u+f*m,c*d/s(t*o+w)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),c=n(44568),d=n(58269),f=n(45021),h=0,p=0,m=0,g=0,v=0,y=0,b="object"==typeof performance&&performance.now?performance:Date,w="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function x(){return v||(w(S),v=b.now()+y)}function S(){v=0}function k(){this._call=this._time=this._next=null}function E(e,t,n){var r=new k;return r.restart(e,t,n),r}function _(){v=(g=b.now())+y,h=p=0;try{!function(){x(),++h;for(var e,t=a;t;)(e=v-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h}()}finally{h=0,function(){for(var e,t,n=a,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:a=t);l=e,O(r)}(),v=0}}function C(){var e=b.now(),t=e-g;t>1e3&&(y-=t,g=e)}function O(e){!h&&(p&&(p=clearTimeout(p)),e-v>24?(e<1/0&&(p=setTimeout(_,e-b.now()-y)),m&&(m=clearInterval(m))):(m||(g=b.now(),m=setInterval(C,1e3)),h=1,w(_)))}function T(e,t,n){var r=new k;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}k.prototype=E.prototype={constructor:k,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?x():+n)+(null==t?0:+t),this._next||l===this||(l?l._next=this:a=this,l=this),this._call=e,this._time=n,O()},stop:function(){this._call&&(this._call=null,this._time=1/0,O())}};var I=(0,i.Z)("start","end","cancel","interrupt"),A=[];function P(e,t,n,r,i,o){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var u,c,d,f;if(1!==n.state)return a();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return T(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(T(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(d=n.tween.length),c=-1;u<d;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=E(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:I,tween:A,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function R(e,t){var n=j(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function M(e,t){var n=j(e,t);if(n.state>3)throw Error("too late; already running");return n}function j(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function N(e,t){var n,r,i,o=e.__transition,s=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){s=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}s&&delete e.__transition}}function D(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var L=180/Math.PI,z={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function F(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*L,skewX:Math.atan(l)*L,scaleX:s,scaleY:a}}function B(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,s){var a,l,u,c,d=[],f=[];return o=e(o),s=e(s),!function(e,r,i,o,s,a){if(e!==i||r!==o){var l=s.push("translate(",null,t,null,n);a.push({i:l-4,x:D(e,i)},{i:l-2,x:D(r,o)})}else(i||o)&&s.push("translate("+i+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,d,f),(a=o.rotate)!==(l=s.rotate)?(a-l>180?l+=360:l-a>180&&(a+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:D(a,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=s.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:D(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,s){if(e!==n||t!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:D(e,n)},{i:a-2,x:D(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,d,f),o=s=null,function(e){for(var t,n=-1,r=f.length;++n<r;)d[(t=f[n]).i]=t.x(e);return d.join("")}}}var $=B(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?z:F(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),U=B(function(e){return null==e?z:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",e),e=r.transform.baseVal.consolidate())?F((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):z},", ",")",")"),V=n(778);function q(e,t,n){var r=e._id;return e.each(function(){var e=M(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return j(e,r).value[t]}}function W(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function H(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function G(){}var Z="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J=/^#([0-9a-f]{3,8})$/,X=RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`),Q=RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),ee=RegExp(`^rgba\\(${Z},${Z},${Z},${K}\\)$`),et=RegExp(`^rgba\\(${Y},${Y},${Y},${K}\\)$`),en=RegExp(`^hsl\\(${K},${Y},${Y}\\)$`),er=RegExp(`^hsla\\(${K},${Y},${Y},${K}\\)$`),ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function eo(){return this.rgb().formatHex()}function es(){return this.rgb().formatRgb()}function ea(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=J.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?el(t):3===n?new ed(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?eu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?eu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=X.exec(e))?new ed(t[1],t[2],t[3],1):(t=Q.exec(e))?new ed(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?eu(t[1],t[2],t[3],t[4]):(t=et.exec(e))?eu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=en.exec(e))?ev(t[1],t[2]/100,t[3]/100,1):(t=er.exec(e))?ev(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?el(ei[e]):"transparent"===e?new ed(NaN,NaN,NaN,0):null}function el(e){return new ed(e>>16&255,e>>8&255,255&e,1)}function eu(e,t,n,r){return r<=0&&(e=t=n=NaN),new ed(e,t,n,r)}function ec(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof G||(i=ea(i)),i)?new ed((i=i.rgb()).r,i.g,i.b,i.opacity):new ed:new ed(e,t,n,null==r?1:r)}function ed(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ef(){return`#${eg(this.r)}${eg(this.g)}${eg(this.b)}`}function eh(){let e=ep(this.opacity);return`${1===e?"rgb(":"rgba("}${em(this.r)}, ${em(this.g)}, ${em(this.b)}${1===e?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function em(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eg(e){return((e=em(e))<16?"0":"")+e.toString(16)}function ev(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new eb(e,t,n,r)}function ey(e){if(e instanceof eb)return new eb(e.h,e.s,e.l,e.opacity);if(e instanceof G||(e=ea(e)),!e)return new eb;if(e instanceof eb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(s=t===o?(n-r)/a+(n<r)*6:n===o?(r-t)/a+2:(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new eb(s,a,l,e.opacity)}function eb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ew(e){return(e=(e||0)%360)<0?e+360:e}function ex(e){return Math.max(0,Math.min(1,e||0))}function eS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function ek(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}W(G,ea,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eo,formatHex:eo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ey(this).formatHsl()},formatRgb:es,toString:es}),W(ed,ec,H(G,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ed(em(this.r),em(this.g),em(this.b),ep(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ef,formatHex:ef,formatHex8:function(){return`#${eg(this.r)}${eg(this.g)}${eg(this.b)}${eg((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eh,toString:eh})),W(eb,function(e,t,n,r){return 1==arguments.length?ey(e):new eb(e,t,n,null==r?1:r)},H(G,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new eb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new eb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ed(eS(e>=240?e-240:e+120,i,r),eS(e,i,r),eS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new eb(ew(this.h),ex(this.s),ex(this.l),ep(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ep(this.opacity);return`${1===e?"hsl(":"hsla("}${ew(this.h)}, ${100*ex(this.s)}%, ${100*ex(this.l)}%${1===e?")":`, ${e})`}`}}));var eE=e=>()=>e;function e_(e,t){var n=t-e;return n?function(t){return e+t*n}:eE(isNaN(e)?t:e)}var eC=function e(t){var n,r=1==(n=+(n=t))?e_:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):eE(isNaN(e)?t:e)};function i(e,t){var n=r((e=ec(e)).r,(t=ec(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),s=e_(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function eO(e){return function(t){var n,r,i=t.length,o=Array(i),s=Array(i),a=Array(i);for(n=0;n<i;++n)r=ec(t[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=e(o),s=e(s),a=e(a),r.opacity=1,function(e){return r.r=o(e),r.g=s(e),r.b=a(e),r+""}}}eO(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return ek((n-r/t)*t,s,i,o,a)}}),eO(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return ek((n-r/t)*t,i,o,s,a)}});var eT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eI=RegExp(eT.source,"g");function eA(e,t){var n;return("number"==typeof t?D:t instanceof ea?eC:(n=ea(t))?(t=n,eC):function(e,t){var n,r,i,o,s,a=eT.lastIndex=eI.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=eT.exec(e))&&(o=eI.exec(t));)(s=o.index)>a&&(s=t.slice(a,s),u[l]?u[l]+=s:u[++l]=s),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:D(i,o)})),a=eI.lastIndex;return a<t.length&&(s=t.slice(a),u[l]?u[l]+=s:u[++l]=s),u.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})})(e,t)}var eP=n(31581),eR=n(3527),eM=n(23121),ej=f.ZP.prototype.constructor,eN=n(17305);function eD(e){return function(){this.style.removeProperty(e)}}var eL=0;function ez(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var eF=f.ZP.prototype;ez.prototype=(function(e){return(0,f.ZP)().transition(e)}).prototype={constructor:ez,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eR.Z)(e));for(var r=this._groups,i=r.length,o=Array(i),s=0;s<i;++s)for(var a,l,u=r[s],c=u.length,d=o[s]=Array(c),f=0;f<c;++f)(a=u[f])&&(l=e.call(a,a.__data__,f,u))&&("__data__"in a&&(l.__data__=a.__data__),d[f]=l,P(d[f],t,n,f,d,j(a,n)));return new ez(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eM.Z)(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l,u=r[a],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var f,h=e.call(l,l.__data__,d,u),p=j(l,n),m=0,g=h.length;m<g;++m)(f=h[m])&&P(f,t,n,m,h,p);o.push(h),s.push(l)}return new ez(o,s,t,n)},selectChild:eF.selectChild,selectChildren:eF.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,eP.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,s=t[i],a=s.length,l=r[i]=[],u=0;u<a;++u)(o=s[u])&&e.call(o,o.__data__,u,s)&&l.push(o);return new ez(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=Array(r),a=0;a<o;++a)for(var l,u=t[a],c=n[a],d=u.length,f=s[a]=Array(d),h=0;h<d;++h)(l=u[h]||c[h])&&(f[h]=l);for(;a<r;++a)s[a]=t[a];return new ez(s,this._parents,this._name,this._id)},selection:function(){return new ej(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++eL,r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,u=0;u<l;++u)if(s=a[u]){var c=j(s,t);P(s,e,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ez(r,this._parents,e,n)},call:eF.call,nodes:eF.nodes,node:eF.node,size:eF.size,empty:eF.empty,each:eF.each,on:function(e,t){var n,r,i,o=this._id;return arguments.length<2?j(this.node(),o).on.on(e):this.each((i=(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?R:M,function(){var s=i(this,o),a=s.on;a!==n&&(r=(n=a).copy()).on(e,t),s.on=r}))},attr:function(e,t){var n=(0,V.Z)(e),r="transform"===n?U:eA;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var s,a,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=t(r=s,l))}}:function(e,t,n){var r,i,o;return function(){var s,a,l=n(this);return null==l?void this.removeAttribute(e):(s=this.getAttribute(e))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=t(r=s,l))}})(n,r,q(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=(0,V.Z)(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E="transform"==(e+="")?$:eA;return null==t?this.styleTween(e,(r=e,function(){var e=(0,eN.S)(this,r),t=(this.style.removeProperty(r),(0,eN.S)(this,r));return e===t?null:e===i&&t===o?s:s=E(i=e,o=t)})).on("end.style."+e,eD(e)):"function"==typeof t?this.styleTween(e,(a=e,l=q(this,"style."+e,t),function(){var e=(0,eN.S)(this,a),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(a),n=t=(0,eN.S)(this,a)),e===n?null:e===u&&n===c?d:(c=n,d=E(u=e,t))})).each((f=this._id,b="end."+(y="style."+(h=e)),function(){var e=M(this,f),t=e.on,n=null==e.value[y]?v||(v=eD(h)):void 0;(t!==p||g!==n)&&(m=(p=t).copy()).on(b,g=n),e.on=m})):this.styleTween(e,(w=e,k=t+"",function(){var e=(0,eN.S)(this,w);return e===k?null:e===x?S:S=E(x=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=q(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=j(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=M(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=M(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=a;break}l===u&&i.push(a)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){R(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){R(this,e).delay=t}})(t,e)):j(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){M(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){M(this,e).duration=t}})(t,e)):j(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){M(this,e).ease=t}}(t,e)):j(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();M(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0==--i&&o()}};n.each(function(){var n=M(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:eF[Symbol.iterator]};var eB={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};f.ZP.prototype.interrupt=function(e){return this.each(function(){N(this,e)})},f.ZP.prototype.transition=function(e){var t,n;e instanceof ez?(t=e._id,e=e._name):(t=++eL,(n=eB).time=x(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,u=0;u<l;++u)(s=a[u])&&P(s,e,t,u,a,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(s,t));return new ez(r,this._parents,e,t)};var e$=e=>()=>e;function eU(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function eV(e,t,n){this.k=e,this.x=t,this.y=n}eV.prototype={constructor:eV,scale:function(e){return 1===e?this:new eV(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new eV(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eq=new eV(1,0,0);function eW(e){e.stopImmediatePropagation()}function eH(e){e.preventDefault(),e.stopImmediatePropagation()}function eG(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function eZ(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eK(){return this.__zoom||eq}function eY(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eJ(){return navigator.maxTouchPoints||"ontouchstart"in this}function eX(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function eQ(){var e,t,n,r=eG,s=eZ,a=eX,l=eY,f=eJ,h=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],m=250,g=u,v=(0,i.Z)("start","zoom","end"),y=0,b=10;function w(e){e.property("__zoom",eK).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",I).filter(f).on("touchstart.zoom",A).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(e,t){return(t=Math.max(h[0],Math.min(h[1],t)))===e.k?e:new eV(t,e.x,e.y)}function S(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new eV(e.k,r,i)}function k(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function E(e,t,n,r){e.on("start.zoom",function(){_(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=_(this,e).event(r),o=s.apply(this,e),a=null==n?k(o):"function"==typeof n?n.apply(this,e):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=g(u.invert(a).concat(l/u.k),c.invert(a).concat(l/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=l/t[2];e=new eV(n,a[0]-t[0]*n,a[1]-t[1]*n)}i.zoom(null,e)}})}function _(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=s.apply(e,t),this.taps=0}function O(e,...t){if(r.apply(this,arguments)){var n=_(this,t).event(e),i=this.__zoom,o=Math.max(h[0],Math.min(h[1],i.k*Math.pow(2,l.apply(this,arguments)))),s=(0,d.Z)(e);if(n.wheel)(n.mouse[0][0]!==s[0]||n.mouse[0][1]!==s[1])&&(n.mouse[1]=i.invert(n.mouse[0]=s)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[s,i.invert(s)],N(this),n.start()}eH(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",a(S(x(i,o),n.mouse[0],n.mouse[1]),n.extent,p))}}function T(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,s=_(this,t,!0).event(e),l=(0,c.Z)(e.view).on("mousemove.zoom",function(e){if(eH(e),!s.moved){var t=e.clientX-f,n=e.clientY-h;s.moved=t*t+n*n>y}s.event(e).zoom("mouse",a(S(s.that.__zoom,s.mouse[0]=(0,d.Z)(e,i),s.mouse[1]),s.extent,p))},!0).on("mouseup.zoom",function(e){l.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(e.view,s.moved),eH(e),s.event(e).end()},!0),u=(0,d.Z)(e,i),f=e.clientX,h=e.clientY;(0,o.Z)(e.view),eW(e),s.mouse=[u,this.__zoom.invert(u)],N(this),s.start()}}function I(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,i=(0,d.Z)(e.changedTouches?e.changedTouches[0]:e,this),o=n.invert(i),l=n.k*(e.shiftKey?.5:2),u=a(S(x(n,l),i,o),s.apply(this,t),p);eH(e),m>0?(0,c.Z)(this).transition().duration(m).call(E,u,i,e):(0,c.Z)(this).call(w.transform,u,i,e)}}function A(n,...i){if(r.apply(this,arguments)){var o,s,a,l,u=n.touches,c=u.length,f=_(this,i,n.changedTouches.length===c).event(n);for(eW(n),s=0;s<c;++s)a=u[s],l=[l=(0,d.Z)(a,this),this.__zoom.invert(l),a.identifier],f.touch0?f.touch1||f.touch0[2]===l[2]||(f.touch1=l,f.taps=0):(f.touch0=l,o=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(f.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),N(this),f.start())}}function P(e,...t){if(this.__zooming){var n,r,i,o,s=_(this,t).event(e),l=e.changedTouches,u=l.length;for(eH(e),n=0;n<u;++n)r=l[n],i=(0,d.Z)(r,this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var c=s.touch0[0],f=s.touch0[1],h=s.touch1[0],m=s.touch1[1],g=(g=h[0]-c[0])*g+(g=h[1]-c[1])*g,v=(v=m[0]-f[0])*v+(v=m[1]-f[1])*v;r=x(r,Math.sqrt(g/v)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],o=s.touch0[1]}s.zoom("touch",a(S(r,i,o),s.extent,p))}}function R(e,...r){if(this.__zooming){var i,o,s=_(this,r).event(e),a=e.changedTouches,l=a.length;for(eW(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=a[i],s.touch0&&s.touch0[2]===o.identifier?delete s.touch0:s.touch1&&s.touch1[2]===o.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(o=(0,d.Z)(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<b)){var u=(0,c.Z)(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return w.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eK),e!==i?E(e,t,n,r):i.interrupt().each(function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},w.scaleBy=function(e,t,n,r){w.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},w.scaleTo=function(e,t,n,r){w.transform(e,function(){var e=s.apply(this,arguments),r=this.__zoom,i=null==n?k(e):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),l="function"==typeof t?t.apply(this,arguments):t;return a(S(x(r,l),i,o),e,p)},n,r)},w.translateBy=function(e,t,n,r){w.transform(e,function(){return a(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),s.apply(this,arguments),p)},null,r)},w.translateTo=function(e,t,n,r,i){w.transform(e,function(){var e=s.apply(this,arguments),i=this.__zoom,o=null==r?k(e):"function"==typeof r?r.apply(this,arguments):r;return a(eq.translate(o[0],o[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,p)},r,i)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,c.Z)(this.that).datum();v.call(e,this.that,new eU(e,{sourceEvent:this.sourceEvent,target:w,type:e,transform:this.that.__zoom,dispatch:v}),t)}},w.wheelDelta=function(e){return arguments.length?(l="function"==typeof e?e:e$(+e),w):l},w.filter=function(e){return arguments.length?(r="function"==typeof e?e:e$(!!e),w):r},w.touchable=function(e){return arguments.length?(f="function"==typeof e?e:e$(!!e),w):f},w.extent=function(e){return arguments.length?(s="function"==typeof e?e:e$([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),w):s},w.scaleExtent=function(e){return arguments.length?(h[0]=+e[0],h[1]=+e[1],w):[h[0],h[1]]},w.translateExtent=function(e){return arguments.length?(p[0][0]=+e[0][0],p[1][0]=+e[1][0],p[0][1]=+e[0][1],p[1][1]=+e[1][1],w):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},w.constrain=function(e){return arguments.length?(a=e,w):a},w.duration=function(e){return arguments.length?(m=+e,w):m},w.interpolate=function(e){return arguments.length?(g=e,w):g},w.on=function(){var e=v.on.apply(v,arguments);return e===v?w:e},w.clickDistance=function(e){return arguments.length?(y=(e=+e)*e,w):Math.sqrt(y)},w.tapDistance=function(e){return arguments.length?(b=+e,w):b},w}eV.prototype},13993:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let r={};function i(){return r}},6542:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(54479);function i(e){let t=(0,r.Q)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},7356:function(e,t,n){"use strict";n.d(t,{H_:function(){return l},dP:function(){return i},fH:function(){return a},jE:function(){return r},vh:function(){return s},yJ:function(){return o}});let r=6048e5,i=864e5,o=6e4,s=36e5,a=43200,l=1440},5049:function(e,t,n){"use strict";function r(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}n.d(t,{L:function(){return r}})},4:function(e,t,n){"use strict";n.d(t,{WU:function(){return R}});var r=n(80662),i=n(13993),o=n(7356),s=n(54479);function a(e){let t=(0,s.Q)(e);return t.setHours(0,0,0,0),t}var l=n(6542),u=n(5049);function c(e,t){var n,r,o,a,l,u,c,d;let f=(0,i.j)(),h=null!==(d=null!==(c=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.weekStartsOn)&&void 0!==u?u:f.weekStartsOn)&&void 0!==c?c:null===(a=f.locale)||void 0===a?void 0:null===(o=a.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==d?d:0,p=(0,s.Q)(e),m=p.getDay();return p.setDate(p.getDate()-((m<h?7:0)+m-h)),p.setHours(0,0,0,0),p}function d(e){return c(e,{weekStartsOn:1})}function f(e){let t=(0,s.Q)(e),n=t.getFullYear(),r=(0,u.L)(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=d(r),o=(0,u.L)(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let a=d(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function h(e,t){var n,r,o,a,l,d,f,h;let p=(0,s.Q)(e),m=p.getFullYear(),g=(0,i.j)(),v=null!==(h=null!==(f=null!==(d=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:g.firstWeekContainsDate)&&void 0!==f?f:null===(a=g.locale)||void 0===a?void 0:null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==h?h:1,y=(0,u.L)(e,0);y.setFullYear(m+1,0,v),y.setHours(0,0,0,0);let b=c(y,t),w=(0,u.L)(e,0);w.setFullYear(m,0,v),w.setHours(0,0,0,0);let x=c(w,t);return p.getTime()>=b.getTime()?m+1:p.getTime()>=x.getTime()?m:m-1}function p(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let m={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return p("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):p(n+1,2)},d:(e,t)=>p(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>p(e.getHours()%12||12,t.length),H:(e,t)=>p(e.getHours(),t.length),m:(e,t)=>p(e.getMinutes(),t.length),s:(e,t)=>p(e.getSeconds(),t.length),S(e,t){let n=t.length;return p(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},g={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},v={G:function(e,t,n){let r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return m.y(e,t)},Y:function(e,t,n,r){let i=h(e,r),o=i>0?i:1-i;return"YY"===t?p(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):p(o,t.length)},R:function(e,t){return p(f(e),t.length)},u:function(e,t){return p(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return p(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return p(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return m.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return p(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let a=function(e,t){let n=(0,s.Q)(e);return Math.round((+c(n,t)-+function(e,t){var n,r,o,s,a,l,d,f;let p=(0,i.j)(),m=null!==(f=null!==(d=null!==(l=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:p.firstWeekContainsDate)&&void 0!==d?d:null===(s=p.locale)||void 0===s?void 0:null===(o=s.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==f?f:1,g=h(e,t),v=(0,u.L)(e,0);return v.setFullYear(g,0,m),v.setHours(0,0,0,0),c(v,t)}(n,t))/o.jE)+1}(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):p(a,t.length)},I:function(e,t,n){let r=function(e){let t=(0,s.Q)(e);return Math.round((+d(t)-+function(e){let t=f(e),n=(0,u.L)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),d(n)}(t))/o.jE)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):p(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){let r=function(e){let t=(0,s.Q)(e);return function(e,t){let n=a(e),r=a(t);return Math.round((+n-(0,l.D)(n)-(+r-(0,l.D)(r)))/o.dP)}(t,function(e){let t=(0,s.Q)(e),n=(0,u.L)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):p(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return p(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return p(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return p(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r;let i=e.getHours();switch(r=12===i?g.noon:0===i?g.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r;let i=e.getHours();switch(r=i>=17?g.evening:i>=12?g.afternoon:i>=4?g.morning:g.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):p(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){return m.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return b(r);case"XXXX":case"XX":return w(r);default:return w(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return b(r);case"xxxx":case"xx":return w(r);default:return w(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+y(r,":");default:return"GMT"+w(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+y(r,":");default:return"GMT"+w(r,":")}},t:function(e,t,n){return p(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return p(e.getTime(),t.length)}};function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+p(o,2)}function b(e,t){return e%60==0?(e>0?"-":"+")+p(Math.abs(e)/60,2):w(e,t)}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+p(Math.trunc(n/60),2)+t+p(n%60,2)}let x=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},S=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},k={p:S,P:(e,t)=>{let n;let r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return x(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",x(i,t)).replace("{{time}}",S(o,t))}},E=/^D+$/,_=/^Y+$/,C=["D","DD","YY","YYYY"],O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I=/^'([^]*?)'?$/,A=/''/g,P=/[a-zA-Z]/;function R(e,t,n){var o,a,l,u,c,d,f,h,p,m,g,y,b,w,x,S,R,M;let j=(0,i.j)(),N=null!==(m=null!==(p=null==n?void 0:n.locale)&&void 0!==p?p:j.locale)&&void 0!==m?m:r._,D=null!==(w=null!==(b=null!==(y=null!==(g=null==n?void 0:n.firstWeekContainsDate)&&void 0!==g?g:null==n?void 0:null===(a=n.locale)||void 0===a?void 0:null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==y?y:j.firstWeekContainsDate)&&void 0!==b?b:null===(u=j.locale)||void 0===u?void 0:null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==w?w:1,L=null!==(M=null!==(R=null!==(S=null!==(x=null==n?void 0:n.weekStartsOn)&&void 0!==x?x:null==n?void 0:null===(d=n.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==S?S:j.weekStartsOn)&&void 0!==R?R:null===(h=j.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==M?M:0,z=(0,s.Q)(e);if(!((z instanceof Date||"object"==typeof z&&"[object Date]"===Object.prototype.toString.call(z)||"number"==typeof z)&&!isNaN(Number((0,s.Q)(z)))))throw RangeError("Invalid time value");let F=t.match(T).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,k[t])(e,N.formatLong):e}).join("").match(O).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(I);return t?t[1].replace(A,"'"):e}(e)};if(v[t])return{isToken:!0,value:e};if(t.match(P))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});N.localize.preprocessor&&(F=N.localize.preprocessor(z,F));let B={firstWeekContainsDate:D,weekStartsOn:L,locale:N};return F.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&_.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&E.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),C.includes(e))throw RangeError(r)}(i,t,String(e)),(0,v[i[0]])(z,i,N.localize,B)}).join("")}},72229:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(5049),i=n(54479);function o(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var s=n(7356),a=n(80662),l=n(13993),u=n(6542);function c(e,t){return function(e,t,n){var r,c,d,f,h,p;let m,g,v;let y=(0,l.j)(),b=null!==(c=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:y.locale)&&void 0!==c?c:a._,w=o(e,t);if(isNaN(w))throw RangeError("Invalid time value");let x=Object.assign({},n,{addSuffix:null==n?void 0:n.addSuffix,comparison:w});w>0?(m=(0,i.Q)(t),g=(0,i.Q)(e)):(m=(0,i.Q)(e),g=(0,i.Q)(t));let S=(d=g,f=m,(p=null==void 0?void 0:(void 0).roundingMethod,e=>{let t=(p?Math[p]:Math.trunc)(e);return 0===t?0:t})((+(0,i.Q)(d)-+(0,i.Q)(f))/1e3)),k=Math.round((S-((0,u.D)(g)-(0,u.D)(m))/1e3)/60);if(k<2){if(null==n?void 0:n.includeSeconds){if(S<5)return b.formatDistance("lessThanXSeconds",5,x);if(S<10)return b.formatDistance("lessThanXSeconds",10,x);if(S<20)return b.formatDistance("lessThanXSeconds",20,x);if(S<40)return b.formatDistance("halfAMinute",0,x);else if(S<60)return b.formatDistance("lessThanXMinutes",1,x);else return b.formatDistance("xMinutes",1,x)}return 0===k?b.formatDistance("lessThanXMinutes",1,x):b.formatDistance("xMinutes",k,x)}if(k<45)return b.formatDistance("xMinutes",k,x);if(k<90)return b.formatDistance("aboutXHours",1,x);if(k<s.H_)return b.formatDistance("aboutXHours",Math.round(k/60),x);if(k<2520)return b.formatDistance("xDays",1,x);if(k<s.fH){let e=Math.round(k/s.H_);return b.formatDistance("xDays",e,x)}if(k<2*s.fH)return v=Math.round(k/s.fH),b.formatDistance("aboutXMonths",v,x);if((v=function(e,t){let n;let r=(0,i.Q)(e),s=(0,i.Q)(t),a=o(r,s),l=Math.abs(function(e,t){let n=(0,i.Q)(e),r=(0,i.Q)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,s));if(l<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*l);let t=o(r,s)===-a;(function(e){let t=(0,i.Q)(e);return+function(e){let t=(0,i.Q)(e);return t.setHours(23,59,59,999),t}(t)==+function(e){let t=(0,i.Q)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(t)})((0,i.Q)(e))&&1===l&&1===o(e,s)&&(t=!1),n=a*(l-Number(t))}return 0===n?0:n}(g,m))<12){let e=Math.round(k/s.fH);return b.formatDistance("xMonths",e,x)}{let e=v%12,t=Math.trunc(v/12);return e<3?b.formatDistance("aboutXYears",t,x):e<9?b.formatDistance("overXYears",t,x):b.formatDistance("almostXYears",t+1,x)}}(e,(0,r.L)(e,Date.now()),t)}},80662:function(e,t,n){"use strict";var r;n.d(t,{_:function(){return c}});let i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let s={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;let a=s[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(a)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(a));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(a.length)}}}let c={code:"en-US",formatDistance:(e,t,n)=>{let r;let o=i[e];return(r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:s,formatRelative:(e,t,n,r)=>a[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;let i=n[0],o=e.match(r.parsePattern);if(!o)return null;let s=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:s=t.valueCallback?t.valueCallback(s):s,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},38192:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(7356);function i(e,t){var n;let i,h;let p=null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2,m=function(e){let t;let n={},r=e.split(o.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){let e=o.timezone.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(m.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(m.date,p);i=function(e,t){if(null===t)return new Date(NaN);let n=e.match(s);if(!n)return new Date(NaN);let r=!!n[4],i=u(n[1]),o=u(n[2])-1,a=u(n[3]),l=u(n[4]),c=u(n[5])-1;if(r)return l>=1&&l<=53&&c>=0&&c<=6?function(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-i)),r}(t,l,c):new Date(NaN);{let e=new Date(0);return o>=0&&o<=11&&a>=1&&a<=(d[o]||(f(t)?29:28))&&i>=1&&i<=(f(t)?366:365)?(e.setUTCFullYear(t,o,Math.max(i,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);let g=i.getTime(),v=0;if(m.time&&isNaN(v=function(e){let t=e.match(a);if(!t)return NaN;let n=c(t[1]),i=c(t[2]),o=c(t[3]);return(24===n?0===i&&0===o:o>=0&&o<60&&i>=0&&i<60&&n>=0&&n<25)?n*r.vh+i*r.yJ+1e3*o:NaN}(m.time)))return new Date(NaN);if(m.timezone){if(isNaN(h=function(e){if("Z"===e)return 0;let t=e.match(l);if(!t)return 0;let n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return o>=0&&o<=59?n*(i*r.vh+o*r.yJ):NaN}(m.timezone)))return new Date(NaN)}else{let e=new Date(g+v),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return new Date(g+v+h)}let o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,a=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e){return e?parseInt(e):1}function c(e){return e&&parseFloat(e.replace(",","."))||0}let d=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400==0||e%4==0&&e%100!=0}},54479:function(e,t,n){"use strict";function r(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}n.d(t,{Q:function(){return r}})},40880:function(e,t,n){"use strict";n.d(t,{M:function(){return g}});var r=n(66703),i=n(12619);function o(){let e=(0,r.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var s=n(59829),a=n(75140),l=n(6167);class u extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let n=(0,r.useId)(),i=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:s,left:a}=o.current;if(t||!i.current||!e||!r)return;i.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
34
|
-
[data-motion-pop-id="${n}"] {
|
|
35
|
-
position: absolute !important;
|
|
36
|
-
width: ${e}px !important;
|
|
37
|
-
height: ${r}px !important;
|
|
38
|
-
top: ${s}px !important;
|
|
39
|
-
left: ${a}px !important;
|
|
40
|
-
}
|
|
41
|
-
`),()=>{document.head.removeChild(l)}},[t]),r.createElement(u,{isPresent:t,childRef:i,sizeRef:o},r.cloneElement(e,{ref:i}))}let d=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:u})=>{let d=(0,l.h)(f),h=(0,r.useId)(),p=(0,r.useMemo)(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;i&&i()},register:e=>(d.set(e,!1),()=>d.delete(e))}),s?void 0:[n]);return(0,r.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),r.useEffect(()=>{n||d.size||!i||i()},[n]),"popLayout"===u&&(e=r.createElement(c,{isPresent:n},e)),r.createElement(a.O.Provider,{value:p},e)};function f(){return new Map}var h=n(14574),p=n(78686);let m=e=>e.key||"",g=({children:e,custom:t,initial:n=!0,onExitComplete:a,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:c="sync"})=>{var f;(0,p.k)(!l,"Replace exitBeforeEnter with mode='wait'");let g=(0,r.useContext)(h.p).forceRender||function(){let e=o(),[t,n]=(0,r.useState)(0),i=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>s.Wi.postRender(i),[i]),t]}()[0],v=o(),y=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),b=y,w=(0,r.useRef)(new Map).current,x=(0,r.useRef)(b),S=(0,r.useRef)(new Map).current,k=(0,r.useRef)(!0);if((0,i.L)(()=>{k.current=!1,function(e,t){e.forEach(e=>{let n=m(e);t.set(n,e)})}(y,S),x.current=b}),f=()=>{k.current=!0,S.clear(),w.clear()},(0,r.useEffect)(()=>()=>f(),[]),k.current)return r.createElement(r.Fragment,null,b.map(e=>r.createElement(d,{key:m(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:u,mode:c},e)));b=[...b];let E=x.current.map(m),_=y.map(m),C=E.length;for(let e=0;e<C;e++){let t=E[e];-1!==_.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===c&&w.size&&(b=[]),w.forEach((e,n)=>{if(-1!==_.indexOf(n))return;let i=S.get(n);if(!i)return;let o=E.indexOf(n),s=e;s||(s=r.createElement(d,{key:m(i),isPresent:!1,onExitComplete:()=>{w.delete(n);let e=Array.from(S.keys()).filter(e=>!_.includes(e));if(e.forEach(e=>S.delete(e)),x.current=y.filter(t=>{let r=m(t);return r===n||e.includes(r)}),!w.size){if(!1===v.current)return;g(),a&&a()}},custom:t,presenceAffectsLayout:u,mode:c},i),w.set(n,s)),b.splice(o,0,s)}),b=b.map(e=>{let t=e.key;return w.has(t)?e:r.createElement(d,{key:m(e),isPresent:!0,presenceAffectsLayout:u,mode:c},e)}),r.createElement(r.Fragment,null,w.size?b:b.map(e=>(0,r.cloneElement)(e)))}},86231:function(e,t,n){"use strict";n.d(t,{hO:function(){return s},oO:function(){return o}});var r=n(66703),i=n(75140);function o(){let e=(0,r.useContext)(i.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:o}=e,s=(0,r.useId)();return(0,r.useEffect)(()=>o(s),[]),!t&&n?[!1,()=>n&&n(s)]:[!0]}function s(){var e;return null===(e=(0,r.useContext)(i.O))||e.isPresent}},14574:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});let r=(0,n(66703).createContext)({})},75140:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=(0,n(66703).createContext)(null)},59829:function(e,t,n){"use strict";n.d(t,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return l},S6:function(){return u}});var r=n(67766);class i{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:a,state:l,steps:u}=function(e,t){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((e,t)=>(e[t]=function(e){let t=new i,n=new i,r=0,o=!1,s=!1,a=new WeakSet,l={schedule:(e,i=!1,s=!1)=>{let l=s&&o,u=l?t:n;return i&&a.add(e),u.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:i=>{if(o){s=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length)for(let n=0;n<r;n++){let r=t.order[n];r(i),a.has(r)&&(l.schedule(r),e())}o=!1,s&&(s=!1,l.process(i))}};return l}(()=>n=!0),e),{}),l=e=>a[e].process(s),u=()=>{let i=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(l),s.isProcessing=!1,n&&t&&(r=!1,e(u))},c=()=>{n=!0,r=!0,s.isProcessing||e(u)};return{schedule:o.reduce((e,t)=>{let r=a[t];return e[t]=(e,t=!1,i=!1)=>(n||c(),r.schedule(e,t,i)),e},{}),cancel:e=>o.forEach(t=>a[t].cancel(e)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},42349:function(e,t,n){"use strict";let r;n.d(t,{E:function(){return iH}});var i,o,s=n(66703);let a=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),l=(0,s.createContext)({});var u=n(75140),c=n(12619);let d=(0,s.createContext)({strict:!1}),f=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),h="data-"+f("framerAppearId");function p(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function m(e){return"string"==typeof e||Array.isArray(e)}function g(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let v=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...v];function b(e){return g(e.animate)||y.some(t=>m(e[t]))}function w(e){return!!(b(e)||e.variants)}function x(e){return Array.isArray(e)?e.join(" "):e}let S={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},k={};for(let e in S)k[e]={isEnabled:t=>S[e].some(e=>!!t[e])};var E=n(57245),_=n(14574);let C=(0,s.createContext)({}),O=Symbol.for("motionComponentSymbol"),T=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function I(e){if("string"!=typeof e||e.includes("-"));else if(T.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let A={},P=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],R=new Set(P);function M(e,{layout:t,layoutId:n}){return R.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!A[e]||"opacity"===e)}let j=e=>!!(e&&e.getVelocity),N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D=P.length,L=e=>t=>"string"==typeof t&&t.startsWith(e),z=L("--"),F=L("var(--"),B=(e,t)=>t&&"number"==typeof e?t.transform(e):e,$=(e,t,n)=>Math.min(Math.max(n,e),t),U={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},V={...U,transform:e=>$(0,1,e)},q={...U,default:1},W=e=>Math.round(1e5*e)/1e5,H=/(-)?([\d]*\.?[\d])+/g,G=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Z=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function K(e){return"string"==typeof e}let Y=e=>({test:t=>K(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),J=Y("deg"),X=Y("%"),Q=Y("px"),ee=Y("vh"),et=Y("vw"),en={...X,parse:e=>X.parse(e)/100,transform:e=>X.transform(100*e)},er={...U,transform:Math.round},ei={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:q,scaleX:q,scaleY:q,scaleZ:q,skew:J,skewX:J,skewY:J,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:V,originX:en,originY:en,originZ:Q,zIndex:er,fillOpacity:V,strokeOpacity:V,numOctaves:er};function eo(e,t,n,r){let{style:i,vars:o,transform:s,transformOrigin:a}=e,l=!1,u=!1,c=!0;for(let e in t){let n=t[e];if(z(e)){o[e]=n;continue}let r=ei[e],d=B(n,r);if(R.has(e)){if(l=!0,s[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,a[e]=d):i[e]=d}if(!t.transform&&(l||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<D;t++){let n=P[t];if(void 0!==e[n]){let t=N[n]||n;o+=`${t}(${e[n]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,c,r):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;i.transformOrigin=`${e} ${t} ${n}`}}let es=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ea(e,t,n){for(let r in t)j(t[r])||M(r,n)||(e[r]=t[r])}let el=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eu(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||el.has(e)}let ec=e=>!eu(e);try{(i=require("@emotion/is-prop-valid").default)&&(ec=e=>e.startsWith("on")?!eu(e):i(e))}catch(e){}function ed(e,t,n){return"string"==typeof e?e:Q.transform(t+n*e)}let ef={offset:"stroke-dashoffset",array:"stroke-dasharray"},eh={offset:"strokeDashoffset",array:"strokeDasharray"};function ep(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(eo(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:p,dimensions:m}=e;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){let r=ed(t,e.x,e.width),i=ed(n,e.y,e.height);return`${r} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==s&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ef:eh;e[o.offset]=Q.transform(-r);let s=Q.transform(t),a=Q.transform(n);e[o.array]=`${s} ${a}`}(h,s,a,l,!1)}let em=()=>({...es(),attrs:{}}),eg=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ev(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let ey=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eb(e,t,n,r){for(let n in ev(e,t,void 0,r),t.attrs)e.setAttribute(ey.has(n)?n:f(n),t.attrs[n])}function ew(e,t){let{style:n}=e,r={};for(let i in n)(j(n[i])||t.style&&j(t.style[i])||M(i,e))&&(r[i]=n[i]);return r}function ex(e,t){let n=ew(e,t);for(let r in e)(j(e[r])||j(t[r]))&&(n[-1!==P.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function eS(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}var ek=n(6167);let eE=e=>Array.isArray(e),e_=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eC=e=>eE(e)?e[e.length-1]||0:e;function eO(e){let t=j(e)?e.get():e;return e_(t)?t.toValue():t}let eT=e=>(t,n)=>{let r=(0,s.useContext)(l),i=(0,s.useContext)(u.O),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let s={latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=eO(o[e]);let{initial:s,animate:a}=e,l=b(e),u=w(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===s)?a:s;return d&&"boolean"!=typeof d&&!g(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=eS(e,t);if(!n)return;let{transitionEnd:r,transition:o,...s}=n;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,o,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s})(e,t,r,i);return n?o():(0,ek.h)(o)};var eI=n(59829);let eA={useVisualState:eT({scrapeMotionValuesFromProps:ex,createRenderState:em,onMount:(e,t,{renderState:n,latestValues:r})=>{eI.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),eI.Wi.render(()=>{ep(n,r,{enableHardwareAcceleration:!1},eg(t.tagName),e.transformTemplate),eb(t,n)})}})},eP={useVisualState:eT({scrapeMotionValuesFromProps:ew,createRenderState:es})};function eR(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let eM=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ej(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let eN=e=>t=>eM(t)&&e(t,ej(t));function eD(e,t,n,r){return eR(e,t,eN(n),r)}let eL=(e,t)=>n=>t(e(n)),ez=(...e)=>e.reduce(eL);function eF(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eB=eF("dragHorizontal"),e$=eF("dragVertical");function eU(e){let t=!1;if("y"===e)t=e$();else if("x"===e)t=eB();else{let e=eB(),n=e$();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function eV(){let e=eU(!0);return!e||(e(),!1)}class eq{constructor(e){this.isMounted=!1,this.node=e}update(){}}function eW(e,t){let n="onHover"+(t?"Start":"End");return eD(e.current,"pointer"+(t?"enter":"leave"),(r,i)=>{if("touch"===r.pointerType||eV())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&eI.Wi.update(()=>o[n](r,i))},{passive:!e.getProps()[n]})}class eH extends eq{mount(){this.unmount=ez(eW(this.node,!0),eW(this.node,!1))}unmount(){}}class eG extends eq{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ez(eR(this.node.current,"focus",()=>this.onFocus()),eR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eZ=(e,t)=>!!t&&(e===t||eZ(e,t.parentElement));var eK=n(67766);function eY(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,ej(n))}class eJ extends eq{constructor(){super(...arguments),this.removeStartListeners=eK.Z,this.removeEndListeners=eK.Z,this.removeAccessibleListeners=eK.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=eD(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();eI.Wi.update(()=>{i||eZ(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),i=eD(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ez(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eR(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eR(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&eY("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&eI.Wi.update(()=>n(e,t))})}),eY("down",(e,t)=>{this.startPress(e,t)}))}),t=eR(this.node.current,"blur",()=>{this.isPressing&&eY("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=ez(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&eI.Wi.update(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eV()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&eI.Wi.update(()=>n(e,t))}mount(){let e=this.node.getProps(),t=eD(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=eR(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ez(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eX=new WeakMap,eQ=new WeakMap,e0=e=>{let t=eX.get(e.target);t&&t(e)},e1=e=>{e.forEach(e0)},e2={some:0,all:1};class e3 extends eq{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:e2[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;eQ.has(n)||eQ.set(n,{});let r=eQ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(e1,{root:e,...t})),r[i]}(t);return eX.set(e,n),r.observe(e),()=>{eX.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}function e5(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function e4(e,t,n){let r=e.getProps();return eS(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}var e6=n(78686);let e9=e=>1e3*e,e8=e=>e/1e3,e7={current:!1},te=e=>Array.isArray(e)&&"number"==typeof e[0],tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tt([0,.65,.55,1]),circOut:tt([.55,0,1,.45]),backIn:tt([.31,.01,.66,-.59]),backOut:tt([.33,1.53,.69,.99])},tr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ti(e,t,n,r){if(e===t&&n===r)return eK.Z;let i=t=>(function(e,t,n,r,i){let o,s;let a=0;do(o=tr(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:tr(i(e),t,r)}let to=ti(.42,0,1,1),ts=ti(0,0,.58,1),ta=ti(.42,0,.58,1),tl=e=>Array.isArray(e)&&"number"!=typeof e[0],tu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tc=e=>t=>1-e(1-t),td=e=>1-Math.sin(Math.acos(e)),tf=tc(td),th=tu(td),tp=ti(.33,1.53,.69,.99),tm=tc(tp),tg=tu(tm),tv={linear:eK.Z,easeIn:to,easeInOut:ta,easeOut:ts,circIn:td,circInOut:th,circOut:tf,backIn:tm,backInOut:tg,backOut:tp,anticipate:e=>(e*=2)<1?.5*tm(e):.5*(2-Math.pow(2,-10*(e-1)))},ty=e=>{if(Array.isArray(e)){(0,e6.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return ti(t,n,r,i)}return"string"==typeof e?((0,e6.k)(void 0!==tv[e],`Invalid easing type '${e}'`),tv[e]):e},tb=(e,t)=>n=>!!(K(n)&&Z.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tw=(e,t,n)=>r=>{if(!K(r))return r;let[i,o,s,a]=r.match(H);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tx=e=>$(0,255,e),tS={...U,transform:e=>Math.round(tx(e))},tk={test:tb("rgb","red"),parse:tw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+tS.transform(e)+", "+tS.transform(t)+", "+tS.transform(n)+", "+W(V.transform(r))+")"},tE={test:tb("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:tk.transform},t_={test:tb("hsl","hue"),parse:tw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+X.transform(W(t))+", "+X.transform(W(n))+", "+W(V.transform(r))+")"},tC={test:e=>tk.test(e)||tE.test(e)||t_.test(e),parse:e=>tk.test(e)?tk.parse(e):t_.test(e)?t_.parse(e):tE.parse(e),transform:e=>K(e)?e:e.hasOwnProperty("red")?tk.transform(e):t_.transform(e)},tO=(e,t,n)=>-n*e+n*t+e;function tT(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}let tI=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},tA=[tE,tk,t_],tP=e=>tA.find(t=>t.test(e));function tR(e){let t=tP(e);(0,e6.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===t_&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=tT(a,r,e+1/3),o=tT(a,r,e),s=tT(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let tM=(e,t)=>{let n=tR(e),r=tR(t),i={...n};return e=>(i.red=tI(n.red,r.red,e),i.green=tI(n.green,r.green,e),i.blue=tI(n.blue,r.blue,e),i.alpha=tO(n.alpha,r.alpha,e),tk.transform(i))},tj={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:eK.Z},tN={regex:G,countKey:"Colors",token:"${c}",parse:tC.parse},tD={regex:H,countKey:"Numbers",token:"${n}",parse:U.parse};function tL(e,{regex:t,countKey:n,token:r,parse:i}){let o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function tz(e){let t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tL(n,tj),tL(n,tN),tL(n,tD),n}function tF(e){return tz(e).values}function tB(e){let{values:t,numColors:n,numVars:r,tokenised:i}=tz(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<r?t.replace(tj.token,e[i]):i<r+n?t.replace(tN.token,tC.transform(e[i])):t.replace(tD.token,W(e[i]));return t}}let t$=e=>"number"==typeof e?0:e,tU={test:function(e){var t,n;return isNaN(e)&&K(e)&&((null===(t=e.match(H))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(G))||void 0===n?void 0:n.length)||0)>0},parse:tF,createTransformer:tB,getAnimatableNone:function(e){let t=tF(e);return tB(e)(t.map(t$))}},tV=(e,t)=>n=>`${n>0?t:e}`;function tq(e,t){return"number"==typeof e?n=>tO(e,t,n):tC.test(e)?tM(e,t):e.startsWith("var(")?tV(e,t):tG(e,t)}let tW=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>tq(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},tH=(e,t)=>{let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tq(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}},tG=(e,t)=>{let n=tU.createTransformer(t),r=tz(e),i=tz(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ez(tW(r.values,i.values),n):((0,e6.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tV(e,t))},tZ=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},tK=(e,t)=>n=>tO(e,t,n);function tY(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if((0,e6.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||function(e){if("number"==typeof e);else if("string"==typeof e)return tC.test(e)?tM:tG;else if(Array.isArray(e))return tW;else if("object"==typeof e)return tH;return tK}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=ez(Array.isArray(t)?t[n]||eK.Z:t,o)),r.push(o)}return r}(t,r,i),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let r=tZ(e[n],e[n+1],t);return s[n](r)};return n?t=>l($(e[0],e[o-1],t)):l}function tJ({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=tl(r)?r.map(ty):ty(r),o={done:!1,value:t[0]},s=tY((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=tZ(0,t,r);e.push(tO(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ta).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}function tX(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}function tQ(e,t){return e*Math.sqrt(1-t*t)}let t0=["duration","bounce"],t1=["stiffness","damping","mass"];function t2(e,t){return t.some(t=>void 0!==e[t])}function t3({keyframes:e,restDelta:t,restSpeed:n,...r}){let i;let o=e[0],s=e[e.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t2(e,t1)&&t2(e,t0)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;(0,e6.K)(e<=e9(10),"Spring duration must be 10 seconds or less");let s=1-t;s=$(.05,1,s),e=$(.01,10,e8(e)),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/tQ(t,s)*Math.exp(-i)},o=t=>{let r=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=tQ(Math.pow(t,2),s);return(r*n+n-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=e9(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-e8(r.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(l*c)),g=s-o,v=e8(Math.sqrt(l/c)),y=5>Math.abs(g);if(n||(n=y?.01:2),t||(t=y?.005:.5),m<1){let e=tQ(v,m);i=t=>s-Math.exp(-m*v*t)*((p+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===m)i=e=>s-Math.exp(-v*e)*(g+(p+v*g)*e);else{let e=v*Math.sqrt(m*m-1);i=t=>{let n=Math.exp(-m*v*t),r=Math.min(e*t,300);return s-n*((p+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}return{calculatedDuration:h&&d||null,next:e=>{let r=i(e);if(h)a.done=e>=d;else{let o=p;0!==e&&(o=m<1?tX(i,e,r):0);let l=Math.abs(o)<=n,u=Math.abs(s-r)<=t;a.done=l&&u}return a.value=a.done?s:r,a}}}function t5({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,f;let h=e[0],p={done:!1,value:h},m=e=>void 0!==a&&e<a||void 0!==l&&e>l,g=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,v=n*t,y=h+v,b=void 0===s?y:s(y);b!==y&&(v=b-h);let w=e=>-v*Math.exp(-e/r),x=e=>b+w(e),S=e=>{let t=w(e),n=x(e);p.done=Math.abs(t)<=u,p.value=p.done?b:n},k=e=>{m(p.value)&&(d=e,f=t3({keyframes:[p.value,g(p.value)],velocity:tX(x,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,S(e),k(e)),void 0!==d&&e>d)?f.next(e-d):(t||S(e),p)}}}let t4=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eI.Wi.update(t,!0),stop:()=>(0,eI.Pn)(t),now:()=>eI.frameData.isProcessing?eI.frameData.timestamp:performance.now()}};function t6(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let t9={decay:t5,inertia:t5,tween:tJ,keyframes:tJ,spring:t3};function t8({autoplay:e=!0,delay:t=0,driver:n=t4,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let h,p,m,g,v,y=1,b=!1,w=()=>{p=new Promise(e=>{h=e})};w();let x=t9[i]||tJ;x!==tJ&&"number"!=typeof r[0]&&(g=tY([0,100],r,{clamp:!1}),r=[0,100]);let S=x({...f,keyframes:r});"mirror"===a&&(v=x({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let k="idle",E=null,_=null,C=null;null===S.calculatedDuration&&o&&(S.calculatedDuration=t6(S));let{calculatedDuration:O}=S,T=1/0,I=1/0;null!==O&&(I=(T=O+s)*(o+1)-s);let A=0,P=e=>{if(null===_)return;y>0&&(_=Math.min(_,e)),y<0&&(_=Math.min(e-I/y,_));let n=(A=null!==E?E:Math.round(e-_)*y)-t*(y>=0?1:-1),i=y>=0?n<0:n>I;A=Math.max(n,0),"finished"===k&&null===E&&(A=I);let l=A,u=S;if(o){let e=Math.min(A,I)/T,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,o+1))%2&&("reverse"===a?(n=1-n,s&&(n-=s/T)):"mirror"===a&&(u=v)),l=$(0,1,n)*T}let c=i?{done:!1,value:r[0]}:u.next(l);g&&(c.value=g(c.value));let{done:f}=c;i||null===O||(f=y>=0?A>=I:A<=0);let h=null===E&&("finished"===k||"running"===k&&f);return d&&d(c.value),h&&j(),c},R=()=>{m&&m.stop(),m=void 0},M=()=>{k="idle",R(),h(),w(),_=C=null},j=()=>{k="finished",c&&c(),R(),h()},N=()=>{if(b)return;m||(m=n(P));let e=m.now();l&&l(),null!==E?_=e-E:_&&"finished"!==k||(_=e),"finished"===k&&w(),C=_,E=null,k="running",m.start()};e&&N();let D={then:(e,t)=>p.then(e,t),get time(){return e8(A)},set time(newTime){A=newTime=e9(newTime),null===E&&m&&0!==y?_=m.now()-newTime/y:E=newTime},get duration(){return e8(null===S.calculatedDuration?t6(S):S.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!m)return;y=newSpeed,D.time=e8(A)},get state(){return k},play:N,pause:()=>{k="paused",E=A},stop:()=>{b=!0,"idle"!==k&&(k="idle",u&&u(),M())},cancel:()=>{null!==C&&P(C),M()},complete:()=>{k="finished"},sample:e=>(_=0,P(e))};return D}let t7=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),ne=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),nt=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&tn[t]||te(t)||Array.isArray(t)&&t.every(e))}(t.ease),nn={type:"spring",stiffness:500,damping:25,restSpeed:10},nr=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ni={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ns=(e,{keyframes:t})=>t.length>2?ni:R.has(e)?e.startsWith("scale")?nr(t[1]):nn:no,na=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tU.test(t)||"0"===t)&&!t.startsWith("url(")),nl=new Set(["brightness","contrast","saturate","opacity"]);function nu(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(H)||[];if(!r)return e;let i=n.replace(r,""),o=nl.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let nc=/([a-z-]*)\(.*?\)/g,nd={...tU,getAnimatableNone:e=>{let t=e.match(nc);return t?t.map(nu).join(" "):e}},nf={...ei,color:tC,backgroundColor:tC,outlineColor:tC,fill:tC,stroke:tC,borderColor:tC,borderTopColor:tC,borderRightColor:tC,borderBottomColor:tC,borderLeftColor:tC,filter:nd,WebkitFilter:nd},nh=e=>nf[e];function np(e,t){let n=nh(e);return n!==nd&&(n=tU),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let nm=e=>/^0[^.\s]+$/.test(e);function ng(e,t){return e[t]||e.default||e}let nv={skipAnimations:!1},ny=(e,t,n,r={})=>i=>{let o=ng(r,e)||{},s=o.delay||r.delay||0,{elapsed:a=0}=r;a-=e9(s);let l=function(e,t,n,r){let i,o;let s=na(t,n);i=Array.isArray(n)?[...n]:[null,n];let a=void 0!==r.from?r.from:e.get(),l=[];for(let e=0;e<i.length;e++){var u;null===i[e]&&(i[e]=0===e?a:i[e-1]),("number"==typeof(u=i[e])?0===u:null!==u?"none"===u||"0"===u||nm(u):void 0)&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}if(s&&l.length&&o)for(let e=0;e<l.length;e++)i[l[e]]=np(t,o);return i}(t,e,n,o),u=l[0],c=l[l.length-1],d=na(e,u),f=na(e,c);(0,e6.K)(d===f,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(h={...h,...ns(e,h)}),h.duration&&(h.duration=e9(h.duration)),h.repeatDelay&&(h.repeatDelay=e9(h.repeatDelay)),!d||!f||e7.current||!1===o.type||nv.skipAnimations)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){let i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:eK.Z,pause:eK.Z,stop:eK.Z,then:e=>(e(),Promise.resolve()),cancel:eK.Z,complete:eK.Z});return t?t8({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(e7.current?{...h,delay:0}:h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let n=function(e,t,{onUpdate:n,onComplete:r,...i}){let o,s;if(!(t7()&&ne.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let a=!1,l=!1,u=()=>{s=new Promise(e=>{o=e})};u();let{keyframes:c,duration:d=300,ease:f,times:h}=i;if(nt(t,i)){let e=t8({...i,repeat:0,delay:0}),t={done:!1,value:c[0]},n=[],r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;h=void 0,c=n,d=r-10,f="linear"}let p=function(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=function e(t){if(t)return te(t)?tt(t):Array.isArray(t)?t.map(e):tn[t]}(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:d,ease:f,times:h}),m=()=>{l=!1,p.cancel()},g=()=>{l=!0,eI.Wi.update(m),o(),u()};return p.onfinish=()=>{l||(e.set(function(e,{repeat:t,repeatType:n="loop"}){let r=t&&"loop"!==n&&t%2==1?0:e.length-1;return e[r]}(c,i)),r&&r(),g())},{then:(e,t)=>s.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,eK.Z),get time(){return e8(p.currentTime||0)},set time(newTime){p.currentTime=e9(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return e8(d)},play:()=>{a||(p.play(),(0,eI.Pn)(m))},pause:()=>p.pause(),stop:()=>{if(a=!0,"idle"===p.playState)return;let{currentTime:t}=p;if(t){let n=t8({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}g()},complete:()=>{l||p.finish()},cancel:g}}(t,e,h);if(n)return n}return t8(h)};function nb(e){return!!(j(e)&&e.add)}let nw=e=>/^\-?\d*\.?\d+$/.test(e);function nx(e,t){-1===e.indexOf(t)&&e.push(t)}function nS(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class nk{constructor(){this.subscriptions=[]}add(e){return nx(this.subscriptions,e),()=>nS(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let nE=e=>!isNaN(parseFloat(e)),n_={current:void 0};class nC{constructor(e,t={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=eI.frameData;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,eI.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>eI.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=nE(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new nk);let n=this.events[e].add(t);return"change"===e?()=>{n(),eI.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return n_.current&&n_.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nO(e,t){return new nC(e,t)}let nT=e=>t=>t.test(e),nI=[U,Q,X,J,et,ee,{test:e=>"auto"===e,parse:e=>e}],nA=e=>nI.find(nT(e)),nP=[...nI,tC,tU],nR=e=>nP.find(nT(e));function nM(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t),l=e.getValue("willChange");r&&(o=r);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in a){let r=e.getValue(t),i=a[t];if(!r||void 0===i||c&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(c,t))continue;let s={delay:n,elapsed:0,...ng(o||{},t)};if(window.HandoffAppearAnimations){let n=e.getProps()[h];if(n){let e=window.HandoffAppearAnimations(n,t,r,eI.Wi);null!==e&&(s.elapsed=e,s.isHandoff=!0)}}let d=!s.isHandoff&&!function(e,t){let n=e.get();if(!Array.isArray(t))return n!==t;for(let e=0;e<t.length;e++)if(t[e]!==n)return!0}(r,i);if("spring"===s.type&&(r.getVelocity()||s.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(ny(t,r,i,e.shouldReduceMotion&&R.has(t)?{type:!1}:s));let f=r.animation;nb(l)&&(l.add(t),f.then(()=>l.remove(t))),u.push(f)}return s&&Promise.all(u).then(()=>{s&&function(e,t){let n=e4(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=eC(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nO(n))}}(e,s)}),u}function nj(e,t,n={}){let r=e4(e,t,n.custom),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(nM(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(nN).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(nj(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}function nN(e,t){return e.sortNodePosition(t)}let nD=[...v].reverse(),nL=v.length;function nz(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nF extends eq{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>nj(e,t,n)));else if("string"==typeof t)r=nj(e,t,n);else{let i="function"==typeof t?e4(e,t,n.custom):t;r=Promise.all(nM(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={animate:nz(!0),whileInView:nz(),whileHover:nz(),whileTap:nz(),whileDrag:nz(),whileFocus:nz(),exit:nz()},r=!0,i=(t,n)=>{let r=e4(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,s){let a=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<nL;t++){var h;let p=nD[t],v=n[p],y=void 0!==a[p]?a[p]:l[p],b=m(y),w=p===s?v.isActive:null;!1===w&&(f=t);let x=y===l[p]&&y!==a[p]&&b;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys={...d},!v.isActive&&null===w||!y&&!v.prevProp||g(y)||"boolean"==typeof y)continue;let S=(h=v.prevProp,("string"==typeof y?y!==h:!!Array.isArray(y)&&!e5(y,h))||p===s&&v.isActive&&!x&&b||t>f&&b),k=!1,E=Array.isArray(y)?y:[y],_=E.reduce(i,{});!1===w&&(_={});let{prevResolvedValues:C={}}=v,O={...C,..._},T=e=>{S=!0,c.has(e)&&(k=!0,c.delete(e)),v.needsAnimating[e]=!0};for(let e in O){let t=_[e],n=C[e];if(!d.hasOwnProperty(e))(eE(t)&&eE(n)?e5(t,n):t===n)?void 0!==t&&c.has(e)?T(e):v.protectedKeys[e]=!0:void 0!==t?T(e):c.add(e)}v.prevProp=y,v.prevResolvedValues=_,v.isActive&&(d={...d,..._}),r&&e.blockInitialAnimation&&(S=!1),S&&(!x||k)&&u.push(...E.map(e=>({animation:e,options:{type:p,...o}})))}if(c.size){let t={};c.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),u.push({animation:t})}let p=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let a=o(i,t);for(let e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),g(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let nB=0;class n$ extends eq{constructor(){super(...arguments),this.id=nB++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let nU=(e,t)=>Math.abs(e-t);class nV{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=nH(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(nU(e.x,t.x)**2+nU(e.y,t.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=eI.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nq(t,this.transformPagePoint),eI.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nH("pointercancel"===e.type?this.lastMoveEventInfo:nq(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!eM(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=nq(ej(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=eI.frameData;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,nH(o,this.history)),this.removeListeners=ez(eD(this.contextWindow,"pointermove",this.handlePointerMove),eD(this.contextWindow,"pointerup",this.handlePointerUp),eD(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eI.Pn)(this.updatePoint)}}function nq(e,t){return t?{point:t(e.point)}:e}function nW(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nH({point:e},t){return{point:e,delta:nW(e,nG(t)),offset:nW(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nG(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>e9(.1)));)n--;if(!r)return{x:0,y:0};let o=e8(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function nG(e){return e[e.length-1]}function nZ(e){return e.max-e.min}function nK(e,t=0,n=.01){return Math.abs(e-t)<=n}function nY(e,t,n,r=.5){e.origin=r,e.originPoint=tO(t.min,t.max,e.origin),e.scale=nZ(n)/nZ(t),(nK(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tO(n.min,n.max,e.origin)-e.originPoint,(nK(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nJ(e,t,n,r){nY(e.x,t.x,n.x,r?r.originX:void 0),nY(e.y,t.y,n.y,r?r.originY:void 0)}function nX(e,t,n){e.min=n.min+t.min,e.max=e.min+nZ(t)}function nQ(e,t,n){e.min=t.min-n.min,e.max=e.min+nZ(t)}function n0(e,t,n){nQ(e.x,t.x,n.x),nQ(e.y,t.y,n.y)}function n1(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function n2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function n3(e,t,n){return{min:n5(e,t),max:n5(e,n)}}function n5(e,t){return"number"==typeof e?e:e[t]||0}let n4=()=>({translate:0,scale:1,origin:0,originPoint:0}),n6=()=>({x:n4(),y:n4()}),n9=()=>({min:0,max:0}),n8=()=>({x:n9(),y:n9()});function n7(e){return[e("x"),e("y")]}function re({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rt(e){return void 0===e||1===e}function rn({scale:e,scaleX:t,scaleY:n}){return!rt(e)||!rt(t)||!rt(n)}function rr(e){return rn(e)||ri(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ri(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function ro(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function rs(e,t=0,n=1,r,i){e.min=ro(e.min,t,n,r,i),e.max=ro(e.max,t,n,r,i)}function ra(e,{x:t,y:n}){rs(e.x,t.translate,t.scale,t.originPoint),rs(e.y,n.translate,n.scale,n.originPoint)}function rl(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function ru(e,t){e.min=e.min+t,e.max=e.max+t}function rc(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,s=tO(e.min,e.max,o);rs(e,t[n],t[r],s,t.scale)}let rd=["x","scaleX","originX"],rf=["y","scaleY","originY"];function rh(e,t){rc(e.x,t,rd),rc(e.y,t,rf)}function rp(e,t){return re(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let rm=({current:e})=>e?e.ownerDocument.defaultView:null,rg=new WeakMap;class rv{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n8(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nV(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ej(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eU(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n7(e=>{let t=this.getAxisMotionValue(e).get()||0;if(X.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=nZ(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&eI.Wi.update(()=>i(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>n7(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rm(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&eI.Wi.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ry(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tO(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tO(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&p(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:n1(e.x,n,i),y:n1(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:n3(e,"left","right"),y:n3(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&n7(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!p(t))return!1;let r=t.current;(0,e6.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=rp(e,n),{scroll:i}=t;return i&&(ru(r.x,i.offset.x),ru(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:n2((e=i.layout.layoutBox).x,o.x),y:n2(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=re(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(n7(s=>{if(!ry(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(ny(e,n,0,t))}stopAnimation(){n7(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){n7(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){n7(t=>{let{drag:n}=this.getProps();if(!ry(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-tO(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!p(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};n7(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();r[e]=function(e,t){let n=.5,r=nZ(e),i=nZ(t);return i>r?n=tZ(t.min,t.max-r,e.min):r>i&&(n=tZ(e.min,e.max-i,t.min)),$(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),n7(t=>{if(!ry(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tO(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;rg.set(this.visualElement,this);let e=eD(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();p(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();let i=eR(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(n7(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function ry(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class rb extends eq{constructor(e){super(e),this.removeGroupControls=eK.Z,this.removeListeners=eK.Z,this.controls=new rv(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eK.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let rw=e=>(t,n)=>{e&&eI.Wi.update(()=>e(t,n))};class rx extends eq{constructor(){super(...arguments),this.removePointerDownListener=eK.Z}onPointerDown(e){this.session=new nV(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rm(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rw(e),onStart:rw(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&eI.Wi.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=eD(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var rS=n(86231);let rk={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let r_={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Q.test(e))return e;e=parseFloat(e)}let n=rE(e,t.target.x),r=rE(e,t.target.y);return`${n}% ${r}%`}};class rC extends s.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(A,rT),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rk.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||eI.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rO(e){let[t,n]=(0,rS.oO)(),r=(0,s.useContext)(_.p);return s.createElement(rC,{...e,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(C),isPresent:t,safeToRemove:n})}let rT={borderRadius:{...r_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:r_,borderTopRightRadius:r_,borderBottomLeftRadius:r_,borderBottomRightRadius:r_,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=tU.parse(e);if(r.length>5)return e;let i=tU.createTransformer(e),o="number"!=typeof r[0]?1:0,s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let l=tO(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},rI=["TopLeft","TopRight","BottomLeft","BottomRight"],rA=rI.length,rP=e=>"string"==typeof e?parseFloat(e):e,rR=e=>"number"==typeof e||Q.test(e);function rM(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rj=rD(0,.5,tf),rN=rD(.5,.95,eK.Z);function rD(e,t,n){return r=>r<e?0:r>t?1:n(tZ(e,t,r))}function rL(e,t){e.min=t.min,e.max=t.max}function rz(e,t){rL(e.x,t.x),rL(e.y,t.y)}function rF(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rB(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(X.test(t)&&(t=parseFloat(t),t=tO(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tO(o.min,o.max,r);e===o&&(a-=t),e.min=rF(e.min,t,n,a,i),e.max=rF(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let r$=["x","scaleX","originX"],rU=["y","scaleY","originY"];function rV(e,t,n,r){rB(e.x,t,r$,n?n.x:void 0,r?r.x:void 0),rB(e.y,t,rU,n?n.y:void 0,r?r.y:void 0)}function rq(e){return 0===e.translate&&1===e.scale}function rW(e){return rq(e.x)&&rq(e.y)}function rH(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function rG(e){return nZ(e.x)/nZ(e.y)}class rZ{constructor(){this.members=[]}add(e){nx(this.members,e),e.scheduleRender()}remove(e){if(nS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rK(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{rotate:e,rotateX:t,rotateY:i}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),i&&(r+=`rotateY(${i}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return(1!==s||1!==a)&&(r+=`scale(${s}, ${a})`),r||"none"}let rY=(e,t)=>e.depth-t.depth;class rJ{constructor(){this.children=[],this.isDirty=!1}add(e){nx(this.children,e),this.isDirty=!0}remove(e){nS(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rY),this.isDirty=!1,this.children.forEach(e)}}let rX=["","X","Y","Z"],rQ={visibility:"hidden"},r0=0,r1={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=null==t?void 0:t()){this.id=r0++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r1.totalNodes=r1.resolvedTargetDeltas=r1.recalculatedProjection=0,this.nodes.forEach(r4),this.nodes.forEach(ir),this.nodes.forEach(ii),this.nodes.forEach(r6),window.MotionDebug&&window.MotionDebug.record(r1)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rJ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new nk),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=performance.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&((0,eI.Pn)(r),e(i-250))};return eI.Wi.read(r,!0),()=>(0,eI.Pn)(r)}(r,0),rk.hasAnimatedSinceResize&&(rk.hasAnimatedSinceResize=!1,this.nodes.forEach(it))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||ic,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!rH(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...ng(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||it(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,eI.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(io),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r8);return}this.isUpdating||this.nodes.forEach(r7),this.isUpdating=!1,this.nodes.forEach(ie),this.nodes.forEach(r3),this.nodes.forEach(r5),this.clearAllSnapshots();let e=performance.now();eI.frameData.delta=$(0,1e3/60,e-eI.frameData.timestamp),eI.frameData.timestamp=e,eI.frameData.isProcessing=!0,eI.S6.update.process(eI.frameData),eI.S6.preRender.process(eI.frameData),eI.S6.render.process(eI.frameData),eI.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r9),this.sharedNodes.forEach(is)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eI.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eI.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=n8(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!rW(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||rr(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),ip((t=r).x),ip(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return n8();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(ru(t.x,n.offset.x),ru(t.y,n.offset.y)),t}removeElementScroll(e){let t=n8();rz(t,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){rz(t,e);let{scroll:n}=this.root;n&&(ru(t.x,-n.offset.x),ru(t.y,-n.offset.y))}ru(t.x,i.offset.x),ru(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let n=n8();rz(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rr(r.latestValues)&&rh(n,r.latestValues)}return rr(this.latestValues)&&rh(n,this.latestValues),n}removeTransform(e){let t=n8();rz(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!rr(n.latestValues))continue;rn(n.latestValues)&&n.updateSnapshot();let r=n8();rz(r,n.measurePageBox()),rV(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rr(this.latestValues)&&rV(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eI.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=eI.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n8(),this.relativeTargetOrigin=n8(),n0(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rz(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=n8(),this.targetWithTransforms=n8()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,nX(n.x,r.x,i.x),nX(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rz(this.target,this.layout.layoutBox),ra(this.target,this.targetDelta)):rz(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n8(),this.relativeTargetOrigin=n8(),n0(this.relativeTargetOrigin,this.target,e.target),rz(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r1.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rn(this.parent.latestValues)||ri(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eI.frameData.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rz(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o;let s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let s=i.instance;(!s||!s.style||"contents"!==s.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rh(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ra(e,o)),r&&rr(i.latestValues)&&rh(e,i.latestValues))}t.x=rl(t.x),t.y=rl(t.y)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=n6(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=n6(),this.projectionDeltaWithTransform=n6());let u=this.projectionTransform;nJ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rK(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),r1.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=n6();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=n8(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(iu));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(ia(s.x,e.x,r),ia(s.y,e.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,h,p;n0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,il(h.x,p.x,a.x,r),il(h.y,p.y,a.y,r),n&&(u=this.relativeTarget,f=n,u.x.min===f.x.min&&u.x.max===f.x.max&&u.y.min===f.y.min&&u.y.max===f.y.max)&&(this.isProjectionDirty=!1),n||(n=n8()),rz(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=tO(0,void 0!==n.opacity?n.opacity:1,rj(r)),e.opacityExit=tO(void 0!==t.opacity?t.opacity:1,0,rN(r))):o&&(e.opacity=tO(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rA;i++){let o=`border${rI[i]}Radius`,s=rM(t,o),a=rM(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rR(s)===rR(a)?(e[o]=Math.max(tO(rP(s),rP(a),r),0),(X.test(a)||X.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=tO(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,eI.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eI.Wi.update(()=>{rk.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let r=j(0)?0:nO(0);return r.start(ny("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&im(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n8();let t=nZ(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nZ(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rz(t,n),rh(t,i),nJ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rZ),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;let r={};for(let t=0;t<rX.length;t++){let i="rotate"+rX[t];n[i]&&(r[i]=n[i],e.setStaticValue(i,0))}for(let t in e.render(),r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rQ;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=eO(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eO(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!rr(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=rK(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));let{x:a,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,A){if(void 0===s[e])continue;let{correct:t,applyTo:n}=A[e],i="none"===r.transform?s[e]:t(s[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?eO(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(r8),this.root.sharedNodes.clear()}}}function r3(e){e.updateLayout()}function r5(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?n7(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],i=nZ(r);r.min=t[e].min,r.max=r.min+i}):im(i,n.layoutBox,t)&&n7(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=nZ(t[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=n6();nJ(s,t,n.layoutBox);let a=n6();o?nJ(a,e.applyTransform(r,!0),n.measuredBox):nJ(a,t,n.layoutBox);let l=!rW(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=n8();n0(s,n.layoutBox,i.layoutBox);let a=n8();n0(a,t,o.layoutBox),rH(s,a)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r4(e){r1.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r9(e){e.clearSnapshot()}function r8(e){e.clearMeasurements()}function r7(e){e.isLayoutDirty=!1}function ie(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function it(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ir(e){e.resolveTargetDelta()}function ii(e){e.calcProjection()}function io(e){e.resetRotation()}function is(e){e.removeLeadSnapshot()}function ia(e,t,n){e.translate=tO(t.translate,0,n),e.scale=tO(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function il(e,t,n,r){e.min=tO(t.min,n.min,r),e.max=tO(t.max,n.max,r)}function iu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ic={duration:.45,ease:[.4,0,.1,1]},id=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),ih=id("applewebkit/")&&!id("chrome/")?Math.round:eK.Z;function ip(e){e.min=ih(e.min),e.max=ih(e.max)}function im(e,t,n){return"position"===e||"preserve-aspect"===e&&!nK(rG(t),rG(n),.2)}let ig=r2({attachResizeListener:(e,t)=>eR(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iv={current:void 0},iy=r2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iv.current){let e=new ig({});e.mount(window),e.setOptions({layoutScroll:!0}),iv.current=e}return iv.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),ib=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function iw(e,t,n=1){(0,e6.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=ib.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);if(o){let e=o.trim();return nw(e)?parseFloat(e):e}return F(i)?iw(i,t,n+1):i}let ix=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iS=e=>ix.has(e),ik=e=>Object.keys(e).some(iS),iE=e=>e===U||e===Q,i_=(e,t)=>parseFloat(e.split(", ")[t]),iC=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return i_(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?i_(t[1],e):0}},iO=new Set(["x","y","z"]),iT=P.filter(e=>!iO.has(e)),iI={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:iC(4,13),y:iC(5,14)};iI.translateX=iI.x,iI.translateY=iI.y;let iA=(e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:o}=i,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=iI[e](r,i)}),t.render();let a=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);r&&r.jump(s[n]),e[n]=iI[n](a,i)}),e},iP=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(iS),o=[],s=!1,a=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=nA(c),f=t[i];if(eE(f)){let e=f.length,t=null===f[0]?1:0;d=nA(c=f[t]);for(let n=t;n<e&&null!==f[n];n++)l?(0,e6.k)(nA(f[n])===l,"All keyframes must be of the same type"):(l=nA(f[n]),(0,e6.k)(l===d||iE(d)&&iE(l),"Keyframes must be of the same dimension as the current value"))}else l=nA(f);if(d!==l){if(iE(d)&&iE(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&l===Q&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===f)?0===c?u.set(l.transform(c)):t[i]=d.transform(f):(s||(o=function(e){let t=[];return iT.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:t[i],u.jump(f))}}),!a.length)return{target:t,transitionEnd:r};{let n=a.indexOf("height")>=0?window.pageYOffset:null,i=iA(t,e,a);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),E.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},iR=(e,t,n,r)=>{var i,o;let s=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!F(t))return;let n=iw(t,r);n&&e.set(n)}),t){let e=t[i];if(!F(e))continue;let o=iw(e,r);o&&(t[i]=o,n||(n={}),void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=s.target,r=s.transitionEnd,i=t,o=r,ik(i)?iP(e,i,n,o):{target:i,transitionEnd:o}},iM={current:null},ij={current:!1},iN=new WeakMap,iD=Object.keys(k),iL=iD.length,iz=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iF=y.length;class iB{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>eI.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=b(t),this.isVariantNode=w(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(let e in u){let t=u[e];void 0!==s[e]&&j(t)&&(t.set(s[e],!1),nb(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,iN.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ij.current||function(){if(ij.current=!0,E.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iM.current=e.matches;e.addListener(t),t()}else iM.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iM.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in iN.delete(this.current),this.projection&&this.projection.unmount(),(0,eI.Pn)(this.notifyUpdate),(0,eI.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let n=R.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eI.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,i){let o,s;for(let e=0;e<iL;e++){let n=iD[e],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=k[n];a&&(o=a),r(t)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!r||s&&p(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n8()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<iz.length;t++){let n=iz[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){let{willChange:r}=t;for(let i in t){let o=t[i],s=n[i];if(j(o))e.addValue(i,o),nb(r)&&r.add(i);else if(j(s))e.addValue(i,nO(o,{owner:e})),nb(r)&&r.remove(i);else if(s!==o){if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,nO(void 0!==t?t:o,{owner:e}))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<iF;e++){let n=y[e],r=this.props[n];(m(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=nO(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=eS(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||j(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new nk),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class i$ extends iB{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){let r={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);if(void 0!==e)r[i]=e;else{let e=n.getValue(i);e&&(r[i]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],l=t[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==i?i:t[s]),null!=u&&("string"==typeof u&&(nw(u)||nm(u))?u=parseFloat(u):!nR(u)&&tU.test(l)&&(u=np(s,l)),e.addValue(s,nO(u,{owner:e})),void 0===n[s]&&(n[s]=u),null!==u&&e.setBaseTarget(s,u))}}(this,n,o);let e=iR(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class iU extends i${constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(R.has(t)){let e=nh(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(z(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rp(e,t)}build(e,t,n,r){eo(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ew(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){ev(e,t,n,r)}}class iV extends i${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(R.has(t)){let e=nh(t);return e&&e.default||0}return t=ey.has(t)?t:f(t),e.getAttribute(t)}measureInstanceViewportBox(){return n8()}scrapeMotionValuesFromProps(e,t){return ex(e,t)}build(e,t,n,r){ep(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){eb(e,t,n,r)}mount(e){this.isSVGTag=eg(e.tagName),super.mount(e)}}let iq=(e,t)=>I(e)?new iV(t,{enableHardwareAcceleration:!1}):new iU(t,{enableHardwareAcceleration:!0}),iW={animation:{Feature:nF},exit:{Feature:n$},inView:{Feature:e3},tap:{Feature:eJ},focus:{Feature:eG},hover:{Feature:eH},pan:{Feature:rx},drag:{Feature:rb,ProjectionNode:iy,MeasureLayout:rO},layout:{ProjectionNode:iy,MeasureLayout:rO}},iH=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&function(e){for(let t in e)k[t]={...k[t],...e[t]}}(e);let o=(0,s.forwardRef)(function(o,f){var g;let v;let y={...(0,s.useContext)(a),...o,layoutId:function({layoutId:e}){let t=(0,s.useContext)(_.p).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:w}=y,S=function(e){let{initial:t,animate:n}=function(e,t){if(b(e)){let{initial:t,animate:n}=e;return{initial:!1===t||m(t)?t:void 0,animate:m(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(l));return(0,s.useMemo)(()=>({initial:t,animate:n}),[x(t),x(n)])}(o),k=r(o,w);if(!w&&E.j){S.visualElement=function(e,t,n,r){let{visualElement:i}=(0,s.useContext)(l),o=(0,s.useContext)(d),f=(0,s.useContext)(u.O),p=(0,s.useContext)(a).reducedMotion,m=(0,s.useRef)();r=r||o.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:i,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:p}));let g=m.current;(0,s.useInsertionEffect)(()=>{g&&g.update(n,f)});let v=(0,s.useRef)(!!(n[h]&&!window.HandoffComplete));return(0,c.L)(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,s.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(i,k,y,t);let n=(0,s.useContext)(C),r=(0,s.useContext)(d).strict;S.visualElement&&(v=S.visualElement.loadFeatures(y,r,e,n))}return s.createElement(l.Provider,{value:S},v&&S.visualElement?s.createElement(v,{visualElement:S.visualElement,...y}):null,n(i,o,(g=S.visualElement,(0,s.useCallback)(e=>{e&&k.mount&&k.mount(e),g&&(e?g.mount(e):g.unmount()),f&&("function"==typeof f?f(e):p(f)&&(f.current=e))},[g])),k,w,S.visualElement))});return o[O]=i,o}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r){return{...I(e)?eA:eP,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let a=(I(t)?function(e,t,n,r){let i=(0,s.useMemo)(()=>{let n=em();return ep(n,t,{enableHardwareAcceleration:!1},eg(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ea(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return ea(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,s.useMemo)(()=>{let r=es();return eo(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,i,o,t),l={...function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(ec(i)||!0===n&&eu(i)||!t&&!eu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...a,ref:r},{children:u}=n,c=(0,s.useMemo)(()=>j(u)?u.get():u,[u]);return(0,s.createElement)(t,{...l,children:c})}}(t),createVisualElement:r,Component:e}})(e,t,iW,iq))},78686:function(e,t,n){"use strict";n.d(t,{K:function(){return i},k:function(){return o}});var r=n(67766);let i=r.Z,o=r.Z},57245:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});let r="undefined"!=typeof document},67766:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=e=>e},6167:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(66703);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},12619:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(66703);let i=n(57245).j?r.useLayoutEffect:r.useEffect},78352:function(e,t,n){"use strict";n.d(t,{$Q:function(){return c},kL:function(){return u}});var r,i=n(66703),o=n(70458);let s="label";function a(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}let u=(0,i.forwardRef)(function(e,t){let{height:n=150,width:r=300,redraw:u=!1,datasetIdKey:c,type:d,data:f,options:h,plugins:p=[],fallbackContent:m,updateMode:g,...v}=e,y=(0,i.useRef)(null),b=(0,i.useRef)(null),w=()=>{y.current&&(b.current=new o.kL(y.current,{type:d,data:function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r={labels:[],datasets:[]};return t=e.labels,r.labels=t,l(r,e.datasets,n),r}(f,c),options:h&&{...h},plugins:p}),a(t,b.current))},x=()=>{a(t,null),b.current&&(b.current.destroy(),b.current=null)};return(0,i.useEffect)(()=>{!u&&b.current&&h&&function(e,t){let n=e.options;n&&t&&Object.assign(n,t)}(b.current,h)},[u,h]),(0,i.useEffect)(()=>{if(!u&&b.current){var e,t;e=b.current.config.data,t=f.labels,e.labels=t}},[u,f.labels]),(0,i.useEffect)(()=>{!u&&b.current&&f.datasets&&l(b.current.config.data,f.datasets,c)},[u,f.datasets]),(0,i.useEffect)(()=>{b.current&&(u?(x(),setTimeout(w)):b.current.update(g))},[u,h,f.labels,f.datasets,g]),(0,i.useEffect)(()=>{b.current&&(x(),setTimeout(w))},[d]),(0,i.useEffect)(()=>(w(),()=>x()),[]),i.createElement("canvas",{ref:y,role:"img",height:n,width:r,...v},m)}),c=(r=o.vn,o.kL.register(r),(0,i.forwardRef)((e,t)=>i.createElement(u,{...e,ref:t,type:"bar"})))},23113:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ea},Ug:function(){return eu}});var r=n(66703),i=n(93694),o=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r},s=n(20130);function a(e,t,n){let r="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(r)&&r>1&&(!e.frozen||e.idx+r-1<=t))return r}function l(e){e.stopPropagation()}function u(e){e?.scrollIntoView({inline:"nearest",block:"nearest"})}function c(e){let t=!1,n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:()=>t};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}let d=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function f(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function h(e,t){return null!=e.renderEditCell&&("function"==typeof e.editable?e.editable(t):e.editable)!==!1}let p="rdg-cell cj343x07-0-0-beta-40";function m(e,t){return void 0!==t?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function g(e,t,n){let r=t+1,i=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:i}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:i}}function v(e,t=1){let n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function y(e,...t){return o(p,...t,e.frozen&&"rdg-cell-frozen csofj7r7-0-0-beta-40",e.isLastFrozenColumn&&"rdg-cell-frozen-last ch2wcw87-0-0-beta-40")}let{min:b,max:w,round:x,floor:S,sign:k,abs:E}=Math;function _(e){if("function"!=typeof e)throw Error("Please specify the rowKeyGetter prop to use selection")}function C(e,{minWidth:t,maxWidth:n}){return(e=w(e,t),"number"==typeof n&&n>=t)?b(e,n):e}function O(e,t){return void 0===e.parent?t:e.level-e.parent.level}function T({onChange:e,...t}){return(0,s.jsxs)("label",{className:o("rdg-checkbox-label c1bn88vv7-0-0-beta-40",t.disabled&&"rdg-checkbox-label-disabled c1lwve4p7-0-0-beta-40"),children:[(0,s.jsx)("input",{type:"checkbox",...t,className:"rdg-checkbox-input c1qt073l7-0-0-beta-40",onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)}}),(0,s.jsx)("div",{className:"rdg-checkbox cf71kmq7-0-0-beta-40"})]})}function I(e){try{return e.row[e.column.key]}catch{return null}}let A=(0,r.createContext)(void 0),P=A.Provider;function R(){return(0,r.useContext)(A)}let M=(0,r.createContext)(void 0).Provider,j=(0,r.createContext)(void 0).Provider,N="select-row",D="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function L(e,t){let n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=e.current.querySelector(n);return r?.getBoundingClientRect().width}function z(e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e});let n=(0,r.useCallback)((...e)=>{t.current(...e)},[]);return e?n:e}function F(e){let[t,n]=(0,r.useState)(!1);return t&&!e&&n(!1),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&n(!0)}:void 0}}function B({gridRowStart:e,rows:t,column:n,columnWidth:r,selectedPosition:i,latestDraggedOverRowIdx:a,isCellEditable:l,onRowsChange:u,onFill:c,onClick:d,setDragging:f,setDraggedOverRowIdx:h}){let{idx:p,rowIdx:m}=i;function g(e,r){let i=t[m],o=[...t],s=[];for(let a=e;a<r;a++)if(l({rowIdx:a,idx:p})){let e=c({columnKey:n.key,sourceRow:i,targetRow:t[a]});e!==t[a]&&(o[a]=e,s.push(a))}s.length>0&&u?.(o,{indexes:s,column:n})}let y=n.colSpan?.({type:"ROW",row:t[m]})??1,b=v(n,y);return(0,s.jsx)("div",{style:{...b,gridRowStart:e,insetInlineStart:b.insetInlineStart&&"number"==typeof r?`calc(${b.insetInlineStart} + ${r}px - var(--rdg-drag-handle-size))`:void 0},className:o("rdg-cell-drag-handle c1w9bbhr7-0-0-beta-40",n.frozen&&"c1creorc7-0-0-beta-40"),onClick:d,onMouseDown:function(e){function t(e){1!==e.buttons&&n()}function n(){window.removeEventListener("mouseover",t),window.removeEventListener("mouseup",n),f(!1),function(){let e=a.current;void 0!==e&&(g(m<e?m+1:e,m<e?e+1:m),h(void 0))}()}e.preventDefault(),1===e.buttons&&(f(!0),window.addEventListener("mouseover",t),window.addEventListener("mouseup",n))},onDoubleClick:function(e){e.stopPropagation(),g(m+1,t.length)}})}function $({column:e,colSpan:t,row:n,rowIdx:i,onRowChange:o,closeEditor:a,onKeyDown:l,navigate:u}){let d=(0,r.useRef)(),f=e.editorOptions?.commitOnOutsideClick!==!1,h=z(()=>{m(!0,!1)});function p(){cancelAnimationFrame(d.current)}function m(e=!1,t=!0){e?o(n,!0,t):a(t)}function g(e,t=!1){o(e,t,t)}(0,r.useEffect)(()=>{if(f)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),p()};function e(){d.current=requestAnimationFrame(h)}},[f,h]);let{cellClass:b}=e,w=y(e,"rdg-editor-container","function"==typeof b?b(n):b,!e.editorOptions?.displayCellContent&&"cis5rrm7-0-0-beta-40");return(0,s.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:w,style:v(e,t),onKeyDown:function(t){if(l){let r=c(t);if(l({mode:"EDIT",row:n,column:e,rowIdx:i,navigate(){u(t)},onClose:m},r),r.isGridDefaultPrevented())return}"Escape"===t.key?m():"Enter"===t.key?m(!0):function({key:e,target:t}){return!!("Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement))&&t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length===1}(t)&&u(t)},onMouseDownCapture:p,children:null!=e.renderEditCell&&(0,s.jsxs)(s.Fragment,{children:[e.renderEditCell({column:e,row:n,onRowChange:g,onClose:m}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,isCellEditable:!0,tabIndex:-1,onRowChange:g})]})})}function U({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){let{tabIndex:i,onFocus:a}=F(n),{colSpan:l}=e,u=O(e,t),c=e.idx+1;return(0,s.jsx)("div",{role:"columnheader","aria-colindex":c,"aria-colspan":l,"aria-rowspan":u,"aria-selected":n,tabIndex:i,className:o(p,e.headerCellClass),style:{...g(e,t,u),gridColumnStart:c,gridColumnEnd:c+l},onFocus:a,onClick:function(){r({idx:e.idx,rowIdx:t})},children:e.name})}function V({column:e,sortDirection:t,priority:n}){return e.sortable?(0,s.jsx)(q,{sortDirection:t,priority:n,children:e.name}):e.name}function q({sortDirection:e,priority:t,children:n}){let r=R().renderSortStatus;return(0,s.jsxs)("span",{className:"h44jtk67-0-0-beta-40",children:[(0,s.jsx)("span",{className:"rdg-header-sort-name hcgkhxz7-0-0-beta-40",children:n}),(0,s.jsx)("span",{children:r({sortDirection:e,priority:t})})]})}function W({column:e,colSpan:t,rowIdx:n,isCellSelected:i,onColumnResize:o,onColumnsReorder:a,sortColumns:u,onSortColumnsChange:c,selectCell:d,shouldFocusGrid:f,direction:h,dragDropKey:p}){let m;let[b,w]=(0,r.useState)(!1),[x,S]=(0,r.useState)(!1),k="rtl"===h,E=O(e,n),{tabIndex:_,childTabIndex:T,onFocus:I}=F(i),A=u?.findIndex(t=>t.columnKey===e.key),P=void 0!==A&&A>-1?u[A]:void 0,R=P?.direction,M=void 0!==P&&u.length>1?A+1:void 0,j=R&&!M?"ASC"===R?"ascending":"descending":void 0,{sortable:N,resizable:D,draggable:L}=e,z=y(e,e.headerCellClass,N&&"c6l2wv17-0-0-beta-40",D&&"rdg-cell-resizable c1kqdw7y7-0-0-beta-40",L&&"rdg-cell-draggable",b&&"rdg-cell-dragging c1bezg5o7-0-0-beta-40",x&&"rdg-cell-drag-over c1vc96037-0-0-beta-40"),B=e.renderHeaderCell??V;function $(t){if(null==c)return;let{sortDescendingFirst:n}=e;if(void 0===P){let r={columnKey:e.key,direction:n?"DESC":"ASC"};c(u&&t?[...u,r]:[r])}else{let r;if((!0===n&&"DESC"===R||!0!==n&&"ASC"===R)&&(r={columnKey:e.key,direction:"ASC"===R?"DESC":"ASC"}),t){let e=[...u];r?e[A]=r:e.splice(A,1),c(e)}else c(r?[r]:[])}}return L&&(m={draggable:!0,onDragStart:function(t){t.dataTransfer.setData(p,e.key),t.dataTransfer.dropEffect="move",w(!0)},onDragEnd:function(){w(!1)},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:function(e){H(e)&&S(!0)},onDragLeave:function(e){H(e)&&S(!1)},onDrop:function(t){if(S(!1),t.dataTransfer.types.includes(p)){let n=t.dataTransfer.getData(p);n!==e.key&&(t.preventDefault(),a?.(n,e.key))}}}),(0,s.jsxs)("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":E,"aria-selected":i,"aria-sort":j,tabIndex:f?0:_,className:z,style:{...g(e,n,E),...v(e,t)},onFocus:function(e){I?.(e),f&&d({idx:0,rowIdx:n})},onClick:function(t){d({idx:e.idx,rowIdx:n}),N&&$(t.ctrlKey||t.metaKey)},onKeyDown:N?function(e){(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),$(e.ctrlKey||e.metaKey))}:void 0,...m,children:[B({column:e,sortDirection:R,priority:M,tabIndex:T}),D&&(0,s.jsx)("div",{className:"r1y6ywlx7-0-0-beta-40",onClick:l,onDoubleClick:function(){o(e,"max-content")},onPointerDown:function(t){if("mouse"===t.pointerType&&1!==t.buttons)return;let{currentTarget:n,pointerId:r}=t,i=n.parentElement,{right:s,left:a}=i.getBoundingClientRect(),l=k?t.clientX-a:s-t.clientX;function u(t){t.preventDefault();let{right:n,left:r}=i.getBoundingClientRect(),s=k?n+l-t.clientX:t.clientX+l-r;s>0&&o(e,C(s,e))}n.setPointerCapture(r),n.addEventListener("pointermove",u),n.addEventListener("lostpointercapture",function e(){n.removeEventListener("pointermove",u),n.removeEventListener("lostpointercapture",e)})}})]})}function H(e){let t=e.relatedTarget;return!e.currentTarget.contains(t)}let G="rdg-row r1upfr807-0-0-beta-40",Z="rdg-row-selected",K="rdg-header-row h10tskcx7-0-0-beta-40",Y=(0,r.memo)(function({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:i,sortColumns:l,onSortColumnsChange:u,lastFrozenColumnIndex:c,selectedCellIdx:d,selectCell:f,shouldFocusGrid:h,direction:p}){let m=(0,r.useId)(),g=[];for(let r=0;r<t.length;r++){let o=t[r],v=a(o,c,{type:"HEADER"});void 0!==v&&(r+=v-1),g.push((0,s.jsx)(W,{column:o,colSpan:v,rowIdx:e,isCellSelected:d===o.idx,onColumnResize:n,onColumnsReorder:i,onSortColumnsChange:u,sortColumns:l,selectCell:f,shouldFocusGrid:h&&0===r,direction:p,dragDropKey:m},o.key))}return(0,s.jsx)("div",{role:"row","aria-rowindex":e,className:o(K,-1===d&&Z),children:g})}),J=(0,r.memo)(function({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:i}){let o=[],a=new Set;for(let l of n){let{parent:n}=l;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!a.has(n)){a.add(n);let{idx:t}=n;o.push((0,s.jsx)(U,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:i},t))}}}return(0,s.jsx)("div",{role:"row","aria-rowindex":e,className:K,children:o})}),X=(0,r.memo)(function({column:e,colSpan:t,isCellSelected:n,isCopied:r,isDraggedOver:i,row:o,rowIdx:a,onClick:l,onDoubleClick:u,onContextMenu:d,onRowChange:f,selectCell:p,...m}){let{tabIndex:g,childTabIndex:b,onFocus:w}=F(n),{cellClass:x}=e,S=y(e,"function"==typeof x?x(o):x,r&&"rdg-cell-copied c6ra8a37-0-0-beta-40",i&&"rdg-cell-dragged-over cq910m07-0-0-beta-40"),k=h(e,o);function E(t){p({rowIdx:a,idx:e.idx},t)}return(0,s.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!k||void 0,tabIndex:g,className:S,style:v(e,t),onClick:function(t){if(l){let n=c(t);if(l({row:o,column:e,selectCell:E},n),n.isGridDefaultPrevented())return}E()},onDoubleClick:function(t){if(u){let n=c(t);if(u({row:o,column:e,selectCell:E},n),n.isGridDefaultPrevented())return}E(!0)},onContextMenu:function(t){if(d){let n=c(t);if(d({row:o,column:e,selectCell:E},n),n.isGridDefaultPrevented())return}E()},onFocus:w,...m,children:e.renderCell({column:e,row:o,isCellEditable:k,tabIndex:b,onRowChange:function(t){f(e,t)}})})}),Q=(0,r.memo)((0,r.forwardRef)(function({className:e,rowIdx:t,gridRowStart:n,height:r,selectedCellIdx:i,isRowSelected:l,copiedCellIdx:u,draggedOverCellIdx:c,lastFrozenColumnIndex:d,row:f,viewportColumns:h,selectedCellEditor:p,onCellClick:g,onCellDoubleClick:v,onCellContextMenu:y,rowClass:b,setDraggedOverRowIdx:w,onMouseEnter:x,onRowChange:S,selectCell:k,...E},_){let C=z((e,n)=>{S(e,t,n)});e=o(G,`rdg-row-${t%2==0?"even":"odd"}`,b?.(f,t),e,-1===i&&Z);let O=[];for(let e=0;e<h.length;e++){let n=h[e],{idx:r}=n,o=a(n,d,{type:"ROW",row:f});void 0!==o&&(e+=o-1);let l=i===r;l&&p?O.push(p):O.push((0,s.jsx)(X,{column:n,colSpan:o,row:f,rowIdx:t,isCopied:u===r,isDraggedOver:c===r,isCellSelected:l,onClick:g,onDoubleClick:v,onContextMenu:y,onRowChange:C,selectCell:k},n.key))}return(0,s.jsx)(M,{value:l,children:(0,s.jsx)("div",{role:"row",ref:_,className:e,onMouseEnter:function(e){w?.(t),x?.(e)},style:m(n,r),...E,children:O})})}));function ee(e,t){return(0,s.jsx)(Q,{...t},e)}function et({scrollToPosition:{idx:e,rowIdx:t},gridElement:n,setScrollToCellPosition:i}){let o=(0,r.useRef)(null);return D(()=>{u(o.current)}),D(()=>{let e=new IntersectionObserver(function(){i(null)},{root:n,threshold:1});return e.observe(o.current),()=>{e.disconnect()}},[n,i]),(0,s.jsx)("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function en({sortDirection:e,priority:t}){return(0,s.jsxs)(s.Fragment,{children:[function({sortDirection:e}){return void 0===e?null:(0,s.jsx)("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a3ejtar7-0-0-beta-40","aria-hidden":!0,children:(0,s.jsx)("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}({sortDirection:e}),function({priority:e}){return e}({priority:t})]})}let er=(0,r.memo)(function({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:i,selectCell:o}){let{tabIndex:a,childTabIndex:l,onFocus:u}=F(i),{summaryCellClass:c}=e,d=y(e,"s8wc6fl7-0-0-beta-40","function"==typeof c?c(n):c);return(0,s.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":i,tabIndex:a,className:d,style:v(e,t),onClick:function(){o({rowIdx:r,idx:e.idx})},onFocus:u,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:l})})}),ei=(0,r.memo)(function({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:i,bottom:l,lastFrozenColumnIndex:u,selectedCellIdx:c,isTop:d,showBorder:f,selectCell:h,"aria-rowindex":p}){let g=[];for(let t=0;t<r.length;t++){let i=r[t],o=a(i,u,{type:"SUMMARY",row:n});void 0!==o&&(t+=o-1);let l=c===i.idx;g.push((0,s.jsx)(er,{column:i,colSpan:o,row:n,rowIdx:e,isCellSelected:l,selectCell:h},i.key))}return(0,s.jsx)("div",{role:"row","aria-rowindex":p,className:o(G,`rdg-row-${e%2==0?"even":"odd"}`,"rdg-summary-row skuhp557-0-0-beta-40",d?["rdg-top-summary-row tf8l5ub7-0-0-beta-40",f&&"tb9ughf7-0-0-beta-40"]:["rdg-bottom-summary-row",f&&"b1yssfnt7-0-0-beta-40"],-1===c&&Z),style:{...m(t),"--rdg-summary-row-top":void 0!==i?`${i}px`:void 0,"--rdg-summary-row-bottom":void 0!==l?`${l}px`:void 0},children:g})});function eo(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function es(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}let ea=(0,r.forwardRef)(function(e,t){let{columns:n,rows:l,topSummaryRows:p,bottomSummaryRows:m,rowKeyGetter:g,onRowsChange:v,rowHeight:y,headerRowHeight:x,summaryRowHeight:O,selectedRows:A,onSelectedRowsChange:F,sortColumns:U,onSortColumnsChange:V,defaultColumnOptions:q,onCellClick:W,onCellDoubleClick:H,onCellContextMenu:G,onCellKeyDown:Z,onSelectedCellChange:K,onScroll:X,onColumnResize:Q,onColumnsReorder:er,onFill:ea,onCopy:el,onPaste:eu,enableVirtualization:ec,renderers:ed,className:ef,style:eh,rowClass:ep,direction:em,role:eg,"aria-label":ev,"aria-labelledby":ey,"aria-describedby":eb,"aria-rowcount":ew,"data-testid":ex}=e,eS=R(),ek=eg??"grid",eE=y??35,e_=x??("number"==typeof eE?eE:35),eC=O??("number"==typeof eE?eE:35),eO=ed?.renderRow??eS?.renderRow??ee,eT=ed?.renderSortStatus??eS?.renderSortStatus??en,eI=ed?.renderCheckbox??eS?.renderCheckbox??T,eA=ed?.noRowsFallback??eS?.noRowsFallback,eP=ec??!0,eR=em??"ltr",[eM,ej]=(0,r.useState)(0),[eN,eD]=(0,r.useState)(0),[eL,ez]=(0,r.useState)(()=>new Map),[eF,eB]=(0,r.useState)(()=>new Map),[e$,eU]=(0,r.useState)(null),[eV,eq]=(0,r.useState)(!1),[eW,eH]=(0,r.useState)(void 0),[eG,eZ]=(0,r.useState)(null),eK=(0,r.useCallback)(e=>eL.get(e.key)??eF.get(e.key)??e.width,[eF,eL]),[eY,eJ,eX]=function(){let e=(0,r.useRef)(null),[t,n]=(0,r.useState)(1),[o,s]=(0,r.useState)(1);return D(()=>{let{ResizeObserver:t}=window;if(null==t)return;let{clientWidth:r,clientHeight:o,offsetWidth:a,offsetHeight:l}=e.current,{width:u,height:c}=e.current.getBoundingClientRect();n(u-a+r),s(c-l+o);let d=new t(e=>{let t=e[0].contentBoxSize[0];(0,i.flushSync)(()=>{n(t.inlineSize),s(t.blockSize)})});return d.observe(e.current),()=>{d.disconnect()}},[]),[e,t,o]}(),{columns:eQ,colSpanColumns:e0,lastFrozenColumnIndex:e1,headerRowsCount:e2,colOverscanStartIdx:e3,colOverscanEndIdx:e5,templateColumns:e4,layoutCssVars:e6,totalFrozenColumnWidth:e9}=function({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:i,scrollLeft:o,enableVirtualization:s}){let a=t?.width??"auto",l=t?.minWidth??50,u=t?.maxWidth??void 0,c=t?.renderCell??I,d=t?.sortable??!1,f=t?.resizable??!1,h=t?.draggable??!1,{columns:p,colSpanColumns:m,lastFrozenColumnIndex:g,headerRowsCount:v}=(0,r.useMemo)(()=>{let t=-1,n=1,r=[];!function e(i,o,s){for(let p of i){if("children"in p){let t={name:p.name,parent:s,idx:-1,colSpan:0,level:0,headerCellClass:p.headerCellClass};e(p.children,o+1,t);continue}let i=p.frozen??!1,m={...p,parent:s,idx:0,level:0,frozen:i,isLastFrozenColumn:!1,width:p.width??a,minWidth:p.minWidth??l,maxWidth:p.maxWidth??u,sortable:p.sortable??d,resizable:p.resizable??f,draggable:p.draggable??h,renderCell:p.renderCell??c};r.push(m),i&&t++,o>n&&(n=o)}}(e,1),r.sort(({key:e,frozen:t},{key:n,frozen:r})=>e===N?-1:n===N?1:t?r?0:-1:r?1:0);let i=[];return r.forEach((e,t)=>{e.idx=t,function e(t,n,r){if(r<t.level&&(t.level=r),void 0!==t.parent){let{parent:i}=t;-1===i.idx&&(i.idx=n),i.colSpan+=1,e(i,n,r-1)}}(e,t,0),null!=e.colSpan&&i.push(e)}),-1!==t&&(r[t].isLastFrozenColumn=!0),{columns:r,colSpanColumns:i,lastFrozenColumnIndex:t,headerRowsCount:n}},[e,a,l,u,c,f,d,h]),{templateColumns:y,layoutCssVars:x,totalFrozenColumnWidth:S,columnMetrics:k}=(0,r.useMemo)(()=>{let e=new Map,t=0,r=0,i=[];for(let r of p){let o=n(r);o="number"==typeof o?C(o,r):r.minWidth,i.push(`${o}px`),e.set(r,{width:o,left:t}),t+=o}if(-1!==g){let t=e.get(p[g]);r=t.left+t.width}let o={};for(let t=0;t<=g;t++){let n=p[t];o[`--rdg-frozen-left-${n.idx}`]=`${e.get(n).left}px`}return{templateColumns:i,layoutCssVars:o,totalFrozenColumnWidth:r,columnMetrics:e}},[n,p,g]),[E,_]=(0,r.useMemo)(()=>{if(!s)return[0,p.length-1];let e=o+S,t=o+i,n=p.length-1,r=b(g+1,n);if(e>=t)return[r,r];let a=r;for(;a<n;){let{left:t,width:n}=k.get(p[a]);if(t+n>e)break;a++}let l=a;for(;l<n;){let{left:e,width:n}=k.get(p[l]);if(e+n>=t)break;l++}return[w(r,a-1),b(n,l+1)]},[k,p,g,o,S,i,s]);return{columns:p,colSpanColumns:m,colOverscanStartIdx:E,colOverscanEndIdx:_,templateColumns:y,layoutCssVars:x,headerRowsCount:v,lastFrozenColumnIndex:g,totalFrozenColumnWidth:S}}({rawColumns:n,defaultColumnOptions:q,getColumnWidth:eK,scrollLeft:eN,viewportWidth:eJ,enableVirtualization:eP}),e8=p?.length??0,e7=m?.length??0,te=e8+e7,tt=e2+e8,tn=e2-1,tr=-tt,ti=tr+tn,to=l.length+e7-1,[ts,ta]=(0,r.useState)(()=>({idx:-1,rowIdx:tr-1,mode:"SELECT"})),tl=(0,r.useRef)(ts),tu=(0,r.useRef)(eW),tc=(0,r.useRef)(-1),td=(0,r.useRef)(null),tf=(0,r.useRef)(!1),th="treegrid"===ek,tp=e2*e_,tm=eX-tp-te*eC,tg=null!=A&&null!=F,tv="rtl"===eR,ty=tv?"ArrowRight":"ArrowLeft",tb=tv?"ArrowLeft":"ArrowRight",tw=ew??e2+l.length+te,tx=(0,r.useMemo)(()=>({renderCheckbox:eI,renderSortStatus:eT}),[eI,eT]),tS=(0,r.useMemo)(()=>{let{length:e}=l;return 0!==e&&null!=A&&null!=g&&A.size>=e&&l.every(e=>A.has(g(e)))},[l,A,g]),{rowOverscanStartIdx:tk,rowOverscanEndIdx:tE,totalRowHeight:t_,gridTemplateRows:tC,getRowTop:tO,getRowHeight:tT,findRowIdx:tI}=function({rows:e,rowHeight:t,clientHeight:n,scrollTop:i,enableVirtualization:o}){let{totalRowHeight:s,gridTemplateRows:a,getRowTop:l,getRowHeight:u,findRowIdx:c}=(0,r.useMemo)(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>S(e/t)};let n=0,r=" ",i=e.map(e=>{let i=t(e),o={top:n,height:i};return r+=`${i}px `,n+=i,o}),o=t=>w(0,b(e.length-1,t));return{totalRowHeight:n,gridTemplateRows:r,getRowTop:e=>i[o(e)].top,getRowHeight:e=>i[o(e)].height,findRowIdx(e){let t=0,n=i.length-1;for(;t<=n;){let r=t+S((n-t)/2),o=i[r].top;if(o===e)return r;if(o<e?t=r+1:o>e&&(n=r-1),t>n)return n}return 0}}},[t,e]),d=0,f=e.length-1;if(o){let t=c(i),r=c(i+n);d=w(0,t-4),f=b(e.length-1,r+4)}return{rowOverscanStartIdx:d,rowOverscanEndIdx:f,totalRowHeight:s,gridTemplateRows:a,getRowTop:l,getRowHeight:u,findRowIdx:c}}({rows:l,rowHeight:eE,clientHeight:tm,scrollTop:eM,enableVirtualization:eP}),tA=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:i,bottomSummaryRows:o,colOverscanStartIdx:s,colOverscanEndIdx:l,lastFrozenColumnIndex:u,rowOverscanStartIdx:c,rowOverscanEndIdx:d}){let f=(0,r.useMemo)(()=>{if(0===s)return 0;let e=s,r=(t,n)=>void 0!==n&&t+n>s&&(e=t,!0);for(let s of t){let t=s.idx;if(t>=e||r(t,a(s,u,{type:"HEADER"})))break;for(let e=c;e<=d&&!r(t,a(s,u,{type:"ROW",row:n[e]}));e++);if(null!=i){for(let e of i)if(r(t,a(s,u,{type:"SUMMARY",row:e})))break}if(null!=o){for(let e of o)if(r(t,a(s,u,{type:"SUMMARY",row:e})))break}}return e},[c,d,n,i,o,s,u,t]);return(0,r.useMemo)(()=>{let t=[];for(let n=0;n<=l;n++){let r=e[n];(!(n<f)||r.frozen)&&t.push(r)}return t},[f,l,e])}({columns:eQ,colSpanColumns:e0,colOverscanStartIdx:e3,colOverscanEndIdx:e5,lastFrozenColumnIndex:e1,rowOverscanStartIdx:tk,rowOverscanEndIdx:tE,rows:l,topSummaryRows:p,bottomSummaryRows:m}),{gridTemplateColumns:tP,handleColumnResize:tR}=function(e,t,n,o,s,a,l,u,c,d){let f=(0,r.useRef)(s),h=e.length===t.length,p=h&&s!==f.current,m=[...n],g=[];for(let{key:e,idx:n,width:r}of t)"string"!=typeof r||!p&&l.has(e)||a.has(e)||(m[n]=r,g.push(e));let v=m.join(" ");function y(e){0!==e.length&&c(t=>{let n=new Map(t),r=!1;for(let i of e){let e=L(o,i);r||=e!==t.get(i),void 0===e?n.delete(i):n.set(i,e)}return r?n:t})}return D(()=>{f.current=s,y(g)}),{gridTemplateColumns:v,handleColumnResize:function(e,r){let{key:s}=e,l=[...n],c=[];for(let{key:e,idx:n,width:i}of t)if(s===e){let e="number"==typeof r?`${r}px`:r;l[n]=e}else h&&"string"==typeof i&&!a.has(e)&&(l[n]=i,c.push(e));o.current.style.gridTemplateColumns=l.join(" ");let f="number"==typeof r?r:L(o,s);(0,i.flushSync)(()=>{u(e=>{let t=new Map(e);return t.set(s,f),t}),y(c)}),d?.(e.idx,f)}}}(eQ,tA,e4,eY,eJ,eL,eF,ez,eB,Q),tM=th?-1:0,tj=eQ.length-1,tN=tX(ts),tD=tQ(ts),tL=z(tR),tz=z(er),tF=z(V),tB=z(W),t$=z(H),tU=z(G),tV=z(tZ),tq=z(tK),tW=z(t1),tH=z(({idx:e,rowIdx:t})=>{t1({rowIdx:tr+t-1,idx:e})});D(()=>{if(!tN||es(ts,tl.current)){tl.current=ts;return}tl.current=ts,-1===ts.idx&&(td.current.focus({preventScroll:!0}),u(td.current))}),D(()=>{tf.current&&(tf.current=!1,t3())}),(0,r.useImperativeHandle)(t,()=>({element:eY.current,scrollToCell({idx:e,rowIdx:t}){let n=void 0!==e&&e>e1&&e<eQ.length?e:void 0,r=void 0!==t&&tJ(t)?t:void 0;(void 0!==n||void 0!==r)&&eZ({idx:n,rowIdx:r})},selectCell:t1}));let tG=(0,r.useCallback)(e=>{eH(e),tu.current=e},[]);function tZ(e){if(!F)return;if(_(g),"HEADER"===e.type){let t=new Set(A);for(let n of l){let r=g(n);e.checked?t.add(r):t.delete(r)}F(t);return}let{row:t,checked:n,isShiftClick:r}=e,i=new Set(A),o=g(t);if(n){i.add(o);let e=tc.current,n=l.indexOf(t);if(tc.current=n,r&&-1!==e&&e!==n){let t=k(n-e);for(let r=e+t;r!==n;r+=t){let e=l[r];i.add(g(e))}}}else i.delete(o),tc.current=-1;F(i)}function tK(e,t,n){if("function"!=typeof v||n===l[t])return;let r=[...l];r[t]=n,v(r,{indexes:[t],column:e})}function tY(){"EDIT"===ts.mode&&tK(eQ[ts.idx],ts.rowIdx,ts.row)}function tJ(e){return e>=0&&e<l.length}function tX({idx:e,rowIdx:t}){var n;return t>=tr&&t<=to&&(n=e)>=tM&&n<=tj}function tQ({idx:e,rowIdx:t}){var n;return tJ(t)&&(n=e)>=tM&&n<=tj}function t0(e){return tQ(e)&&function({selectedPosition:e,columns:t,rows:n}){return h(t[e.idx],n[e.rowIdx])}({columns:eQ,rows:l,selectedPosition:e})}function t1(e,t){if(!tX(e))return;tY();let n=l[e.rowIdx],r=es(ts,e);t&&t0(e)?ta({...e,mode:"EDIT",row:n,originalRow:n}):r?u(eo(eY.current)):(tf.current=!0,ta({...e,mode:"SELECT"})),K&&!r&&K({rowIdx:e.rowIdx,row:n,column:eQ[e.idx]})}function t2(e){let{key:t,shiftKey:n}=e,r="NONE";if("Tab"===t){if(function({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:i},shiftKey:o}){return o?0===i&&r===t:i===e&&r===n}({shiftKey:n,maxColIdx:tj,minRowIdx:tr,maxRowIdx:to,selectedPosition:ts})){tY();return}r="CHANGE_ROW"}e.preventDefault();let i=function(e,t,n){let{idx:r,rowIdx:i}=ts,o=tN&&-1===r;switch(e){case"ArrowUp":return{idx:r,rowIdx:i-1};case"ArrowDown":return{idx:r,rowIdx:i+1};case ty:return{idx:r-1,rowIdx:i};case tb:return{idx:r+1,rowIdx:i};case"Tab":return{idx:r+(n?-1:1),rowIdx:i};case"Home":if(o)return{idx:r,rowIdx:tr};return{idx:0,rowIdx:t?tr:i};case"End":if(o)return{idx:r,rowIdx:to};return{idx:tj,rowIdx:t?to:i};case"PageUp":{if(ts.rowIdx===tr)return ts;let e=tO(i)+tT(i)-tm;return{idx:r,rowIdx:e>0?tI(e):0}}case"PageDown":{if(ts.rowIdx>=l.length)return ts;let e=tO(i)+tm;return{idx:r,rowIdx:e<t_?tI(e):l.length-1}}default:return ts}}(t,f(e),n);es(ts,i)||t1(function({moveUp:e,moveNext:t,cellNavigationMode:n,columns:r,colSpanColumns:i,rows:o,topSummaryRows:s,bottomSummaryRows:l,minRowIdx:u,mainHeaderRowIdx:c,maxRowIdx:d,currentPosition:{idx:f,rowIdx:h},nextPosition:p,lastFrozenColumnIndex:m,isCellWithinBounds:g}){let{idx:v,rowIdx:y}=p,b=r.length,w=e=>{for(let t of i){let n=t.idx;if(n>v)break;let r=function({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:s}){let l=t?.length??0;return r===i?a(s,o,{type:"HEADER"}):t&&r>i&&r<=l+i?a(s,o,{type:"SUMMARY",row:t[r+l]}):r>=0&&r<e.length?a(s,o,{type:"ROW",row:e[r]}):n?a(s,o,{type:"SUMMARY",row:n[r-e.length]}):void 0}({rows:o,topSummaryRows:s,bottomSummaryRows:l,rowIdx:y,mainHeaderRowIdx:c,lastFrozenColumnIndex:m,column:t});if(r&&v>n&&v<r+n){v=n+(e?r:0);break}}},x=e=>e.level+c;if(g(p)&&(w(t),y<c&&(()=>{if(t){let e=r[v].parent;for(;void 0!==e;){let t=x(e);if(y===t){v=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=r[v].parent,t=!1;for(;void 0!==e;){let n=x(e);if(y>=n){v=e.idx,y=n,t=!0;break}e=e.parent}t||(v=f,y=h)}})()),"CHANGE_ROW"===n){let e=v===b,t=-1===v;e?y!==d&&(v=0,y+=1):t&&(y!==u&&(y-=1,v=b-1),w(!1))}if(y<c){let e=r[v].parent,t=y;for(y=c;void 0!==e;){let n=x(e);n>=t&&(y=n,v=e.idx),e=e.parent}}return{idx:v,rowIdx:y}}({moveUp:"ArrowUp"===t,moveNext:t===tb||"Tab"===t&&!n,columns:eQ,colSpanColumns:e0,rows:l,topSummaryRows:p,bottomSummaryRows:m,minRowIdx:tr,mainHeaderRowIdx:ti,maxRowIdx:to,lastFrozenColumnIndex:e1,cellNavigationMode:r,currentPosition:ts,nextPosition:i,isCellWithinBounds:tX}))}function t3(){let e=eo(eY.current);null!==e&&(u(e),(e.querySelector('[tabindex="0"]')??e).focus({preventScroll:!0}))}function t5(e){let t=-1===ts.idx?void 0:eQ[ts.idx];return void 0===t||ts.rowIdx!==e||tA.includes(t)?tA:ts.idx>e5?[...tA,t]:[...tA.slice(0,e1+1),t,...tA.slice(e1+1)]}(ts.idx>tj||ts.rowIdx>to)&&(ta({idx:-1,rowIdx:tr-1,mode:"SELECT"}),tG(void 0));let t4=`repeat(${e2}, ${e_}px)`;e8>0&&(t4+=` repeat(${e8}, ${eC}px)`),l.length>0&&(t4+=tC),e7>0&&(t4+=` repeat(${e7}, ${eC}px)`);let t6=-1===ts.idx&&ts.rowIdx!==tr-1;return(0,s.jsxs)("div",{role:ek,"aria-label":ev,"aria-labelledby":ey,"aria-describedby":eb,"aria-multiselectable":!!tg||void 0,"aria-colcount":eQ.length,"aria-rowcount":tw,className:o("rdg rnvodz57-0-0-beta-40",ef,eV&&"rdg-viewport-dragging vlqv91k7-0-0-beta-40"),style:{...eh,scrollPaddingInlineStart:ts.idx>e1||eG?.idx!==void 0?`${e9}px`:void 0,scrollPaddingBlock:tJ(ts.rowIdx)||eG?.rowIdx!==void 0?`${tp+e8*eC}px ${e7*eC}px`:void 0,gridTemplateColumns:tP,gridTemplateRows:t4,"--rdg-header-row-height":`${e_}px`,"--rdg-summary-row-height":`${eC}px`,"--rdg-sign":tv?-1:1,...e6},dir:eR,ref:eY,onScroll:function(e){let{scrollTop:t,scrollLeft:n}=e.currentTarget;(0,i.flushSync)(()=>{ej(t),eD(E(n))}),X?.(e)},onKeyDown:function(e){let{idx:t,rowIdx:n,mode:r}=ts;if("EDIT"===r)return;if(Z&&tJ(n)){let r=l[n],i=c(e);if(Z({mode:"SELECT",row:r,column:eQ[t],rowIdx:n,selectCell:t1},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;let i=null!==e.target.closest(".rdg-cell"),o=th&&e.target===td.current;if(!i&&!o)return;let{keyCode:s}=e;if(tD&&(null!=eu||null!=el)&&f(e)){if(67===s){!function(){let{idx:e,rowIdx:t}=ts,n=l[t],r=eQ[e].key;eU({row:n,columnKey:r}),el?.({sourceRow:n,sourceColumnKey:r})}();return}if(86===s){!function(){if(!eu||!v||null===e$||!t0(ts))return;let{idx:e,rowIdx:t}=ts,n=eQ[e],r=l[t],i=eu({sourceRow:e$.row,sourceColumnKey:e$.columnKey,targetRow:r,targetColumnKey:n.key});tK(n,t,i)}();return}}switch(e.key){case"Escape":eU(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":t2(e);break;default:!function(e){if(!tD)return;let t=l[ts.rowIdx],{key:n,shiftKey:r}=e;if(tg&&r&&" "===n){_(g);let n=g(t);tZ({type:"ROW",row:t,checked:!A.has(n),isShiftClick:!1}),e.preventDefault();return}t0(ts)&&!d.has(e.key)&&ta(({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t}))}(e)}},"data-testid":ex,children:[(0,s.jsx)(P,{value:tx,children:(0,s.jsxs)(j,{value:tV,children:[(0,s.jsxs)(M,{value:tS,children:[Array.from({length:tn},(e,t)=>(0,s.jsx)(J,{rowIdx:t+1,level:-tn+t,columns:t5(tr+t),selectedCellIdx:ts.rowIdx===tr+t?ts.idx:void 0,selectCell:tH},t)),(0,s.jsx)(Y,{rowIdx:e2,columns:t5(ti),onColumnResize:tL,onColumnsReorder:tz,sortColumns:U,onSortColumnsChange:tF,lastFrozenColumnIndex:e1,selectedCellIdx:ts.rowIdx===ti?ts.idx:void 0,selectCell:tH,shouldFocusGrid:!tN,direction:eR})]}),0===l.length&&eA?eA:(0,s.jsxs)(s.Fragment,{children:[p?.map((e,t)=>{let n=e2+1+t,r=ti+1+t,i=ts.rowIdx===r;return s.jsx(ei,{"aria-rowindex":n,rowIdx:r,gridRowStart:n,row:e,top:tp+eC*t,bottom:void 0,viewportColumns:t5(r),lastFrozenColumnIndex:e1,selectedCellIdx:i?ts.idx:void 0,isTop:!0,showBorder:t===e8-1,selectCell:tW},t)}),function(){let e=[],{idx:t,rowIdx:n}=ts,r=tD&&n<tk?tk-1:tk,o=tD&&n>tE?tE+1:tE;for(let u=r;u<=o;u++){let r=u===tk-1||u===tE+1,o=r?n:u,c=tA,d=-1===t?void 0:eQ[t];void 0!==d&&(c=r?[d]:t5(o));let f=l[o],h=tt+o+1,p=o,m=!1;"function"==typeof g&&(p=g(f),m=A?.has(p)??!1),e.push(eO(p,{"aria-rowindex":tt+o+1,"aria-selected":tg?m:void 0,rowIdx:o,row:f,viewportColumns:c,isRowSelected:m,onCellClick:tB,onCellDoubleClick:t$,onCellContextMenu:tU,rowClass:ep,gridRowStart:h,height:tT(o),copiedCellIdx:null!==e$&&e$.row===f?eQ.findIndex(e=>e.key===e$.columnKey):void 0,selectedCellIdx:n===o?t:void 0,draggedOverCellIdx:function(e){if(void 0===eW)return;let{rowIdx:t}=ts;return(t<eW?t<e&&e<=eW:t>e&&e>=eW)?ts.idx:void 0}(o),setDraggedOverRowIdx:eV?tG:void 0,lastFrozenColumnIndex:e1,onRowChange:tq,selectCell:tW,selectedCellEditor:function(e){if(ts.rowIdx!==e||"SELECT"===ts.mode)return;let{idx:t,row:n}=ts,r=eQ[t],o=a(r,e1,{type:"ROW",row:n}),u=e=>{tf.current=e,ta(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))};return l[ts.rowIdx]!==ts.originalRow&&u(!1),(0,s.jsx)($,{column:r,colSpan:o,row:n,rowIdx:e,onRowChange:(e,t,n)=>{t?(0,i.flushSync)(()=>{tK(r,ts.rowIdx,e),u(n)}):ta(t=>({...t,row:e}))},closeEditor:u,onKeyDown:Z,navigate:t2},r.key)}(o)}))}return e}(),m?.map((e,t)=>{let n=tt+l.length+t+1,r=l.length+t,i=ts.rowIdx===r,o=tm>t_?eX-eC*(m.length-t):void 0,a=void 0===o?eC*(m.length-1-t):void 0;return s.jsx(ei,{"aria-rowindex":tw-e7+t+1,rowIdx:r,gridRowStart:n,row:e,top:o,bottom:a,viewportColumns:t5(r),lastFrozenColumnIndex:e1,selectedCellIdx:i?ts.idx:void 0,isTop:!1,showBorder:0===t,selectCell:tW},t)})]})]})}),function(){if(null==ea||"EDIT"===ts.mode||!tQ(ts))return;let e=eQ[ts.idx];if(null==e.renderEditCell||!1===e.editable)return;let t=eK(e);return(0,s.jsx)(B,{gridRowStart:tt+ts.rowIdx+1,rows:l,column:e,columnWidth:t,selectedPosition:ts,isCellEditable:t0,latestDraggedOverRowIdx:tu,onRowsChange:v,onClick:t3,onFill:ea,setDragging:eq,setDraggedOverRowIdx:tG})}(),tA.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>(0,s.jsx)("div",{className:"mlln6zg7-0-0-beta-40",style:{gridColumnStart:t+1,minWidth:n,maxWidth:r},"data-measuring-cell-key":e},e)),th&&(0,s.jsx)("div",{ref:td,tabIndex:t6?0:-1,className:o("f1lsfrzw7-0-0-beta-40",t6&&["r190mhd37-0-0-beta-40",-1!==e1&&"r139qu9m7-0-0-beta-40"],!tJ(ts.rowIdx)&&"f1cte0lg7-0-0-beta-40"),style:{gridRowStart:ts.rowIdx+tt+1}}),null!==eG&&(0,s.jsx)(et,{scrollToPosition:eG,setScrollToCellPosition:eZ,gridElement:eY.current})]})});function el(e){e?.focus(),e?.select()}function eu({row:e,column:t,onRowChange:n,onClose:r}){return(0,s.jsx)("input",{className:"rdg-text-editor t7vyx3i7-0-0-beta-40",ref:el,value:e[t.key],onChange:r=>n({...e,[t.key]:r.target.value}),onBlur:()=>r(!0,!1)})}},62438:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(66703),i=n(65581),o=n(38158),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){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function l(e){return e&&e.ownerDocument?e.ownerDocument:document}var u=function(e){return Array.prototype.reduce.call(e,function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":case void 0:e[r]=!0;break;case"false":e[r]=!1;break;default:e[r]=t.value}}return e},{})};function c(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function d(e,t){e&&t.split(" ").forEach(function(t){e.classList.remove(t)})}function f(e){return".".concat(e.split(" ").join("."))}var h=!!("undefined"!=typeof window&&window.document&&window.document.createElement),p=Object.freeze({__proto__:null,addClasses:c,canUseDOM:h,classNamesToQuery:f,getElementDocument:l,getElementWindow:a,getOptions:u,removeClasses:d}),m=null,g=null;function v(){if(null===m){if("undefined"==typeof document)return m=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),m=n}return m}h&&window.addEventListener("resize",function(){g!==window.devicePixelRatio&&(g=window.devicePixelRatio,m=null)});var y=function(){function e(t,n){void 0===n&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var e=a(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,c(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){d(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(c(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){d(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(e){var t,n;r.axis.x.track.el&&r.axis.y.track.el&&r.axis.x.scrollbar.el&&r.axis.y.scrollbar.el&&(r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.stopPropagation(),"pointerdown"===e.type&&"touch"!==e.pointerType&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y")))))},this.drag=function(t){if(r.draggedAxis&&r.contentWrapperEl){var n,i,o,s,a,l,u,c,d,f,h,p=r.axis[r.draggedAxis].track,m=null!==(i=null===(n=p.rect)||void 0===n?void 0:n[r.axis[r.draggedAxis].sizeAttr])&&void 0!==i?i:0,g=r.axis[r.draggedAxis].scrollbar,v=null!==(s=null===(o=r.contentWrapperEl)||void 0===o?void 0:o[r.axis[r.draggedAxis].scrollSizeAttr])&&void 0!==s?s:0,y=parseInt(null!==(l=null===(a=r.elStyles)||void 0===a?void 0:a[r.axis[r.draggedAxis].sizeAttr])&&void 0!==l?l:"0px",10);t.preventDefault(),t.stopPropagation();var b=("y"===r.draggedAxis?t.pageY:t.pageX)-(null!==(c=null===(u=p.rect)||void 0===u?void 0:u[r.axis[r.draggedAxis].offsetAttr])&&void 0!==c?c:0)-r.axis[r.draggedAxis].dragOffset,w=(b="x"===r.draggedAxis&&r.isRtl?(null!==(f=null===(d=p.rect)||void 0===d?void 0:d[r.axis[r.draggedAxis].sizeAttr])&&void 0!==f?f:0)-g.size-b:b)/(m-g.size)*(v-y);"x"===r.draggedAxis&&r.isRtl&&(w=(null===(h=e.getRtlHelpers())||void 0===h?void 0:h.isScrollingToNegative)?-w:w),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=w}},this.onEndDrag=function(e){r.isDragging=!1;var t=l(r.el),n=a(r.el);e.preventDefault(),e.stopPropagation(),d(r.el,r.classNames.dragging),r.onStopScrolling(),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout(function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.options=s(s({},e.defaultOptions),n),this.classNames=s(s({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},"object"!=typeof this.el||!this.el.nodeName)throw Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=o(this._onMouseMove,64),this.onWindowResize=i(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=i(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=i(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=null==n?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{if(this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style)return 0;return v()}catch(e){return v()}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=l(e),r=a(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){h&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var e,t;this.wrapperEl=this.el.querySelector(f(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(f(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(f(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(f(this.classNames.offset)),this.maskEl=this.el.querySelector(f(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,f(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(f(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(f(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(f(this.classNames.track)).concat(f(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(f(this.classNames.track)).concat(f(this.classNames.vertical))),this.axis.x.scrollbar.el=(null===(e=this.axis.x.track.el)||void 0===e?void 0:e.querySelector(f(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null===(t=this.axis.y.track.el)||void 0===t?void 0:t.querySelector(f(this.classNames.scrollbar)))||null,this.options.autoHide||(c(this.axis.x.scrollbar.el,this.classNames.visible),c(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var e,t=this,n=a(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null===(e=this.contentWrapperEl)||void 0===e||e.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var r=!1,i=n.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){r&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var e=a(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||t>0,i=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=r?"".concat(t||u,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==t&&u>t,this.axis.y.isOverflowing=l>c,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==s&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var d=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>i-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>c-d,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var t,n,r,i=this.contentEl[this.axis[e].scrollSizeAttr],o=null!==(n=null===(t=this.axis[e].track.el)||void 0===t?void 0:t[this.axis[e].offsetSizeAttr])&&void 0!==n?n:0;return r=Math.max(~~(o/i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(r=Math.min(r,this.options.scrollbarMaxSize)),r},e.prototype.positionScrollbar=function(t){void 0===t&&(t="y");var n,r,i,o=this.axis[t].scrollbar;if(this.axis[t].isOverflowing&&this.contentWrapperEl&&o.el&&this.elStyles){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=(null===(n=this.axis[t].track.el)||void 0===n?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u="x"===t&&this.isRtl&&(null===(r=e.getRtlHelpers())||void 0===r?void 0:r.isScrollOriginAtZero)?-u:u,"x"===t&&this.isRtl&&(u=(null===(i=e.getRtlHelpers())||void 0===i?void 0:i.isScrollingToNegative)?u:-u);var c=u/(s-l),d=~~((a-o.size)*c);d="x"===t&&this.isRtl?-d+(a-o.size):d,o.el.style.transform="x"===t?"translate3d(".concat(d,"px, 0, 0)"):"translate3d(0, ".concat(d,"px, 0)")}},e.prototype.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;t&&n&&this.contentWrapperEl&&(this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(c(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(e){void 0===e&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(d(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(e){void 0===e&&(e="y");var t=this.axis[e];t.track.el&&t.scrollbar.el&&(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(e),c(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?c(t.scrollbar.el,this.classNames.hover):d(t.scrollbar.el,this.classNames.hover)):(d(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},e.prototype.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),d(this.axis[e].track.el,this.classNames.hover),d(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},e.prototype.onDragStart=function(e,t){void 0===t&&(t="y"),this.isDragging=!0;var n,r=l(this.el),i=a(this.el),o=this.axis[t].scrollbar,s="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=s-((null===(n=o.rect)||void 0===n?void 0:n[this.axis[t].offsetAttr])||0),this.draggedAxis=t,c(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(e,t){var n,r,i,o,s=this;void 0===t&&(t="y");var l=this.axis[t];if(this.options.clickOnTrack&&l.scrollbar.el&&this.contentWrapperEl){e.preventDefault();var u=a(this.el);this.axis[t].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var c=null!==(r=null===(n=this.axis[t].scrollbar.rect)||void 0===n?void 0:n[this.axis[t].offsetAttr])&&void 0!==r?r:0,d=parseInt(null!==(o=null===(i=this.elStyles)||void 0===i?void 0:i[this.axis[t].sizeAttr])&&void 0!==o?o:"0px",10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],h=("y"===t?this.mouseY-c:this.mouseX-c)<0?-1:1,p=-1===h?f-d:f+d,m=function(){s.contentWrapperEl&&(-1===h?f>p&&(f-=40,s.contentWrapperEl[s.axis[t].scrollOffsetAttr]=f,u.requestAnimationFrame(m)):f<p&&(f+=40,s.contentWrapperEl[s.axis[t].scrollOffsetAttr]=f,u.requestAnimationFrame(m)))};m()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var e=a(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},e.prototype.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(e){return n.call(e,t)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=u,e.helpers=p,e}(),b=function(){return(b=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)},w=r.forwardRef(function(e,t){var n=e.children,i=e.scrollableNodeProps,o=void 0===i?{}:i,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["children","scrollableNodeProps"]),a=r.useRef(),l=r.useRef(),u=r.useRef(),c={},d={};Object.keys(s).forEach(function(e){Object.prototype.hasOwnProperty.call(y.defaultOptions,e)?c[e]=s[e]:d[e]=s[e]});var f=b(b({},y.defaultOptions.classNames),c.classNames),h=b(b({},o),{className:"".concat(f.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:c.tabIndex||y.defaultOptions.tabIndex,role:"region","aria-label":c.ariaLabel||y.defaultOptions.ariaLabel});return r.useEffect(function(){var e;return l.current=h.ref?h.ref.current:l.current,a.current&&(e=new y(a.current,b(b(b({},c),l.current&&{scrollableNode:l.current}),u.current&&{contentNode:u.current})),"function"==typeof t?t(e):t&&(t.current=e)),function(){null==e||e.unMount(),e=null,"function"==typeof t&&t(null)}},[]),r.createElement("div",b({"data-simplebar":"init",ref:a},d),r.createElement("div",{className:f.wrapper},r.createElement("div",{className:f.heightAutoObserverWrapperEl},r.createElement("div",{className:f.heightAutoObserverEl})),r.createElement("div",{className:f.mask},r.createElement("div",{className:f.offset},"function"==typeof n?n({scrollableNodeRef:l,scrollableNodeProps:b(b({},h),{ref:l}),contentNodeRef:u,contentNodeProps:{className:f.contentEl,ref:u}}):r.createElement("div",b({},h),r.createElement("div",{className:f.contentEl},n)))),r.createElement("div",{className:f.placeholder})),r.createElement("div",{className:"".concat(f.track," simplebar-horizontal")},r.createElement("div",{className:f.scrollbar})),r.createElement("div",{className:"".concat(f.track," simplebar-vertical")},r.createElement("div",{className:f.scrollbar})))});w.displayName="SimpleBar"},95379:function(e,t,n){"use strict";n.d(t,{CR:function(){return c},FC:function(){return h},Jh:function(){return l},KL:function(){return p},XA:function(){return u},ZT:function(){return i},_T:function(){return s},ev:function(){return d},mG:function(){return a},pi:function(){return o},qq:function(){return f}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=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 s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function u(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 c(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 d(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function f(e){return this instanceof f?(this.v=e,this):new f(e)}function h(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{var n;(n=i[e](t)).value instanceof f?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function p(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=u(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError},99201:function(e,t,n){"use strict";n.d(t,{l_:function(){return w},AW:function(){return v},F0:function(){return m},rs:function(){return b},TH:function(){return f},yj:function(){return h}});var r=n(12826);let i=e=>e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),o=(e,t,n)=>{let r=e?"((?:[^\\/]+?)(?:\\/(?:[^\\/]+?))*)":"([^\\/]+?)";return t&&n&&(r="(?:\\/"+r+")"),r+(t?"?":"")},s=e=>{let t=/:([A-Za-z0-9_]+)([?+*]?)/g,n=null,r=0,s=[],a="";for(;null!==(n=t.exec(e));){let[l,u,c]=n,d="+"===c||"*"===c,f="?"===c||"*"===c,h=f&&"/"===e[n.index-1]?1:0,p=e.substring(r,n.index-h);s.push({name:u}),r=t.lastIndex,a+=i(p)+o(d,f,h)}return{keys:s,regexp:RegExp("^"+(a+=i(e.substring(r)))+"(?:\\/)?$","i")}};var a=n(61184);let l={hook:r.ZP,matcher:function(e=s){let t={},n=n=>t[n]||(t[n]=e(n));return(e,t)=>{let{regexp:r,keys:i}=n(e||""),o=r.exec(t);return o?[!0,i.reduce((e,t,n)=>(e[t.name]=o[n+1],e),{})]:[!1,null]}}(),base:""},u=(0,a.kr)(l),c=()=>(0,a.qp)(u),d=e=>e.hook(e),f=()=>d(c()),h=e=>{let t=c(),[n]=d(t);return t.matcher(e,n)},p=(0,a.kr)({params:{}}),m=({hook:e,matcher:t,ssrPath:n,base:r="",parent:i,children:o})=>{let s=(o,s=i||l)=>(o.hook=e||s.hook,o.matcher=t||s.matcher,o.ssrPath=n||s.ssrPath,o.ownBase=r,o.parent=i,o),[c]=(0,a.eJ)(()=>s({get base(){return(c.parent||l).base+c.ownBase}}));return(0,a.NU)(()=>{s(c)}),(0,a.az)(u.Provider,{value:c,children:o})},g=(e,t)=>(0,a.az)(p.Provider,{value:{params:e},children:t}),v=({path:e,match:t,component:n,children:r})=>{let i=h(e),[o,s]=t||i;return o?n?g(s,(0,a.az)(n,{params:s})):g(s,"function"==typeof r?r(s):r):null};(0,a.Gp)((e,t)=>{let n=c(),[,r]=d(n),{to:i,href:o=i,children:s,onClick:l}=e,u=(0,a.zX)(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(l&&l(t),t.defaultPrevented||(t.preventDefault(),r(i||o,e)))}),f={href:"~"===o[0]?o.slice(1):n.base+o,onClick:u,to:null,ref:t},h=(0,a.l$)(s)?s:(0,a.az)("a",e);return(0,a.Tm)(h,f)});let y=e=>Array.isArray(e)?[].concat(...e.map(e=>e&&e.type===a.HY?y(e.props.children):y(e))):[e],b=({children:e,location:t})=>{let n=c(),r=n.matcher,[i]=d(n);for(let n of y(e)){let e=0;if((0,a.l$)(n)&&(e=n.props.path?r(n.props.path,t||i):[!0,{}])[0])return(0,a.Tm)(n,{match:e})}return null},w=e=>{let{to:t,href:n=t}=e,[,r]=f(),i=(0,a.zX)(()=>r(t||n,e));return(0,a.LI)(()=>{i()},[]),null}},61184:function(e,t,n){"use strict";n.d(t,{HY:function(){return r.Fragment},Tm:function(){return r.cloneElement},kr:function(){return r.createContext},az:function(){return r.createElement},Gp:function(){return r.forwardRef},l$:function(){return r.isValidElement},qp:function(){return r.useContext},zX:function(){return f},NU:function(){return d},LI:function(){return c},eJ:function(){return r.useState},$N:function(){return o.useSyncExternalStore}});var r=n(66703),i=n.t(r,2),o=n(18638);let{useEffect:s,useLayoutEffect:a,useRef:l,useInsertionEffect:u}=i,c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a:s,d=u||c,f=e=>{let t=l([e,(...e)=>t[0](...e)]).current;return d(()=>{t[0]=e}),t[1]}},12826:function(e,t,n){"use strict";n.d(t,{ZP:function(){return p},c4:function(){return h},LD:function(){return c}});var r=n(61184);let i=(e="",t=location.pathname)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",o=(e,t="")=>"~"===e[0]?e.slice(1):t+e,s="pushState",a="replaceState",l=["popstate",s,a,"hashchange"],u=e=>{for(let t of l)addEventListener(t,e);return()=>{for(let t of l)removeEventListener(t,e)}},c=(e,t)=>(0,r.$N)(u,e,t),d=()=>location.pathname,f=({ssrPath:e}={})=>c(d,e?()=>e:d),h=(e,{replace:t=!1}={})=>history[t?a:s](null,"",e);var p=(e={})=>[i(e.base,f(e)),(0,r.zX)((t,n)=>h(o(t,e.base),n))];if("undefined"!=typeof history)for(let e of[s,a]){let t=history[e];history[e]=function(){let n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}},49990:function(e,t,n){"use strict";let r;n.d(t,{ZP:function(){return nl}});var i={};n.r(i),n.d(i,{BOM:function(){return tq},DOCUMENT:function(){return tW},FLOW_END:function(){return tH},SCALAR:function(){return tG},createScalarToken:function(){return tM},isCollection:function(){return tZ},isScalar:function(){return tK},prettyToken:function(){return tY},resolveAsScalar:function(){return tR},setScalarValue:function(){return tj},stringify:function(){return tL},tokenType:function(){return tJ},visit:function(){return tV}});var o={};n.r(o),n.d(o,{Alias:function(){return $},CST:function(){return i},Composer:function(){return tP},Document:function(){return ts},Lexer:function(){return t5},LineCounter:function(){return t4},Pair:function(){return ey},Parser:function(){return nn},Scalar:function(){return V},Schema:function(){return to},YAMLError:function(){return tl},YAMLMap:function(){return eS},YAMLParseError:function(){return tu},YAMLSeq:function(){return eE},YAMLWarning:function(){return tc},isAlias:function(){return h},isCollection:function(){return b},isDocument:function(){return p},isMap:function(){return m},isNode:function(){return w},isPair:function(){return g},isScalar:function(){return v},isSeq:function(){return y},parse:function(){return ns},parseAllDocuments:function(){return ni},parseDocument:function(){return no},stringify:function(){return na},visit:function(){return _},visitAsync:function(){return O}});let s=Symbol.for("yaml.alias"),a=Symbol.for("yaml.document"),l=Symbol.for("yaml.map"),u=Symbol.for("yaml.pair"),c=Symbol.for("yaml.scalar"),d=Symbol.for("yaml.seq"),f=Symbol.for("yaml.node.type"),h=e=>!!e&&"object"==typeof e&&e[f]===s,p=e=>!!e&&"object"==typeof e&&e[f]===a,m=e=>!!e&&"object"==typeof e&&e[f]===l,g=e=>!!e&&"object"==typeof e&&e[f]===u,v=e=>!!e&&"object"==typeof e&&e[f]===c,y=e=>!!e&&"object"==typeof e&&e[f]===d;function b(e){if(e&&"object"==typeof e)switch(e[f]){case l:case d:return!0}return!1}function w(e){if(e&&"object"==typeof e)switch(e[f]){case s:case l:case c:case d:return!0}return!1}let x=e=>(v(e)||b(e))&&!!e.anchor,S=Symbol("break visit"),k=Symbol("skip children"),E=Symbol("remove node");function _(e,t){let n=I(t);p(e)?C(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):C(null,e,n,Object.freeze([]))}function C(e,t,n,r){let i=A(e,t,n,r);if(w(i)||g(i))return P(e,r,i),C(e,i,n,r);if("symbol"!=typeof i){if(b(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=C(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===S)return S;i===E&&(t.items.splice(e,1),e-=1)}}}else if(g(t)){r=Object.freeze(r.concat(t));let e=C("key",t.key,n,r);if(e===S)return S;e===E&&(t.key=null);let i=C("value",t.value,n,r);if(i===S)return S;i===E&&(t.value=null)}}return i}async function O(e,t){let n=I(t);p(e)?await T(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):await T(null,e,n,Object.freeze([]))}async function T(e,t,n,r){let i=await A(e,t,n,r);if(w(i)||g(i))return P(e,r,i),T(e,i,n,r);if("symbol"!=typeof i){if(b(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await T(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===S)return S;i===E&&(t.items.splice(e,1),e-=1)}}}else if(g(t)){r=Object.freeze(r.concat(t));let e=await T("key",t.key,n,r);if(e===S)return S;e===E&&(t.key=null);let i=await T("value",t.value,n,r);if(i===S)return S;i===E&&(t.value=null)}}return i}function I(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function A(e,t,n,r){return"function"==typeof n?n(e,t,r):m(t)?n.Map?.(e,t,r):y(t)?n.Seq?.(e,t,r):g(t)?n.Pair?.(e,t,r):v(t)?n.Scalar?.(e,t,r):h(t)?n.Alias?.(e,t,r):void 0}function P(e,t,n){let r=t[t.length-1];if(b(r))r.items[e]=n;else if(g(r))"key"===e?r.key=n:r.value=n;else if(p(r))r.contents=n;else{let e=h(r)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}_.BREAK=S,_.SKIP=k,_.REMOVE=E,O.BREAK=S,O.SKIP=k,O.REMOVE=E;let R={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},M=e=>e.replace(/[!,[\]{}]/g,e=>R[e]);class j{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},j.defaultYaml,e),this.tags=Object.assign({},j.defaultTags,t)}clone(){let e=new j(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new j(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:j.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},j.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:j.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},j.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+M(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t;let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&w(e.contents)){let n={};_(e.contents,(e,t)=>{w(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,o]of r)("!!"!==i||"tag:yaml.org,2002:"!==o)&&(!e||t.some(e=>e.startsWith(o)))&&n.push(`%TAG ${i} ${o}`);return n.join("\n")}}function N(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function D(e){let t=new Set;return _(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function L(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function z(e,t,n,r){if(r&&"object"==typeof r){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=z(e,r,String(t),n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=z(e,r,t,n);void 0===i?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=z(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=z(e,r,t,n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function F(e,t,n){if(Array.isArray(e))return e.map((e,t)=>F(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!x(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}j.defaultYaml={explicit:!1,version:"1.2"},j.defaultTags={"!!":"tag:yaml.org,2002:"};class B{constructor(e){Object.defineProperty(this,f,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!p(e))throw TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},s=F(this,"",o);if("function"==typeof r)for(let{count:e,res:t}of o.anchors.values())r(t,e);return"function"==typeof i?z(i,{"":s},"",s):s}}class $ extends B{constructor(e){super(s),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e){let t;return _(e,{Node:(e,n)=>{if(n===this)return _.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r);if(!o)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let s=n.get(o);if(s||(F(o,null,t),s=n.get(o)),!s||void 0===s.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=function e(t,n,r){if(h(n)){let e=n.resolve(t),i=r&&e&&r.get(e);return i?i.count*i.aliasCount:0}if(b(n)){let i=0;for(let o of n.items){let n=e(t,o,r);n>i&&(i=n)}return i}return g(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(r,o,n)),s.count*s.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return s.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(N(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let U=e=>!e||"function"!=typeof e&&"object"!=typeof e;class V extends B{constructor(e){super(c),this.value=e}toJSON(e,t){return t?.keep?this.value:F(this.value,e,t)}toString(){return String(this.value)}}function q(e,t,n){let r;if(p(e)&&(e=e.contents),w(e))return e;if(g(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:o,onTagObj:s,schema:a,sourceObjects:u}=n;if(i&&e&&"object"==typeof e){if(r=u.get(e))return r.anchor||(r.anchor=o(e)),new $(r.anchor);r={anchor:null,node:null},u.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let c=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,a.tags);if(!c){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new V(e);return r&&(r.node=t),t}c=e instanceof Map?a[l]:Symbol.iterator in Object(e)?a[d]:a[l]}s&&(s(c),delete n.onTagObj);let f=c?.createNode?c.createNode(n.schema,e,n):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(n.schema,e,n):new V(e);return t?f.tag=t:c.default||(f.tag=c.tag),r&&(r.node=f),f}function W(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return q(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}V.BLOCK_FOLDED="BLOCK_FOLDED",V.BLOCK_LITERAL="BLOCK_LITERAL",V.PLAIN="PLAIN",V.QUOTE_DOUBLE="QUOTE_DOUBLE",V.QUOTE_SINGLE="QUOTE_SINGLE";let H=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class G extends B{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>w(t)||g(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(H(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(b(i))i.addIn(r,t);else if(void 0===i&&this.schema)this.set(n,W(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(b(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&v(i)?i.value:i:b(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!g(t))return!1;let n=t.value;return null==n||e&&v(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!b(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(b(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,W(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let Z=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function K(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let Y=(e,t,n)=>e.endsWith("\n")?K(n,t):n.includes("\n")?"\n"+K(n,t):(e.endsWith(" ")?"":" ")+n,J="flow",X="block",Q="quoted";function ee(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:s,onOverflow:a}={}){let l,u,c;if(!i||i<0)return e;i<o&&(o=0);let d=Math.max(1+o,1+i-t.length);if(e.length<=d)return e;let f=[],h={},p=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?f.push(0):p=i-r);let m=!1,g=-1,v=-1,y=-1;for(n===X&&-1!==(g=et(e,g,t.length))&&(p=g+d);c=e[g+=1];){if(n===Q&&"\\"===c){switch(v=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}y=g}if("\n"===c)n===X&&(g=et(e,g,t.length)),p=g+t.length+d,l=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[g+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=g)}if(g>=p){if(l)f.push(l),p=l+d,l=void 0;else if(n===Q){for(;" "===u||" "===u;)u=c,c=e[g+=1],m=!0;let t=g>y+1?g-2:v-1;if(h[t])return e;f.push(t),h[t]=!0,p=t+d,l=void 0}else m=!0}}u=c}if(m&&a&&a(),0===f.length)return e;s&&s();let b=e.slice(0,f[0]);for(let r=0;r<f.length;++r){let i=f[r],o=f[r+1]||e.length;0===i?b=`
|
|
42
|
-
${t}${e.slice(0,o)}`:(n===Q&&h[i]&&(b+=`${e[i]}\\`),b+=`
|
|
43
|
-
${t}${e.slice(i+1,o)}`)}return b}function et(e,t,n){let r=t,i=t+1,o=e[i];for(;" "===o||" "===o;)if(t<i+n)o=e[++t];else{do o=e[++t];while(o&&"\n"!==o);r=t,o=e[i=t+1]}return r}let en=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),er=e=>/^(%|---|\.\.\.)/m.test(e);function ei(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(er(e)?" ":""),s="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(s+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{s+=n.slice(a,e);let t=n.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<i)e+=1;else{for(s+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)s+="\n",e+=2;s+=o," "===n[e+2]&&(s+="\\"),e+=1,a=e+1}break;default:e+=1}return s=a?s+n.slice(a):n,r?s:ee(s,o,Q,en(t,!1))}function eo(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return ei(e,t);let n=t.indent||(er(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
44
|
-
${n}`)+"'";return t.implicitKey?r:ee(r,n,J,en(t,!1))}function es(e,t){let n;let{singleQuote:r}=t.options;if(!1===r)n=ei;else{let t=e.includes('"'),i=e.includes("'");n=t&&!i?eo:i&&!t?ei:r?eo:ei}return n(e,t)}try{r=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{r=/\n+(?!\n|$)/g}function ea({comment:e,type:t,value:n},i,o,s){let a,l,u;let{blockQuote:c,commentString:d,lineWidth:f}=i.options;if(!c||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return es(n,i);let h=i.indent||(i.forceBlockIndent||er(n)?" ":""),p="literal"===c||"folded"!==c&&t!==V.BLOCK_FOLDED&&(t===V.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(i-(n=t+1)<=r)return!1}return!0}(n,f,h.length));if(!n)return p?"|\n":">\n";for(l=n.length;l>0;--l){let e=n[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let m=n.substring(l),g=m.indexOf("\n");-1===g?a="-":n===m||g!==m.length-1?(a="+",s&&s()):a="",m&&(n=n.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(r,`$&${h}`));let v=!1,y=-1;for(u=0;u<n.length;++u){let e=n[u];if(" "===e)v=!0;else if("\n"===e)y=u;else break}let b=n.substring(0,y<u?y+1:u);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${h}`));let w=h?"2":"1",x=(v?w:"")+a;if(e&&(x+=" "+d(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!p){let e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`),r=!1,o=en(i,!0);"folded"!==c&&t!==V.BLOCK_FOLDED&&(o.onOverflow=()=>{r=!0});let s=ee(`${b}${e}${m}`,h,X,o);if(!r)return`>${x}
|
|
45
|
-
${h}${s}`}return n=n.replace(/\n+/g,`$&${h}`),`|${x}
|
|
46
|
-
${h}${b}${n}${m}`}function el(e,t,n,r){let{implicitKey:i,inFlow:o}=t,s="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==V.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=V.QUOTE_DOUBLE);let l=e=>{switch(e){case V.BLOCK_FOLDED:case V.BLOCK_LITERAL:return i||o?es(s.value,t):ea(s,t,n,r);case V.QUOTE_DOUBLE:return ei(s.value,t);case V.QUOTE_SINGLE:return eo(s.value,t);case V.PLAIN:return function(e,t,n,r){let{type:i,value:o}=e,{actualString:s,implicitKey:a,indent:l,indentStep:u,inFlow:c}=t;if(a&&o.includes("\n")||c&&/[[\]{},]/.test(o))return es(o,t);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return a||c||!o.includes("\n")?es(o,t):ea(e,t,n,r);if(!a&&!c&&i!==V.PLAIN&&o.includes("\n"))return ea(e,t,n,r);if(er(o)){if(""===l)return t.forceBlockIndent=!0,ea(e,t,n,r);if(a&&l===u)return es(o,t)}let d=o.replace(/\n+/g,`$&
|
|
47
|
-
${l}`);if(s){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return es(o,t)}return a?d:ee(d,l,J,en(t,!1))}(s,t,n,r);default:return null}},u=l(a);if(null===u){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(null===(u=l(r)))throw Error(`Unsupported default string type ${r}`)}return u}function eu(e,t){let n;let r=Object.assign({blockQuote:!0,commentString:Z,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function ec(e,t,n,r){let i;if(g(e))return e.toString(t,n,r);if(h(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o=w(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){let n,r;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}if(v(t)){n=t.value;let i=e.filter(e=>e.identify?.(n));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}r=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else n=t,r=e.find(e=>e.nodeClass&&n instanceof e.nodeClass);if(!r){let e=n?.constructor?.name??typeof n;throw Error(`Tag not resolved for ${e} value`)}return r}(t.doc.schema.tags,o));let s=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],o=(v(e)||b(e))&&e.anchor;o&&N(o)&&(n.add(o),i.push(`&${o}`));let s=e.tag?e.tag:t.default?null:t.tag;return s&&i.push(r.directives.tagString(s)),i.join(" ")}(o,i,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);let a="function"==typeof i.stringify?i.stringify(o,t,n,r):v(o)?el(o,t,n,r):o.toString(t,n,r);return s?v(o)||"{"===a[0]||"["===a[0]?`${s} ${a}`:`${s}
|
|
48
|
-
${t.indent}${a}`:a}function ed(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let ef={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new V(Symbol("<<")),{addToJSMap:ep}),stringify:()=>"<<"},eh=(e,t)=>(ef.identify(t)||v(t)&&(!t.type||t.type===V.PLAIN)&&ef.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===ef.tag&&e.default);function ep(e,t,n){if(y(n=e&&h(n)?n.resolve(e.doc):n))for(let r of n.items)em(e,t,r);else if(Array.isArray(n))for(let r of n)em(e,t,r);else em(e,t,n)}function em(e,t,n){let r=e&&h(n)?n.resolve(e.doc):n;if(!m(r))throw Error("Merge sources must be maps or map aliases");for(let[n,i]of r.toJSON(null,e,Map))t instanceof Map?t.has(n)||t.set(n,i):t instanceof Set?t.add(n):Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function eg(e,t,{key:n,value:r}){if(w(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(eh(e,n))ep(e,t,r);else{let i=F(n,"",e);if(t instanceof Map)t.set(i,F(r,i,e));else if(t instanceof Set)t.add(i);else{let o=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(w(e)&&n?.doc){let t=eu(n.doc,{});for(let e of(t.anchors=new Set,n.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),ed(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),s=F(r,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}}return t}function ev(e,t,n){return new ey(q(e,void 0,n),q(t,void 0,n))}class ey{constructor(e,t=null){Object.defineProperty(this,f,{value:u}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return w(t)&&(t=t.clone(e)),w(n)&&(n=n.clone(e)),new ey(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return eg(t,n,this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){let o,s,a;let{allNullValues:l,doc:u,indent:c,indentStep:d,options:{commentString:f,indentSeq:h,simpleKeys:p}}=n,m=w(e)&&e.comment||null;if(p){if(m)throw Error("With simple keys, key nodes cannot have comments");if(b(e)||!w(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let g=!p&&(!e||m&&null==t&&!n.inFlow||b(e)||(v(e)?e.type===V.BLOCK_FOLDED||e.type===V.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(p||!l),indent:c+d});let x=!1,S=!1,k=ec(e,n,()=>x=!0,()=>S=!0);if(!g&&!n.inFlow&&k.length>1024){if(p)throw Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(n.inFlow){if(l||null==t)return x&&r&&r(),""===k?"?":g?`? ${k}`:k}else if(l&&!p||null==t&&g)return k=`? ${k}`,m&&!x?k+=Y(k,n.indent,f(m)):S&&i&&i(),k;x&&(m=null),g?(m&&(k+=Y(k,n.indent,f(m))),k=`? ${k}
|
|
49
|
-
${c}:`):(k=`${k}:`,m&&(k+=Y(k,n.indent,f(m)))),w(t)?(o=!!t.spaceBefore,s=t.commentBefore,a=t.comment):(o=!1,s=null,a=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,!g&&!m&&v(t)&&(n.indentAtStart=k.length+1),S=!1,!(!h&&d.length>=2&&!n.inFlow&&!g&&y(t))||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let E=!1,_=ec(t,n,()=>E=!0,()=>S=!0),C=" ";if(m||o||s){if(C=o?"\n":"",s){let e=f(s);C+=`
|
|
50
|
-
${K(e,n.indent)}`}""!==_||n.inFlow?C+=`
|
|
51
|
-
${n.indent}`:"\n"===C&&(C="\n\n")}else if(!g&&b(t)){let e=_[0],r=_.indexOf("\n"),i=-1!==r,o=n.inFlow??t.flow??0===t.items.length;if(i||!o){let t=!1;if(i&&("&"===e||"!"===e)){let n=_.indexOf(" ");"&"===e&&-1!==n&&n<r&&"!"===_[n+1]&&(n=_.indexOf(" ",n+1)),(-1===n||r<n)&&(t=!0)}t||(C=`
|
|
52
|
-
${n.indent}`)}}else(""===_||"\n"===_[0])&&(C="");return k+=C+_,n.inFlow?E&&r&&r():a&&!E?k+=Y(k,n.indent,f(a)):S&&i&&i(),k}(this,e,t,n):JSON.stringify(this)}}function eb(e,t,n){return(t.inFlow??e.flow?function({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:o,flowCollectionPadding:s,options:{commentString:a}}=t,l=Object.assign({},t,{indent:r+=o,inFlow:!0,type:null}),u=!1,c=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],o=null;if(w(i))i.spaceBefore&&d.push(""),ew(t,d,i.commentBefore,!1),i.comment&&(o=i.comment);else if(g(i)){let e=w(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(""),ew(t,d,e.commentBefore,!1),e.comment&&(u=!0));let n=w(i.value)?i.value:null;n?(n.comment&&(o=n.comment),n.commentBefore&&(u=!0)):null==i.value&&e?.comment&&(o=e.comment)}o&&(u=!0);let s=ec(i,l,()=>o=null);n<e.length-1&&(s+=","),o&&(s+=Y(s,r,a(o))),!u&&(d.length>c||s.includes("\n"))&&(u=!0),d.push(s),c=d.length}let{start:f,end:h}=n;if(0===d.length)return f+h;if(!u){let e=d.reduce((e,t)=>e+t.length+2,2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(!u)return`${f}${s}${d.join(" ")}${s}${h}`;{let e=f;for(let t of d)e+=t?`
|
|
53
|
-
${o}${i}${t}`:"\n";return`${e}
|
|
54
|
-
${i}${h}`}}:function({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:o,onChompKeep:s,onComment:a}){let l;let{indent:u,options:{commentString:c}}=n,d=Object.assign({},n,{indent:o,type:null}),f=!1,h=[];for(let e=0;e<t.length;++e){let i=t[e],s=null;if(w(i))!f&&i.spaceBefore&&h.push(""),ew(n,h,i.commentBefore,f),i.comment&&(s=i.comment);else if(g(i)){let e=w(i.key)?i.key:null;e&&(!f&&e.spaceBefore&&h.push(""),ew(n,h,e.commentBefore,f))}f=!1;let a=ec(i,d,()=>s=null,()=>f=!0);s&&(a+=Y(a,o,c(s))),f&&s&&(f=!1),h.push(r+a)}if(0===h.length)l=i.start+i.end;else{l=h[0];for(let e=1;e<h.length;++e){let t=h[e];l+=t?`
|
|
55
|
-
${u}${t}`:"\n"}}return e?(l+="\n"+K(c(e),u),a&&a()):f&&s&&s(),l})(e,t,n)}function ew({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){let i=K(t(r),e);n.push(i.trimStart())}}function ex(e,t){let n=v(t)?t.value:t;for(let r of e)if(g(r)&&(r.key===t||r.key===n||v(r.key)&&r.key.value===n))return r}class eS extends G{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(l,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if("function"==typeof i)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==s||r)&&o.items.push(ev(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))s(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=g(e)?e:e&&"object"==typeof e&&"key"in e?new ey(e.key,e.value):new ey(e,e?.value);let r=ex(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);v(r.value)&&U(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>0>i(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=ex(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=ex(this.items,e),r=n?.value;return(!t&&v(r)?r.value:r)??void 0}has(e){return!!ex(this.items,e)}set(e,t){this.add(new ey(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(r),this.items))eg(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!g(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),eb(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let ek={collection:"map",default:!0,nodeClass:eS,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(m(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>eS.from(e,t,n)};class eE extends G{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(d,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=e_(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=e_(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&v(r)?r.value:r}has(e){let t=e_(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=e_(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];v(r)&&U(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(F(e,String(r++),t));return n}toString(e,t,n){return e?eb(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let o of t){if("function"==typeof r){let n=t instanceof Set?o:String(e++);o=r.call(t,n,o)}i.items.push(q(o,void 0,n))}}return i}}function e_(e){let t=v(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let eC={collection:"seq",default:!0,nodeClass:eE,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(y(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>eE.from(e,t,n)},eO={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>el(e,t=Object.assign({actualString:!0},t),n,r)},eT={identify:e=>null==e,createNode:()=>new V(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new V(null),stringify:({source:e},t)=>"string"==typeof e&&eT.test.test(e)?e:t.options.nullStr},eI={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new V("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&eI.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function eA({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);let i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}let eP={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:eA},eR={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},eM={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new V(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:eA},ej=e=>"bigint"==typeof e||Number.isInteger(e),eN=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function eD(e,t,n){let{value:r}=e;return ej(r)&&r>=0?n+r.toString(t):eA(e)}let eL={identify:e=>ej(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>eN(e,2,8,n),stringify:e=>eD(e,8,"0o")},ez={identify:ej,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>eN(e,0,10,n),stringify:eA},eF={identify:e=>ej(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>eN(e,2,16,n),stringify:e=>eD(e,16,"0x")},eB=[ek,eC,eO,eT,eI,eL,ez,eF,eP,eR,eM];function e$(e){return"bigint"==typeof e||Number.isInteger(e)}let eU=({value:e})=>JSON.stringify(e),eV=[ek,eC].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:eU},{identify:e=>null==e,createNode:()=>new V(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:eU},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:eU},{identify:e$,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>e$(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:eU}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),eq={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}},stringify({comment:e,type:t,value:n},r,i,o){let s;if("function"==typeof btoa){let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);s=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=V.BLOCK_LITERAL),t!==V.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===V.BLOCK_LITERAL?"\n":" ")}return el({comment:e,type:t,value:s},r,i,o)}};function eW(e,t){if(y(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!g(r)){if(m(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");let e=r.items[0]||new ey(new V(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}
|
|
56
|
-
${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}
|
|
57
|
-
${t.comment}`:r.comment}r=e}e.items[n]=g(r)?r:new ey(r)}}else t("Expected a sequence for this tag");return e}function eH(e,t,n){let{replacer:r}=n,i=new eE(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let s,a;if("function"==typeof r&&(e=r.call(t,String(o++),e)),Array.isArray(e)){if(2===e.length)s=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[s=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else s=e;i.items.push(ev(s,a,n))}return i}let eG={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eW,createNode:eH};class eZ extends eE{constructor(){super(),this.add=eS.prototype.add.bind(this),this.delete=eS.prototype.delete.bind(this),this.get=eS.prototype.get.bind(this),this.has=eS.prototype.has.bind(this),this.set=eS.prototype.set.bind(this),this.tag=eZ.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let r,i;if(g(e)?(r=F(e.key,"",t),i=F(e.value,r,t)):r=F(e,"",t),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(e,t,n){let r=eH(e,t,n),i=new this;return i.items=r.items,i}}eZ.tag="tag:yaml.org,2002:omap";let eK={collection:"seq",identify:e=>e instanceof Map,nodeClass:eZ,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eW(e,t),r=[];for(let{key:e}of n.items)v(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new eZ,n)},createNode:(e,t,n)=>eZ.from(e,t,n)};function eY({value:e,source:t},n){return t&&(e?eJ:eX).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let eJ={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new V(!0),stringify:eY},eX={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new V(!1),stringify:eY},eQ=e=>"bigint"==typeof e||Number.isInteger(e);function e0(e,t,n,{intAsBigInt:r}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let o=parseInt(e,n);return"-"===i?-1*o:o}function e1(e,t,n){let{value:r}=e;if(eQ(r)){let e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return eA(e)}class e2 extends eS{constructor(e){super(e),this.tag=e2.tag}add(e){let t;t=g(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ey(e.key,null):new ey(e,null),ex(this.items,t.key)||this.items.push(t)}get(e,t){let n=ex(this.items,e);return!t&&g(n)?v(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=ex(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ey(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(ev(e,null,n));return i}}e2.tag="tag:yaml.org,2002:set";let e3={collection:"map",identify:e=>e instanceof Set,nodeClass:e2,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>e2.from(e,t,n),resolve(e,t){if(m(e)){if(e.hasAllNullValues(!0))return Object.assign(new e2,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function e5(e,t){let n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),o=r.replace(/_/g,"").split(":").reduce((e,t)=>e*i(60)+i(t),i(0));return"-"===n?i(-1)*o:o}function e4(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eA(e);let r="";t<0&&(r="-",t*=n(-1));let i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),r+o.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e6={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>e5(e,n),stringify:e4},e9={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>e5(e,!1),stringify:e4},e8={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(e8.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,i,o,s,a]=t.map(Number),l=Date.UTC(n,r-1,i,o||0,s||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=e5(u,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},e7=[ek,eC,eO,eT,eJ,eX,{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>e0(e,2,2,n),stringify:e=>e1(e,2,"0b")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>e0(e,1,8,n),stringify:e=>e1(e,8,"0")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>e0(e,0,10,n),stringify:eA},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>e0(e,2,16,n),stringify:e=>e1(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:eA},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new V(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:eA},eq,ef,eK,eG,e3,e6,e9,e8],te=new Map([["core",eB],["failsafe",[ek,eC,eO]],["json",eV],["yaml11",e7],["yaml-1.1",e7]]),tt={binary:eq,bool:eI,float:eM,floatExp:eR,floatNaN:eP,floatTime:e9,int:ez,intHex:eF,intOct:eL,intTime:e6,map:ek,merge:ef,null:eT,omap:eK,pairs:eG,seq:eC,set:e3,timestamp:e8},tn={"tag:yaml.org,2002:binary":eq,"tag:yaml.org,2002:merge":ef,"tag:yaml.org,2002:omap":eK,"tag:yaml.org,2002:pairs":eG,"tag:yaml.org,2002:set":e3,"tag:yaml.org,2002:timestamp":e8};function tr(e,t,n){let r=te.get(t);if(r&&!e)return n&&!r.includes(ef)?r.concat(ef):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(te.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return n&&(i=i.concat(ef)),i.reduce((e,t)=>{let n="string"==typeof t?tt[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(tt).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let ti=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class to{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:o,toStringDefaults:s}){this.compat=Array.isArray(e)?tr(e,"compat"):e?tr(null,e):null,this.name="string"==typeof i&&i||"core",this.knownTags=r?tn:{},this.tags=tr(t,this.name,n),this.toStringOptions=s??null,Object.defineProperty(this,l,{value:ek}),Object.defineProperty(this,c,{value:eO}),Object.defineProperty(this,d,{value:eC}),this.sortMapEntries="function"==typeof o?o:!0===o?ti:null}clone(){let e=Object.create(to.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class ts{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,f,{value:a});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new j({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){let e=Object.create(ts.prototype,{[f]:{value:a}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=w(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ta(this.contents)&&this.contents.add(e)}addIn(e,t){ta(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=D(this);e.anchor=!t||n.has(t)?L(t||"a",n):t}return new $(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:o,flow:s,keepUndefined:a,onTagObj:l,tag:u}=n??{},{onAnchor:c,setAnchors:d,sourceObjects:f}=function(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i||(i=D(e));let o=L(t,i);return i.add(o),o},setAnchors:()=>{for(let e of n){let t=r.get(e);if("object"==typeof t&&t.anchor&&(v(t.node)||b(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:r}}(this,o||"a"),h={aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:c,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:f},p=q(e,u,h);return s&&b(p)&&(p.flow=!0),d(),p}createPair(e,t,n={}){return new ey(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!ta(this.contents)&&this.contents.delete(e)}deleteIn(e){return H(e)?null!=this.contents&&(this.contents=null,!0):!!ta(this.contents)&&this.contents.deleteIn(e)}get(e,t){return b(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return H(e)?!t&&v(this.contents)?this.contents.value:this.contents:b(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!b(this.contents)&&this.contents.has(e)}hasIn(e){return H(e)?void 0!==this.contents:!!b(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=W(this.schema,[e],t):ta(this.contents)&&this.contents.set(e,t)}setIn(e,t){H(e)?this.contents=t:null==this.contents?this.contents=W(this.schema,Array.from(e),t):ta(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new j({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new j({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new to(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=F(this.contents,t??"",s);if("function"==typeof i)for(let{count:e,res:t}of s.anchors.values())i(t,e);return"function"==typeof o?z(o,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],r=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let i=eu(e,t),{commentString:o}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=o(e.commentBefore);n.unshift(K(t,""))}let s=!1,a=null;if(e.contents){if(w(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let t=o(e.contents.commentBefore);n.push(K(t,""))}i.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>s=!0,l=ec(e.contents,i,()=>a=null,t);a&&(l+=Y(l,"",o(a))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(ec(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=o(e.comment);t.includes("\n")?(n.push("..."),n.push(K(t,""))):n.push(`... ${t}`)}else n.push("...")}else{let t=e.comment;t&&s&&(t=t.replace(/^\n+/,"")),t&&((!s||a)&&""!==n[n.length-1]&&n.push(""),n.push(K(o(t),"")))}return n.join("\n")+"\n"}(this,e)}}function ta(e){if(b(e))return!0;throw Error("Expected a YAML collection as document contents")}class tl extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class tu extends tl{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class tc extends tl{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let td=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let o=i-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(o>=60&&s.length>80){let e=Math.min(o-39,s.length-79);s="…"+s.substring(e),o-=e-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,o))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),s=n+s}if(/[^ ]/.test(s)){let e=1,t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-o)));let a=" ".repeat(o)+"^".repeat(e);n.message+=`:
|
|
58
|
-
|
|
59
|
-
${s}
|
|
60
|
-
${a}
|
|
61
|
-
`}};function tf(e,{flow:t,indicator:n,next:r,offset:i,onError:o,parentIndent:s,startOnNewline:a}){let l=!1,u=a,c=a,d="",f="",h=!1,p=!1,m=null,g=null,v=null,y=null,b=null,w=null,x=null;for(let i of e)switch(p&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),m&&(u&&"comment"!==i.type&&"newline"!==i.type&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),i.type){case"space":!t&&("doc-start"!==n||r?.type!=="flow-collection")&&i.source.includes(" ")&&(m=i),c=!0;break;case"comment":{c||o(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=i.source.substring(1)||" ";d?d+=f+e:d=e,f="",u=!1;break}case"newline":u?d?d+=i.source:w&&"seq-item-ind"===n||(l=!0):f+=i.source,u=!0,h=!0,(g||v)&&(y=i),c=!0;break;case"anchor":g&&o(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&o(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=i,null===x&&(x=i.offset),u=!1,c=!1,p=!0;break;case"tag":v&&o(i,"MULTIPLE_TAGS","A node can have at most one tag"),v=i,null===x&&(x=i.offset),u=!1,c=!1,p=!0;break;case n:(g||v)&&o(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),w&&o(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${t??"collection"}`),w=i,u="seq-item-ind"===n||"explicit-key-ind"===n,c=!1;break;case"comma":if(t){b&&o(i,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=i,u=!1,c=!1;break}default:o(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),u=!1,c=!1}let S=e[e.length-1],k=S?S.offset+S.source.length:i;return p&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=s||r?.type==="block-map"||r?.type==="block-seq")&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:b,found:w,spaceBefore:l,comment:d,hasNewline:h,anchor:g,tag:v,newlineAfterProp:y,end:k,start:x??k}}function th(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(th(t.key)||th(t.value))return!0}return!1;default:return!0}}function tp(e,t,n){if(t?.type==="flow-collection"){let r=t.end[0];r.indent===e&&("]"===r.source||"}"===r.source)&&th(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function tm(e,t,n){let{uniqueKeys:r}=e.options;if(!1===r)return!1;let i="function"==typeof r?r:(e,t)=>e===t||v(e)&&v(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}let tg="All mapping items must start at the same column";function tv(e,t,n,r){let i="";if(e){let o=!1,s="";for(let a of e){let{source:e,type:l}=a;switch(l){case"space":o=!0;break;case"comment":{n&&!o&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";i?i+=s+t:i=t,s="";break}case"newline":i&&(s+=e),o=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}let ty="Block collections are not allowed within flow collections",tb=e=>e&&("block-map"===e.type||"block-seq"===e.type);function tw(e,t,n,r,i,o){let s="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,o){let s=new(o?.nodeClass??eS)(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,l=null;for(let o of r.items){let{start:u,key:c,sep:d,value:f}=o,h=tf(u,{indicator:"explicit-key-ind",next:c??d?.[0],offset:a,onError:i,parentIndent:r.indent,startOnNewline:!0}),p=!h.found;if(p){if(c&&("block-seq"===c.type?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&i(a,"BAD_INDENT",tg)),!h.anchor&&!h.tag&&!d){l=h.end,h.comment&&(s.comment?s.comment+="\n"+h.comment:s.comment=h.comment);continue}(h.newlineAfterProp||th(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==r.indent&&i(a,"BAD_INDENT",tg);n.atKey=!0;let m=h.end,g=c?e(n,c,h,i):t(n,m,u,null,h,i);n.schema.compat&&tp(r.indent,c,i),n.atKey=!1,tm(n,s.items,g)&&i(m,"DUPLICATE_KEY","Map keys must be unique");let v=tf(d??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!c||"block-scalar"===c.type});if(a=v.end,v.found){p&&(f?.type!=="block-map"||v.hasNewline||i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&h.start<v.found.offset-1024&&i(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=f?e(n,f,v,i):t(n,a,d,null,v,i);n.schema.compat&&tp(r.indent,f,i),a=l.range[2];let u=new ey(g,l);n.options.keepSourceTokens&&(u.srcToken=o),s.items.push(u)}else{p&&i(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),v.comment&&(g.comment?g.comment+="\n"+v.comment:g.comment=v.comment);let e=new ey(g);n.options.keepSourceTokens&&(e.srcToken=o),s.items.push(e)}}return l&&l<a&&i(l,"IMPOSSIBLE","Map comment with trailing content"),s.range=[r.offset,a,l??a],s}(e,t,n,r,o):"block-seq"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,o){let s=new(o?.nodeClass??eE)(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let a=r.offset,l=null;for(let{start:o,value:u}of r.items){let c=tf(o,{indicator:"seq-item-ind",next:u,offset:a,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!c.found){if(c.anchor||c.tag||u)u&&"block-seq"===u.type?i(c.end,"BAD_INDENT","All sequence items must start at the same column"):i(a,"MISSING_CHAR","Sequence item without - indicator");else{l=c.end,c.comment&&(s.comment=c.comment);continue}}let d=u?e(n,u,c,i):t(n,c.end,o,null,c,i);n.schema.compat&&tp(r.indent,u,i),a=d.range[2],s.items.push(d)}return s.range=[r.offset,a,l??a],s}(e,t,n,r,o):function({composeNode:e,composeEmptyNode:t},n,r,i,o){let s="{"===r.start.source,a=s?"flow map":"flow sequence",l=new(o?.nodeClass??(s?eS:eE))(n.schema);l.flow=!0;let u=n.atRoot;u&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let c=r.offset+r.start.source.length;for(let o=0;o<r.items.length;++o){let u=r.items[o],{start:d,key:f,sep:h,value:p}=u,m=tf(d,{flow:a,indicator:"explicit-key-ind",next:f??h?.[0],offset:c,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!m.found){if(!m.anchor&&!m.tag&&!h&&!p){0===o&&m.comma?i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):o<r.items.length-1&&i(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),m.comment&&(l.comment?l.comment+="\n"+m.comment:l.comment=m.comment),c=m.end;continue}!s&&n.options.strict&&th(f)&&i(f,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===o)m.comma&&i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(m.comma||i(m.start,"MISSING_CHAR",`Missing , between ${a} items`),m.comment){let e="";t:for(let t of d)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break t;default:break t}if(e){let t=l.items[l.items.length-1];g(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,m.comment=m.comment.substring(e.length+1)}}if(s||h||m.found){n.atKey=!0;let o=m.end,g=f?e(n,f,m,i):t(n,o,d,null,m,i);tb(f)&&i(g.range,"BLOCK_IN_FLOW",ty),n.atKey=!1;let v=tf(h??[],{flow:a,indicator:"map-value-ind",next:p,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(v.found){if(!s&&!m.found&&n.options.strict){if(h)for(let e of h){if(e===v.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<v.found.offset-1024&&i(v.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else p&&("source"in p&&p.source&&":"===p.source[0]?i(p,"MISSING_CHAR",`Missing space after : in ${a}`):i(v.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let y=p?e(n,p,v,i):v.found?t(n,v.end,h,null,v,i):null;y?tb(p)&&i(y.range,"BLOCK_IN_FLOW",ty):v.comment&&(g.comment?g.comment+="\n"+v.comment:g.comment=v.comment);let b=new ey(g,y);if(n.options.keepSourceTokens&&(b.srcToken=u),s)tm(n,l.items,g)&&i(o,"DUPLICATE_KEY","Map keys must be unique"),l.items.push(b);else{let e=new eS(n.schema);e.flow=!0,e.items.push(b);let t=(y??g).range;e.range=[g.range[0],t[1],t[2]],l.items.push(e)}c=y?y.range[2]:v.end}else{let r=p?e(n,p,m,i):t(n,m.end,h,null,m,i);l.items.push(r),c=r.range[2],tb(p)&&i(r.range,"BLOCK_IN_FLOW",ty)}}let d=s?"}":"]",[f,...h]=r.end,p=c;if(f&&f.source===d)p=f.offset+f.source.length;else{let e=a[0].toUpperCase()+a.substring(1),t=u?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(c,u?"MISSING_CHAR":"BAD_INDENT",t),f&&1!==f.source.length&&h.unshift(f)}if(h.length>0){let e=tv(h,p,n.options.strict,i);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[r.offset,p,e.offset]}else l.range=[r.offset,p,p];return l}(e,t,n,r,o),a=s.constructor;return"!"===i||i===a.tagName?s.tag=a.tagName:i&&(s.tag=i),s}function tx(e,t,n){let r=t.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],o=i[0],s=0,a="",l=-1;for(let t=1;t<i.length;++t){let n=i[t];if(a||"-"!==n&&"+"!==n){let r=Number(n);!s&&r?s=r:-1===l&&(l=e+t)}else a=n}-1!==l&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let u=!1,c="",d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case"space":u=!0;case"newline":d+=i.source.length;break;case"comment":n&&!u&&r(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=i.source.length,c=i.source.substring(1);break;case"error":r(i,"UNEXPECTED_TOKEN",i.message),d+=i.source.length;break;default:{let e=`Unexpected token in block scalar header: ${i.type}`;r(i,"UNEXPECTED_TOKEN",e);let t=i.source;t&&"string"==typeof t&&(d+=t.length)}}}return{mode:o,indent:s,chomp:a,comment:c,length:d}}(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};let o=">"===i.mode?V.BLOCK_FOLDED:V.BLOCK_LITERAL,s=t.source?function(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}(t.source):[],a=s.length;for(let e=s.length-1;e>=0;--e){let t=s[e][1];if(""===t||"\r"===t)a=e;else break}if(0===a){let e="+"===i.chomp&&s.length>0?"\n".repeat(Math.max(1,s.length-1)):"",n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:o,comment:i.comment,range:[r,n,n]}}let l=t.indent+i.indent,u=t.offset+i.length,c=0;for(let t=0;t<a;++t){let[r,o]=s[t];if(""===o||"\r"===o)0===i.indent&&r.length>l&&(l=r.length);else{r.length<l&&n(u+r.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===i.indent&&(l=r.length),c=t,0!==l||e.atRoot||n(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=r.length+o.length+1}for(let e=s.length-1;e>=a;--e)s[e][0].length>l&&(a=e+1);let d="",f="",h=!1;for(let e=0;e<c;++e)d+=s[e][0].slice(l)+"\n";for(let e=c;e<a;++e){let[t,r]=s[e];u+=t.length+r.length+1;let a="\r"===r[r.length-1];if(a&&(r=r.slice(0,-1)),r&&t.length<l){let e=i.indent?"explicit indentation indicator":"first line",o=`Block scalar lines must not be less indented than their ${e}`;n(u-r.length-(a?2:1),"BAD_INDENT",o),t=""}o===V.BLOCK_LITERAL?(d+=f+t.slice(l)+r,f="\n"):t.length>l||" "===r[0]?(" "===f?f="\n":h||"\n"!==f||(f="\n\n"),d+=f+t.slice(l)+r,f="\n",h=!0):""===r?"\n"===f?d+="\n":f="\n":(d+=f+r,f=" ",h=!1)}switch(i.chomp){case"-":break;case"+":for(let e=a;e<s.length;++e)d+="\n"+s[e][0].slice(l);"\n"!==d[d.length-1]&&(d+="\n");break;default:d+="\n"}let p=r+i.length+t.source.length;return{value:d,type:o,comment:i.comment,range:[r,p,p]}}function tS(e,t,n){let r,i;let{offset:o,type:s,source:a,end:l}=e,u=(e,t,r)=>n(o+e,t,r);switch(s){case"scalar":r=V.PLAIN,i=function(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),tk(e)}(a,u);break;case"single-quoted-scalar":r=V.QUOTE_SINGLE,("'"!==a[a.length-1]||1===a.length)&&u(a.length,"MISSING_CHAR","Missing closing 'quote"),i=tk(a.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":r=V.QUOTE_DOUBLE,i=function(e,t){let n="";for(let r=1;r<e.length-1;++r){let i=e[r];if("\r"!==i||"\n"!==e[r+1]){if("\n"===i){let{fold:t,offset:i}=function(e,t){let n="",r=e[t+1];for(;(" "===r||" "===r||"\n"===r||"\r"===r)&&("\r"!==r||"\n"===e[t+2]);)"\n"===r&&(n+="\n"),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}(e,r);n+=t,r=i}else if("\\"===i){let i=e[++r],o=tE[i];if(o)n+=o;else if("\n"===i)for(i=e[r+1];" "===i||" "===i;)i=e[++r+1];else if("\r"===i&&"\n"===e[r+1])for(i=e[++r+1];" "===i||" "===i;)i=e[++r+1];else if("x"===i||"u"===i||"U"===i){let o={x:2,u:4,U:8}[i];n+=function(e,t,n,r){let i=e.substr(t,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){let i=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(o)}(e,r+1,o,t),r+=o}else{let i=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),n+=i}}else if(" "===i||" "===i){let t=r,o=e[r+1];for(;" "===o||" "===o;)o=e[++r+1];"\n"===o||"\r"===o&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):i)}else n+=i}}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(a,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}let c=o+a.length,d=tv(l,c,t,n);return{value:i,type:r,comment:d.comment,range:[o,c,d.offset]}}function tk(e){let t,n;try{t=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),n=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],o=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)""===r[1]?"\n"===o?i+=o:o="\n":(i+=o+r[1],o=" "),s=n.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=s,r=a.exec(e),i+o+(r?.[1]??"")}let tE={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function t_(e,t,n,r){let i,o;let{value:s,type:a,comment:l,range:u}="block-scalar"===t.type?tx(e,t,r):tS(t,e.options.strict,r),d=n?e.directives.tagName(n.source,e=>r(n,"TAG_RESOLVE_FAILED",e)):null;i=e.options.stringKeys&&e.atKey?e.schema[c]:d?function(e,t,n,r,i){if("!"===n)return e[c];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;o.push(t)}for(let e of o)if(e.test?.test(t))return e;let s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[c])}(e.schema,s,d,n,r):"scalar"===t.type?function({atKey:e,directives:t,schema:n},r,i,o){let s=n.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(r))||n[c];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[c];if(s.tag!==e.tag){let n=t.tagString(s.tag),r=t.tagString(e.tag);o(i,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${n} or ${r}`,!0)}}return s}(e,s,t,r):e.schema[c];try{let a=i.resolve(s,e=>r(n??t,"TAG_RESOLVE_FAILED",e),e.options);o=v(a)?a:new V(a)}catch(e){r(n??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),o=new V(s)}return o.range=u,o.source=s,a&&(o.type=a),d&&(o.tag=d),i.format&&(o.format=i.format),l&&(o.comment=l),o}let tC={composeNode:tO,composeEmptyNode:tT};function tO(e,t,n,r){let i;let o=e.atKey,{spaceBefore:s,comment:a,anchor:l,tag:u}=n,c=!0;switch(t.type){case"alias":i=function({options:e},{offset:t,source:n,end:r},i){let o=new $(n.substring(1));""===o.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let s=t+n.length,a=tv(r,s,e.strict,i);return o.range=[t,s,a.offset],a.comment&&(o.comment=a.comment),o}(e,t,r),(l||u)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":i=t_(e,t,u,r),l&&(i.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":i=function(e,t,n,r,i){let o=r.tag,s=o?t.directives.tagName(o.source,e=>i(o,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===n.type){let{anchor:e,newlineAfterProp:t}=r,n=e&&o?e.offset>o.offset?e:o:e??o;n&&(!t||t.offset<n.offset)&&i(n,"MISSING_CHAR","Missing newline after block sequence props")}let a="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!o||!s||"!"===s||s===eS.tagName&&"map"===a||s===eE.tagName&&"seq"===a)return tw(e,t,n,i,s);let l=t.schema.tags.find(e=>e.tag===s&&e.collection===a);if(!l){let r=t.schema.knownTags[s];if(!r||r.collection!==a)return r?.collection?i(o,"BAD_COLLECTION_TYPE",`${r.tag} used for ${a} collection, but expects ${r.collection}`,!0):i(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),tw(e,t,n,i,s);t.schema.tags.push(Object.assign({},r,{default:!1})),l=r}let u=tw(e,t,n,i,s,l),c=l.resolve?.(u,e=>i(o,"TAG_RESOLVE_FAILED",e),t.options)??u,d=w(c)?c:new V(c);return d.range=u.range,d.tag=s,l?.format&&(d.format=l.format),d}(tC,e,t,n,r),l&&(i.anchor=l.source.substring(1));break;default:{let o="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",o),i=tT(e,t.offset,void 0,null,n,r),c=!1}}return l&&""===i.anchor&&r(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!v(i)||"string"!=typeof i.value||i.tag&&"tag:yaml.org,2002:str"!==i.tag)&&r(u??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(i.spaceBefore=!0),a&&("scalar"===t.type&&""===t.source?i.comment=a:i.commentBefore=a),e.options.keepSourceTokens&&c&&(i.srcToken=t),i}function tT(e,t,n,r,{spaceBefore:i,comment:o,anchor:s,tag:a,end:l},u){let c=t_(e,{type:"scalar",offset:function(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];n?.type==="space";)e+=n.source.length,n=t[++r];break}}return e}(t,n,r),indent:-1,source:""},a,u);return s&&(c.anchor=s.source.substring(1),""===c.anchor&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),o&&(c.comment=o,c.range[2]=l),c}function tI(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function tA(e){let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){let o=e[i];switch(o[0]){case"#":t+=(""===t?"":r?"\n\n":"\n")+(o.substring(1)||" "),n=!0,r=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class tP{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=tI(e);r?this.warnings.push(new tc(i,t,n)):this.errors.push(new tu(i,t,n))},this.directives=new j({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=tA(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
62
|
-
${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(b(i)&&!i.flow&&i.items.length>0){let e=i.items[0];g(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}
|
|
63
|
-
${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}
|
|
64
|
-
${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:tA(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,r)=>{let i=tI(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:n,start:r,value:i,end:o},s){let a=new ts(void 0,Object.assign({_directives:t},e)),l={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},u=tf(r,{indicator:"doc-start",next:i??o?.[0],offset:n,onError:s,parentIndent:0,startOnNewline:!0});u.found&&(a.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!u.hasNewline&&s(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=i?tO(l,i,u,s):tT(l,u.end,r,null,u,s);let c=a.contents.range[2],d=tv(o,c,!1,s);return d.comment&&(a.comment=d.comment),a.range=[n,c,d.offset],a}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new tu(tI(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new tu(tI(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=tv(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
|
|
65
|
-
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new tu(tI(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new ts(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}function tR(e,t=!0,n){if(e){let r=(e,t,r)=>{let i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,r);else throw new tu([i,i+1],t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return tS(e,t,r);case"block-scalar":return tx({options:{strict:t}},e,r)}}return null}function tM(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:o=-1,type:s="PLAIN"}=t,a=el({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(a[0]){case"|":case">":{let e=a.indexOf("\n"),t=a.substring(0,e),n=a.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:o,indent:r,source:t}];return tN(i,l)||i.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:o,indent:r,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:o,indent:r,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:o,indent:r,source:a,end:l};default:return{type:"scalar",offset:o,indent:r,source:a,end:l}}}function tj(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:o=!1,type:s}=n,a="indent"in e?e.indent:null;if(r&&"number"==typeof a&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");s=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}let l=el({type:s,value:t},{implicitKey:i||null===a,indent:null!==a&&a>0?" ".repeat(a):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){let n=t.indexOf("\n"),r=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=r,e.source=i}else{let{offset:t}=e,n="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:t,indent:n,source:r}];for(let t of(tN(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:n,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:o,source:i})}}(e,l);break;case'"':tD(e,l,"double-quoted-scalar");break;case"'":tD(e,l,"single-quoted-scalar");break;default:tD(e,l,"scalar")}}function tN(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function tD(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let r=e.props.slice(1),i=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length),r))t.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{let r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}let tL=e=>"type"in e?tz(e):tF(e);function tz(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=tz(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=tF(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=tF(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=tF(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function tF({start:e,key:t,sep:n,value:r}){let i="";for(let t of e)i+=t.source;if(t&&(i+=tz(t)),n)for(let e of n)i+=e.source;return r&&(i+=tz(r)),i}let tB=Symbol("break visit"),t$=Symbol("skip children"),tU=Symbol("remove item");function tV(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,r){let i=r(n,t);if("symbol"==typeof i)return i;for(let o of["key","value"]){let s=n[o];if(s&&"items"in s){for(let n=0;n<s.items.length;++n){let i=e(Object.freeze(t.concat([[o,n]])),s.items[n],r);if("number"==typeof i)n=i-1;else{if(i===tB)return tB;i===tU&&(s.items.splice(n,1),n-=1)}}"function"==typeof i&&"key"===o&&(i=i(n,t))}}return"function"==typeof i?i(n,t):i}(Object.freeze([]),e,t)}tV.BREAK=tB,tV.SKIP=t$,tV.REMOVE=tU,tV.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},tV.parentCollection=(e,t)=>{let n=tV.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let tq="\uFEFF",tW="\x02",tH="\x18",tG="\x1f",tZ=e=>!!e&&"items"in e,tK=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function tY(e){switch(e){case tq:return"<BOM>";case tW:return"<DOC>";case tH:return"<FLOW_END>";case tG:return"<SCALAR>";default:return JSON.stringify(e)}}function tJ(e){switch(e){case tq:return"byte-order-mark";case tW:return"doc-mode";case tH:return"flow-error-end";case tG:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function tX(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let tQ=new Set("0123456789ABCDEFabcdef"),t0=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),t1=new Set(",[]{}"),t2=new Set(" ,[]{}\n\r "),t3=e=>!e||t2.has(e);class t5{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&tX(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===tq&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,n=e.indexOf("#");for(;-1!==n;){let r=e[n-1];if(" "===r||" "===r){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){let n=e[t-1];if(" "===n||" "===n)t-=1;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield tW,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&tX(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!tX(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&tX(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(t3),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader())+(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&tX(r[3]))&&!(n===this.indentNext-1&&1===this.flowLevel&&("]"===r[0]||"}"===r[0])))return this.flowLevel=0,yield tH,yield*this.parseLineStart();let i=0;for(;","===r[i];)i+=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(r[i+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(t3),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||tX(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){let e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>tX(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;t:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break t}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let r=t+1;for(e=this.buffer[r];" "===e;)e=this.buffer[++r];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++r];t=r-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);let i=e;for(;" "===r;)r=this.buffer[--e];if("\n"===r&&e>=this.pos&&e+1+n>i)t=e;else break}return yield tG,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e;let t=this.flowLevel>0,n=this.pos-1,r=this.pos-1;for(;e=this.buffer[++r];)if(":"===e){let e=this.buffer[r+1];if(tX(e)||t&&t1.has(e))break;n=r}else if(tX(e)){let i=this.buffer[r+1];if("\r"===e&&("\n"===i?(r+=1,e="\n",i=this.buffer[r+1]):n=r),"#"===i||t&&t1.has(i))break;if("\n"===e){let e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(t&&t1.has(e))break;n=r}return e||this.atEnd?(yield tG,yield*this.pushToIndex(n+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(t3))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(tX(t)||e&&t1.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!tX(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(t0.has(t))t=this.buffer[++e];else if("%"===t&&tQ.has(this.buffer[e+1])&&tQ.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class t4{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}function t6(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function t9(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function t8(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function t7(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function ne(e){if(0===e.length)return[];let t=e.length;t:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break t}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function nt(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||t6(t.start,"explicit-key-ind")||t6(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,t8(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class nn{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new t5,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=tJ(e);if(t){if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&(!e||"doc-end"!==e.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t){if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&nt(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===t9(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==t9(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let t;let n=ne(t7(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case"newline":n.push(r);break;case"space":break;case"comment":i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey){if(t.sep){if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t6(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(t8(t.key)&&!t6(t.sep,"newline")){let e=ne(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else if(t6(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=ne(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):t6(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let t=this.startBlockValue(e);if(t){n&&"block-seq"!==t.type&&e.items.push({start:i}),this.stack.push(t);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||t6(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==t.type){let n=ne(t7(t));nt(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=ne(t7(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=ne(t7(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function nr(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new t4||null,prettyErrors:t}}function ni(e,t={}){let{lineCounter:n,prettyErrors:r}=nr(t),i=new nn(n?.addNewLine),o=new tP(t),s=Array.from(o.compose(i.parse(e)));if(r&&n)for(let t of s)t.errors.forEach(td(e,n)),t.warnings.forEach(td(e,n));return s.length>0?s:Object.assign([],{empty:!0},o.streamInfo())}function no(e,t={}){let{lineCounter:n,prettyErrors:r}=nr(t),i=new nn(n?.addNewLine),o=new tP(t),s=null;for(let t of o.compose(i.parse(e),!0,e.length))if(s){if("silent"!==s.options.logLevel){s.errors.push(new tu(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else s=t;return r&&n&&(s.errors.forEach(td(e,n)),s.warnings.forEach(td(e,n))),s}function ns(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);let i=no(e,n);if(!i)return null;if(i.warnings.forEach(e=>ed(i.options.logLevel,e)),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function na(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return p(e)&&!r?e.toString(n):new ts(e,r,n).toString(n)}var nl=o},17168:function(e,t,n){"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{X:function(){return r}})},98261:function(e,t,n){"use strict";n.d(t,{F:function(){return f},s:function(){return c}});var r=n(66703),i=n(85355);let o=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(r,i,o);return o},s=e=>e?o(e):o,{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:l}=i,u=e=>e;function c(e,t=u,n){let r=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return a(r),r}let d=(e,t)=>{let n=s(e),r=(e,r=t)=>c(n,e,r);return Object.assign(r,n),r},f=(e,t)=>e?d(e,t):d}}]);
|