recce-nightly 1.7.0.20250608__py3-none-any.whl → 1.7.0.20250609__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of recce-nightly might be problematic. Click here for more details.
- recce/VERSION +1 -1
- recce/cli.py +126 -0
- recce/data/404.html +2 -2
- recce/data/_next/static/chunks/402-8636abe5d238aff6.js +9 -0
- recce/data/_next/static/chunks/711-e33b196232addaf6.js +1 -0
- recce/data/_next/static/chunks/app/{layout-c76e6ca2ce9857e9.js → layout-85508f342aee398d.js} +1 -1
- recce/data/_next/static/chunks/app/page-dcb00db748dcd94c.js +1 -0
- recce/data/_next/static/chunks/webpack-741f2f465598ee9c.js +1 -0
- recce/data/index.html +2 -2
- recce/data/index.txt +3 -3
- {recce_nightly-1.7.0.20250608.dist-info → recce_nightly-1.7.0.20250609.dist-info}/METADATA +1 -1
- {recce_nightly-1.7.0.20250608.dist-info → recce_nightly-1.7.0.20250609.dist-info}/RECORD +18 -19
- recce/data/_next/static/chunks/316-9e0164c48e40d69b.js +0 -9
- recce/data/_next/static/chunks/6ef81909-694dc38134099299.js +0 -1
- recce/data/_next/static/chunks/711-3014d4c850eeba80.js +0 -1
- recce/data/_next/static/chunks/app/page-e0d6a05d923c9e17.js +0 -1
- recce/data/_next/static/chunks/webpack-8442f6926a7a34ce.js +0 -1
- /recce/data/_next/static/{jCVil-Iv5VJuxce34zdSo → UagUixLmMCnvbUQpJdutM}/_buildManifest.js +0 -0
- /recce/data/_next/static/{jCVil-Iv5VJuxce34zdSo → UagUixLmMCnvbUQpJdutM}/_ssgManifest.js +0 -0
- {recce_nightly-1.7.0.20250608.dist-info → recce_nightly-1.7.0.20250609.dist-info}/WHEEL +0 -0
- {recce_nightly-1.7.0.20250608.dist-info → recce_nightly-1.7.0.20250609.dist-info}/entry_points.txt +0 -0
- {recce_nightly-1.7.0.20250608.dist-info → recce_nightly-1.7.0.20250609.dist-info}/licenses/LICENSE +0 -0
- {recce_nightly-1.7.0.20250608.dist-info → recce_nightly-1.7.0.20250609.dist-info}/top_level.txt +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[316],{4874:function(e,t,n){"use strict";n.d(t,{IH:function(){return rp},S1:function(){return rv},j:function(){return rm}});var r,i,o,a,s,u,l,c,d,f,h,p,v,m,g,y,b,w,x,S,E,k,C=n(38231),_=n(95379),O=n(55199),P=n(37843),I=function(){var e,t=(0,P.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=R(n[0]),i=R(n[1]);return i&&(e[r]=i),e},{}):{}},R=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},T=n(56493),A=n(98018),M=n(68501),j=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},N=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=A.q.Unknown),{event:e,code:t,message:n}},L=n(50119),D=(0,_.ev)([],(0,_.CR)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),F=function(e){var t,n=(0,P.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,_.ev)([],(0,_.CR)(r.entries()),!1).map(function(e){var t=(0,_.CR)(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?"-".concat(D[r]):D[r]}).join("")};function B(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var V=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,_.mG)(this,void 0,void 0,function(){var n,r=this;return(0,_.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(M.f1,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=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,_.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,_.Jh)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),[4,j(t,this.config.flushQueueSize).reduce(function(t,n){return(0,_.mG)(r,void 0,void 0,function(){return(0,_.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,_.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,_.Jh)(this,function(a){switch(a.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,_._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,a.label=1;case 1:return a.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=a.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(B(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var s;return o=(s=a.sent())instanceof Error?s.message:String(s),this.config.loggerProvider.error(o),this.handleResponse({status:A.q.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case A.q.Success:this.handleSuccessResponse(e,t);break;case A.q.Invalid:this.handleInvalidResponse(e,t);break;case A.q.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case A.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,_.ev)((0,_.ev)((0,_.ev)((0,_.ev)([],(0,_.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,_.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,_.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,_.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,a=new Set(r),s=new Set(i),u=new Set(o),l=t.filter(function(t,r){if(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return u.has(r)&&(t.timeout=n.throttleTimeout),!0});l.length>0&&this.config.loggerProvider.warn(B(e));var c=this.removeEventsExceedFlushMaxRetries(l);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(N(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),U=function(){function e(){this.name="identity",this.type="before",this.identityStore=(0,T.bM)().identityStore}return e.prototype.execute=function(e){return(0,_.mG)(this,void 0,void 0,function(){var t;return(0,_.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return e.instanceName&&(this.identityStore=(0,T.bM)(e.instanceName).identityStore),[2]})})},e}(),z=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,_.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&z(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return z(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,_.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(p.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(p.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(p.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(p.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(p.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(p.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(p.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(p.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(p.UNSET,e,M.q$),this},e.prototype.clearAll=function(){return this._properties={},this._properties[p.CLEAR_ALL]=M.q$,this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[p.CLEAR_ALL]||this._propertySet.has(t))&&(e===p.ADD?"number"==typeof n:e===p.UNSET||e===p.REMOVE||q(t,n))},e}();(r=p||(p={})).SET="$set",r.SET_ONCE="$setOnce",r.ADD="$add",r.APPEND="$append",r.PREPEND="$prepend",r.REMOVE="$remove",r.PREINSERT="$preInsert",r.POSTINSERT="$postInsert",r.UNSET="$unset",r.CLEAR_ALL="$clearAll";var $=[p.CLEAR_ALL,p.UNSET,p.SET,p.SET_ONCE,p.ADD,p.APPEND,p.PREPEND,p.PREINSERT,p.POSTINSERT,p.REMOVE],Z=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 z(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,_.pi)({},this.properties):{};return e[v.REVENUE_PRODUCT_ID]=this.productId,e[v.REVENUE_QUANTITY]=this.quantity,e[v.REVENUE_PRICE]=this.price,e[v.REVENUE_TYPE]=this.revenueType,e[v.REVENUE_CURRENCY]=this.currency,e[v.REVENUE]=this.revenue,e[v.RECEIPT]=this.receipt,e[v.RECEIPT_SIG]=this.receiptSig,e},e}();(i=v||(v={})).REVENUE_PRODUCT_ID="$productId",i.REVENUE_QUANTITY="$quantity",i.REVENUE_PRICE="$price",i.REVENUE_TYPE="$revenueType",i.REVENUE_CURRENCY="$currency",i.REVENUE="$revenue",i.RECEIPT="$receipt",i.RECEIPT_SIG="$receiptSig";var G=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};(o=m||(m={})).SET="$set",o.SET_ONCE="$setOnce",o.ADD="$add",o.APPEND="$append",o.PREPEND="$prepend",o.REMOVE="$remove",o.PREINSERT="$preInsert",o.POSTINSERT="$postInsert",o.UNSET="$unset",o.CLEAR_ALL="$clearAll",(a=g||(g={})).IDENTIFY="$identify",a.GROUP_IDENTIFY="$groupidentify",a.REVENUE="revenue_amount";var H=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,_.mG)(this,void 0,void 0,function(){return(0,_.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,_.mG)(this,void 0,void 0,function(){var r,i;return(0,_.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,_.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,l,c,d,f,h,p;return(0,_.Jh)(this,function(v){switch(v.label){case 0:if(!e)return[2];t=(0,_.CR)(e,1)[0],n=(0,_.CR)(e,2)[1],r=this.plugins.filter(function(e){return"before"===e.type}),v.label=1;case 1:v.trys.push([1,6,7,8]),o=(i=(0,_.XA)(r)).next(),v.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute((0,_.pi)({},t))];case 3:if(null===(s=v.sent()))return n({event:t,code:0,message:""}),[2];t=s,v.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return d={error:v.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:u=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),v.label=9;case 9:v.trys.push([9,14,15,16]),c=(l=(0,_.XA)(u)).next(),v.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute((0,_.pi)({},t))];case 11:if(null===(s=v.sent()))return n({event:t,code:0,message:""}),[2];t=s,v.label=12;case 12:return c=l.next(),[3,10];case 13:return[3,16];case 14:return h={error:v.sent()},[3,16];case 15:try{c&&!c.done&&(p=l.return)&&p.call(l)}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,_.pi)({},t);return e.execute(n).catch(function(e){return N(n,0,String(e))})})).then(function(e){var r=(0,_.CR)(e,1)[0]||N(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,_.mG)(this,void 0,void 0,function(){var e,t=this;return(0,_.Jh)(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onIdentityChanged)||void 0===n||n.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onSessionIdChanged)||void 0===n||n.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onOptOutChanged)||void 0===n||n.call(t,e)})},e}(),K=function(e,t){return(0,_.pi)((0,_.pi)({},t),{event_type:g.IDENTIFY,user_properties:e.getUserProperties()})},Y=function(e,t,n,r){var i;return(0,_.pi)((0,_.pi)({},r),{event_type:g.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},J=function(e,t,n){var r,i=new W;return i.set(e,t),(0,_.pi)((0,_.pi)({},n),{event_type:g.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},X=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new H(this),this.name=e}return e.prototype._init=function(e){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.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,_.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a;return(0,_.Jh)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),r=(n=(0,_.XA)(t)).next(),s.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,_.pi)((0,_.pi)((0,_.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return(0,O.S)(this.dispatch(r))},e.prototype.identify=function(e,t){var n=K(e,t);return(0,O.S)(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=Y(e,t,n,r);return(0,O.S)(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=J(e,t,n);return(0,O.S)(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,_.pi)((0,_.pi)({},t),{event_type:g.REVENUE,event_properties:e.getEventProperties()});return(0,O.S)(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),(0,O.S)())},e.prototype._addPlugin=function(e){return(0,O.S)(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),(0,O.S)())},e.prototype._removePlugin=function(e){return(0,O.S)(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(N(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,_.mG)(this,void 0,void 0,function(){var t=this;return(0,_.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(m).includes(t)||(n[t]=e[t])}),$.forEach(function(n){if(Object.keys(e).includes(n)){var r=e[n];switch(n){case m.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case m.UNSET:Object.keys(r).forEach(function(e){delete t[e]});break;case m.SET:Object.assign(t,r)}}}),Object.assign(t,n),t},e.prototype.process=function(e){return(0,_.mG)(this,void 0,void 0,function(){var t,n,r;return(0,_.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,N(e,0,"Event skipped due to optOut config")];return e.event_type===g.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)];case 1:return 200===(n=i.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return r=String(i.sent()),this.config.loggerProvider.error(r),[2,n=N(e,0,r)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return(0,O.S)(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});if(void 0===t){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e));return}return t},e}(),Q=function(e,t,n){if("boolean"==typeof e)return e;if(null!==e&&"object"==typeof e){if(!1===e[t])return!1;if(void 0===e[t])return n}return!0},ee=function(e){return Q(e,"attribution",!0)},et=function(e){return Q(e,"pageViews",!0)},en=function(e){return Q(e,"sessions",!0)},er=function(e){return Q(e,"networkTracking",!1)},ei=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},eo=function(e){if(ei(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},ea=function(e){if(er(e.autocapture)&&e.networkTrackingOptions)return e.networkTrackingOptions},es=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return et(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},eu=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,a=r.resolve,s=e&&e[i];if("function"==typeof s){var u=s.apply(e,o);"function"==typeof a&&a(null==u?void 0:u.promise)}}return e},el=function(e){return e&&void 0!==e._q},ec=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},ed="2.17.3",ef=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(ed),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,n;return(0,_.mG)(this,void 0,void 0,function(){var r,i,o;return(0,_.Jh)(this,function(a){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,_.pi)((0,_.pi)((0,_.pi)((0,_.pi)((0,_.pi)((0,_.pi)((0,_.pi)((0,_.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:r},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:ec()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id: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}(),eh=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,_.mG)(this,void 0,void 0,function(){var t;return(0,_.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,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),ep=n(34102),ev=n(45745),em=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[M.xp,t,e.substring(0,n)].filter(Boolean).join("_")},eg=function(){function e(e){this.options=(0,_.pi)({},e)}return e.prototype.isEnabled=function(){return(0,_.mG)(this,void 0,void 0,function(){var t,n;return(0,_.Jh)(this,function(r){switch(r.label){case 0:if(!(0,P.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,_.mG)(this,void 0,void 0,function(){var n,r;return(0,_.Jh)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!==(t=ey(n))&&void 0!==t?t:eb(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t,n;return(0,_.mG)(this,void 0,void 0,function(){var r,i;return(0,_.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=(0,P.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,_.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u,l;return(0,_.Jh)(this,function(c){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?r:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+864e5*i),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(u=(0,P.l)())&&(u.document.cookie=s)}catch(t){l=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(l))}return[2]})})},e.prototype.remove=function(e){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.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,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(e){return[2]})})},e}(),ey=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eb=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},ew=n(4481),ex=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,_.mG)(this,void 0,void 0,function(){var t,n,r;return(0,_.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,_.mG)(this,void 0,void 0,function(){var t;return(0,_.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,_.mG)(this,void 0,void 0,function(){return(0,_.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,_.mG)(this,void 0,void 0,function(){return(0,_.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,_.mG)(this,void 0,void 0,function(){return(0,_.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,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),eS=function(e){function t(t){var n,r,i,o=this;try{i=null===(n=(0,P.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,_.ZT)(t,e),t.prototype.set=function(t,n){var r;return(0,_.mG)(this,void 0,void 0,function(){var i;return(0,_.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return i=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(r=this.loggerProvider)||void 0===r||r.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(ex),eE=function(e){function t(){var t;return e.call(this,null===(t=(0,P.l)())||void 0===t?void 0:t.sessionStorage)||this}return(0,_.ZT)(t,e),t}(ex),ek=n(35077),eC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,_.ZT)(t,e),t.prototype.send=function(e,t){return(0,_.mG)(this,void 0,void 0,function(){var n=this;return(0,_.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,_.ZT)(t,e),t.prototype.send=function(e,t){return(0,_.mG)(this,void 0,void 0,function(){var n=this;return(0,_.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=(0,P.l)();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(ek.d),eO=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},eP=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},eI="[Amplitude]",eR="".concat(eI," Form Started"),eT="".concat(eI," Form Submitted"),eA="".concat(eI," File Downloaded"),eM="session_start",ej="session_end",eN="".concat(eI," File Extension"),eL="".concat(eI," File Name"),eD="".concat(eI," Link ID"),eF="".concat(eI," Link Text"),eB="".concat(eI," Link URL"),eV="".concat(eI," Form ID"),eU="".concat(eI," Form Name"),ez="".concat(eI," Form Destination"),eq="cookie",eW=function(e){function t(t,n,r,i,o,a,s,u,l,c,d,f,h,p,v,m,g,y,b,w,x,S,E,k,C,_,O,P,I,R,T,A,M,j,N){void 0===r&&(r=new eh),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===u&&(u=1e3),void 0===l&&(l=5),void 0===c&&(c=30),void 0===d&&(d=eq),void 0===m&&(m=new ep.Y),void 0===g&&(g=ev.i.Warn),void 0===b&&(b=!1),void 0===w&&(w=!1),void 0===E&&(E=""),void 0===k&&(k="US"),void 0===_&&(_=18e5),void 0===O&&(O=new eS({loggerProvider:m})),void 0===P&&(P={ipAddress:!0,language:!0,platform:!0}),void 0===I&&(I="fetch"),void 0===R&&(R=!1),void 0===T&&(T=!0);var L=e.call(this,{apiKey:t,storageProvider:O,transportProvider:eZ(I)})||this;return L.apiKey=t,L.appVersion=n,L.cookieOptions=i,L.defaultTracking=o,L.autocapture=a,L.flushIntervalMillis=u,L.flushMaxRetries=l,L.flushQueueSize=c,L.identityStorage=d,L.ingestionMetadata=f,L.instanceName=h,L.loggerProvider=m,L.logLevel=g,L.minIdLength=y,L.offline=b,L.partnerId=x,L.plan=S,L.serverUrl=E,L.serverZone=k,L.sessionTimeout=_,L.storageProvider=O,L.trackingOptions=P,L.transport=I,L.useBatch=R,L.fetchRemoteConfig=T,L.networkTrackingOptions=N,L.version=ed,L._optOut=!1,L._cookieStorage=r,L.deviceId=s,L.lastEventId=p,L.lastEventTime=v,L.optOut=w,L.sessionId=C,L.pageCounter=M,L.userId=A,L.debugLogsEnabled=j,L.loggerProvider.enable(j?ev.i.Debug:L.logLevel),L.networkTrackingOptions=N,L}return(0,_.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),e$=function(e,t){switch(void 0===e&&(e=eq),void 0===t&&(t={}),e){case"localStorage":return new eS;case"sessionStorage":return new eE;case"none":return new eh;default:return new eg((0,_.pi)((0,_.pi)({},t),{expirationDays:t.expiration}))}},eZ=function(e){return"xhr"===e?new eC:"beacon"===e?new e_:new ew.V},eG=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},eH=function(){var e,t=eG();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=eK(n[0]),i=eK(n[1]);return i&&(e[r]=i),e},{}):{}},eK=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},eY="dclid",eJ="fbclid",eX="gbraid",eQ="gclid",e0="ko_click_id",e1="li_fat_id",e2="msclkid",e3="rtd_cid",e5="ttclid",e4="twclid",e6="wbraid",e8={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},e7=function(){function e(){}return e.prototype.parse=function(){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(e){return[2,(0,_.pi)((0,_.pi)((0,_.pi)((0,_.pi)({},e8),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=eH();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=eH();return(e={})[eY]=t[eY],e[eJ]=t[eJ],e[eX]=t[eX],e[eQ]=t[eQ],e[e0]=t[e0],e[e1]=t[e1],e[e2]=t[e2],e[e3]=t[e3],e[e5]=t[e5],e[e4]=t[e4],e[e6]=t[e6],e},e}();(s=y||(y={})).SET="$set",s.SET_ONCE="$setOnce",s.ADD="$add",s.APPEND="$append",s.PREPEND="$prepend",s.REMOVE="$remove",s.PREINSERT="$preInsert",s.POSTINSERT="$postInsert",s.UNSET="$unset",s.CLEAR_ALL="$clearAll",(u=b||(b={})).REVENUE_PRODUCT_ID="$productId",u.REVENUE_QUANTITY="$quantity",u.REVENUE_PRICE="$price",u.REVENUE_TYPE="$revenueType",u.REVENUE_CURRENCY="$currency",u.REVENUE="$revenue",(l=w||(w={})).IDENTIFY="$identify",l.GROUP_IDENTIFY="$groupidentify",l.REVENUE="revenue_amount";var e9=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},te=function(e){void 0===e&&(e={});var t,n,r,i=eG(),o=void 0,a=e.trackOn,s=e.trackHistoryChanges,u=e.eventType,l=void 0===u?"[Amplitude] Page Viewed":u,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,_.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,_.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:l},t=[{}],[4,tt()];case 1:return[2,(n.event_properties=_.pi.apply(void 0,[_.pi.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return(0,_.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,_.Jh)(this,function(a){switch(a.label){case 0:if(n=tr(s,e=location.href,h||"")&&f(),h=e,!n)return[3,4];if(null==o||o.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return i=(r=t).track,[4,d()];case 2:i.apply(r,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},v=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return(0,_.mG)(void 0,void 0,void 0,function(){var s,u;return(0,_.Jh)(this,function(l){switch(l.label){case 0:if(t=a,r=e,(o=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),i&&(i.addEventListener("popstate",v),n=i.history.pushState,i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,n){var r=(0,_.CR)(n,3),i=r[0],o=r[1],a=r[2];e.apply(t,[i,o,a]),p()}})),!f())return[3,2];return o.log("Tracking page view event"),u=(s=t).track,[4,d()];case 1:u.apply(s,[l.sent()]),l.label=2;case 2:return[2]}})})},execute:function(e){return(0,_.mG)(void 0,void 0,void 0,function(){var t;return(0,_.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===a&&tn(e)))return[3,2];return null==o||o.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=(0,_.pi)((0,_.pi)({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===l&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,_.pi)((0,_.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",v),n&&(i.history.pushState=n)),[2]})})}}},tt=function(){return(0,_.mG)(void 0,void 0,void 0,function(){var e;return(0,_.Jh)(this,function(t){switch(t.label){case 0:return e=e9,[4,new e7().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tn=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[y.SET]||{},r=t[y.UNSET]||{},i=(0,_.ev)((0,_.ev)([],(0,_.CR)(Object.keys(n)),!1),(0,_.CR)(Object.keys(r)),!1);return Object.keys(e8).every(function(e){return i.includes(e)})}return!1},tr=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n},ti=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return(0,_.mG)(void 0,void 0,void 0,function(){var i,o;return(0,_.Jh)(this,function(a){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=ta(e);t||r.track(eR,((n={})[eV]=to(e.id),n[eU]=to(e.name),n[ez]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=ta(e);t||r.track(eR,((n={})[eV]=to(e.id),n[eU]=to(e.name),n[ez]=o,n)),r.track(eT,((i={})[eV]=to(e.id),i[eU]=to(e.name),i[ez]=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,P.l)())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},to=function(e){if("string"==typeof e)return e},ta=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,_.mG)(void 0,void 0,void 0,function(){var i,o;return(0,_.Jh)(this,function(a){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),a=null==i?void 0:i[1];a&&n(e,"click",function(){var n;a&&r.track(eA,((n={})[eN]=a,n[eL]=t.pathname,n[eD]=e.id,n[eF]=e.text,n[eB]=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,P.l)())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tu=!1,tl=function(e){tu||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."),tu=!0)},tc=function(){var e=(0,P.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,_.mG)(void 0,void 0,void 0,function(){return(0,_.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,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(e){return r(),[2]})})}}};(c=x||(x={})).Unknown="unknown",c.Skipped="skipped",c.Success="success",c.RateLimit="rate_limit",c.PayloadTooLarge="payload_too_large",c.Invalid="invalid",c.Failed="failed",c.Timeout="Timeout",c.SystemError="SystemError",(d=S||(S={})).US="US",d.EU="EU";var td="Remote config fetch rejected due to timeout after 5 seconds",tf="Unexpected error occurred",th=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,_.mG)(r,void 0,void 0,function(){var r,i,o;return(0,_.Jh)(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,_.mG)(r,void 0,void 0,function(){var t,n,r;return(0,_.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,_.mG)(r,void 0,void 0,function(){var n,r,i,o,a,s,u,l,c,d,f;return(0,_.Jh)(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:td})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,_.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,(0,_.pi)((0,_.pi)({},a),{signal:e}))];case 2:if(null===(u=h.sent()))return[2,this.completeRequest({err:tf})];switch(new ek.d().buildStatus(u.status)){case x.Success:return this.attempts=0,[2,this.parseAndStoreConfig(u)];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(l=h.sent(),e.aborted)return[2,this.completeRequest({err:td})];return[2,this.completeRequest({err:null!==(f=l.message)&&void 0!==f?f:tf})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,_.mG)(r,void 0,void 0,function(){var n=this;return(0,_.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,_.mG)(r,void 0,void 0,function(){var t;return(0,_.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===S.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===S.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),tp=function(e){var t=e.localConfig,n=e.configKeys;return(0,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(e){return[2,new th({localConfig:t,configKeys:n})]})})},tv=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,_.mG)(this,void 0,void 0,function(){var e;return(0,_.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,tp({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var e,t,n,r,i,o;return(0,_.mG)(this,void 0,void 0,function(){var a,s,u,l,c,d,f,h,p,v,m,g,y;return(0,_.Jh)(this,function(b){switch(b.label){case 0:if(b.trys.push([0,3,,4]),!(s=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:s=b.sent(),b.label=2;case 2:if(a=s,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(a,null,2)),a&&"autocapture"in a){if("boolean"==typeof a.autocapture&&(this.config.autocapture=a.autocapture),"object"==typeof a.autocapture){if(u=(0,_.pi)({},a.autocapture),void 0===this.config.autocapture&&(this.config.autocapture=a.autocapture),"object"==typeof a.autocapture.elementInteractions&&(null===(e=a.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===e?void 0:e.length)){u.elementInteractions=(0,_.pi)({},a.autocapture.elementInteractions),c=null!==(t=(l=u.elementInteractions).pageUrlAllowlist)&&void 0!==t?t:[],d=[];try{for(h=(f=(0,_.XA)(a.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){g={error:e}}finally{try{h&&!h.done&&(y=f.return)&&y.call(f)}finally{if(g)throw g.error}}v=c.concat(d),l.pageUrlAllowlist=v,delete l.pageUrlAllowlistRegex}"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,_.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},u)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,_.pi)((0,_.pi)({},this.config.autocapture),u))}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 m=b.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",m),[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=["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",tE={US:tS,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tk=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tC(e){return"function"==typeof e}function t_(e){return tC(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 tP=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 tR=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var a=(0,_.XA)(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)}var u=this.initialTeardown;if(tC(u))try{u()}catch(e){i=e instanceof tP?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var c=(0,_.XA)(l),d=c.next();!d.done;d=c.next()){var f=d.value;try{tM(f)}catch(e){i=null!=i?i:[],e instanceof tP?i=(0,_.ev)((0,_.ev)([],(0,_.CR)(i)),(0,_.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 tP(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}(),tT=tR.EMPTY;function tA(e){return e instanceof tR||e&&"closed"in e&&tC(e.remove)&&tC(e.add)&&tC(e.unsubscribe)}function tM(e){tC(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,_.ev)([e,t],(0,_.CR)(n))):setTimeout.apply(void 0,(0,_.ev)([e,t],(0,_.CR)(n)))},clearTimeout:function(e){var t=tN.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tL(e){tN.setTimeout(function(){var t=tj.onUnhandledError;if(t)t(e);else throw e})}function tD(){}var tF=tB("C",void 0,void 0);function tB(e,t,n){return{kind:e,value:t,error:n}}var tV=null;function tU(e){if(tj.useDeprecatedSynchronousErrorHandling){var t=!tV;if(t&&(tV={errorThrown:!1,error:null}),e(),t){var n=tV,r=n.errorThrown,i=n.error;if(tV=null,r)throw i}}else e()}var tz=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tA(t)&&t.add(n)):n.destination=tK,n}return(0,_.ZT)(t,e),t.create=function(e,t,n){return new tZ(e,t,n)},t.prototype.next=function(e){this.isStopped?tH(tB("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?tH(tB("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?tH(tF,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}(tR),tq=Function.prototype.bind;function tW(e,t){return tq.call(e,t)}var t$=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}(),tZ=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;return tC(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&tj.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&tW(t.next,o),error:t.error&&tW(t.error,o),complete:t.complete&&tW(t.complete,o)}):i=t,a.destination=new t$(i),a}return(0,_.ZT)(t,e),t}(tz);function tG(e){tj.useDeprecatedSynchronousErrorHandling?tj.useDeprecatedSynchronousErrorHandling&&tV&&(tV.errorThrown=!0,tV.error=e):tL(e)}function tH(e,t){var n=tj.onStoppedNotification;n&&tN.setTimeout(function(){return n(e,t)})}var tK={closed:!0,next:tD,error:function(e){throw e},complete:tD},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 tz||r&&tC(r.next)&&tC(r.error)&&tC(r.complete)&&tA(r)?e:new tZ(e,t,n);return tU(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 tZ({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&&tC(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 tC(null==e?void 0:e[t2])}function t5(e){return(0,_.FC)(this,arguments,function(){var t,n,r;return(0,_.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,_.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,_.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,_.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 tC(null==e?void 0:e.getReader)}function t6(e){if(e instanceof tX)return e;if(null!=e){if(tC(e[tY]))return new tX(function(t){var n=e[tY]();if(tC(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(tk(e))return new tX(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(t_(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,tL)});if(t0(e))return t8(e);if(t3(e))return new tX(function(t){var n,r;try{for(var i=(0,_.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(t4(e))return t8(t5(e))}throw t1(e)}function t8(e){return new tX(function(t){(function(e,t){var n,r,i,o;return(0,_.mG)(this,void 0,void 0,function(){var a;return(0,_.Jh)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=(0,_.KL)(e),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function t7(e){return function(t){if(tC(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 t9(e,t,n,r,i){return new ne(e,t,n,r,i)}var ne=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,_.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}(tz);function nt(e,t){return t7(function(n,r){var i=0;n.subscribe(t9(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),tC(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),t7(function(t,r){var i,o,a,s,u,l,c,d,f;return i=n,a=[],s=0,u=0,l=!1,c=function(){!l||a.length||s||r.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var n=!1;t6(e(t,u++)).subscribe(t9(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(t9(r,d,function(){l=!0,c()})),function(){}}))}var ni=Array.isArray,no=["addListener","removeListener"],na=["addEventListener","removeEventListener"],ns=["on","off"];function nu(e,t,n,r){if(tC(n)&&(r=n,n=void 0),r)return nu(e,t,n).pipe((i=r,nt(function(e){return ni(e)?i.apply(void 0,(0,_.ev)([],(0,_.CR)(e))):i(e)})));var i,o=(0,_.CR)(tC(e.addEventListener)&&tC(e.removeEventListener)?na.map(function(r){return function(i){return e[r](t,i,n)}}):tC(e.addListener)&&tC(e.removeListener)?no.map(nl(e,t)):tC(e.on)&&tC(e.off)?ns.map(nl(e,t)):[],2),a=o[0],s=o[1];if(!a&&tk(e))return nr(function(e){return nu(e,t,n)})(t6(e));if(!a)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 a(t),function(){return s(t)}})}function nl(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,_.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;tU(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,_.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;tU(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;tU(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?tT:(this.currentObservers=null,i.push(e),new tR(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,_.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:tT},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,a=void 0===o||o,s=e.resetOnRefCountZero,u=void 0===s||s;return function(e){var t,r,o,s=0,l=!1,c=!1,d=function(){null==r||r.unsubscribe(),r=void 0},f=function(){d(),t=o=void 0,l=c=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return t7(function(e,p){s++,c||l||d();var v=o=null!=o?o:n();p.add(function(){0!=--s||c||l||(r=np(h,u))}),v.subscribe(p),!t&&s>0&&(t=new tZ({next:function(e){return v.next(e)},error:function(e){c=!0,d(),r=np(f,i,e),v.error(e)},complete:function(){l=!0,d(),r=np(f,a),v.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 tZ({next:function(){i.unsubscribe(),e()}});return t6(t.apply(void 0,(0,_.ev)([],(0,_.CR)(n)))).subscribe(i)}}var nv=["input","select","textarea"],nm=function(e,t){return function(n,r){var i,o,a,s=e.pageUrlAllowlist,u=e.shouldTrackEventResolver,l=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(!l)return!1;if(u)return u(n,r);if(!nw(window.location.href,s))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}))return!1;switch(l){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null===(a=null==window?void 0:window.getComputedStyle)||void 0===a?void 0:a.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},ng=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!nv.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(ng).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 ng(r)?r:""}return nS(n)},nE=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:nE(null==e?void 0:e.parentElement,t):null},nk=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))},nC=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},n_=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,a){r.requestCallbacks[i]={resolve:t,reject:a},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,a=n.cssSelectorAllowlist,s=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tS&&(this.endpoint=i);var u=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,l,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f){if("id"in d)null===(l=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===l||l.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;u=null===(e=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:nk,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:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null===(c=null==u?void 0:u.close)||void 0===c||c.call(u))}}}),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"],nP=["type"],nI=["svg","path","g"],nR=["password","hidden"];function nT(e,t){return t7(function(n,r){var i=0;n.subscribe(t9(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var nA=function(e){function t(t,n){return e.call(this)||this}return(0,_.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(tR),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,_.ev)([e,t],(0,_.CR)(n))):setInterval.apply(void 0,(0,_.ev)([e,t],(0,_.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,_.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}(nA),nN={now:function(){return(nN.delegate||Date).now()},delegate:void 0},nL=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}(),nD=new(function(e){function t(t,n){void 0===n&&(n=nL.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,_.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}(nL))(nj);function nF(e){return void 0===e&&(e=1/0),nr(tJ,e)}var nB=new tX(function(e){return e.complete()});function nV(e){return e&&tC(e.schedule)}function nU(e){return e[e.length-1]}function nz(e){return nV(nU(e))?e.pop():void 0}function nq(e,t){return void 0===t&&(t=0),t7(function(n,r){n.subscribe(t9(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 nW(e,t){return void 0===t&&(t=0),t7(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function n$(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 nZ(e,t){return t?function(e,t){if(null!=e){if(tC(e[tY]))return t6(e).pipe(nW(t),nq(t));if(tk(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(t_(e))return t6(e).pipe(nW(t),nq(t));if(t0(e))return n$(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 tC(null==r?void 0:r.return)&&r.return()}});if(t4(e))return n$(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=nz(t),i=(e=1/0,"number"==typeof nU(t)?t.pop():e);return t.length?1===t.length?t6(t[0]):nF(i)(nZ(t,r)):nB}function nH(e){return e<=0?function(){return nB}:t7(function(t,n){var r=0;t.subscribe(t9(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?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new n_}:a;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tm,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:tg,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var u="@amplitude/plugin-autocapture-browser",l=[],c=function(){var e,t,n=nu(document,"click",{capture:!0}).pipe(nt(function(e){return f(e,"click")}),nh()),r=nu(document,"change",{capture:!0}).pipe(nt(function(e){return f(e,"change")}),nh());window.navigation&&(t=nu(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,a,s=null===(a=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===a?void 0:a.call(i),u="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},l=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,_.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,_.CR)(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(n).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,a,s=String(e.tagName).toLowerCase(),u={tag:s},l=Array.from(null!==(i=null===(r=e.parentElement)||void 0===r?void 0:r.children)&&void 0!==i?i:[]);l.length&&(u.index=l.indexOf(e),u.indexOfType=l.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null===(a=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase();c&&(u.prevSib=String(c));var d=e.getAttribute("id");d&&(u.id=String(d));var f=Array.from(e.classList);f.length&&(u.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!nO.includes(e.name)}),v=!ny(e);if(!nR.includes(String(e.getAttribute("type")))&&!nI.includes(s))try{for(var m=(0,_.XA)(p),g=m.next();!g.done;g=m.next()){var y=g.value;(!v||nP.includes(y.name))&&(h[y.name]=String(y.value).substring(0,128))}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return Object.keys(h).length&&(u.attrs=h),u}(e)}),0):[],r[tb]=s,r[tw]=nb(t),r["[Amplitude] Element Position Left"]=null==u.left?null:Math.round(u.left),r["[Amplitude] Element Position Top"]=null==u.top?null:Math.round(u.top),r["[Amplitude] Element Aria Label"]=l,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"===s&&"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=nE(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=d(r.type,i))}return r};return{name:u,type:"enrichment",setup:function(t,n){return(0,_.mG)(void 0,void 0,void 0,function(){var r,i,o,a,f,h,p,v,m,g;return(0,_.Jh)(this,function(y){var b,w,x,S,E,k,C,O,P,I,R,T,A,M,j,N,L,D,F,B,V,U,z,q,W,$,Z,G,H,K,Y,J,X,Q;return"undefined"==typeof document||(r=nm(e,e.cssSelectorAllowlist),i=nm(e,e.actionClickAllowlist),w=(b={allObservables:o=c(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,x=b.allObservables,S=b.options,E=b.shouldTrackEvent,P=nG((k=x.clickObservable).pipe(t7(function(e,t){var n,r=!1;e.subscribe(t9(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),nT(function(e){var t=(0,_.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})),k.pipe((C=S.debounceTime,void 0===O&&(O=nD),t7(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function a(){var e=i+C,r=O.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(t9(t,function(e){r=e,i=O.now(),n||(n=O.schedule(a,C),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),nt(function(){return"timeout"}))),a=k.pipe((void 0===I&&(I=nD),R=0,T=I,void 0===R&&(R=0),void 0===A&&(A=nD),M=-1,null!=T&&(nV(T)?A=T:M=T),j=new tX(function(e){var t=nK(R)?+R-A.now():R;t<0&&(t=0);var n=0;return A.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 nF(1)(nZ(e,nz(e)))}(n.pipe(nH(1),t7(function(e,t){e.subscribe(t9(t,tD))})),r.pipe(e(t)))}:nr(function(e,n){return t6(t(e,n)).pipe(nH(1),nt(function(){return e}))})}(function(){return j})),nT(nC),nT(function(e){return E("click",e.closestTrackedAncestor)}),t7(function(e,t){var n=[];return e.subscribe(t9(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),t6(P).subscribe(t9(t,function(){var e=n;n=[],t.next(e)},tD)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,ty);try{for(var i=(0,_.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==w||w.track(r,a.targetElementProperties)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),l.push(a),L=(N={allObservables:o,getEventProperties:d,amplitude:n,shouldTrackEvent:r}).amplitude,D=N.allObservables,F=N.getEventProperties,B=N.shouldTrackEvent,f=D.changeObservable.pipe(nT(nC),nT(function(e){return B("change",e.closestTrackedAncestor)})).subscribe(function(e){null==L||L.track("[Amplitude] Element Changed",F("change",e.closestTrackedAncestor))}),l.push(f),U=(V={allObservables:o,options:e,getEventProperties:d,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,z=V.allObservables,q=V.options,W=V.getEventProperties,$=V.shouldTrackEvent,Z=V.shouldTrackActionClick,G=z.clickObservable,H=z.mutationObservable,K=z.navigateObservable,Y=G.pipe(nT(function(e){return!$("click",e.closestTrackedAncestor)}),nt(function(e){var t=nE(e.event.target,q.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=W(e.type,e.closestTrackedAncestor)),e}),nT(nC),nT(function(e){return Z("click",e.closestTrackedAncestor)})),J=[H],K&&J.push(K),X=nG.apply(void 0,(0,_.ev)([],(0,_.CR)(J),!1)),h=Y.pipe((Q=function(e){return X.pipe(nH(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,a=void 0===o?nJ:o,s=n.scheduler,u=void 0===s?nD:s,l=n.meta,c=void 0===l?null:l;if(null==r&&null==i)throw TypeError("No timeout provided.");return t7(function(e,t){var n,o,s=null,l=0,d=function(e){o=nn(t,u,function(){try{n.unsubscribe(),t6(a({meta:c,lastValue:s,seen:l})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(t9(t,function(e){null==o||o.unsubscribe(),l++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),l||d(null!=r?"number"==typeof r?r:+r-u.now():i)})}({first:500,with:function(){return nB}}),nt(function(){return e}))},t7(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(t9(t,function(e){null==n||n.unsubscribe(),t6(Q(e,r++)).subscribe(n=t9(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==U||U.track(ty,W("click",e.closestTrackedAncestor))}),l.push(h),null===(m=null==t?void 0:t.loggerProvider)||void 0===m||m.log("".concat(u," has been successfully added.")),window.opener&&s.enabled&&(p=e.cssSelectorAllowlist,v=e.actionClickAllowlist,null===(g=s.messenger)||void 0===g||g.setup((0,_.pi)((0,_.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tE[t.serverZone]}),{isElementSelectable:nm(e,(0,_.ev)((0,_.ev)([],(0,_.CR)(p),!1),(0,_.CR)(v),!1)),cssSelectorAllowlist:p,actionClickAllowlist:v})))),[2]})})},execute:function(e){return(0,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,_.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,_.Jh)(this,function(i){try{for(t=(e=(0,_.XA)(l)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},nQ=function(e,t){void 0===t&&(t=F()),this.callback=e,this.id=t},n0=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1;var n,r=(0,P.l)();if(!e.isSupported()){null==t||t.error("Fetch API is not supported in this environment.");return}this.globalScope=r,this.originalFetch=null===(n=this.globalScope)||void 0===n?void 0:n.fetch}return e.isSupported=function(){var e=(0,P.l)();return!!e&&!!e.fetch},e.prototype.subscribe=function(e){this.eventCallbacks.set(e.id,e),this.isObserving||(this.observeFetch(),this.isObserving=!0)},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id),this.originalFetch&&this.globalScope&&0===this.eventCallbacks.size&&this.isObserving&&(this.globalScope.fetch=this.originalFetch,this.isObserving=!1)},e.prototype.triggerEventCallbacks=function(e){this.eventCallbacks.forEach(function(t){t.callback(e)})},e.prototype.observeFetch=function(){var e=this;if(this.globalScope&&this.originalFetch){var t=this.globalScope.fetch;this.globalScope.fetch=function(n,r){return(0,_.mG)(e,void 0,void 0,function(){var e,i,o,a,s,u,l,c,d;return(0,_.Jh)(this,function(f){switch(f.label){case 0:e=Date.now(),i=performance.now(),o={timestamp:e,startTime:e,type:"fetch",method:(null==r?void 0:r.method)||"GET",url:n.toString(),requestHeaders:null==r?void 0:r.headers,requestBodySize:function(e){var t,n,r=(0,P.l)();if(null==r?void 0:r.TextEncoder){var i=r.TextEncoder;if("string"==typeof e)return new i().encode(e).length;if(e instanceof Blob)return e.size;if(e instanceof URLSearchParams)return new i().encode(e.toString()).length;if(e instanceof ArrayBuffer)return e.byteLength;if(ArrayBuffer.isView(e))return e.byteLength;else if(e instanceof FormData){var o=0,a=0;try{for(var s=(0,_.XA)(e.entries()),u=s.next();!u.done;u=s.next()){var l=(0,_.CR)(u.value,2),c=l[0],d=l[1];if(o+=c.length,"string"==typeof d?o+=new i().encode(d).length:d.size&&(o+=d.size),++a>=100)return}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o}}}(null==r?void 0:r.body)},f.label=1;case 1:return f.trys.push([1,3,,4]),[4,t(n,r)];case 2:return a=f.sent(),o.status=a.status,o.duration=Math.floor(performance.now()-i),o.startTime=e,o.endTime=Math.floor(e+o.duration),s={},u=void 0,a.headers.forEach(function(e,t){s[t]=e,"content-length"===t&&(u=parseInt(e,10)||void 0)}),o.responseHeaders=s,o.responseBodySize=u,this.triggerEventCallbacks(o),[2,a];case 3:throw l=f.sent(),c=Date.now(),o.duration=c-e,d=l,o.error={name:d.name||"UnknownError",message:d.message||"An unknown error occurred"},this.triggerEventCallbacks(o),l;case 4:return[2]}})})}}},e}()),n1="500-599";function n2(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function n3(e,t){var n,r,i=t.split(",");try{for(var o=(0,_.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value,u=(0,_.CR)(s.split("-").map(Number),2),l=u[0],c=u[1];if(e===l&&void 0===c||e>=l&&e<=c)return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(k||(k={})).NetworkObservable="networkObservable";var n5=function(e){void 0===e&&(e={});var t="@amplitude/plugin-network-capture-browser",n=[],r=function(){var e,t=new tX(function(e){var t=new nQ(function(t){var n={event:t,timestamp:Date.now(),type:"network"};e.next(n)});return n0.subscribe(t),function(){n0.unsubscribe(t)}});return(e={})[k.NetworkObservable]=t,e};return{name:t,type:"enrichment",setup:function(i,o){return(0,_.mG)(void 0,void 0,void 0,function(){var a,s;return(0,_.Jh)(this,function(u){var l,c,d,f;return"undefined"==typeof document||(c=(l={allObservables:r(),networkTrackingOptions:e,amplitude:o}).allObservables,d=l.networkTrackingOptions,f=l.amplitude,a=c.networkObservable.pipe(nT(function(e){var t,n,r,i,o;return t=e.event,void 0===(n=d)&&(n={}),o=new URL(t.url).hostname,!(!1!==n.ignoreAmplitudeRequests&&(n2(o,"*.amplitude.com")||n2(o,"amplitude.com"))||(null===(r=n.ignoreHosts)||void 0===r?void 0:r.find(function(e){return n2(o,e)})))&&(!!n.captureRules||void 0===t.status||!!n3(t.status,n1))&&(!n.captureRules||((0,_.ev)([],(0,_.CR)(n.captureRules),!1).reverse().find(function(e){var n;return n=t.status,void 0!==(i=e.hosts&&!e.hosts.find(function(e){return n2(o,e)})?void 0:!n&&0!==n||!!n3(n,e.statusCodeRange||n1))}),!!i))})).subscribe(function(e){var t,n,r,i,o=e.event;try{r=(n=new URL(o.url)).searchParams.toString(),i=n.hash.replace("#","")}catch(e){}var a=((t={})["[Amplitude] URL"]=o.url,t["[Amplitude] URL Query"]=r,t["[Amplitude] URL Fragment"]=i,t["[Amplitude] Request Method"]=o.method,t["[Amplitude] Status Code"]=o.status,t["[Amplitude] Start Time"]=o.startTime,t["[Amplitude] Completion Time"]=o.endTime,t["[Amplitude] Duration"]=o.duration,t["[Amplitude] Request Body Size"]=o.requestBodySize,t["[Amplitude] Response Body Size"]=o.responseBodySize,t);null==f||f.track("[Amplitude] Network Request",a)}),n.push(a),null===(s=null==i?void 0:i.loggerProvider)||void 0===s||s.log("".concat(t," has been successfully added."))),[2]})})},execute:function(e){return(0,_.mG)(void 0,void 0,void 0,function(){return(0,_.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,_.mG)(void 0,void 0,void 0,function(){var e,t,r,i;return(0,_.Jh)(this,function(o){try{for(t=(e=(0,_.XA)(n)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}return[2]})})}}},n4="dclid",n6="fbclid",n8="gbraid",n7="gclid",n9="ko_click_id",re="li_fat_id",rt="msclkid",rn="rtd_cid",rr="ttclid",ri="twclid",ro="wbraid",ra={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},rs=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ru=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=(0,_._T)(e,["referrer","referring_domain"]),s=t||{},u=(s.referrer,s.referring_domain),l=(0,_._T)(s,["referrer","referring_domain"]);if(rl(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(l),d=rs(o||"")!==rs(u||""),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},rl=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},rc=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},rd=function(){function e(){}return e.prototype.parse=function(){return(0,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(e){return[2,(0,_.pi)((0,_.pi)((0,_.pi)((0,_.pi)({},ra),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=I();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=I();return(e={})[n4]=t[n4],e[n6]=t[n6],e[n8]=t[n8],e[n7]=t[n7],e[n9]=t[n9],e[re]=t[re],e[rt]=t[rt],e[rn]=t[rn],e[rr]=t[rr],e[ri]=t[ri],e[ro]=t[ro],e},e}(),rf=function(){function e(e,t){var n,r,i,o;this.shouldTrackNewCampaign=!1,this.options=(0,_.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:rc(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,i="MKTG",void 0===o&&(o=10),[M.xp,i,r.substring(0,o)].filter(Boolean).join("_")),this.currentCampaign=ra,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,_.mG)(this,void 0,void 0,function(){var e,t;return(0,_.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=_.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||G(this.sessionTimeout,this.lastEventTime),!ru(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,_.mG)(this,void 0,void 0,function(){return(0,_.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new rd().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,K(Object.entries((0,_.pi)((0,_.pi)({},ra),t)).reduce(function(e,t){var r,i=(0,_.CR)(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=a?a:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),a)?e.set(o,a):e.unset(o)},new W)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),rh=(h=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,_.ZT)(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>2?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),(0,O.S)(this._init((0,_.pi)((0,_.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,r,i;return(0,_.mG)(this,void 0,void 0,function(){var o,a,s,u,l,c=this;return(0,_.Jh)(this,function(d){var f,h,p,v,m;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,_.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,a,s,u,l,c,d,v,m,g,y,b,w,x,S,E,k,C,O,P,R,T,A,j,N,L,D,B,V,U,z,q,W,$,Z,G,H,K;return(0,_.Jh)(this,function(Y){var J,X,Q;switch(Y.label){case 0:if(e=h.identityStorage||eq,x={},!(e!==eq))return[3,1];return n="",[3,5];case 1:if(!(null!==(E=null===(S=h.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==E))return[3,2];return r=E,[3,4];case 2:return[4,(0,_.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o;return(0,_.Jh)(this,function(a){switch(a.label){case 0:return[4,new eg().isEnabled()];case 1:if(!a.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,a.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 a.sent(),[4,o.get(n)];case 4:if(!a.sent())return[3,6];return[4,o.remove(n)];case 5:return a.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=_.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=e$(h.identityStorage,t),void 0===(Q=null===(C=null===(k=h.cookieOptions)||void 0===k?void 0:k.upgrade)||void 0===C||C)&&(Q=!0),(0,_.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,a,s,u;return(0,_.Jh)(this,function(l){switch(l.label){case 0:return e="".concat(M.xp.toLowerCase(),"_").concat(f.substring(0,6)),[4,X.getRaw(e)];case 1:if(!(t=l.sent()))return[2,{optOut:!1}];if(!Q)return[3,3];return[4,X.remove(e)];case 2:l.sent(),l.label=3;case 3:return r=(n=(0,_.CR)(t.split("."),6))[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],[2,{deviceId:r,userId:eP(i),sessionId:eO(a),lastEventId:eO(u),lastEventTime:eO(s),optOut:!!o}]}})}))];case 6:return o=Y.sent(),[4,i.get(em(f))];case 7:return a=Y.sent(),s=I(),u=null!==(A=null!==(T=null!==(R=null!==(P=null!==(O=h.deviceId)&&void 0!==O?O:s.ampDeviceId)&&void 0!==P?P:s.deviceId)&&void 0!==R?R:null==a?void 0:a.deviceId)&&void 0!==T?T:o.deviceId)&&void 0!==A?A:F(),l=null!==(j=null==a?void 0:a.lastEventId)&&void 0!==j?j:o.lastEventId,c=null!==(N=null==a?void 0:a.lastEventTime)&&void 0!==N?N:o.lastEventTime,d=null!==(D=null!==(L=h.optOut)&&void 0!==L?L:null==a?void 0:a.optOut)&&void 0!==D?D:o.optOut,v=null!==(B=null==a?void 0:a.sessionId)&&void 0!==B?B:o.sessionId,m=null!==(U=null!==(V=h.userId)&&void 0!==V?V:null==a?void 0:a.userId)&&void 0!==U?U:o.userId,p.previousSessionDeviceId=null!==(z=null==a?void 0:a.deviceId)&&void 0!==z?z:o.deviceId,p.previousSessionUserId=null!==(q=null==a?void 0:a.userId)&&void 0!==q?q:o.userId,g={ipAddress:null===($=null===(W=h.trackingOptions)||void 0===W?void 0:W.ipAddress)||void 0===$||$,language:null===(G=null===(Z=h.trackingOptions)||void 0===Z?void 0:Z.language)||void 0===G||G,platform:null===(K=null===(H=h.trackingOptions)||void 0===H?void 0:H.platform)||void 0===K||K},y=null==a?void 0:a.pageCounter,b=null==a?void 0:a.debugLogsEnabled,void 0!==h.autocapture&&(h.defaultTracking=h.autocapture),[4,(w=new eW(f,h.appVersion,i,t,h.defaultTracking,h.autocapture,u,h.flushIntervalMillis,h.flushMaxRetries,h.flushQueueSize,e,h.ingestionMetadata,h.instanceName,l,c,h.loggerProvider,h.logLevel,h.minIdLength,h.offline,d,h.partnerId,h.plan,h.serverUrl,h.serverZone,v,h.sessionTimeout,h.storageProvider,g,h.transport,h.useBatch,h.fetchRemoteConfig,m,y,b,h.networkTrackingOptions)).storageProvider.isEnabled()];case 8:return Y.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new eh),[2,w]}})}))];case 1:if(!(o=d.sent()).fetchRemoteConfig)return[3,4];return[4,(v=o,(0,_.mG)(void 0,void 0,void 0,function(){var e;return(0,_.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tv(v)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:o=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,o)];case 5:if(d.sent(),this.logBrowserOptions(o),!ee(this.config.defaultTracking))return[3,7];return a=ee((m=this.config).defaultTracking)&&m.defaultTracking&&"object"==typeof m.defaultTracking&&m.defaultTracking.attribution&&"object"==typeof m.defaultTracking.attribution?(0,_.pi)({},m.defaultTracking.attribution):{},this.webAttribution=new rf(a,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(u=Number.isNaN(Number((s=I()).ampSessionId))?void 0:Number(s.ampSessionId),this.setSessionId(null!==(i=null!==(r=null!==(n=t.sessionId)&&void 0!==n?n:u)&&void 0!==r?r:this.config.sessionId)&&void 0!==i?i:Date.now()),(l=(0,T.bM)(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tc()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new V).promise];case 10:return d.sent(),[4,this.add(new ef).promise];case 11:return d.sent(),[4,this.add(new U).promise];case 12:if(d.sent(),tl(this.config),!Q(this.config.defaultTracking,"fileDownloads",!0))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(!Q(this.config.defaultTracking,"formInteractions",!0))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(ti()).promise];case 15:d.sent(),d.label=16;case 16:if(!et(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(te(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:if(!(er(this.config.autocapture)&&this.config.networkTrackingOptions))return[3,22];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(n5(ea(this.config))).promise];case 21:d.sent(),d.label=22;case 22:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return d.sent(),l.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,T.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,T.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,O.S)(Promise.resolve());if(e===this.config.sessionId)return(0,O.S)(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId();r!==e&&this.timeline.onSessionIdChanged(e);var i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,en(this.config.defaultTracking)&&(r&&i&&n.push(this.track(ej,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,n);return en(this.config.defaultTracking)&&n.push(this.track(eM,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,(0,O.S)(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=eZ(e)},t.prototype.identify=function(t,n){if(el(t)){var r=t._q;t._q=[],t=eu(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=eu(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=eu(new Z,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,_.mG)(this,void 0,void 0,function(){var n,r,i;return(0,_.Jh)(this,function(o){return n=Date.now(),r=G(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===eM||t.event_type===ej||t.session_id&&t.session_id!==this.getSessionId()||(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,_.pi)((0,_.pi)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(X)),{init:(0,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"]))}),rp=rh.add,rv=(rh.extendSession,rh.flush,rh.getDeviceId,rh.getSessionId,rh.getUserId,rh.groupIdentify,rh.identify,rh.init),rm=(rh.logEvent,rh.remove,rh.reset,rh.revenue,rh.setDeviceId,rh.setGroup,rh.setOptOut,rh.setSessionId,rh.setTransport,rh.setUserId,rh.track)},56493:function(e,t,n){"use strict";n.d(t,{bM:function(){return h},Sb:function(){return v},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}(),a=function(){return(a=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){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 u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var l=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=s(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var u=Array.isArray(e),c=Array.isArray(t);if(u!==c)return!1;if(u&&c){for(var d=0;d<e.length;d++)if(!l(e[d],t[d]))return!1}else{if(!l(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var f=!0;return Object.keys(e).forEach(function(n){l(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=a({},this.identity.userProperties),n=a(a({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,a,l,c=n.userProperties||{};try{for(var d=s(Object.entries(e)),f=d.next();!f.done;f=d.next()){var h=u(f.value,2),p=h[0],v=h[1];switch(p){case"$set":try{for(var m=(i=void 0,s(Object.entries(v))),g=m.next();!g.done;g=m.next()){var y=u(g.value,2),b=y[0],w=y[1];c[b]=w}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}break;case"$unset":try{for(var x=(a=void 0,s(Object.keys(v))),S=x.next();!S.done;S=x.next()){var b=S.value;delete c[b]}}catch(e){a={error:e}}finally{try{S&&!S.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.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 a({},this.identity)},e.prototype.setIdentity=function(e){var t=a({},this.identity);this.identity=a({},e),l(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()},v=function(e,t){h(t).identityStore.editIdentity().setDeviceId(e).commit()}},50119:function(e,t,n){"use strict";n.d(t,{De:function(){return s},Dg:function(){return l},RG:function(){return u}});var r=n(68501),i=n(34102),o=n(45745),a=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}},s=function(){function e(e){this._optOut=!1;var t,n,r,i,o=a();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 s=u(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=s.serverZone,this.serverUrl=s.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),u=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=a().serverZone),void 0===n&&(n=a().useBatch),e)return{serverUrl:e,serverZone:void 0};var i,o=["US","EU"].includes(t)?t:a().serverZone;return{serverZone:o,serverUrl:(i=n,"EU"===o?i?r.RE:r.y_:i?r.h8:r.EG)}},l=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}()},37843:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0}},34102:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(45745),i="Amplitude Logger ",o=function(){function e(){this.logLevel=r.i.None}return e.prototype.disable=function(){this.logLevel=r.i.None},e.prototype.enable=function(e){void 0===e&&(e=r.i.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Verbose||console.log("".concat(i,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Warn||console.warn("".concat(i,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Error||console.error("".concat(i,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Debug||console.log("".concat(i,"[Debug]: ").concat(e.join(" ")))},e}()},35077:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(98018),i=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,i,o,a,s,u,l,c,d,f,h,p,v,m,g,y,b,w,x,S,E,k=e.code||0,C=this.buildStatus(k);switch(C){case r.q.Success:return{status:C,statusCode:k,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:C,statusCode:k,body:{error:null!==(o=e.error)&&void 0!==o?o:"",missingField:null!==(a=e.missing_field)&&void 0!==a?a:"",eventsWithInvalidFields:null!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(u=e.events_with_missing_fields)&&void 0!==u?u:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},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!==(v=e.throttled_events)&&void 0!==v?v:[]}};case r.q.PayloadTooLarge:return{status:C,statusCode:k,body:{error:null!==(m=e.error)&&void 0!==m?m:""}};case r.q.RateLimit:return{status:C,statusCode:k,body:{error:null!==(g=e.error)&&void 0!==g?g:"",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!==(E=e.throttled_events)&&void 0!==E?E:[]}};case r.q.Timeout:default:return{status:C,statusCode:k}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?r.q.Success:429===e?r.q.RateLimit:413===e?r.q.PayloadTooLarge:408===e?r.q.Timeout:e>=400&&e<500?r.q.Invalid:e>=500?r.q.Failed:r.q.Unknown},e}()},4481:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(95379),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.send=function(e,t){return(0,r.mG)(this,void 0,void 0,function(){var n,i;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=r.sent()).text()];case 2:i=r.sent();try{return[2,this.buildResponse(JSON.parse(i))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(n(35077).d)},68501:function(e,t,n){"use strict";n.d(t,{EG:function(){return a},RE:function(){return l},f1:function(){return o},h8:function(){return u},q$:function(){return r},xp:function(){return i},y_:function(){return s}});var r="-",i="AMP",o="".concat(i,"_unsent"),a="https://api2.amplitude.com/2/httpapi",s="https://api.eu.amplitude.com/2/httpapi",u="https://api2.amplitude.com/batch",l="https://api.eu.amplitude.com/batch"},45745:function(e,t,n){"use strict";var r,i;n.d(t,{i:function(){return r}}),(i=r||(r={}))[i.None=0]="None",i[i.Error=1]="Error",i[i.Warn=2]="Warn",i[i.Verbose=3]="Verbose",i[i.Debug=4]="Debug"},98018:function(e,t,n){"use strict";var r,i;n.d(t,{q:function(){return r}}),(i=r||(r={})).Unknown="unknown",i.Skipped="skipped",i.Success="success",i.RateLimit="rate_limit",i.PayloadTooLarge="payload_too_large",i.Invalid="invalid",i.Failed="failed",i.Timeout="Timeout",i.SystemError="SystemError"},38231:function(e,t,n){"use strict";n.d(t,{w_:function(){return u},yh:function(){return o},zn:function(){return s}});var r=n(95379),i=n(45745),o=function(e){return function(){var t=(0,r.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},a=function(e,t){var n,i;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var o=(0,r.XA)(t.split(".")),a=o.next();!a.done;a=o.next()){var s=a.value;if(!(s in e))return;e=e[s]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e},s=function(e,t){return function(){var n,i,o={};try{for(var s=(0,r.XA)(t),u=s.next();!u.done;u=s.next()){var l=u.value;o[l]=a(e,l)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o}},u=function(e,t,n,r,o){return void 0===o&&(o=null),function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u=n(),l=u.logger,c=u.logLevel;if(c&&c<i.i.Debug||!c||!l)return e.apply(o,a);var d={type:"invoke public method",name:t,args:a,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,a);return f&&f.promise?f.promise.then(function(){r&&d.states&&(d.states.after=r()),d.time&&(d.time.end=new Date().toISOString()),l.debug(JSON.stringify(d,null,2))}):(r&&d.states&&(d.states.after=r()),d.time&&(d.time.end=new Date().toISOString()),l.debug(JSON.stringify(d,null,2))),f}}},55199:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var r=function(e){return{promise:e||Promise.resolve()}}},8536:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{k:function(){return t2}});var s,u,l,c,d,f,h,p,v,m,g,y,b,w,x,S,E,k,C,_,O,P,I=n(95379),R=n(38231),T=n(45745),A=n(34102),M=n(4481),j=n(50119);(s=x||(x={})).US="US",s.EU="EU",s.STAGING="STAGING";var N=n(68501),L="[Amplitude]",D="".concat(L," Session Replay ID"),F=x.US,B="".concat(L," Session Replay Debug"),V="amp-mask";N.xp,(u=S||(S={})).GET_SR_PROPS="get-sr-props",u.DEBUG_INFO="debug-info",u.FETCH_REQUEST="fetch-request";var U=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}(),z=function(){return{flushMaxRetries:2,logLevel:T.i.Warn,loggerProvider:new A.Y,transportProvider:new M.V}},q=function(e){function t(t,n){var r,i=this,o=z();return(i=e.call(this,(0,I.pi)((0,I.pi)({transportProvider:o.transportProvider,loggerProvider:new U(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||F,i.configServerUrl=n.configServerUrl,i.trackServerUrl=n.trackServerUrl,i.shouldInlineStylesheet=n.shouldInlineStylesheet,i.version=n.version,i.performanceConfig=n.performanceConfig,i.storeType=null!==(r=n.storeType)&&void 0!==r?r:"idb",n.privacyConfig&&(i.privacyConfig=n.privacyConfig),n.debugMode&&(i.debugMode=n.debugMode),n.experimental&&(i.experimental=n.experimental),i}return(0,I.ZT)(t,e),t}(j.De),W=n(37843),$=n(55199),Z=n(56493),G=n(57508);(l=E||(E={})).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 H=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,u,l,c,d,f,h,p,v,m,g,y,b,w,x,S,k=e.code||0,C=this.buildStatus(k);switch(C){case E.Success:return{status:C,statusCode:k,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 E.Invalid:return{status:C,statusCode:k,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l: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 E.PayloadTooLarge:return{status:C,statusCode:k,body:{error:null!==(v=e.error)&&void 0!==v?v:""}};case E.RateLimit:return{status:C,statusCode:k,body:{error:null!==(m=e.error)&&void 0!==m?m:"",epsThreshold:null!==(g=e.eps_threshold)&&void 0!==g?g:0,throttledDevices:null!==(y=e.throttled_devices)&&void 0!==y?y:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(x=e.exceeded_daily_quota_users)&&void 0!==x?x:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case E.Timeout:default:return{status:C,statusCode:k}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?E.Success:429===e?E.RateLimit:413===e?E.PayloadTooLarge:408===e?E.Timeout:e>=400&&e<500?E.Invalid:e>=500?E.Failed:E.Unknown},e}();(c=k||(k={})).US="US",c.EU="EU",c.STAGING="STAGING";var K="Remote config fetch rejected due to timeout after 5 seconds",Y="Unexpected error occurred",J=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,I.mG)(r,void 0,void 0,function(){var r,i,o;return(0,I.Jh)(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,I.mG)(r,void 0,void 0,function(){var t,n,r;return(0,I.Jh)(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return(0,I.mG)(r,void 0,void 0,function(){var n,r,i,o,a,s,u,l,c,d,f;return(0,I.Jh)(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:K})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,I.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,(0,I.pi)((0,I.pi)({},a),{signal:e}))];case 2:if(null===(u=h.sent()))return[2,this.completeRequest({err:Y})];switch(new H().buildStatus(u.status)){case E.Success:return this.attempts=0,[2,this.parseAndStoreConfig(u)];case E.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(l=h.sent(),e.aborted)return[2,this.completeRequest({err:K})];return[2,this.completeRequest({err:null!==(f=l.message)&&void 0!==f?f:Y})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,I.mG)(r,void 0,void 0,function(){var n=this;return(0,I.Jh)(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,I.mG)(r,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===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}(),X=function(e){var t=e.localConfig,n=e.configKeys;return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return[2,new J({localConfig:t,configKeys:n})]})})},Q=n(77918),ee="medium",et=function(e,t,n){switch(t){case"light":if("input"!==e)return!0;var r=n?(0,Q.kv)(n):"";if(!r)return!1;if(["password","hidden","email","tel"].includes(r)||n.autocomplete.startsWith("cc-"))return!0;return!1;case"medium":case"conservative":return!0;default:return et(e,ee,n)}},en=function(e,t,n){var r,i,o;if(void 0===t&&(t={defaultMaskLevel:ee}),n){if(n.closest("."+V)||(null!==(r=t.maskSelector)&&void 0!==r?r:[]).some(function(e){return n.closest(e)}))return!0;if(n.closest(".amp-unmask")||(null!==(i=t.unmaskSelector)&&void 0!==i?i:[]).some(function(e){return n.closest(e)}))return!1}return et(e,null!==(o=t.defaultMaskLevel)&&void 0!==o?o:ee,n)},er=function(e,t){return function(n,r){return en(e,t,r)?n.replace(/[^\s]/g,"*"):n}},ei=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t},eo=function(){var e=(0,W.l)();return(null==e?void 0:e.location)?e.location.href:""},ea=function(e,t){return t||(e===x.STAGING?"https://api-sr.stag2.amplitude.com/sessions/v2/track":e===x.EU?"https://api-sr.eu.amplitude.com/sessions/v2/track":"https://api-sr.amplitude.com/sessions/v2/track")},es=function(){return(0,I.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,I.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=(0,W.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:""}]}})})},eu=function(e){var t=(0,I.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},ec=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,n,r;return(0,I.mG)(this,void 0,void 0,function(){var i,o,a,s,u,l,c,d,f,h,p,v,m,g,y,b,w,x,S,E;return(0,I.Jh)(this,function(k){switch(k.label){case 0:(i=(0,I.pi)({},this.localConfig)).optOut=this.localConfig.optOut,i.captureEnabled=!0,k.label=1;case 1:return k.trys.push([1,6,,7]),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_sampling_config",e)];case 2:return a=k.sent(),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_privacy_config",e)];case 3:return s=k.sent(),u=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_interaction_config",e)];case 4:return u.interactionConfig=k.sent(),l=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_logging_config",e)];case 5:return l.loggingConfig=k.sent(),(a||s)&&(o={},a&&(o.sr_sampling_config=a),s&&(o.sr_privacy_config=s)),[3,7];case 6:return c=k.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:[]},v=function(e){var t,n,r,i,o,a,s,u,l,c={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var d=(0,I.XA)(null!==(s=e.blockSelector)&&void 0!==s?s:[]),f=d.next();!f.done;f=d.next()){var h=f.value;c[h]="block"}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}try{for(var p=(0,I.XA)(null!==(u=e.maskSelector)&&void 0!==u?u:[]),v=p.next();!v.done;v=p.next()){var h=v.value;c[h]="mask"}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}try{for(var m=(0,I.XA)(null!==(l=e.unmaskSelector)&&void 0!==l?l:[]),g=m.next();!g.done;g=m.next()){var h=g.value;c[h]="unmask"}}catch(e){o={error:e}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}return c},m=(0,I.pi)((0,I.pi)({},v(h)),v(f));try{for(y=(g=(0,I.XA)(Object.entries(m))).next();!y.done;y=g.next())w=(b=(0,I.CR)(y.value,2))[0],x=b[1],"mask"===x?p.maskSelector.push(w):"block"===x?p.blockSelector.push(w):"unmask"===x&&p.unmaskSelector.push(w)}catch(e){S={error:e}}finally{try{y&&!y.done&&(E=g.return)&&E.call(g)}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:eu(i)},null,2)),[2,i]}})})},e}(),ed=n(35077),ef=n(98018),eh="Failed to store session replay events in IndexedDB",ep="1.22.5",ev=function(){function e(e){var t=e.trackServerUrl,n=e.loggerProvider,r=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=r||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue((0,I.pi)((0,I.pi)({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.filter(function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:"Session replay event batch rejected due to exceeded retry count"}),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout){e.schedule(0);return}setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)})},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,I.Jh)(this,function(i){switch(i.label){case 0:return t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),this.queue=n,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(t.map(function(t){return r.send(t,e)}))];case 1:return i.sent(),[2]}})})},e.prototype.send=function(e,t){var n,r;return void 0===t&&(t=!0),(0,I.mG)(this,void 0,void 0,function(){var i,o,a,s,u,l,c,d,f,h,p,v;return(0,I.Jh)(this,function(m){switch(m.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(a=eo(),s=ep,u=e.sampleRate,l=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)||s),0===(d=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];m.label=1;case 1:return m.trys.push([1,3,,4]),f={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(i),"X-Client-Version":s,"X-Client-Library":c,"X-Client-Url":a.substring(0,1e3),"X-Client-Sample-Rate":"".concat(u)},body:JSON.stringify(d),method:"POST"},[4,fetch("".concat(ea(e.serverZone,this.trackServerUrl),"?").concat(l.toString()),f)];case 2:if(null===(h=m.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 v=m.sent(),this.completeRequest({context:e,err:v}),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(e,t){switch(new ed.d().buildStatus(e)){case ef.q.Success:this.handleSuccessResponse(t);break;case ef.q.Failed:this.handleOtherResponse(t);break;default:this.completeRequest({context:t,err:"Network error occurred, event batch rejected"})}},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/1024);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){this.addToQueue((0,I.pi)((0,I.pi)({},e),{timeout:e.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(e){var t=e.context,n=e.err,r=e.success;t.onComplete(),n?this.loggerProvider.warn(n):r&&this.loggerProvider.log(r)},e}();let em=(e,t)=>t.some(t=>e instanceof t),eg=new WeakMap,ey=new WeakMap,eb=new WeakMap,ew={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 ex(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function ex(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(ex(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return eb.set(t,e),t}(e);if(ey.has(e))return ey.get(e);let n="function"==typeof(t=e)?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(eS(this),e),ex(this.request)}:function(...e){return ex(t.apply(eS(this),e))}:(t instanceof IDBTransaction&&function(e){if(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,ew):t;return n!==e&&(ey.set(e,n),eb.set(n,e)),n}let eS=e=>eb.get(e),eE=["get","getKey","getAll","getAllKeys","count"],ek=["put","add","delete","clear"],eC=new Map;function e_(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(eC.get(t))return eC.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=ek.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||eE.includes(n)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),a=o.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&o.done]))[0]};return eC.set(t,o),o}ew={...o=ew,get:(e,t,n)=>e_(e,t)||o.get(e,t,n),has:(e,t)=>!!e_(e,t)||o.has(e,t)};let eO=["continue","continuePrimaryKey","advance"],eP={},eI=new WeakMap,eR=new WeakMap,eT={get(e,t){if(!eO.includes(t))return e[t];let n=eP[t];return n||(n=eP[t]=function(...e){eI.set(this,eR.get(this)[t](...e))}),n}};async function*eA(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let n=new Proxy(t,eT);for(eR.set(n,t),eb.set(n,eS(t));t;)yield n,t=await (eI.get(n)||t.continue()),eI.delete(n)}function eM(e,t){return t===Symbol.asyncIterator&&em(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&em(e,[IDBIndex,IDBObjectStore])}ew={...a=ew,get:(e,t,n)=>eM(e,t)?eA:a.get(e,t,n),has:(e,t)=>eM(e,t)||a.has(e,t)};var ej=function(){function e(e){var t,n,r,i=this;this.minInterval=500,this.maxInterval=1e4,this.maxPersistedEventsSize=1e6,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var n=new Blob([t]).size;return new Blob(e).size+n>=i.maxPersistedEventsSize||Date.now()-i.timeAtLastSplit>i.interval&&!!e.length&&(i.interval=Math.min(i.maxInterval,i.interval+i.minInterval),i._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!==(t=e.minInterval)&&void 0!==t?t:this.minInterval,this.maxInterval=null!==(n=e.maxInterval)&&void 0!==n?n:this.maxInterval,this.maxPersistedEventsSize=null!==(r=e.maxPersistedEventsSize)&&void 0!==r?r:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e}();(d=C||(C={})).RECORDING="recording",d.SENT="sent";var eN="sessionCurrentSequence",eL="sequencesToSend",eD=function(){var e=(0,W.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)}})},eF=function(e){return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:if(!(e.length>0))return[3,2];return[4,Promise.all(e.splice(0,10))];case 1:return t.sent(),[3,0];case 2:return[2]}})})},eB=function(e){var t,n;return e.objectStoreNames.contains(eN)||(n=e.createObjectStore(eN,{keyPath:"sessionId"})),e.objectStoreNames.contains(eL)||(t=e.createObjectStore(eL,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:n}},eV=function(e){function t(t){var n=e.call(this,t)||this;return n.getSequencesToSend=function(){return(0,I.mG)(n,void 0,void 0,function(){var e,t,n,r,i,o;return(0,I.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=a.sent(),a.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=a.sent(),[3,2];case 4:return[2,e];case 5:return o=a.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(o)),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(e){return(0,I.mG)(n,void 0,void 0,function(){var t,n,r;return(0,I.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(eN,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(eL,{sessionId:e,events:t.events})];case 2:return n=i.sent(),[4,this.db.put(eN,{sessionId:e,events:[]})];case 3:return i.sent(),[2,(0,I.pi)((0,I.pi)({},t),{sessionId:e,sequenceId:n})];case 4:return r=i.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(r)),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var n,r,i,o,a,s;return(0,I.Jh)(this,function(u){switch(u.label){case 0:return u.trys.push([0,10,,11]),[4,(n=this.db.transaction(eN,"readwrite")).store.get(e)];case 1:if(r=u.sent())return[3,3];return[4,n.store.put({sessionId:e,events:[t]})];case 2:return u.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 u.sent(),[3,7];case 5:return o=r.events.concat(t),[4,n.store.put({sessionId:e,events:o})];case 6:u.sent(),u.label=7;case 7:return[4,n.done];case 8:if(u.sent(),!i)return[2,void 0];return[4,this.storeSendingEvents(e,i)];case 9:if(!(a=u.sent()))return[2,void 0];return[2,{events:i,sessionId:e,sequenceId:a}];case 10:return s=u.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(s)),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.db.put(eL,{sessionId:e,events:t})];case 1:return[2,r.sent()];case 2:return n=r.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(n)),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(n){switch(n.label){case 0:if(!t)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.db.delete(eL,t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(e)),[3,4];case 4:return[2]}})})},n.transitionFromKeyValStore=function(e){return(0,I.mG)(n,void 0,void 0,function(){var t,n,r,i,o,a,s,u=this;return(0,I.Jh)(this,function(l){switch(l.label){case 0:return l.trys.push([0,6,,7]),[4,eD()];case 1:if(!(t=l.sent()))return[2];n=function(e,t){return(0,I.mG)(u,void 0,void 0,function(){var n,r,i=this;return(0,I.Jh)(this,function(o){switch(o.label){case 0:return n=t.sessionSequences,r=[],Object.keys(n).forEach(function(o){var a=parseInt(o,10),s=n[a];if(a===t.currentSequenceId){var u=s.events.map(function(t){return(0,I.mG)(i,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,this.addEventToCurrentSequence(e,t)]})})});r.concat(u)}else s.status!==C.SENT&&r.push(i.storeSendingEvents(e,s.events))}),[4,eF(r)];case 1:return o.sent(),[2]}})})},r="".concat(N.f1,"_").concat(this.apiKey.substring(0,10)),l.label=2;case 2:return l.trys.push([2,4,,5]),i=t.transaction("keyval").objectStore("keyval").getAll(r),[4,new Promise(function(t){i.onsuccess=function(r){return(0,I.mG)(u,void 0,void 0,function(){var i,o,a,s=this;return(0,I.Jh)(this,function(u){switch(u.label){case 0:if(!(o=(i=r&&r.target.result)&&i[0]))return[3,2];return a=[],Object.keys(o).forEach(function(t){var r=parseInt(t,10),i=o[r];if(e===r)a.push(n(r,i));else{var u=i.sessionSequences;Object.keys(u).forEach(function(e){var t=parseInt(e,10);u[t].status!==C.SENT&&a.push(s.storeSendingEvents(r,u[t].events))})}}),[4,eF(a)];case 1:u.sent(),u.label=2;case 2:return t(),[2]}})})}})];case 3:return l.sent(),(o=(0,W.l)())&&o.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return a=l.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(a)),[3,5];case 5:return[3,7];case 6:return s=l.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(s,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}})})},n.apiKey=t.apiKey,n.db=t.db,n}return(0,I.ZT)(t,e),t.new=function(e,n,r){return(0,I.mG)(this,void 0,void 0,function(){var i,o,a,s;return(0,I.Jh)(this,function(u){switch(u.label){case 0:var l;return u.trys.push([0,3,,4]),i="replay"===e?"":"_".concat(e),[4,(l="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){switch(e.label){case 0:return[4,function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let a=indexedDB.open(e,1),s=ex(a);return r&&a.addEventListener("upgradeneeded",e=>{r(ex(a.result),e.oldVersion,e.newVersion,ex(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(l,0,{upgrade:eB})];case 1:return[2,e.sent()]}})}))];case 1:return o=u.sent(),[4,(a=new t((0,I.pi)((0,I.pi)({},n),{db:o}))).transitionFromKeyValStore(r)];case 2:return u.sent(),[2,a];case 3:return s=u.sent(),n.loggerProvider.warn("".concat(eh,": ").concat(s)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a;return(0,I.Jh)(this,function(s){switch(s.label){case 0:if(!e)return[3,2];return[4,this.db.get("sessionCurrentSequence",e)];case 1:if(!(t=s.sent()))return[2,void 0];return[2,[t]];case 2:n=[],s.label=3;case 3:return s.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=(r=I.XA.apply(void 0,[s.sent()])).next(),s.label=5;case 5:if(i.done)return[3,7];t=i.value,n.push(t),s.label=6;case 6:return i=r.next(),[3,5];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}return[7];case 10:return[2,n]}})})},t}(ej),eU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return(0,I.ZT)(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,n=(0,I.ev)([],(0,I.CR)(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:n},this.resetCurrentSequence(e),{sequenceId:t,events:n,sessionId:e}},t.prototype.getSequencesToSend=function(){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=(0,I.CR)(e,2),n=t[0],r=t[1],i=r.sessionId,o=r.events;return{sequenceId:Number(n),sessionId:i,events:o}})]})})},t.prototype.storeCurrentSequence=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(n=this.addSequence(e)),this.sequences[e].push(t),[2,n]})})},t.prototype.storeSendingEvents=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(ej),ez=function(e){var t=e.config,n=e.sessionId,r=e.minInterval,i=e.maxInterval,o=e.type,a=e.payloadBatcher,s=e.storeType;return(0,I.mG)(void 0,void 0,void 0,function(){var e,u,l,c,d,f;function h(t){return void 0===t&&(t=!1),(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,e.flush(t)]})})}return(0,I.Jh)(this,function(p){switch(p.label){case 0:if(e=new ev((0,I.pi)((0,I.pi)({},t),{loggerProvider:t.loggerProvider,payloadBatcher:a})),u=function(){return new eU({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:r})},l=function(){return(0,I.mG)(void 0,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(a){switch(a.label){case 0:return[4,eV.new(o,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:i,apiKey:t.apiKey},n)];case 1:return e=a.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,null!=e?e:u()]}})})},"idb"!==s)return[3,2];return[4,l()];case 1:return d=p.sent(),[3,3];case 2:d=u(),p.label=3;case 3:return c=d,f=function(n){var r=n.events,i=n.sessionId,a=n.deviceId,s=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:a,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:o,onComplete:function(){return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){switch(e.label){case 0:return[4,c.cleanUpSessionEventsStore(i,s)];case 1:return e.sent(),[2]}})})}})},[2,{sendCurrentSequenceEvents:function(e){var n=e.sessionId,r=e.deviceId;c.storeCurrentSequence(n).then(function(e){e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:r})}).catch(function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)})},addEvent:function(e){var n=e.event,r=e.sessionId,i=e.deviceId;c.addEventToCurrentSequence(r,n.data).then(function(e){return e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})}).catch(function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)})},sendStoredEvents:function(e){var t=e.deviceId;return(0,I.mG)(void 0,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return[4,c.getSequencesToSend()];case 1:return(e=n.sent())&&e.forEach(function(e){f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})}),[2]}})})},flush:h}]}})})},eq=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new Map;e.forEach(function(e){n.set(e.name,e.manager)}),this.managers=n}return e.prototype.sendStoredEvents=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.sendStoredEvents(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e.prototype.addEvent=function(e){var t,n=e.sessionId,r=e.event,i=e.deviceId;null===(t=this.managers.get(r.type))||void 0===t||t.addEvent({sessionId:n,event:r,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,n=e.deviceId;this.managers.forEach(function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:n})})},e.prototype.flush=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.flush(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e}(),eW=((f=eW||{})[f.DomContentLoaded=0]="DomContentLoaded",f[f.Load=1]="Load",f[f.FullSnapshot=2]="FullSnapshot",f[f.IncrementalSnapshot=3]="IncrementalSnapshot",f[f.Meta=4]="Meta",f[f.Custom=5]="Custom",f[f.Plugin=6]="Plugin",f),e$=((h=e$||{})[h.Mutation=0]="Mutation",h[h.MouseMove=1]="MouseMove",h[h.MouseInteraction=2]="MouseInteraction",h[h.Scroll=3]="Scroll",h[h.ViewportResize=4]="ViewportResize",h[h.Input=5]="Input",h[h.TouchMove=6]="TouchMove",h[h.MediaInteraction=7]="MediaInteraction",h[h.StyleSheetRule=8]="StyleSheetRule",h[h.CanvasMutation=9]="CanvasMutation",h[h.Font=10]="Font",h[h.Log=11]="Log",h[h.Drag=12]="Drag",h[h.StyleDeclaration=13]="StyleDeclaration",h[h.Selection=14]="Selection",h[h.AdoptedStyleSheet=15]="AdoptedStyleSheet",h[h.CustomElement=16]="CustomElement",h),eZ=((p=eZ||{})[p.MouseUp=0]="MouseUp",p[p.MouseDown=1]="MouseDown",p[p.Click=2]="Click",p[p.ContextMenu=3]="ContextMenu",p[p.DblClick=4]="DblClick",p[p.Focus=5]="Focus",p[p.Blur=6]="Blur",p[p.TouchStart=7]="TouchStart",p[p.TouchMove_Departed=8]="TouchMove_Departed",p[p.TouchEnd=9]="TouchEnd",p[p.TouchCancel=10]="TouchCancel",p),eG=((v=eG||{})[v.Mouse=0]="Mouse",v[v.Pen=1]="Pen",v[v.Touch=2]="Touch",v),eH=((m=eH||{})[m["2D"]=0]="2D",m[m.WebGL=1]="WebGL",m[m.WebGL2=2]="WebGL2",m),eK=((g=eK||{})[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),eY=((y=eY||{}).Start="start",y.Pause="pause",y.Resume="resume",y.Resize="resize",y.Finish="finish",y.FullsnapshotRebuilded="fullsnapshot-rebuilded",y.LoadStylesheetStart="load-stylesheet-start",y.LoadStylesheetEnd="load-stylesheet-end",y.SkipStart="skip-start",y.SkipEnd="skip-end",y.MouseInteraction="mouse-interaction",y.EventCast="event-cast",y.CustomEvent="custom-event",y.Flush="flush",y.StateChange="state-change",y.PlayBack="play-back",y.Destroy="destroy",y),eJ=((b=eJ||{})[b.Document=0]="Document",b[b.DocumentType=1]="DocumentType",b[b.Element=2]="Element",b[b.Text=3]="Text",b[b.CDATA=4]="CDATA",b[b.Comment=5]="Comment",b);function eX(e,t,n){for(var r=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,u,l,c=new Date().getTime()-P.getTime();if(void 0!==_.timeoutMs&&c>_.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=e6((e=o.getAttribute("id"))&&_.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||e6.apply(void 0,(0,I.ev)([],(0,I.CR)(Array.from(o.attributes).filter(function(e){return _.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||e6.apply(void 0,(0,I.ev)([],(0,I.CR)(Array.from(o.classList).filter(_.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||e6((s=o.tagName.toLowerCase(),_.tagName(s)?{name:s,penalty:2}:null))||[e3()],f=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)f&&(d=d.concat(d.filter(e4).map(function(e){return e5(e,f)})));else if("two"==t)d=d.slice(0,1),f&&(d=d.concat(d.filter(e4).map(function(e){return e5(e,f)})));else if("one"==t){var h=(0,I.CR)(d=d.slice(0,1),1)[0];f&&e4(h)&&(d=[e5(h,f)])}else"none"==t&&(d=[e3()],f&&(d=[e5(d[0],f)]));try{for(var p=(u=void 0,(0,I.XA)(d)),v=p.next();!v.done;v=p.next()){var h=v.value;h.level=a}}catch(e){u={error:e}}finally{try{v&&!v.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}if(i.push(d),i.length>=_.seedMinLength&&(r=eQ(i,n)))return"break";o=o.parentElement,a++}(););return(r||(r=eQ(i,n)),!r&&n)?n():r}function eQ(e,t){var n,r,i=e7(function e(t,n){var r,i,o,a,s;return void 0===n&&(n=[]),(0,I.Jh)(this,function(u){switch(u.label){case 0:if(!(t.length>0))return[3,9];u.label=1;case 1:u.trys.push([1,6,7,8]),i=(r=(0,I.XA)(t[0])).next(),u.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,I.XA)(e(t.slice(1,t.length),n.concat(o)))];case 3:u.sent(),u.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a={error:u.sent()},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,n];case 10:u.sent(),u.label=11;case 11:return[2]}})}(e));if(i.length>_.threshold)return t?t():null;try{for(var o=(0,I.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(e2(s))return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function e0(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function e1(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function e2(e){var t=e0(e);switch(O.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function e3(){return{name:"*",penalty:3}}function e5(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function e4(e){return"html"!==e.name&&!e.name.startsWith("#")}function e6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(e8);return n.length>0?n:null}function e8(e){return null!=e}function e7(e){return(0,I.ev)([],(0,I.CR)(e),!1).sort(function(e,t){return e1(e)-e1(t)})}var e9=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&r.push(t)}),{version:t,events:r}},te=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);"click"===t.type&&r.push(t)}),{version:t,events:Object.values(r.reduce(function(e,t){var n=t.x,r=t.y,i=t.selector,o=t.timestamp,a=o-o%36e5,s="".concat(n,":").concat(r,":").concat(null!=i?i:"",":").concat(a);return e[s]?e[s].count+=1:e[s]=(0,I.pi)((0,I.pi)({},t),{timestamp:a,count:1}),e},{}))}},tt=function(e,t){var n=t.eventsManager,r=t.sessionId,i=t.deviceIdFn;return function(t){if(t.type===eZ.Click){var o,a=(0,W.l)();if(a){var s=a.location,u=a.innerHeight,l=a.innerWidth;if(s){var c=t.x,d=t.y;if(void 0!==c&&void 0!==d){var f=G.IM.mirror.getNode(t.id);if(f)try{o=function(e,t){if(P=new Date,e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};O=(n=(_=(0,I.pi)((0,I.pi)({},r),void 0)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=eX(e,"all",function(){return eX(e,"two",function(){return eX(e,"one",function(){return eX(e,"none")})})});if(i){var o=e7(function e(t,n,r){var i,o,a;return void 0===r&&(r={counter:0,visited:new Map}),(0,I.Jh)(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>_.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var u;if(!(i<t.length-1))return[3,5];if(r.counter>_.maxNumberOfTries||(r.counter+=1,(o=(0,I.ev)([],(0,I.CR)(t),!1)).splice(i,1),a=e0(o),r.visited.has(a)))return[2];if(!(e2(o)&&(u=o,O.querySelector(e0(u))===n)))return[3,4];return[4,o];case 2:return s.sent(),r.visited.set(a,!0),[5,(0,I.XA)(e(o,n,r))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),e0(i)}throw Error("Selector was not found.")}(f)}catch(t){e.debug("error resolving selector from finder")}var h=G.P6.getWindowScroll(a),p={x:c+h.left,y:d+h.top,selector:o,viewportHeight:u,viewportWidth:l,pageUrl:s.href,timestamp:Date.now(),type:"click"},v=i();v&&n.addEvent({sessionId:r,event:{type:"interaction",data:JSON.stringify(p)},deviceId:v})}}}}}},tn=function(){function e(e,t){var n=(0,W.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=ea(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}),a="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(a,t)||this.sendXhr(a,t)},e}(),tr=G.P6.getWindowHeight,ti=G.P6.getWindowWidth,to=function(){function e(e){var t=this;this.timestamp=Date.now(),this.hook=function(e){t.update(e)},this.send=function(e){return function(n){var r=e(),i=(0,W.l)();i&&r&&t.transport.send(r,{version:1,events:[{maxScrollX:t._maxScrollX,maxScrollY:t._maxScrollY,maxScrollWidth:t._maxScrollWidth,maxScrollHeight:t._maxScrollHeight,viewportHeight:tr(),viewportWidth:ti(),pageUrl:i.location.href,timestamp:t.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=ti(),this._maxScrollHeight=tr(),this.transport=e}return e.default=function(t,n){return new e(new tn(t,n))},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(e.x>this._maxScrollX){var n=ti();this._maxScrollX=e.x;var r=e.x+n;r>this._maxScrollWidth&&(this._maxScrollWidth=r),this.timestamp=t}if(e.y>this._maxScrollY){var i=tr();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),ta=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,tu=Uint16Array,tl=Uint32Array,tc=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]),td=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]),tf=new ts([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),th=function(e,t){for(var n=new tu(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]},tp=th(tc,2),tv=tp[0],tm=tp[1];tv[28]=258,tm[258]=28;for(var tg=th(td,0),ty=(tg[0],tg[1]),tb=new tu(32768),tw=0;tw<32768;++tw){var tx=(43690&tw)>>>1|(21845&tw)<<1;tx=(61680&(tx=(52428&tx)>>>2|(13107&tx)<<2))>>>4|(3855&tx)<<4,tb[tw]=((65280&tx)>>>8|(255&tx)<<8)>>>1}for(var tS=function(e,t,n){for(var r,i=e.length,o=0,a=new tu(t);o<i;++o)++a[e[o]-1];var s=new tu(t);for(o=0;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;if(n){r=new tu(1<<t);var u=15-t;for(o=0;o<i;++o)if(e[o])for(var l=o<<4|e[o],c=t-e[o],d=s[e[o]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)r[tb[d]>>>u]=l}else for(o=0,r=new tu(i);o<i;++o)r[o]=tb[s[e[o]-1]++]>>>15-e[o];return r},tE=new ts(288),tw=0;tw<144;++tw)tE[tw]=8;for(var tw=144;tw<256;++tw)tE[tw]=9;for(var tw=256;tw<280;++tw)tE[tw]=7;for(var tw=280;tw<288;++tw)tE[tw]=8;for(var tk=new ts(32),tw=0;tw<32;++tw)tk[tw]=5;var tC=tS(tE,9,0),t_=tS(tk,5,0),tO=function(e){return(e/8>>0)+(7&e&&1)},tP=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof tu?tu:e instanceof tl?tl:ts)(n-t);return r.set(e.subarray(t,n)),r},tI=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},tR=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},tT=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 a=new ts(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],u=n[1],l=0,c=1,d=2;for(n[0]={s:-1,f:s.f+u.f,l:s,r:u};c!=i-1;)s=n[n[l].f<n[d].f?l++:d++],u=n[l!=c&&n[l].f<n[d].f?l++:d++],n[c++]={s:-1,f:s.f+u.f,l:s,r:u};for(var f=o[0].s,r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var h=new tu(f+1),p=tA(n[c-1],h,0);if(p>t){var r=0,v=0,m=p-t,g=1<<m;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)v+=g-(1<<p-h[y]),h[y]=t;else break}for(v>>>=m;v>0;){var b=o[r].s;h[b]<t?v-=1<<t-h[b]++-1:++r}for(;r>=0&&v;--r){var w=o[r].s;h[w]==t&&(--h[w],++v)}p=t}return[new ts(h),p]},tA=function(e,t,n){return -1==e.s?Math.max(tA(e.l,t,n+1),tA(e.r,t,n+1)):t[e.s]=n},tM=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new tu(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},tj=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},tN=function(e,t,n){var r=n.length,i=tO(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},tL=function(e,t,n,r,i,o,a,s,u,l,c){tI(t,c++,n),++i[256];for(var d,f,h,p,v=tT(i,15),m=v[0],g=v[1],y=tT(o,15),b=y[0],w=y[1],x=tM(m),S=x[0],E=x[1],k=tM(b),C=k[0],_=k[1],O=new tu(19),P=0;P<S.length;++P)O[31&S[P]]++;for(var P=0;P<C.length;++P)O[31&C[P]]++;for(var I=tT(O,7),R=I[0],T=I[1],A=19;A>4&&!R[tf[A-1]];--A);var M=l+5<<3,j=tj(i,tE)+tj(o,tk)+a,N=tj(i,m)+tj(o,b)+a+14+3*A+tj(O,R)+(2*O[16]+3*O[17]+7*O[18]);if(M<=j&&M<=N)return tN(t,c,e.subarray(u,u+l));if(tI(t,c,1+(N<j)),c+=2,N<j){d=tS(m,g,0),f=m,h=tS(b,w,0),p=b;var L=tS(R,T,0);tI(t,c,E-257),tI(t,c+5,_-1),tI(t,c+10,A-4),c+=14;for(var P=0;P<A;++P)tI(t,c+3*P,R[tf[P]]);c+=3*A;for(var D=[S,C],F=0;F<2;++F)for(var B=D[F],P=0;P<B.length;++P){var V=31&B[P];tI(t,c,L[V]),c+=R[V],V>15&&(tI(t,c,B[P]>>>5&127),c+=B[P]>>>12)}}else d=tC,f=tE,h=t_,p=tk;for(var P=0;P<s;++P)if(r[P]>255){var V=r[P]>>>18&31;tR(t,c,d[V+257]),c+=f[V+257],V>7&&(tI(t,c,r[P]>>>23&31),c+=tc[V]);var U=31&r[P];tR(t,c,h[U]),c+=p[U],U>3&&(tR(t,c,r[P]>>>5&8191),c+=td[U])}else tR(t,c,d[r[P]]),c+=f[r[P]];return tR(t,c,d[256]),c+f[256]},tD=new tl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tF=function(e,t,n,r,i,o){var a=e.length,s=new ts(r+a+5*(1+Math.floor(a/7e3))+i),u=s.subarray(r,s.length-i),l=0;if(!t||a<8)for(var c=0;c<=a;c+=65535){var d=c+65535;d<a?l=tN(u,l,e.subarray(c,d)):(u[c]=o,l=tN(u,l,e.subarray(c,a)))}else{for(var f=tD[t-1],h=f>>>13,p=8191&f,v=(1<<n)-1,m=new tu(32768),g=new tu(v+1),y=Math.ceil(n/3),b=2*y,w=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&v},x=new tl(25e3),S=new tu(288),E=new tu(32),k=0,C=0,c=0,_=0,O=0,P=0;c<a;++c){var I=w(c),R=32767&c,T=g[I];if(m[R]=T,g[I]=R,O<=c){var A=a-c;if((k>7e3||_>24576)&&A>423){l=tL(e,u,0,x,S,E,C,_,P,c-P,l),_=k=C=0,P=c;for(var M=0;M<286;++M)S[M]=0;for(var M=0;M<30;++M)E[M]=0}var j=2,N=0,L=p,D=R-T&32767;if(A>2&&I==w(c-D))for(var F=Math.min(h,A)-1,B=Math.min(32767,c),V=Math.min(258,A);D<=B&&--L&&R!=T;){if(e[c+j]==e[c+j-D]){for(var U=0;U<V&&e[c+U]==e[c+U-D];++U);if(U>j){if(j=U,N=D,U>F)break;for(var z=Math.min(D,U-2),q=0,M=0;M<z;++M){var W=c-D+M+32768&32767,$=m[W],Z=W-$+32768&32767;Z>q&&(q=Z,T=W)}}}T=m[R=T],D+=R-T+32768&32767}if(N){x[_++]=268435456|tm[j]<<18|ty[N];var G=31&tm[j],H=31&ty[N];C+=tc[G]+td[H],++S[257+G],++E[H],O=c+j,++k}else x[_++]=e[c],++S[e[c]]}}l=tL(e,u,o,x,S,E,C,_,P,c-P,l)}return tP(s,0,r+tO(l)+i)},tB=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)r+=n[a],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}}},tV=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},tU=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 tz=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},a=0;a<n;++a){if(i+5>r.length){var s=new ts(i+8+(n-a<<1));s.set(r),r=s}var u=e.charCodeAt(a);u<128?o(u):(u<2048?o(192|u>>>6):(u>55295&&u<57344?(o(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++a))>>>18),o(128|u>>>12&63)):o(224|u>>>12),o(128|u>>>6&63)),o(128|63&u))}return tP(r,0,i)}(JSON.stringify({...e,v:"v1"})),void 0===n&&(n={}),(r=tB()).p(t),tU(o=tF(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),tV(o,o.length-4,r.d()),o),!0)};var tq=function(){function e(e,t,n,r){var i,o,a,s=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){return JSON.stringify(tz(e))},this.addCompressedEventToManager=function(e,t){s.eventsManager&&s.deviceId&&s.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:s.deviceId})},this.addCompressedEvent=function(e,t){if(s.worker)s.worker.postMessage({event:e,sessionId:t});else{var n=s.compressEvent(e);s.addCompressedEventToManager(n,t)}},this.terminate=function(){var e;null===(e=s.worker)||void 0===e||e.terminate()};var u=(0,W.l)();this.canUseIdleCallback=u&&"requestIdleCallback"in u,this.eventsManager=e,this.config=t,this.deviceId=n,this.timeout=(null===(i=t.performanceConfig)||void 0===i?void 0:i.timeout)||2e3;var l=null!==(o=({}).COMPRESSION_WEBWORKER_BODY)&&void 0!==o?o:r;if((null===(a=this.config.experimental)||void 0===a?void 0:a.useWebWorker)&&u&&u.Worker&&l){t.loggerProvider.log("[Experimental] Enabling web worker for compression");var c=new Worker(URL.createObjectURL(new Blob([l],{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;s.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}(),tW=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,W.l)();if(t){var n=t.fetch;n&&(t.fetch=function(t,r){return(0,I.mG)(e,void 0,void 0,function(){var e,i,o,a,s,u,l;return(0,I.Jh)(this,function(c){switch(c.label){case 0:i={timestamp:e=Date.now(),type:"fetch",method:(null==r?void 0:r.method)||"GET",url:t.toString(),requestHeaders:null==r?void 0:r.headers},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,n(t,r)];case 2:return o=c.sent(),a=Date.now(),i.status=o.status,i.duration=a-e,s={},o.headers.forEach(function(e,t){s[t]=e}),i.responseHeaders=s,this.notifyEvent(i),[2,o];case 3:throw u=c.sent(),a=Date.now(),i.duration=a-e,l=u,i.error={name:l.name||"UnknownError",message:l.message||"An unknown error occurred"},this.notifyEvent(i),u;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=n})}},e}(),t$=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,W.l)();n&&(n.removeEventListener("blur",e.blurListener),n.removeEventListener("focus",e.focusListener),t||n.addEventListener("blur",e.blurListener),t||n.addEventListener("focus",e.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",e.pageLeaveListener),t||n.addEventListener("pagehide",e.pageLeaveListener)):(n.removeEventListener("beforeunload",e.pageLeaveListener),t||n.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents()},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach(function(e){e(t)})},this.addCustomRRWebEvent=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r=!0),(0,I.mG)(e,void 0,void 0,function(){var e,i,o,a;return(0,I.Jh)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),e=void 0,!(i=this.config)||(e={config:eu(i),version:ep},!r))return[3,2];return[4,es()];case 1:o=s.sent(),e=(0,I.pi)((0,I.pi)({},o),e),s.label=2;case 2:return this.recordCancelCallback?G.IM.addCustomEvent(t,(0,I.pi)((0,I.pi)({},n),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return a=s.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",a),[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 U(new A.Y)}return e.prototype.init=function(e,t){return(0,$.S)(this._init(e,t))},e.prototype._init=function(e,t){var n,r,i,o,a,s;return(0,I.mG)(this,void 0,void 0,function(){var u,l,c,d,f,h,p,v,m;return(0,I.Jh)(this,function(g){switch(g.label){case 0:return this.loggerProvider=new U(t.loggerProvider||new A.Y),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new ta({sessionId:t.sessionId,deviceId:t.deviceId}),u=this,[4,(0,I.mG)(void 0,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){switch(r.label){case 0:return[4,X({localConfig:n=new q(e,t),configKeys:["sessionReplay"]})];case 1:return[2,new ec(r.sent(),n)]}})})];case 1:return u.joinedConfigGenerator=g.sent(),l=this,[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 2:l.config=g.sent(),t.sessionId&&(null===(n=this.config.interactionConfig)||void 0===n?void 0:n.enabled)&&(c=to.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[c.send(this.getDeviceId.bind(this)).bind(c)],this.scrollHook=c.hook.bind(c)),d=[],"idb"!==(f=this.config.storeType)||(null===(r=(0,W.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.")),g.label=3;case 3:return g.trys.push([3,5,,6]),[4,ez({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:f})];case 4:return h=g.sent(),d.push({name:"replay",manager:h}),[3,6];case 5:return p=g.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];v=this.config.interactionConfig.batch?te:e9,g.label=7;case 7:return g.trys.push([7,9,,10]),[4,ez({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:null!==(o=this.config.interactionConfig.trackEveryNms)&&void 0!==o?o:3e4,maxInterval:6e4,payloadBatcher:v,storeType:f})];case 8:return m=g.sent(),d.push({name:"interaction",manager:m}),[3,10];case 9:return p=g.sent(),this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(p.toString())),[3,10];case 10:return this.eventsManager=new(eq.bind.apply(eq,(0,I.ev)([void 0],(0,I.CR)(d),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new tq(this.eventsManager,this.config,this.getDeviceId()),(null===(s=null===(a=this.config.loggingConfig)||void 0===a?void 0:a.network)||void 0===s?void 0:s.enabled)&&(this.networkObservers=new tW),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),this.initialize(!0),[2]}})})},e.prototype.setSessionId=function(e,t){return(0,$.S)(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){var n,r,i;return(0,I.Jh)(this,function(o){switch(o.label){case 0:if((n=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(n),r=t||this.getDeviceId(),this.identifiers=new ta({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[B]=JSON.stringify({appHash:ei(t.apiKey).toString()}))),this.addCustomRRWebEvent(S.GET_SR_PROPS,{shouldRecord:r,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,n=e||(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId),r=this.getDeviceId();this.eventsManager&&n&&r&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:r})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){return(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId)?(n=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){if(null===(e=this.config)||void 0===e?void 0:e.instanceName){var e,t,n;n=(0,Z.bM)(this.config.instanceName).identityStore.getIdentity().optOut}return void 0!==n?n:null===(t=this.config)||void 0===t?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e,t,n=(e=this.identifiers.sessionId,t=this.config.sampleRate,31*Math.abs(ei(e.toString()))%1e6/1e6<t);return n||this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate.")),n},e.prototype.getBlockSelectors=function(){var e,t,n,r=null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.blockSelector)&&void 0!==n?n:[];if(0!==r.length)return r},e.prototype.getMaskTextSelectors=function(){if((null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.defaultMaskLevel)==="conservative")return"*";var e,t,n,r,i=null===(r=null===(n=this.config)||void 0===n?void 0:n.privacyConfig)||void 0===r?void 0:r.maskSelector;if(i)return i},e.prototype.getRecordingPlugins=function(e){var t;return(0,I.mG)(this,void 0,void 0,function(){var r,i,o;return(0,I.Jh)(this,function(a){switch(a.label){case 0:if(r=[],!(null===(t=null==e?void 0:e.console)||void 0===t?void 0:t.enabled))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,n.e(881).then(n.bind(n,96142))];case 2:return i=a.sent().getRecordConsolePlugin,r.push(i({level:e.console.levels})),[3,4];case 3:return o=a.sent(),this.loggerProvider.warn("Failed to load console plugin:",o),[3,4];case 4:return[2,r.length>0?r:void 0]}})})},e.prototype.recordEvents=function(){var e,t;return(0,I.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,u,l,c,d,f,h=this;return(0,I.Jh)(this,function(p){switch(p.label){case 0:if(n=this.config,r=this.getShouldRecord(),i=null===(e=this.identifiers)||void 0===e?void 0:e.sessionId,!r||!i||!n)return[2];this.stopRecordingEvents(),null===(t=this.networkObservers)||void 0===t||t.start(function(e){h.addCustomRRWebEvent(S.FETCH_REQUEST,e)}),o=n.privacyConfig,a=n.interactionConfig,s=n.loggingConfig,u=(null==a?void 0:a.enabled)?{mouseInteraction:this.eventsManager&&tt(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:i,deviceIdFn:this.getDeviceId.bind(this)}),scroll:this.scrollHook}:{},this.loggerProvider.log("Session Replay capture beginning for ".concat(i,".")),p.label=1;case 1:return p.trys.push([1,3,,4]),l=this,c=G.IM,f={emit:function(e){if(h.shouldOptOut()){h.loggerProvider.log("Opting session ".concat(i," out of recording due to optOut config.")),h.stopRecordingEvents(),h.sendEvents();return}h.eventCompressor&&h.eventCompressor.enqueueEvent(e,i)},inlineStylesheet:n.shouldInlineStylesheet,hooks:u,maskAllInputs:!0,maskTextClass:V,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),maskInputFn:er("input",o),maskTextFn:er("text",o),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return h.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0}},[4,this.getRecordingPlugins(s)];case 2:return l.recordCancelCallback=c.apply(void 0,[(f.plugins=p.sent(),f)]),this.addCustomRRWebEvent(S.DEBUG_INFO),[3,4];case 3:return d=p.sent(),this.loggerProvider.warn("Failed to initialize session replay:",d),[3,4];case 4:return[2]}})})},e.prototype.getDeviceId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,null===(t=this.eventsManager)||void 0===t?void 0:t.flush(e)]})})},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e}(),tZ=function(e){return function(){var t=e.config||z();return{logger:t.loggerProvider,logLevel:t.logLevel}}},tG=(w=new t$,{init:(0,R.w_)(w.init.bind(w),"init",tZ(w)),setSessionId:(0,R.w_)(w.setSessionId.bind(w),"setSessionId",tZ(w)),getSessionId:(0,R.w_)(w.getSessionId.bind(w),"getSessionId",tZ(w)),getSessionReplayProperties:(0,R.w_)(w.getSessionReplayProperties.bind(w),"getSessionReplayProperties",tZ(w)),flush:(0,R.w_)(w.flush.bind(w),"flush",tZ(w)),shutdown:(0,R.w_)(w.shutdown.bind(w),"shutdown",tZ(w))}),tH=tG.init,tK=tG.setSessionId,tY=tG.getSessionId,tJ=tG.getSessionReplayProperties,tX=tG.flush,tQ=tG.shutdown,t0="1.16.7",t1=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.sr={flush:tX,getSessionId:tY,getSessionReplayProperties:tJ,init:tH,setSessionId:tK,shutdown:tQ},this.options=(0,I.pi)({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var n,r,i,o,a;return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(t0,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=(0,I.pi)((0,I.pi)({},e.defaultTracking),{sessions:!0})),this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!==(n=this.options.deviceId)&&void 0!==n?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl,trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null===(r=this.options.privacyConfig)||void 0===r?void 0:r.blockSelector,maskSelector:null===(i=this.options.privacyConfig)||void 0===i?void 0:i.maskSelector,unmaskSelector:null===(o=this.options.privacyConfig)||void 0===o?void 0:o.unmaskSelector,defaultMaskLevel:null===(a=this.options.privacyConfig)||void 0===a?void 0:a.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 s.sent(),[3,3];case 2:return t=s.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(t.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sr.getSessionId()),".")),[4,this.sr.setSessionId(e).promise];case 1:return t.sent(),[2]}})})},e.prototype.onOptOutChanged=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:if(this.config.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),!e)return[3,1];return this.sr.shutdown(),[3,3];case 1:return[4,this.sr.init(this.config.apiKey,this.srInitOptions).promise];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.execute=function(e){var t;return(0,I.mG)(this,void 0,void 0,function(){var n,r,i;return(0,I.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,8,,9]),!this.options.customSessionId)return[3,4];if(!(n=this.options.customSessionId(e)))return[3,3];if(!(n!==this.sr.getSessionId()))return[3,2];return[4,this.sr.setSessionId(n).promise];case 1:o.sent(),o.label=2;case 2:r=this.sr.getSessionReplayProperties(),e.event_properties=(0,I.pi)((0,I.pi)({},e.event_properties),r),o.label=3;case 3:return[3,7];case 4:if(!((n=this.config.sessionId)&&n!==this.sr.getSessionId()))return[3,6];return[4,this.sr.setSessionId(n).promise];case 5:o.sent(),o.label=6;case 6:n&&n===e.session_id&&(r=this.sr.getSessionReplayProperties(),e.event_properties=(0,I.pi)((0,I.pi)({},e.event_properties),r)),o.label=7;case 7:return[2,Promise.resolve(e)];case 8:return i=o.sent(),null===(t=this.config)||void 0===t||t.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(i.message)),[2,Promise.resolve(e)];case 9:return[2]}})})},e.prototype.teardown=function(){var e;return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){try{this.sr.shutdown(),this.config=null}catch(t){null===(e=this.config)||void 0===e||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sr.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),t2=function(e){return new t1(e)}},76317:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function l(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,v=0,m=0,g=0,y="";function b(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:a,return:""}}function w(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return g=m<v?l(y,m++):0,p++,10===g&&(p=1,h++),g}function S(){return l(y,m)}function E(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 k(e){return h=p=1,v=d(y=e),m=0,[]}function C(e){var t,n;return(t=m-1,n=function e(t){for(;x();)switch(g){case t:return m;case 34:case 39:34!==t&&39!==t&&e(g);break;case 40:41===t&&e(t);break;case 92:x()}return m}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var _="-ms-",O="-moz-",P="-webkit-",I="comm",R="rule",T="decl",A="@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 T:return e.return=e.return||e.value;case I:return"";case A:return e.return=e.value+"{"+M(e.children,r)+"}";case R:e.value=e.props.join(",")}return d(n=M(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,o,a,u,l,d,f,h){for(var p=o-1,v=0===o?a:[""],m=v.length,g=0,y=0,w=0;g<r;++g)for(var x=0,S=c(e,p+1,p=i(y=u[g])),E=e;x<m;++x)(E=(y>0?v[x]+" "+S:s(S,/&\f/g,v[x])).trim())&&(d[w++]=E);return b(e,t,n,0===o?R:l,d,f,h)}function L(e,t,n,r){return b(e,t,n,T,c(e,0,r),c(e,r+1,-1),r)}var D=function(e,t,n){for(var r=0,i=0;r=i,i=S(),38===r&&12===i&&(t[n]=1),!E(i);)x();return c(y,e,m)},F=function(e,t){var n=-1,r=44;do switch(E(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=D(m-1,t,n);break;case 2:e[n]+=C(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},B=function(e,t){var n;return n=F(k(e),t),y="",n},V=new WeakMap,U=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)||V.get(n))&&!r){V.set(e,!0);for(var i=[],o=B(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},z=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},q=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case T:e.return=function e(t,n){switch(45^l(t,0)?(((n<<2^l(t,0))<<2^l(t,1))<<2^l(t,2))<<2^l(t,3):0){case 5103:return P+"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 P+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return P+t+O+t+_+t+t;case 6828:case 4268:return P+t+_+t+t;case 6165:return P+t+_+"flex-"+t+t;case 5187:return P+t+s(t,/(\w+).+(:[^]+)/,P+"box-$1$2"+_+"flex-$1$2")+t;case 5443:return P+t+_+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return P+t+_+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return P+t+_+s(t,"shrink","negative")+t;case 5292:return P+t+_+s(t,"basis","preferred-size")+t;case 6060:return P+"box-"+s(t,"-grow","")+P+t+_+s(t,"grow","positive")+t;case 4554:return P+s(t,/([^-])(transform)/g,"$1"+P+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,P+"$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(l(t,n+1)){case 109:if(45!==l(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+O+(108==l(t,n+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==l(t,n+1))break;case 6444:switch(l(t,d(t)-3-(~u(t,"!important")&&10))){case 107:return s(t,":",":"+P)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(45===l(t,14)?"inline-":"")+"box$3$1"+P+"$2$3$1"+_+"$2box$3")+t}break;case 5936:switch(l(t,n+11)){case 114:return P+t+_+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return P+t+_+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return P+t+_+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return P+t+_+t+t}return t}(e.value,e.length);break;case A:return M([w(e,{value:s(e.value,"@","@"+P)})],r);case R: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:[s(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return M([w(e,{props:[s(t,/:(plac\w+)/,":"+P+"input-$1")]}),w(e,{props:[s(t,/:(plac\w+)/,":"+O+"$1")]}),w(e,{props:[s(t,/:(plac\w+)/,_+"input-$1")]})],r)}return""},i.map(o).join("")}}}],W=function(e){var t,n,i,a,v,w,_=e.key;if("css"===_){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 P=e.stylisPlugins||q,R={},T=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+_+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)R[t[n]]=!0;T.push(e)});var A=(n=(t=[U,z].concat(P,[j,(i=function(e){w.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),D=function(e){var t,n;return M((n=function e(t,n,r,i,a,v,w,k,_){for(var O,P=0,R=0,T=w,A=0,M=0,j=0,D=1,F=1,B=1,V=0,U="",z=a,q=v,W=i,$=U;F;)switch(j=V,V=x()){case 40:if(108!=j&&58==l($,T-1)){-1!=u($+=s(C(V),"&","&\f"),"&\f")&&(B=-1);break}case 34:case 39:case 91:$+=C(V);break;case 9:case 10:case 13:case 32:$+=function(e){for(;g=S();)if(g<33)x();else break;return E(e)>2||E(g)>3?"":" "}(j);break;case 92:$+=function(e,t){for(var n;--t&&x()&&!(g<48)&&!(g>102)&&(!(g>57)||!(g<65))&&(!(g>70)||!(g<97)););return n=m+(t<6&&32==S()&&32==x()),c(y,e,n)}(m-1,7);continue;case 47:switch(S()){case 42:case 47:f(b(O=function(e,t){for(;x();)if(e+g===57)break;else if(e+g===84&&47===S())break;return"/*"+c(y,t,m-1)+"*"+o(47===e?e:x())}(x(),m),n,r,I,o(g),c(O,2,-2),0),_);break;default:$+="/"}break;case 123*D:k[P++]=d($)*B;case 125*D:case 59:case 0:switch(V){case 0:case 125:F=0;case 59+R:-1==B&&($=s($,/\f/g,"")),M>0&&d($)-T&&f(M>32?L($+";",i,r,T-1):L(s($," ","")+";",i,r,T-2),_);break;case 59:$+=";";default:if(f(W=N($,n,r,P,R,a,k,U,z=[],q=[],T),v),123===V){if(0===R)e($,n,W,W,z,v,T,k,q);else switch(99===A&&110===l($,3)?100:A){case 100:case 108:case 109:case 115:e(t,W,W,i&&f(N(t,W,W,0,0,a,k,U,a,z=[],T),q),a,q,T,k,i?z:q);break;default:e($,W,W,W,[""],q,0,k,q)}}}P=R=M=0,D=B=1,U=$="",T=w;break;case 58:T=1+d($),M=j;default:if(D<1){if(123==V)--D;else if(125==V&&0==D++&&125==(g=m>0?l(y,--m):0,p--,10===g&&(p=1,h--),g))continue}switch($+=o(V),V*D){case 38:B=R>0?1:($+="\f",-1);break;case 44:k[P++]=(d($)-1)*B,B=1;break;case 64:45===S()&&($+=C(x())),A=S(),R=T=d(U=$+=function(e){for(;!E(S());)x();return c(y,e,m)}(m)),V++;break;case 45:45===j&&2==d($)&&(D=0)}}return v}("",null,null,null,[""],t=k(t=e),0,[0],t),y="",n),A)};v=function(e,t,n,r){w=n,D(e?e+"{"+t.styles+"}":t.styles),r&&(F.inserted[t.name]=!0)};var F={key:_,sheet:new r({key:_,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:R,registered:{},insert:v};return F.sheet.hydrate(T),F}},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 v},c:function(){return y},h:function(){return m},w:function(){return f}});var r=n(66703),i=n(76317),o=n(82040),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(37362),u=n(73513),l=n(93949),c=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);c.Provider;var d=function(){return(0,r.useContext)(c)},f=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(c),n)})},h=r.createContext({}),p=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),v=function(e){var t=r.useContext(h);return e.theme!==t&&(t=p(t)(e.theme)),r.createElement(h.Provider,{value:t},e.children)},m={}.hasOwnProperty,g="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(e,t){var n={};for(var r in t)m.call(t,r)&&(n[r]=t[r]);return n[g]=e,n},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,l.L)(function(){return(0,s.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[g],a=[i],l="";"string"==typeof e.className?l=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(l=e.className+" ");var c=(0,u.O)(a,void 0,r.useContext(h));l+=t.key+"-"+c.name;var d={};for(var f in e)m.call(e,f)&&"css"!==f&&f!==g&&(d[f]=e[f]);return d.className=l,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(b,{cache:t,serialized:c,isStringTag:"string"==typeof o}),r.createElement(o,d))})},68312:function(e,t,n){"use strict";n.d(t,{F4:function(){return h},iv:function(){return f},tZ:function(){return c},xB:function(){return d}});var r,i,o=n(9116),a=n(66703),s=n(37362),u=n(93949),l=n(73513);n(76317),n(55829);var c=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=o.E,i[1]=(0,o.c)(e,t);for(var s=2;s<r;s++)i[s]=n[s];return a.createElement.apply(null,i)};r=c||(c={}),i||(i=r.JSX||(r.JSX={}));var d=(0,o.w)(function(e,t){var n=e.styles,r=(0,l.O)([n],void 0,a.useContext(o.T)),i=a.useRef();return(0,u.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),(0,u.j)(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&(0,s.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null});function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.O)(t)}function h(){var e=f.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},73513:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(74580),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":l(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)l(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var u=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+u+";";break;default:r+=o+"{"+u+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,f(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(n,t,s)):a+=s[0];for(var u=1;u<e.length;u++)a+=f(n,t,e[u]),o&&(a+=s[u]);h.lastIndex=0;for(var l="";null!==(i=h.exec(a));)l+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+l,styles:a,next:r}}},93949:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return s}});var r,i=n(66703),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},37362:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},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,a,s,u,l,c,d,f=!1;t||(t={}),a=t.debug||!1;try{if(u=r(),l=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){a&&console.warn("unable to use e.clipboardData"),a&&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),l.selectNodeContents(d),c.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){a&&console.error("unable to copy using execCommand: ",r),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){a&&console.error("unable to copy using clipboardData: ",r),a&&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",s=n.replace(/#{\s*key\s*}/g,o),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),d&&document.body.removeChild(d),u()}return f}},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,a="greedy"===e.graph().acyclicer?i(e,function(t){return e.edge(t).weight}):(t=[],n={},o={},r.forEach(e.nodes(),function i(a){r.has(o,a)||(o[a]=!0,n[a]=!0,r.forEach(e.outEdges(a),function(e){r.has(n,e.w)?t.push(e):i(e.w)}),delete n[a])}),t);r.forEach(a,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,a){var s=o[t][a-1],u=i.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:t},n);o[t][a]=u,e.setParent(u,r),s&&e.setEdge(s,u,{weight:1})}e.exports=function(e){r.forEach(e.children(),function t(n){var i=e.children(n),a=e.node(n);if(i.length&&r.forEach(i,t),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,u=a.maxRank+1;s<u;++s)o(e,"borderLeft","_bl",n,a,s),o(e,"borderRight","_br",n,a,s)}})}},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 a(e){e.y=-e.y}function s(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){a(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(n)})),("lr"===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,"x")&&s(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,l,c,d,f,h,p=(n=t||a,l=new i,c=0,d=0,r.forEach(e.nodes(),function(e){l.setNode(e,{v:e,in:0,out:0})}),r.forEach(e.edges(),function(e){var t=l.edge(e.v,e.w)||0,r=n(e);l.setEdge(e.v,e.w,t+r),d=Math.max(d,l.node(e.v).out+=r),c=Math.max(c,l.node(e.w).in+=r)}),f=r.range(d+c+3).map(function(){return new o}),h=c+1,r.forEach(l.nodes(),function(e){u(f,h,l.node(e))}),{graph:l,buckets:f,zeroIdx:h}),v=function(e,t,n){for(var r,i=[],o=t[t.length-1],a=t[0];e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=o.dequeue();)s(e,t,n,r);if(e.nodeCount()){for(var u=t.length-2;u>0;--u)if(r=t[u].dequeue()){i=i.concat(s(e,t,n,r,!0));break}}}return i}(p.graph,p.buckets,p.zeroIdx);return r.flatten(r.map(v,function(t){return e.outEdges(t.v,t.w)}),!0)};var a=r.constant(1);function s(e,t,n,i,o){var a=o?[]:void 0;return r.forEach(e.inEdges(i.v),function(r){var i=e.edge(r),s=e.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(t,n,s)}),r.forEach(e.outEdges(i.v),function(r){var i=e.edge(r),o=r.w,a=e.node(o);a.in-=i,u(t,n,a)}),e.removeNode(i.v),a}function u(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),a=n(9e4),s=n(82453).normalizeRanks,u=n(28717),l=n(82453).removeEmptyRanks,c=n(1806),d=n(16290),f=n(62831),h=n(80182),p=n(56754),v=n(82453),m=n(4732).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?v.time:v.notime;n("layout",function(){var t=n(" buildLayoutGraph",function(){var t,n;return t=new m({multigraph:!0,compound:!0}),n=_(e.graph()),t.setGraph(r.merge({},y,C(n,g),r.pick(n,b))),r.forEach(e.nodes(),function(n){var i=_(e.node(n));t.setNode(n,r.defaults(C(i,w),x)),t.setParent(n,e.parent(n))}),r.forEach(e.edges(),function(n){var i=_(e.edge(n));t.setEdge(n,r.merge({},E,C(i,S),r.pick(i,k)))}),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(){a(v.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};v.addDummyNode(t,"edge-proxy",i,"_ep")}})}),n(" removeEmptyRanks",function(){l(t)}),n(" nestingGraph.cleanup",function(){c.cleanup(t)}),n(" normalizeRanks",function(){s(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(){u(t)}),n(" addBorderSegments",function(){d(t)}),n(" order",function(){h(t)}),n(" insertSelfEdges",function(){var e;e=v.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){v.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,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],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),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.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,a=e.graph(),s=a.marginx||0,u=a.marginy||0;function l(e){var r=e.x,a=e.y,s=e.width,u=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(e.nodes(),function(t){l(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.has(n,"x")&&l(n)}),t-=s,i-=u,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)}),a.width=n-t+s,a.height=o-i+u})(t)}),n(" assignNodeIntersects",function(){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(v.intersectRect(o,n)),i.points.push(v.intersectRect(a,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 g=["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"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function C(e,t){return r.mapValues(r.pick(e,t),Number)}function _(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 a=e.children(i);a&&a.length&&r.forEach(a,function(e){n(e,o+1)}),t[i]=o}(n,1)}),t),a=r.max(r.values(o))-1,s=2*a+1;e.graph().nestingRoot=n,r.forEach(e.edges(),function(t){e.edge(t).minlen*=s});var u=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,a,s,u,l){var c=t.children(l);if(!c.length){l!==n&&t.setEdge(n,l,{weight:0,minlen:o});return}var d=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),h=t.node(l);t.setParent(d,l),h.borderTop=d,t.setParent(f,l),h.borderBottom=f,r.forEach(c,function(r){e(t,n,o,a,s,u,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,h=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,v=c!==h?1:s-u[l]+1;t.setEdge(d,c,{weight:p,minlen:v,nestingEdge:!0}),t.setEdge(h,f,{weight:p,minlen:v,nestingEdge:!0})}),t.parent(l)||t.setEdge(n,d,{weight:0,minlen:s+u[l]})})(e,n,s,u,a,o,t)}),e.graph().nodeRankFactor=s},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,a=t.v,s=e.node(a).rank,u=t.w,l=e.node(u).rank,c=t.name,d=e.edge(t),f=d.labelRank;if(l!==s+1){for(e.removeEdge(t),o=0,++s;s<l;++o,++s)d.points=[],r={width:0,height:0,edgeLabel:d,edgeObj:t,rank:s},n=i.addDummyNode(e,"edge",r,"_d"),s===f&&(r.width=d.width,r.height=d.height,r.dummy="edge-label",r.labelpos=d.labelpos),e.setEdge(a,n,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,u,{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,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s){t.setEdge(a,s);return}s=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),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return e.node(t)});return r.forEach(e.nodes(),function(i){var s=e.node(i),u=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||o),r.forEach(e[n](i),function(t){var n=t.v===i?t.w:t.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:e.edge(t).weight+s})}),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),a}},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),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var u=r.map(Array(s),function(){return 0}),l=0;return r.forEach(o.forEach(function(e){var t=e.pos+a;u[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=u[t+1]),t=t-1>>1,u[t]+=e.weight;l+=e.weight*n})),l}(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),a=n(96023),s=n(78666),u=n(44338),l=n(4732).Graph,c=n(82453);function d(e,t,n){return r.map(t,function(t){return s(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"),s=d(e,r.range(t-1,-1,-1),"outEdges"),h=i(e);f(e,h);for(var p,v=Number.POSITIVE_INFINITY,m=0,g=0;g<4;++m,++g){(function(e,t){var n=new l;r.forEach(e,function(e){var i=e.graph().root,o=a(e,i,n,t);r.forEach(o.vs,function(t,n){e.node(t).order=n}),u(e,n,o.vs)})})(m%2?n:s,m%4>=2),h=c.buildLayerMatrix(e);var y=o(e,h);y<v&&(g=0,p=r.cloneDeep(h),v=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[]}),a=r.sortBy(n,function(t){return e.node(t).rank});return r.forEach(a,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),a=n(38832);e.exports=function e(t,n,s,u){var l=t.children(n),c=t.node(n),d=c?c.borderLeft:void 0,f=c?c.borderRight:void 0,h={};d&&(l=r.filter(l,function(e){return e!==d&&e!==f}));var p=i(t,l);r.forEach(p,function(n){if(t.children(n.v).length){var i=e(t,n.v,s,u);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 v=o(p,s);r.forEach(v,function(e){e.vs=r.flatten(e.vs.map(function(e){return h[e]?h[e].vs:e}),!0)});var m=a(v,u);if(d&&(m.vs=r.flatten([d,m.vs,f],!0),t.predecessors(d).length)){var g=t.node(t.predecessors(d)[0]),y=t.node(t.predecessors(f)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+g.order+y.order)/(m.weight+2),m.weight+=2}return m}},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,a=i.partition(e,function(e){return r.has(e,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(e){return-e.i}),l=[],c=0,d=0,f=0;s.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(l,u,f),r.forEach(s,function(e){f+=e.vs.length,l.push(e.vs),c+=e.barycenter*e.weight,d+=e.weight,f=o(l,u,f)});var h={vs:r.flatten(l,!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 a=n;r.forEach(e.children(o),i),t[o]={low:a,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,a=[],s=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);i=n;do a.push(i=e.parent(i));while(i&&(t[i].low>u||l>t[i].lim));for(o=i,i=r;(i=e.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(e,i,r.v,r.w),a=o.path,s=o.lca,u=0,l=a[0],c=!0;t!==r.w;){if(n=e.node(t),c){for(;(l=a[u])!==s&&e.node(l).maxRank<n.rank;)u++;l===s&&(c=!1)}if(!c){for(;u<a.length-1&&e.node(l=a[u+1]).minRank<=n.rank;)u++;l=a[u]}e.setParent(t,l),t=e.successors(t)[0]}})}},64353:function(e,t,n){"use strict";var r=n(83861),i=n(4732).Graph,o=n(82453);function a(e,t){var n={};return r.reduce(t,function(t,i){var o=0,a=0,s=t.length,l=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:s;(d||t===l)&&(r.forEach(i.slice(a,c+1),function(t){r.forEach(e.predecessors(t),function(r){var i=e.node(r),a=i.order;(a<o||f<a)&&!(i.dummy&&e.node(t).dummy)&&u(n,r,t)})}),a=c+1,o=f)}),i}),n}function s(e,t){var n={};function i(t,i,o,a,s){var l;r.forEach(r.range(i,o),function(i){l=t[i],e.node(l).dummy&&r.forEach(e.predecessors(l),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&u(n,t,l)})})}return r.reduce(t,function(t,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,t.length)}),n}),n}function u(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 l(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={},a={},s={};return r.forEach(t,function(e){r.forEach(e,function(e,t){o[e]=e,a[e]=e,s[e]=t})}),r.forEach(t,function(e){var t=-1;r.forEach(e,function(e){var u=i(e);if(u.length)for(var c=((u=r.sortBy(u,function(e){return s[e]})).length-1)/2,d=Math.floor(c),f=Math.ceil(c);d<=f;++d){var h=u[d];a[e]===e&&t<s[h]&&!l(n,e,h)&&(a[h]=e,a[e]=o[e]=o[h],t=s[h])}})}),{root:o,align:a}}function d(e,t,n,o,a){var s,u,l,c,d,f={},h=(l=new i,s=(c=e.graph()).nodesep,u=c.edgesep,d=function(e,t,n){var i,o,l=e.node(t),c=e.node(n);if(i=0+l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":o=-l.width/2;break;case"r":o=l.width/2}if(o&&(i+=a?o:-o),o=0,i+=(l.dummy?u:s)/2+(c.dummy?u:s)/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+=a?o:-o),o=0,i},r.forEach(t,function(t){var i;r.forEach(t,function(t){var r=n[t];if(l.setNode(r),i){var o=n[i],a=l.edge(o,r);l.setEdge(o,r,Math.max(d(e,t,i),a||0))}i=t})}),l),p=a?"borderLeft":"borderRight";function v(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 v(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)),v(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(a){var s,u=n+a,l=e[u];if(l!==t){var c=r.values(l);(s="l"===a?i-r.min(c):o-r.max(c))&&(e[u]=r.mapValues(l,function(e){return e+s}))}})})}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(a(e,n),s(e,n)),u={};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 a=("u"===o?e.predecessors:e.successors).bind(e),s=c(e,t,i,a),l=d(e,t,s.root,s.align,"r"===n);"r"===n&&(l=r.mapValues(l,function(e){return-e})),u[o+n]=l})});var l=f(e,u);return h(u,l),p(u,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:u,hasConflict:l,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,a,s;t=e=i.asNonCompoundGraph(e),n=i.buildLayerMatrix(t),a=t.graph().ranksep,s=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=s+n/2}),s+=n+a}),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,a=new i({directed:!1}),s=e.nodes()[0],u=e.nodeCount();for(a.setNode(s,{});r.forEach(a.nodes(),function t(n){r.forEach(e.nodeEdges(n),function(r){var i=r.v,s=n===i?r.w:i;a.hasNode(s)||o(e,r)||(a.setNode(s,{}),a.setEdge(n,s,{}),t(s))})}),a.nodeCount()<u;)t=function(e,t){return r.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)})}(a,e),n=a.hasNode(t.v)?o(e,t):-o(e,t),function(e,t,n){r.forEach(e.nodes(),function(e){t.node(e).rank+=n})}(a,e,n);return a}},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":a(e)}};var a=r},60666:function(e,t,n){"use strict";var r=n(83861),i=n(82080),o=n(89394).slack,a=n(89394).longestPath,s=n(4732).alg.preorder,u=n(4732).alg.postorder,l=n(82453).simplify;function c(e){a(e=l(e));var t,n,r=i(e);for(h(r),d(r,e);t=p(r);)n=v(r,e,t),m(r,e,t,n)}function d(e,t){var n=u(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,a=t.edge(n,i),s=0;return a||(o=!1,a=t.edge(i,n)),s=a.weight,r.forEach(t.nodeEdges(n),function(r){var a=r.v===n,u=a?r.w:r.v;if(u!==i){var l=a===o,c=t.edge(r).weight;if(s+=l?c:-c,e.hasEdge(n,u)){var d=e.edge(n,u).cutvalue;s+=l?-d:d}}}),s}function h(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,i,o,a){var s=i,u=t.node(o);return n[o]=!0,r.forEach(t.neighbors(o),function(a){r.has(n,a)||(i=e(t,n,i,a,o))}),u.low=s,u.lim=i++,a?u.parent=a:delete u.parent,i}(e,{},1,t)}function p(e){return r.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function v(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var s=e.node(i),u=e.node(a),l=s,c=!1;s.lim>u.lim&&(l=u,c=!0);var d=r.filter(t.edges(),function(t){return c===g(e,e.node(t.v),l)&&c!==g(e,e.node(t.w),l)});return r.minBy(d,function(e){return o(t,e)})}function m(e,t,n,i){var o,a,u=n.v,l=n.w;e.removeEdge(u,l),e.setEdge(i.v,i.w,{}),h(e),d(e,t),o=r.find(e.nodes(),function(e){return!t.node(e).parent}),a=(a=s(e,o)).slice(1),r.forEach(a,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 g(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=v,c.exchangeEdges=m},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 a=r.min(r.map(e.outEdges(i),function(t){return n(t.w)-e.edge(t).minlen}));return(a===Number.POSITIVE_INFINITY||null==a)&&(a=0),o.rank=a})},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 a(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,a=t.x-i,s=t.y-o,u=e.width/2,l=e.height/2;if(!a&&!s)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(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:a,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"},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=[],a={};return r.each(t,function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);(function e(t,n,i,o,a,s){!r.has(o,n)&&(o[n]=!0,i||s.push(n),r.each(a(n),function(n){e(t,n,i,o,a,s)}),i&&s.push(n))})(e,t,"post"===n,a,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,a,s={},u=new i,l=function(e){var t=e.v!==o?e.v:e.w,r=s[t],i=n(e),l=a.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);l<r.distance&&(r.distance=l,r.predecessor=o,u.decrease(t,l))};for(e.nodes().forEach(function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)});u.size()>0&&(a=s[o=u.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(o).forEach(l);return s}(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,a,s;return r=t||i,o=n||function(t){return e.outEdges(t)},a={},(s=e.nodes()).forEach(function(e){a[e]={},a[e][e]={distance:0},s.forEach(function(t){e!==t&&(a[e][t]={distance:Number.POSITIVE_INFINITY})}),o(e).forEach(function(t){var n=t.v===e?t.w:t.v,i=r(t);a[e][n]={distance:i,predecessor:e}})}),s.forEach(function(e){var t=a[e];s.forEach(function(n){var r=a[n];s.forEach(function(n){var i=r[e],o=t[n],a=r[n],s=i.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)})})}),a};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,a=new i,s={},u=new o;function l(e){var r=e.v===n?e.w:e.v,i=u.priority(r);if(void 0!==i){var o=t(e);o<i&&(s[r]=n,u.decrease(r,o))}}if(0===e.nodeCount())return a;r.each(e.nodes(),function(e){u.add(e,Number.POSITIVE_INFINITY),a.setNode(e)}),u.decrease(e.nodes()[0],0);for(var c=!1;u.size()>0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else if(c)throw Error("Input graph is not connected: "+e);else c=!0;e.nodeEdges(n).forEach(l)}return a}},15946:function(e,t,n){var r=n(98252);e.exports=function(e){var t=0,n=[],i={},o=[];return e.nodes().forEach(function(a){r.has(i,a)||function a(s){var u=i[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach(function(e){r.has(i,e)?i[e].onStack&&(u.lowlink=Math.min(u.lowlink,i[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,i[e].lowlink))}),u.lowlink===u.index){var l,c=[];do i[l=n.pop()].onStack=!1,c.push(l);while(s!==l);o.push(c)}}(a)}),o}},7223:function(e,t,n){var r=n(98252);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],i.push(s))}),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 a(e,t){--e[t]||delete e[t]}function s(e,t,n,i){var o=""+t,a=""+n;if(!e&&o>a){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(e,t){return s(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,a=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(e=u.v,t=u.w,n=u.name,2==arguments.length&&(i=arguments[1],a=!0)):(e=u,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,e,t,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=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[l]=a?i:this._defaultEdgeLabelFn(e,t,n);var c=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[l]=c,o(this._preds[t],e),o(this._sucs[e],t),this._in[t][l]=c,this._out[e][l]=c,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1==arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var i=1==arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(e,t,n){var r=1==arguments.length?u(this._isDirected,arguments[0]):s(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],a(this._preds[t],e),a(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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=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 a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),v=u(n),m=0;m<a.length;++m){var g=a[m];if(!o[g]&&!(r&&r[g])&&!(v&&v[g])&&!(s&&s[g])){var y=f(n,g);try{l(t,g,y)}catch(e){}}}}return t}},58450:function(e,t,n){e=n.nmd(e);var r,i,o,a,s,u,l,c,d,f,h,p="__lodash_hash_undefined__",v="[object Arguments]",m="[object Function]",g="[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[v]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w[m]=w["[object Map]"]=w["[object Number]"]=w[g]=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,E=x||S||Function("return this")(),k=t&&!t.nodeType&&t,C=k&&e&&!e.nodeType&&e,_=C&&C.exports===k,O=_&&x.process,P=function(){try{var e=C&&C.require&&C.require("util").types;if(e)return e;return O&&O.binding&&O.binding("util")}catch(e){}}(),I=P&&P.isTypedArray,R=Array.prototype,T=Function.prototype,A=Object.prototype,M=E["__core-js_shared__"],j=T.toString,N=A.hasOwnProperty,L=(l=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",D=A.toString,F=j.call(Object),B=RegExp("^"+j.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=_?E.Buffer:void 0,U=E.Symbol,z=E.Uint8Array,q=V?V.allocUnsafe:void 0,W=(c=Object.getPrototypeOf,d=Object,function(e){return c(d(e))}),$=Object.create,Z=A.propertyIsEnumerable,G=R.splice,H=U?U.toStringTag:void 0,K=function(){try{var e=eh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=V?V.isBuffer:void 0,J=Math.max,X=Date.now,Q=eh(E,"Map"),ee=eh(Object,"create"),et=function(){function e(){}return function(t){if(!eC(t))return{};if($)return $(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 ea(e,t,n){(void 0===n||ey(e[t],n))&&(void 0!==n||t in e)||eu(e,t,n)}function es(e,t){for(var n=e.length;n--;)if(ey(e[n][0],t))return n;return -1}function eu(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=es(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=es(t,e);return n<0?void 0:t[n][1]},er.prototype.has=function(e){return es(this.__data__,e)>-1},er.prototype.set=function(e,t){var n=this.__data__,r=es(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 el=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function ec(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":H&&H in Object(e)?function(e){var t=N.call(e,H),n=e[H];try{e[H]=void 0;var r=!0}catch(e){}var i=D.call(e);return r&&(t?e[H]=n:delete e[H]),i}(e):D.call(e)}function ed(e){return e_(e)&&ec(e)==v}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!(!eC(n)||L&&L in n)&&(eE(n)?B: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 ev(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function em(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var eg=(r=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eR,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 e_(e)&&N.call(e,"callee")&&!Z.call(e,"callee")},ew=Array.isArray;function ex(e){return null!=e&&ek(e.length)&&!eE(e)}var eS=Y||function(){return!1};function eE(e){if(!eC(e))return!1;var t=ec(e);return t==m||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ek(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eC(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function e_(e){return null!=e&&"object"==typeof e}var eO=I?function(e){return I(e)}:function(e){return e_(e)&&ek(e.length)&&!!w[ec(e)]};function eP(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),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var l in e)(t||N.call(e,l))&&!(a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ep(l,u)))&&s.push(l);return s}(e,!0):function(e){if(!eC(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ev(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&&el(n,function(a,s){if(o||(o=new eo),eC(a))(function(e,t,n,r,i,o,a){var s=em(e,n),u=em(t,n),l=a.get(u);if(l){ea(e,n,l);return}var c=o?o(s,u,n+"",e,t,a):void 0,d=void 0===c;if(d){var f,h,p,v=ew(u),m=!v&&eS(u),y=!v&&!m&&eO(u);c=u,v||m||y?ew(s)?c=s:e_(s)&&ex(s)?c=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):m?(d=!1,c=function(e,t){if(t)return e.slice();var n=e.length,r=q?q(n):new e.constructor(n);return e.copy(r),r}(u,!0)):y?(d=!1,new z(h=new(f=u.buffer).constructor(f.byteLength)).set(new z(f)),p=h,c=new u.constructor(p,u.byteOffset,u.length)):c=[]:function(e){if(!e_(e)||ec(e)!=g)return!1;var t=W(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&j.call(n)==F}(u)||eb(u)?(c=s,eb(s)?c=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=void 0;void 0===u&&(u=e[s]),i?eu(n,s,u):function(e,t,n){var r=e[t];N.call(e,t)&&ey(r,n)&&(void 0!==n||t in e)||eu(e,t,n)}(n,s,u)}return n}(s,eP(s)):(!eC(s)||eE(s))&&(c="function"!=typeof u.constructor||ev(u)?{}:et(W(u)))):d=!1}d&&(a.set(u,c),i(c,u,r,o,a),a.delete(u)),ea(e,n,c)})(t,n,s,r,e,i,o);else{var u=i?i(em(t,s),a,s+"",t,n,o):void 0;void 0===u&&(u=a),ea(t,s,u)}},eP)}(e,t,n,r)},eg((a=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(!eC(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 a=t[n];a&&f(e,a,n,i)}return e},s=void 0,u=eR,s=J(void 0===s?a.length-1:s,0),function(){for(var e=arguments,t=-1,n=J(e.length-s,0),r=Array(n);++t<n;)r[t]=e[s+t];t=-1;for(var i=Array(s+1);++t<s;)i[t]=e[t];return i[s]=u(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)}(a,this,i)}),h+""));function eR(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),a=n(10372),s=n(19545);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},18016:function(e,t,n){var r=n(78037),i=n(53001),o=n(683),a=n(83148),s=n(85877);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},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),a=n(90381),s=n(24878);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},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 a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},16214:function(e,t,n){var r=n(18016),i=n(96951),o=n(27441),a=n(9476),s=n(48661),u=n(56903);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},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 a=e[n];t(a,n,e)&&(o[i++]=a)}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),a=n(81430),s=n(16770),u=n(50762),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&u(e),h=n||c||d||f,p=h?r(e.length,String):[],v=p.length;for(var m in e)(t||l.call(e,m))&&!(h&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v)))&&p.push(m);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 a=e[t];o.call(e,t)&&i(a,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),a=n(95770),s=n(47115),u=n(934),l=n(72754),c=n(83769),d=n(42160),f=n(82457),h=n(10813),p=n(90315),v=n(67496),m=n(16550),g=n(59712),y=n(53170),b=n(81430),w=n(463),x=n(33747),S=n(9246),E=n(53707),k=n(85586),C="[object Arguments]",_="[object Function]",O="[object Object]",P={};P[C]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[O]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[_]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,I,R,T,A){var M,j=1&n,N=2&n,L=4&n;if(I&&(M=T?I(t,R,T,A):I(t)),void 0!==M)return M;if(!x(t))return t;var D=y(t);if(D){if(M=v(t),!j)return l(t,M)}else{var F=p(t),B=F==_||"[object GeneratorFunction]"==F;if(b(t))return u(t,j);if(F==O||F==C||B&&!T){if(M=N||B?{}:g(t),!j)return N?d(t,s(M,t)):c(t,a(M,t))}else{if(!P[F])return T?t:{};M=m(t,F,j)}}A||(A=new r);var V=A.get(t);if(V)return V;A.set(t,M),S(t)?t.forEach(function(r){M.add(e(r,n,I,r,t,A))}):w(t)&&t.forEach(function(r,i){M.set(i,e(r,n,I,i,t,A))});var U=L?N?h:f:N?k:E,z=D?void 0:U(t);return i(z||t,function(r,i){z&&(r=t[i=r]),o(M,i,e(r,n,I,i,t,A))}),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 a=e[i],s=t(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,l=a}return l}},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,a,s){var u=-1,l=t.length;for(o||(o=i),s||(s=[]);++u<l;){var c=t[u];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},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),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a 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,a,s){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,a,e,s):t!=t&&n!=n)}},66084:function(e,t,n){var r=n(16214),i=n(92176),o=n(29033),a=n(47781),s=n(90315),u=n(53170),l=n(81430),c=n(50762),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,g){var y=u(e),b=u(t),w=y?f:s(e),x=b?f:s(t);w=w==d?h:w,x=x==d?h:x;var S=w==h,E=x==h,k=w==x;if(k&&l(e)){if(!l(t))return!1;y=!0,S=!1}if(k&&!S)return g||(g=new r),y||c(e)?i(e,t,n,v,m,g):o(e,t,w,n,v,m,g);if(!(1&n)){var C=S&&p.call(e,"__wrapped__"),_=E&&p.call(t,"__wrapped__");if(C||_){var O=C?e.value():e,P=_?t.value():t;return g||(g=new r),m(O,P,n,v,g)}}return!!k&&(g||(g=new r),a(e,t,n,v,m,g))}},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 a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=n[a])[0],d=e[c],f=l[1];if(u&&l[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),a=n(88217),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,d=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(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),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},80929:function(e,t,n){var r=n(82888),i=n(96223),o=n(42639),a=n(53170),s=n(33646);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(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),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||n.push(s);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),a=n(40383),s=n(86454),u=n(13615),l=n(71323);e.exports=function(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},1753:function(e,t,n){var r=n(16214),i=n(48436),o=n(68091),a=n(85603),s=n(33747),u=n(85586),l=n(51927);e.exports=function e(t,n,c,d,f){t!==n&&o(n,function(o,u){if(f||(f=new r),s(o))a(t,n,u,c,e,d,f);else{var h=d?d(l(t,u),o,u+"",t,n,f):void 0;void 0===h&&(h=o),i(t,u,h)}},u)}},85603:function(e,t,n){var r=n(48436),i=n(934),o=n(69645),a=n(72754),s=n(59712),u=n(31474),l=n(53170),c=n(63489),d=n(81430),f=n(83137),h=n(33747),p=n(27529),v=n(50762),m=n(51927),g=n(87943);e.exports=function(e,t,n,y,b,w,x){var S=m(e,n),E=m(t,n),k=x.get(E);if(k){r(e,n,k);return}var C=w?w(S,E,n+"",e,t,x):void 0,_=void 0===C;if(_){var O=l(E),P=!O&&d(E),I=!O&&!P&&v(E);C=E,O||P||I?l(S)?C=S:c(S)?C=a(S):P?(_=!1,C=i(E,!0)):I?(_=!1,C=o(E,!0)):C=[]:p(E)||u(E)?(C=S,u(S)?C=g(S):(!h(S)||f(S))&&(C=s(E))):_=!1}_&&(x.set(E,C),b(C,E,y,w,x),x.delete(E)),r(e,n,C)}},56263:function(e,t,n){var r=n(9157),i=n(22008),o=n(80929),a=n(58781),s=n(7319),u=n(38993),l=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,u(o)),s(a(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return l(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 a=-1,s=t.length,u={};++a<s;){var l=t[a],c=r(e,l);n(c,l)&&i(u,o(l,e),c)}return u}},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 a=-1,s=n(t((r-e)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=i;return u}},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),a=n(33747),s=n(71323);e.exports=function(e,t,n,u){if(!a(e))return e;t=i(t,e);for(var l=-1,c=t.length,d=c-1,f=e;null!=f&&++l<c;){var h=s(t[l]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(l!=d){var v=f[h];void 0===(p=u?u(v,h,f):void 0)&&(p=a(v)?v:o(t[l+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),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},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),a=n(35711),s=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-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),a=n(472),s=n(98556),u=n(42724);e.exports=function(e,t,n){var l=-1,c=i,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=o;else if(d>=200){var v=t?null:s(e);if(v)return u(v);f=!1,c=a,p=new r}else p=t?[]:h;e:for(;++l<d;){var m=e[l],g=t?t(m):m;if(m=n||0!==m?m:0,f&&g==g){for(var y=p.length;y--;)if(p[y]===g)continue e;t&&p.push(g),h.push(m)}else c(p,g,n)||(p!==h&&p.push(g),h.push(m))}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,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}},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),a=n(62912);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(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,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(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,a=r(e),s=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l)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,a=t.criteria,s=o.length,u=n.length;++i<s;){var l=r(o[i],a[i]);if(l){if(i>=u)return l;return l*("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 a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=o?o(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?i(n,l,c):r(n,l,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,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}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,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},32243:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,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,a){var s=Object(t);if(!i(t)){var u=r(n,3);t=o(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]: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,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},98556:function(e,t,n){var r=n(42713),i=n(81250),o=n(42724),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},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,a,s,u){var l=1&n,c=e.length,d=t.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(e),h=u.get(t);if(f&&h)return f==t&&h==e;var p=-1,v=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<c;){var g=e[p],y=t[p];if(a)var b=l?a(y,g,p,t,e,u):a(g,y,p,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(g===e||s(g,e,n,a,u)))return m.push(t)})){v=!1;break}}else if(!(g===y||s(g,y,n,a,u))){v=!1;break}}return u.delete(e),u.delete(t),v}},29033:function(e,t,n){var r=n(77624),i=n(57821),o=n(37414),a=n(92176),s=n(89006),u=n(42724),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,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=s;case"[object Set]":var p=1&r;if(h||(h=u),e.size!=t.size&&!p)break;var v=f.get(e);if(v)return v==t;r|=2,f.set(e,t);var m=a(h(e),h(t),r,l,d,f);return f.delete(e),m;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,a,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var v=!0;s.set(e,t),s.set(t,e);for(var m=u;++d<c;){var g=e[f=l[d]],y=t[f];if(o)var b=u?o(y,g,f,t,e,s):o(g,y,f,e,t,s);if(!(void 0===b?g===y||a(g,y,n,o,s):b)){v=!1;break}m||(m="constructor"==f)}if(v&&!m){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)&&(v=!1)}return s.delete(e),s.delete(t),v}},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],a=e[o];t[n]=[o,a,r(a)]}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,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},17186:function(e,t,n){var r=n(70903),i=n(49752),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:r(a(e=Object(e)),function(t){return o.call(e,t)})}:i;e.exports=s},67458:function(e,t,n){var r=n(4578),i=n(44841),o=n(17186),a=n(49752),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},90315:function(e,t,n){var r=n(65684),i=n(6223),o=n(11577),a=n(42713),s=n(25062),u=n(99852),l=n(88217),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",v=l(r),m=l(i),g=l(o),y=l(a),b=l(s),w=u;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=c||o&&w(o.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return p;case m:return c;case g: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),a=n(16770),s=n(23558),u=n(71323);e.exports=function(e,t,n){t=r(t,e);for(var l=-1,c=t.length,d=!1;++l<c;){var f=u(t[l]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(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),a=n(70927),s=n(69645);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+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 s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(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),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},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),a=n(33747);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return("number"==s?!!(i(n)&&o(t,n.length)):"string"==s&&t in n)&&r(n[t],e)}},40383:function(e,t,n){var r=n(53170),i=n(35711),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\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))||a.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,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},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,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(u),r(e,this,l)}}},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 a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}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,a=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=a},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}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|")+")"+(u+s+l),"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}}},69174:function(e,t,n){var r=n(37078),i=n(37414),o=n(82569),a=n(85586),s=Object.prototype,u=s.hasOwnProperty,l=r(function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++n<r;)for(var c=t[n],d=a(c),f=-1,h=d.length;++f<h;){var p=d[f],v=e[p];(void 0===v||i(v,s[p])&&!u.call(e,p))&&(e[p]=c[p])}return e});e.exports=l},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),a=n(53170);e.exports=function(e,t){return(a(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),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(e,i(t,3),u)}},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),a=n(53170);e.exports=function(e,t){return(a(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,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},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,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||i},94765:function(e,t,n){var r=n(17236),i=n(90315),o=n(31474),a=n(53170),s=n(13359),u=n(81430),l=n(52801),c=n(50762),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(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),a=o&&o.isMap,s=a?i(a):r;e.exports=s},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),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.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=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},9246:function(e,t,n){var r=n(3657),i=n(38993),o=n(88958),a=o&&o.isSet,s=a?i(a):r;e.exports=s},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),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},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),a=n(53170);e.exports=function(e,t){return(a(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 a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};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),a=n(71323);e.exports=function(e){return o(e)?r(a(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),a=n(41716),s=n(53170);e.exports=function(e,t,n){var u=s(e)?r:a,l=arguments.length<3;return u(e,o(t,4),n,l,i)}},16257:function(e,t,n){var r=n(17236),i=n(90315),o=n(13359),a=n(74925),s=n(98397);e.exports=function(e){if(null==e)return 0;if(o(e))return a(e)?s(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),a=n(82569),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},49752:function(e){e.exports=function(){return[]}},62280:function(e){e.exports=function(){return!1}},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),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;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=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+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),a=n(80929),s=n(44841),u=n(53170),l=n(81430),c=n(83137),d=n(33747),f=n(50762);e.exports=function(e,t,n){var h=u(e),p=h||l(e)||f(e);if(t=a(t,4),null==n){var v=e&&e.constructor;n=p?h?new v:[]:d(e)&&c(v)?i(s(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),a=n(63489),s=i(function(e){return o(r(e,1,a,!0))});e.exports=s},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}},55763:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(49416),i=n.n(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)},15078:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(78356);let r=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 e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79033:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(78356),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(34721),i=n(20130),o=r._(n(66703)),a=n(59842),s=n(8241),u=n(37268),l=n(66153),c=n(15078),d=n(40687),f=n(55204),h=n(42759),p=n(79033),v=n(58630),m=n(14631),g=new Set;function y(e,t,n,r,i,o){if("undefined"!=typeof window&&(o||(0,s.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let w=o.default.forwardRef(function(e,t){let n,r;let{href:u,as:g,children:w,prefetch:x=null,passHref:S,replace:E,shallow:k,scroll:C,locale:_,onClick:O,onMouseEnter:P,onTouchStart:I,legacyBehavior:R=!1,...T}=e;n=w,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let A=o.default.useContext(d.RouterContext),M=o.default.useContext(f.AppRouterContext),j=null!=A?A:M,N=!A,L=!1!==x,D=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:B}=o.default.useMemo(()=>{if(!A){let e=b(u);return{href:e,as:g?b(g):e}}let[e,t]=(0,a.resolveHref)(A,u,!0);return{href:e,as:g?(0,a.resolveHref)(A,g):t||e}},[A,u,g]),V=o.default.useRef(F),U=o.default.useRef(B);R&&(r=o.default.Children.only(n));let z=R?r&&"object"==typeof r&&r.ref:t,[q,W,$]=(0,h.useIntersection)({rootMargin:"200px"}),Z=o.default.useCallback(e=>{(U.current!==B||V.current!==F)&&($(),U.current=B,V.current=F),q(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[B,z,F,$,q]);o.default.useEffect(()=>{j&&W&&L&&y(j,F,B,{locale:_},{kind:D},N)},[B,F,W,_,L,null==A?void 0:A.locale,j,N,D]);let G={ref:Z,onClick(e){R||"function"!=typeof O||O(e),R&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),j&&!e.defaultPrevented&&function(e,t,n,r,i,a,u,l,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(f):f()}(e,j,F,B,E,k,C,_,N)},onMouseEnter(e){R||"function"!=typeof P||P(e),R&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),j&&(L||!N)&&y(j,F,B,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:D},N)},onTouchStart:function(e){R||"function"!=typeof I||I(e),R&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),j&&(L||!N)&&y(j,F,B,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:D},N)}};if((0,l.isAbsoluteUrl)(B))G.href=B;else if(!R||S||"a"===r.type&&!("href"in r.props)){let e=void 0!==_?_:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,p.getDomainLocale)(B,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);G.href=t||(0,v.addBasePath)((0,c.addLocale)(B,e,null==A?void 0:A.defaultLocale))}return R?o.default.cloneElement(r,G):(0,i.jsx)("a",{...T,...G,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59842:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(8225),i=n(37268),o=n(38724),a=n(66153),s=n(78356),u=n(8241),l=n(16011),c=n(22257);function d(e,t,n){let d;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,u.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,l.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,i.formatWithValidation)({pathname:a,hash:e.hash,query:(0,o.omit)(n,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42759:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(66703),i=n(95991),o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,l=u||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(l||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[l,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81503:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=u(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;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)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)o.push(n[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+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+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function u(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 a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(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 u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=a(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),s.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 s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|f(e.length),r=a(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?a(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 s.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 l(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 l(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=a(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(s.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 C(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:C(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,o,a=!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+=R[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(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(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=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:g(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):g(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,u=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;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var d=!0,f=0;f<u;f++)if(l(e,o+f)!==l(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,a,s,u,l=e[i],c=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}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(!s.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 E(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=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.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}}(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.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},s.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}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(I(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.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)v(this,t,t+1);return this},s.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)v(this,t,t+3),v(this,t+1,t+2);return this},s.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)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.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&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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,a=n-t,u=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),d=0;d<u;++d)if(l[d]!==c[d]){o=l[d],a=c[d];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},s.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,a,s,u,l,c,d,f,h,p,v,m=this.length-t;if((void 0===n||n>m)&&(n=m),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var g=!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 a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return u=t,l=n,P(C(e,this.length-u),this,u,l);case"ascii":return c=t,d=n,P(_(e),this,c,d);case"latin1":case"binary":return i=this,o=e,a=t,s=n,P(_(o),i,a,s);case"base64":return f=t,h=n,P(O(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,v=n,P(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,v);default:if(g)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),g=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.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,s.prototype),r},s.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},s.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},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.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]},s.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])},s.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},s.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},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.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},s.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},s.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},s.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]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.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,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},s.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,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.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},s.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},s.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},s.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},s.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},s.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,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.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,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.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},s.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},s.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},s.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},s.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},s.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.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},s.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&&!s.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 a=s.isBuffer(e)?e:s.from(e,r),u=a.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%u]}return this};var k=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+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 _(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(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(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 R=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,a,s=8*i-r-1,u=(1<<s)-1,l=u>>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+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*v}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&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,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(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,a=o-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var u=n.length-s,l=a<u?a:u,c=-1,d=0;d<=l;++d){if(d===l){if(u>l){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>l&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+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(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_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,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;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,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){i=r+1;break}}else -1===u&&(a=!1,u=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!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,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47===u){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===u?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&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 a=-1,s=0,u=-1,l=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!l){s=c+1;break}continue}-1===u&&(l=!1,u=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===u||0===d||1===d&&a===u-1&&a===s+1?-1!==u&&(0===s&&o?r.base=r.name=e.slice(1,u):r.base=r.name=e.slice(s,u)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,u)):(r.name=e.slice(s,a),r.base=e.slice(s,u)),r.ext=e.slice(a,u)),s>0?r.dir=e.slice(0,s-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:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&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 a(){throw Error("clearTimeout has not been defined")}function s(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:a}catch(e){n=a}}();var u=[],l=!1,c=-1;function d(){l&&r&&(l=!1,r.length?u=r.concat(u):c=-1,u.length&&f())}function f(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(r=u,u=[];++c<t;)r&&r[c].run();c=-1,t=u.length}r=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!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];u.push(new h(e,t)),1!==u.length||l||s(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:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},97966:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},40687:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(34721)._(n(66703)).default.createContext(null)},37268:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let r=n(32616)._(n(8225)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:n&&(l=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==l?(l="//"+(l||""),a&&"/"!==a[0]&&(a="/"+a)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+o+l+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},16011:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(94515),i=n(23943)},22257:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(80522),i=n(93939);function o(e,t,n){let o="",a=(0,i.getRouteRegex)(e),s=a.groups,u=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;o=e;let l=Object.keys(s);return l.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=s[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(o=o.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:l,result:o}}},23943:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(16137),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},8241:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(66153),i=n(15042);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},38724:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},8225:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,r(e))):t.set(n,r(i))}),t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},80522:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(66153);function i(e){let{re:t,groups:n}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>o(e)):t.repeat?[o(r)]:o(r))}),a}}},93939:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return u},parseParameter:function(){return a}});let r=n(16137),i=n(97966),o=n(37318);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function s(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),n={},s=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&o){let{key:e,optional:r,repeat:u}=a(o[1]);return n[e]={pos:s++,repeat:u,optional:r},"/"+(0,i.escapeStringRegexp)(t)+"([^/]+?)"}if(!o)return"/"+(0,i.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(o[1]);return n[e]={pos:s++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=s(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function l(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:o,keyPrefix:s}=e,{key:u,optional:l,repeat:c}=a(r),d=u.replace(/\W/g,"");s&&(d=""+s+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),s?o[d]=""+s+u:o[d]=u;let h=t?(0,i.escapeStringRegexp)(t):"";return c?l?"(?:/"+h+"(?<"+d+">.+?))?":"/"+h+"(?<"+d+">.+?)":"/"+h+"(?<"+d+">[^/]+?)"}function c(e,t){let n;let a=(0,o.removeTrailingSlash)(e).slice(1).split("/"),s=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&o){let[n]=e.split(o[0]);return l({getSafeRouteKey:s,interceptionMarker:n,segment:o[1],routeKeys:u,keyPrefix:t?"nxtI":void 0})}return o?l({getSafeRouteKey:s,segment:o[1],routeKeys:u,keyPrefix:t?"nxtP":void 0}):"/"+(0,i.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function d(e,t){let n=c(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=s(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},94515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},66153:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return v},PageNotFoundError:function(){return m},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return l},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&l(n))return r;if(!r)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class v extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},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,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,u,l,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(u=s;0!=u--;)if(!e(o[u],a[u]))return!1;return!0}if(n&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=o.entries();!(u=c.next()).done;)if(!e(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(u=s;0!=u--;)if(o[u]!==a[u])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(l=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(u=s;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(t&&o instanceof Element)return!1;for(u=s;0!=u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!o.$$typeof)&&!e(o[l[u]],a[l[u]]))return!1;return!0}return o!=o&&a!=a}(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 u}});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),a=function(){return(a=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)},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};function u(e){return function(t){return r.createElement(l,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function l(e){var t=function(t){var n,i=e.attr,o=e.size,u=e.title,l=s(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",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,l,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),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,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=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,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=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 s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case m:case v:case u:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},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)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},3326:function(e,t,n){"use strict";e.exports=n(94280)},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()}}},89907:function(e,t,n){"use strict";var r=n(66703),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})},[e,n,t]),a(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},13562:function(e,t,n){"use strict";var r=n(66703),i=n(18638),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=l(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,i]))[0],d[1]);return u(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)},7903:function(){},52907:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(32295);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},82040:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},80830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(52907);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},14022:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return r}})},37399:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},32295:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81109);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},81109:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},19774:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(95034),i=n(66703),o=n(37584);function a(e){let{isOpen:t,ref:n}=e,[a,s]=(0,i.useState)(t),[u,l]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{u||(s(t),l(!0))},[t,u,a]),(0,o.O)(()=>n.current,"animationend",()=>{s(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,r.kR)(n.current)).CustomEvent("animationend",{bubbles:!0});null===(e=n.current)||void 0===e||e.dispatchEvent(t)}}}},55229:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(66703);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.call(n,...r)},t)}},64126:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(66703),i=n(24989);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,o]=(0,r.useState)(!1),[a,s]=(0,r.useState)(e);(0,r.useEffect)(()=>s(e),[e]);let{timeout:u=1500,...l}="number"==typeof t?{timeout:t}:t,c=(0,r.useCallback)(e=>{let t="string"==typeof e?e:a;"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>o(!0)).catch(()=>o(i(t,l))):o(i(t,l))},[a,l]);return(0,r.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},u)),()=>{e&&window.clearTimeout(e)}},[u,n]),{value:a,setValue:s,onCopy:c,hasCopied:n}}},85071:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(55229),i=n(66703);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClose:t,onOpen:n,isOpen:o,id:a}=e,s=(0,r.W)(n),u=(0,r.W)(t),[l,c]=(0,i.useState)(e.defaultIsOpen||!1),d=void 0!==o?o:l,f=void 0!==o,h=(0,i.useId)(),p=null!=a?a:"disclosure-".concat(h),v=(0,i.useCallback)(()=>{f||c(!1),null==u||u()},[f,u]),m=(0,i.useCallback)(()=>{f||c(!0),null==s||s()},[f,s]),g=(0,i.useCallback)(()=>{d?v():m()},[d,m,v]);return{isOpen:d,onOpen:m,onClose:v,onToggle:g,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),g()}}},getDisclosureProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,hidden:!d,id:p}}}}},37584:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(66703),i=n(55229);function o(e,t,n,o){let a=(0,i.W)(n);return(0,r.useEffect)(()=>{let r="function"==typeof e?e():null!=e?e:document;if(n&&r)return r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}},[t,e,o,a,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,a,o)}}},15749:function(e,t,n){"use strict";n.d(t,{C:function(){return c},G:function(){return f}});var r=n(95034),i=n(94279),o=n(29239),a=n(66703),s=n(37584),u=n(59129),l=n(95318);function c(e,t){let{shouldFocus:n,visible:o,focusRef:a}=t,s=n&&!o;(0,l.r)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let n=(0,r.vY)(t);return!(!n||t.contains(n))&&!!(0,i.Wq)(n)}(e))return;let n=(null==a?void 0:a.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}let d={preventScroll:!0,shouldFocus:!1};function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,{focusRef:n,preventScroll:r,shouldFocus:i,visible:c}=t,f="current"in e?e.current:e,h=i&&c,p=(0,a.useRef)(h),v=(0,a.useRef)(c);(0,u.G)(()=>{!v.current&&c&&(p.current=h),v.current=c},[c,h]);let m=(0,a.useCallback)(()=>{if(c&&f&&p.current&&(p.current=!1,!f.contains(document.activeElement))){if(null==n?void 0:n.current)requestAnimationFrame(()=>{var e;null===(e=n.current)||void 0===e||e.focus({preventScroll:r})});else{let e=(0,o.t5)(f);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:r})})}}},[c,r,f,n]);(0,l.r)(()=>{m()},[m]),(0,s.O)(f,"transitionend",m)}},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,u=(0,i.W)(n),l=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,r.useEffect)(()=>{if(!o)return;let e=e=>{a(e,t)&&(l.isPointerDown=!0)},r=e=>{if(l.ignoreEmulatedMouseEvents){l.ignoreEmulatedMouseEvents=!1;return}l.isPointerDown&&n&&a(e,t)&&(l.isPointerDown=!1,u(e))},i=e=>{l.ignoreEmulatedMouseEvents=!0,n&&l.isPointerDown&&a(e,t)&&(l.isPointerDown=!1,u(e))},c=s(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",r,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",i,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",r,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",i,!0)}},[n,t,u,l,o])}function a(e,t){var n,r,i;let o=null!==(i=null===(n=e.composedPath)||void 0===n?void 0:n.call(e)[0])&&void 0!==i?i:e.target;return(!o||!!s(o).contains(o))&&!(null===(r=t.current)||void 0===r?void 0:r.contains(o))}function s(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document}},59129:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r,i=n(66703);let o=(null===(r=globalThis)||void 0===r?void 0:r.document)?i.useLayoutEffect:i.useEffect},95318:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(66703);let i=(e,t)=>{let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current&&i.current)return e();i.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},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"})},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"})},50393:function(e,t,n){"use strict";n.d(t,{uZ:function(){return u},Hm:function(){return c},TR:function(){return h},XO:function(){return p},oX:function(){return l},uL:function(){return d}});var r=n(9396),i=n(20130),o=n(5845);function a(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var s=n(56756);let[u,l]=(0,r.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[c,d]=(0,r.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),f={info:{icon:function(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:a,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:a,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function h(e){return f[e].colorScheme}function p(e){return f[e].icon}},76902:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(20130),i=n(71034),o=n(90010),a=n(50393),s=n(43906),u=n(49110);let l=(0,s.G)(function(e,t){let{status:n}=(0,a.oX)(),s=(0,a.uL)(),l=(0,i.k0)({display:"inline",...s.description});return(0,r.jsx)(u.m.div,{ref:t,"data-status":n,...e,className:(0,o.cx)("chakra-alert__desc",e.className),__css:l})});l.displayName="AlertDescription"},49956:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(20130),i=n(90010),o=n(50393),a=n(49110);function s(e){let{status:t}=(0,o.oX)(),n=(0,o.XO)(t),s=(0,o.uL)(),u="loading"===t?s.spinner:s.icon;return(0,r.jsx)(a.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:u,children:e.children||(0,r.jsx)(n,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},18422:function(e,t,n){"use strict";n.d(t,{b:function(){return d}});var r=n(20130),i=n(66861),o=n(71034),a=n(90010),s=n(50393),u=n(35364),l=n(43906),c=n(49110);let d=(0,l.G)(function(e,t){var n;let{status:l="info",addRole:d=!0,...f}=(0,i.L)(e),h=null!==(n=e.colorScheme)&&void 0!==n?n:(0,s.TR)(l),p=(0,u.j)("Alert",{...e,colorScheme:h}),v=(0,o.k0)({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container});return(0,r.jsx)(s.uZ,{value:{status:l},children:(0,r.jsx)(s.Hm,{value:p,children:(0,r.jsx)(c.m.div,{"data-status":l,role:d?"alert":void 0,ref:t,...f,className:(0,a.cx)("chakra-alert",e.className),__css:v})})})});d.displayName="Alert"},28561:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=(0,n(49110).m)("div");r.displayName="Box"},13319:function(e,t,n){"use strict";n.d(t,{D:function(){return r},i:function(){return i}});let[r,i]=(0,n(9396).k)({strict:!1,name:"ButtonGroupContext"})},30566:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(20130),i=n(90010),o=n(66703),a=n(13319),s=n(43906),u=n(49110);let l={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},c={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},d=(0,s.G)(function(e,t){let{size:n,colorScheme:s,variant:d,className:f,spacing:h="0.5rem",isAttached:p,isDisabled:v,orientation:m="horizontal",...g}=e,y=(0,i.cx)("chakra-button__group",f),b=(0,o.useMemo)(()=>({size:n,colorScheme:s,variant:d,isDisabled:v}),[n,s,d,v]),w={display:"inline-flex",...p?l[m]:c[m](h)},x="vertical"===m;return(0,r.jsx)(a.D,{value:b,children:(0,r.jsx)(u.m.div,{ref:t,role:"group",__css:w,className:y,"data-attached":p?"":void 0,"data-orientation":m,flexDir:x?"column":void 0,...g})})});d.displayName="ButtonGroup"},19736:function(e,t,n){"use strict";n.d(t,{z:function(){return g}});var r=n(20130),i=n(6461),o=n(66861),a=n(26934),s=n(90010),u=n(66703),l=n(13319),c=n(49110);function d(e){let{children:t,className:n,...i}=e,o=(0,u.isValidElement)(t)?(0,u.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,a=(0,s.cx)("chakra-button__icon",n);return(0,r.jsx)(c.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:a,children:o})}d.displayName="ButtonIcon";var f=n(71034),h=n(56756);function p(e){let{label:t,placement:n,spacing:i="0.5rem",children:o=(0,r.jsx)(h.$,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:l,...d}=e,p=(0,s.cx)("chakra-button__spinner",a),v="start"===n?"marginEnd":"marginStart",m=(0,u.useMemo)(()=>(0,f.k0)({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...l}),[l,t,v,i]);return(0,r.jsx)(c.m.div,{className:p,...d,__css:m,children:o})}p.displayName="ButtonSpinner";var v=n(43906),m=n(35364);let g=(0,v.G)((e,t)=>{let n=(0,l.i)(),d=(0,m.m)("Button",{...n,...e}),{isDisabled:f=null==n?void 0:n.isDisabled,isLoading:h,isActive:v,children:g,leftIcon:b,rightIcon:w,loadingText:x,iconSpacing:S="0.5rem",type:E,spinner:k,spinnerPlacement:C="start",className:_,as:O,shouldWrapChildren:P,...I}=(0,o.L)(e),R=(0,u.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:T,type:A}=function(e){let[t,n]=(0,u.useState)(!e);return{ref:(0,u.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(O),M={rightIcon:w,leftIcon:b,iconSpacing:S,children:g,shouldWrapChildren:P};return(0,r.jsxs)(c.m.button,{disabled:f||h,ref:(0,i.qq)(t,T),as:O,type:null!=E?E:A,"data-active":(0,a.P)(v),"data-loading":(0,a.P)(h),__css:R,className:(0,s.cx)("chakra-button",_),...I,children:[h&&"start"===C&&(0,r.jsx)(p,{className:"chakra-button__spinner--start",label:x,placement:"start",spacing:S,children:k}),h?x||(0,r.jsx)(c.m.span,{opacity:0,children:(0,r.jsx)(y,{...M})}):(0,r.jsx)(y,{...M}),h&&"end"===C&&(0,r.jsx)(p,{className:"chakra-button__spinner--end",label:x,placement:"end",spacing:S,children:k})]})});function y(e){let{leftIcon:t,rightIcon:n,children:i,iconSpacing:o,shouldWrapChildren:a}=e;return a?(0,r.jsxs)("span",{style:{display:"contents"},children:[t&&(0,r.jsx)(d,{marginEnd:o,children:t}),i,n&&(0,r.jsx)(d,{marginStart:o,children:n})]}):(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(d,{marginEnd:o,children:t}),i,n&&(0,r.jsx)(d,{marginStart:o,children:n})]})}g.displayName="Button"},71676:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(20130),i=n(66703),o=n(19736);let a=(0,n(43906).G)((e,t)=>{let{icon:n,children:a,isRound:s,"aria-label":u,...l}=e,c=n||a,d=(0,i.isValidElement)(c)?(0,i.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,r.jsx)(o.z,{px:"0",py:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":u,...l,children:d})});a.displayName="IconButton"},50537:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(20130),i=n(49110),o=n(43906);let a=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";let s={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,o.G)(function(e,t){let{axis:n="both",...o}=e;return(0,r.jsx)(i.m.div,{ref:t,__css:s[n],...o,position:"absolute"})})},70549:function(e,t,n){"use strict";n.d(t,{X:function(){return k}});var r=n(20130),i=n(66861),o=n(11915),a=n(33164),s=n(90010),u=n(68312),l=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 v(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 m=n(50192),g=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,u.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),S=(0,u.F4)({from:{opacity:0},to:{opacity:1}}),E=(0,u.F4)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),k=(0,g.G)(function(e,t){let n=d(),u={...n,...e},c=(0,y.j)("Checkbox",u),h=(0,i.L)(e),{spacing:p="0.5rem",className:g,children:k,iconColor:C,iconSize:_,icon:O=(0,r.jsx)(v,{}),isChecked:P,isDisabled:I=null==n?void 0:n.isDisabled,onChange:R,inputProps:T,...A}=h,M=P;(null==n?void 0:n.value)&&h.value&&(M=n.value.includes(h.value));let j=R;(null==n?void 0:n.onChange)&&h.value&&(j=(0,o.P)(n.onChange,R));let{state:N,getInputProps:L,getCheckboxProps:D,getLabelProps:F,getRootProps:B}=(0,m.O)({...A,isDisabled:I,isChecked:M,onChange:j}),V=function(e){let[t,n]=(0,l.useState)(e),[r,i]=(0,l.useState)(!1);return e!==t&&(i(!0),n(e)),r}(N.isChecked),U=(0,l.useMemo)(()=>({animation:V?N.isIndeterminate?"".concat(S," 20ms linear, ").concat(E," 200ms linear"):"".concat(x," 200ms linear"):void 0,...c.icon,...(0,a.o)({fontSize:_,color:C})}),[C,_,V,N.isIndeterminate,c.icon]),z=(0,l.cloneElement)(O,{__css:U,isIndeterminate:N.isIndeterminate,isChecked:N.isChecked});return(0,r.jsxs)(f.m.label,{__css:{...w,...c.container},className:(0,s.cx)("chakra-checkbox",g),...B(),children:[(0,r.jsx)("input",{className:"chakra-checkbox__input",...L(T,t)}),(0,r.jsx)(f.m.span,{__css:{...b,...c.control},className:"chakra-checkbox__control",...D(),children:z}),k&&(0,r.jsx)(f.m.span,{className:"chakra-checkbox__label",...F(),__css:{marginStart:p,...c.label},children:k})]})});k.displayName="Checkbox"},50192:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(55229),i=n(59129),o=n(95318),a=n(6461),s=n(40810),u=n(26934),l=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:m,id:g,onBlur:y,onFocus:b,"aria-describedby":w}=(0,f.K)(e),{defaultChecked:x,isChecked:S,isFocusable:E,onChange:k,isIndeterminate:C,name:_,value:O,tabIndex:P,"aria-label":I,"aria-labelledby":R,"aria-invalid":T,...A}=e,M=(0,s.C)(A,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),j=(0,r.W)(k),N=(0,r.W)(y),L=(0,r.W)(b),[D,F]=(0,d.useState)(!1),[B,V]=(0,d.useState)(!1),[U,z]=(0,d.useState)(!1),[q,W]=(0,d.useState)(!1);(0,d.useEffect)(()=>(0,c.BT)(F),[]);let $=(0,d.useRef)(null),[Z,G]=(0,d.useState)(!0),[H,K]=(0,d.useState)(!!x),Y=void 0!==S,J=Y?S:H,X=(0,d.useCallback)(e=>{if(n||t){e.preventDefault();return}Y||(J?K(e.currentTarget.checked):K(!!C||e.currentTarget.checked)),null==j||j(e)},[n,t,J,Y,C,j]);(0,i.G)(()=>{$.current&&($.current.indeterminate=!!C)},[C]),(0,o.r)(()=>{t&&V(!1)},[t,V]),(0,i.G)(()=>{let e=$.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&&!E,ee=(0,d.useCallback)(e=>{" "===e.key&&W(!0)},[W]),et=(0,d.useCallback)(e=>{" "===e.key&&W(!1)},[W]);(0,i.G)(()=>{$.current&&$.current.checked!==J&&K($.current.checked)},[$.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,u.P)(q),"data-hover":(0,u.P)(U),"data-checked":(0,u.P)(J),"data-focus":(0,u.P)(B),"data-focus-visible":(0,u.P)(B&&D),"data-indeterminate":(0,u.P)(C),"data-disabled":(0,u.P)(t),"data-invalid":(0,u.P)(m),"data-readonly":(0,u.P)(n),"aria-hidden":!0,onMouseDown:(0,l.v)(e.onMouseDown,e=>{B&&e.preventDefault(),W(!0)}),onMouseUp:(0,l.v)(e.onMouseUp,()=>W(!1)),onMouseEnter:(0,l.v)(e.onMouseEnter,()=>z(!0)),onMouseLeave:(0,l.v)(e.onMouseLeave,()=>z(!1))}},[q,J,t,B,D,U,C,m,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,u.P)(q),"data-hover":(0,u.P)(U),"data-checked":(0,u.P)(J),"data-focus":(0,u.P)(B),"data-focus-visible":(0,u.P)(B&&D),"data-indeterminate":(0,u.P)(C),"data-disabled":(0,u.P)(t),"data-invalid":(0,u.P)(m),"data-readonly":(0,u.P)(n)}},[q,J,t,B,D,U,C,m,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:Z?g:void 0,...e,ref:(0,a.lq)(n,e=>{e&&G("LABEL"===e.tagName)}),onClick:(0,l.v)(e.onClick,()=>{if(!Z){var e;null===(e=$.current)||void 0===e||e.click(),requestAnimationFrame(()=>{var e;null===(e=$.current)||void 0===e||e.focus({preventScroll:!0})})}}),"data-disabled":(0,u.P)(t),"data-checked":(0,u.P)(J),"data-invalid":(0,u.P)(m)}},[M,t,J,m,Z,g]),eo=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,a.lq)($,r),type:"checkbox",name:_,value:O,id:g,tabIndex:P,onChange:(0,l.v)(e.onChange,X),onBlur:(0,l.v)(e.onBlur,N,()=>V(!1)),onFocus:(0,l.v)(e.onFocus,L,()=>V(!0)),onKeyDown:(0,l.v)(e.onKeyDown,ee),onKeyUp:(0,l.v)(e.onKeyUp,et),required:p,checked:J,disabled:Q,readOnly:n,"aria-label":I,"aria-labelledby":R,"aria-invalid":T?!!T:m,"aria-describedby":w,"aria-disabled":t,"aria-checked":C?"mixed":J,style:h.N}},[_,O,g,P,X,N,L,ee,et,p,J,Q,n,I,R,T,m,w,t,C]),ea=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:n,onMouseDown:(0,l.v)(e.onMouseDown,v),"data-disabled":(0,u.P)(t),"data-checked":(0,u.P)(J),"data-invalid":(0,u.P)(m)}},[J,t,m]);return{state:{isInvalid:m,isFocused:B,isChecked:J,isActive:q,isHovered:U,isIndeterminate:C,isDisabled:t,isReadOnly:n,isRequired:p},getRootProps:ei,getCheckboxProps:en,getIndicatorProps:er,getInputProps:eo,getLabelProps:ea,htmlProps:M}}function v(e){e.preventDefault(),e.stopPropagation()}},74269:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(6461),i=n(26934),o=n(66703);function a(e){var t,n,r;let{tagName:i,isContentEditable:o}=null!==(r=null===(n=e.composedPath)||void 0===n?void 0:null===(t=n.call(e))||void 0===t?void 0:t[0])&&void 0!==r?r:e.target;return"INPUT"!==i&&"TEXTAREA"!==i&&!0!==o}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,isDisabled:n,isFocusable:s,clickOnEnter:u=!0,clickOnSpace:l=!0,onMouseDown:c,onMouseUp:d,onClick:f,onKeyDown:h,onKeyUp:p,tabIndex:v,onMouseOver:m,onMouseLeave:g,...y}=e,[b,w]=(0,o.useState)(!0),[x,S]=(0,o.useState)(!1),E=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}}(),k=b?v:v||0,C=n&&!s,_=(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&&a(e)&&(e.preventDefault(),e.stopPropagation(),S(!1),E.remove(document,"keyup",O,!1))},[x,E]),P=(0,o.useCallback)(e=>{if(null==h||h(e),n||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||b)return;let t=u&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),S(!0)),t&&(e.preventDefault(),e.currentTarget.click()),E.add(document,"keyup",O,!1)},[n,b,h,u,l,E,O]),I=(0,o.useCallback)(e=>{null==p||p(e),!n&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),S(!1),e.currentTarget.click())},[l,b,n,p]),R=(0,o.useCallback)(e=>{0===e.button&&(S(!1),E.remove(document,"mouseup",R,!1))},[E]),T=(0,o.useCallback)(e=>{if(0===e.button){if(n){e.stopPropagation(),e.preventDefault();return}b||S(!0),e.currentTarget.focus({preventScroll:!0}),E.add(document,"mouseup",R,!1),null==c||c(e)}},[n,b,c,E,R]),A=(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==m||m(e)},[n,m]),j=(0,o.useCallback)(e=>{x&&(e.preventDefault(),S(!1)),null==g||g(e)},[x,g]),N=(0,r.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&w(!1)});return b?{...y,ref:N,type:"button","aria-disabled":C?void 0:n,disabled:C,onClick:_,onMouseDown:c,onMouseUp:d,onKeyUp:p,onKeyDown:h,onMouseOver:m,onMouseLeave:g}:{...y,ref:N,role:"button","data-active":(0,i.P)(x),"aria-disabled":n?"true":void 0,tabIndex:C?void 0:k,onClick:_,onMouseDown:T,onMouseUp:A,onKeyUp:I,onKeyDown:P,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),a=n(43906),s=n(35364),u=n(49110);function l(e){return(0,r.jsx)(o.J,{focusable:"false","aria-hidden":!0,...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}let c=(0,a.G)(function(e,t){let n=(0,s.m)("CloseButton",e),{children:o,isDisabled:a,__css:c,...d}=(0,i.L)(e);return(0,r.jsx)(u.m.button,{type:"button","aria-label":"Close",ref:t,disabled:a,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...c},...d,children:o||(0,r.jsx)(l,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},16276:function(e,t,n){"use strict";n.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var r=n(66703);let i=(0,r.createContext)({});function o(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:n}=o();return"dark"===n?t:e}i.displayName="ColorModeContext"},39577:function(e,t,n){"use strict";n.d(t,{n:function(){return m}});var r=n(6461),i=n(9396),o=n(66703);function a(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}let s=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function u(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function l(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 v{constructor(){var e=this;p(this,"descendants",new Map),p(this,"register",e=>{if(null!=e)return s(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),p(this,"unregister",e=>{this.descendants.delete(e);let t=a(Array.from(this.descendants.keys()));this.assignIndex(t)}),p(this,"destroy",()=>{this.descendants.clear()}),p(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),p(this,"count",()=>this.descendants.size),p(this,"enabledCount",()=>this.enabledValues().length),p(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),p(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),p(this,"item",e=>{if(0!==this.count())return this.values()[e]}),p(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),p(this,"first",()=>this.item(0)),p(this,"firstEnabled",()=>this.enabledItem(0)),p(this,"last",()=>this.item(this.descendants.size-1)),p(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),p(this,"indexOf",e=>{var t,n;return e&&null!==(n=null===(t=this.descendants.get(e))||void 0===t?void 0:t.index)&&void 0!==n?n:-1}),p(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),p(this,"next",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=u(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=u(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=l(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=l(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(i)}),p(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=a(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}}function m(){let[e,t]=(0,i.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{let e=(0,o.useRef)(new v);return c(()=>()=>e.current.destroy()),e.current},e=>{let n=t(),[i,a]=(0,o.useState)(-1),s=(0,o.useRef)(null);c(()=>()=>{s.current&&n.unregister(s.current)},[]),c(()=>{if(!s.current)return;let e=Number(s.current.dataset.index);i==e||Number.isNaN(e)||a(e)});let u=e?d(n.register(e)):d(n.register);return{descendants:n,index:i,enabledIndex:n.enabledIndexOf(s.current),register:(0,r.lq)(u,s)}}]}},38622:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),u=n(49110);let l=(0,a.G)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:a,borderTopWidth:l,borderRightWidth:c,borderWidth:d,borderStyle:f,borderColor:h,...p}=(0,s.m)("Divider",e),{className:v,orientation:m="horizontal",__css:g,...y}=(0,i.L)(e);return(0,r.jsx)(u.m.hr,{ref:t,"aria-orientation":m,...y,__css:{...p,border:"0",borderColor:h,borderStyle:f,...{vertical:{borderLeftWidth:n||c||d||"1px",height:"100%"},horizontal:{borderBottomWidth:a||l||d||"1px",width:"100%"}}[m],...g},className:(0,o.cx)("chakra-divider",v)})});l.displayName="Divider"},6010:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(66703);function i(e){var t;let n=r.version;return"string"!=typeof n||n.startsWith("18.")?null==e?void 0:e.ref:null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.ref}},16909:function(e,t,n){"use strict";n.d(t,{O:function(){return s},u:function(){return u}});var r=n(20130),i=n(59129),o=n(66703);let a=(0,o.createContext)({getDocument:()=>document,getWindow:()=>window});function s(){let{defer:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[,t]=(0,o.useReducer)(e=>e+1,0);return(0,i.G)(()=>{e&&t()},[e]),(0,o.useContext)(a)}function u(e){let{children:t,environment:n,disabled:i}=e,s=(0,o.useRef)(null),u=(0,o.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==t?t:document},getWindow:()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.ownerDocument.defaultView)&&void 0!==t?t:window}},[n]),l=!i||!n;return(0,r.jsxs)(a.Provider,{value:u,children:[t,l&&(0,r.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",u.displayName="EnvironmentProvider"},51895:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(20130),i=n(43906),o=n(49110);let a=(0,i.G)(function(e,t){let{direction:n,align:i,justify:a,wrap:s,basis:u,grow:l,shrink:c,...d}=e;return(0,r.jsx)(o.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:s,flexBasis:u,flexGrow:l,flexShrink:c},...d})});a.displayName="Flex"},22488:function(e,t,n){"use strict";n.d(t,{NI:function(){return g},NJ:function(){return m},e:function(){return p}});var r=n(20130),i=n(6461),o=n(66861),a=n(9396),s=n(26934),u=n(90010),l=n(66703),c=n(43906),d=n(35364),f=n(49110);let[h,p]=(0,a.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[v,m]=(0,a.k)({strict:!1,name:"FormControlContext"}),g=(0,c.G)(function(e,t){let n=(0,d.j)("Form",e),{getRootProps:a,htmlProps:c,...p}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...u}=e,c=(0,l.useId)(),d=t||"field-".concat(c),f="".concat(d,"-label"),h="".concat(d,"-feedback"),p="".concat(d,"-helptext"),[v,m]=(0,l.useState)(!1),[g,y]=(0,l.useState)(!1),[b,w]=(0,l.useState)(!1),x=(0,l.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,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-focus":(0,s.P)(b),"data-disabled":(0,s.P)(o),"data-invalid":(0,s.P)(r),"data-readonly":(0,s.P)(a),id:void 0!==e.id?e.id:f,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}},[d,o,b,r,a,f]),E=(0,l.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&&m(!0)}),"aria-live":"polite"}},[h]),k=(0,l.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,...u,ref:t,role:"group","data-focus":(0,s.P)(b),"data-disabled":(0,s.P)(o),"data-invalid":(0,s.P)(r),"data-readonly":(0,s.P)(a)}},[u,o,b,r,a]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:v,setHasFeedbackText:m,hasHelpText:g,setHasHelpText:y,id:d,labelId:f,feedbackId:h,helpTextId:p,htmlProps:u,getHelpTextProps:x,getErrorMessageProps:E,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:(0,l.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)),m=(0,u.cx)("chakra-form-control",e.className);return(0,r.jsx)(v,{value:p,children:(0,r.jsx)(h,{value:n,children:(0,r.jsx)(f.m.div,{...a({},t),className:m,__css:n.container})})})});g.displayName="FormControl",(0,c.G)(function(e,t){let n=m(),i=p(),o=(0,u.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"},49151:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var r=n(20130),i=n(66861),o=n(90010),a=n(22488),s=n(43906),u=n(35364),l=n(49110);let c=(0,s.G)(function(e,t){var n;let s=(0,u.m)("FormLabel",e),c=(0,i.L)(e),{className:f,children:h,requiredIndicator:p=(0,r.jsx)(d,{}),optionalIndicator:v=null,...m}=c,g=(0,a.NJ)(),y=null!==(n=null==g?void 0:g.getLabelProps(m,t))&&void 0!==n?n:{ref:t,...m};return(0,r.jsxs)(l.m.label,{...y,className:(0,o.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...s},children:[h,(null==g?void 0:g.isRequired)?p:v]})});c.displayName="FormLabel";let d=(0,s.G)(function(e,t){let n=(0,a.NJ)(),i=(0,a.e)();if(!(null==n?void 0:n.isRequired))return null;let s=(0,o.cx)("chakra-form__required-indicator",e.className);return(0,r.jsx)(l.m.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:s})});d.displayName="RequiredIndicator"},31172:function(e,t,n){"use strict";n.d(t,{K:function(){return s},Y:function(){return a}});var r=n(26934),i=n(11915),o=n(22488);function a(e){let{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...a}=s(e);return{...a,disabled:t,readOnly:i,required:o,"aria-invalid":(0,r.Q)(n),"aria-required":(0,r.Q)(o),"aria-readonly":(0,r.Q)(i)}}function s(e){var t,n,r;let a=(0,o.NJ)(),{id:s,disabled:u,readOnly:l,required:c,isRequired:d,isInvalid:f,isReadOnly:h,isDisabled:p,onFocus:v,onBlur:m,...g}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&y.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&y.push(a.helpTextId),{...g,"aria-describedby":y.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!==(t=null!=u?u:p)&&void 0!==t?t:null==a?void 0:a.isDisabled,isReadOnly:null!==(n=null!=l?l:h)&&void 0!==n?n:null==a?void 0:a.isReadOnly,isRequired:null!==(r=null!=c?c:d)&&void 0!==r?r:null==a?void 0:a.isRequired,isInvalid:null!=f?f:null==a?void 0:a.isInvalid,onFocus:(0,i.v)(null==a?void 0:a.onFocus,v),onBlur:(0,i.v)(null==a?void 0:a.onBlur,m)}}},64274:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(20130),i=n(66703),o=n(5845),a=n(43906);function s(e){let{viewBox:t="0 0 24 24",d:n,displayName:s,defaultProps:u={}}=e,l=i.Children.toArray(e.path),c=(0,a.G)((e,i)=>(0,r.jsx)(o.J,{ref:i,viewBox:t,...u,...e,children:l.length?l:(0,r.jsx)("path",{fill:"currentColor",d:n})}));return c.displayName=s,c}},5845:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(20130),i=n(90010),o=n(43906),a=n(35364),s=n(49110);let u={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"},l=(0,o.G)((e,t)=>{let{as:n,viewBox:o,color:l="currentColor",focusable:c=!1,children:d,className:f,__css:h,...p}=e,v=(0,i.cx)("chakra-icon",f),m=(0,a.m)("Icon",e),g={ref:t,focusable:c,className:v,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l,...h,...m}},y=null!=o?o:u.viewBox;if(n&&"string"!=typeof n)return(0,r.jsx)(s.m.svg,{as:n,...g,...p});let b=null!=d?d:u.path;return(0,r.jsx)(s.m.svg,{verticalAlign:"middle",viewBox:y,...g,...p,children:b})});l.displayName="Icon"},87452:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(20130),i=n(66861),o=n(90010),a=n(31172),s=n(43906),u=n(35364),l=n(49110);let c=(0,s.G)(function(e,t){let{htmlSize:n,...s}=e,c=(0,u.j)("Input",s),d=(0,i.L)(s),f=(0,a.Y)(d),h=(0,o.cx)("chakra-input",e.className);return(0,r.jsx)(l.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 l}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),u=n(49110);let l=(0,a.G)(function(e,t){let n=(0,s.m)("Link",e),{className:a,isExternal:l,...c}=(0,i.L)(e);return(0,r.jsx)(u.m.a,{target:l?"_blank":void 0,rel:l?"noopener":void 0,ref:t,className:(0,o.cx)("chakra-link",a),...c,__css:n})});l.displayName="Link"},20395:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var r=n(93031),i=n(69475),o=n(66703),a=n(16909),s=n(35518);function u(e,t){var n;let u=function(e){var t,n;let i=(0,r.Kn)(e)?e:{fallback:null!=e?e:"base"},u=(0,s.F)().__breakpoints.details.map(e=>{let{minMaxQuery:t,breakpoint:n}=e;return{breakpoint:n,query:t.replace("@media screen and ","")}}),l=u.map(e=>e.breakpoint===i.fallback),c=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ssr:n=!0,fallback:r}=t,{getWindow:i}=(0,a.O)(),s=Array.isArray(e)?e:[e],u=Array.isArray(r)?r:[r];u=u.filter(e=>null!=e);let[l,c]=(0,o.useState)(()=>s.map((e,t)=>({media:e,matches:n?!!u[t]:i().matchMedia(e).matches})));return(0,o.useEffect)(()=>{let e=i();c(s.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=s.map(t=>e.matchMedia(t)),n=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)})}},[i]),l.map(e=>e.matches)})(u.map(e=>e.query),{fallback:l,ssr:i.ssr}).findIndex(e=>!0==e);return null!==(n=null===(t=u[c])||void 0===t?void 0:t.breakpoint)&&void 0!==n?n:i.fallback}((0,r.Kn)(t)?t:{fallback:null!=t?t:"base"}),l=(0,s.F)();if(!u)return;let c=Array.from((null===(n=l.__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,u,c)}},76421:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(20130),i=n(90010),o=n(91504),a=n(37261),s=n(43906),u=n(49110);let l=(0,s.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(u.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),c=(0,s.G)((e,t)=>{let{children:n,as:o,...s}=e,c=(0,a.zZ)(s,t),d=o||l;return(0,r.jsx)(d,{...c,className:(0,i.cx)("chakra-menu__menu-button",e.className),children:(0,r.jsx)(u.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});c.displayName="MenuButton"},64871:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(20130),i=n(90010),o=n(91504),a=n(43906),s=n(49110);let u=(0,a.G)((e,t)=>{let{title:n,children:a,className:u,...l}=e,c=(0,i.cx)("chakra-menu__group__title",u),d=(0,o.x)();return(0,r.jsxs)("div",{ref:t,className:"chakra-menu__group",role:"group",children:[n&&(0,r.jsx)(s.m.p,{className:c,...l,__css:d.groupTitle,children:n}),a]})});u.displayName="MenuGroup"},33028:function(e,t,n){"use strict";n.d(t,{O:function(){return u}});var r=n(20130),i=n(90010),o=n(66703),a=n(91504),s=n(49110);let u=e=>{let{className:t,children:n,...u}=e,l=(0,a.x)(),c=o.Children.only(n),d=(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{focusable:"false","aria-hidden":!0,className:(0,i.cx)("chakra-menu__icon",c.props.className)}):null,f=(0,i.cx)("chakra-menu__icon-wrapper",t);return(0,r.jsx)(s.m.span,{className:f,...u,__css:l.icon,children:d})};u.displayName="MenuIcon"},31319:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(20130),i=n(90010),o=n(91504),a=n(43906),s=n(49110);let u=(0,a.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(s.m.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});u.displayName="MenuCommand";var l=n(33028),c=n(66703);let d=(0,a.G)((e,t)=>{let{type:n,...i}=e,a=(0,o.x)(),u=i.as||n?null!=n?n:void 0:"button",l=(0,c.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...a.item}),[a.item]);return(0,r.jsx)(s.m.button,{ref:t,type:u,...i,__css:l})});var f=n(37261);let h=(0,a.G)((e,t)=>{let{icon:n,iconSpacing:o="0.75rem",command:a,commandSpacing:s="0.75rem",children:c,...h}=e,p=(0,f.iX)(h,t),v=n||a?(0,r.jsx)("span",{style:{pointerEvents:"none",flex:1},children:c}):c;return(0,r.jsxs)(d,{...p,className:(0,i.cx)("chakra-menu__menuitem",p.className),children:[n&&(0,r.jsx)(l.O,{fontSize:"0.8em",marginEnd:o,children:n}),v,a&&(0,r.jsx)(u,{marginStart:s,children:a})]})});h.displayName="MenuItem"},12353:function(e,t,n){"use strict";n.d(t,{q:function(){return h}});var r=n(20130),i=n(90010),o=n(11915),a=n(42349),s=n(91504),u=n(37261),l=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,l.m)(a.E.div),h=(0,c.G)(function(e,t){var n,a;let{rootProps:c,motionProps:h,...p}=e,{isOpen:v,onTransitionEnd:m,unstable__animationState:g}=(0,u.Xh)(),y=(0,u._l)(p,t),b=(0,u.Qh)(c),w=(0,s.x)();return(0,r.jsx)(l.m.div,{...b,__css:{zIndex:null!==(a=e.zIndex)&&void 0!==a?a:null===(n=w.list)||void 0===n?void 0:n.zIndex},children:(0,r.jsx)(f,{variants:d,initial:!1,animate:v?"enter":"exit",__css:{outline:0,...w.list},...h,...y,className:(0,i.cx)("chakra-menu__menu-list",y.className),onUpdate:m,onAnimationComplete:(0,o.P)(g.onComplete,y.onAnimationComplete)})})});h.displayName="MenuList"},91504:function(e,t,n){"use strict";n.d(t,{v:function(){return h},x:function(){return f}});var r=n(20130),i=n(66861),o=n(9396),a=n(69072),s=n(66703),u=n(37261),l=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,l.F)(),{descendants:h,...p}=(0,u.H9)({...o,direction:f}),v=(0,s.useMemo)(()=>p,[p]),{isOpen:m,onClose:g,forceUpdate:y}=v;return(0,r.jsx)(u.wN,{value:h,children:(0,r.jsx)(u.Kb,{value:v,children:(0,r.jsx)(d,{value:n,children:(0,a.P)(t,{isOpen:m,onClose:g,forceUpdate:y})})})})};h.displayName="Menu"},37261:function(e,t,n){"use strict";n.d(t,{wN:function(){return g},Kb:function(){return x},H9:function(){return k},zZ:function(){return C},Xh:function(){return S},iX:function(){return I},_l:function(){return O},Qh:function(){return P}});var r=n(85071),i=n(18404),o=n(15749),a=n(19774),s=n(66703),u=n(95318),l=n(6461),c=n(9396),d=n(26934),f=n(11915),h=n(27425),p=n(39577),v=n(48961),m=n(74269);let[g,y,b,w]=(0,p.n)(),[x,S]=(0,c.k)({strict:!1,name:"MenuContext"});function E(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document}function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{id:t,closeOnSelect:n=!0,closeOnBlur:l=!0,initialFocusRef:c,autoSelect:d=!0,isLazy:f,isOpen:h,defaultIsOpen:p,onClose:m,onOpen:g,placement:y="bottom-start",lazyBehavior:w="unmount",direction:x,computePositionOnMount:S=!1,...k}=e,C=(0,s.useRef)(null),_=(0,s.useRef)(null),O=(0,s.useRef)(!0),P=b(),I=(0,s.useCallback)(()=>{requestAnimationFrame(()=>{var e;null===(e=C.current)||void 0===e||e.focus({preventScroll:!1})})},[]),R=(0,s.useCallback)(()=>{let e=setTimeout(()=>{var e,t;if(c)null===(e=c.current)||void 0===e||e.focus();else if(P.count()){let e=P.firstEnabled();e&&B(e.index)}else null===(t=C.current)||void 0===t||t.focus({preventScroll:!1})});W.current.add(e)},[P,c]),T=(0,s.useCallback)(()=>{let e=setTimeout(()=>{if(P.count()){let e=P.lastEnabled();e&&B(e.index)}else{var e;null===(e=C.current)||void 0===e||e.focus({preventScroll:!1})}});W.current.add(e)},[P]),A=(0,s.useCallback)(()=>{null==g||g(),d?R():I()},[d,R,I,g]),{isOpen:M,onOpen:j,onClose:N,onToggle:L}=(0,r.q)({isOpen:h,defaultIsOpen:p,onClose:m,onOpen:A});(0,i.O)({enabled:M&&l,ref:C,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=_.current)||void 0===r?void 0:r.contains(o))||N()}});let D=(0,v.D)({...k,enabled:M||S,placement:y,direction:x}),[F,B]=(0,s.useState)(-1);(0,o.C)(C,{focusRef:_,visible:M,shouldFocus:!0});let V=(0,a.h)({isOpen:M,ref:C}),[U,z]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=function(e,t){let n=(0,s.useId)();return(0,s.useMemo)(()=>e||[void 0,n].filter(Boolean).join("-"),[e,void 0,n])}(e);return(0,s.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(i)),[i,n])}(t,"menu-button","menu-list"),q=(0,s.useCallback)(()=>{j(),I()},[j,I]),W=(0,s.useRef)(new Set([]));return(0,s.useEffect)(()=>{let e=W.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]),(0,u.r)(()=>{var e;M||(B(-1),null===(e=C.current)||void 0===e||e.scrollTo(0,0))},[M]),(0,u.r)(()=>{M&&-1===F&&I()},[F,M]),(0,s.useEffect)(()=>{var e;if(!M)return;let t=P.item(F);null==t||null===(e=t.node)||void 0===e||e.focus({preventScroll:!O.current})},[P,F,M]),{openAndFocusMenu:q,openAndFocusFirstItem:(0,s.useCallback)(()=>{j(),R()},[R,j]),openAndFocusLastItem:(0,s.useCallback)(()=>{O.current=!0,j(),T()},[j,T]),onTransitionEnd:(0,s.useCallback)(()=>{var e,t;let n=E(C.current),r=null===(e=C.current)||void 0===e?void 0:e.contains(n.activeElement);if(!(M&&!r))return;let i=null===(t=P.item(F))||void 0===t?void 0:t.node;null==i||i.focus({preventScroll:!O.current})},[M,F,P]),unstable__animationState:V,descendants:P,popper:D,buttonId:U,menuId:z,forceUpdate:D.forceUpdate,orientation:"vertical",isOpen:M,onToggle:L,onOpen:j,onClose:N,menuRef:C,buttonRef:_,focusedIndex:F,closeOnSelect:n,closeOnBlur:l,autoSelect:d,setFocusedIndex:B,isLazy:f,lazyBehavior:w,initialFocusRef:c,scrollIntoViewRef:O}}function C(){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:a,scrollIntoViewRef:u}=n,c=(0,s.useCallback)(e=>{let t={Enter:o,ArrowDown:o,ArrowUp:a}[e.key];t&&(u.current=!0,e.preventDefault(),e.stopPropagation(),t(e))},[o,a,u]);return{...e,ref:(0,l.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 _(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:a,onClose:u,menuId:c,isLazy:d,lazyBehavior:p,scrollIntoViewRef:v,unstable__animationState:m}=n,g=y(),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=(0,s.useState)([]),o=(0,s.useRef)(void 0),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)},u=()=>{a(),o.current=setTimeout(()=>{i([]),o.current=null},t)};return(0,s.useEffect)(()=>a,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...r];e.pop(),i(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let o=r.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),i(o),e(o.join("")),u()}}}}({preventDefault:e=>" "!==e.key&&_(e.target)}),w=(0,s.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t={Tab:e=>e.preventDefault(),Escape:e=>{e.stopPropagation(),u()},ArrowDown:()=>{var e;v.current=!0;let t=null!==(e=g.nextEnabled(r))&&void 0!==e?e:g.firstEnabled();t&&i(t.index)},ArrowUp:()=>{var e;v.current=!0;let t=null!==(e=g.prevEnabled(r))&&void 0!==e?e:g.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}(g.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:""},g.item(r));t&&i(g.indexOf(t.node))});_(e.target)&&n(e)},[g,r,b,u,i,v]),x=(0,s.useRef)(!1);a&&(x.current=!0);let E=(0,h.k)({wasSelected:x.current,enabled:d,mode:p,isSelected:m.present});return{...e,ref:(0,l.lq)(o,t),children:E?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 P(){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:a,isDisabled:u,isFocusable:c,closeOnSelect:d,type:f,...h}=e,{setFocusedIndex:p,focusedIndex:v,closeOnSelect:g,onClose:y,menuId:b,scrollIntoViewRef:x}=S(),k=(0,s.useRef)(null),C="".concat(b,"-menuitem-").concat((0,s.useId)()),{index:O,register:P}=w({disabled:u&&!c}),I=(0,s.useCallback)(e=>{null==n||n(e),u||(x.current=!1,p(O))},[p,O,u,n,x]),R=(0,s.useCallback)(e=>{var t;null==r||r(e),k.current&&E(t=k.current).activeElement!==t&&I(e)},[I,r]),T=(0,s.useCallback)(e=>{null==i||i(e),u||p(-1)},[p,u,i]),A=(0,s.useCallback)(e=>{null==o||o(e),_(e.currentTarget)&&(null!=d?d:g)&&y()},[y,o,g,d]),M=(0,s.useCallback)(e=>{null==a||a(e),p(O)},[p,a,O]),j=O===v,N=(0,m.h)({onClick:A,onFocus:M,onMouseEnter:I,onMouseMove:R,onMouseLeave:T,ref:(0,l.lq)(P,k,t),isDisabled:u,isFocusable:c});return{...h,...N,type:null!=f?f:N.type,id:C,role:"menuitem",tabIndex:j?0:-1}}},38029:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(20130),i=n(90010),o=n(66703),a=n(32850),s=n(43906),u=n(49110);let l=(0,s.G)((e,t)=>{let{className:n,...s}=e,{bodyId:l,setBodyMounted:c}=(0,a.vR)();(0,o.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),f=(0,a.I_)();return(0,r.jsx)(u.m.div,{ref:t,className:d,id:l,...s,__css:f.body})});l.displayName="ModalBody"},60667:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(20130),i=n(90010),o=n(11915),a=n(32850),s=n(10994);let u=(0,n(43906).G)((e,t)=>{let{onClick:n,className:u,...l}=e,{onClose:c}=(0,a.vR)(),d=(0,i.cx)("chakra-modal__close-btn",u),f=(0,a.I_)();return(0,r.jsx)(s.P,{ref:t,__css:f.closeButton,className:d,onClick:(0,o.v)(n,e=>{e.stopPropagation(),c()}),...l})});u.displayName="ModalCloseButton"},81845:function(e,t,n){"use strict";n.d(t,{h:function(){return tJ}});var r,i,o,a,s,u=n(20130),l=n(71034),c=n(90010),d=n(32850),f=n(86231),h=n(66703),p=n(95379),v="right-scroll-bar-position",m="width-before-scroll-bar";function g(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 g(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)||g(e,null)}),r.forEach(function(e){n.has(e)||g(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)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function E(e,t){return void 0===t&&(t=x),S(e,t)}function k(e){void 0===e&&(e={});var t=S(null);return t.options=(0,p.pi)({async:!0,ssr:!1},e),t}var C=k(),_=function(){},O=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:_}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,v=e.noIsolation,m=e.inert,g=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]),E=(0,p.pi)((0,p.pi)({},x),i);return h.createElement(h.Fragment,null,c&&h.createElement(f,{sideCar:C,removeScrollBar:l,shards:d,noIsolation:v,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:b}),a?h.cloneElement(h.Children.only(s),(0,p.pi)((0,p.pi)({},E),{ref:S})):h.createElement(void 0===y?"div":y,(0,p.pi)({},E,{className:u,ref:S}),s))});O.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},O.classNames={fullWidth:m,zeroRight:v};var P=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))};P.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=a||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R=function(){var e=I();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},T=function(){var e=R();return function(t){return e(t.styles,t.dynamic),null}},A={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 A;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])}},L=T(),D="data-scroll-locked",F=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(D,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(v," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(m," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(v," .").concat(v," {\n right: 0 ").concat(r,";\n }\n \n .").concat(m," .").concat(m," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(D,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},B=function(){var e=parseInt(document.body.getAttribute(D)||"0",10);return isFinite(e)?e:0},V=function(){h.useEffect(function(){return document.body.setAttribute(D,(B()+1).toString()),function(){var e=B()-1;e<=0?document.body.removeAttribute(D):document.body.setAttribute(D,e.toString())}},[])},U=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;V();var o=h.useMemo(function(){return N(i)},[i]);return h.createElement(L,{styles:F(o,!t,i,n?"":"!important")})},z=!1;if("undefined"!=typeof window)try{var q=Object.defineProperty({},"passive",{get:function(){return z=!0,!0}});window.addEventListener("test",q,q),window.removeEventListener("test",q,q)}catch(e){z=!1}var W=!!z&&{passive:!1},$=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])},Z=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=H(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?$(t,"overflowY"):$(t,"overflowX")},H=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},K=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,u=n.target,l=t.contains(u),c=!1,d=s>0,f=0,h=0;do{var p=H(e,u),v=p[0],m=p[1]-p[2]-a*v;(v||m)&&G(e,u)&&(f+=m,h+=v),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},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(T)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,p.ev)([e.lockRef.current],(e.shards||[]).map(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 s=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=Y(e),s=n.current,u="deltaX"in e?e.deltaX:s[0]-o[0],l="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Z(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=Z(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=i),!i)return!0;var h=r.current||i;return K(h,t,e,"h"===h?u:l,!0)},[]),u=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=(a.current.shards||[]).map(X).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),l=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){l(t.type,J(t),t.target,s(t,e.lockRef.current))},[]),f=h.useCallback(function(t){l(t.type,Y(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return ee.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,W),document.addEventListener("touchmove",u,W),document.addEventListener("touchstart",c,W),function(){ee=ee.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,W),document.removeEventListener("touchmove",u,W),document.removeEventListener("touchstart",c,W)}},[]);var v=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,v?h.createElement(U,{gapMode:e.gapMode}):null)},C.useMedium(r),P),en=h.forwardRef(function(e,t){return h.createElement(O,(0,p.pi)({},e,{ref:t,sideCar:et}))});en.classNames=O.classNames;var er=n(2610),ei=n(14022),eo=n(82040),ea="data-focus-lock",es="data-focus-lock-disabled",eu={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},el=E({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),ec=E(),ed=E(),ef=k({async:!0,ssr:"undefined"!=typeof document}),eh=(0,h.createContext)(void 0),ep=[],ev=(0,h.forwardRef)(function(e,t){var n,r=(0,h.useState)(),i=r[0],o=r[1],a=(0,h.useRef)(),s=(0,h.useRef)(!1),u=(0,h.useRef)(null),l=(0,h.useState)({})[1],c=e.children,d=e.disabled,f=void 0!==d&&d,p=e.noFocusGuards,v=void 0!==p&&p,m=e.persistentFocus,g=e.crossFrame,y=e.autoFocus,b=(e.allowTextSelection,e.group),x=e.className,S=e.whiteList,E=e.hasPositiveIndices,k=e.shards,C=void 0===k?ep:k,_=e.as,O=e.lockProps,P=e.sideCar,I=e.returnFocus,R=void 0!==I&&I,T=e.focusOptions,A=e.onActivation,M=e.onDeactivation,j=(0,h.useState)({})[0],N=(0,h.useCallback)(function(e){var t=e.captureFocusRestore;if(!u.current){var n,r=null==(n=document)?void 0:n.activeElement;u.current=r,r!==document.body&&(u.current=t(r))}a.current&&A&&A(a.current),s.current=!0,l()},[A]),L=(0,h.useCallback)(function(){s.current=!1,M&&M(a.current),l()},[M]),D=(0,h.useCallback)(function(e){var t=u.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof R?R(n):R;if(r){var i="object"==typeof r?r:void 0;u.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[R]),F=(0,h.useCallback)(function(e){s.current&&el.useMedium(e)},[]),B=ec.useMedium,V=(0,h.useCallback)(function(e){a.current!==e&&(a.current=e,o(e))},[]),U=(0,eo.Z)(((n={})[es]=f&&"disabled",n[ea]=b,n),void 0===O?{}:O),z=!0!==v,q=z&&"tail"!==v,W=w([t,V]),$=(0,h.useMemo)(function(){return{observed:a,shards:C,enabled:!f,active:s.current}},[f,s.current,C,i]);return h.createElement(h.Fragment,null,z&&[h.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:eu}),E?h.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:eu}):null],!f&&h.createElement(P,{id:j,sideCar:ef,observed:i,disabled:f,persistentFocus:void 0!==m&&m,crossFrame:void 0===g||g,autoFocus:void 0===y||y,whiteList:S,shards:C,onActivation:N,onDeactivation:L,returnFocus:D,focusOptions:T,noFocusGuards:v}),h.createElement(void 0===_?"div":_,(0,eo.Z)({ref:W},U,{className:x,onBlur:B,onFocus:F}),h.createElement(eh.Provider,{value:$},c)),q&&h.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:eu}))});ev.propTypes={};var em=n(37399),eg=n(52907),ey=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},eb=function(e){return Array.isArray(e)?e:[e]},ew=function(e){return Array.isArray(e)?e[0]:e},ex=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!!t&&!!t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))},eS=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},eE=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},ek=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=ek.bind(void 0,e),!t||eE(t)||!ex(t)&&!t.hasAttribute("inert")&&n(eS(t)));return e.set(t,i),i},eC=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=eC.bind(void 0,e),!t||!!eE(t)||!!eI(t)&&n(eS(t)));return e.set(t,i),i},e_=function(e){return e.dataset},eO=function(e){return"INPUT"===e.tagName},eP=function(e){return eO(e)&&"radio"===e.type},eI=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},eR=function(e){var t;return!!(e&&(null===(t=e_(e))||void 0===t?void 0:t.focusGuard))},eT=function(e){return!eR(e)},eA=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]",eL="".concat(eN,", [data-focus-guard]"),eD=function(e,t){return ey((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?eL:eN)?[n]:[],eD(n))},[])},eF=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?eB([e.contentDocument.body],t):[e]},eB=function(e,t){return e.reduce(function(e,n){var r,i=eD(n,t),o=(r=[]).concat.apply(r,i.map(function(e){return eF(e,t)}));return e.concat(o,n.parentNode?ey(n.parentNode.querySelectorAll(eN)).filter(function(e){return e===n}):[])},[])},eV=function(e,t){return ey(e).filter(function(e){return ek(t,e)}).filter(function(e){return!((eO(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},eU=function(e,t){return void 0===t&&(t=new Map),ey(e).filter(function(e){return eC(t,e)})},ez=function(e,t,n){return ej(eV(eB(e,n),t),!0,n)},eq=function(e,t){return ej(eV(eB(e),t),!1)},eW=function(e,t){return e.shadowRoot?eW(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||ey(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&eW(r,t)}return eW(e,t)})},e$=function(e){try{return e()}catch(e){return}},eZ=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?eZ(t.shadowRoot):t instanceof HTMLIFrameElement&&e$(function(){return t.contentWindow.document})?eZ(t.contentWindow.document):t}},eG=function(e){void 0===e&&(e=document);var t=eZ(e);return!!t&&ey(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return eW(e,t)})},eH=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},eK=function(e){return e.parentNode?eK(e.parentNode):e},eY=function(e){return eb(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(ea);return e.push.apply(e,n?eH(ey(eK(t).querySelectorAll("[".concat(ea,'="').concat(n,'"]:not([').concat(es,'="disabled"])')))):[t]),e},[])},eJ=function(e,t){return void 0===t&&(t=eZ(ew(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&eY(e).some(function(e){var n;return eW(e,t)||(n=t,!!ey(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},eX=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},eQ=function(e,t){return eP(e)&&e.name&&t.filter(eP).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,a=e[0],s=e[o-1],u=eR(r);if(!(r&&e.indexOf(r)>=0)){var l=void 0!==r?n.indexOf(r):-1,c=i?n.indexOf(i):l,d=i?e.indexOf(i):-1;if(-1===l)return -1!==d?d:e3;if(-1===d)return e3;var f=l-c,h=n.indexOf(a),p=n.indexOf(s),v=e0(n),m=void 0!==r?v.indexOf(r):-1,g=i?v.indexOf(i):m,y=v.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(l<=h&&u&&Math.abs(f)>1)return S;if(l>=p&&u&&Math.abs(f)>1)return x;if(f&&Math.abs(b>=0&&w>=0?w-b:g-m)>1)return d;if(l<=h)return S;if(l>p)return x;if(f)return Math.abs(f)>1?d:(o+d+f)%o}},e4=function(e,t,n){var r=eU(e.map(function(e){return e.node}).filter(function(e){var t,r=null===(t=e_(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(eU(t))},e6=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&e6(e.parentNode.host||e.parentNode,t),t},e8=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},e7=function(e,t,n){var r=eb(e),i=eb(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(e){a=e8(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=e8(o,e);t&&(a=!a||eW(t,a)?t:e8(t,a))})}),a},e9=function(e,t){return e.reduce(function(e,n){return e.concat(eV(ey(n.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return eB([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(eA)},tt=function(e,t){var n=eZ(eb(e).length>0?document:ew(e).ownerDocument),r=eY(e).filter(eT),i=e7(n||e,e,r),o=new Map,a=eq(r,o),s=a.filter(function(e){return eT(e.node)});if(s[0]){var u=eq([i],o).map(function(e){return e.node}),l=te(u,s),c=l.map(function(e){return e.node}),d=l.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=e5(c,d,u,n,t);if(f===e3){var h=e4(a,d,e9(r,o))||e4(a,c,e9(r,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:l[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 ta=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:to(n),parent:to(n.parentElement),left:to(n.previousElementSibling),right:to(n.nextElementSibling)}),n=n.parentElement;return{element:to(e),stack:t,ownerDocument:e.ownerDocument}},ts=function(e){if(e)for(var t,n,r,i,o,a=e.stack,s=e.ownerDocument,u=new Map,l=0;l<a.length;l++){var c=a[l],d=null===(t=c.parent)||void 0===t?void 0:t.call(c);if(d&&s.contains(d)){for(var f=null===(n=c.left)||void 0===n?void 0:n.call(c),h=c.current(),p=d.contains(h)?h:void 0,v=null===(r=c.right)||void 0===r?void 0:r.call(c),m=ez([d],u),g=null!==(o=null!==(i=null!=p?p:null==f?void 0:f.nextElementSibling)&&void 0!==i?i:v)&&void 0!==o?o:f;g;){for(var y=0;y<m.length;y++){var b=m[y];if(null==g?void 0:g.contains(b.node))return b.node}g=g.nextElementSibling}if(m.length)return m[0].node}}},tu=function(e){var t=ta(e);return function(){return ts(t)}},tl=function(e){var t=eY(e).filter(eT),n=ej(eB([e7(e,e,t)],!0),!0,!0),r=eB(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:eR(t)}})},tc=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=eb(t);if(r.every(function(t){return!eW(t,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?ez(r,new Map):eq(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?ez(eb(e),new Map):eq(eb(e),new Map);return{first:n[0],last:n[n.length-1]}},tf=function(e,t,n){void 0===t&&(t={});var r,i=(r=t,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},r)),o=tc(e,i.scope,i.onlyTabbable);if(o){var a=n(o,i.cycle);a&&eX(a.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 tv=function(e){return e&&"current"in e?e.current:e},tm=function(){return document&&document.activeElement===document.body},tg=null,ty=null,tb=function(){return null},tw=null,tx=!1,tS=!1,tE=function(e,t){tw={observerNode:e,portaledElement:t}};function tk(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var tC=function(e){return eq(e,new Map)},t_=function(){var e=!1;if(tg){var t=tg,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,u=t.noFocusGuards,l=n||tw&&tw.portaledElement;if(tm()&&ty&&ty!==document.body&&(!document.body.contains(ty)||!tC([(f=ty).parentNode]).some(function(e){return e.node===f}))){var c=tb();c&&c.focus()}var d=document&&document.activeElement;if(l){var f,h=[l].concat(o.map(tv).filter(Boolean));if((!d||(tg.whiteList||function(){return!0})(d))&&(r||function(){if(!(a?!!tx:"meanwhile"===tx)||!u||!ty||tS)return!1;var e=tC(h),t=e.findIndex(function(e){return e.node===ty});return 0===t||t===e.length-1}()||!(tm()||eG())||!ty&&i)&&(l&&!(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:s}),tw={})),(ty=document&&document.activeElement)!==document.body&&(tb=tu(ty)),tx=!1),document&&d!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,v=tl(h),m=v.map(function(e){return e.node}).indexOf(p);m>-1&&(v.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),tk(m,v.length,1,v),tk(m,-1,-1,v))}}}return e},tO=function(e){t_()&&e&&(e.stopPropagation(),e.preventDefault())},tP=function(){return tp(t_)},tI=function(){tS=!0},tR=function(){tS=!1,tx="just",tp(function(){tx="meanwhile"})},tT=function(){document.addEventListener("focusin",tO),document.addEventListener("focusout",tP),window.addEventListener("focus",tI),window.addEventListener("blur",tR)},tA=function(){document.removeEventListener("focusin",tO),document.removeEventListener("focusout",tP),window.removeEventListener("focus",tI),window.removeEventListener("blur",tR)},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:tu};el.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||tE(n,t)}),ec.assignMedium(tP),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&&!tg&&tT();var n=tg,r=n&&t&&t.id===n.id;tg=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),t_(!0),tp(t_)):(tA(),ty=null)},function(e){var t,n=[];function r(){o(t=i(n.map(function(e){return e.props})))}var a=function(i){function o(){return i.apply(this,arguments)||this}o.prototype=Object.create(i.prototype),o.prototype.constructor=o,(0,em.Z)(o,i),o.peek=function(){return t};var a=o.prototype;return a.componentDidMount=function(){n.push(this),r()},a.componentDidUpdate=function(){r()},a.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},a.render=function(){return h.createElement(e,this.props)},o}(h.PureComponent);return(0,eg.Z)(a,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),a})(function(){return null}),tN=(0,h.forwardRef)(function(e,t){return h.createElement(ev,(0,eo.Z)({sideCar:tj,ref:t},e))}),tL=ev.propTypes||{};tL.sideCar,(0,ei.Z)(tL,["sideCar"]),tN.propTypes={};var tD=n(29239);let tF=null!==(s=tN.default)&&void 0!==s?s:tN,tB=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=(0,h.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==r?void 0:r.current)&&0===(0,tD.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,u.jsx)(tF,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};function tV(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:p,isOpen:v}=(0,d.vR)(),[m,g]=(0,f.oO)();(0,h.useEffect)(()=>{!m&&g&&setTimeout(g)},[m,g]);let y=(0,er.$)(r,v);return(0,u.jsx)(tB,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:p,children:(0,u.jsx)(en,{removeScrollBar:!c,allowPinchZoom:a,enabled:1===y&&o,forwardProps:!0,children:e.children})})}tB.displayName="FocusLock";var tU=n(42349),tz=n(40880),tq=n(35278);let tW={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t;let{offsetX:n,offsetY:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,x:n,y:r,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tq.p$.exit(tq.Sh.exit,a),transitionEnd:null==o?void 0:o.exit}},enter:e=>{var t;let{transition:n,transitionEnd:r,delay:i}=e;return{opacity:1,x:0,y:0,transition:null!==(t=null==n?void 0:n.enter)&&void 0!==t?t:tq.p$.enter(tq.Sh.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t;let{offsetY:n,offsetX:r,transition:i,transitionEnd:o,reverse:a,delay:s}=e,u={x:r,y:n};return{opacity:0,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tq.p$.exit(tq.Sh.exit,s),...a?{...u,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{...u,...null==o?void 0:o.exit}}}}}};(0,h.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,className:o,offsetX:a=0,offsetY:s=8,transition:l,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,v=!n||r&&n,m=r||n?"enter":"exit",g={offsetX:a,offsetY:s,reverse:i,transition:l,transitionEnd:d,delay:f};return(0,u.jsx)(tz.M,{...h,custom:g,children:v&&(0,u.jsx)(tU.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",o),custom:g,...tW,animate:m,...p})})}).displayName="SlideFade";let t$={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t;let{reverse:n,initialScale:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,...n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{scale:r,...null==o?void 0:o.exit}},transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tq.p$.exit(tq.Sh.exit,a)}},enter:e=>{var t;let{transitionEnd:n,transition:r,delay:i}=e;return{opacity:1,scale:1,transition:null!==(t=null==r?void 0:r.enter)&&void 0!==t?t:tq.p$.enter(tq.Sh.enter,i),transitionEnd:null==n?void 0:n.enter}}}};(0,h.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,initialScale:o=.95,className:a,transition:s,transitionEnd:l,delay:d,animatePresenceProps:f,...h}=e,p=!n||r&&n,v=r||n?"enter":"exit",m={initialScale:o,reverse:i,transition:s,transitionEnd:l,delay:d};return(0,u.jsx)(tz.M,{...f,custom:m,children:p&&(0,u.jsx)(tU.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",a),...t$,animate:v,custom:m,...h})})}).displayName="ScaleFade";var tZ=n(49110);let tG={slideInBottom:{...tW,custom:{offsetY:16,reverse:!0}},slideInRight:{...tW,custom:{offsetX:16,reverse:!0}},slideInTop:{...tW,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...tW,custom:{offsetX:-16,reverse:!0}},scale:{...t$,custom:{initialScale:.95,reverse:!0}},none:{}},tH=(0,tZ.m)(tU.E.section),tK=e=>tG[e||"none"],tY=(0,h.forwardRef)((e,t)=>{let{preset:n,motionProps:r=tK(n),...i}=e;return(0,u.jsx)(tH,{ref:t,...r,...i})});tY.displayName="ModalTransition";let tJ=(0,n(43906).G)((e,t)=>{let{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:f}=(0,d.vR)(),h=s(a,t),p=f(i),v=(0,c.cx)("chakra-modal__content",n),m=(0,d.I_)(),g=(0,l.k0)({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog}),y=(0,l.k0)({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer}),{motionPreset:b}=(0,d.vR)();return(0,u.jsx)(tV,{children:(0,u.jsx)(tZ.m.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:(0,u.jsx)(tY,{preset:b,motionProps:o,className:v,...h,__css:g,children:r})})})});tJ.displayName="ModalContent"},61608:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(20130),i=n(71034),o=n(90010),a=n(32850),s=n(43906),u=n(49110);let l=(0,s.G)((e,t)=>{let{className:n,...s}=e,l=(0,o.cx)("chakra-modal__footer",n),c=(0,a.I_)(),d=(0,i.k0)({display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer});return(0,r.jsx)(u.m.footer,{ref:t,...s,__css:d,className:l})});l.displayName="ModalFooter"},58407:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(20130),i=n(71034),o=n(90010),a=n(66703),s=n(32850),u=n(43906),l=n(49110);let c=(0,u.G)((e,t)=>{let{className:n,...u}=e,{headerId:c,setHeaderMounted:d}=(0,s.vR)();(0,a.useEffect)(()=>(d(!0),()=>d(!1)),[d]);let f=(0,o.cx)("chakra-modal__header",n),h=(0,s.I_)(),p=(0,i.k0)({flex:0,...h.header});return(0,r.jsx)(l.m.header,{ref:t,className:f,id:c,...u,__css:p})});c.displayName="ModalHeader"},2610:function(e,t,n){"use strict";n.d(t,{$:function(){return l},m:function(){return u}});var r=n(66703),i=Object.defineProperty,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class s{add(e){return this.modals.add(e),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&e===Array.from(this.modals)[this.modals.size-1]}constructor(){a(this,"modals"),this.modals=new Set}}let u=new s;function l(e,t){let[n,i]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let n=e.current;if(n)return t&&i(u.add(n)),()=>{u.remove(n),i(0)}},[t,e]),n}},36198:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(20130),i=n(90010),o=n(42349),a=n(32850),s=n(40880),u=n(66703),l=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:l.p$.enter(l.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:l.p$.exit(l.Sh.exit,r),transitionEnd:null==n?void 0:n.exit}}}};(0,u.forwardRef)(function(e,t){let{unmountOnExit:n,in:a,className:u,transition:l,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,v=a||n?"enter":"exit",m=!n||a&&n,g={transition:l,transitionEnd:d,delay:f};return(0,r.jsx)(s.M,{...h,custom:g,children:m&&(0,r.jsx)(o.E.div,{ref:t,className:(0,i.cx)("chakra-fade",u),custom:g,...c,animate:v,...p})})}).displayName="Fade";var d=n(49110),f=n(43906);let h=(0,d.m)(o.E.div),p=(0,f.G)((e,t)=>{let{className:n,transition:o,motionProps:s,...u}=e,l=(0,i.cx)("chakra-modal__overlay",n),d={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,a.I_)().overlay},{motionPreset:f}=(0,a.vR)(),p="none"===f?{}:c;return(0,r.jsx)(h,{...s||p,__css:d,ref:t,className:l,...u})});p.displayName="ModalOverlay"},32850:function(e,t,n){"use strict";n.d(t,{u_:function(){return E},vR:function(){return S},I_:function(){return w}});var r=n(20130),i=n(9396),o=n(40880),a=n(6461),s=n(11915),u=new WeakMap,l=new WeakMap,c={},d=0,f=function(e){return e&&(e.host||f(e.parentNode))},h=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=f(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});c[n]||(c[n]=new WeakMap);var o=c[n],a=[],s=new Set,h=new Set(i),p=function(e){!e||s.has(e)||(s.add(e),p(e.parentNode))};i.forEach(p);var v=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))v(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,c=(u.get(e)||0)+1,d=(o.get(e)||0)+1;u.set(e,c),o.set(e,d),a.push(e),1===c&&i&&l.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 v(t),s.clear(),d++,function(){a.forEach(function(e){var t=u.get(e)-1,i=o.get(e)-1;u.set(e,t),o.set(e,i),t||(l.has(e)||e.removeAttribute(r),l.delete(e)),i||e.removeAttribute(n)}),--d||(u=new WeakMap,u=new WeakMap,l=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}},v=n(66703),m=n(2610),g=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 />`"}),E=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:u,trapFocus:l,initialFocusRef:c,finalFocusRef:d,returnFocusOnClose:f,blockScrollOnMount:h,allowPinchZoom:w,preserveScrollBarGap:S,motionPreset:E,lockFocusAcrossFrames:k,animatePresenceProps:C,onCloseComplete:_}=t,O=(0,y.j)("Modal",t),P={...function(e){let{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:u=!0,onOverlayClick:l,onEsc:c}=e,d=(0,v.useRef)(null),f=(0,v.useRef)(null),[h,g,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,v.useId)(),o=e||i;return(0,v.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,v.useEffect)(()=>{if(e.current&&t)return p(e.current)},[t,e,n])}(d,t&&u);let b=(0,m.$)(d,t),w=(0,v.useRef)(null),x=(0,v.useCallback)(e=>{w.current=e.target},[]),S=(0,v.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),o&&(null==n||n()),null==c||c())},[o,n,c]),[E,k]=(0,v.useState)(!1),[C,_]=(0,v.useState)(!1),O=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{role:"dialog",...e,ref:(0,a.lq)(t,d),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?g:void 0,"aria-describedby":C?y:void 0,onClick:(0,s.v)(e.onClick,e=>e.stopPropagation())}},[y,C,h,g,E]),P=(0,v.useCallback)(e=>{e.stopPropagation(),w.current===e.target&&m.m.isTopModal(d.current)&&(i&&(null==n||n()),null==l||l())},[n,i,l]),I=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,a.lq)(t,f),onClick:(0,s.v)(e.onClick,P),onKeyDown:(0,s.v)(e.onKeyDown,S),onMouseDown:(0,s.v)(e.onMouseDown,x)}},[S,x,P]);return{isOpen:t,onClose:n,headerId:g,bodyId:y,setBodyMounted:_,setHeaderMounted:k,dialogRef:d,overlayRef:f,getDialogProps:O,getDialogContainerProps:I,index:b}}(t),autoFocus:u,trapFocus:l,initialFocusRef:c,finalFocusRef:d,returnFocusOnClose:f,blockScrollOnMount:h,allowPinchZoom:w,preserveScrollBarGap:S,motionPreset:E,lockFocusAcrossFrames:k};return(0,r.jsx)(x,{value:P,children:(0,r.jsx)(b,{value:O,children:(0,r.jsx)(o.M,{...C,onExitComplete:_,children:P.isOpen&&(0,r.jsx)(g.h,{...n,children:i})})})})};E.displayName="Modal"},48961:function(e,t,n){"use strict";n.d(t,{D:function(){return eE}});var r,i,o,a,s,u=n(6461);function l(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=l(e).Element;return e instanceof t||e instanceof Element}function d(e){var t=l(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function f(e){if("undefined"==typeof ShadowRoot)return!1;var t=l(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var h=Math.max,p=Math.min,v=Math.round;function m(){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 g(){return!/^((?!chrome|android).)*safari/i.test(m())}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&&v(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&v(r.height)/e.offsetHeight||1);var a=(c(e)?l(e):window).visualViewport,s=!g()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,f=(r.top+(s&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:u+h,bottom:f+p,left:u,x:u,y:f}}function b(e){var t=l(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 E(e){return l(e).getComputedStyle(e)}function k(e){var t=E(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function C(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 _(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)&&k(t)?t:e(_(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=l(r),a=i?[o].concat(o.visualViewport||[],k(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(O(_(a)))}function P(e){return d(e)&&"fixed"!==E(e).position?e.offsetParent:null}function I(e){for(var t=l(e),n=P(e);n&&["table","td","th"].indexOf(w(n))>=0&&"static"===E(n).position;)n=P(n);return n&&("html"===w(n)||"body"===w(n)&&"static"===E(n).position)?t:n||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&d(e)&&"fixed"===E(e).position)return null;var n=_(e);for(f(n)&&(n=n.host);d(n)&&0>["html","body"].indexOf(w(n));){var r=E(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 R="bottom",T="right",A="left",M="auto",j=["top",R,T,A],N="start",L="viewport",D="popper",F=j.reduce(function(e,t){return e.concat([t+"-"+N,t+"-end"])},[]),B=[].concat(j,[M]).reduce(function(e,t){return e.concat([t,t+"-"+N,t+"-end"])},[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],U={placement:"bottom",modifiers:[],strategy:"absolute"};function z(){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 q={passive:!0};function W(e){return e.split("-")[0]}function $(e){return e.split("-")[1]}function Z(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?W(i):null,a=i?$(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case R:t={x:s,y:n.y+n.height};break;case T:t={x:n.x+n.width,y:u};break;case A:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=o?Z(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case N:t[l]=t[l]-(n[c]/2-r[c]/2);break;case"end":t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}var H={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n,r,i,o,a,s,u=e.popper,c=e.popperRect,d=e.placement,f=e.variation,h=e.offsets,p=e.position,m=e.gpuAcceleration,g=e.adaptive,y=e.roundOffsets,b=e.isFixed,w=h.x,S=void 0===w?0:w,k=h.y,C=void 0===k?0:k,_="function"==typeof y?y({x:S,y:C}):{x:S,y:C};S=_.x,C=_.y;var O=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),M=A,j="top",N=window;if(g){var L=I(u),D="clientHeight",F="clientWidth";L===l(u)&&"static"!==E(L=x(u)).position&&"absolute"===p&&(D="scrollHeight",F="scrollWidth"),("top"===d||(d===A||d===T)&&"end"===f)&&(j=R,C-=(b&&L===N&&N.visualViewport?N.visualViewport.height:L[D])-c.height,C*=m?1:-1),(d===A||("top"===d||d===R)&&"end"===f)&&(M=T,S-=(b&&L===N&&N.visualViewport?N.visualViewport.width:L[F])-c.width,S*=m?1:-1)}var B=Object.assign({position:p},g&&H),V=!0===y?(t={x:S,y:C},n=l(u),r=t.x,i=t.y,{x:v(r*(o=n.devicePixelRatio||1))/o||0,y:v(i*o)/o||0}):{x:S,y:C};return(S=V.x,C=V.y,m)?Object.assign({},B,((s={})[j]=P?"0":"",s[M]=O?"0":"",s.transform=1>=(N.devicePixelRatio||1)?"translate("+S+"px, "+C+"px)":"translate3d("+S+"px, "+C+"px, 0)",s)):Object.assign({},B,((a={})[j]=P?C+"px":"",a[M]=O?S+"px":"",a.transform="",a))}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,a,s,u,d,f,p,v;return t===L?et(function(e,t){var n=l(e),r=x(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var c=g();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+S(e),y:u}}(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),a=x(i),s=b(i),u=null==(o=i.ownerDocument)?void 0:o.body,d=h(a.scrollWidth,a.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),f=h(a.scrollHeight,a.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-s.scrollLeft+S(i),v=-s.scrollTop,"rtl"===E(u||a).direction&&(p+=h(a.clientWidth,u?u.clientWidth:0)-d),{width:d,height:f,x:p,y:v}))}function er(){return{top:0,right:0,bottom:0,left:0}}function ei(e){return Object.assign({},er(),e)}function eo(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ea(e,t){void 0===t&&(t={});var n,r,i,o,a,s,u,l,f=t,v=f.placement,m=void 0===v?e.placement:v,g=f.strategy,b=void 0===g?e.strategy:g,S=f.boundary,k=f.rootBoundary,C=f.elementContext,P=void 0===C?D:C,A=f.altBoundary,M=f.padding,N=void 0===M?0:M,F=ei("number"!=typeof N?N:eo(N,j)),B=e.rects.popper,V=e.elements[void 0!==A&&A?P===D?"reference":D:P],U=(n=c(V)?V:V.contextElement||x(e.elements.popper),r=void 0===S?"clippingParents":S,i=void 0===k?L:k,u=(s=[].concat("clippingParents"===r?(o=O(_(n)),c(a=["absolute","fixed"].indexOf(E(n).position)>=0&&d(n)?I(n):n)?o.filter(function(e){return c(e)&&ee(e,a)&&"body"!==w(e)}):[]):[].concat(r),[i]))[0],(l=s.reduce(function(e,t){var r=en(n,t,b);return e.top=h(r.top,e.top),e.right=p(r.right,e.right),e.bottom=p(r.bottom,e.bottom),e.left=h(r.left,e.left),e},en(n,u,b))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),z=y(e.elements.reference),q=G({reference:z,element:B,strategy:"absolute",placement:m}),W=et(Object.assign({},B,q)),$=P===D?W:z,Z={top:U.top-$.top+F.top,bottom:$.bottom-U.bottom+F.bottom,left:U.left-$.left+F.left,right:$.right-U.right+F.right},H=e.modifiersData.offset;if(P===D&&H){var K=H[m];Object.keys(Z).forEach(function(e){var t=[T,R].indexOf(e)>=0?1:-1,n=["top",R].indexOf(e)>=0?"y":"x";Z[e]+=K[n]*t})}return Z}function es(e,t,n){return h(e,p(t,n))}function eu(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 el(e){return["top",T,R,A].some(function(t){return e[t]>=0})}var ec=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=l(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,q)}),s&&u.addEventListener("resize",n.update,q),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,q)}),s&&u.removeEventListener("resize",n.update,q)}},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,a=void 0===o||o,s={placement:W(t.placement),variation:$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];d(i)&&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,a=B.reduce(function(e,n){var r,i,a,s,u,l;return e[n]=(r=t.rects,a=[A,"top"].indexOf(i=W(n))>=0?-1:1,u=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],l=s[1],u=u||0,l=(l||0)*a,[A,T].indexOf(i)>=0?{x:l,y:u}:{x:u,y:l}),e},{}),s=a[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,m=t.options.placement,g=W(m)===m,y=u||(g||!p?[J(m)]:function(e){if(W(e)===M)return[];var t=J(e);return[Q(e),t,Q(t)]}(m)),b=[m].concat(y).reduce(function(e,n){var r,i,o,a,s,u,f,h,m,g,y,b;return e.concat(W(n)===M?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:l,flipVariations:p,allowedAutoPlacements:v}).placement,o=r.boundary,a=r.rootBoundary,s=r.padding,u=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?B:f,0===(y=(g=(m=$(i))?u?F:F.filter(function(e){return $(e)===m}):j).filter(function(e){return h.indexOf(e)>=0})).length&&(y=g),Object.keys(b=y.reduce(function(e,n){return e[n]=ea(t,{placement:n,boundary:o,rootBoundary:a,padding:s})[W(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,S=new Map,E=!0,k=b[0],C=0;C<b.length;C++){var _=b[C],O=W(_),P=$(_)===N,I=["top",R].indexOf(O)>=0,L=I?"width":"height",D=ea(t,{placement:_,boundary:c,rootBoundary:d,altBoundary:f,padding:l}),V=I?P?T:A:P?R:"top";w[L]>x[L]&&(V=J(V));var U=J(V),z=[];if(o&&z.push(D[O]<=0),s&&z.push(D[V]<=0,D[U]<=0),z.every(function(e){return e})){k=_,E=!1;break}S.set(_,z)}if(E)for(var q=p?3:1,Z=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 k=t,"break"},G=q;G>0&&"break"!==Z(G);G--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,a=n.boundary,s=n.rootBoundary,u=n.altBoundary,l=n.padding,c=n.tether,d=void 0===c||c,f=n.tetherOffset,v=void 0===f?0:f,m=ea(t,{boundary:a,rootBoundary:s,padding:l,altBoundary:u}),g=W(t.placement),y=$(t.placement),b=!y,w=Z(g),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,_="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,O="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(void 0===i||i){var j,L="y"===w?"top":A,D="y"===w?R:T,F="y"===w?"height":"width",B=S[w],V=B+m[L],U=B-m[D],z=d?-k[F]/2:0,q=y===N?E[F]:k[F],G=y===N?-k[F]:-E[F],H=t.elements.arrow,K=d&&H?C(H):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),J=Y[L],X=Y[D],Q=es(0,E[F],K[F]),ee=b?E[F]/2-z-Q-J-O.mainAxis:q-Q-J-O.mainAxis,et=b?-E[F]/2+z+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==P?void 0:P[w])?j:0,eu=es(d?p(V,B+ee-eo-ei):V,B,d?h(U,B+et-eo):U);S[w]=eu,M[w]=eu-B}if(void 0!==o&&o){var el,ec,ed="x"===w?"top":A,ef="x"===w?R:T,eh=S[x],ep="y"===x?"height":"width",ev=eh+m[ed],em=eh-m[ef],eg=-1!==["top",A].indexOf(g),ey=null!=(ec=null==P?void 0:P[x])?ec:0,eb=eg?ev:eh-E[ep]-k[ep]-ey+O.altAxis,ew=eg?eh+E[ep]+k[ep]-ey-O.altAxis:em,ex=d&&eg?(el=es(eb,eh,ew))>ew?ew:el:es(d?eb:ev,eh,d?ew:em);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,a=r.elements.arrow,s=r.modifiersData.popperOffsets,u=W(r.placement),l=Z(u),c=[A,T].indexOf(u)>=0?"height":"width";if(a&&s){var d=ei("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:eo(t,j)),f=C(a),h="y"===l?"top":A,p="y"===l?R:T,v=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],m=s[l]-r.rects.reference[l],g=I(a),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=d[h],w=y-f[c]-d[p],x=y/2-f[c]/2+(v/2-m/2),S=es(b,x,w);r.modifiersData[i]=((n={})[l]=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,a=ea(t,{elementContext:"reference"}),s=ea(t,{altBoundary:!0}),u=eu(a,r),l=eu(s,i,o),c=el(u),d=el(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,s=void 0===(a=r.defaultOptions)?U:a,function(e,t,n){void 0===n&&(n=s);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],f=!1,h={state:a,setOptions:function(n){var r,i,l,d,f,v="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},s,a.options,v),a.scrollParents={reference:c(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var m=(i=Object.keys(r=[].concat(o,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),l=new Map,d=new Set,f=[],i.forEach(function(e){l.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=l.get(t);n&&e(n)}}),f.push(t)}(e)}),V.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=m.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:h,options:void 0===n?{}:n});u.push(i||function(){})}}),h.update()},forceUpdate:function(){if(!f){var e,t,n,r,i,o,s,u,c,p,m,g,E=a.elements,_=E.reference,O=E.popper;if(z(_,O)){a.rects={reference:(t=I(O),n="fixed"===a.options.strategy,r=d(t),u=d(t)&&(o=v((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=v(i.height)/t.offsetHeight||1,1!==o||1!==s),c=x(t),p=y(_,u,n),m={scrollLeft:0,scrollTop:0},g={x:0,y:0},(r||!r&&!n)&&(("body"!==w(t)||k(c))&&(m=(e=t)!==l(e)&&d(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:b(e)),d(t)?(g=y(t,!0),g.x+=t.clientLeft,g.y+=t.clientTop):c&&(g.x=S(c))),{x:p.left+m.scrollLeft-g.x,y:p.top+m.scrollTop-g.y,width:p.width,height:p.height}),popper:C(O)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var P=0;P<a.orderedModifiers.length;P++){if(!0===a.reset){a.reset=!1,P=-1;continue}var R=a.orderedModifiers[P],T=R.fn,A=R.options,M=void 0===A?{}:A,j=R.name;"function"==typeof T&&(a=T({state:a,options:M,name:j,instance:h})||a)}}}},update:(r=function(){return new Promise(function(e){h.forceUpdate(),e(a)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){p(),f=!0}};if(!z(e,t))return h;function p(){u.forEach(function(e){return e()}),u=[]}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;ev(t)},effect:e=>{let{state:t}=e;return()=>{ev(t)}}},ev=e=>{e.elements.popper.style.setProperty(ef.Dq.transformOrigin.var,(0,ef.mv)(e.placement))},em={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;eg(t)}},eg=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 eE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:s,gutter:l=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:h,direction:p="ltr"}=e,v=(0,ed.useRef)(null),m=(0,ed.useRef)(null),g=(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&&v.current&&m.current&&(null===(e=b.current)||void 0===e||e.call(b),g.current=ec(v.current,m.current,{placement:y,modifiers:[eb,em,ep,{...eh,enabled:!!h},{name:"eventListeners",...(0,ef.$B)(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=s?s:[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...null!=n?n:[]],strategy:i}),g.current.forceUpdate(),b.current=g.current.destroy)},[y,t,n,h,a,o,s,l,c,f,d,i]);(0,ed.useEffect)(()=>()=>{if(!v.current&&!m.current){var e;null===(e=g.current)||void 0===e||e.destroy(),g.current=null}},[]);let x=(0,ed.useCallback)(e=>{v.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,u.lq)(x,t)}},[x]),E=(0,ed.useCallback)(e=>{m.current=e,w()},[w]),k=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,u.lq)(E,t),style:{...e.style,position:i,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}},[i,E,h]),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,{size:n,shadowColor:r,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}(e)}},[]),_=(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=g.current)||void 0===e||e.update()},forceUpdate(){var e;null===(e=g.current)||void 0===e||e.forceUpdate()},transformOrigin:ef.Dq.transformOrigin.varRef,referenceRef:x,popperRef:E,getPopperProps:k,getArrowProps:C,getArrowInnerProps:_,getReferenceProps:S}}},74833:function(e,t,n){"use strict";n.d(t,{$B:function(){return l},Dq:function(){return i},Ke:function(){return o},mv:function(){return s}});let r=(e,t)=>({var:e,varRef:t?"var(".concat(e,", ").concat(t,")"):"var(".concat(e,")")}),i={arrowShadowColor:r("--popper-arrow-shadow-color"),arrowSize:r("--popper-arrow-size","8px"),arrowSizeHalf:r("--popper-arrow-size-half"),arrowBg:r("--popper-arrow-bg"),transformOrigin:r("--popper-transform-origin"),arrowOffset:r("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}let a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],u={scroll:!0,resize:!0};function l(e){return"object"==typeof e?{enabled:!0,options:{...u,...e}}:{enabled:e,options:u}}},43415:function(e,t,n){"use strict";n.d(t,{L:function(){return o},h:function(){return a}});var r=n(20130);let[i,o]=(0,n(9396).k)({strict:!1,name:"PortalManagerContext"});function a(e){let{children:t,zIndex:n}=e;return(0,r.jsx)(i,{value:{zIndex:n},children:t})}a.displayName="PortalManager"},72669:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var r=n(20130),i=n(59129),o=n(9396),a=n(66703),s=n(93694),u=n(43415);let[l,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",f=e=>(0,r.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),h=e=>{let{appendToParentPortal:t,children:n}=e,[o,h]=(0,a.useState)(null),p=(0,a.useRef)(null),[,v]=(0,a.useState)({});(0,a.useEffect)(()=>v({}),[]);let m=c(),g=(0,u.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,n=t&&null!=m?m:e.body;if(!n)return;p.current=e.createElement("div"),p.current.className=d,n.appendChild(p.current),v({});let r=p.current;return()=>{n.contains(r)&&n.removeChild(r)}},[o]);let y=(null==g?void 0:g.zIndex)?(0,r.jsx)(f,{zIndex:null==g?void 0:g.zIndex,children:n}):n;return p.current?(0,s.createPortal)((0,r.jsx)(l,{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,u=n.current,c=null!=u?u:"undefined"!=typeof window?document.body:void 0,f=(0,a.useMemo)(()=>{let e=null==u?void 0:u.ownerDocument.createElement("div");return e&&(e.className=d),e},[u]),[,h]=(0,a.useState)({});return((0,i.G)(()=>h({}),[]),(0,i.G)(()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}},[f,c]),c&&f)?(0,s.createPortal)((0,r.jsx)(l,{value:o?f:null,children:t}),f):null};function v(e){let{containerRef:t,...n}={appendToParentPortal:!0,...e};return t?(0,r.jsx)(p,{containerRef:t,...n}):(0,r.jsx)(h,{...n})}v.className=d,v.selector=".chakra-portal",v.displayName="Portal"},15615:function(e,t,n){"use strict";n.d(t,{P:function(){return v}});var r=n(20130),i=n(66861),o=n(60571),a=n(57835),s=n(26934),u=n(66703),l=n(90010),c=n(43906),d=n(49110);let f=(0,c.G)(function(e,t){let{children:n,placeholder:i,className:o,...a}=e;return(0,r.jsxs)(d.m.select,{...a,ref:t,className:(0,l.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 v=(0,c.G)((e,t)=>{var n;let u=(0,p.j)("Select",e),{rootProps:l,placeholder:c,icon:v,color:m,height:g,h:b,minH:w,minHeight:x,iconColor:S,iconSize:E,...k}=(0,i.L)(e),[C,_]=(0,a.V)(k,o.oE),O=(0,h.Y)(_),P={paddingEnd:"2rem",...u.field,_focus:{zIndex:"unset",...null===(n=u.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:m},...C,...l,children:[(0,r.jsx)(f,{ref:t,height:null!=b?b:g,minH:null!=w?w:x,placeholder:c,...O,__css:P,children:e.children}),(0,r.jsx)(y,{"data-disabled":(0,s.P)(O.disabled),...(S||m)&&{color:S||m},__css:u.icon,...E&&{fontSize:E},children:v})]})});v.displayName="Select";let m=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"})}),g=(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)(m,{}),...n}=e,i=(0,u.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,r.jsx)(g,{...n,className:"chakra-select__icon-wrapper",children:(0,u.isValidElement)(t)?i:null})};y.displayName="SelectIcon"},31198:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});let r=(0,n(49110).m)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},56756:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(20130),i=n(66861),o=n(90010),a=n(68312),s=n(43906),u=n(35364),l=n(49110);let c=(0,a.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,s.G)((e,t)=>{let n=(0,u.m)("Spinner",e),{label:a="Loading...",thickness:s="2px",speed:d="0.45s",emptyColor:f="transparent",className:h,...p}=(0,i.L)(e),v=(0,o.cx)("chakra-spinner",h),m={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:f,borderLeftColor:f,animation:"".concat(c," ").concat(d," linear infinite"),...n};return(0,r.jsx)(l.m.div,{ref:t,__css:m,className:v,...p,children:a&&(0,r.jsx)(l.m.span,{srOnly:!0,children:a})})});d.displayName="Spinner"},55182:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(20130),i=n(17301);let o=(0,n(43906).G)((e,t)=>(0,r.jsx)(i.K,{align:"center",...e,direction:"row",ref:t}));o.displayName="HStack"},17301:function(e,t,n){"use strict";n.d(t,{K:function(){return c}});var r=n(20130),i=n(84535),o=n(90010),a=n(66703),s=n(49110);let u=e=>(0,r.jsx)(s.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});u.displayName="StackItem";var l=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:v,divider:m,className:g,shouldWrapChildren:y,...b}=e,w=n?"row":null!=c?c:"column",x=(0,a.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,l.XQ)(n,e=>r[e])}})({spacing:h,direction:w}),[h,w]),S=!!m,E=!y&&!S,k=(0,a.useMemo)(()=>{let e=(0,i.W)(v);return E?e:e.map((t,n)=>{let i=void 0!==t.key?t.key:n,o=n+1===e.length,s=(0,r.jsx)(u,{children:t},i),l=y?s:t;if(!S)return l;let c=(0,a.cloneElement)(m,{__css:x});return(0,r.jsxs)(a.Fragment,{children:[l,o?null:c]},i)})},[m,x,S,E,y,v]),C=(0,o.cx)("chakra-stack",g);return(0,r.jsx)(s.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:w,flexWrap:p,gap:S?void 0:h,className:C,...b,children:k})});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"},49110:function(e,t,n){"use strict";n.d(t,{m:function(){return P}});var r=n(60571),i=n(57898),o=n(69072),a=n(33164),s=n(82040),u=n(9116),l=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)-.*))$/,v=(0,h.Z)(function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),m=function(e){return"theme"!==e},g=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?v:m},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,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var c=y(t,n,o),h=c||g(a),p=!h("as");return function(){var v=arguments,m=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&m.push("label:"+r+";"),null==v[0]||void 0===v[0].raw)m.push.apply(m,v);else{var w=v[0];m.push(w[0]);for(var x=v.length,S=1;S<x;S++)m.push(v[S],w[S])}var E=(0,u.w)(function(e,t,n){var r=p&&e.as||a,o="",s=[],v=e;if(null==e.theme){for(var y in v={},e)v[y]=e[y];v.theme=f.useContext(u.T)}"string"==typeof e.className?o=(0,d.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var w=(0,l.O)(m.concat(s),t.registered,v);o+=t.key+"-"+w.name,void 0!==i&&(o+=" "+i);var x=p&&void 0===c?g(r):h,S={};for(var E in e)(!p||"as"!==E)&&x(E)&&(S[E]=e[E]);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 E.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=m,E.__emotion_forwardProp=c,Object.defineProperty(E,"toString",{value:function(){return"."+i}}),E.withComponent=function(t,r){return e(t,(0,s.Z)({},n,r,{shouldForwardProp:y(E,r,!0)})).apply(void 0,m)},E}}).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 E(e){return(S.has(e)||!x.has(e))&&"_"!==e[0]}var k=n(16276);let C=w.default||w,_=e=>{let{baseStyle:t}=e;return e=>{let{theme:n,css:s,__css:u,sx:l,...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}({},u,(0,o.P)(t,e),(0,a.o)(d),l),h=(0,i.i)(f)(e.theme);return s?[h,s]:h}};function O(e,t){let{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=E);let i=_({baseStyle:n}),o=C(e,r)(i);return(0,f.forwardRef)(function(e,t){let{children:n,...r}=e,{colorMode:i,forced:a}=(0,k.If)();return(0,f.createElement)(o,{ref:t,"data-theme":a?i:void 0,...r},n)})}let P=function(){let e=new Map;return new Proxy(O,{apply:(e,t,n)=>O(...n),get:(t,n)=>(e.has(n)||e.set(n,O(n)),e.get(n))})}()},43906:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(66703);function i(e){return(0,r.forwardRef)(e)}},94181:function(e,t,n){"use strict";n.d(t,{dQ:function(){return a},uP:function(){return o}});var r=n(35518),i=n(16276);function o(){let e=(0,i.If)(),t=(0,r.F)();return{...e,theme:t}}function a(e,t,n){let i=(0,r.F)();return(function(e,t,n){let r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return n=>{let o=i.filter(Boolean),a=r.map((t,r)=>{var i,a;return"breakpoints"===e?function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null===(r=e.__breakpoints)||void 0===r?void 0:null===(n=r.asArray)||void 0===n?void 0:n[t]};return null!==(i=null!==(r=o(t))&&void 0!==r?r:o(n))&&void 0!==i?i:n}(n,t,null!==(i=o[r])&&void 0!==i?i:t):function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null===(r=e.__cssMap)||void 0===r?void 0:null===(n=r[t])||void 0===n?void 0:n.value};return null!==(i=null!==(r=o(t))&&void 0!==r?r:o(n))&&void 0!==i?i:n}(n,"".concat(e,".").concat(t),null!==(a=o[r])&&void 0!==a?a:t)});return Array.isArray(t)?a:a[0]}})(e,t,n)(i)}},35364:function(e,t,n){"use strict";n.d(t,{j:function(){return v},m:function(){return p}});var r=n(93031),i=n(96549),o=n(69072),a=n(58450),s=n(85680),u=n(33164),l=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:v,colorMode:m}=(0,f.uP)(),g=e?(0,s.W)(v,"components.".concat(e)):void 0,y=h||g,b=a({theme:v,colorMode:m},null!==(t=null==y?void 0:y.defaultProps)&&void 0!==t?t:{},(0,u.o)((0,l.C)(p,["children"])),(e,t)=>e?void 0:t),w=(0,c.useRef)({});if(y){let e=(e=>{let{variant:t,size:n,theme:s}=e,u=function(e){let t=e.__breakpoints;return function(e,n,s,u){var l;if(!t)return;let c={},d=(l=t.toArrayValue,Array.isArray(s)?s:(0,r.Kn)(s)?l(s):null!=s?[s]:void 0);if(!d)return c;let f=d.length,h=1===f,p=!!e.parts;for(let r=0;r<f;r++){let s=t.details[r],l=t.details[function(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return -1}(d,r)],f=(0,i.Y)(s.minW,l?._minW),v=(0,o.P)(e[n]?.[d[r]],u);if(v){if(p){e.parts?.forEach(e=>{a(c,{[e]:h?v[e]:{[f]:v[e]}})});continue}if(!p){h?a(c,v):c[f]=v;continue}c[f]=v}}return c}}(s);return a({},(0,o.P)(y.baseStyle??{},e),u(y,"sizes",n,e),u(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 v(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}},78850:function(e,t,n){"use strict";n.d(t,{C:function(){return p}});var r=n(20130),i=n(18422),o=n(49956),a=n(90010),s=n(50393),u=n(43906),l=n(49110);let c=(0,u.G)(function(e,t){let n=(0,s.uL)(),{status:i}=(0,s.oX)();return(0,r.jsx)(l.m.div,{ref:t,"data-status":i,...e,className:(0,a.cx)("chakra-alert__title",e.className),__css:n.title})});c.displayName="AlertTitle";var d=n(76902),f=n(10994);let h=e=>{let{status:t,variant:n="solid",id:a,title:s,isClosable:u,onClose:h,description:p,colorScheme:v,icon:m}=e,g=a?{root:"toast-".concat(a),title:"toast-".concat(a,"-title"),description:"toast-".concat(a,"-description")}:void 0;return(0,r.jsxs)(i.b,{addRole:!1,status:t,variant:n,id:null==g?void 0:g.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:v,children:[(0,r.jsx)(o.z,{children:m}),(0,r.jsxs)(l.m.div,{flex:"1",maxWidth:"100%",children:[s&&(0,r.jsx)(c,{id:null==g?void 0:g.title,children:s}),p&&(0,r.jsx)(d.X,{id:null==g?void 0:g.description,display:"block",children:p})]}),u&&(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),a=n(66703),s=n(95318),u=n(55229),l=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]}}},v=(0,a.memo)(e=>{let{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:v=!1,position:m="bottom",duration:g=5e3,containerStyle:y,motionVariants:b=p,toastSpacing:w="0.5rem"}=e,[x,S]=(0,a.useState)(g),E=(0,c.hO)();(0,s.r)(()=>{E||null==i||i()},[E]),(0,s.r)(()=>{S(g)},[g]);let k=()=>{E&&o()};(0,a.useEffect)(()=>{E&&v&&o()},[E,v,o]),function(e,t){let n=(0,u.W)(e);(0,a.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(k,x);let C=(0,a.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:w,...y}),[y,w]),_=(0,a.useMemo)(()=>(0,f.sv)(m),[m]);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(g),custom:{position:m},style:_,children:(0,r.jsx)(h.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:C,children:(0,l.P)(n,{id:t,onClose:k})})})});v.displayName="ToastComponent";var m=n(43317),g=n(72669);let[y,b]=(0,i.k)({name:"ToastOptionsContext",strict:!1}),w=e=>{let t=(0,a.useSyncExternalStore)(m.f.subscribe,m.f.getState,m.f.getState),{motionVariants:n,component:i=v,portalProps:s,animatePresenceProps:u}=e,l=Object.keys(t).map(e=>{let a=t[e];return(0,r.jsx)("div",{role:"region","aria-live":"polite","aria-label":"Notifications-".concat(e),id:"chakra-toast-manager-".concat(e),style:(0,f.IW)(e),children:(0,r.jsx)(o.M,{...u,initial:!1,children:a.map(e=>(0,r.jsx)(i,{motionVariants:n,...e},e.id))})},e)});return(0,r.jsx)(g.h,{...s,children:l})}},43317:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(78850),i=n(97038);let o=function(e){let t=e,n=new Set,s=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{s(()=>e),n.delete(t)}),removeToast:(e,t)=>{s(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let n=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a+=1;let i=null!==(t=r.id)&&void 0!==t?t:a,s=null!==(n=r.position)&&void 0!==n?n:"bottom";return{id:i,message:e,position:s,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>o.removeToast(String(i),s),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),{position:r,id:i}=n;return s(e=>{var t,i;let o=r.includes("top")?[n,...null!==(t=e[r])&&void 0!==t?t:[]]:[...null!==(i=e[r])&&void 0!==i?i:[],n];return{...e,[r]:o}}),i},update:(e,t)=>{e&&s(n=>{let o={...n},{position:a,index:s}=(0,i.Dn)(o,e);return a&&-1!==s&&(o[a][s]={...o[a][s],...t,message:(0,r.C)(t)}),o})},closeAll:function(){let{positions:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{s(t=>{let n=(0,i.ym)(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,i.Dn)(o.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),a=0},97038:function(e,t,n){"use strict";n.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});let r=(e,t)=>e.find(e=>e.id===t);function i(e,t){let n=o(e,t),r=n?e[n].findIndex(e=>e.id===t):-1;return{position:n,index:r}}function o(e,t){for(let[n,i]of Object.entries(e))if(r(i,t))return n}function a(e){let t=e.includes("right"),n=e.includes("left"),r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,r=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:n,right:r,left:i}}},55261:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(66703),i=n(69072),o=n(78850),a=n(43317),s=n(76694),u=n(94181);function l(e){let{theme:t}=(0,u.uP)(),n=(0,s.OX)();return(0,r.useMemo)(()=>(function(e,t){let n=n=>{var r;return{...t,...n,position:function(e,t){var n;let r=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!==(n=null==i?void 0:i[t])&&void 0!==n?n:r}(null!==(r=null==n?void 0:n.position)&&void 0!==r?r:null==t?void 0:t.position,e)}},r=e=>{let t=n(e),r=(0,o.C)(t);return a.f.notify(r,t)};return r.update=(e,t)=>{a.f.update(e,n(t))},r.promise=(e,t)=>{let n=r({...t.loading,status:"loading",duration:null});e.then(e=>r.update(n,{status:"success",duration:5e3,...(0,i.P)(t.success,e)})).catch(e=>r.update(n,{status:"error",duration:5e3,...(0,i.P)(t.error,e)}))},r.closeAll=a.f.closeAll,r.close=a.f.close,r.isActive=a.f.isActive,r})(t.direction,{...n,...e}),[e,t.direction,n])}},81145:function(e,t,n){"use strict";n.d(t,{u:function(){return P}});var r=n(20130),i=n(66861),o=n(40810),a=n(47301),s=n(42349),u=n(40880),l=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),v=n(19249),m=n(11915),g=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),E=n(72669),k=n(49110),C=n(43906),_=n(35364);let O=(0,k.m)(s.E.div),P=(0,C.G)((e,t)=>{var n,s;let C;let P=(0,_.m)("Tooltip",e),I=(0,i.L)(e),R=(0,S.F)(),{children:T,label:A,shouldWrapChildren:M,"aria-label":j,hasArrow:N,bg:L,portalProps:D,background:F,backgroundColor:B,bgColor:V,motionProps:U,animatePresenceProps:z,...q}=I,W=null!==(s=null!==(n=null!=F?F:B)&&void 0!==n?n:L)&&void 0!==s?s:V;if(W){P.bg=W;let e=R.__cssMap?.[`colors.${W}`]?.varRef??W;P[y.Dq.arrowBg.var]=e}let $=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:s=!0,onOpen:u,onClose:c,placement:d,id:S,isOpen:E,defaultIsOpen:k,arrowSize:C=10,arrowShadowColor:_,arrowPadding:O,modifiers:P,isDisabled:I,gutter:R,offset:T,direction:A,...M}=e,{isOpen:j,onOpen:N,onClose:L}=(0,f.q)({isOpen:E,defaultIsOpen:k,onOpen:u,onClose:c}),{referenceRef:D,getPopperProps:F,getArrowInnerProps:B,getArrowProps:V}=(0,g.D)({enabled:j,placement:d,arrowPadding:O,modifiers:P,gutter:R,offset:T,direction:A}),U=(0,l.useId)(),z="tooltip-".concat(null!=S?S:U),q=(0,l.useRef)(null),W=(0,l.useRef)(void 0),$=(0,l.useCallback)(()=>{W.current&&(clearTimeout(W.current),W.current=void 0)},[]),Z=(0,l.useRef)(void 0),G=(0,l.useCallback)(()=>{Z.current&&(clearTimeout(Z.current),Z.current=void 0)},[]),H=(0,l.useCallback)(()=>{G(),L()},[L,G]),K=((0,l.useEffect)(()=>{let e=b(q);return e.addEventListener(x,H),()=>e.removeEventListener(x,H)},[H,q]),()=>{let e=b(q),t=w(q);e.dispatchEvent(new t.CustomEvent(x))}),Y=(0,l.useCallback)(()=>{if(!I&&!W.current){j&&K();let e=w(q);W.current=e.setTimeout(N,t)}},[K,I,j,N,t]),J=(0,l.useCallback)(()=>{$();let e=w(q);Z.current=e.setTimeout(H,n)},[n,H,$]),X=(0,l.useCallback)(()=>{j&&r&&J()},[r,J,j]),Q=(0,l.useCallback)(()=>{j&&a&&J()},[a,J,j]),ee=(0,l.useCallback)(e=>{j&&"Escape"===e.key&&J()},[j,J]);(0,h.O)(()=>b(q),"keydown",s?ee:void 0),(0,h.O)(()=>{if(!o)return null;let e=q.current;if(!e)return null;let t=function e(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:(0,v.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(q):t},"scroll",()=>{j&&o&&H()},{passive:!0,capture:!0}),(0,l.useEffect)(()=>{I&&($(),j&&L())},[I,j,L,$]),(0,l.useEffect)(()=>()=>{$(),G()},[$,G]),(0,h.O)(()=>q.current,"pointerleave",J);let et=(0,l.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)(q,t,D),onPointerEnter:(0,m.v)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&Y()}),onClick:(0,m.v)(e.onClick,X),onPointerDown:(0,m.v)(e.onPointerDown,Q),onFocus:(0,m.v)(e.onFocus,Y),onBlur:(0,m.v)(e.onBlur,J),"aria-describedby":j?z:void 0}},[Y,J,Q,j,z,X,D]),en=(0,l.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 F({...e,style:{...e.style,[y.Dq.arrowSize.var]:C?"".concat(C,"px"):void 0,[y.Dq.arrowShadowColor.var]:_}},t)},[F,C,_]);return{isOpen:j,show:Y,hide:J,getTriggerProps:et,getTooltipProps:(0,l.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:z,role:"tooltip",style:n}},[M,z]),getTooltipPositionerProps:en,getArrowProps:V,getArrowInnerProps:B}}({...q,direction:R.direction});if(!(0,l.isValidElement)(T)||M)C=(0,r.jsx)(k.m.span,{display:"inline-block",tabIndex:0,...$.getTriggerProps(),children:T});else{let e=l.Children.only(T);C=(0,l.cloneElement)(e,$.getTriggerProps(e.props,(0,c.e)(e)))}let Z=!!j,G=$.getTooltipProps({},t),H=Z?(0,o.C)(G,["role","id"]):G,K=(0,a.e)(G,["role","id"]);return A?(0,r.jsxs)(r.Fragment,{children:[C,(0,r.jsx)(u.M,{...z,children:$.isOpen&&(0,r.jsx)(E.h,{...D,children:(0,r.jsx)(k.m.div,{...$.getTooltipPositionerProps(),__css:{zIndex:P.zIndex,pointerEvents:"none"},children:(0,r.jsxs)(O,{variants:d,initial:"exit",animate:"enter",exit:"exit",...U,...H,__css:P,children:[A,Z&&(0,r.jsx)(k.m.span,{srOnly:!0,...K,children:j}),N&&(0,r.jsx)(k.m.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,r.jsx)(k.m.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:P.bg}})})]})})})})]}):(0,r.jsx)(r.Fragment,{children:T})});P.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 l}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),u=n(49110);let l=(0,a.G)(function(e,t){let n=(0,s.m)("Heading",e),{className:a,...l}=(0,i.L)(e);return(0,r.jsx)(u.m.h2,{ref:t,className:(0,o.cx)("chakra-heading",e.className),...l,__css:n})});l.displayName="Heading"},55169:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(20130),i=n(66861),o=n(33164),a=n(90010),s=n(43906),u=n(35364),l=n(49110);let c=(0,s.G)(function(e,t){let n=(0,u.m)("Text",e),{className:s,align:c,decoration:d,casing:f,...h}=(0,i.L)(e),p=(0,o.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,r.jsx)(l.m.p,{ref:t,className:(0,a.cx)("chakra-text",e.className),...p,...h,__css:n})});c.displayName="Text"},28770:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});let r={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}},41293:function(e,t,n){"use strict";function r(e,t,n){let r=function(e,t=""){var n;return((n=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?n:Number.isInteger(parseFloat(n.toString()))?n:n.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,n);return{variable:r,reference:`var(${r}${t?`, ${t}`:""})`}}function i(e,t){let n={};for(let i of t){if(Array.isArray(i)){let[t,o]=i;n[t]=r(`${e}-${t}`,o);continue}n[i]=r(`${e}-${i}`)}return n}n.d(t,{_6:function(){return i},gJ:function(){return r}})},57898:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(69072),i=n(93031),o=n(58450),a=n(57386),s=n(60571);let u=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:o,media:a}=t.__breakpoints,s={};for(let u in e){let l=(0,r.P)(e[u],t);if(null==l)continue;if(!Array.isArray(l=(0,i.Kn)(l)&&n(l)?o(l):l)){s[u]=l;continue}let c=l.slice(0,a.length).length;for(let e=0;e<c;e+=1){let t=a?.[e];if(!t){s[u]=l[e];continue}s[t]=s[t]||{},null!=l[e]&&(s[t][u]=l[e])}}return s},l=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),c=(e,t)=>{if(null==t)return t;let n=t=>e.__cssMap?.[t]?.varRef,r=e=>n(e)??e,[i,o]=function(e){let t=[],n="",r=!1;for(let i=0;i<e.length;i++){let o=e[i];"("===o?(r=!0,n+=o):")"===o?(r=!1,n+=o):","!==o||r?n+=o:(t.push(n),n="")}return(n=n.trim())&&t.push(n),t}(t);return t=n(i)??r(o)??r(t)},d=e=>t=>(function(e){let{configs:t={},pseudos:n={},theme:a}=e,s=(e,d=!1)=>{let f=(0,r.P)(e,a),h=u(f)(a),p={};for(let e in h){let u=h[e],v=(0,r.P)(u,a);e in n&&(e=n[e]),l(e,v)&&(v=c(a,v));let m=t[e];if(!0===m&&(m={property:e}),(0,i.Kn)(v)){p[e]=p[e]??{},p[e]=o({},p[e],s(v,!0));continue}let g=m?.transform?.(v,a,f)??v;g=m?.processResult?s(g,!0):g;let y=(0,r.P)(m?.property,a);if(!d&&m?.static&&(p=o({},p,(0,r.P)(m.static,a))),y&&Array.isArray(y)){for(let e of y)p[e]=g;continue}if(y){"&"===y&&(0,i.Kn)(g)?p=o({},p,g):p[y]=g;continue}if((0,i.Kn)(g)){p=o({},p,g);continue}p[e]=g}return p};return s})({theme:t,pseudos:a.v,configs:s.Ul})(e)},71034:function(e,t,n){"use strict";function r(e){return e}function i(e){return e}function o(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}n.d(t,{D:function(){return o},fj:function(){return i},k0:function(){return r}})},57386:function(e,t,n){"use strict";n.d(t,{_:function(){return v},v:function(){return p}});let r=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,i=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,o=(e,t)=>`${e}:focus-visible ${t}`,a=(e,t)=>`${e}:focus-within ${t}`,s=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,u=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,l=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,c=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,d=e=>h(t=>e(t,"&"),"[role=group]","[data-group]",".group"),f=e=>h(t=>e(t,"~ &"),"[data-peer]",".peer"),h=(e,...t)=>t.map(e).join(", "),p={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:d((e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`),_groupClosed:d((e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`),_groupHover:d(r),_peerHover:f(r),_groupFocus:d(i),_peerFocus:f(i),_groupFocusVisible:d(o),_peerFocusVisible:f(o),_groupActive:d(s),_peerActive:f(s),_groupDisabled:d(u),_peerDisabled:f(u),_groupInvalid:d(l),_peerInvalid:f(l),_groupChecked:d(c),_peerChecked:f(c),_groupFocusWithin:d(a),_peerFocusWithin:f(a),_peerPlaceholderShown:f((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},v=Object.keys(p)},60571:function(e,t,n){"use strict";n.d(t,{ZR:function(){return Y},oE:function(){return G},cC:function(){return H},Ul:function(){return Z}});var r=n(58450),i=n(57386),o=n(93031);let a=e=>/!(important)?$/.test(e),s=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,u=(e,t)=>n=>{let r=String(t),i=a(r),u=s(r),l=e?`${e}.${u}`:u,c=(0,o.Kn)(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return c=s(c),i?`${c} !important`:c};function l(e){let{scale:t,transform:n,compose:r}=e;return(e,i)=>{let o=u(t,e)(i),a=n?.(o,i)??o;return r&&(a=r(a,i)),a}}let c=(...e)=>t=>e.reduce((e,t)=>t(e),t);function d(e,t){return n=>{let r={property:n,scale:e};return r.transform=l({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)"},v={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,/*!*/ /*!*/)"},m={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},g={"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(g)),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}},E=e=>t=>`${e}(${t})`,k={filter:e=>"auto"!==e?e:p,backdropFilter:e=>"auto"!==e?e:v,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":k.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`,[a,...s]=i.split(",").map(w).filter(Boolean);if(s?.length===0)return e;let u=a in g?g[a]:a;s.unshift(u);let l=s.map(e=>{if(y.has(e))return e;let n=e.indexOf(" "),[r,i]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=x(i)?i:i&&i.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${l.join(", ")})`})(e,t??{}),blur:E("blur"),opacity:E("opacity"),brightness:E("brightness"),contrast:E("contrast"),dropShadow:E("drop-shadow"),grayscale:E("grayscale"),hueRotate:e=>E("hue-rotate")(k.degree(e)),invert:E("invert"),saturate:E("saturate"),sepia:E("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}=m[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},C={borderWidths:d("borderWidths"),borderStyles:d("borderStyles"),colors:d("colors"),borders:d("borders"),gradients:d("gradients",k.gradient),radii:d("radii",k.px),space:d("space",c(k.vh,k.px)),spaceT:d("space",c(k.vh,k.px)),degreeT:e=>({property:e,transform:k.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:l({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:d("sizes",c(k.vh,k.px)),sizesT:d("sizes",c(k.vh,k.fraction)),shadows:d("shadows"),logical:function(e){let{property:t,scale:n,transform:r}=e;return{scale:n,property:f(t),transform:n?l({scale:n,compose:r}):r}},blur:d("blur",k.blur)},_={background:C.colors("background"),backgroundColor:C.colors("backgroundColor"),backgroundImage:C.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:k.bgClip},bgSize:C.prop("backgroundSize"),bgPosition:C.prop("backgroundPosition"),bg:C.colors("background"),bgColor:C.colors("backgroundColor"),bgPos:C.prop("backgroundPosition"),bgRepeat:C.prop("backgroundRepeat"),bgAttachment:C.prop("backgroundAttachment"),bgGradient:C.gradients("backgroundImage"),bgClip:{transform:k.bgClip}};Object.assign(_,{bgImage:_.backgroundImage,bgImg:_.backgroundImage});let O={border:C.borders("border"),borderWidth:C.borderWidths("borderWidth"),borderStyle:C.borderStyles("borderStyle"),borderColor:C.colors("borderColor"),borderRadius:C.radii("borderRadius"),borderTop:C.borders("borderTop"),borderBlockStart:C.borders("borderBlockStart"),borderTopLeftRadius:C.radii("borderTopLeftRadius"),borderStartStartRadius:C.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:C.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:C.radii("borderTopRightRadius"),borderStartEndRadius:C.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:C.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:C.borders("borderRight"),borderInlineEnd:C.borders("borderInlineEnd"),borderBottom:C.borders("borderBottom"),borderBlockEnd:C.borders("borderBlockEnd"),borderBottomLeftRadius:C.radii("borderBottomLeftRadius"),borderBottomRightRadius:C.radii("borderBottomRightRadius"),borderLeft:C.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:C.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:C.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:C.borders(["borderLeft","borderRight"]),borderInline:C.borders("borderInline"),borderY:C.borders(["borderTop","borderBottom"]),borderBlock:C.borders("borderBlock"),borderTopWidth:C.borderWidths("borderTopWidth"),borderBlockStartWidth:C.borderWidths("borderBlockStartWidth"),borderTopColor:C.colors("borderTopColor"),borderBlockStartColor:C.colors("borderBlockStartColor"),borderTopStyle:C.borderStyles("borderTopStyle"),borderBlockStartStyle:C.borderStyles("borderBlockStartStyle"),borderBottomWidth:C.borderWidths("borderBottomWidth"),borderBlockEndWidth:C.borderWidths("borderBlockEndWidth"),borderBottomColor:C.colors("borderBottomColor"),borderBlockEndColor:C.colors("borderBlockEndColor"),borderBottomStyle:C.borderStyles("borderBottomStyle"),borderBlockEndStyle:C.borderStyles("borderBlockEndStyle"),borderLeftWidth:C.borderWidths("borderLeftWidth"),borderInlineStartWidth:C.borderWidths("borderInlineStartWidth"),borderLeftColor:C.colors("borderLeftColor"),borderInlineStartColor:C.colors("borderInlineStartColor"),borderLeftStyle:C.borderStyles("borderLeftStyle"),borderInlineStartStyle:C.borderStyles("borderInlineStartStyle"),borderRightWidth:C.borderWidths("borderRightWidth"),borderInlineEndWidth:C.borderWidths("borderInlineEndWidth"),borderRightColor:C.colors("borderRightColor"),borderInlineEndColor:C.colors("borderInlineEndColor"),borderRightStyle:C.borderStyles("borderRightStyle"),borderInlineEndStyle:C.borderStyles("borderInlineEndStyle"),borderTopRadius:C.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:C.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:C.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:C.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 P={color:C.colors("color"),textColor:C.colors("color"),fill:C.colors("fill"),stroke:C.colors("stroke"),accentColor:C.colors("accentColor"),textFillColor:C.colors("textFillColor")},I={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:k.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:C.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:C.space("gap"),rowGap:C.space("rowGap"),columnGap:C.space("columnGap")};Object.assign(I,{flexDir:I.flexDirection});let R={width:C.sizesT("width"),inlineSize:C.sizesT("inlineSize"),height:C.sizes("height"),blockSize:C.sizes("blockSize"),boxSize:C.sizes(["width","height"]),minWidth:C.sizes("minWidth"),minInlineSize:C.sizes("minInlineSize"),minHeight:C.sizes("minHeight"),minBlockSize:C.sizes("minBlockSize"),maxWidth:C.sizes("maxWidth"),maxInlineSize:C.sizes("maxInlineSize"),maxHeight:C.sizes("maxHeight"),maxBlockSize:C.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:C.propT("float",k.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(R,{w:R.width,h:R.height,minW:R.minWidth,maxW:R.maxWidth,minH:R.minHeight,maxH:R.maxHeight,overscroll:R.overscrollBehavior,overscrollX:R.overscrollBehaviorX,overscrollY:R.overscrollBehaviorY});let T={filter:{transform:k.filter},blur:C.blur("--chakra-blur"),brightness:C.propT("--chakra-brightness",k.brightness),contrast:C.propT("--chakra-contrast",k.contrast),hueRotate:C.propT("--chakra-hue-rotate",k.hueRotate),invert:C.propT("--chakra-invert",k.invert),saturate:C.propT("--chakra-saturate",k.saturate),dropShadow:C.propT("--chakra-drop-shadow",k.dropShadow),backdropFilter:{transform:k.backdropFilter},backdropBlur:C.blur("--chakra-backdrop-blur"),backdropBrightness:C.propT("--chakra-backdrop-brightness",k.brightness),backdropContrast:C.propT("--chakra-backdrop-contrast",k.contrast),backdropHueRotate:C.propT("--chakra-backdrop-hue-rotate",k.hueRotate),backdropInvert:C.propT("--chakra-backdrop-invert",k.invert),backdropSaturate:C.propT("--chakra-backdrop-saturate",k.saturate)},A={ring:{transform:k.ring},ringColor:C.colors("--chakra-ring-color"),ringOffset:C.prop("--chakra-ring-offset-width"),ringOffsetColor:C.colors("--chakra-ring-offset-color"),ringInset:C.prop("--chakra-ring-inset")},M={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:k.outline},outlineOffset:!0,outlineColor:C.colors("outlineColor")},j={gridGap:C.space("gridGap"),gridColumnGap:C.space("gridColumnGap"),gridRowGap:C.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},N=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e}),L={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},D={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},F=(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},B={position:!0,pos:C.prop("position"),zIndex:C.prop("zIndex","zIndices"),inset:C.spaceT("inset"),insetX:C.spaceT(["left","right"]),insetInline:C.spaceT("insetInline"),insetY:C.spaceT(["top","bottom"]),insetBlock:C.spaceT("insetBlock"),top:C.spaceT("top"),insetBlockStart:C.spaceT("insetBlockStart"),bottom:C.spaceT("bottom"),insetBlockEnd:C.spaceT("insetBlockEnd"),left:C.spaceT("left"),insetInlineStart:C.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:C.spaceT("right"),insetInlineEnd:C.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(B,{insetStart:B.insetInlineStart,insetEnd:B.insetInlineEnd});let V={boxShadow:C.shadows("boxShadow"),mixBlendMode:!0,blendMode:C.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:C.prop("backgroundBlendMode"),opacity:!0};Object.assign(V,{shadow:V.boxShadow});let U={margin:C.spaceT("margin"),marginTop:C.spaceT("marginTop"),marginBlockStart:C.spaceT("marginBlockStart"),marginRight:C.spaceT("marginRight"),marginInlineEnd:C.spaceT("marginInlineEnd"),marginBottom:C.spaceT("marginBottom"),marginBlockEnd:C.spaceT("marginBlockEnd"),marginLeft:C.spaceT("marginLeft"),marginInlineStart:C.spaceT("marginInlineStart"),marginX:C.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:C.spaceT("marginInline"),marginY:C.spaceT(["marginTop","marginBottom"]),marginBlock:C.spaceT("marginBlock"),padding:C.space("padding"),paddingTop:C.space("paddingTop"),paddingBlockStart:C.space("paddingBlockStart"),paddingRight:C.space("paddingRight"),paddingBottom:C.space("paddingBottom"),paddingBlockEnd:C.space("paddingBlockEnd"),paddingLeft:C.space("paddingLeft"),paddingInlineStart:C.space("paddingInlineStart"),paddingInlineEnd:C.space("paddingInlineEnd"),paddingX:C.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:C.space("paddingInline"),paddingY:C.space(["paddingTop","paddingBottom"]),paddingBlock:C.space("paddingBlock")};Object.assign(U,{m:U.margin,mt:U.marginTop,mr:U.marginRight,me:U.marginInlineEnd,marginEnd:U.marginInlineEnd,mb:U.marginBottom,ml:U.marginLeft,ms:U.marginInlineStart,marginStart:U.marginInlineStart,mx:U.marginX,my:U.marginY,p:U.padding,pt:U.paddingTop,py:U.paddingY,px:U.paddingX,pb:U.paddingBottom,pl:U.paddingLeft,ps:U.paddingInlineStart,paddingStart:U.paddingInlineStart,pr:U.paddingRight,pe:U.paddingInlineEnd,paddingEnd:U.paddingInlineEnd});let z={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:C.spaceT("scrollMargin"),scrollMarginTop:C.spaceT("scrollMarginTop"),scrollMarginBottom:C.spaceT("scrollMarginBottom"),scrollMarginLeft:C.spaceT("scrollMarginLeft"),scrollMarginRight:C.spaceT("scrollMarginRight"),scrollMarginX:C.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:C.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:C.spaceT("scrollPadding"),scrollPaddingTop:C.spaceT("scrollPaddingTop"),scrollPaddingBottom:C.spaceT("scrollPaddingBottom"),scrollPaddingLeft:C.spaceT("scrollPaddingLeft"),scrollPaddingRight:C.spaceT("scrollPaddingRight"),scrollPaddingX:C.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:C.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},q={fontFamily:C.prop("fontFamily","fonts"),fontSize:C.prop("fontSize","fontSizes",k.px),fontWeight:C.prop("fontWeight","fontWeights"),lineHeight:C.prop("lineHeight","lineHeights"),letterSpacing:C.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},W={textDecorationColor:C.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:C.shadows("textShadow")},$={clipPath:!0,transform:C.propT("transform",k.transform),transformOrigin:!0,translateX:C.spaceT("--chakra-translate-x"),translateY:C.spaceT("--chakra-translate-y"),skewX:C.degreeT("--chakra-skew-x"),skewY:C.degreeT("--chakra-skew-y"),scaleX:C.prop("--chakra-scale-x"),scaleY:C.prop("--chakra-scale-y"),scale:C.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:C.degreeT("--chakra-rotate")},Z=r({},_,O,P,I,R,T,A,M,j,{srOnly:{transform:e=>!0===e?L:"focusable"===e?D:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>F(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>F(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>F(t,e,n)}},B,V,U,z,q,W,$,{listStyleType:!0,listStylePosition:!0,listStylePos:C.prop("listStylePosition"),listStyleImage:!0,listStyleImg:C.prop("listStyleImage")},{transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:C.prop("transitionDuration","transition.duration"),transitionProperty:C.prop("transitionProperty","transition.property"),transitionTimingFunction:C.prop("transitionTimingFunction","transition.easing")}),G=Object.keys(Object.assign({},U,R,I,j,B)),H=[...Object.keys(Z),...i._],K={...Z,...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"])}},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 l},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,a=e=>Object.fromEntries(Object.entries(e).sort(o));function s(e){let t=a(e);return Object.assign(Object.values(t),t)}function u(e){return e?"number"==typeof(e=i(e)??e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function l(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=s(e),n=Object.entries(e).sort(o).map(([e,t],n,r)=>{let[,i]=r[n+1]??[];return i=parseFloat(i)>0?u(i):void 0,{_minW:u(t),breakpoint:e,minW:t,maxW:i,maxWQuery:l(null,i),minWQuery:l(t),minMaxQuery:l(t,i)}}),i=new Set(Object.keys(a(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:a(e),asArray:s(e),details:n,get:e=>n.find(t=>t.breakpoint===e),media:[null,...t.map(e=>l(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:a,defaultValue:s}=e,u=(0,r.createContext)(s);return u.displayName=t,[u.Provider,function e(){let t=(0,r.useContext)(u);if(!t&&n){var s,l;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null===(s=(l=Error).captureStackTrace)||void 0===s||s.call(l,t,e),t}return t},u]}},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 a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e})},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 a(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 a},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 a}});var r=n(19249);function i(e){return o(e)?.defaultView??window}function o(e){return(0,r.Re)(e)?e.ownerDocument:document}function a(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 a}});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 a(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 a},Wq:function(){return s}});var r=n(19249);let i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function a(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 s(e){return!!e&&(0,r.Re)(e)&&a(e)&&!o(e)}},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 s},m:function(){return a}});var r=n(72821),i=n(89177),o=n(41176),a=class extends i.F{#r;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#r=[],this.state=e.state||s(),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.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({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.#a({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.#a({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.#a({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.#a({type:"error",error:t})}}finally{this.#i.runNext(this)}}#a(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 s(){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)})},a=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}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{#s=!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.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}}},58964:function(e,t,n){"use strict";n.d(t,{A:function(){return s},z:function(){return u}});var r=n(68786),i=n(72821),o=n(41176),a=n(89177),s=class extends a.F{#u;#l;#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.#u=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.#u,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.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({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.#u)}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.#a({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)})},a={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(a),this.options.behavior?.onFetch(a,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let s=e=>{(0,o.DV)(e)&&e.silent||this.#a({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:a.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){s(e);return}this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:s,onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#o.start()}#a(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,...u(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.#l)return{...this.#l,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 u(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 v}});var r=n(68786),i=n(58964),o=n(72821),a=n(41828),s=class extends a.l{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){let o=t.queryKey,a=t.queryHash??(0,r.Rm)(o,t),s=this.get(a);return s||(s=new i.A({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}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()})})}},u=n(95336),l=class extends a.l{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#m=new Map,this.#g=0}#v;#m;#g;build(e,t,n){let r=new u.m({mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#v.add(e);let t=c(e);if("string"==typeof t){let n=this.#m.get(t);n?n.push(e):this.#m.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#m.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#m.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#m.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.#m.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.V.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#m.clear()})}getAll(){return Array.from(this.#v)}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,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},l=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 a={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};c(a);let s=await d(a),{maxPages:u}=t.options,l=o?r.Ht:r.VX;return{pages:l(e.pages,s,u),pageParams:l(e.pageParams,i,u)}};if(o&&a.length){let e="backward"===o,t={pages:a,pageParams:s},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);u=await f(t,n,e)}else{let t=e??a.length;do{let e=0===l?s[0]??i.initialPageParam:p(i,u);if(l>0&&null==e)break;u=await f(u,e),l++}while(l<t)}return u};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 v=class{#y;#i;#f;#b;#w;#x;#S;#E;constructor(e={}){this.#y=e.queryCache||new s,this.#i=e.mutationCache||new l,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.#E=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.#E?.(),this.#E=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),a=o?.state.data,s=(0,r.SE)(t,a);if(void 0!==s)return this.#y.build(this,i).setData(s,{...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{#k;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#k=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#k&&(clearTimeout(this.#k),this.#k=void 0)}}},41176:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return u},Mz:function(){return d}});var r=n(24e3),i=n(65618),o=n(91840),a=n(68786);function s(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||i.N.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof l}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=()=>u(e.networkMode)&&e.canRun(),v=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),f.resolve(n))},m=n=>{d||(d=!0,e.onError?.(n),t?.(),f.reject(n))},g=()=>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(v).catch(t=>{if(d)return;let r=e.retry??(a.sk?0:3),i=e.retryDelay??s,o="function"==typeof i?i(c,t):i,u=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);if(n||!u){m(t);return}c++,e.onFail?.(c,t),(0,a._v)(o).then(()=>h()?void 0:g()).then(()=>{n?m(t):y()})})};return{promise:f,cancel:t=>{d||(m(new l(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?y():g().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 E},Ht:function(){return S},KC:function(){return u},Kp:function(){return s},Nc:function(){return l},PN:function(){return a},Rm:function(){return f},SE:function(){return o},VS:function(){return v},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 k},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 a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function l(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==f(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!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)=>g(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 v(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 m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(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=m(t)&&m(n);if(r||g(t)&&g(n)){let i=r?t:Object.keys(t),o=i.length,a=r?n:Object.keys(n),s=a.length,u=r?[]:{},l=0;for(let o=0;o<s;o++){let s=r?o:a[o];(!r&&i.includes(s)||r)&&void 0===t[s]&&void 0===n[s]?(u[s]=void 0,l++):(u[s]=e(t[s],n[s]),u[s]===t[s]&&void 0!==t[s]&&l++)}return o===s&&l===o?t:u}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 E=Symbol();function k(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==E?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},20519:function(e,t,n){"use strict";n.d(t,{NL:function(){return a},aH:function(){return s}});var r=n(66703),i=n(20130),o=r.createContext(void 0),a=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:n})}},25290:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return I}});var i=n(24e3),o=n(72821),a=n(58964),s=n(41828),u=n(91840),l=n(68786),c=class extends s.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#C=null,this.#_=(0,u.O)(),this.options.experimental_prefetchInRender||this.#_.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#d;#O=void 0;#P=void 0;#I=void 0;#R;#T;#_;#C;#A;#M;#j;#N;#L;#D;#F=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#O.addObserver(this),d(this.#O,this.options)?this.#B():this.updateResult(),this.#V())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#O,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#O,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#U(),this.#z(),this.#O.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#O;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,l.Nc)(this.options.enabled,this.#O))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#q(),this.#O.setOptions(this.options),n._defaulted&&!(0,l.VS)(this.options,n)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#O,observer:this});let i=this.hasListeners();i&&h(this.#O,r,this.options,n)&&this.#B(),this.updateResult(t),i&&(this.#O!==r||(0,l.Nc)(this.options.enabled,this.#O)!==(0,l.Nc)(n.enabled,this.#O)||(0,l.KC)(this.options.staleTime,this.#O)!==(0,l.KC)(n.staleTime,this.#O))&&this.#W();let o=this.#$();i&&(this.#O!==r||(0,l.Nc)(this.options.enabled,this.#O)!==(0,l.Nc)(n.enabled,this.#O)||o!==this.#D)&&this.#Z(o)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,l.VS)(this.getCurrentResult(),n)||(this.#I=n,this.#T=this.options,this.#R=this.#O.state),n}getCurrentResult(){return this.#I}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.#F.add(e)}getCurrentQuery(){return this.#O}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.#B({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#I))}#B(e){this.#q();let t=this.#O.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.ZT)),t}#W(){this.#U();let e=(0,l.KC)(this.options.staleTime,this.#O);if(l.sk||this.#I.isStale||!(0,l.PN)(e))return;let t=(0,l.Kp)(this.#I.dataUpdatedAt,e);this.#N=setTimeout(()=>{this.#I.isStale||this.updateResult()},t+1)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#O):this.options.refetchInterval)??!1}#Z(e){this.#z(),this.#D=e,!l.sk&&!1!==(0,l.Nc)(this.options.enabled,this.#O)&&(0,l.PN)(this.#D)&&0!==this.#D&&(this.#L=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#B()},this.#D))}#V(){this.#W(),this.#Z(this.#$())}#U(){this.#N&&(clearTimeout(this.#N),this.#N=void 0)}#z(){this.#L&&(clearInterval(this.#L),this.#L=void 0)}createResult(e,t){let n;let r=this.#O,i=this.options,o=this.#I,s=this.#R,c=this.#T,f=e!==r?e.state:this.#P,{state:v}=e,m={...v},g=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&d(e,t),s=n&&h(e,r,t,i);(o||s)&&(m={...m,...(0,a.z)(v.data,e.options)}),"isRestoring"===t._optimisticResults&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=m;if(t.select&&void 0!==m.data){if(o&&m.data===s?.data&&t.select===this.#A)n=this.#M;else try{this.#A=t.select,n=t.select(m.data),n=(0,l.oE)(o?.data,n,t),this.#M=n,this.#C=null}catch(e){this.#C=e}}else n=m.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.#j?.state.data,this.#j):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#C=null}catch(e){this.#C=e}void 0!==e&&(w="success",n=(0,l.oE)(o?.data,e,t),g=!0)}this.#C&&(y=this.#C,n=this.#M,b=Date.now(),w="error");let x="fetching"===m.fetchStatus,S="pending"===w,E="error"===w,k=S&&x,C=void 0!==n,_={status:w,fetchStatus:m.fetchStatus,isPending:S,isSuccess:"success"===w,isError:E,isInitialLoading:k,isLoading:k,data:n,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:E&&!C,isPaused:"paused"===m.fetchStatus,isPlaceholderData:g,isRefetchError:E&&C,isStale:p(e,t),refetch:this.refetch,promise:this.#_};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===_.status?e.reject(_.error):void 0!==_.data&&e.resolve(_.data)},n=()=>{t(this.#_=_.promise=(0,u.O)())},i=this.#_;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===_.status||_.data!==i.value)&&n();break;case"rejected":("error"!==_.status||_.error!==i.reason)&&n()}}return _}updateResult(e){let t=this.#I,n=this.createResult(this.#O,this.options);if(this.#R=this.#O.state,this.#T=this.options,void 0!==this.#R.data&&(this.#j=this.#O),(0,l.VS)(n,t))return;this.#I=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.#F.size)return!0;let r=new Set(n??this.#F);return this.options.throwOnError&&r.add("error"),Object.keys(this.#I).some(e=>this.#I[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#G({...r,...e})}#q(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#O)return;let t=this.#O;this.#O=e,this.#P=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#V()}#G(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#I)}),this.#d.getQueryCache().notify({query:this.#O,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,l.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,l.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,l.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return!1!==(0,l.Nc)(t.enabled,e)&&e.isStaleByTime((0,l.KC)(t.staleTime,e))}var v=n(66703),m=n(20519);n(20130);var g=v.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),y=()=>v.useContext(g),b=n(34937),w=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},x=e=>{v.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]))},E=v.createContext(!1),k=()=>v.useContext(E);E.Provider;var C=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)))},_=(e,t)=>e.isLoading&&e.isFetching&&!t,O=(e,t)=>e?.suspense&&t.isPending,P=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function I(e,t){return function(e,t,n){var r,i,a,s,u;let c=(0,m.NL)(n),d=k(),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",C(h),w(h,f),x(f);let p=!c.getQueryCache().get(h.queryHash),[g]=v.useState(()=>new t(c,h)),E=g.getOptimisticResult(h),I=!d&&!1!==e.subscribed;if(v.useSyncExternalStore(v.useCallback(e=>{let t=I?g.subscribe(o.V.batchCalls(e)):b.Z;return g.updateResult(),t},[g,I]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),v.useEffect(()=>{g.setOptions(h,{listeners:!1})},[h,g]),O(h,E))throw P(h,g,f);if(S({result:E,errorResetBoundary:f,throwOnError:h.throwOnError,query:c.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw E.error;if(null===(s=c.getDefaultOptions().queries)||void 0===s||null===(a=s._experimental_afterQuery)||void 0===a||a.call(s,h,E),h.experimental_prefetchInRender&&!l.sk&&_(E,d)){let e=p?P(h,g,f):null===(u=c.getQueryCache().get(h.queryHash))||void 0===u?void 0:u.promise;null==e||e.catch(b.Z).finally(()=>{g.updateResult()})}return h.notifyOnChangeProps?E:g.trackResult(E)}(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 g}});var r=()=>"undefined"!=typeof document,i=!1,o=null,a=!1,s=!1,u=new Set;function l(e,t){u.forEach(n=>n(e,t))}var c="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function d(e){a=!0,e.metaKey||!c&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",l("keyboard",e))}function f(e){if(o="pointer","mousedown"===e.type||"pointerdown"===e.type){a=!0;let t=e.composedPath?e.composedPath()[0]:e.target,n=!1;try{n=t.matches(":focus-visible")}catch{}n||l("pointer",e)}}function h(e){(0===e.mozInputSource&&e.isTrusted||0===e.detail&&!e.pointerType)&&(a=!0,o="virtual")}function p(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(a||s||(o="virtual",l("virtual",e)),a=!1,s=!1)}function v(){a=!1,s=!0}function m(){return"pointer"!==o}function g(e){!function(){if(!r()||i)return;let{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){a=!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",v,!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(m());let t=()=>e(m());return u.add(t),()=>{u.delete(t)}}},41181: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:a,CancelToken:s,VERSION:u,all:l,Cancel:c,isAxiosError:d,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:v,formToJSON:m,getAdapter:g,mergeConfig:y}=n(71923).default},71923:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{default:function(){return tv}});var u,l,c,d,f,h={};function p(e,t){return function(){return e.apply(t,arguments)}}n.r(h),n.d(h,{hasBrowserEnv:function(){return ey},hasStandardBrowserEnv:function(){return ew},hasStandardBrowserWebWorkerEnv:function(){return ex},navigator:function(){return eb},origin:function(){return eS}});var v=n(79294);let{toString:m}=Object.prototype,{getPrototypeOf:g}=Object,{iterator:y,toStringTag:b}=Symbol,w=(r=Object.create(null),e=>{let t=m.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),x=e=>(e=e.toLowerCase(),t=>w(t)===e),S=e=>t=>typeof t===e,{isArray:E}=Array,k=S("undefined"),C=x("ArrayBuffer"),_=S("string"),O=S("function"),P=S("number"),I=e=>null!==e&&"object"==typeof e,R=e=>{if("object"!==w(e))return!1;let t=g(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(b in e)&&!(y in e)},T=x("Date"),A=x("File"),M=x("Blob"),j=x("FileList"),N=x("URLSearchParams"),[L,D,F,B]=["ReadableStream","Request","Response","Headers"].map(x);function V(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e){if("object"!=typeof e&&(e=[e]),E(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),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}}function U(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 z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,q=e=>!k(e)&&e!==z,W=(i="undefined"!=typeof Uint8Array&&g(Uint8Array),e=>i&&e instanceof i),$=x("HTMLFormElement"),Z=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),G=x("RegExp"),H=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};V(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},K=x("AsyncFunction"),Y=(u="function"==typeof setImmediate,l=O(z.postMessage),u?setImmediate:l?(c=`axios@${Math.random()}`,d=[],z.addEventListener("message",({source:e,data:t})=>{e===z&&t===c&&d.length&&d.shift()()},!1),e=>{d.push(e),z.postMessage(c,"*")}):e=>setTimeout(e)),J="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):void 0!==v&&v.nextTick||Y;var X={isArray:E,isArrayBuffer:C,isBuffer:function(e){return null!==e&&!k(e)&&null!==e.constructor&&!k(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||O(e.append)&&("formdata"===(t=w(e))||"object"===t&&O(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&C(e.buffer)},isString:_,isNumber:P,isBoolean:e=>!0===e||!1===e,isObject:I,isPlainObject:R,isReadableStream:L,isRequest:D,isResponse:F,isHeaders:B,isUndefined:k,isDate:T,isFile:A,isBlob:M,isRegExp:G,isFunction:O,isStream:e=>I(e)&&O(e.pipe),isURLSearchParams:N,isTypedArray:W,isFileList:j,forEach:V,merge:function e(){let{caseless:t}=q(this)&&this||{},n={},r=(r,i)=>{let o=t&&U(n,i)||i;R(n[o])&&R(r)?n[o]=e(n[o],r):R(r)?n[o]=e({},r):E(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&V(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(V(t,(t,r)=>{n&&O(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,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&g(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:w,kindOfTest:x,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(E(e))return e;let t=e.length;if(!P(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[y]).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:$,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,n)=>{if(O(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(O(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})})(E(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:U,global:z,isContextDefined:q,isSpecCompliantForm:function(e){return!!(e&&O(e.append)&&"FormData"===e[b]&&e[y])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(I(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=E(e)?[]:{};return V(e,(e,t)=>{let o=n(e,r+1);k(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:K,isThenable:e=>e&&(I(e)||O(e))&&O(e.then)&&O(e.catch),setImmediate:Y,asap:J,isIterable:e=>null!=e&&O(e[y])};function Q(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)}X.inherits(Q,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:X.toJSONObject(this.config),code:this.code,status:this.status}}});let ee=Q.prototype,et={};["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=>{et[e]={value:e}}),Object.defineProperties(Q,et),Object.defineProperty(ee,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,i,o)=>{let a=Object.create(ee);return X.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Q.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var en=n(81503).Buffer;function er(e){return X.isPlainObject(e)||X.isArray(e)}function ei(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function eo(e,t,n){return e?e.concat(t).map(function(e,t){return e=ei(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ea=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});var es=function(e,t,n){if(!X.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])})).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(X.isDate(e))return e.toISOString();if(!s&&X.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(e)||X.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):en.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&"object"==typeof e){if(X.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var l;if(X.isArray(e)&&(l=e,X.isArray(l)&&!l.some(er))||(X.isFileList(e)||X.endsWith(n,"[]"))&&(s=X.toArray(e)))return n=ei(n),s.forEach(function(e,r){X.isUndefined(e)||null===e||t.append(!0===a?eo([n],r,o):null===a?n:n+"[]",u(e))}),!1}}return!!er(e)||(t.append(eo(i,n,o),u(e)),!1)}let c=[],d=Object.assign(ea,{defaultVisitor:l,convertValue:u,isVisitable:er});if(!X.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!X.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),X.forEach(n,function(n,o){!0===(!(X.isUndefined(n)||null===n)&&i.call(t,n,X.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function eu(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function el(e,t){this._pairs=[],e&&es(e,this,t)}let ec=el.prototype;function ed(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ef(e,t,n){let r;if(!t)return e;let i=n&&n.encode||ed;X.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(t,n):X.isURLSearchParams(t)?t.toString():new el(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}ec.append=function(e,t){this._pairs.push([e,t])},ec.toString=function(e){let t=e?function(t){return e.call(this,t,eu)}:eu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eh{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){X.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ep={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ev="undefined"!=typeof URLSearchParams?URLSearchParams:el,em="undefined"!=typeof FormData?FormData:null,eg="undefined"!=typeof Blob?Blob:null;let ey="undefined"!=typeof window&&"undefined"!=typeof document,eb="object"==typeof navigator&&navigator||void 0,ew=ey&&(!eb||0>["ReactNative","NativeScript","NS"].indexOf(eb.product)),ex="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eS=ey&&window.location.href||"http://localhost";var eE={...h,isBrowser:!0,classes:{URLSearchParams:ev,FormData:em,Blob:eg},protocols:["http","https","file","blob","url","data"]},ek=function(e){if(X.isFormData(e)&&X.isFunction(e.entries)){let t={};return X.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&X.isArray(r)?r.length:o,s)?X.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&X.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&X.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]))),!a}(X.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let eC={transitional:ep,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=X.isObject(e);if(o&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return i?JSON.stringify(ek(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.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 a,s;return(a=e,s=this.formSerializer,es(a,new eE.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return eE.isNode&&X.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},s))).toString()}if((n=X.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return es(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(X.isString(e))try{return(0,JSON.parse)(e),X.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eC.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.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 Q.from(e,Q.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:eE.classes.FormData,Blob:eE.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{eC.headers[e]={}});let e_=X.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 eO=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]&&e_[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i};let eP=Symbol("internals");function eI(e){return e&&String(e).trim().toLowerCase()}function eR(e){return!1===e||null==e?e:X.isArray(e)?e.map(eR):String(e)}let eT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eA(e,t,n,r,i){if(X.isFunction(r))return r.call(this,t,n);if(i&&(t=n),X.isString(t)){if(X.isString(r))return -1!==t.indexOf(r);if(X.isRegExp(r))return r.test(t)}}class eM{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eI(t);if(!i)throw Error("header name must be a non-empty string");let o=X.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=eR(e))}let o=(e,t)=>X.forEach(e,(e,n)=>i(e,n,t));if(X.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(X.isString(e)&&(e=e.trim())&&!eT(e))o(eO(e),t);else if(X.isObject(e)&&X.isIterable(e)){let n={},r,i;for(let t of e){if(!X.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?X.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(n,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=eI(e)){let n=X.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(X.isFunction(t))return t.call(this,e,n);if(X.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eI(e)){let n=X.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=eI(e)){let i=X.findKey(n,e);i&&(!t||eA(n,n[i],i,t))&&(delete n[i],r=!0)}}return X.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 X.forEach(this,(r,i)=>{let o=X.findKey(n,i);if(o){t[o]=eR(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=eR(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return X.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&X.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")}getSetCookie(){return this.get("set-cookie")||[]}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[eP]=this[eP]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eI(e);t[r]||(!function(e,t){let n=X.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 X.isArray(e)?e.forEach(r):r(e),this}}function ej(e,t){let n=this||eC,r=t||n,i=eM.from(r.headers),o=r.data;return X.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eN(e){return!!(e&&e.__CANCEL__)}function eL(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}function eD(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eM.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(eM.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),X.freezeMethods(eM),X.inherits(eL,Q,{__CANCEL__:!0});var eF=function(e,t){let n;let r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let u=Date.now(),l=i[a];n||(n=u),r[o]=s,i[o]=u;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),u-n<t)return;let f=l&&u-l;return f?Math.round(1e3*d/f):void 0}},eB=function(e,t){let n,r,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]};let eV=(e,t,n=3)=>{let r=0,i=eF(50,250);return eB(n=>{let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,u=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&o<=a?(a-o)/u:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eU=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ez=e=>(...t)=>X.asap(()=>e(...t));var eq=eE.hasStandardBrowserEnv?(o=new URL(eE.origin),a=eE.navigator&&/(msie|trident)/i.test(eE.navigator.userAgent),e=>(e=new URL(e,eE.origin),o.protocol===e.protocol&&o.host===e.host&&(a||o.port===e.port))):()=>!0,eW=eE.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),X.isString(r)&&a.push("path="+r),X.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.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 e$(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 eZ=e=>e instanceof eM?{...e}:e;function eG(e,t){t=t||{};let n={};function r(e,t,n,r){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:r},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function i(e,t,n,i){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!X.isUndefined(t))return r(void 0,t)}function a(e,t){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(eZ(e),eZ(t),n,!0)};return X.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=u[r]||i,a=o(e[r],t[r],r);X.isUndefined(a)&&o!==s||(n[r]=a)}),n}var eH=e=>{let t;let n=eG({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:u}=n;if(n.headers=s=eM.from(s),n.url=ef(e$(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),X.isFormData(r)){if(eE.hasStandardBrowserEnv||eE.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(eE.hasStandardBrowserEnv&&(i&&X.isFunction(i)&&(i=i(n)),i||!1!==i&&eq(n.url))){let e=o&&a&&eW.read(a);e&&s.set(o,e)}return n},eK="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,a,s;let u=eH(e),l=u.data,c=eM.from(u.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=u;function p(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}let v=new XMLHttpRequest;function m(){if(!v)return;let r=eM.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());eD(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v}),v=null}v.open(u.method.toUpperCase(),u.url,!0),v.timeout=u.timeout,"onloadend"in v?v.onloadend=m:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(m)},v.onabort=function(){v&&(n(new Q("Request aborted",Q.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||ep;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(new Q(t,r.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,v)),v=null},void 0===l&&c.setContentType(null),"setRequestHeader"in v&&X.forEach(c.toJSON(),function(e,t){v.setRequestHeader(t,e)}),X.isUndefined(u.withCredentials)||(v.withCredentials=!!u.withCredentials),d&&"json"!==d&&(v.responseType=u.responseType),h&&([o,s]=eV(h,!0),v.addEventListener("progress",o)),f&&v.upload&&([i,a]=eV(f),v.upload.addEventListener("progress",i),v.upload.addEventListener("loadend",a)),(u.cancelToken||u.signal)&&(r=t=>{v&&(n(!t||t.type?new eL(null,e,v):t),v.abort(),v=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));let g=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u.url);if(g&&-1===eE.protocols.indexOf(g)){n(new Q("Unsupported protocol "+g+":",Q.ERR_BAD_REQUEST,e));return}v.send(l||null)})},eY=(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,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new eL(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t),a=()=>{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:s}=r;return s.unsubscribe=()=>X.asap(a),s}};let eJ=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},eX=async function*(e,t){for await(let n of eQ(e))yield*eJ(n,t)},eQ=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()}},e0=(e,t,n,r)=>{let i;let o=eX(e,t),a=0,s=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){s(),e.close();return}let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},e1="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e2=e1&&"function"==typeof ReadableStream,e3=e1&&("function"==typeof TextEncoder?(s=new TextEncoder,e=>s.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e5=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e4=e2&&e5(()=>{let e=!1,t=new Request(eE.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e6=e2&&e5(()=>X.isReadableStream(new Response("").body)),e8={stream:e6&&(e=>e.body)};e1&&(f=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e8[e]||(e8[e]=X.isFunction(f[e])?t=>t[e]():(t,n)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})}));let e7=async e=>{if(null==e)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e)){let t=new Request(eE.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return X.isArrayBufferView(e)||X.isArrayBuffer(e)?e.byteLength:(X.isURLSearchParams(e)&&(e+=""),X.isString(e))?(await e3(e)).byteLength:void 0},e9=async(e,t)=>{let n=X.toFiniteNumber(e.getContentLength());return null==n?e7(t):n},te={http:null,xhr:eK,fetch:e1&&(async e=>{let t,n,{url:r,method:i,data:o,signal:a,cancelToken:s,timeout:u,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:f,withCredentials:h="same-origin",fetchOptions:p}=eH(e);d=d?(d+"").toLowerCase():"text";let v=eY([a,s&&s.toAbortSignal()],u),m=v&&v.unsubscribe&&(()=>{v.unsubscribe()});try{if(c&&e4&&"get"!==i&&"head"!==i&&0!==(n=await e9(f,o))){let e,t=new Request(r,{method:"POST",body:o,duplex:"half"});if(X.isFormData(o)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,r]=eU(n,eV(ez(c)));o=e0(t.body,65536,e,r)}}X.isString(h)||(h=h?"include":"omit");let a="credentials"in Request.prototype;t=new Request(r,{...p,signal:v,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:a?h:void 0});let s=await fetch(t),u=e6&&("stream"===d||"response"===d);if(e6&&(l||u&&m)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=X.toFiniteNumber(s.headers.get("content-length")),[n,r]=l&&eU(t,eV(ez(l),!0))||[];s=new Response(e0(s.body,65536,n,()=>{r&&r(),m&&m()}),e)}d=d||"text";let g=await e8[X.findKey(e8,d)||"text"](s,e);return!u&&m&&m(),await new Promise((n,r)=>{eD(n,r,{data:g,headers:eM.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(n){if(m&&m(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,t),{cause:n.cause||n});throw Q.from(n,n&&n.code,e,t)}})};X.forEach(te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tt=e=>`- ${e}`,tn=e=>X.isFunction(e)||null===e||!1===e;var tr=e=>{let t,n;let{length:r}=e=X.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!tn(t)&&void 0===(n=te[(r=String(t)).toLowerCase()]))throw new Q(`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 Q("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(tt).join("\n"):" "+tt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function ti(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eL(null,e)}function to(e){return ti(e),e.headers=eM.from(e.headers),e.data=ej.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tr(e.adapter||eC.adapter)(e).then(function(t){return ti(e),t.data=ej.call(e,e.transformResponse,t),t.headers=eM.from(t.headers),t},function(t){return!eN(t)&&(ti(e),t&&t.response&&(t.response.data=ej.call(e,e.transformResponse,t.response),t.response.headers=eM.from(t.response.headers))),Promise.reject(t)})}let ta="1.9.0",ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ts[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let tu={};ts.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ta+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Q(r(i," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!tu[i]&&(tu[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)}},ts.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var tl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Q("option "+o+" must be "+n,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}},validators:ts};let tc=tl.validators;class td{constructor(e){this.defaults=e||{},this.interceptors={request:new eh,response:new eh}}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:a}=t=eG(this.defaults,t);void 0!==i&&tl.assertOptions(i,{silentJSONParsing:tc.transitional(tc.boolean),forcedJSONParsing:tc.transitional(tc.boolean),clarifyTimeoutError:tc.transitional(tc.boolean)},!1),null!=o&&(X.isFunction(o)?t.paramsSerializer={serialize:o}:tl.assertOptions(o,{encode:tc.function,serialize:tc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tl.assertOptions(t,{baseUrl:tc.spelling("baseURL"),withXsrfToken:tc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&X.merge(a.common,a[t.method]);a&&X.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eM.concat(s,a);let u=[],l=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(l=l&&e.synchronous,u.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!l){let e=[to.bind(this),void 0];for(e.unshift.apply(e,u),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=u.length;let f=t;for(d=0;d<r;){let e=u[d++],t=u[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=to.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 ef(e$((e=eG(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(e){td.prototype[e]=function(t,n){return this.request(eG(n||{},{method:e,url:t,data:(n||{}).data}))}}),X.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(eG(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}td.prototype[e]=t(),td.prototype[e+"Form"]=t(!0)});class tf{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 eL(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 tf(function(t){e=t}),cancel:e}}}let th={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(th).forEach(([e,t])=>{th[t]=e});let tp=function e(t){let n=new td(t),r=p(td.prototype.request,n);return X.extend(r,td.prototype,n,{allOwnKeys:!0}),X.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eG(t,n))},r}(eC);tp.Axios=td,tp.CanceledError=eL,tp.CancelToken=tf,tp.isCancel=eN,tp.VERSION=ta,tp.toFormData=es,tp.AxiosError=Q,tp.Cancel=tp.CanceledError,tp.all=function(e){return Promise.all(e)},tp.spread=function(e){return function(t){return e.apply(null,t)}},tp.isAxiosError=function(e){return X.isObject(e)&&!0===e.isAxiosError},tp.mergeConfig=eG,tp.AxiosHeaders=eM,tp.formToJSON=e=>ek(X.isHTMLForm(e)?new FormData(e):e),tp.getAdapter=tr,tp.HttpStatusCode=th,tp.default=tp;var tv=tp},70627:function(e,t,n){"use strict";n.d(t,{Ph:function(){return t5}});var r,i,o,a=n(66703),s=n(80830);function u(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 l(e,t){if(e){if("string"==typeof e)return u(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)?u(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,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||l(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(14022);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,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,v=e.value,m=f(e,h),g=c((0,a.useState)(void 0!==i?i:void 0===t?"":t),2),y=g[0],b=g[1],w=c((0,a.useState)(void 0!==o?o:void 0!==n&&n),2),x=w[0],S=w[1],E=c((0,a.useState)(void 0!==v?v:void 0===r?null:r),2),k=E[0],C=E[1],_=(0,a.useCallback)(function(e,t){"function"==typeof u&&u(e,t),C(e)},[u]),O=(0,a.useCallback)(function(e,t){var n;"function"==typeof l&&(n=l(e,t)),b(void 0!==n?n:e)},[l]),P=(0,a.useCallback)(function(){"function"==typeof p&&p(),S(!0)},[p]),I=(0,a.useCallback)(function(){"function"==typeof d&&d(),S(!1)},[d]),R=void 0!==i?i:y,T=void 0!==o?o:x,A=void 0!==v?v:k;return(0,s.Z)((0,s.Z)({},m),{},{inputValue:R,menuIsOpen:T,onChange:_,onInputChange:O,onMenuClose:I,onMenuOpen:P,value:A})}var v=n(82040),m=n(32295);function g(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,m.Z)(r.key),r)}}var y=n(37399);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(81109);function S(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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 E=n(68312),k=n(52907),C=n(93694);let _=Math.min,O=Math.max,P=Math.round,I=Math.floor,R=e=>({x:e,y:e});function T(){return"undefined"!=typeof window}function A(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!!T()&&(e instanceof Node||e instanceof M(e).Node)}function L(e){return!!T()&&(e instanceof Element||e instanceof M(e).Element)}function D(e){return!!T()&&(e instanceof HTMLElement||e instanceof M(e).HTMLElement)}function F(e){return!!T()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function B(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function V(e){return M(e).getComputedStyle(e)}function U(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"===A(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||j(e);return F(t)?t.host:t}(t);return["html","body","#document"].includes(A(n))?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&B(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=M(i);if(o){let e=z(a);return t.concat(a,a.visualViewport||[],B(i)?i:[],e&&n?U(e):[])}return t.concat(i,U(i,[],n))}function z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function q(e){return L(e)?e:e.contextElement}function W(e){let t=q(e);if(!D(t))return R(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){let t=V(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=D(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=P(n)!==o||P(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t),a=(o?P(n.width):n.width)/r,s=(o?P(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let $=R(0);function Z(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=q(e),s=R(1);t&&(r?L(r)&&(s=W(r)):s=W(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===M(a))&&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}:$}(a):R(0),l=(o.left+u.x)/s.x,c=(o.top+u.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=M(a),t=r&&L(r)?M(r):r,n=e,i=z(n);for(;i&&r&&t!==n;){let e=W(i),t=i.getBoundingClientRect(),r=V(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,f*=e.y,l+=o,c+=a,i=z(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:l,y:c})}function G(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var H=a.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 a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(a?"-"===a[0]?e+a:e+"__"+a: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,s.Z)({},t)},ee=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};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,a=0;!function t(){var s;a+=10,er(e,o*((s=(s=a)/n-1)*s*s+1)+i),a<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 ea(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var es=!1,eu="undefined"!=typeof window?window:{};eu.addEventListener&&eu.removeEventListener&&(eu.addEventListener("p",Y,{get passive(){return es=!0}}),eu.removeEventListener("p",Y,!1));var el=es;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},ev=(0,a.createContext)(null),em=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,d=((0,a.useContext)(ev)||{}).setPortalPlacement,f=(0,a.useRef)(null),h=c((0,a.useState)(r),2),p=h[0],v=h[1],m=c((0,a.useState)(null),2),g=m[0],y=m[1],b=l.spacing.controlHeight;return H(function(){var e=f.current;if(e){var t="fixed"===o,a=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=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),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=u.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,p=d.top,v=n.offsetParent.getBoundingClientRect().top,m=a?window.innerHeight:et(u)?window.innerHeight:u.clientHeight,g=en(u),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=v-b,x=m-p,S=w+g,E=c-g-p,k=f-m+g+y,C=g+p-b;switch(i){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return o&&ei(u,k,160),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&x>=r)return o&&ei(u,k,160),{placement:"bottom",maxHeight:a?x-y:E-y};if("auto"===i||a){var _=t,O=a?w:S;return O>=r&&(_=Math.min(O-y-s,t)),{placement:"top",maxHeight:_}}if("bottom"===i)return o&&er(u,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return o&&ei(u,C,160),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&w>=r){var P=t;return(!a&&S>=r||a&&w>=r)&&(P=a?w-b:S-b),o&&ei(u,C,160),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:b});v(a.maxHeight),y(a.placement),null==d||d(a.placement)}},[r,i,o,u,n,d,b]),t({ref:f,placerProps:(0,s.Z)((0,s.Z)({},e),{},{placement:g||ep(i),maxHeight:p})})},eg=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,s.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,E.tZ)("svg",(0,v.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ew},n))},eS=function(e){return(0,E.tZ)(ex,(0,v.Z)({size:20},e),(0,E.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"}))},eE=function(e){return(0,E.tZ)(ex,(0,v.Z)({size:20},e),(0,E.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"}))},ek=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,s.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}})},eC=(0,E.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)}})))),e_=function(e){var t=e.delay,n=e.offset;return(0,E.tZ)("span",{css:(0,E.iv)({animation:"".concat(eC," 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"],eP=["innerRef","isDisabled","isHidden","inputClassName"],eI={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},eR={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,s.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eI)},eT=function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",n,t)},eA={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,E.tZ)(eS,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return(0,E.tZ)("div",(0,v.Z)({ref:i},ee(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,E.tZ)(eE,null))},DownChevron:eE,CrossIcon:eS,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,l=e.theme,c=e.selectProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"group",{group:!0}),s),(0,E.tZ)(o,(0,v.Z)({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:i,cx:n}),u),(0,E.tZ)("div",null,t))},GroupHeading:function(e){var t=Q(e);t.data;var n=f(t,eO);return(0,E.tZ)("div",(0,v.Z)({},ee(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,E.tZ)("span",(0,v.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,a=r.isHidden,u=r.inputClassName,l=f(r,eP);return(0,E.tZ)("div",(0,v.Z)({},ee(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,E.tZ)("input",(0,v.Z)({className:t({input:!0},u),ref:i,style:(0,s.Z)({label:"input",color:"inherit",background:0,opacity:a?0:1,width:"100%"},eI),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=f(e,eb);return(0,E.tZ)("div",(0,v.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,E.tZ)(e_,{delay:0,offset:n}),(0,E.tZ)(e_,{delay:160,offset:!0}),(0,E.tZ)(e_,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,E.tZ)("div",(0,v.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,E.tZ)("div",(0,v.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,u=e.menuPosition,l=(0,a.useRef)(null),d=(0,a.useRef)(null),f=c((0,a.useState)(ep(o)),2),h=f[0],p=f[1],m=(0,a.useMemo)(function(){return{setPortalPlacement:p}},[]),g=c((0,a.useState)(null),2),y=g[0],b=g[1],w=(0,a.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"===u?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,u,h,null==y?void 0:y.offset,null==y?void 0:y.rect.left,null==y?void 0:y.rect.width]);H(function(){w()},[w]);var x=(0,a.useCallback)(function(){"function"==typeof d.current&&(d.current(),d.current=null),r&&l.current&&(d.current=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=q(e),d=o||a?[...c?U(c):[],...U(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&u?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 a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();let l=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=l;if(s||t(),!f||!h)return;let p=I(d),v=I(i.clientWidth-(c+f)),m={rootMargin:-p+"px "+-v+"px "+-I(i.clientHeight-(d+h))+"px "+-I(c)+"px",threshold:O(0,_(1,u))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||G(l,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(y,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(y,m)}r.observe(e)}(!0),o}(c,n):null,h=-1,p=null;s&&(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&&!l&&p.observe(c),p.observe(t));let v=l?Z(e):null;return l&&function t(){let r=Z(e);v&&!G(v,r)&&n(),v=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(i)}}(r,l.current,w,{elementResize:("ResizeObserver"in window)}))},[r,w]);H(function(){x()},[x]);var S=(0,a.useCallback)(function(e){l.current=e,x()},[x]);if(!t&&"fixed"!==u||!y)return null;var k=(0,E.tZ)("div",(0,v.Z)({ref:S},ee((0,s.Z)((0,s.Z)({},e),{},{offset:y.offset,position:u,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),n);return(0,E.tZ)(ev.Provider,{value:m},t?(0,C.createPortal)(k,t):k)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=f(e,eh);return(0,E.tZ)("div",(0,v.Z)({},ee((0,s.Z)((0,s.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,E.tZ)("div",(0,v.Z)({},ee((0,s.Z)((0,s.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,a=e.removeProps,u=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return(0,E.tZ)(l,{data:r,innerProps:(0,s.Z)((0,s.Z)({},ee(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},(0,E.tZ)(c,{data:r,innerProps:(0,s.Z)({},ee(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),(0,E.tZ)(d,{data:r,innerProps:(0,s.Z)((0,s.Z)({},ee(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:eT,MultiValueLabel:eT,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({role:"button"},n),t||(0,E.tZ)(eS,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.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,E.tZ)("div",(0,v.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,E.tZ)("div",(0,v.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,E.tZ)("div",(0,v.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,E.tZ)("span",(0,v.Z)({css:ej},e))},eL={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,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&l){var d="".concat(u?" selected":"").concat(s?" 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:"",".")}},eD=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=e.isAppleDevice,f=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,v=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,b=l.options,w=l.screenReaderStatus,x=l.tabSelectsValue,S=l.isLoading,k=l["aria-label"],C=l["aria-live"],_=(0,a.useMemo)(function(){return(0,s.Z)((0,s.Z)({},eL),f||{})},[f]),O=(0,a.useMemo)(function(){var e="";if(t&&_.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,a=t.value,l=i||n||(Array.isArray(a)?null:a),c=l?h(l):"",d=r||o||void 0,f=d?d.map(h):[],p=(0,s.Z)({isDisabled:l&&m(l,u),label:c,labels:f},t);e=_.onChange(p)}return e},[t,_,m,u,h]),P=(0,a.useMemo)(function(){var e="",t=n||r,o=!!(n&&u&&u.includes(n));if(t&&_.onFocus){var a={focused:t,label:h(t),isDisabled:m(t,u),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:u,isAppleDevice:d};e=_.onFocus(a)}return e},[n,r,h,m,_,i,u,d]),I=(0,a.useMemo)(function(){var e="";if(y&&b.length&&!S&&_.onFilter){var t=w({count:i.length});e=_.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,y,_,b,w,S]),R=(null==t?void 0:t.action)==="initial-input-focus",T=(0,a.useMemo)(function(){var e="";if(_.guidance){var t=r?"value":y?"menu":"input";e=_.guidance({"aria-label":k,context:t,isDisabled:n&&m(n,u),isMulti:v,isSearchable:g,tabSelectsValue:x,isInitialFocus:R})}return e},[k,n,r,v,m,g,y,_,u,x,R]),A=(0,E.tZ)(a.Fragment,null,(0,E.tZ)("span",{id:"aria-selection"},O),(0,E.tZ)("span",{id:"aria-focused"},P),(0,E.tZ)("span",{id:"aria-results"},I),(0,E.tZ)("span",{id:"aria-guidance"},T));return(0,E.tZ)(a.Fragment,null,(0,E.tZ)(eN,{id:c},R&&A),(0,E.tZ)(eN,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!R&&A))},eF=[{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źẑżžẓẕƶȥɀⱬꝣ"}],eB=RegExp("["+eF.map(function(e){return e.letters}).join("")+"]","g"),eV={},eU=0;eU<eF.length;eU++)for(var ez=eF[eU],eq=0;eq<ez.letters.length;eq++)eV[ez.letters[eq]]=ez.base;var eW=function(e){return e.replace(eB,function(e){return eV[e]})},e$=(0,eM.Z)(eW),eZ=function(e){return e.replace(/^\s+|\s+$/g,"")},eG=function(e){return"".concat(e.label," ").concat(e.value)},eH=["innerRef"];function eK(e){var t=e.innerRef,n=ed(f(e,eH),"onExited","in","enter","exit","appear");return(0,E.tZ)("input",(0,v.Z)({ref:t},n,{css:(0,E.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()},e8={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function e7(e){var t,n,r,i,o,s,u,l,c,d,f,h,p,v,m,g,y,b,w,x,S,k,C,_,O=e.children,P=e.lockEnabled,I=e.captureEnabled,R=(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,s=t.onTopLeave,u=(0,a.useRef)(!1),l=(0,a.useRef)(!1),c=(0,a.useRef)(0),d=(0,a.useRef)(null),f=(0,a.useCallback)(function(e,t){if(null!==d.current){var n=d.current,a=n.scrollTop,c=n.scrollHeight,f=n.clientHeight,h=d.current,p=t>0,v=c-f-a,m=!1;v>t&&u.current&&(i&&i(e),u.current=!1),p&&l.current&&(s&&s(e),l.current=!1),p&&t>v?(r&&!u.current&&r(e),h.scrollTop=c,m=!0,u.current=!0):!p&&-t>a&&(o&&!l.current&&o(e),h.scrollTop=0,m=!0,l.current=!0),m&&eY(e)}},[r,i,o,s]),h=(0,a.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,a.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),v=(0,a.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),m=(0,a.useCallback)(function(e){if(e){var t=!!el&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",v,t)}},[v,p,h]),g=(0,a.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",v,!1))},[v,p,h]),(0,a.useEffect)(function(){if(n){var e=d.current;return m(e),function(){g(e)}}},[n,m,g]),function(e){d.current=e}),T=(b=(y={isEnabled:P}).isEnabled,x=void 0===(w=y.accountForScrollbars)||w,S=(0,a.useRef)({}),k=(0,a.useRef)(null),C=(0,a.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]),_=(0,a.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,a.useEffect)(function(){if(b){var e=k.current;return C(e),function(){_(e)}}},[b,C,_]),function(e){k.current=e});return(0,E.tZ)(a.Fragment,null,P&&(0,E.tZ)("div",{onClick:e6,css:e8}),O(function(e){R(e),T(e)}))}var e9={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,E.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:e9,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:ek,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,a=i.borderRadius,u=i.spacing;return(0,s.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.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:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:ek,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,s.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,s.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,a=i.colors;return(0,s.Z)((0,s.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},eR),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return(0,s.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*a})},loadingMessage:eg,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,u=i.colors;return(0,s.Z)((n={label:"menu"},(0,k.Z)(n,r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),(0,k.Z)(n,"position","absolute"),(0,k.Z)(n,"width","100%"),(0,k.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,s.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,s.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,s.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,a=e.isFocused;return(0,s.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:eg,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,u=o.colors;return(0,s.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,s.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,s.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,s.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}},ta={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ea(),captureMenuScroll:!ea(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,s.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:eG,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,u=n.matchFrom,l=a?eZ(t):t,c=a?eZ(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=e$(l),c=eW(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-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 ts(e,t,n,r){var i=tv(e,t,n),o=tm(e,t,n),a=th(e,t),s=tp(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function tu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return ts(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=ts(e,n,t,r);return td(e,o)?o:void 0}).filter(ec)}function tl(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,a=t.value;return(!ty(e)||!i)&&tg(e,{label:o,value:a,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 tv(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tm(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 tg(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,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),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,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==l}),"deselect-option",e)}else if(u){t.ariaOnChange(e,{action:"select-option",option:e,name:o});return}else i?t.setValue([].concat(S(a),[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),a=i.filter(function(e){return t.getOptionValue(e)!==o}),s=(n=a[0]||null,r?a:n);t.onChange(s,{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),a=(e=o[0]||null,n?o:e);i&&t.onChange(a,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return tf(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return tc(tu(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,s.Z)((0,s.Z)({},eA),e.components)},t.buildCategorizedOptions=function(){return tu(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return tl(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,s.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,a=n.inputValue,s=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,v=h.focusedValue,m=h.selectValue;if(!u){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)t.removeValue(v);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!l||!d||!p||f&&t.isOptionSelected(p,m))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(l){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)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(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=tf(n,r[a])}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(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},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,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{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,s.Z)((0,s.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,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:o,selectProps:s,setValue:a,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 tv(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tm(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tg(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,u=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,m=this.commonProps,g=r||this.getElementId("input"),y=(0,s.Z)((0,s.Z)((0,s.Z)({"aria-autocomplete":"list","aria-expanded":l,"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||""},l&&{"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?a.createElement(d,(0,v.Z)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:u,type:"text",value:i},y)):a.createElement(eK,(0,v.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Y,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:u,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,m=c.placeholder,g=this.state,y=g.selectValue,b=g.focusedValue,w=g.isFocused;if(!this.hasValue()||!d)return p?null:a.createElement(u,(0,v.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),m);if(h)return y.map(function(t,s){var u=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,v.Z)({},l,{components:{Container:r,Label:i,Remove:o},isFocused:u,isDisabled:f,key:c,index:s,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 a.createElement(s,(0,v.Z)({},l,{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 s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,v.Z)({},t,{innerProps:s,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?a.createElement(e,(0,v.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 a.createElement(n,(0,v.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 a.createElement(e,(0,v.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,s=n.MenuList,u=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,g=p.inputValue,y=p.isLoading,b=p.loadingMessage,w=p.minMenuHeight,x=p.maxMenuHeight,S=p.menuIsOpen,E=p.menuPlacement,k=p.menuPosition,C=p.menuPortalTarget,_=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,P=p.noOptionsMessage,I=p.onMenuScrollToTop,R=p.onMenuScrollToBottom;if(!S)return null;var T=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,s=e.isSelected,u=e.label,l=e.value,c=h===i,p=o?void 0:function(){return t.onOptionHover(i)},m=o?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(n),y={id:g,onClick:m,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return a.createElement(d,(0,v.Z)({},f,{innerProps:y,data:i,isDisabled:o,isSelected:s,key:g,label:u,type:r,value:l,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,s=e.index,u="".concat(t.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return a.createElement(r,(0,v.Z)({},f,{key:u,data:n,options:o,Heading:i,headingProps:{id:l,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return T(e,"".concat(s,"-").concat(e.index))}))}if("option"===e.type)return T(e,"".concat(e.index))});else if(y){var A=b({inputValue:g});if(null===A)return null;e=a.createElement(l,f,A)}else{var M=P({inputValue:g});if(null===M)return null;e=a.createElement(c,f,M)}var j={minMenuHeight:w,maxMenuHeight:x,menuPlacement:E,menuPosition:k,menuShouldScrollIntoView:O},N=a.createElement(em,(0,v.Z)({},f,j),function(n){var r=n.ref,i=n.placerProps,u=i.placement,l=i.maxHeight;return a.createElement(o,(0,v.Z)({},f,j,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:y,placement:u}),a.createElement(e7,{captureEnabled:m,onTopArrive:I,onBottomArrive:R,lockEnabled:_},function(n){return a.createElement(s,(0,v.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:y,maxHeight:l,focusedOption:h}),e)}))});return C||"fixed"===k?a.createElement(u,(0,v.Z)({},f,{appendTo:C,controlElement:this.controlRef,menuPlacement:E,menuPosition:k}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!r)return a.createElement(te,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=u.map(function(t){return e.getOptionValue(t)}).join(n);return a.createElement("input",{name:o,type:"hidden",value:l})}var c=u.length>0?u.map(function(t,n){return a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):a.createElement("input",{name:o,type:"hidden",value:""});return a.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return a.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,s=t.selectValue,u=this.getFocusableOptions();return a.createElement(eD,(0,v.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:u,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,s=o.className,u=o.id,l=o.isDisabled,c=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(r,(0,v.Z)({},f,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),a.createElement(t,(0,v.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:c}),a.createElement(i,(0,v.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,v.Z)({},f,{isDisabled:l}),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,a=t.ariaSelection,u=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,d=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,v=e.isMulti,m=X(f),g={};if(r&&(f!==r.value||d!==r.options||h!==r.menuIsOpen||p!==r.inputValue)){var y,b=h?tl(tu(e,m)):[],w=h?tc(tu(e,m),"".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,m):null,S=(y=t.focusedOption)&&b.indexOf(y)>-1?y:b[0],E=tf(w,S);g={selectValue:m,focusedOption:S,focusedOptionId:E,focusableOptionsWithIds:w,focusedValue:x,clearFocusValueOnUpdate:!1}}var k=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},C=a,_=u&&l;return u&&!_&&(C={value:(n=m[0]||null,v?m:n),options:m,action:"initial-input-focus"},_=!l),(null==a?void 0:a.action)==="initial-input-focus"&&(C=null),(0,s.Z)((0,s.Z)((0,s.Z)({},g),k),{},{prevProps:e,ariaSelection:C,prevWasFocused:_})}}],n&&g(o.prototype,n),r&&g(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(a.Component);tw.defaultProps=ta,n(76317);var tx=(0,a.forwardRef)(function(e,t){var n=p(e);return a.createElement(tw,(0,v.Z)({ref:t},n))}),tS=n(35518),tE=n(20395),tk=n(28561),tC=n(35364),t_=n(38622),tO=n(5845),tP=n(56756),tI=n(49110),tR=n(91504),tT=n(16276),tA=n(33028),tM=n(31172),tj=n(20130),tN=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],tL=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},tD={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return tL(e,t,r)})||n.some(function(t){return tL(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function tF(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,u=void 0===o?tD.formatCreateLabel:o,l=e.isValidNewOption,c=void 0===l?tD.isValidNewOption:l,d=e.getNewOptionData,h=void 0===d?tD.getNewOptionData:d,p=e.onCreateOption,v=e.options,m=void 0===v?[]:v,g=e.onChange,y=f(e,tN),b=y.getOptionValue,w=void 0===b?tr:b,x=y.getOptionLabel,E=void 0===x?tn:x,k=y.inputValue,C=y.isLoading,_=y.isMulti,O=y.value,P=y.name,I=(0,a.useMemo)(function(){return c(k,X(O),m,{getOptionValue:w,getOptionLabel:E})?h(k,u(k)):void 0},[u,h,E,w,k,c,m,O]),R=(0,a.useMemo)(function(){return(n||!C)&&I?"first"===i?[I].concat(S(m)):[].concat(S(m),[I]):m},[n,i,C,I,m]),T=(0,a.useCallback)(function(e,t){if("select-option"!==t.action)return g(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===I){if(p)p(k);else{var r,i=h(k,k);g((r=[].concat(S(X(O)),[i]),_?r:i),{action:"create-option",name:P,option:i})}return}g(e,t)},[h,k,_,P,I,p,g,O]);return(0,s.Z)((0,s.Z)({},y),{},{options:R,onChange:T})}var tB=(0,a.forwardRef)(function(e,t){var n=tF(p(e));return a.createElement(tw,(0,v.Z)({ref:t},n))}),tV=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function tU(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,o=e.loadOptions;e.options;var u=e.isLoading,l=e.onInputChange,d=e.filterOption,h=f(e,tV),p=h.inputValue,v=(0,a.useRef)(void 0),m=(0,a.useRef)(!1),g=c((0,a.useState)(Array.isArray(n)?n:void 0),2),y=g[0],b=g[1],w=c((0,a.useState)(void 0!==p?p:""),2),x=w[0],S=w[1],E=c((0,a.useState)(!0===n),2),C=E[0],_=E[1],O=c((0,a.useState)(void 0),2),P=O[0],I=O[1],R=c((0,a.useState)([]),2),T=R[0],A=R[1],M=c((0,a.useState)(!1),2),j=M[0],N=M[1],L=c((0,a.useState)({}),2),D=L[0],F=L[1],B=c((0,a.useState)(void 0),2),V=B[0],U=B[1],z=c((0,a.useState)(void 0),2),q=z[0],W=z[1];i!==q&&(F({}),W(i)),n!==V&&(b(Array.isArray(n)?n:void 0),U(n)),(0,a.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]);var $=(0,a.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,a.useEffect)(function(){!0===n&&$(x,function(e){m.current&&(b(e||[]),_(!!v.current))})},[]);var Z=(0,a.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,l);if(!n){v.current=void 0,S(""),I(""),A([]),_(!1),N(!1);return}if(i&&D[n])S(n),I(n),A(D[n]),_(!1),N(!1);else{var r=v.current={};S(n),_(!0),N(!P),$(n,function(e){m&&r===v.current&&(v.current=void 0,_(!1),I(n),A(e||[]),N(!1),F(e?(0,s.Z)((0,s.Z)({},D),{},(0,k.Z)({},n,e)):D))})}},[i,$,P,D,l]),G=j?[]:x&&P?T:y||[];return(0,s.Z)((0,s.Z)({},h),{},{options:G,isLoading:C||void 0!==u&&u,onInputChange:Z,filterOption:void 0===d?null:d})}var tz=(0,a.forwardRef)(function(e,t){var n=p(tU(e));return a.createElement(tw,(0,v.Z)({ref:t},n))}),tq=(0,a.forwardRef)(function(e,t){var n=tF(p(tU(e)));return a.createElement(tw,(0,v.Z)({ref:t},n))}),tW=e=>{let{className:t,clearValue:n,cx:r,getStyles:i,getClassNames:o,getValue:a,hasValue:s,isMulti:u,isRtl:l,options:c,selectOption:d,selectProps:f,setValue:h,theme:p,...v}=e;return{...v}},t$=e=>"string"==typeof e&&["sm","md","lg"].includes(e),tZ=e=>t$(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md",tG=e=>{let t=tZ((0,tS.F)().components.Input.defaultProps.size),n=null!=e?e:t;return(0,tE.S)("string"==typeof n?[n]:n,{fallback:"md"})||t},tH=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:a}}=e,s=tG(a),u={...(0,tC.m)("CloseButton",{size:s}),marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"},l=null!=o&&o.clearIndicator?o.clearIndicator(u,e):u,c={width:"1em",height:"1em"},d=null!=o&&o.crossIcon?o.crossIcon(c,e):c;return(0,tj.jsx)(tk.x,{role:"button",className:r({indicator:!0,"clear-indicator":!0},n),sx:l,"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:a,isFocused:s,menuIsOpen:u,selectProps:{chakraStyles:l,size:c,variant:d,focusBorderColor:f,errorBorderColor:h,isInvalid:p,isReadOnly:v}}=e,m=tG(c),{field:{height:g,h:y,...b}}=(0,tC.j)("Input",{size:m,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:g||y,...a?{pointerEvents:"none"}:{}},x=null!=l&&l.control?l.control(w,e):w;return(0,tj.jsx)(tk.x,{ref:i,className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":u},t),sx:x,...o,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!p||void 0,"data-disabled":!!a||void 0,"data-readonly":!!v||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,useBasicStyles:a,size:s,focusBorderColor:u,errorBorderColor:l,variant:c}}=e,d=tG(s),f=(0,tC.j)("Input",{size:d,variant:c,focusBorderColor:u,errorBorderColor:l}),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,...a&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}},v=null!=o&&o.dropdownIndicator?o.dropdownIndicator(p,e):p,m={height:"1em",width:"1em"},g=null!=o&&o.downChevron?o.downChevron(m,e):m;return(0,tj.jsx)(tk.x,{...i,className:r({indicator:!0,"dropdown-indicator":!0},n),sx:v,children:t||(0,tj.jsx)(tH,{sx:g})})},Group:e=>{let{children:t,className:n,cx:r,theme:i,getStyles:o,Heading:a,headingProps:s,label:u,selectProps:l,innerProps:c,getClassNames:d}=e,{chakraStyles:f}=l,h={},p=null!=f&&f.group?f.group(h,e):h;return(0,tj.jsxs)(tk.x,{...c,className:r({group:!0},n),sx:p,children:[(0,tj.jsx)(a,{...s,selectProps:l,cx:r,theme:i,getStyles:o,getClassNames:d,children:u}),(0,tj.jsx)(tk.x,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:i,hasStickyGroupHeaders:o}}=e,{data:a,...s}=tW(e),u=(0,tC.j)("Menu"),l=tG(i),c={...u.groupTitle,fontSize:{sm:"xs",md:"sm",lg:"md"}[l],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[l],margin:0,borderBottomWidth:o?"1px":0,position:o?"sticky":"static",top:-2,bg:u.list.bg,zIndex:1},d=null!=r&&r.groupHeading?r.groupHeading(c,e):c;return(0,tj.jsx)(tk.x,{...s,className:t({"group-heading":!0},n),sx:d})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r,useBasicStyles:i,variant:o}}=e,a={opacity:1,...i||"outline"!==o?{display:"none"}:{}},s=null!=r&&r.indicatorSeparator?r.indicatorSeparator(a,e):a;return(0,tj.jsx)(t_.i,{className:n({"indicator-separator":!0},t),sx:s,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},s=null!=o&&o.indicatorsContainer?o.indicatorsContainer(a,e):a;return(0,tj.jsx)(tk.x,{...i,className:r({indicators:!0},n),sx:s,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:i,isReadOnly:o}}=e,{innerRef:a,isDisabled:s,isHidden:u,inputClassName:l,...c}=tW(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:s?"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:u?0:1,width:"100%",...d},v=null!=i&&i.input?i.input(p,e):p;return(0,tj.jsx)(tk.x,{className:n({"input-container":!0},t),"data-value":r||"",sx:h,children:(0,tj.jsx)(tI.m.input,{className:n({input:!0},l),ref:a,sx:v,disabled:s,readOnly:!!o||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:i,size:o},color:a,emptyColor:s,speed:u,thickness:l,spinnerSize:c}=e,d=tG(o),f={marginRight:3},h=null!=i&&i.loadingIndicator?i.loadingIndicator(f,e):f;return(0,tj.jsx)(tP.$,{className:n({indicator:!0,"loading-indicator":!0},t),sx:h,...r,size:c||({sm:"xs",md:"sm",lg:"md"})[d],color:a,emptyColor:s,speed:u,thickness:l})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tG(a),u={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},l=null!=o&&o.loadingMessage?o.loadingMessage(u,e):u;return(0,tj.jsx)(tk.x,{...i,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),sx:l,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:i,innerRef:o,placement:a,selectProps:{chakraStyles:s}}=e,u={position:"absolute",[tY(a)]:"100%",marginY:"8px",width:"100%",zIndex:1},l=null!=s&&s.menu?s.menu(u,e):u;return(0,tj.jsx)(tR.v,{children:(0,tj.jsx)(tk.x,{...i,ref:o,className:n({menu:!0},t),sx:l,children:r})})},MenuList:e=>{var t;let{className:n,cx:r,innerRef:i,children:o,maxHeight:a,isMulti:s,innerProps:u,selectProps:{chakraStyles:l,size:c,variant:d,focusBorderColor:f,errorBorderColor:h}}=e,p=(0,tC.j)("Menu"),v=tG(c),m=(0,tC.j)("Input",{size:v,variant:d,focusBorderColor:f,errorBorderColor:h}).field,g={...p.list,minW:"100%",maxHeight:`${a}px`,overflowY:"auto","--input-border-radius":null==m?void 0:m["--input-border-radius"],borderRadius:(null==m?void 0:m.borderRadius)||(null==(t=p.list)?void 0:t.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"},y=null!=l&&l.menuList?l.menuList(g,e):g;return(0,tj.jsx)(tk.x,{...u,className:r({"menu-list":!0,"menu-list--is-multi":s},n),sx:y,ref:i,children:o})},MultiValue:e=>{let{children:t,className:n,components:r,cx:i,data:o,innerProps:a,isDisabled:s,isFocused:u,removeProps:l,selectProps:c,cropWithEllipsis:d}=e,{Container:f,Label:h,Remove:p}=r,{chakraStyles:v,colorScheme:m,tagVariant:g,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 E=(0,tC.j)("Tag",{size:b,colorScheme:w||m,variant:x||g||(S?"solid":"subtle")}),k={...E.container,display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"},C=null!=v&&v.multiValue?v.multiValue(k,e):k,_={...E.label,overflow:"hidden",textOverflow:d||void 0===d?"ellipsis":void 0,whiteSpace:"nowrap"},O=null!=v&&v.multiValueLabel?v.multiValueLabel(_,e):_,P={...E.closeButton,display:"flex",alignItems:"center",justifyContent:"center"},I=null!=v&&v.multiValueRemove?v.multiValueRemove(P,e):P;return(0,tj.jsxs)(f,{data:o,innerProps:{className:i({"multi-value":!0,"multi-value--is-disabled":s},n),...a},sx:C,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"}`,...l},sx:I,selectProps:c,isFocused:u})]})},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)(tk.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:a}}=e,s=tG(a),u={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},l=null!=o&&o.noOptionsMessage?o.noOptionsMessage(u,e):u;return(0,tj.jsx)(tk.x,{...i,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),sx:l,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:i,children:o,isFocused:a,isDisabled:s,isSelected:u,selectProps:{chakraStyles:l,size:c,isMulti:d,hideSelectedOptions:f,selectedOptionStyle:h,selectedOptionColorScheme:p}}=e,v=(0,tC.j)("Menu").item,m=tG(c),g=(0,tT.ff)(`${p}.500`,`${p}.300`),y=(0,tT.ff)("white","black"),b="color"===h&&u,w={...v,cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:m,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[m],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[m],...b?{bg:g,color:y,_active:{bg:g}}:{}},x=null!=l&&l.option?l.option(w,e):w;return(0,tj.jsxs)(tk.x,{...i,className:n({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":u},t),sx:x,ref:r,"data-focus":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":u,children:["check"===h&&(!d||!1===f)&&(0,tj.jsx)(tA.O,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:u?1:0,children:(0,tj.jsx)(tJ,{})}),o]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},s=null!=o&&o.placeholder?o.placeholder(a,e):a;return(0,tj.jsx)(tk.x,{...i,className:r({placeholder:!0},n),sx:s,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,isDisabled:o,isRtl:a,hasValue:s,selectProps:{chakraStyles:u}}=e,l={position:"relative",direction:a?"rtl":void 0,...o?{cursor:"not-allowed"}:{}},c=null!=u&&u.container?u.container(l,e):l;return(0,tj.jsx)(tk.x,{...i,className:r({"--is-disabled":o,"--is-rtl":a,"--has-value":s},n),sx:c,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:i,innerProps:o,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},u=null!=a&&a.singleValue?a.singleValue(s,e):s;return(0,tj.jsx)(tk.x,{className:r({"single-value":!0,"single-value--is-disabled":i},n),sx:u,...o,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:i,hasValue:o,innerProps:a,selectProps:{chakraStyles:s,size:u,variant:l,focusBorderColor:c,errorBorderColor:d,controlShouldRenderValue:f}}=e,h=tG(u),p={display:i&&o&&f?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:(0,tC.j)("Input",{size:h,variant:l,focusBorderColor:c,errorBorderColor:d}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},v=null!=s&&s.valueContainer?s.valueContainer(p,e):p;return(0,tj.jsx)(tk.x,{...a,className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o},n),sx:v,children:t})}},t3=({components:e={},theme:t,size:n,colorScheme:r="gray",isDisabled:i,isInvalid:o,isReadOnly:a,required:s,isRequired:u,inputId:l,tagVariant:c,selectedOptionStyle:d="color",selectedOptionColorScheme:f,selectedOptionColor:h,variant:p,focusBorderColor:v,errorBorderColor:m,chakraStyles:g={},onFocus:y,onBlur:b,menuIsOpen:w,...x})=>{var S;let{variant:E}=(0,tS.F)().components.Input.defaultProps,k=(0,tM.Y)({id:l,isDisabled:i,isInvalid:o,isRequired:u,isReadOnly:a,onFocus:y,onBlur:b}),C=null!=w?w:!k.readOnly&&void 0,_=d;["color","check"].includes(d)||(_="color");let O=f||h||"blue";return"string"!=typeof O&&(O="blue"),{components:{...t2,...e},colorScheme:r,size:n,tagVariant:c,selectedOptionStyle:_,selectedOptionColorScheme:O,variant:null!=p?p:E,chakraStyles:g,focusBorderColor:v,errorBorderColor:m,onFocus:k.onFocus,onBlur:k.onBlur,isDisabled:k.disabled,isInvalid:!!k["aria-invalid"],inputId:k.id,isReadOnly:k.readOnly,required:null!=s?s:k.required,menuIsOpen:C,...x,"aria-invalid":null!=(S=x["aria-invalid"])?S:k["aria-invalid"]}},t5=(0,a.forwardRef)((e,t)=>{let n=t3(e);return(0,tj.jsx)(tx,{ref:t,...n})});(0,a.forwardRef)((e,t)=>{let n=t3(e);return(0,tj.jsx)(tB,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=t3(e);return(0,tj.jsx)(tz,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=t3(e);return(0,tj.jsx)(tq,{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 eC},E:function(){return tE},F:function(){return $},G:function(){return tQ},H:function(){return ed},I:function(){return t$},J:function(){return t2},K:function(){return t1},L:function(){return ez},M:function(){return tW},N:function(){return ey},O:function(){return V},P:function(){return ea},Q:function(){return W},R:function(){return t_},S:function(){return eR},T:function(){return es},U:function(){return eE},V:function(){return ti},W:function(){return eT},X:function(){return ta},Y:function(){return td},Z:function(){return tv},_:function(){return eV},a:function(){return tC},a0:function(){return tk},a1:function(){return eW},a2:function(){return e$},a3:function(){return e7},a4:function(){return Y},a5:function(){return et},a6:function(){return e9},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)=>tA(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t,u=i[n];return er(u)&&s.isScriptable(n)&&(u=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let u=t(o,a||r);return s.delete(e),tT(e,u)&&(u=tj(i._scopes,i,e,u)),u}(n,u,t,r)),D(u)&&u.length&&(u=function(t,n,r,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:u}=r;if(void 0!==a.index&&i(t))return n[a.index%n.length];if(F(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let l of(n=[],r)){let r=tj(i,o,t,l);n.push(e(r,a,s&&s[t],u))}}return n}(n,u,t,s.isIndexable)),tT(n,u)&&(u=e(u,o,a&&a[n],s)),u})(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 tP},aA:function(){return t8},aB:function(){return eZ},aC:function(){return t7},aD:function(){return tl},aE:function(){return e_},aF:function(){return j},aG:function(){return ex},aH:function(){return eg},aI:function(){return ew},aJ:function(){return em},aK:function(){return ek},aL:function(){return e8},aM:function(){return ep},aN:function(){return to},aO:function(){return eL},aP:function(){return eM},aa:function(){return tI},ab:function(){return J},ac:function(){return N},ad:function(){return eq},ae:function(){return t0},af:function(){return ts},ag:function(){return ei},ah:function(){return Z},ai:function(){return eo},aj:function(){return eA},ak:function(){return tw},al:function(){return tq},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 tu},au:function(){return tm},av:function(){return tx},aw:function(){return tS},ax:function(){return nt},ay:function(){return eP},az:function(){return t6},b:function(){return D},c:function(){return e0},d:function(){return tr},e:function(){return eX},f:function(){return ee},g:function(){return B},h:function(){return en},i:function(){return F},j:function(){return tO},k:function(){return L},l:function(){return eF},m:function(){return z},n:function(){return q},o:function(){return e4},p:function(){return eI},q:function(){return eG},r:function(){return eU},s:function(){return ev},t:function(){return eS},u:function(){return eB},v:function(){return U},w:function(){return eH},x:function(){return eb},y:function(){return tF},z:function(){return tJ}});let a=(e,t,n)=>Math.max(Math.min(e,n),t);function s(e){return a(o(2.55*e),0,255)}function u(e){return a(o(255*e),0,255)}function l(e){return a(o(e/2.55)/100,0,1)}function c(e){return a(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],v=e=>(240&e)>>4==(15&e),m=e=>v(e.r)&&v(e.g)&&v(e.b)&&v(e.a),g=(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,a=e.b/255,s=Math.max(i,o,a),u=Math.min(i,o,a),l=(s+u)/2;return s!==u&&(r=s-u,n=l>.5?r/(2-s-u):r/(s+u),t=60*(t=i===s?(o-a)/r+(o<a?6:0):o===s?(a-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,l]}function E(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(u)}function k(e){return(e%360+360)%360}let C={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"},_={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*\)$/,P=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 R(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=E(b,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function T(e,t){return e?Object.assign(t||{},e):e}function A(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=u(e[3]))):(t=T(e,{r:0,g:0,b:0,a:1})).a=u(t.a),t}class M{constructor(e){let t;if(e instanceof M)return e;let n=typeof e;if("object"===n)t=A(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={},a=Object.keys(_),s=Object.keys(C);for(e=0;e<a.length;e++){for(t=0,r=i=a[e];t<s.length;t++)n=s[t],i=i.replace(n,C[n]);n=parseInt(_[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]?s(e):a(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?s(t):a(t,0,255)),g:n=255&(i[4]?s(n):a(n,0,255)),b:r=255&(i[6]?s(r):a(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]?s(+n[5]):u(+n[5]));let i=k(+n[2]),o=+n[3]/100,a=+n[4]/100;return{r:(t="hwb"===n[1]?E(x,i,o,a):"hsv"===n[1]?E(w,i,o,a):E(b,i,o,a))[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=T(this._rgb);return e&&(e.a=l(e.a)),e}set rgb(e){this._rgb=A(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${l(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=m(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+g(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}%, ${l(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,a=2*o-1,s=r.a-i.a,u=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-u,r.r=255&u*r.r+n*i.r+.5,r.g=255&u*r.g+n*i.g+.5,r.b=255&u*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(l(e.r)),i=I(l(e.g)),o=I(l(e.b));return{r:u(P(r+n*(I(l(t.r))-r))),g:u(P(i+n*(I(l(t.g))-i))),b:u(P(o+n*(I(l(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=u(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 R(this._rgb,2,e),this}darken(e){return R(this._rgb,2,-e),this}saturate(e){return R(this._rgb,1,e),this}desaturate(e){return R(this._rgb,1,-e),this}rotate(e){var t,n;return(n=S(t=this._rgb))[0]=k(n[0]+e),n=E(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 L(e){return null==e}function D(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 F(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function B(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function V(e,t){return B(e)?e:t}function U(e,t){return void 0===e?t:e}let z=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,q=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function W(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function $(e,t,n,r){let i,o,a;if(D(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(F(e))for(i=0,o=(a=Object.keys(e)).length;i<o;i++)t.call(n,e[a[i]],a[i])}function Z(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(D(e))return e.map(G);if(F(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 H(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function K(e,t,n,r){if(!H(e))return;let i=t[e],o=n[e];F(i)&&F(o)?Y(i,o,r):t[e]=G(o)}function Y(e,t,n){let r;let i=D(t)?t:[t],o=i.length;if(!F(e))return e;let a=(n=n||{}).merger||K;for(let t=0;t<o;++t){if(!F(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)a(o[t],e,r,n)}return e}function J(e,t){return Y(e,t,{merger:X})}function X(e,t,n){if(!H(e))return;let r=t[e],i=n[e];F(r)&&F(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 ea=Math.PI,es=2*ea,eu=es+ea,el=Number.POSITIVE_INFINITY,ec=ea/180,ed=ea/2,ef=ea/4,eh=2*ea/3,ep=Math.log10,ev=Math.sign;function em(e,t,n){return Math.abs(e-t)<n}function eg(e){let t=Math.round(e),n=Math.pow(10,Math.floor(ep(e=em(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 ea/180*e}function eE(e){return 180/ea*e}function ek(e){if(!B(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function eC(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n);return i<-.5*ea&&(i+=es),{angle:i,distance:Math.sqrt(n*n+r*r)}}function e_(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+eu)%es-ea}function eP(e){return(e%es+es)%es}function eI(e,t,n,r){let i=eP(e),o=eP(t),a=eP(n),s=eP(o-i),u=eP(a-i),l=eP(i-o),c=eP(i-a);return i===o||i===a||r&&o===a||s>u&&l<c}function eR(e,t,n){return Math.max(t,Math.min(n,e))}function eT(e){return eR(e,-32768,32767)}function eA(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 eL(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 eD=["push","pop","shift","splice","unshift"];function eF(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eD.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 eB(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||(eD.forEach(t=>{delete e[t]}),delete e._chartjs)}function eV(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eU="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function ez(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,eU.call(window,()=>{r=!1,e.apply(t,n)}))}}function eq(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eW=e=>"start"===e?"left":"end"===e?"right":"center",e$=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eZ=(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:a,vScale:s,_parsed:u}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=a.axis,{min:d,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(i=Math.min(ej(u,c,d).lo,n?r:ej(t,c,a.getPixelForValue(d)).lo),l){let e=u.slice(0,i+1).reverse().findIndex(e=>!L(e[s.axis]));i-=Math.max(0,e)}i=eR(i,0,r-1)}if(p){let e=Math.max(ej(u,a.axis,f,!0).hi+1,n?0:ej(t,c,a.getPixelForValue(f),!0).hi+1);if(l){let t=u.slice(e-1).findIndex(e=>!L(e[s.axis]));e+=Math.max(0,t)}o=eR(e,i,r)-i}else o=r-i}return{start:i,count:o}}function eH(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)*es/n)),eJ=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*es/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(ea*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=>D(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 a=ep(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),u={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(u,this.options.ticks.format),e4(e,i,u)},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 e8={formatters:e6};let e7=Object.create(null),e9=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(e9,e,t)}override(e,t){return tt(e7,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=o[r];return F(e)?Object.assign({},t,e):U(e,t)},set(e){this[a]=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:e8.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,a,s,u;let l=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(l=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==(s=n[i])||D(s)){if(D(s))for(o=0,a=s.length;o<a;o++)null==(u=s[o])||D(u)||(d=ti(e,l,c,d,u))}else d=ti(e,l,c,d,s);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete l[c[i]];c.splice(0,h)}return d}function ta(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 ts(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function tu(e,t,n,r){tl(e,t,n,r,null)}function tl(e,t,n,r,i){let o,a,s,u,l,c,d,f;let h=t.pointStyle,p=t.rotation,v=t.radius,m=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(v)&&!(v<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,v,0,0,es):e.arc(n,r,v,0,es),e.closePath();break;case"triangle":c=i?i/2:v,e.moveTo(n+Math.sin(m)*c,r-Math.cos(m)*v),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*v),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*v),e.closePath();break;case"rectRounded":l=.516*v,a=Math.cos(m+ef)*(u=v-l),d=Math.cos(m+ef)*(i?i/2-l:u),s=Math.sin(m+ef)*u,f=Math.sin(m+ef)*(i?i/2-l:u),e.arc(n-d,r-s,l,m-ea,m-ed),e.arc(n+f,r-a,l,m-ed,m),e.arc(n+d,r+s,l,m,m+ed),e.arc(n-f,r+a,l,m+ed,m+ea),e.closePath();break;case"rect":if(!p){u=Math.SQRT1_2*v,c=i?i/2:u,e.rect(n-c,r-u,2*c,2*u);break}m+=ef;case"rectRot":d=Math.cos(m)*(i?i/2:v),a=Math.cos(m)*v,s=Math.sin(m)*v,f=Math.sin(m)*(i?i/2:v),e.moveTo(n-d,r-s),e.lineTo(n+f,r-a),e.lineTo(n+d,r+s),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":m+=ef;case"cross":d=Math.cos(m)*(i?i/2:v),a=Math.cos(m)*v,s=Math.sin(m)*v,f=Math.sin(m)*(i?i/2:v),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(m)*(i?i/2:v),a=Math.cos(m)*v,s=Math.sin(m)*v,f=Math.sin(m)*(i?i/2:v),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),m+=ef,d=Math.cos(m)*(i?i/2:v),a=Math.cos(m)*v,s=Math.sin(m)*v,f=Math.sin(m)*(i?i/2:v),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(m)*v,s=Math.sin(m)*v,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(m)*(i?i/2:v),r+Math.sin(m)*v);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 tv(e,t,n,r,i,o={}){let a,s;let u=D(t)?t:[t],l=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),L(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),a=0;a<u.length;++a)s=u[a],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),l&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),L(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(s,n,r,o.maxWidth)),e.fillText(s,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,u=n-o.actualBoundingBoxAscent,l=n+o.actualBoundingBoxDescent,c=i.strikethrough?(u+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}(e,n,r,s,o),r+=Number(i.lineHeight);e.restore()}function tm(e,t){let{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*ea,ea,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,ea,ed,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,ed,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-ed,!0),e.lineTo(n+a.topLeft,r)}let tg=/^(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=F(t),i=r?Object.keys(t):t,o=F(e)?r?n=>U(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 tE(e){let t=tx(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tk(e,t){e=e||{},t=t||tr.font;let n=U(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=U(e.style,t.style);r&&!(""+r).match(ty)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:U(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tg);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}(U(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:U(e.weight,t.weight),string:""};return i.string=!i||L(i.size)||L(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tC(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&D(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function t_(e,t,n){let{min:r,max:i}=e,o=q(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function tO(e,t){return Object.assign(Object.create(e),t)}function tP(e,t=[""],n,r,i=()=>e[0]){let o=n||e;return void 0===r&&(r=tL("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tP([n,...e],t,o,r)},{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tA(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tL(tR(o,e),n)))return tT(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)=>tD(e).includes(t),ownKeys:e=>tD(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 tR=(e,t)=>e?e+et(t):t,tT=(e,t)=>F(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tA(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,a=er(i=t._fallback)?i(n,r):i,s=[...e,...o],u=new Set;u.add(r);let l=tN(u,s,n,a||n,r);return null!==l&&(void 0===a||a===n||null!==(l=tN(u,s,a,l,r)))&&tP(Array.from(u),[""],o,a,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return D(i)&&F(n)?n:i||{}})(t,n,r))}function tN(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let a of t){let t=tM(n,a);if(t){var o;e.add(t);let a=er(o=t._fallback)?o(n,i):o;if(void 0!==a&&a!==n&&a!==r)return a}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tL(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tD(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 tF(e,t,n,r){let i,o,a;let{iScale:s}=e,{key:u="r"}=this._parsing,l=Array(r);for(i=0;i<r;++i)a=t[o=i+n],l[i]={r:s.parse(ee(a,u),o)};return l}let tB=Number.EPSILON||1e-14,tV=(e,t)=>t<e.length&&!e[t].skip&&e[t],tU=e=>"x"===e?"y":"x";function tz(e,t,n){return Math.max(Math.min(e,n),t)}function tq(e,t,n,r,i){let o,a,s,u;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=tU(t),a=e.length,s=Array(a).fill(0),u=Array(a),l=tV(e,0);for(n=0;n<a;++n)if(r=i,i=l,l=tV(e,n+1),i){if(l){let e=l[t]-i[t];s[n]=0!==e?(l[o]-i[o])/e:0}u[n]=r?l?ev(s[n-1])!==ev(s[n])?0:(s[n-1]+s[n])/2:s[n-1]:s[n]}!function(e,t,n){let r,i,o,a,s;let u=e.length,l=tV(e,0);for(let c=0;c<u-1;++c)if(s=l,l=tV(e,c+1),s&&l){if(em(t[c],0,tB)){n[c]=n[c+1]=0;continue}(a=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(a),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,s,u),function(e,t,n="x"){let r,i,o;let a=tU(n),s=e.length,u=tV(e,0);for(let l=0;l<s;++l){if(i=o,o=u,u=tV(e,l+1),!o)continue;let s=o[n],c=o[a];i&&(r=(s-i[n])/3,o[`cp1${n}`]=s-r,o[`cp1${a}`]=c-r*t[l]),u&&(r=(u[n]-s)/3,o[`cp2${n}`]=s+r,o[`cp2${a}`]=c+r*t[l])}}(e,u,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)u=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,a=e_(t,i),s=e_(o,t),u=a/(a+s),l=s/(a+s);u=isNaN(u)?0:u,l=isNaN(l)?0:l;let c=r*u,d=r*l;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,s=e[o],e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=u.previous.x,s.cp1y=u.previous.y,s.cp2x=u.next.x,s.cp2y=u.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,i,o,a;let s=tc(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&tc(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=tz(i.cp1x,t.left,t.right),i.cp1y=tz(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=tz(i.cp2x,t.left,t.right),i.cp2y=tz(i.cp2y,t.top,t.bottom)))}(e,n)}function tW(){return"undefined"!=typeof window&&"undefined"!=typeof document}function t$(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tZ(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),tH=["top","right","bottom","left"];function tK(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tH[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,a=tK(i,"padding"),s=tK(i,"border","width"),{x:u,y:l,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:a,offsetY:s}=o,u=!1;if(tY(a,s,e.target))n=a,r=s;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,u=!0}return{x:n,y:r,box:u}}(e,n),d=a.left+(c&&s.left),f=a.top+(c&&s.top),{width:h,height:p}=t;return o&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((u-d)/h*n.width/r),y:Math.round((l-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"),a=tZ(i.maxWidth,e,"clientWidth")||el,s=tZ(i.maxHeight,e,"clientHeight")||el,u=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&t$(e);if(o){let e=o.getBoundingClientRect(),a=tG(o),s=tK(a,"border","width"),u=tK(a,"padding");t=e.width-u.width-s.width,n=e.height-u.height-s.height,r=tZ(a.maxWidth,o,"clientWidth"),i=tZ(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||el,maxHeight:i||el}}(e,t,n),{width:l,height:c}=u;if("content-box"===i.boxSizing){let e=tK(i,"border","width"),t=tK(i,"padding");l-=t.width+e.width,c-=t.height+e.height}return l=Math.max(0,l-o.width),c=Math.max(0,r?l/r:c-o.height),l=tX(Math.min(l,a,u.maxWidth)),c=tX(Math.min(c,s,u.maxHeight)),l&&!c&&(c=tX(l/2)),(void 0!==t||void 0!==n)&&r&&u.height&&c>u.height&&(l=tX(Math.floor((c=u.height)*r))),{width:l,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 a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.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}};tW()&&(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},a=t3(e,i,n),s=t3(i,o,n),u=t3(o,t,n),l=t3(a,s,n),c=t3(s,u,n);return t3(l,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 t8(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 t7(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t9(e){return"angle"===e?{between:eI,compare:eO,normalize:eP}:{between:eA,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:a,start:s,end:u}=n,l=t.length,{compare:c,between:d,normalize:f}=t9(a),{start:h,end:p,loop:v,style:m}=function(e,t,n){let r;let{property:i,start:o,end:a}=n,{between:s,normalize:u}=t9(i),l=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=l,d+=l,r=0;r<l&&s(u(t[c%l][i]),o,a);++r)c--,d--;c%=l,d%=l}return d<c&&(d+=l),{start:c,end:d,loop:f,style:e.style}}(e,t,n),g=[],y=!1,b=null,w=()=>d(s,o,r)&&0!==c(s,o),x=()=>0===c(u,r)||d(u,o,r),S=()=>y||w(),E=()=>!y||x();for(let e=h,n=h;e<=p;++e)(i=t[e%l]).skip||(r=f(i[a]))===o||(y=d(r,s,u),null===b&&S()&&(b=0===c(r,s)?e:n),null!==b&&E()&&(g.push(ne({start:b,end:e,loop:v,count:l,style:m})),b=null),n=e,o=r);return null!==b&&g.push(ne({start:b,end:p,loop:v,count:l,style:m})),g}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:a,end:s}=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:a,end:s,loop:o}],n,t);let u=s<a?s+i:s,l=!!e._fullLoop&&0===a&&s===i-1;return ni(e,function(e,t,n,r){let i;let o=e.length,a=[],s=t,u=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?u.skip||(r=!1,a.push({start:t%o,end:(i-1)%o,loop:r}),t=s=n.stop?i:null):(s=i,u.skip&&(t=i)),u=n}return null!==s&&a.push({start:t%o,end:s%o,loop:r}),a}(n,a,u,l),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:a,options:{spanGaps:s}}=e,u=n.length,l=[],c=o,d=t[0].start,f=d;function h(e,t,r,i){let o=s?-1:1;if(e!==t){for(e+=u;n[e%u].skip;)e-=o;for(;n[t%u].skip;)t+=o;e%u!=t%u&&(l.push({start:e%u,end:t%u,loop:r,style:i}),c=i,d=t%u)}}for(let e of t){let t;let o=n[(d=s?d:e.start)%u];for(f=d+1;f<=e.end;f++){let s=n[f%u];(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:s,p0DataIndex:(f-1)%u,p1DataIndex:f%u,datasetIndex:a}))),c)&&h(d,f-1,e.loop,c),o=s,c=t}d<f-1&&h(d,f-1,e.loop,c)}return l}(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}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).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(;++a<s;)if(n=(e=i[a]).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),a=n(46834),s=n(49729),u=e=>()=>e;function l(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:u,dy:l,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:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,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,v=c,m=d,g=f,y=h,b={},w=(0,r.Z)("start","drag","end"),x=0,S=0;function E(e){e.on("mousedown.drag",k).filter(y).on("touchstart.drag",O).on("touchmove.drag",P,s.Q7).on("touchend.drag touchcancel.drag",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function k(r,o){if(!p&&v.call(this,r,o)){var u=R(this,m.call(this,r,o),r,o,"mouse");u&&((0,i.Z)(r.view).on("mousemove.drag",C,s.Dd).on("mouseup.drag",_,s.Dd),(0,a.Z)(r.view),(0,s.rG)(r),n=!1,e=r.clientX,t=r.clientY,u("start",r))}}function C(r){if((0,s.ZP)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>S}b.mouse("drag",r)}function _(e){(0,i.Z)(e.view).on("mousemove.drag mouseup.drag",null),(0,a.D)(e.view,n),(0,s.ZP)(e),b.mouse("end",e)}function O(e,t){if(v.call(this,e,t)){var n,r,i=e.changedTouches,o=m.call(this,e,t),a=i.length;for(n=0;n<a;++n)(r=R(this,o,e,t,i[n].identifier,i[n]))&&((0,s.rG)(e),r("start",e,i[n]))}}function P(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=b[r[t].identifier])&&((0,s.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,s.rG)(e),n("end",e,r[t]))}function R(e,t,n,r,i,a){var s,u,c,d=w.copy(),f=(0,o.Z)(a||n,t);if(null!=(c=g.call(e,new l("beforestart",{sourceEvent:n,target:E,identifier:i,active:x,x:f[0],y:f[1],dx:0,dy:0,dispatch:d}),r)))return s=c.x-f[0]||0,u=c.y-f[1]||0,function n(a,h,p){var v,m=f;switch(a){case"start":b[i]=n,v=x++;break;case"end":delete b[i],--x;case"drag":f=(0,o.Z)(p||h,t),v=x}d.call(a,e,new l(a,{sourceEvent:h,subject:c,target:E,identifier:i,active:v,x:f[0]+s,y:f[1]+u,dx:f[0]-m[0],dy:f[1]-m[1],dispatch:d}),r)}}return E.filter=function(e){return arguments.length?(v="function"==typeof e?e:u(!!e),E):v},E.container=function(e){return arguments.length?(m="function"==typeof e?e:u(e),E):m},E.subject=function(e){return arguments.length?(g="function"==typeof e?e:u(e),E):g},E.touchable=function(e){return arguments.length?(y="function"==typeof e?e:u(!!e),E):y},E.on=function(){var e=w.on.apply(w,arguments);return e===w?E:e},E.clickDistance=function(e){return arguments.length?(S=(e=+e)*e,E):Math.sqrt(S)},E}l.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 a},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 a(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 a},rG:function(){return o}});let r={passive:!1},i={capture:!0,passive:!1};function o(e){e.stopImmediatePropagation()}function a(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 F},ZP:function(){return V},Jz:function(){return D}});var r=n(3527),i=n(23121),o=n(31581),a=Array.prototype.find;function s(){return this.firstElementChild}var u=Array.prototype.filter;function l(){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 a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new d(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function h(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,h=o.length,p=Array(f);for(s=0;s<f;++s)(u=t[s])&&(p[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<h;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new d(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(p[s])===u&&(i[s]=u)}function p(e){return e.__data__}function v(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 m=n(778),g=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 E(){this.textContent=""}function k(){this.innerHTML=""}function C(){this.nextSibling&&this.parentNode.appendChild(this)}function _(){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 P(e){var t=(0,m.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 R(){var e=this.parentNode;e&&e.removeChild(this)}function T(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function A(){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 a=0,s=i.length;a<s;++a)if((r=i[a]).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 L(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 D=[null];function F(e,t){this._groups=e,this._parents=t}function B(){return new F([[document.documentElement]],D)}F.prototype=B.prototype={constructor:F,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 a,s,u=t[o],l=u.length,c=i[o]=Array(l),d=0;d<l;++d)(a=u[d])&&(s=e.call(a,a.__data__,d,u))&&("__data__"in a&&(s.__data__=a.__data__),c[d]=s);return new F(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=[],a=[],s=0;s<r;++s)for(var u,l=n[s],c=l.length,d=0;d<c;++d)(u=l[d])&&(o.push(e.call(u,u.__data__,d,l)),a.push(u));return new F(o,a)},selectChild:function(e){var t;return this.select(null==e?s:(t="function"==typeof e?e:(0,o.P)(e),function(){return a.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?l:(t="function"==typeof e?e:(0,o.P)(e),function(){return u.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 a,s=t[i],u=s.length,l=r[i]=[],c=0;c<u;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new F(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,a=Array(o),s=Array(o),u=Array(o),l=0;l<o;++l){var c=r[l],d=i[l],v=d.length,m="object"==typeof(w=e.call(c,c&&c.__data__,l,r))&&"length"in w?w:Array.from(w),g=m.length,y=s[l]=Array(g),b=a[l]=Array(g);n(c,d,y,b,u[l]=Array(v),m,t);for(var w,x,S,E,k=0,C=0;k<g;++k)if(S=y[k]){for(k>=C&&(C=k+1);!(E=b[C])&&++C<g;);S._next=E||null}}return(a=new F(a,r))._enter=s,a._exit=u,a},enter:function(){return new F(this._enter||this._groups.map(c),this._parents)},exit:function(){return new F(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,a=Math.min(i,o),s=Array(i),u=0;u<a;++u)for(var l,c=n[u],d=r[u],f=c.length,h=s[u]=Array(f),p=0;p<f;++p)(l=c[p]||d[p])&&(h[p]=l);for(;u<i;++u)s[u]=n[u];return new F(s,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,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=v);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new F(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 a=r[i];if(a)return a}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],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=(0,m.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:g.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?E:("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?k:("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(C)},lower:function(){return this.each(_)},append:function(e){var t="function"==typeof e?e:P(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:P(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(R)},clone:function(e){return this.select(e?A:T)},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}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value}return}for(r=0,s=t?j:M;r<a;++r)this.each(s(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return L(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return L(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,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var V=B},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 eW}});var r,i=n(30964),o=n(46834);function a(e){return((e=Math.exp(e))+1/e)/2}var s,u,l=function e(t,n,r){function i(e,i){var o,s,u=e[0],l=e[1],c=e[2],d=i[0],f=i[1],h=i[2],p=d-u,v=f-l,m=p*p+v*v;if(m<1e-12)s=Math.log(h/c)/t,o=function(e){return[u+e*p,l+e*v,c*Math.exp(t*e*s)]};else{var g=Math.sqrt(m),y=(h*h-c*c+r*m)/(2*c*n*g),b=(h*h-c*c-r*m)/(2*h*n*g),w=Math.log(Math.sqrt(y*y+1)-y);s=(Math.log(Math.sqrt(b*b+1)-b)-w)/t,o=function(e){var r,i,o=e*s,d=a(w),f=c/(n*g)*(((r=Math.exp(2*(r=t*o+w)))-1)/(r+1)*d-((i=Math.exp(i=w))-1/i)/2);return[u+f*p,l+f*v,c*d/a(t*o+w)]}}return o.duration=1e3*s*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,v=0,m=0,g=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 g||(w(S),g=b.now()+y)}function S(){g=0}function E(){this._call=this._time=this._next=null}function k(e,t,n){var r=new E;return r.restart(e,t,n),r}function C(){g=(m=b.now())+y,h=p=0;try{!function(){x(),++h;for(var e,t=s;t;)(e=g-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h}()}finally{h=0,function(){for(var e,t,n=s,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:s=t);u=e,O(r)}(),g=0}}function _(){var e=b.now(),t=e-m;t>1e3&&(y-=t,m=e)}function O(e){!h&&(p&&(p=clearTimeout(p)),e-g>24?(e<1/0&&(p=setTimeout(C,e-b.now()-y)),v&&(v=clearInterval(v))):(v||(m=b.now(),v=setInterval(_,1e3)),h=1,w(C)))}function P(e,t,n){var r=new E;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}E.prototype=k.prototype={constructor:E,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||u===this||(u?u._next=this:s=this,u=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"),R=[];function T(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(u){var l,c,d,f;if(1!==n.state)return s();for(l in i)if((f=i[l]).name===n.name){if(3===f.state)return P(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[l])}if(P(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(l=0,n.state=3,r=Array(d=n.tween.length),c=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=k(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:R,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function A(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,a=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){a=!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]}a&&delete e.__transition}}function L(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var D=180/Math.PI,F={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function B(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*D,skewX:Math.atan(u)*D,scaleX:a,scaleY:s}}function V(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s,u,l,c,d=[],f=[];return o=e(o),a=e(a),!function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:L(e,i)},{i:u-2,x:L(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,d,f),(s=o.rotate)!==(u=a.rotate)?(s-u>180?u+=360:u-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:L(s,u)})):u&&d.push(i(d)+"rotate("+u+r),(l=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:L(l,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:L(e,n)},{i:s-2,x:L(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=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 U=V(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?F:B(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),z=V(function(e){return null==e?F:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",e),e=r.transform.baseVal.consolidate())?B((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):F},", ",")",")"),q=n(778);function W(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 $(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Z(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function G(){}var H="\\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\\(${H},${H},${H}\\)$`),Q=RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),ee=RegExp(`^rgba\\(${H},${H},${H},${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 ea(){return this.rgb().formatRgb()}function es(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=J.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?eu(t):3===n?new ed(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?el(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?el(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))?el(t[1],t[2],t[3],t[4]):(t=et.exec(e))?el(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=en.exec(e))?eg(t[1],t[2]/100,t[3]/100,1):(t=er.exec(e))?eg(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?eu(ei[e]):"transparent"===e?new ed(NaN,NaN,NaN,0):null}function eu(e){return new ed(e>>16&255,e>>8&255,255&e,1)}function el(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=es(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`#${em(this.r)}${em(this.g)}${em(this.b)}`}function eh(){let e=ep(this.opacity);return`${1===e?"rgb(":"rgba("}${ev(this.r)}, ${ev(this.g)}, ${ev(this.b)}${1===e?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ev(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function em(e){return((e=ev(e))<16?"0":"")+e.toString(16)}function eg(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=es(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),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new eb(a,s,u,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 eE(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}$(G,es,{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:ea,toString:ea}),$(ed,ec,Z(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(ev(this.r),ev(this.g),ev(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`#${em(this.r)}${em(this.g)}${em(this.b)}${em((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eh,toString:eh})),$(eb,function(e,t,n,r){return 1==arguments.length?ey(e):new eb(e,t,n,null==r?1:r)},Z(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 ek=e=>()=>e;function eC(e,t){var n=t-e;return n?function(t){return e+t*n}:ek(isNaN(e)?t:e)}var e_=function e(t){var n,r=1==(n=+(n=t))?eC: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)}):ek(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),a=eC(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function eO(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=ec(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(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],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return eE((n-r/t)*t,a,i,o,s)}}),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],a=e[(r+1)%t],s=e[(r+2)%t];return eE((n-r/t)*t,i,o,a,s)}});var eP=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eI=RegExp(eP.source,"g");function eR(e,t){var n;return("number"==typeof t?L:t instanceof es?e_:(n=es(t))?(t=n,e_):function(e,t){var n,r,i,o,a,s=eP.lastIndex=eI.lastIndex=0,u=-1,l=[],c=[];for(e+="",t+="";(i=eP.exec(e))&&(o=eI.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,c.push({i:u,x:L(i,o)})),s=eI.lastIndex;return s<t.length&&(a=t.slice(s),l[u]?l[u]+=a:l[++u]=a),l.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)l[(n=c[r]).i]=n.x(e);return l.join("")})})(e,t)}var eT=n(31581),eA=n(3527),eM=n(23121),ej=f.ZP.prototype.constructor,eN=n(17305);function eL(e){return function(){this.style.removeProperty(e)}}var eD=0;function eF(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var eB=f.ZP.prototype;eF.prototype=(function(e){return(0,f.ZP)().transition(e)}).prototype={constructor:eF,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eA.Z)(e));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,d=o[a]=Array(c),f=0;f<c;++f)(s=l[f])&&(u=e.call(s,s.__data__,f,l))&&("__data__"in s&&(u.__data__=s.__data__),d[f]=u,T(d[f],t,n,f,d,j(s,n)));return new eF(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=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,d=0;d<c;++d)if(u=l[d]){for(var f,h=e.call(u,u.__data__,d,l),p=j(u,n),v=0,m=h.length;v<m;++v)(f=h[v])&&T(f,t,n,v,h,p);o.push(h),a.push(u)}return new eF(o,a,t,n)},selectChild:eB.selectChild,selectChildren:eB.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,eT.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new eF(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),a=Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],d=l.length,f=a[s]=Array(d),h=0;h<d;++h)(u=l[h]||c[h])&&(f[h]=u);for(;s<r;++s)a[s]=t[s];return new eF(a,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=++eD,r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=j(a,t);T(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eF(r,this._parents,e,n)},call:eB.call,nodes:eB.nodes,node:eB.node,size:eB.size,empty:eB.empty,each:eB.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})?A:M,function(){var a=i(this,o),s=a.on;s!==n&&(r=(n=s).copy()).on(e,t),a.on=r}))},attr:function(e,t){var n=(0,q.Z)(e),r="transform"===n?z:eR;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,s,u=n(this);return null==u?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u))}}:function(e,t,n){var r,i,o;return function(){var a,s,u=n(this);return null==u?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u))}})(n,r,W(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 a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,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,q.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,a,s,u,l,c,d,f,h,p,v,m,g,y,b,w,x,S,E,k="transform"==(e+="")?U:eR;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?a:a=k(i=e,o=t)})).on("end.style."+e,eL(e)):"function"==typeof t?this.styleTween(e,(s=e,u=W(this,"style."+e,t),function(){var e=(0,eN.S)(this,s),t=u(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=(0,eN.S)(this,s)),e===n?null:e===l&&n===c?d:(c=n,d=k(l=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]?g||(g=eL(h)):void 0;(t!==p||m!==n)&&(v=(p=t).copy()).on(b,m=n),e.on=v})):this.styleTween(e,(w=e,E=t+"",function(){var e=(0,eN.S)(this,w);return e===E?null:e===x?S:S=k(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=W(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,a=i.length;o<a;++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 a=0,s=r.length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,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),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}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(){A(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){A(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,a){var s={value:a},u={value:function(){0==--i&&o()}};n.each(function(){var n=M(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t}),0===i&&o()})},[Symbol.iterator]:eB[Symbol.iterator]};var eV={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 eF?(t=e._id,e=e._name):(t=++eD,(n=eV).time=x(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&T(a,e,t,l,s,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}(a,t));return new eF(r,this._parents,e,t)};var eU=e=>()=>e;function ez(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 eq(e,t,n){this.k=e,this.x=t,this.y=n}eq.prototype={constructor:eq,scale:function(e){return 1===e?this:new eq(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new eq(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 eW=new eq(1,0,0);function e$(e){e.stopImmediatePropagation()}function eZ(e){e.preventDefault(),e.stopImmediatePropagation()}function eG(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function eH(){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||eW}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],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function eQ(){var e,t,n,r=eG,a=eH,s=eX,u=eY,f=eJ,h=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],v=250,m=l,g=(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",P).on("dblclick.zoom",I).filter(f).on("touchstart.zoom",R).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",A).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 eq(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 eq(e.k,r,i)}function E(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function k(e,t,n,r){e.on("start.zoom",function(){C(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=C(this,e).event(r),o=a.apply(this,e),s=null==n?E(o):"function"==typeof n?n.apply(this,e):n,u=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),l=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=m(l.invert(s).concat(u/l.k),c.invert(s).concat(u/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=u/t[2];e=new eq(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}})}function C(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function O(e,...t){if(r.apply(this,arguments)){var n=C(this,t).event(e),i=this.__zoom,o=Math.max(h[0],Math.min(h[1],i.k*Math.pow(2,u.apply(this,arguments)))),a=(0,d.Z)(e);if(n.wheel)(n.mouse[0][0]!==a[0]||n.mouse[0][1]!==a[1])&&(n.mouse[1]=i.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[a,i.invert(a)],N(this),n.start()}eZ(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",s(S(x(i,o),n.mouse[0],n.mouse[1]),n.extent,p))}}function P(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,a=C(this,t,!0).event(e),u=(0,c.Z)(e.view).on("mousemove.zoom",function(e){if(eZ(e),!a.moved){var t=e.clientX-f,n=e.clientY-h;a.moved=t*t+n*n>y}a.event(e).zoom("mouse",s(S(a.that.__zoom,a.mouse[0]=(0,d.Z)(e,i),a.mouse[1]),a.extent,p))},!0).on("mouseup.zoom",function(e){u.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(e.view,a.moved),eZ(e),a.event(e).end()},!0),l=(0,d.Z)(e,i),f=e.clientX,h=e.clientY;(0,o.Z)(e.view),e$(e),a.mouse=[l,this.__zoom.invert(l)],N(this),a.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),u=n.k*(e.shiftKey?.5:2),l=s(S(x(n,u),i,o),a.apply(this,t),p);eZ(e),v>0?(0,c.Z)(this).transition().duration(v).call(k,l,i,e):(0,c.Z)(this).call(w.transform,l,i,e)}}function R(n,...i){if(r.apply(this,arguments)){var o,a,s,u,l=n.touches,c=l.length,f=C(this,i,n.changedTouches.length===c).event(n);for(e$(n),a=0;a<c;++a)s=l[a],u=[u=(0,d.Z)(s,this),this.__zoom.invert(u),s.identifier],f.touch0?f.touch1||f.touch0[2]===u[2]||(f.touch1=u,f.taps=0):(f.touch0=u,o=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(f.taps<2&&(t=u[0],e=setTimeout(function(){e=null},500)),N(this),f.start())}}function T(e,...t){if(this.__zooming){var n,r,i,o,a=C(this,t).event(e),u=e.changedTouches,l=u.length;for(eZ(e),n=0;n<l;++n)r=u[n],i=(0,d.Z)(r,this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],h=a.touch1[0],v=a.touch1[1],m=(m=h[0]-c[0])*m+(m=h[1]-c[1])*m,g=(g=v[0]-f[0])*g+(g=v[1]-f[1])*g;r=x(r,Math.sqrt(m/g)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(f[0]+v[0])/2,(f[1]+v[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",s(S(r,i,o),a.extent,p))}}function A(e,...r){if(this.__zooming){var i,o,a=C(this,r).event(e),s=e.changedTouches,u=s.length;for(e$(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<u;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=(0,d.Z)(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<b)){var l=(0,c.Z)(this).on("dblclick.zoom");l&&l.apply(this,arguments)}}}return w.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eK),e!==i?k(e,t,n,r):i.interrupt().each(function(){C(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=a.apply(this,arguments),r=this.__zoom,i=null==n?E(e):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),u="function"==typeof t?t.apply(this,arguments):t;return s(S(x(r,u),i,o),e,p)},n,r)},w.translateBy=function(e,t,n,r){w.transform(e,function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),a.apply(this,arguments),p)},null,r)},w.translateTo=function(e,t,n,r,i){w.transform(e,function(){var e=a.apply(this,arguments),i=this.__zoom,o=null==r?E(e):"function"==typeof r?r.apply(this,arguments):r;return s(eW.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)},_.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();g.call(e,this.that,new ez(e,{sourceEvent:this.sourceEvent,target:w,type:e,transform:this.that.__zoom,dispatch:g}),t)}},w.wheelDelta=function(e){return arguments.length?(u="function"==typeof e?e:eU(+e),w):u},w.filter=function(e){return arguments.length?(r="function"==typeof e?e:eU(!!e),w):r},w.touchable=function(e){return arguments.length?(f="function"==typeof e?e:eU(!!e),w):f},w.extent=function(e){return arguments.length?(a="function"==typeof e?e:eU([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),w):a},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?(s=e,w):s},w.duration=function(e){return arguments.length?(v=+e,w):v},w.interpolate=function(e){return arguments.length?(m=e,w):m},w.on=function(){var e=g.on.apply(g,arguments);return e===g?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}eq.prototype},40880:function(e,t,n){"use strict";n.d(t,{M:function(){return m}});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 a=n(59829),s=n(75140),u=n(6167);class l 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:a,left:s}=o.current;if(t||!i.current||!e||!r)return;i.current.dataset.motionPopId=n;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${n}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${e}px !important;
|
|
5
|
-
height: ${r}px !important;
|
|
6
|
-
top: ${a}px !important;
|
|
7
|
-
left: ${s}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{document.head.removeChild(u)}},[t]),r.createElement(l,{isPresent:t,childRef:i,sizeRef:o},r.cloneElement(e,{ref:i}))}let d=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:l})=>{let d=(0,u.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))}),a?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"===l&&(e=r.createElement(c,{isPresent:n},e)),r.createElement(s.O.Provider,{value:p},e)};function f(){return new Map}var h=n(14574),p=n(78686);let v=e=>e.key||"",m=({children:e,custom:t,initial:n=!0,onExitComplete:s,exitBeforeEnter:u,presenceAffectsLayout:l=!0,mode:c="sync"})=>{var f;(0,p.k)(!u,"Replace exitBeforeEnter with mode='wait'");let m=(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)(()=>a.Wi.postRender(i),[i]),t]}()[0],g=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,E=(0,r.useRef)(!0);if((0,i.L)(()=>{E.current=!1,function(e,t){e.forEach(e=>{let n=v(e);t.set(n,e)})}(y,S),x.current=b}),f=()=>{E.current=!0,S.clear(),w.clear()},(0,r.useEffect)(()=>()=>f(),[]),E.current)return r.createElement(r.Fragment,null,b.map(e=>r.createElement(d,{key:v(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:l,mode:c},e)));b=[...b];let k=x.current.map(v),C=y.map(v),_=k.length;for(let e=0;e<_;e++){let t=k[e];-1!==C.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===c&&w.size&&(b=[]),w.forEach((e,n)=>{if(-1!==C.indexOf(n))return;let i=S.get(n);if(!i)return;let o=k.indexOf(n),a=e;a||(a=r.createElement(d,{key:v(i),isPresent:!1,onExitComplete:()=>{w.delete(n);let e=Array.from(S.keys()).filter(e=>!C.includes(e));if(e.forEach(e=>S.delete(e)),x.current=y.filter(t=>{let r=v(t);return r===n||e.includes(r)}),!w.size){if(!1===g.current)return;m(),s&&s()}},custom:t,presenceAffectsLayout:l,mode:c},i),w.set(n,a)),b.splice(o,0,a)}),b=b.map(e=>{let t=e.key;return w.has(t)?e:r.createElement(d,{key:v(e),isPresent:!0,presenceAffectsLayout:l,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 a},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,a=(0,r.useId)();return(0,r.useEffect)(()=>o(a),[]),!t&&n?[!1,()=>n&&n(a)]:[!0]}function a(){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 s},Wi:function(){return a},frameData:function(){return u},S6:function(){return l}});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:a,cancel:s,state:u,steps:l}=function(e,t){let n=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},s=o.reduce((e,t)=>(e[t]=function(e){let t=new i,n=new i,r=0,o=!1,a=!1,s=new WeakSet,u={schedule:(e,i=!1,a=!1)=>{let u=a&&o,l=u?t:n;return i&&s.add(e),l.add(e)&&u&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:i=>{if(o){a=!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),s.has(r)&&(u.schedule(r),e())}o=!1,a&&(a=!1,u.process(i))}};return u}(()=>n=!0),e),{}),u=e=>s[e].process(a),l=()=>{let i=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(i-a.timestamp,40),1),a.timestamp=i,a.isProcessing=!0,o.forEach(u),a.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,a.isProcessing||e(l)};return{schedule:o.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||c(),r.schedule(e,t,i)),e},{}),cancel:e=>o.forEach(t=>s[t].cancel(e)),state:a,steps:s}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},42349:function(e,t,n){"use strict";let r;n.d(t,{E:function(){return iZ}});var i,o,a=n(66703);let s=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),u=(0,a.createContext)({});var l=n(75140),c=n(12619);let d=(0,a.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 v(e){return"string"==typeof e||Array.isArray(e)}function m(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...g];function b(e){return m(e.animate)||y.some(t=>v(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"]},E={};for(let e in S)E[e]={isEnabled:t=>S[e].some(e=>!!t[e])};var k=n(57245),C=n(14574);let _=(0,a.createContext)({}),O=Symbol.for("motionComponentSymbol"),P=["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(P.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let R={},T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A=new Set(T);function M(e,{layout:t,layoutId:n}){return A.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!R[e]||"opacity"===e)}let j=e=>!!(e&&e.getVelocity),N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},L=T.length,D=e=>t=>"string"==typeof t&&t.startsWith(e),F=D("--"),B=D("var(--"),V=(e,t)=>t&&"number"==typeof e?t.transform(e):e,U=(e,t,n)=>Math.min(Math.max(n,e),t),z={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},q={...z,transform:e=>U(0,1,e)},W={...z,default:1},$=e=>Math.round(1e5*e)/1e5,Z=/(-)?([\d]*\.?[\d])+/g,G=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,H=/^(#[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={...z,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:W,scaleX:W,scaleY:W,scaleZ:W,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:q,originX:en,originY:en,originZ:Q,zIndex:er,fillOpacity:q,strokeOpacity:q,numOctaves:er};function eo(e,t,n,r){let{style:i,vars:o,transform:a,transformOrigin:s}=e,u=!1,l=!1,c=!0;for(let e in t){let n=t[e];if(F(e)){o[e]=n;continue}let r=ei[e],d=V(n,r);if(A.has(e)){if(u=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(l=!0,s[e]=d):i[e]=d}if(!t.transform&&(u||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<L;t++){let n=T[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")),l){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin=`${e} ${t} ${n}`}}let ea=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function es(e,t,n){for(let r in t)j(t[r])||M(r,n)||(e[r]=t[r])}let eu=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 el(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eu.has(e)}let ec=e=>!el(e);try{(i=require("@emotion/is-prop-valid").default)&&(ec=e=>e.startsWith("on")?!el(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:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d,f){if(eo(e,l,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:v}=e;h.transform&&(v&&(p.transform=h.transform),delete h.transform),v&&(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}`}(v,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!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ef:eh;e[o.offset]=Q.transform(-r);let a=Q.transform(t),s=Q.transform(n);e[o.array]=`${a} ${s}`}(h,a,s,u,!1)}let ev=()=>({...ea(),attrs:{}}),em=e=>"string"==typeof e&&"svg"===e.toLowerCase();function eg(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 eg(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!==T.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 eE=n(6167);let ek=e=>Array.isArray(e),eC=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),e_=e=>ek(e)?e[e.length-1]||0:e;function eO(e){let t=j(e)?e.get():e;return eC(t)?t.toValue():t}let eP=e=>(t,n)=>{let r=(0,a.useContext)(u),i=(0,a.useContext)(l.O),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=eO(o[e]);let{initial:a,animate:s}=e,u=b(e),l=w(e);t&&l&&!u&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!m(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=eS(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[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&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():(0,eE.h)(o)};var eI=n(59829);let eR={useVisualState:eP({scrapeMotionValuesFromProps:ex,createRenderState:ev,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},em(t.tagName),e.transformTemplate),eb(t,n)})}})},eT={useVisualState:eP({scrapeMotionValuesFromProps:ew,createRenderState:ea})};function eA(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 eL(e,t,n,r){return eA(e,t,eN(n),r)}let eD=(e,t)=>n=>t(e(n)),eF=(...e)=>e.reduce(eD);function eB(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eV=eB("dragHorizontal"),eU=eB("dragVertical");function ez(e){let t=!1;if("y"===e)t=eU();else if("x"===e)t=eV();else{let e=eV(),n=eU();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function eq(){let e=ez(!0);return!e||(e(),!1)}class eW{constructor(e){this.isMounted=!1,this.node=e}update(){}}function e$(e,t){let n="onHover"+(t?"Start":"End");return eL(e.current,"pointer"+(t?"enter":"leave"),(r,i)=>{if("touch"===r.pointerType||eq())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 eZ extends eW{mount(){this.unmount=eF(e$(this.node,!0),e$(this.node,!1))}unmount(){}}class eG extends eW{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=eF(eA(this.node.current,"focus",()=>this.onFocus()),eA(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eH=(e,t)=>!!t&&(e===t||eH(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 eW{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=eL(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();eI.Wi.update(()=>{i||eH(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),i=eL(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=eF(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eA(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eA(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=eA(this.node.current,"blur",()=>{this.isPressing&&eY("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eF(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),!eq()}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=eL(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=eA(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eF(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 eW{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 e8=e=>1e3*e,e7=e=>e/1e3,e9={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,a;let s=0;do(o=tr(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:tr(i(e),t,r)}let to=ti(.42,0,1,1),ta=ti(0,0,.58,1),ts=ti(.42,0,.58,1),tu=e=>Array.isArray(e)&&"number"!=typeof e[0],tl=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=tl(td),tp=ti(.33,1.53,.69,.99),tv=tc(tp),tm=tl(tv),tg={linear:eK.Z,easeIn:to,easeInOut:ts,easeOut:ta,circIn:td,circInOut:th,circOut:tf,backIn:tv,backInOut:tm,backOut:tp,anticipate:e=>(e*=2)<1?.5*tv(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!==tg[e],`Invalid easing type '${e}'`),tg[e]):e},tb=(e,t)=>n=>!!(K(n)&&H.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,a,s]=r.match(Z);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tx=e=>U(0,255,e),tS={...z,transform:e=>Math.round(tx(e))},tE={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)+", "+$(q.transform(r))+")"},tk={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:tE.transform},tC={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($(t))+", "+X.transform($(n))+", "+$(q.transform(r))+")"},t_={test:e=>tE.test(e)||tk.test(e)||tC.test(e),parse:e=>tE.test(e)?tE.parse(e):tC.test(e)?tC.parse(e):tk.parse(e),transform:e=>K(e)?e:e.hasOwnProperty("red")?tE.transform(e):tC.transform(e)},tO=(e,t,n)=>-n*e+n*t+e;function tP(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))},tR=[tk,tE,tC],tT=e=>tR.find(t=>t.test(e));function tA(e){let t=tT(e);(0,e6.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tC&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=tP(s,r,e+1/3),o=tP(s,r,e),a=tP(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let tM=(e,t)=>{let n=tA(e),r=tA(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),tE.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:t_.parse},tL={regex:Z,countKey:"Numbers",token:"${n}",parse:z.parse};function tD(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 tF(e){let t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tD(n,tj),tD(n,tN),tD(n,tL),n}function tB(e){return tF(e).values}function tV(e){let{values:t,numColors:n,numVars:r,tokenised:i}=tF(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,t_.transform(e[i])):t.replace(tL.token,$(e[i]));return t}}let tU=e=>"number"==typeof e?0:e,tz={test:function(e){var t,n;return isNaN(e)&&K(e)&&((null===(t=e.match(Z))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(G))||void 0===n?void 0:n.length)||0)>0},parse:tB,createTransformer:tV,getAnimatableNone:function(e){let t=tB(e);return tV(e)(t.map(tU))}},tq=(e,t)=>n=>`${n>0?t:e}`;function tW(e,t){return"number"==typeof e?n=>tO(e,t,n):t_.test(e)?tM(e,t):e.startsWith("var(")?tq(e,t):tG(e,t)}let t$=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>tW(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},tZ=(e,t)=>{let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}},tG=(e,t)=>{let n=tz.createTransformer(t),r=tF(e),i=tF(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?eF(t$(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.`),tq(e,t))},tH=(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 a=function(e,t,n){let r=[],i=n||function(e){if("number"==typeof e);else if("string"==typeof e)return t_.test(e)?tM:tG;else if(Array.isArray(e))return t$;else if("object"==typeof e)return tZ;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=eF(Array.isArray(t)?t[n]||eK.Z:t,o)),r.push(o)}return r}(t,r,i),s=a.length,u=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let r=tH(e[n],e[n+1],t);return a[n](r)};return n?t=>u(U(e[0],e[o-1],t)):u}function tJ({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=tu(r)?r.map(ty):ty(r),o={done:!1,value:t[0]},a=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=tH(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||ts).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(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],a=e[e.length-1],s={done:!1,value:o},{stiffness:u,damping:l,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<=e8(10),"Spring duration must be 10 seconds or less");let a=1-t;a=U(.05,1,a),e=U(.01,10,e7(e)),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/tQ(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=tQ(Math.pow(t,2),a);return(r*n+n-o)*Math.exp(-r)*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=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=e8(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-e7(r.velocity||0)}),p=f||0,v=l/(2*Math.sqrt(u*c)),m=a-o,g=e7(Math.sqrt(u/c)),y=5>Math.abs(m);if(n||(n=y?.01:2),t||(t=y?.005:.5),v<1){let e=tQ(g,v);i=t=>a-Math.exp(-v*g*t)*((p+v*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}else if(1===v)i=e=>a-Math.exp(-g*e)*(m+(p+g*m)*e);else{let e=g*Math.sqrt(v*v-1);i=t=>{let n=Math.exp(-v*g*t),r=Math.min(e*t,300);return a-n*((p+v*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:h&&d||null,next:e=>{let r=i(e);if(h)s.done=e>=d;else{let o=p;0!==e&&(o=v<1?tX(i,e,r):0);let u=Math.abs(o)<=n,l=Math.abs(a-r)<=t;s.done=u&&l}return s.value=s.done?a:r,s}}}function t5({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){let d,f;let h=e[0],p={done:!1,value:h},v=e=>void 0!==s&&e<s||void 0!==u&&e>u,m=e=>void 0===s?u:void 0===u?s:Math.abs(s-e)<Math.abs(u-e)?s:u,g=n*t,y=h+g,b=void 0===a?y:a(y);b!==y&&(g=b-h);let w=e=>-g*Math.exp(-e/r),x=e=>b+w(e),S=e=>{let t=w(e),n=x(e);p.done=Math.abs(t)<=l,p.value=p.done?b:n},E=e=>{v(p.value)&&(d=e,f=t3({keyframes:[p.value,m(p.value)],velocity:tX(x,e,p.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,S(e),E(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 t8={decay:t5,inertia:t5,tween:tJ,keyframes:tJ,spring:t3};function t7({autoplay:e=!0,delay:t=0,driver:n=t4,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:d,...f}){let h,p,v,m,g,y=1,b=!1,w=()=>{p=new Promise(e=>{h=e})};w();let x=t8[i]||tJ;x!==tJ&&"number"!=typeof r[0]&&(m=tY([0,100],r,{clamp:!1}),r=[0,100]);let S=x({...f,keyframes:r});"mirror"===s&&(g=x({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let E="idle",k=null,C=null,_=null;null===S.calculatedDuration&&o&&(S.calculatedDuration=t6(S));let{calculatedDuration:O}=S,P=1/0,I=1/0;null!==O&&(I=(P=O+a)*(o+1)-a);let R=0,T=e=>{if(null===C)return;y>0&&(C=Math.min(C,e)),y<0&&(C=Math.min(e-I/y,C));let n=(R=null!==k?k:Math.round(e-C)*y)-t*(y>=0?1:-1),i=y>=0?n<0:n>I;R=Math.max(n,0),"finished"===E&&null===k&&(R=I);let u=R,l=S;if(o){let e=Math.min(R,I)/P,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,o+1))%2&&("reverse"===s?(n=1-n,a&&(n-=a/P)):"mirror"===s&&(l=g)),u=U(0,1,n)*P}let c=i?{done:!1,value:r[0]}:l.next(u);m&&(c.value=m(c.value));let{done:f}=c;i||null===O||(f=y>=0?R>=I:R<=0);let h=null===k&&("finished"===E||"running"===E&&f);return d&&d(c.value),h&&j(),c},A=()=>{v&&v.stop(),v=void 0},M=()=>{E="idle",A(),h(),w(),C=_=null},j=()=>{E="finished",c&&c(),A(),h()},N=()=>{if(b)return;v||(v=n(T));let e=v.now();u&&u(),null!==k?C=e-k:C&&"finished"!==E||(C=e),"finished"===E&&w(),_=C,k=null,E="running",v.start()};e&&N();let L={then:(e,t)=>p.then(e,t),get time(){return e7(R)},set time(newTime){R=newTime=e8(newTime),null===k&&v&&0!==y?C=v.now()-newTime/y:k=newTime},get duration(){return e7(null===S.calculatedDuration?t6(S):S.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!v)return;y=newSpeed,L.time=e7(R)},get state(){return E},play:N,pause:()=>{E="paused",k=R},stop:()=>{b=!0,"idle"!==E&&(E="idle",l&&l(),M())},cancel:()=>{null!==_&&T(_),M()},complete:()=>{E="finished"},sample:e=>(C=0,T(e))};return L}let t9=(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},na=(e,{keyframes:t})=>t.length>2?ni:A.has(e)?e.startsWith("scale")?nr(t[1]):nn:no,ns=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tz.test(t)||"0"===t)&&!t.startsWith("url(")),nu=new Set(["brightness","contrast","saturate","opacity"]);function nl(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(Z)||[];if(!r)return e;let i=n.replace(r,""),o=nu.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let nc=/([a-z-]*)\(.*?\)/g,nd={...tz,getAnimatableNone:e=>{let t=e.match(nc);return t?t.map(nl).join(" "):e}},nf={...ei,color:t_,backgroundColor:t_,outlineColor:t_,fill:t_,stroke:t_,borderColor:t_,borderTopColor:t_,borderRightColor:t_,borderBottomColor:t_,borderLeftColor:t_,filter:nd,WebkitFilter:nd},nh=e=>nf[e];function np(e,t){let n=nh(e);return n!==nd&&(n=tz),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let nv=e=>/^0[^.\s]+$/.test(e);function nm(e,t){return e[t]||e.default||e}let ng={skipAnimations:!1},ny=(e,t,n,r={})=>i=>{let o=nm(r,e)||{},a=o.delay||r.delay||0,{elapsed:s=0}=r;s-=e8(a);let u=function(e,t,n,r){let i,o;let a=ns(t,n);i=Array.isArray(n)?[...n]:[null,n];let s=void 0!==r.from?r.from:e.get(),u=[];for(let e=0;e<i.length;e++){var l;null===i[e]&&(i[e]=0===e?s:i[e-1]),("number"==typeof(l=i[e])?0===l:null!==l?"none"===l||"0"===l||nv(l):void 0)&&u.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}if(a&&u.length&&o)for(let e=0;e<u.length;e++)i[u[e]]=np(t,o);return i}(t,e,n,o),l=u[0],c=u[u.length-1],d=ns(e,l),f=ns(e,c);(0,e6.K)(d===f,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,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:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}(o)&&(h={...h,...na(e,h)}),h.duration&&(h.duration=e8(h.duration)),h.repeatDelay&&(h.repeatDelay=e8(h.repeatDelay)),!d||!f||e9.current||!1===o.type||ng.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?t7({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(e9.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,a;if(!(t9()&&ne.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let s=!1,u=!1,l=()=>{a=new Promise(e=>{o=e})};l();let{keyframes:c,duration:d=300,ease:f,times:h}=i;if(nt(t,i)){let e=t7({...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:a="loop",ease:s,times:u}={}){let l={[t]:n};u&&(l.offset=u);let c=function e(t){if(t)return te(t)?tt(t):Array.isArray(t)?t.map(e):tn[t]}(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:d,ease:f,times:h}),v=()=>{u=!1,p.cancel()},m=()=>{u=!0,eI.Wi.update(v),o(),l()};return p.onfinish=()=>{u||(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(),m())},{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,eK.Z),get time(){return e7(p.currentTime||0)},set time(newTime){p.currentTime=e8(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return e7(d)},play:()=>{s||(p.play(),(0,eI.Pn)(v))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;let{currentTime:t}=p;if(t){let n=t7({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}m()},complete:()=>{u||p.finish()},cancel:m}}(t,e,h);if(n)return n}return t7(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 nE{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 nk=e=>!isNaN(parseFloat(e)),nC={current:void 0};class n_{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=nk(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new nE);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 nC.current&&nC.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 n_(e,t)}let nP=e=>t=>t.test(e),nI=[z,Q,X,J,et,ee,{test:e=>"auto"===e,parse:e=>e}],nR=e=>nI.find(nP(e)),nT=[...nI,t_,tz],nA=e=>nT.find(nP(e));function nM(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(o=r);let l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t),i=s[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 a={delay:n,elapsed:0,...nm(o||{},t)};if(window.HandoffAppearAnimations){let n=e.getProps()[h];if(n){let e=window.HandoffAppearAnimations(n,t,r,eI.Wi);null!==e&&(a.elapsed=e,a.isHandoff=!0)}}let d=!a.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"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(ny(t,r,i,e.shouldReduceMotion&&A.has(t)?{type:!1}:a));let f=r.animation;nb(u)&&(u.add(t),f.then(()=>u.remove(t))),l.push(f)}return a&&Promise.all(l).then(()=>{a&&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=e_(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nO(n))}}(e,a)}),l}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(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,u=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(nN).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(nj(e,t,{...o,delay:n+u(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function nN(e,t){return e.sortNodePosition(t)}let nL=[...g].reverse(),nD=g.length;function nF(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nB extends eW{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:nF(!0),whileInView:nF(),whileHover:nF(),whileTap:nF(),whileDrag:nF(),whileFocus:nF(),exit:nF()},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,a){let s=e.getProps(),u=e.getVariantContext(!0)||{},l=[],c=new Set,d={},f=1/0;for(let t=0;t<nD;t++){var h;let p=nL[t],g=n[p],y=void 0!==s[p]?s[p]:u[p],b=v(y),w=p===a?g.isActive:null;!1===w&&(f=t);let x=y===u[p]&&y!==s[p]&&b;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...d},!g.isActive&&null===w||!y&&!g.prevProp||m(y)||"boolean"==typeof y)continue;let S=(h=g.prevProp,("string"==typeof y?y!==h:!!Array.isArray(y)&&!e5(y,h))||p===a&&g.isActive&&!x&&b||t>f&&b),E=!1,k=Array.isArray(y)?y:[y],C=k.reduce(i,{});!1===w&&(C={});let{prevResolvedValues:_={}}=g,O={..._,...C},P=e=>{S=!0,c.has(e)&&(E=!0,c.delete(e)),g.needsAnimating[e]=!0};for(let e in O){let t=C[e],n=_[e];if(!d.hasOwnProperty(e))(ek(t)&&ek(n)?e5(t,n):t===n)?void 0!==t&&c.has(e)?P(e):g.protectedKeys[e]=!0:void 0!==t?P(e):c.add(e)}g.prevProp=y,g.prevResolvedValues=C,g.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(S=!1),S&&(!x||E)&&l.push(...k.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)}),l.push({animation:t})}let p=!!l.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),m(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 nV=0;class nU extends eW{constructor(){super(...arguments),this.id=nV++}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 nz=(e,t)=>Math.abs(e-t);class nq{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=nZ(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(nz(e.x,t.x)**2+nz(e.y,t.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=eI.frameData;this.history.push({...o,timestamp:a});let{onStart:s,onMove:u}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nW(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=nZ("pointercancel"===e.type?this.lastMoveEventInfo:nW(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=nW(ej(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=eI.frameData;this.history=[{...a,timestamp:s}];let{onSessionStart:u}=t;u&&u(e,nZ(o,this.history)),this.removeListeners=eF(eL(this.contextWindow,"pointermove",this.handlePointerMove),eL(this.contextWindow,"pointerup",this.handlePointerUp),eL(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eI.Pn)(this.updatePoint)}}function nW(e,t){return t?{point:t(e.point)}:e}function n$(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nZ({point:e},t){return{point:e,delta:n$(e,nG(t)),offset:n$(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>e8(.1)));)n--;if(!r)return{x:0,y:0};let o=e7(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function nG(e){return e[e.length-1]}function nH(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=nH(n)/nH(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+nH(t)}function nQ(e,t,n){e.min=t.min-n.min,e.max=e.min+nH(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()}),n8=()=>({min:0,max:0}),n7=()=>({x:n8(),y:n8()});function n9(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 ra(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 rs(e,{x:t,y:n}){ra(e.x,t.translate,t.scale,t.originPoint),ra(e.y,n.translate,n.scale,n.originPoint)}function ru(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function rl(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,a=tO(e.min,e.max,o);ra(e,t[n],t[r],a,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 rv=({current:e})=>e?e.ownerDocument.defaultView:null,rm=new WeakMap;class rg{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=n7(),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 nq(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=ez(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),n9(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=nH(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:a}=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}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>n9(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:rv(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&&n9(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&&(rl(r.x,i.offset.x),rl(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={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}}(a));this.hasMutatedConstraints=!!e,e&&(a=re(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(n9(a=>{if(!ry(a,t,this.currentDirection))return;let u=s&&s[a]||{};o&&(u={min:0,max:0});let l={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,l)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(ny(e,n,0,t))}stopAnimation(){n9(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){n9(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){n9(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};n9(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();r[e]=function(e,t){let n=.5,r=nH(e),i=nH(t);return i>r?n=tH(t.min,t.max-r,e.min):r>i&&(n=tH(e.min,e.max-i,t.min)),U(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(),n9(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;rm.set(this.visualElement,this);let e=eL(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=eA(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(n9(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:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ry(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class rb extends eW{constructor(e){super(e),this.removeGroupControls=eK.Z,this.removeListeners=eK.Z,this.controls=new rg(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 eW{constructor(){super(...arguments),this.removePointerDownListener=eK.Z}onPointerDown(e){this.session=new nq(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rv(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=eL(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 rE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let rC={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Q.test(e))return e;e=parseFloat(e)}let n=rk(e,t.target.x),r=rk(e,t.target.y);return`${n}% ${r}%`}};class r_ extends a.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(R,rP),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()})),rE.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,a.useContext)(C.p);return a.createElement(r_,{...e,layoutGroup:r,switchLayoutGroup:(0,a.useContext)(_),isPresent:t,safeToRemove:n})}let rP={borderRadius:{...rC,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rC,borderTopRightRadius:rC,borderBottomLeftRadius:rC,borderBottomRightRadius:rC,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=tz.parse(e);if(r.length>5)return e;let i=tz.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let u=tO(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),i(r)}}},rI=["TopLeft","TopRight","BottomLeft","BottomRight"],rR=rI.length,rT=e=>"string"==typeof e?parseFloat(e):e,rA=e=>"number"==typeof e||Q.test(e);function rM(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rj=rL(0,.5,tf),rN=rL(.5,.95,eK.Z);function rL(e,t,n){return r=>r<e?0:r>t?1:n(tH(e,t,r))}function rD(e,t){e.min=t.min,e.max=t.max}function rF(e,t){rD(e.x,t.x),rD(e.y,t.y)}function rB(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 rV(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(X.test(t)&&(t=parseFloat(t),t=tO(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=tO(o.min,o.max,r);e===o&&(s-=t),e.min=rB(e.min,t,n,s,i),e.max=rB(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let rU=["x","scaleX","originX"],rz=["y","scaleY","originY"];function rq(e,t,n,r){rV(e.x,t,rU,n?n.x:void 0,r?r.x:void 0),rV(e.y,t,rz,n?n.y:void 0,r?r.y:void 0)}function rW(e){return 0===e.translate&&1===e.scale}function r$(e){return rW(e.x)&&rW(e.y)}function rZ(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 nH(e.x)/nH(e.y)}class rH{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 a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(r+=`scale(${a}, ${s})`),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 nE),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),rE.hasAnimatedSinceResize&&(rE.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:a,onLayoutAnimationComplete:s}=o.getProps(),u=!this.targetLayout||!rZ(this.targetLayout,r)||n,l=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);let t={...nm(i,"layout"),onPlay:a,onComplete:s};(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(r7);return}this.isUpdating||this.nodes.forEach(r9),this.isUpdating=!1,this.nodes.forEach(ie),this.nodes.forEach(r3),this.nodes.forEach(r5),this.clearAllSnapshots();let e=performance.now();eI.frameData.delta=U(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(r8),this.sharedNodes.forEach(ia)}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=n7(),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&&!r$(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 n7();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(rl(t.x,n.offset.x),rl(t.y,n.offset.y)),t}removeElementScroll(e){let t=n7();rF(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){rF(t,e);let{scroll:n}=this.root;n&&(rl(t.x,-n.offset.x),rl(t.y,-n.offset.y))}rl(t.x,i.offset.x),rl(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let n=n7();rF(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=n7();rF(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=n7();rF(r,n.measurePageBox()),rq(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rr(this.latestValues)&&rq(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 a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:s,layoutId:u}=this.options;if(this.layout&&(s||u)){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=n7(),this.relativeTargetOrigin=n7(),n0(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=n7(),this.targetWithTransforms=n7()),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):rF(this.target,this.layout.layoutBox),rs(this.target,this.targetDelta)):rF(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=n7(),this.relativeTargetOrigin=n7(),n0(this.relativeTargetOrigin,this.target,e.target),rF(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;rF(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o;let a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.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,rs(e,o)),r&&rr(i.latestValues)&&rh(e,i.latestValues))}t.x=ru(t.x),t.y=ru(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:u}=t;if(!u){this.projectionTransform&&(this.projectionDelta=n6(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=n6(),this.projectionDeltaWithTransform=n6());let l=this.projectionTransform;nJ(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=rK(this.projectionDelta,this.treeScale),(this.projectionTransform!==l||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),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},a=n6();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=n7(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(il));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(is(a.x,e.x,r),is(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,f,h,p;n0(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,iu(h.x,p.x,s.x,r),iu(h.y,p.y,s.y,r),n&&(l=this.relativeTarget,f=n,l.x.min===f.x.min&&l.x.max===f.x.max&&l.y.min===f.y.min&&l.y.max===f.y.max)&&(this.isProjectionDirty=!1),n||(n=n7()),rF(n,this.relativeTarget)}u&&(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<rR;i++){let o=`border${rI[i]}Radius`,a=rM(t,o),s=rM(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||rA(a)===rA(s)?(e[o]=Math.max(tO(rT(a),rT(s),r),0),(X.test(s)||X.test(a))&&(e[o]+="%")):e[o]=s)}(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(()=>{rE.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&&iv(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n7();let t=nH(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nH(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rF(t,n),rh(t,i),nJ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rH),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 a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=rK(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));let{x:s,y:u}=this.projectionDelta;for(let e in r.transformOrigin=`${100*s.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,R){if(void 0===a[e])continue;let{correct:t,applyTo:n}=R[e],i="none"===r.transform?a[e]:t(a[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(r7),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?n9(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],i=nH(r);r.min=t[e].min,r.max=r.min+i}):iv(i,n.layoutBox,t)&&n9(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],a=nH(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=n6();nJ(a,t,n.layoutBox);let s=n6();o?nJ(s,e.applyTransform(r,!0),n.measuredBox):nJ(s,t,n.layoutBox);let u=!r$(a),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=n7();n0(a,n.layoutBox,i.layoutBox);let s=n7();n0(s,t,o.layoutBox),rZ(a,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:l})}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 r8(e){e.clearSnapshot()}function r7(e){e.clearMeasurements()}function r9(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 ia(e){e.removeLeadSnapshot()}function is(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 iu(e,t,n,r){e.min=tO(t.min,n.min,r),e.max=tO(t.max,n.max,r)}function il(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 iv(e,t,n){return"position"===e||"preserve-aspect"===e&&!nK(rG(t),rG(n),.2)}let im=r2({attachResizeListener:(e,t)=>eA(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ig={current:void 0},iy=r2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ig.current){let e=new im({});e.mount(window),e.setOptions({layoutScroll:!0}),ig.current=e}return ig.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 B(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),iE=e=>Object.keys(e).some(iS),ik=e=>e===z||e===Q,iC=(e,t)=>parseFloat(e.split(", ")[t]),i_=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return iC(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?iC(t[1],e):0}},iO=new Set(["x","y","z"]),iP=T.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:i_(4,13),y:i_(5,14)};iI.translateX=iI.x,iI.translateY=iI.y;let iR=(e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:o}=i,a={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=iI[e](r,i)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);r&&r.jump(a[n]),e[n]=iI[n](s,i)}),e},iT=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(iS),o=[],a=!1,s=[];if(i.forEach(i=>{let u;let l=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=nR(c),f=t[i];if(ek(f)){let e=f.length,t=null===f[0]?1:0;d=nR(c=f[t]);for(let n=t;n<e&&null!==f[n];n++)u?(0,e6.k)(nR(f[n])===u,"All keyframes must be of the same type"):(u=nR(f[n]),(0,e6.k)(u===d||ik(d)&&ik(u),"Keyframes must be of the same dimension as the current value"))}else u=nR(f);if(d!==u){if(ik(d)&&ik(u)){let e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&u===Q&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[i]=d.transform(f):(a||(o=function(e){let t=[];return iP.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),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],l.jump(f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=iR(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),k.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},iA=(e,t,n,r)=>{var i,o;let a=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(!B(t))return;let n=iw(t,r);n&&e.set(n)}),t){let e=t[i];if(!B(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=a.target,r=a.transitionEnd,i=t,o=r,iE(i)?iT(e,i,n,o):{target:i,transitionEnd:o}},iM={current:null},ij={current:!1},iN=new WeakMap,iL=Object.keys(E),iD=iL.length,iF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iB=y.length;class iV{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:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,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:u,...l}=this.scrapeMotionValuesFromProps(t,{});for(let e in l){let t=l[e];void 0!==a[e]&&j(t)&&(t.set(a[e],!1),nb(u)&&u.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,k.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=A.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,a;for(let e=0;e<iD;e++){let n=iL[e],{isEnabled:r,Feature:i,ProjectionNode:s,MeasureLayout:u}=E[n];s&&(o=s),r(t)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),u&&(a=u))}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:a,layoutScroll:s,layoutRoot:u}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!r||a&&p(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:u})}return a}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):n7()}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<iF.length;t++){let n=iF[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],a=n[i];if(j(o))e.addValue(i,o),nb(r)&&r.add(i);else if(j(a))e.addValue(i,nO(o,{owner:e})),nb(r)&&r.remove(i);else if(a!==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<iB;e++){let n=y[e],r=this.props[n];(v(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 nE),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class iU extends iV{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)),a=o.length;if(a)for(let s=0;s<a;s++){let a=o[s],u=t[a],l=null;Array.isArray(u)&&(l=u[0]),null===l&&(l=null!==(i=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==i?i:t[a]),null!=l&&("string"==typeof l&&(nw(l)||nv(l))?l=parseFloat(l):!nA(l)&&tz.test(u)&&(l=np(a,u)),e.addValue(a,nO(l,{owner:e})),void 0===n[a]&&(n[a]=l),null!==l&&e.setBaseTarget(a,l))}}(this,n,o);let e=iA(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class iz extends iU{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(A.has(t)){let e=nh(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(F(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){eg(e,t,n,r)}}class iq extends iU{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(A.has(t)){let e=nh(t);return e&&e.default||0}return t=ey.has(t)?t:f(t),e.getAttribute(t)}measureInstanceViewportBox(){return n7()}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=em(e.tagName),super.mount(e)}}let iW=(e,t)=>I(e)?new iq(t,{enableHardwareAcceleration:!1}):new iz(t,{enableHardwareAcceleration:!0}),i$={animation:{Feature:nB},exit:{Feature:nU},inView:{Feature:e3},tap:{Feature:eJ},focus:{Feature:eG},hover:{Feature:eZ},pan:{Feature:rx},drag:{Feature:rb,ProjectionNode:iy,MeasureLayout:rO},layout:{ProjectionNode:iy,MeasureLayout:rO}},iZ=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)E[t]={...E[t],...e[t]}}(e);let o=(0,a.forwardRef)(function(o,f){var m;let g;let y={...(0,a.useContext)(s),...o,layoutId:function({layoutId:e}){let t=(0,a.useContext)(C.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||v(t)?t:void 0,animate:v(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(u));return(0,a.useMemo)(()=>({initial:t,animate:n}),[x(t),x(n)])}(o),E=r(o,w);if(!w&&k.j){S.visualElement=function(e,t,n,r){let{visualElement:i}=(0,a.useContext)(u),o=(0,a.useContext)(d),f=(0,a.useContext)(l.O),p=(0,a.useContext)(s).reducedMotion,v=(0,a.useRef)();r=r||o.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:i,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:p}));let m=v.current;(0,a.useInsertionEffect)(()=>{m&&m.update(n,f)});let g=(0,a.useRef)(!!(n[h]&&!window.HandoffComplete));return(0,c.L)(()=>{m&&(m.render(),g.current&&m.animationState&&m.animationState.animateChanges())}),(0,a.useEffect)(()=>{m&&(m.updateFeatures(),!g.current&&m.animationState&&m.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),m}(i,E,y,t);let n=(0,a.useContext)(_),r=(0,a.useContext)(d).strict;S.visualElement&&(g=S.visualElement.loadFeatures(y,r,e,n))}return a.createElement(u.Provider,{value:S},g&&S.visualElement?a.createElement(g,{visualElement:S.visualElement,...y}):null,n(i,o,(m=S.visualElement,(0,a.useCallback)(e=>{e&&E.mount&&E.mount(e),m&&(e?m.mount(e):m.unmount()),f&&("function"==typeof f?f(e):p(f)&&(f.current=e))},[m])),E,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)?eR:eT,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let s=(I(t)?function(e,t,n,r){let i=(0,a.useMemo)(()=>{let n=ev();return ep(n,t,{enableHardwareAcceleration:!1},em(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};es(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 es(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,a.useMemo)(()=>{let r=ea();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),u={...function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(ec(i)||!0===n&&el(i)||!t&&!el(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:r},{children:l}=n,c=(0,a.useMemo)(()=>j(l)?l.get():l,[l]);return(0,a.createElement)(t,{...u,children:c})}}(t),createVisualElement:r,Component:e}})(e,t,i$,iW))},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 l}});var r,i=n(66703),o=n(70458);let a="label";function s(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,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 l=(0,i.forwardRef)(function(e,t){let{height:n=150,width:r=300,redraw:l=!1,datasetIdKey:c,type:d,data:f,options:h,plugins:p=[],fallbackContent:v,updateMode:m,...g}=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]:a,r={labels:[],datasets:[]};return t=e.labels,r.labels=t,u(r,e.datasets,n),r}(f,c),options:h&&{...h},plugins:p}),s(t,b.current))},x=()=>{s(t,null),b.current&&(b.current.destroy(),b.current=null)};return(0,i.useEffect)(()=>{!l&&b.current&&h&&function(e,t){let n=e.options;n&&t&&Object.assign(n,t)}(b.current,h)},[l,h]),(0,i.useEffect)(()=>{if(!l&&b.current){var e,t;e=b.current.config.data,t=f.labels,e.labels=t}},[l,f.labels]),(0,i.useEffect)(()=>{!l&&b.current&&f.datasets&&u(b.current.config.data,f.datasets,c)},[l,f.datasets]),(0,i.useEffect)(()=>{b.current&&(l?(x(),setTimeout(w)):b.current.update(m))},[l,h,f.labels,f.datasets,m]),(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,...g},v)}),c=(r=o.vn,o.kL.register(r),(0,i.forwardRef)((e,t)=>i.createElement(l,{...e,ref:t,type:"bar"})))},23113:function(e,t,n){"use strict";n.d(t,{ZP:function(){return es},Ug:function(){return el}});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},a=n(20130);function s(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 u(e){e.stopPropagation()}function l(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 v(e,t){return void 0!==t?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function m(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 g(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:E,abs:k}=Math;function C(e){if("function"!=typeof e)throw Error("Please specify the rowKeyGetter prop to use selection")}function _(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 P({onChange:e,...t}){return(0,a.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,a.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,a.jsx)("div",{className:"rdg-checkbox cf71kmq7-0-0-beta-40"})]})}function I(e){try{return e.row[e.column.key]}catch{return null}}let R=(0,r.createContext)(void 0),T=R.Provider;function A(){return(0,r.useContext)(R)}let M=(0,r.createContext)(void 0).Provider,j=(0,r.createContext)(void 0).Provider,N="select-row",L="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function D(e,t){let n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=e.current.querySelector(n);return r?.getBoundingClientRect().width}function F(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 B(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 V({gridRowStart:e,rows:t,column:n,columnWidth:r,selectedPosition:i,latestDraggedOverRowIdx:s,isCellEditable:u,onRowsChange:l,onFill:c,onClick:d,setDragging:f,setDraggedOverRowIdx:h}){let{idx:p,rowIdx:v}=i;function m(e,r){let i=t[v],o=[...t],a=[];for(let s=e;s<r;s++)if(u({rowIdx:s,idx:p})){let e=c({columnKey:n.key,sourceRow:i,targetRow:t[s]});e!==t[s]&&(o[s]=e,a.push(s))}a.length>0&&l?.(o,{indexes:a,column:n})}let y=n.colSpan?.({type:"ROW",row:t[v]})??1,b=g(n,y);return(0,a.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=s.current;void 0!==e&&(m(v<e?v+1:e,v<e?e+1:v),h(void 0))}()}e.preventDefault(),1===e.buttons&&(f(!0),window.addEventListener("mouseover",t),window.addEventListener("mouseup",n))},onDoubleClick:function(e){e.stopPropagation(),m(v+1,t.length)}})}function U({column:e,colSpan:t,row:n,rowIdx:i,onRowChange:o,closeEditor:s,onKeyDown:u,navigate:l}){let d=(0,r.useRef)(),f=e.editorOptions?.commitOnOutsideClick!==!1,h=F(()=>{v(!0,!1)});function p(){cancelAnimationFrame(d.current)}function v(e=!1,t=!0){e?o(n,!0,t):s(t)}function m(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,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:w,style:g(e,t),onKeyDown:function(t){if(u){let r=c(t);if(u({mode:"EDIT",row:n,column:e,rowIdx:i,navigate(){l(t)},onClose:v},r),r.isGridDefaultPrevented())return}"Escape"===t.key?v():"Enter"===t.key?v(!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)&&l(t)},onMouseDownCapture:p,children:null!=e.renderEditCell&&(0,a.jsxs)(a.Fragment,{children:[e.renderEditCell({column:e,row:n,onRowChange:m,onClose:v}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,isCellEditable:!0,tabIndex:-1,onRowChange:m})]})})}function z({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){let{tabIndex:i,onFocus:s}=B(n),{colSpan:u}=e,l=O(e,t),c=e.idx+1;return(0,a.jsx)("div",{role:"columnheader","aria-colindex":c,"aria-colspan":u,"aria-rowspan":l,"aria-selected":n,tabIndex:i,className:o(p,e.headerCellClass),style:{...m(e,t,l),gridColumnStart:c,gridColumnEnd:c+u},onFocus:s,onClick:function(){r({idx:e.idx,rowIdx:t})},children:e.name})}function q({column:e,sortDirection:t,priority:n}){return e.sortable?(0,a.jsx)(W,{sortDirection:t,priority:n,children:e.name}):e.name}function W({sortDirection:e,priority:t,children:n}){let r=A().renderSortStatus;return(0,a.jsxs)("span",{className:"h44jtk67-0-0-beta-40",children:[(0,a.jsx)("span",{className:"rdg-header-sort-name hcgkhxz7-0-0-beta-40",children:n}),(0,a.jsx)("span",{children:r({sortDirection:e,priority:t})})]})}function $({column:e,colSpan:t,rowIdx:n,isCellSelected:i,onColumnResize:o,onColumnsReorder:s,sortColumns:l,onSortColumnsChange:c,selectCell:d,shouldFocusGrid:f,direction:h,dragDropKey:p}){let v;let[b,w]=(0,r.useState)(!1),[x,S]=(0,r.useState)(!1),E="rtl"===h,k=O(e,n),{tabIndex:C,childTabIndex:P,onFocus:I}=B(i),R=l?.findIndex(t=>t.columnKey===e.key),T=void 0!==R&&R>-1?l[R]:void 0,A=T?.direction,M=void 0!==T&&l.length>1?R+1:void 0,j=A&&!M?"ASC"===A?"ascending":"descending":void 0,{sortable:N,resizable:L,draggable:D}=e,F=y(e,e.headerCellClass,N&&"c6l2wv17-0-0-beta-40",L&&"rdg-cell-resizable c1kqdw7y7-0-0-beta-40",D&&"rdg-cell-draggable",b&&"rdg-cell-dragging c1bezg5o7-0-0-beta-40",x&&"rdg-cell-drag-over c1vc96037-0-0-beta-40"),V=e.renderHeaderCell??q;function U(t){if(null==c)return;let{sortDescendingFirst:n}=e;if(void 0===T){let r={columnKey:e.key,direction:n?"DESC":"ASC"};c(l&&t?[...l,r]:[r])}else{let r;if((!0===n&&"DESC"===A||!0!==n&&"ASC"===A)&&(r={columnKey:e.key,direction:"ASC"===A?"DESC":"ASC"}),t){let e=[...l];r?e[R]=r:e.splice(R,1),c(e)}else c(r?[r]:[])}}return D&&(v={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){Z(e)&&S(!0)},onDragLeave:function(e){Z(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(),s?.(n,e.key))}}}),(0,a.jsxs)("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":k,"aria-selected":i,"aria-sort":j,tabIndex:f?0:C,className:F,style:{...m(e,n,k),...g(e,t)},onFocus:function(e){I?.(e),f&&d({idx:0,rowIdx:n})},onClick:function(t){d({idx:e.idx,rowIdx:n}),N&&U(t.ctrlKey||t.metaKey)},onKeyDown:N?function(e){(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),U(e.ctrlKey||e.metaKey))}:void 0,...v,children:[V({column:e,sortDirection:A,priority:M,tabIndex:P}),L&&(0,a.jsx)("div",{className:"r1y6ywlx7-0-0-beta-40",onClick:u,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:a,left:s}=i.getBoundingClientRect(),u=E?t.clientX-s:a-t.clientX;function l(t){t.preventDefault();let{right:n,left:r}=i.getBoundingClientRect(),a=E?n+u-t.clientX:t.clientX+u-r;a>0&&o(e,_(a,e))}n.setPointerCapture(r),n.addEventListener("pointermove",l),n.addEventListener("lostpointercapture",function e(){n.removeEventListener("pointermove",l),n.removeEventListener("lostpointercapture",e)})}})]})}function Z(e){let t=e.relatedTarget;return!e.currentTarget.contains(t)}let G="rdg-row r1upfr807-0-0-beta-40",H="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:u,onSortColumnsChange:l,lastFrozenColumnIndex:c,selectedCellIdx:d,selectCell:f,shouldFocusGrid:h,direction:p}){let v=(0,r.useId)(),m=[];for(let r=0;r<t.length;r++){let o=t[r],g=s(o,c,{type:"HEADER"});void 0!==g&&(r+=g-1),m.push((0,a.jsx)($,{column:o,colSpan:g,rowIdx:e,isCellSelected:d===o.idx,onColumnResize:n,onColumnsReorder:i,onSortColumnsChange:l,sortColumns:u,selectCell:f,shouldFocusGrid:h&&0===r,direction:p,dragDropKey:v},o.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":e,className:o(K,-1===d&&H),children:m})}),J=(0,r.memo)(function({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:i}){let o=[],s=new Set;for(let u of n){let{parent:n}=u;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!s.has(n)){s.add(n);let{idx:t}=n;o.push((0,a.jsx)(z,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:i},t))}}}return(0,a.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:s,onClick:u,onDoubleClick:l,onContextMenu:d,onRowChange:f,selectCell:p,...v}){let{tabIndex:m,childTabIndex:b,onFocus:w}=B(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"),E=h(e,o);function k(t){p({rowIdx:s,idx:e.idx},t)}return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!E||void 0,tabIndex:m,className:S,style:g(e,t),onClick:function(t){if(u){let n=c(t);if(u({row:o,column:e,selectCell:k},n),n.isGridDefaultPrevented())return}k()},onDoubleClick:function(t){if(l){let n=c(t);if(l({row:o,column:e,selectCell:k},n),n.isGridDefaultPrevented())return}k(!0)},onContextMenu:function(t){if(d){let n=c(t);if(d({row:o,column:e,selectCell:k},n),n.isGridDefaultPrevented())return}k()},onFocus:w,...v,children:e.renderCell({column:e,row:o,isCellEditable:E,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:u,copiedCellIdx:l,draggedOverCellIdx:c,lastFrozenColumnIndex:d,row:f,viewportColumns:h,selectedCellEditor:p,onCellClick:m,onCellDoubleClick:g,onCellContextMenu:y,rowClass:b,setDraggedOverRowIdx:w,onMouseEnter:x,onRowChange:S,selectCell:E,...k},C){let _=F((e,n)=>{S(e,t,n)});e=o(G,`rdg-row-${t%2==0?"even":"odd"}`,b?.(f,t),e,-1===i&&H);let O=[];for(let e=0;e<h.length;e++){let n=h[e],{idx:r}=n,o=s(n,d,{type:"ROW",row:f});void 0!==o&&(e+=o-1);let u=i===r;u&&p?O.push(p):O.push((0,a.jsx)(X,{column:n,colSpan:o,row:f,rowIdx:t,isCopied:l===r,isDraggedOver:c===r,isCellSelected:u,onClick:m,onDoubleClick:g,onContextMenu:y,onRowChange:_,selectCell:E},n.key))}return(0,a.jsx)(M,{value:u,children:(0,a.jsx)("div",{role:"row",ref:C,className:e,onMouseEnter:function(e){w?.(t),x?.(e)},style:v(n,r),...k,children:O})})}));function ee(e,t){return(0,a.jsx)(Q,{...t},e)}function et({scrollToPosition:{idx:e,rowIdx:t},gridElement:n,setScrollToCellPosition:i}){let o=(0,r.useRef)(null);return L(()=>{l(o.current)}),L(()=>{let e=new IntersectionObserver(function(){i(null)},{root:n,threshold:1});return e.observe(o.current),()=>{e.disconnect()}},[n,i]),(0,a.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,a.jsxs)(a.Fragment,{children:[function({sortDirection:e}){return void 0===e?null:(0,a.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,a.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:s,childTabIndex:u,onFocus:l}=B(i),{summaryCellClass:c}=e,d=y(e,"s8wc6fl7-0-0-beta-40","function"==typeof c?c(n):c);return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":i,tabIndex:s,className:d,style:g(e,t),onClick:function(){o({rowIdx:r,idx:e.idx})},onFocus:l,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:u})})}),ei=(0,r.memo)(function({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:i,bottom:u,lastFrozenColumnIndex:l,selectedCellIdx:c,isTop:d,showBorder:f,selectCell:h,"aria-rowindex":p}){let m=[];for(let t=0;t<r.length;t++){let i=r[t],o=s(i,l,{type:"SUMMARY",row:n});void 0!==o&&(t+=o-1);let u=c===i.idx;m.push((0,a.jsx)(er,{column:i,colSpan:o,row:n,rowIdx:e,isCellSelected:u,selectCell:h},i.key))}return(0,a.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&&H),style:{...v(t),"--rdg-summary-row-top":void 0!==i?`${i}px`:void 0,"--rdg-summary-row-bottom":void 0!==u?`${u}px`:void 0},children:m})});function eo(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function ea(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}let es=(0,r.forwardRef)(function(e,t){let{columns:n,rows:u,topSummaryRows:p,bottomSummaryRows:v,rowKeyGetter:m,onRowsChange:g,rowHeight:y,headerRowHeight:x,summaryRowHeight:O,selectedRows:R,onSelectedRowsChange:B,sortColumns:z,onSortColumnsChange:q,defaultColumnOptions:W,onCellClick:$,onCellDoubleClick:Z,onCellContextMenu:G,onCellKeyDown:H,onSelectedCellChange:K,onScroll:X,onColumnResize:Q,onColumnsReorder:er,onFill:es,onCopy:eu,onPaste:el,enableVirtualization:ec,renderers:ed,className:ef,style:eh,rowClass:ep,direction:ev,role:em,"aria-label":eg,"aria-labelledby":ey,"aria-describedby":eb,"aria-rowcount":ew,"data-testid":ex}=e,eS=A(),eE=em??"grid",ek=y??35,eC=x??("number"==typeof ek?ek:35),e_=O??("number"==typeof ek?ek:35),eO=ed?.renderRow??eS?.renderRow??ee,eP=ed?.renderSortStatus??eS?.renderSortStatus??en,eI=ed?.renderCheckbox??eS?.renderCheckbox??P,eR=ed?.noRowsFallback??eS?.noRowsFallback,eT=ec??!0,eA=ev??"ltr",[eM,ej]=(0,r.useState)(0),[eN,eL]=(0,r.useState)(0),[eD,eF]=(0,r.useState)(()=>new Map),[eB,eV]=(0,r.useState)(()=>new Map),[eU,ez]=(0,r.useState)(null),[eq,eW]=(0,r.useState)(!1),[e$,eZ]=(0,r.useState)(void 0),[eG,eH]=(0,r.useState)(null),eK=(0,r.useCallback)(e=>eD.get(e.key)??eB.get(e.key)??e.width,[eB,eD]),[eY,eJ,eX]=function(){let e=(0,r.useRef)(null),[t,n]=(0,r.useState)(1),[o,a]=(0,r.useState)(1);return L(()=>{let{ResizeObserver:t}=window;if(null==t)return;let{clientWidth:r,clientHeight:o,offsetWidth:s,offsetHeight:u}=e.current,{width:l,height:c}=e.current.getBoundingClientRect();n(l-s+r),a(c-u+o);let d=new t(e=>{let t=e[0].contentBoxSize[0];(0,i.flushSync)(()=>{n(t.inlineSize),a(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:e8}=function({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:i,scrollLeft:o,enableVirtualization:a}){let s=t?.width??"auto",u=t?.minWidth??50,l=t?.maxWidth??void 0,c=t?.renderCell??I,d=t?.sortable??!1,f=t?.resizable??!1,h=t?.draggable??!1,{columns:p,colSpanColumns:v,lastFrozenColumnIndex:m,headerRowsCount:g}=(0,r.useMemo)(()=>{let t=-1,n=1,r=[];!function e(i,o,a){for(let p of i){if("children"in p){let t={name:p.name,parent:a,idx:-1,colSpan:0,level:0,headerCellClass:p.headerCellClass};e(p.children,o+1,t);continue}let i=p.frozen??!1,v={...p,parent:a,idx:0,level:0,frozen:i,isLastFrozenColumn:!1,width:p.width??s,minWidth:p.minWidth??u,maxWidth:p.maxWidth??l,sortable:p.sortable??d,resizable:p.resizable??f,draggable:p.draggable??h,renderCell:p.renderCell??c};r.push(v),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,s,u,l,c,f,d,h]),{templateColumns:y,layoutCssVars:x,totalFrozenColumnWidth:S,columnMetrics:E}=(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?_(o,r):r.minWidth,i.push(`${o}px`),e.set(r,{width:o,left:t}),t+=o}if(-1!==m){let t=e.get(p[m]);r=t.left+t.width}let o={};for(let t=0;t<=m;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,m]),[k,C]=(0,r.useMemo)(()=>{if(!a)return[0,p.length-1];let e=o+S,t=o+i,n=p.length-1,r=b(m+1,n);if(e>=t)return[r,r];let s=r;for(;s<n;){let{left:t,width:n}=E.get(p[s]);if(t+n>e)break;s++}let u=s;for(;u<n;){let{left:e,width:n}=E.get(p[u]);if(e+n>=t)break;u++}return[w(r,s-1),b(n,u+1)]},[E,p,m,o,S,i,a]);return{columns:p,colSpanColumns:v,colOverscanStartIdx:k,colOverscanEndIdx:C,templateColumns:y,layoutCssVars:x,headerRowsCount:g,lastFrozenColumnIndex:m,totalFrozenColumnWidth:S}}({rawColumns:n,defaultColumnOptions:W,getColumnWidth:eK,scrollLeft:eN,viewportWidth:eJ,enableVirtualization:eT}),e7=p?.length??0,e9=v?.length??0,te=e7+e9,tt=e2+e7,tn=e2-1,tr=-tt,ti=tr+tn,to=u.length+e9-1,[ta,ts]=(0,r.useState)(()=>({idx:-1,rowIdx:tr-1,mode:"SELECT"})),tu=(0,r.useRef)(ta),tl=(0,r.useRef)(e$),tc=(0,r.useRef)(-1),td=(0,r.useRef)(null),tf=(0,r.useRef)(!1),th="treegrid"===eE,tp=e2*eC,tv=eX-tp-te*e_,tm=null!=R&&null!=B,tg="rtl"===eA,ty=tg?"ArrowRight":"ArrowLeft",tb=tg?"ArrowLeft":"ArrowRight",tw=ew??e2+u.length+te,tx=(0,r.useMemo)(()=>({renderCheckbox:eI,renderSortStatus:eP}),[eI,eP]),tS=(0,r.useMemo)(()=>{let{length:e}=u;return 0!==e&&null!=R&&null!=m&&R.size>=e&&u.every(e=>R.has(m(e)))},[u,R,m]),{rowOverscanStartIdx:tE,rowOverscanEndIdx:tk,totalRowHeight:tC,gridTemplateRows:t_,getRowTop:tO,getRowHeight:tP,findRowIdx:tI}=function({rows:e,rowHeight:t,clientHeight:n,scrollTop:i,enableVirtualization:o}){let{totalRowHeight:a,gridTemplateRows:s,getRowTop:u,getRowHeight:l,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:a,gridTemplateRows:s,getRowTop:u,getRowHeight:l,findRowIdx:c}}({rows:u,rowHeight:ek,clientHeight:tv,scrollTop:eM,enableVirtualization:eT}),tR=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:i,bottomSummaryRows:o,colOverscanStartIdx:a,colOverscanEndIdx:u,lastFrozenColumnIndex:l,rowOverscanStartIdx:c,rowOverscanEndIdx:d}){let f=(0,r.useMemo)(()=>{if(0===a)return 0;let e=a,r=(t,n)=>void 0!==n&&t+n>a&&(e=t,!0);for(let a of t){let t=a.idx;if(t>=e||r(t,s(a,l,{type:"HEADER"})))break;for(let e=c;e<=d&&!r(t,s(a,l,{type:"ROW",row:n[e]}));e++);if(null!=i){for(let e of i)if(r(t,s(a,l,{type:"SUMMARY",row:e})))break}if(null!=o){for(let e of o)if(r(t,s(a,l,{type:"SUMMARY",row:e})))break}}return e},[c,d,n,i,o,a,l,t]);return(0,r.useMemo)(()=>{let t=[];for(let n=0;n<=u;n++){let r=e[n];(!(n<f)||r.frozen)&&t.push(r)}return t},[f,u,e])}({columns:eQ,colSpanColumns:e0,colOverscanStartIdx:e3,colOverscanEndIdx:e5,lastFrozenColumnIndex:e1,rowOverscanStartIdx:tE,rowOverscanEndIdx:tk,rows:u,topSummaryRows:p,bottomSummaryRows:v}),{gridTemplateColumns:tT,handleColumnResize:tA}=function(e,t,n,o,a,s,u,l,c,d){let f=(0,r.useRef)(a),h=e.length===t.length,p=h&&a!==f.current,v=[...n],m=[];for(let{key:e,idx:n,width:r}of t)"string"!=typeof r||!p&&u.has(e)||s.has(e)||(v[n]=r,m.push(e));let g=v.join(" ");function y(e){0!==e.length&&c(t=>{let n=new Map(t),r=!1;for(let i of e){let e=D(o,i);r||=e!==t.get(i),void 0===e?n.delete(i):n.set(i,e)}return r?n:t})}return L(()=>{f.current=a,y(m)}),{gridTemplateColumns:g,handleColumnResize:function(e,r){let{key:a}=e,u=[...n],c=[];for(let{key:e,idx:n,width:i}of t)if(a===e){let e="number"==typeof r?`${r}px`:r;u[n]=e}else h&&"string"==typeof i&&!s.has(e)&&(u[n]=i,c.push(e));o.current.style.gridTemplateColumns=u.join(" ");let f="number"==typeof r?r:D(o,a);(0,i.flushSync)(()=>{l(e=>{let t=new Map(e);return t.set(a,f),t}),y(c)}),d?.(e.idx,f)}}}(eQ,tR,e4,eY,eJ,eD,eB,eF,eV,Q),tM=th?-1:0,tj=eQ.length-1,tN=tX(ta),tL=tQ(ta),tD=F(tA),tF=F(er),tB=F(q),tV=F($),tU=F(Z),tz=F(G),tq=F(tH),tW=F(tK),t$=F(t1),tZ=F(({idx:e,rowIdx:t})=>{t1({rowIdx:tr+t-1,idx:e})});L(()=>{if(!tN||ea(ta,tu.current)){tu.current=ta;return}tu.current=ta,-1===ta.idx&&(td.current.focus({preventScroll:!0}),l(td.current))}),L(()=>{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)&&eH({idx:n,rowIdx:r})},selectCell:t1}));let tG=(0,r.useCallback)(e=>{eZ(e),tl.current=e},[]);function tH(e){if(!B)return;if(C(m),"HEADER"===e.type){let t=new Set(R);for(let n of u){let r=m(n);e.checked?t.add(r):t.delete(r)}B(t);return}let{row:t,checked:n,isShiftClick:r}=e,i=new Set(R),o=m(t);if(n){i.add(o);let e=tc.current,n=u.indexOf(t);if(tc.current=n,r&&-1!==e&&e!==n){let t=E(n-e);for(let r=e+t;r!==n;r+=t){let e=u[r];i.add(m(e))}}}else i.delete(o),tc.current=-1;B(i)}function tK(e,t,n){if("function"!=typeof g||n===u[t])return;let r=[...u];r[t]=n,g(r,{indexes:[t],column:e})}function tY(){"EDIT"===ta.mode&&tK(eQ[ta.idx],ta.rowIdx,ta.row)}function tJ(e){return e>=0&&e<u.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:u,selectedPosition:e})}function t1(e,t){if(!tX(e))return;tY();let n=u[e.rowIdx],r=ea(ta,e);t&&t0(e)?ts({...e,mode:"EDIT",row:n,originalRow:n}):r?l(eo(eY.current)):(tf.current=!0,ts({...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:ta})){tY();return}r="CHANGE_ROW"}e.preventDefault();let i=function(e,t,n){let{idx:r,rowIdx:i}=ta,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(ta.rowIdx===tr)return ta;let e=tO(i)+tP(i)-tv;return{idx:r,rowIdx:e>0?tI(e):0}}case"PageDown":{if(ta.rowIdx>=u.length)return ta;let e=tO(i)+tv;return{idx:r,rowIdx:e<tC?tI(e):u.length-1}}default:return ta}}(t,f(e),n);ea(ta,i)||t1(function({moveUp:e,moveNext:t,cellNavigationMode:n,columns:r,colSpanColumns:i,rows:o,topSummaryRows:a,bottomSummaryRows:u,minRowIdx:l,mainHeaderRowIdx:c,maxRowIdx:d,currentPosition:{idx:f,rowIdx:h},nextPosition:p,lastFrozenColumnIndex:v,isCellWithinBounds:m}){let{idx:g,rowIdx:y}=p,b=r.length,w=e=>{for(let t of i){let n=t.idx;if(n>g)break;let r=function({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:a}){let u=t?.length??0;return r===i?s(a,o,{type:"HEADER"}):t&&r>i&&r<=u+i?s(a,o,{type:"SUMMARY",row:t[r+u]}):r>=0&&r<e.length?s(a,o,{type:"ROW",row:e[r]}):n?s(a,o,{type:"SUMMARY",row:n[r-e.length]}):void 0}({rows:o,topSummaryRows:a,bottomSummaryRows:u,rowIdx:y,mainHeaderRowIdx:c,lastFrozenColumnIndex:v,column:t});if(r&&g>n&&g<r+n){g=n+(e?r:0);break}}},x=e=>e.level+c;if(m(p)&&(w(t),y<c&&(()=>{if(t){let e=r[g].parent;for(;void 0!==e;){let t=x(e);if(y===t){g=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=r[g].parent,t=!1;for(;void 0!==e;){let n=x(e);if(y>=n){g=e.idx,y=n,t=!0;break}e=e.parent}t||(g=f,y=h)}})()),"CHANGE_ROW"===n){let e=g===b,t=-1===g;e?y!==d&&(g=0,y+=1):t&&(y!==l&&(y-=1,g=b-1),w(!1))}if(y<c){let e=r[g].parent,t=y;for(y=c;void 0!==e;){let n=x(e);n>=t&&(y=n,g=e.idx),e=e.parent}}return{idx:g,rowIdx:y}}({moveUp:"ArrowUp"===t,moveNext:t===tb||"Tab"===t&&!n,columns:eQ,colSpanColumns:e0,rows:u,topSummaryRows:p,bottomSummaryRows:v,minRowIdx:tr,mainHeaderRowIdx:ti,maxRowIdx:to,lastFrozenColumnIndex:e1,cellNavigationMode:r,currentPosition:ta,nextPosition:i,isCellWithinBounds:tX}))}function t3(){let e=eo(eY.current);null!==e&&(l(e),(e.querySelector('[tabindex="0"]')??e).focus({preventScroll:!0}))}function t5(e){let t=-1===ta.idx?void 0:eQ[ta.idx];return void 0===t||ta.rowIdx!==e||tR.includes(t)?tR:ta.idx>e5?[...tR,t]:[...tR.slice(0,e1+1),t,...tR.slice(e1+1)]}(ta.idx>tj||ta.rowIdx>to)&&(ts({idx:-1,rowIdx:tr-1,mode:"SELECT"}),tG(void 0));let t4=`repeat(${e2}, ${eC}px)`;e7>0&&(t4+=` repeat(${e7}, ${e_}px)`),u.length>0&&(t4+=t_),e9>0&&(t4+=` repeat(${e9}, ${e_}px)`);let t6=-1===ta.idx&&ta.rowIdx!==tr-1;return(0,a.jsxs)("div",{role:eE,"aria-label":eg,"aria-labelledby":ey,"aria-describedby":eb,"aria-multiselectable":!!tm||void 0,"aria-colcount":eQ.length,"aria-rowcount":tw,className:o("rdg rnvodz57-0-0-beta-40",ef,eq&&"rdg-viewport-dragging vlqv91k7-0-0-beta-40"),style:{...eh,scrollPaddingInlineStart:ta.idx>e1||eG?.idx!==void 0?`${e8}px`:void 0,scrollPaddingBlock:tJ(ta.rowIdx)||eG?.rowIdx!==void 0?`${tp+e7*e_}px ${e9*e_}px`:void 0,gridTemplateColumns:tT,gridTemplateRows:t4,"--rdg-header-row-height":`${eC}px`,"--rdg-summary-row-height":`${e_}px`,"--rdg-sign":tg?-1:1,...e6},dir:eA,ref:eY,onScroll:function(e){let{scrollTop:t,scrollLeft:n}=e.currentTarget;(0,i.flushSync)(()=>{ej(t),eL(k(n))}),X?.(e)},onKeyDown:function(e){let{idx:t,rowIdx:n,mode:r}=ta;if("EDIT"===r)return;if(H&&tJ(n)){let r=u[n],i=c(e);if(H({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:a}=e;if(tL&&(null!=el||null!=eu)&&f(e)){if(67===a){!function(){let{idx:e,rowIdx:t}=ta,n=u[t],r=eQ[e].key;ez({row:n,columnKey:r}),eu?.({sourceRow:n,sourceColumnKey:r})}();return}if(86===a){!function(){if(!el||!g||null===eU||!t0(ta))return;let{idx:e,rowIdx:t}=ta,n=eQ[e],r=u[t],i=el({sourceRow:eU.row,sourceColumnKey:eU.columnKey,targetRow:r,targetColumnKey:n.key});tK(n,t,i)}();return}}switch(e.key){case"Escape":ez(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(!tL)return;let t=u[ta.rowIdx],{key:n,shiftKey:r}=e;if(tm&&r&&" "===n){C(m);let n=m(t);tH({type:"ROW",row:t,checked:!R.has(n),isShiftClick:!1}),e.preventDefault();return}t0(ta)&&!d.has(e.key)&&ts(({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t}))}(e)}},"data-testid":ex,children:[(0,a.jsx)(T,{value:tx,children:(0,a.jsxs)(j,{value:tq,children:[(0,a.jsxs)(M,{value:tS,children:[Array.from({length:tn},(e,t)=>(0,a.jsx)(J,{rowIdx:t+1,level:-tn+t,columns:t5(tr+t),selectedCellIdx:ta.rowIdx===tr+t?ta.idx:void 0,selectCell:tZ},t)),(0,a.jsx)(Y,{rowIdx:e2,columns:t5(ti),onColumnResize:tD,onColumnsReorder:tF,sortColumns:z,onSortColumnsChange:tB,lastFrozenColumnIndex:e1,selectedCellIdx:ta.rowIdx===ti?ta.idx:void 0,selectCell:tZ,shouldFocusGrid:!tN,direction:eA})]}),0===u.length&&eR?eR:(0,a.jsxs)(a.Fragment,{children:[p?.map((e,t)=>{let n=e2+1+t,r=ti+1+t,i=ta.rowIdx===r;return a.jsx(ei,{"aria-rowindex":n,rowIdx:r,gridRowStart:n,row:e,top:tp+e_*t,bottom:void 0,viewportColumns:t5(r),lastFrozenColumnIndex:e1,selectedCellIdx:i?ta.idx:void 0,isTop:!0,showBorder:t===e7-1,selectCell:t$},t)}),function(){let e=[],{idx:t,rowIdx:n}=ta,r=tL&&n<tE?tE-1:tE,o=tL&&n>tk?tk+1:tk;for(let l=r;l<=o;l++){let r=l===tE-1||l===tk+1,o=r?n:l,c=tR,d=-1===t?void 0:eQ[t];void 0!==d&&(c=r?[d]:t5(o));let f=u[o],h=tt+o+1,p=o,v=!1;"function"==typeof m&&(p=m(f),v=R?.has(p)??!1),e.push(eO(p,{"aria-rowindex":tt+o+1,"aria-selected":tm?v:void 0,rowIdx:o,row:f,viewportColumns:c,isRowSelected:v,onCellClick:tV,onCellDoubleClick:tU,onCellContextMenu:tz,rowClass:ep,gridRowStart:h,height:tP(o),copiedCellIdx:null!==eU&&eU.row===f?eQ.findIndex(e=>e.key===eU.columnKey):void 0,selectedCellIdx:n===o?t:void 0,draggedOverCellIdx:function(e){if(void 0===e$)return;let{rowIdx:t}=ta;return(t<e$?t<e&&e<=e$:t>e&&e>=e$)?ta.idx:void 0}(o),setDraggedOverRowIdx:eq?tG:void 0,lastFrozenColumnIndex:e1,onRowChange:tW,selectCell:t$,selectedCellEditor:function(e){if(ta.rowIdx!==e||"SELECT"===ta.mode)return;let{idx:t,row:n}=ta,r=eQ[t],o=s(r,e1,{type:"ROW",row:n}),l=e=>{tf.current=e,ts(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))};return u[ta.rowIdx]!==ta.originalRow&&l(!1),(0,a.jsx)(U,{column:r,colSpan:o,row:n,rowIdx:e,onRowChange:(e,t,n)=>{t?(0,i.flushSync)(()=>{tK(r,ta.rowIdx,e),l(n)}):ts(t=>({...t,row:e}))},closeEditor:l,onKeyDown:H,navigate:t2},r.key)}(o)}))}return e}(),v?.map((e,t)=>{let n=tt+u.length+t+1,r=u.length+t,i=ta.rowIdx===r,o=tv>tC?eX-e_*(v.length-t):void 0,s=void 0===o?e_*(v.length-1-t):void 0;return a.jsx(ei,{"aria-rowindex":tw-e9+t+1,rowIdx:r,gridRowStart:n,row:e,top:o,bottom:s,viewportColumns:t5(r),lastFrozenColumnIndex:e1,selectedCellIdx:i?ta.idx:void 0,isTop:!1,showBorder:0===t,selectCell:t$},t)})]})]})}),function(){if(null==es||"EDIT"===ta.mode||!tQ(ta))return;let e=eQ[ta.idx];if(null==e.renderEditCell||!1===e.editable)return;let t=eK(e);return(0,a.jsx)(V,{gridRowStart:tt+ta.rowIdx+1,rows:u,column:e,columnWidth:t,selectedPosition:ta,isCellEditable:t0,latestDraggedOverRowIdx:tl,onRowsChange:g,onClick:t3,onFill:es,setDragging:eW,setDraggedOverRowIdx:tG})}(),tR.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>(0,a.jsx)("div",{className:"mlln6zg7-0-0-beta-40",style:{gridColumnStart:t+1,minWidth:n,maxWidth:r},"data-measuring-cell-key":e},e)),th&&(0,a.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(ta.rowIdx)&&"f1cte0lg7-0-0-beta-40"),style:{gridRowStart:ta.rowIdx+tt+1}}),null!==eG&&(0,a.jsx)(et,{scrollToPosition:eG,setScrollToCellPosition:eH,gridElement:eY.current})]})});function eu(e){e?.focus(),e?.select()}function el({row:e,column:t,onRowChange:n,onClose:r}){return(0,a.jsx)("input",{className:"rdg-text-editor t7vyx3i7-0-0-beta-40",ref:eu,value:e[t.key],onChange:r=>n({...e,[t.key]:r.target.value}),onBlur:()=>r(!0,!1)})}},95379:function(e,t,n){"use strict";n.d(t,{CR:function(){return c},FC:function(){return h},Jh:function(){return u},KL:function(){return p},XA:function(){return l},ZT:function(){return i},_T:function(){return a},ev:function(){return d},mG:function(){return s},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 a(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 s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function l(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),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function 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),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{var n;(n=i[e](t)).value instanceof f?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(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=l(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 g},F0:function(){return v},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?"?":"")},a=e=>{let t=/:([A-Za-z0-9_]+)([?+*]?)/g,n=null,r=0,a=[],s="";for(;null!==(n=t.exec(e));){let[u,l,c]=n,d="+"===c||"*"===c,f="?"===c||"*"===c,h=f&&"/"===e[n.index-1]?1:0,p=e.substring(r,n.index-h);a.push({name:l}),r=t.lastIndex,s+=i(p)+o(d,f,h)}return{keys:a,regexp:RegExp("^"+(s+=i(e.substring(r)))+"(?:\\/)?$","i")}};var s=n(61184);let u={hook:r.ZP,matcher:function(e=a){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:""},l=(0,s.kr)(u),c=()=>(0,s.qp)(l),d=e=>e.hook(e),f=()=>d(c()),h=e=>{let t=c(),[n]=d(t);return t.matcher(e,n)},p=(0,s.kr)({params:{}}),v=({hook:e,matcher:t,ssrPath:n,base:r="",parent:i,children:o})=>{let a=(o,a=i||u)=>(o.hook=e||a.hook,o.matcher=t||a.matcher,o.ssrPath=n||a.ssrPath,o.ownBase=r,o.parent=i,o),[c]=(0,s.eJ)(()=>a({get base(){return(c.parent||u).base+c.ownBase}}));return(0,s.NU)(()=>{a(c)}),(0,s.az)(l.Provider,{value:c,children:o})},m=(e,t)=>(0,s.az)(p.Provider,{value:{params:e},children:t}),g=({path:e,match:t,component:n,children:r})=>{let i=h(e),[o,a]=t||i;return o?n?m(a,(0,s.az)(n,{params:a})):m(a,"function"==typeof r?r(a):r):null};(0,s.Gp)((e,t)=>{let n=c(),[,r]=d(n),{to:i,href:o=i,children:a,onClick:u}=e,l=(0,s.zX)(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(u&&u(t),t.defaultPrevented||(t.preventDefault(),r(i||o,e)))}),f={href:"~"===o[0]?o.slice(1):n.base+o,onClick:l,to:null,ref:t},h=(0,s.l$)(a)?a:(0,s.az)("a",e);return(0,s.Tm)(h,f)});let y=e=>Array.isArray(e)?[].concat(...e.map(e=>e&&e.type===s.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,s.l$)(n)&&(e=n.props.path?r(n.props.path,t||i):[!0,{}])[0])return(0,s.Tm)(n,{match:e})}return null},w=e=>{let{to:t,href:n=t}=e,[,r]=f(),i=(0,s.zX)(()=>r(t||n,e));return(0,s.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:a,useLayoutEffect:s,useRef:u,useInsertionEffect:l}=i,c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s:a,d=l||c,f=e=>{let t=u([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,a="pushState",s="replaceState",u=["popstate",a,s,"hashchange"],l=e=>{for(let t of u)addEventListener(t,e);return()=>{for(let t of u)removeEventListener(t,e)}},c=(e,t)=>(0,r.$N)(l,e,t),d=()=>location.pathname,f=({ssrPath:e}={})=>c(d,e?()=>e:d),h=(e,{replace:t=!1}={})=>history[t?s:a](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[a,s]){let t=history[e];history[e]=function(){let n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}},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:()=>a,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()}},a=t=e(r,i,o);return o},a=e=>e?o(e):o,{useDebugValue:s}=r,{useSyncExternalStoreWithSelector:u}=i,l=e=>e;function c(e,t=l,n){let r=u(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r}let d=(e,t)=>{let n=a(e),r=(e,r=t)=>c(n,e,r);return Object.assign(r,n),r},f=(e,t)=>e?d(e,t):d}}]);
|