/*! For license information please see main.c8b5f9a6b9fb398ef619.js.LICENSE.txt */
var FATVAi;(()=>{var e={2783:(e,t,n)=>{"use strict";n.d(t,{ab:()=>o,li:()=>s,_v:()=>u,QS:()=>c});var r=n(5547),o=new(n(2139).g7),i=new WeakMap;function a(e){var t=i.get(e);return t||i.set(e,t={vars:new Set,dep:(0,r.dP)()}),t}function s(e){a(e).vars.forEach((function(t){return t.forgetCache(e)}))}function u(e){a(e).vars.forEach((function(t){return t.attachCache(e)}))}function c(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach((function(e){a(e).dep.dirty(r),l(e)}));var u=Array.from(n);n.clear(),u.forEach((function(t){return t(e)}))}}else{var c=o.getValue();c&&(i(c),a(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function l(e){e.broadcastWatches&&e.broadcastWatches()}},8577:()=>{},9960:(e,t,n)=>{"use strict";n.d(t,{f:()=>H,J:()=>W});var r=n(162),o=n(9279),i=n(7865),a=i.i.execute;function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}var u=n(6901),c=n(8229),l=n(3349);function d(e){return e.errors&&e.errors.length>0||!1}var f=n(9763),p=n(197),h=n(9280),m=n(8029),v=n(2394),g=n.n(v);function y(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function b(e){function t(t){Object.defineProperty(e,t,{value:g()})}return"function"==typeof Symbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function E(e){return e&&"function"==typeof e.then}var w=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],y(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&Promise.resolve().then((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),y(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?E(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),y(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new(g())(t)]),E(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,r.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(o),e())},o={next:r,error:r,complete:r},i=this.addCount;this.addObserver(o),this.addCount=i},t}(g());function x(e,t,n){return new(g())((function(r){var o=r.next,i=r.error,a=r.complete,s=0,u=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,o&&o.call(r,e),u&&d.complete()}),(function(e){throw--s,e})).catch((function(e){i&&i.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:l(t,o),error:l(n,i),complete:function(){u=!0,s||a&&a.call(r)}},f=e.subscribe(d);return function(){return f.unsubscribe()}}))}b(w);var S,k=n(2653);function C(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(S||(S={}));var O=Object.prototype.toString;function T(e){return _(e)}function _(e,t){switch(O.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=_(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=_(e[n],t)})),r;default:return e}}var N=function(){function e(e,t,n,r){this.observer=e,this.options=t,this.fetch=n,this.shouldFetch=r}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var n=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,s(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,n=this.options.pollInterval;if(n){if((!t||t.interval!==n)&&((0,o.kG)(n,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},S.poll).then(i,i):i())},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),R=function(e){function t(t){var n=t.queryManager,o=t.queryInfo,i=t.options,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.observer={next:function(e){(a.lastError||a.isDifferentFromLastResult(e))&&(a.updateLastResult(e),y(a.observers,"next",e))},error:function(e){a.updateLastResult((0,r.pi)((0,r.pi)({},a.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:S.error,loading:!1})),y(a.observers,"error",a.lastError=e)}},a.isTornDown=!1,a.options=i,a.queryId=n.generateQueryId();var s=(0,p.$H)(i.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a.queryInfo=o,a}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:n},o=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.queryInfo.networkStatus||t&&t.networkStatus||S.ready,o=(0,r.pi)((0,r.pi)({},t),{loading:C(n),networkStatus:n});if(this.isTornDown)return o;var i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if("no-cache"===a||"network-only"===a)delete o.partial;else if(!o.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var s=this.queryInfo.getDiff();o.data=s.complete||this.options.returnPartialData?s.result:void 0,s.complete?(o.networkStatus!==S.loading||"cache-first"!==a&&"cache-only"!==a||(o.networkStatus=S.ready,o.loading=!1),delete o.partial):o.partial=!0}return e&&this.updateLastResult(o),o},t.prototype.isDifferentFromLastResult=function(e){return!(0,c.D)(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(t.fetchPolicy="network-only",t.nextFetchPolicy=n||"cache-first"),e&&!(0,c.D)(this.options.variables,e)&&(t.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,S.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)({},this.options),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),o=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=S.fetchMore,this.observe()),this.queryManager.fetchQuery(o,n,S.fetchMore).then((function(r){var o=r.data,i=e.updateQuery;return i?t.updateQuery((function(e){return i(e,{fetchMoreResult:o,variables:n.variables})})):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:o}),r})).finally((function(){t.queryManager.stopQuery(o),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var o=t.variables;return r(e,{subscriptionData:n,variables:o})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if((0,c.D)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,n=void 0===t?"cache-first":t,r={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(r.fetchPolicy="cache-and-network",r.nextFetchPolicy=n),this.reobserve(r,S.setVariables)},t.prototype.updateQuery=function(e){var t,n=this.queryManager,r=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(n.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),n.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:T(e),(0,f.O)(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var n=e._subscription._observer;n&&!n.error&&(n.error=P)}catch(e){}var r=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),r&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,n=this.queryManager,o=this.queryId;return n.setObservableQuery(this),new N(this.observer,e?this.options:(0,r.pi)({},this.options),(function(e,r){return n.setObservableQuery(t),n.fetchQueryObservable(o,e,r)}),!n.ssrMode&&function(){return!C(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(g());function P(e){}b(R);var I=n(8867),A=n(8803),M=n(7980),L=n(6287),D=n(2783),j=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,o=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,A.Ee)(t.resolvers,e)})):this.resolvers=(0,A.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,o=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,o,i,this.fragmentMatcher,s).then((function(e){return(0,r.pi)((0,r.pi)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,m.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,h.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.pi)((0,r.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,r.pi)((0,r.pi)({},t),e.exportedVariables)}))]:[2,(0,r.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,I.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return I.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,h.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,o,i,a){return void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),(0,r.mG)(this,void 0,void 0,(function(){var s,u,c,l,d,f,h,m,v;return(0,r.Jh)(this,(function(g){return s=(0,p.p$)(e),u=(0,p.kU)(e),c=(0,M.F)(u),l=s.operation,d=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",h=(f=this).cache,m=f.client,v={fragmentMap:c,context:(0,r.pi)((0,r.pi)({},n),{cache:h,client:m}),variables:o,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return(0,r.mG)(this,void 0,void 0,(function(){var i,a,s,u,c,l=this;return(0,r.Jh)(this,(function(d){return i=n.fragmentMap,a=n.context,s=n.variables,u=[t],c=function(e){return(0,r.mG)(l,void 0,void 0,(function(){var c,l;return(0,r.Jh)(this,(function(r){return(0,m.LZ)(e,s)?(0,L.My)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&u.push(((n={})[(0,L.u2)(e)]=t,n))}))]:((0,L.Ao)(e)?c=e:(c=i[e.name.value],(0,o.kG)(c,11)),c&&c.typeCondition&&(l=c.typeCondition.name.value,n.fragmentMatcher(t,l,a))?[2,this.resolveSelectionSet(c.selectionSet,t,n).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return(0,A.bw)(u)}))]}))}))},e.prototype.resolveField=function(e,t,n){return(0,r.mG)(this,void 0,void 0,(function(){var o,i,a,s,u,c,l,d,f,p=this;return(0,r.Jh)(this,(function(r){return o=n.variables,i=e.name.value,a=(0,L.u2)(e),s=i!==a,u=t[a]||t[i],c=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[l])&&(f=d[s?i:a])&&(c=Promise.resolve(D.ab.withValue(this.cache,f,[t,(0,L.NC)(e,o),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then((function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),F=new(l.m?WeakMap:Map);function Z(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return F.set(e,(F.get(e)+1)%1e15),n.apply(this,arguments)})}function U(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var B=function(){function e(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,F.has(e)||(F.set(e,0),Z(e,"evict"),Z(e,"modify"),Z(e,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||S.loading;return this.variables&&this.networkStatus!==S.loading&&!(0,c.D)(this.variables,e.variables)&&(t=S.setVariables),(0,c.D)(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){U(this),this.diff=null,this.dirty=!1},e.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&(0,c.D)(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(e){var t=this,n=this.diff;this.diff=e,this.dirty||(e&&e.result)===(n&&n.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;U(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(C(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var e=this.observableQuery;e&&e.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;n&&"no-cache"===n.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&(0,c.D)(e,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function(e){return t.setDiff(e)}}))},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===F.get(this.cache)&&(0,c.D)(t,n.variables)&&(0,c.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=(0,f.O)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:!this.stopped&&n&&(z(e,t.errorPolicy)?this.cache.performTransaction((function(n){if(r.shouldWrite(e,t.variables))n.writeQuery({query:r.document,data:e.data,variables:t.variables}),r.lastWrite={result:e,variables:t.variables,dmCount:F.get(r.cache)};else if(r.diff&&r.diff.complete)return void(e.data=r.diff.result);var o=n.diff({query:r.document,variables:t.variables,returnPartialData:!0,optimistic:!0});r.stopped||r.updateWatch(t.variables),r.diff=o,o.complete&&(e.data=o.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=S.ready},e.prototype.markError=function(e){return this.networkStatus=S.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function z(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!d(e);return!r&&n&&e.data&&(r=!0),r}var V=Object.prototype.hasOwnProperty,q=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,o=void 0!==r&&r,i=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,u=e.clientAwareness,c=void 0===u?{}:u,d=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(l.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=o,this.clientAwareness=c,this.localState=d||new j({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=i)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(new o.ej(12))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,i=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,u=void 0===s?[]:s,c=e.awaitRefetchQueries,l=void 0!==c&&c,p=e.update,h=e.errorPolicy,m=void 0===h?"none":h,v=e.fetchPolicy,g=e.context,y=void 0===g?{}:g;return(0,r.mG)(this,void 0,void 0,(function(){var e,s,c;return(0,r.Jh)(this,(function(h){switch(h.label){case 0:return(0,o.kG)(t,13),(0,o.kG)(!v||"no-cache"===v,14),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=h.sent(),h.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),i&&this.markMutationOptimistic(i,{mutationId:e,document:t,variables:n,errorPolicy:m,updateQueries:a,update:p}),this.broadcastQueries(),c=this,[2,new Promise((function(o,h){var g,b;c.getObservableFromLink(t,(0,r.pi)((0,r.pi)({},y),{optimisticResponse:i}),n,!1).subscribe({next:function(r){if(d(r)&&"none"===m)b=new k.c({graphQLErrors:r.errors});else{if(s&&(s.loading=!1,s.error=null),"no-cache"!==v)try{c.markMutationResult({mutationId:e,result:r,document:t,variables:n,errorPolicy:m,updateQueries:a,update:p})}catch(e){return void(b=new k.c({networkError:e}))}g=r}},error:function(t){s&&(s.loading=!1,s.error=t),i&&c.cache.removeOptimistic(e),c.broadcastQueries(),h(new k.c({networkError:t}))},complete:function(){if(b&&s&&(s.loading=!1,s.error=b),i&&c.cache.removeOptimistic(e),c.broadcastQueries(),b)h(b);else{"function"==typeof u&&(u=u(g));var t=[];(0,f.O)(u)&&u.forEach((function(e){if("string"==typeof e)c.queries.forEach((function(n){var r=n.observableQuery;r&&r.hasObservers()&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(c.query(n))}})),Promise.all(l?t:[]).then((function(){"ignore"===m&&g&&d(g)&&delete g.errors,o(g)}),h)}}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;if(void 0===t&&(t=this.cache),z(e.result,e.errorPolicy)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],o=e.updateQueries;o&&this.queries.forEach((function(i,a){var s=i.observableQuery,u=s&&s.queryName;if(u&&V.call(o,u)){var c=o[u],l=n.queries.get(a),d=l.document,f=l.variables,h=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),m=h.result;if(h.complete&&m){var v=c(m,{mutationResult:e.result,queryName:d&&(0,p.rY)(d)||void 0,queryVariables:f});v&&r.push({result:v,dataId:"ROOT_QUERY",query:d,variables:f})}}})),t.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&n(t,e.result)}),null)}},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,r.pi)((0,r.pi)({},t),{result:{data:o}}),e)}catch(e){}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=(0,h.Fo)(this.cache.transformForLink(n)),o=this.localState.clientQuery(n),i=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:(0,m.mj)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:i,defaultVars:(0,p.O4)((0,p.$H)(n))},s=function(e){e&&!t.has(e)&&t.set(e,a)};s(e),s(n),s(o),s(i)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.pi)((0,r.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,r.pi)((0,r.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new B(this.cache),n=new R({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e){var t=this;(0,o.kG)(e.query,15),(0,o.kG)("Document"===e.query.kind,16),(0,o.kG)(!e.returnPartialData,17),(0,o.kG)(!e.pollInterval,18);var n=this.generateQueryId();return this.fetchQuery(n,e).finally((function(){return t.stopQuery(n)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(new o.ej(19)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=S.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,o){var i=r.observableQuery;if(i&&i.hasObservers()){var a=i.options.fetchPolicy;i.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(i.refetch()),t.getQuery(o).setDiff(null)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,o=e.errorPolicy,i=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,i=this.getVariables(n,i);var u=function(e){return t.getObservableFromLink(n,s,e,!1).map((function(i){if("no-cache"!==r&&(z(i,o)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),d(i))throw new k.c({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,i,s).then(u);return new(g())((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,o){var i,s,u=this;void 0===o&&(o=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var l=this.inFlightLinkObservables,d=this.link,f={query:c,variables:n,operationName:(0,p.rY)(c)||void 0,context:this.prepareContext((0,r.pi)((0,r.pi)({},t),{forceFetch:!o}))};if(t=f.context,o){var h=l.get(c)||new Map;l.set(c,h);var m=JSON.stringify(n);if(!(s=h.get(m))){var v=new w([a(d,f)]);h.set(m,s=v),v.cleanup((function(){h.delete(m)&&h.size<1&&l.delete(c)}))}}else s=new w([a(d,f)])}else s=new w([g().of({data:{}})]),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(s=x(s,(function(e){return u.localState.runResolvers({document:y,remoteResult:e,context:t,variables:n})}))),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return x(this.getObservableFromLink(e.document,n.context,n.variables),(function(o){var i=(0,f.O)(o.errors);if(r>=e.lastRequestId){if(i&&"none"===n.errorPolicy)throw e.markError(new k.c({graphQLErrors:o.errors}));e.markResult(o,n,t),e.markReady()}var a={data:o.data,loading:!1,networkStatus:e.networkStatus||S.ready};return i&&"ignore"!==n.errorPolicy&&(a.errors=o.errors),a}),(function(t){var n=(0,k.M)(t)?t:new k.c({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=S.loading);var o=this.transform(t.query).document,i=this.getVariables(o,t.variables),a=this.getQuery(e),s=a.networkStatus,u=t.fetchPolicy,c=void 0===u?"cache-first":u,l=t.errorPolicy,d=void 0===l?"none":l,f=t.returnPartialData,p=void 0!==f&&f,h=t.notifyOnNetworkStatusChange,m=void 0!==h&&h,v=t.context,g=void 0===v?{}:v;("cache-first"===c||"cache-and-network"===c||"network-only"===c||"no-cache"===c)&&m&&"number"==typeof s&&s!==n&&C(n)&&("cache-first"!==c&&(c="cache-and-network"),p=!0);var y=Object.assign({},t,{query:o,variables:i,fetchPolicy:c,errorPolicy:d,returnPartialData:p,notifyOnNetworkStatusChange:m,context:g}),b=function(e){return y.variables=e,r.fetchQueryByPolicy(a,y,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return E.cancel(e)}))}));var E=new w(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(b):b(y.variables));return E.cleanup((function(){r.fetchCancelFns.delete(e);var n=t.nextFetchPolicy;n&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"==typeof n?n.call(t,t.fetchPolicy||"cache-first"):n)})),E},e.prototype.fetchQueryByPolicy=function(e,t,n){var o=this,i=t.query,a=t.variables,s=t.fetchPolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context;e.init({document:i,variables:a,networkStatus:n});var d=function(){return e.getDiff(a)},f=function(t,n){void 0===n&&(n=e.networkStatus||S.loading);var s=t.result;var u=function(e){return g().of((0,r.pi)({data:e,loading:C(n),networkStatus:n},t.complete?null:{partial:!0}))};return o.transform(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:s},context:l,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data)})):u(s)},p=function(t){return o.getResultsFromLink(e,t,{variables:a,context:l,fetchPolicy:s,errorPolicy:u})};switch(s){default:case"cache-first":return(h=d()).complete?[f(h,e.markReady())]:c?[f(h),p(!0)]:[p(!0)];case"cache-and-network":var h;return(h=d()).complete||c?[f(h),p(!0)]:[p(!0)];case"cache-only":return[f(d(),e.markReady())];case"network-only":return[p(!0)];case"no-cache":return[p(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new B(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},e}();function W(e,t){return s(e,t,t.variables&&{variables:(0,r.pi)((0,r.pi)({},e.variables),t.variables)})}var H=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,a=e.headers,s=e.cache,c=e.ssrMode,l=void 0!==c&&c,d=e.ssrForceFetchDelay,f=void 0===d?0:d,p=e.connectToDevTools,h=void 0===p?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:p,m=e.queryDeduplication,v=void 0===m||m,g=e.defaultOptions,y=e.assumeImmutableResults,b=void 0!==y&&y,E=e.resolvers,w=e.typeDefs,x=e.fragmentMatcher,S=e.name,k=e.version,C=e.link;if(C||(C=n?new u.u({uri:n,credentials:r,headers:a}):i.i.empty()),!s)throw new o.ej(9);this.link=C,this.cache=s,this.disableNetworkFetches=l||f>0,this.queryDeduplication=v,this.defaultOptions=g||{},this.typeDefs=w,f&&setTimeout((function(){return t.disableNetworkFetches=!1}),f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new j({cache:s,client:this,resolvers:E,fragmentMatcher:x}),this.queryManager=new q({cache:this.cache,link:this.link,queryDeduplication:v,ssrMode:l,clientAwareness:{name:S,version:k},localState:this.localState,assumeImmutableResults:b,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=W(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=W(this.defaultOptions.query,e)),(0,o.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=W(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},6374:(e,t,n)=>{"use strict";n.d(t,{ApolloLink:()=>i.i0,split:()=>i.Vl});var r=n(426);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"ApolloProvider")&&n.d(t,{ApolloProvider:function(){return r.ApolloProvider}}),n.o(r,"split")&&n.d(t,{split:function(){return r.split}}),n.o(r,"useMutation")&&n.d(t,{useMutation:function(){return r.useMutation}}),n.o(r,"useSubscription")&&n.d(t,{useSubscription:function(){return r.useSubscription}});var o=n(8577);n.o(o,"ApolloLink")&&n.d(t,{ApolloLink:function(){return o.ApolloLink}}),n.o(o,"ApolloProvider")&&n.d(t,{ApolloProvider:function(){return o.ApolloProvider}}),n.o(o,"split")&&n.d(t,{split:function(){return o.split}}),n.o(o,"useMutation")&&n.d(t,{useMutation:function(){return o.useMutation}}),n.o(o,"useSubscription")&&n.d(t,{useSubscription:function(){return o.useSubscription}});var i=n(2093);n.o(i,"ApolloProvider")&&n.d(t,{ApolloProvider:function(){return i.ApolloProvider}}),n.o(i,"useMutation")&&n.d(t,{useMutation:function(){return i.useMutation}}),n.o(i,"useSubscription")&&n.d(t,{useSubscription:function(){return i.useSubscription}}),(0,n(9279).U6)("log")},426:()=>{},2653:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,c:()=>a});var r=n(162),o=n(9763);function i(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){function t(n){var r,i,a=n.graphQLErrors,s=n.networkError,u=n.errorMessage,c=n.extraInfo,l=e.call(this,u)||this;return l.graphQLErrors=a||[],l.networkError=s||null,l.message=u||(r=l,i="",(0,o.O)(r.graphQLErrors)&&r.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";i+=t+"\n"})),r.networkError&&(i+=r.networkError.message+"\n"),i=i.replace(/\n$/,"")),l.extraInfo=c,l.__proto__=t.prototype,l}return(0,r.ZT)(t,e),t}(Error)},735:(e,t,n)=>{"use strict";n.d(t,{ApolloProvider:()=>o.eT,useMutation:()=>o.useMutation,useSubscription:()=>o.useSubscription});var r=n(6374);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"ApolloProvider")&&n.d(t,{ApolloProvider:function(){return r.ApolloProvider}}),n.o(r,"split")&&n.d(t,{split:function(){return r.split}}),n.o(r,"useMutation")&&n.d(t,{useMutation:function(){return r.useMutation}}),n.o(r,"useSubscription")&&n.d(t,{useSubscription:function(){return r.useSubscription}});var o=n(2975);n.o(o,"ApolloLink")&&n.d(t,{ApolloLink:function(){return o.ApolloLink}}),n.o(o,"split")&&n.d(t,{split:function(){return o.split}})},7865:(e,t,n)=>{"use strict";n.d(t,{i:()=>d});var r=n(162),o=n(9279),i=n(2394),a=n.n(i);var s=n(197);function u(e,t){return t?t(e):a().of()}function c(e){return"function"==typeof e?new d(e):e}function l(e){return e.request.length<=1}!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}(0,r.ZT)(t,e)}(Error);var d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return a().of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var o=c(n),i=c(r||new e(u));return l(o)&&l(i)?new e((function(e){return t(e)?o.request(e)||a().of():i.request(e)||a().of()})):new e((function(e,n){return t(e)?o.request(e,n)||a().of():i.request(e,n)||a().of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=(0,r.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,r.pi)((0,r.pi)({},n),e(n)):(0,r.pi)((0,r.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,r.pi)({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,s.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw new o.ej(26)}return e}(t))))||a().of()},e.concat=function(t,n){var r=c(t);if(l(r))return r;var o=c(n);return l(o)?new e((function(e){return r.request(e,(function(e){return o.request(e)||a().of()}))||a().of()})):new e((function(e,t){return r.request(e,(function(e){return o.request(e,t)||a().of()}))||a().of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new o.ej(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},2093:(e,t,n)=>{"use strict";n.d(t,{Vl:()=>r.V,i0:()=>o.i});var r=n(6249),o=n(7865),i=n(8770);n.o(i,"ApolloProvider")&&n.d(t,{ApolloProvider:function(){return i.ApolloProvider}}),n.o(i,"useMutation")&&n.d(t,{useMutation:function(){return i.useMutation}}),n.o(i,"useSubscription")&&n.d(t,{useSubscription:function(){return i.useSubscription}})},6249:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var r=n(7865).i.split},8770:()=>{},6901:(e,t,n)=>{"use strict";n.d(t,{u:()=>C});var r=n(162),o=n(7865),i=n(8867),a=n(2394),s=n.n(a),u=n(9279),c=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=new u.ej(23);throw r.parseError=e,r}return n},l=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},d=Object.prototype.hasOwnProperty;var f=n(5717);function p(e){return(0,i.Vn)(e,{leave:h})}var h={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return v(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=y("(",v(e.variableDefinitions,", "),")"),o=v(e.directives," "),i=e.selectionSet;return n||o||r||"query"!==t?v([t,v([n,r]),o,i]," "):i},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,o=e.directives;return t+": "+n+y(" = ",r)+y(" ",v(o," "))},SelectionSet:function(e){return g(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,o=e.directives,i=e.selectionSet,a=y("",t,": ")+n,s=a+y("(",v(r,", "),")");return s.length>80&&(s=a+y("(\n",b(v(r,"\n")),"\n)")),v([s,v(o," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+y(" ",v(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return v(["...",y("on ",t),v(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,o=e.directives,i=e.selectionSet;return"fragment ".concat(t).concat(y("(",v(r,", "),")")," ")+"on ".concat(n," ").concat(y("",v(o," ")," "))+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,f.LZ)(n,"description"===t?"":"  "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+v(e.values,", ")+"]"},ObjectValue:function(e){return"{"+v(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+y("(",v(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:m((function(e){var t=e.directives,n=e.operationTypes;return v(["schema",v(t," "),g(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:m((function(e){return v(["scalar",e.name,v(e.directives," ")]," ")})),ObjectTypeDefinition:m((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return v(["type",t,y("implements ",v(n," & ")),v(r," "),g(o)]," ")})),FieldDefinition:m((function(e){var t=e.name,n=e.arguments,r=e.type,o=e.directives;return t+(w(n)?y("(\n",b(v(n,"\n")),"\n)"):y("(",v(n,", "),")"))+": "+r+y(" ",v(o," "))})),InputValueDefinition:m((function(e){var t=e.name,n=e.type,r=e.defaultValue,o=e.directives;return v([t+": "+n,y("= ",r),v(o," ")]," ")})),InterfaceTypeDefinition:m((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return v(["interface",t,y("implements ",v(n," & ")),v(r," "),g(o)]," ")})),UnionTypeDefinition:m((function(e){var t=e.name,n=e.directives,r=e.types;return v(["union",t,v(n," "),r&&0!==r.length?"= "+v(r," | "):""]," ")})),EnumTypeDefinition:m((function(e){var t=e.name,n=e.directives,r=e.values;return v(["enum",t,v(n," "),g(r)]," ")})),EnumValueDefinition:m((function(e){return v([e.name,v(e.directives," ")]," ")})),InputObjectTypeDefinition:m((function(e){var t=e.name,n=e.directives,r=e.fields;return v(["input",t,v(n," "),g(r)]," ")})),DirectiveDefinition:m((function(e){var t=e.name,n=e.arguments,r=e.repeatable,o=e.locations;return"directive @"+t+(w(n)?y("(\n",b(v(n,"\n")),"\n)"):y("(",v(n,", "),")"))+(r?" repeatable":"")+" on "+v(o," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return v(["extend schema",v(t," "),g(n)]," ")},ScalarTypeExtension:function(e){return v(["extend scalar",e.name,v(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return v(["extend type",t,y("implements ",v(n," & ")),v(r," "),g(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return v(["extend interface",t,y("implements ",v(n," & ")),v(r," "),g(o)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return v(["extend union",t,v(n," "),r&&0!==r.length?"= "+v(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return v(["extend enum",t,v(n," "),g(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return v(["extend input",t,v(n," "),g(r)]," ")}};function m(e){return function(t){return v([t.description,e(t)],"\n")}}function v(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function g(e){return y("{\n",b(v(e,"\n")),"\n}")}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function b(e){return y("  ",e.replace(/\n/g,"\n  "))}function E(e){return-1!==e.indexOf("\n")}function w(e){return null!=e&&e.some(E)}var x={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function S(e){return new(s())((function(t){t.error(e)}))}var k=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,a=e.fetch,f=e.includeExtensions,h=e.useGETForQueries,m=e.includeUnusedVariables,v=void 0!==m&&m,g=(0,r._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function(e){if(!e&&"undefined"==typeof fetch)throw new u.ej(22)}(a),a||(a=fetch);var y={http:{includeExtensions:f},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new o.i((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),o=e.getContext(),u={};if(o.clientAwareness){var f=o.clientAwareness,m=f.name,g=f.version;m&&(u["apollographql-client-name"]=m),g&&(u["apollographql-client-version"]=g)}var b,E=(0,r.pi)((0,r.pi)({},u),o.headers),w={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:E},k=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i=(0,r.pi)((0,r.pi)({},t.options),{headers:t.headers,credentials:t.credentials}),a=t.http||{};n.forEach((function(e){i=(0,r.pi)((0,r.pi)((0,r.pi)({},i),e.options),{headers:(0,r.pi)((0,r.pi)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),a=(0,r.pi)((0,r.pi)({},a),e.http)}));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,d={operationName:s,variables:c};return a.includeExtensions&&(d.extensions=u),a.includeQuery&&(d.query=p(l)),{options:i,body:d}}(e,x,y,w),C=k.options,O=k.body;if(O.variables&&!v){var T=new Set(Object.keys(O.variables));(0,i.Vn)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&T.delete(e.name.value)}}),T.size&&(O.variables=(0,r.pi)({},O.variables),T.forEach((function(e){delete O.variables[e]})))}if(!C.signal){var _=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),N=_.controller,R=_.signal;(b=N)&&(C.signal=R)}if(h&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(C.method="GET"),"GET"===C.method){var P=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=c(t.variables)}catch(e){return{parseError:e}}r("variables",o)}if(t.extensions){var i=void 0;try{i=c(t.extensions)}catch(e){return{parseError:e}}r("extensions",i)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+a}}(t,O),I=P.newURI,A=P.parseError;if(A)return S(A);t=I}else try{C.body=c(O)}catch(A){return S(A)}return new(s())((function(n){var r;return a(t,C).then((function(t){return e.setContext({response:t}),t})).then((r=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}})).then((function(t){return e.status>=300&&l(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||d.call(t,"data")||d.call(t,"errors")||l(e,t,"Server response was missing for query '"+(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName)+"'."),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){b&&b.abort()}}))}))},C=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,k(t).request)||this;return n.options=t,n}return(0,r.ZT)(t,e),t}(o.i)},9279:(e,t,n)=>{"use strict";n.d(t,{ej:()=>s,kG:()=>u,U6:()=>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)};Object.create;Object.create;var o="Invariant Violation",i=Object.setPrototypeOf,a=void 0===i?function(e,t){return e.__proto__=t,e}:i,s=function(e){function t(n){void 0===n&&(n=o);var r=e.call(this,"number"==typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,a(r,t.prototype),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t}(Error);function u(e,t){if(!e)throw new s(t)}var c=["log","warn","error","silent"],l=c.indexOf("log");function d(e){return function(){if(c.indexOf(e)>=l)return console[e].apply(console,arguments)}}function f(e){var t=c[l];return l=Math.max(0,c.indexOf(e)),t}!function(e){e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(u||(u={}));"object"==typeof process&&process},162:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>o,pi:()=>i,_T:()=>a,mG:()=>s,Jh:()=>u,pr:()=>c});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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t 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,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}},6505:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(2784),o=new(n(3349).m?WeakMap:Map);function i(){var e=o.get(r.createContext);return e||((e=r.createContext({})).displayName="ApolloContext",o.set(r.createContext,e)),e}},8602:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var r=n(2784),o=n(9279),i=n(6505),a=function(e){var t=e.client,n=e.children,a=(0,i.K)();return r.createElement(a.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),(0,o.kG)(e.client,28),r.createElement(a.Provider,{value:e},n)}))}},322:(e,t,n)=>{"use strict";n.d(t,{Db:()=>m,mU:()=>g});var r,o=n(162),i=n(2784),a=n(8229),s=n(9279);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var u=new Map;function c(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}var l=n(2653),d=function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!(0,a.D)(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;(0,s.kG)(!!e,29);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var n=function(e){var t,n,o=u.get(e);if(o)return o;(0,s.kG)(!!e&&!!e.kind,34);var i=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),c=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),l=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));(0,s.kG)(!i.length||a.length||c.length||l.length,35),(0,s.kG)(a.length+c.length+l.length<=1,36),n=a.length?r.Query:r.Mutation,a.length||c.length||(n=r.Subscription);var d=a.length?a:c.length?c:l;(0,s.kG)(1===d.length,37);var f=d[0];t=f.variableDefinitions||[];var p={name:f.name&&"Name"===f.name.kind?f.name.value:"data",type:n,variables:t};return u.set(e,p),p}(e);c(t),c(n.type);(0,s.kG)(n.type===t,30)},e}(),f=n(9960),p=function(e){function t(t){var n=t.options,o=t.context,i=t.result,a=t.setResult,s=e.call(this,n,o)||this;return s.runMutation=function(e){void 0===e&&(e={}),s.onMutationStart();var t=s.generateNewMutationId();return s.mutate(e).then((function(e){return s.onMutationCompleted(e,t),e})).catch((function(e){var n=s.getOptions().onError;if(s.onMutationError(e,t),n)return n(e),{data:void 0,errors:e};throw e}))},s.verifyDocumentType(n.mutation,r.Mutation),s.result=i,s.setResult=a,s.mostRecentMutationId=0,s}return(0,o.ZT)(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,r.Mutation),[this.runMutation,(0,o.pi)((0,o.pi)({},e),{client:this.refreshClient().client})]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){return this.refreshClient().client.mutate((0,f.J)(this.getOptions(),e))},t.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,o=n.ignoreResults,i=e.data,a=e.errors,s=a&&a.length>0?new l.c({graphQLErrors:a}):void 0;this.isMostRecentMutation(t)&&!o&&this.updateResult({called:!0,loading:!1,data:i,error:s}),r&&r(i)},t.prototype.onMutationError=function(e,t){this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0})},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){if(this.isMounted&&(!this.previousResult||!(0,a.D)(this.previousResult,e)))return this.setResult(e),this.previousResult=e,e},t}(d),h=n(6505);function m(e,t){var n=(0,i.useContext)((0,h.K)()),r=(0,i.useState)({called:!1,loading:!1}),a=r[0],s=r[1],u=t?(0,o.pi)((0,o.pi)({},t),{mutation:e}):{mutation:e},c=(0,i.useRef)();var l=(c.current||(c.current=new p({options:u,context:n,result:a,setResult:s})),c.current);return l.setOptions(u),l.context=n,(0,i.useEffect)((function(){return l.afterExecute()})),l.execute(a)}var v=function(e){function t(t){var n=t.options,r=t.context,o=t.setResult,i=e.call(this,n,r)||this;return i.currentObservable={},i.setResult=o,i.initialize(n),i}return(0,o.ZT)(t,e),t.prototype.execute=function(e){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var n=this.getOptions().shouldResubscribe;return"function"==typeof n&&(n=!!n(this.getOptions())),!1!==n&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,a.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,o.pi)((0,o.pi)({},t),{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy,context:e.context}))},t.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this;Promise.resolve().then((function(){var t=e.getOptions().onSubscriptionComplete;t&&t(),e.endSubscription()}))},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t}(d);function g(e,t){var n=(0,i.useContext)((0,h.K)()),r=t?(0,o.pi)((0,o.pi)({},t),{subscription:e}):{subscription:e},a=(0,i.useState)({loading:!r.skip,error:void 0,data:void 0}),s=a[0],u=a[1],c=(0,i.useRef)();var l=(c.current||(c.current=new v({options:r,context:n,setResult:u})),c.current);return l.setOptions(r,!0),l.context=n,(0,i.useEffect)((function(){return l.afterExecute()})),(0,i.useEffect)((function(){return l.cleanup.bind(l)}),[]),l.execute(s)}},2975:(e,t,n)=>{"use strict";n.d(t,{eT:()=>r.e,useMutation:()=>o.Db,useSubscription:()=>o.mU});var r=n(8602),o=n(322),i=n(1180);n.o(i,"ApolloLink")&&n.d(t,{ApolloLink:function(){return i.ApolloLink}}),n.o(i,"split")&&n.d(t,{split:function(){return i.split}})},1180:()=>{},9763:(e,t,n)=>{"use strict";function r(e){return Array.isArray(e)&&e.length>0}n.d(t,{O:()=>r})},3349:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},8803:(e,t,n)=>{"use strict";n.d(t,{Ee:()=>i,bw:()=>a,w0:()=>c});var r=n(162),o=Object.prototype.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)}function a(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new c,o=1;o<n;++o)t=r.merge(t,e[o]);return t}function s(e){return null!==e&&"object"==typeof e}var u=function(e,t,n){return this.merge(e[n],t[n])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return s(t)&&s(e)?(Object.keys(t).forEach((function(a){if(o.call(e,a)){var s=e[a];if(t[a]!==s){var u=n.reconciler.apply(n,(0,r.pr)([e,t,a],i));u!==s&&((e=n.shallowCopyForMerge(e))[a]=u)}}else(e=n.shallowCopyForMerge(e))[a]=t[a]})),e):t},e.prototype.shallowCopyForMerge=function(e){return s(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,r.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},8029:(e,t,n)=>{"use strict";n.d(t,{LZ:()=>i,FS:()=>a,mj:()=>s});var r=n(8867),o=n(9279);function i(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments;e.name.value;(0,o.kG)(n&&1===n.length,39);var r=n[0];(0,o.kG)(r.name&&"if"===r.name.value,40);var i=r.value;(0,o.kG)(i&&("Variable"===i.kind||"BooleanValue"===i.kind),41),t.push({directive:e,ifArgument:r})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],(0,o.kG)(void 0!==i,38)):i=r.value.value,"skip"===n.name.value?!i:i}))}function a(e,t){return function(e){var t=[];return(0,r.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function s(e){return e&&a(["client"],e)&&a(["export"],e)}},7980:(e,t,n)=>{"use strict";n.d(t,{Yk:()=>i,F:()=>a,hi:()=>s});var r=n(162),o=n(9279);function i(e,t){var n=t,i=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new o.ej(42);"FragmentDefinition"===e.kind&&i.push(e)})),void 0===n&&((0,o.kG)(1===i.length,43),n=i[0].name.value),(0,r.pi)((0,r.pi)({},e),{definitions:(0,r.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return(0,o.kG)(n,44),n;default:return null}}},197:(e,t,n)=>{"use strict";n.d(t,{A$:()=>i,$H:()=>a,rY:()=>s,kU:()=>u,iW:()=>c,pD:()=>l,p$:()=>d,O4:()=>f});var r=n(9279),o=n(6287);function i(e){(0,r.kG)(e&&"Document"===e.kind,45);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new r.ej(46);return e}));return(0,r.kG)(t.length<=1,47),e}function a(e){return i(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function s(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function u(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function c(e){var t=a(e);return(0,r.kG)(t&&"query"===t.operation,48),t}function l(e){(0,r.kG)("Document"===e.kind,49),(0,r.kG)(e.definitions.length<=1,50);var t=e.definitions[0];return(0,r.kG)("FragmentDefinition"===t.kind,51),t}function d(e){var t;i(e);for(var n=0,o=e.definitions;n<o.length;n++){var a=o[n];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw new r.ej(52)}function f(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&(0,o.vb)(t,e.variable.name,e.defaultValue)})),t}},6287:(e,t,n)=>{"use strict";n.d(t,{kQ:()=>s,Yk:()=>u,vb:()=>c,vf:()=>l,PT:()=>f,NC:()=>p,u2:()=>h,qw:()=>m,My:()=>v,Ao:()=>g});var r=n(5695),o=n.n(r),i=n(9279),a=n(7980);function s(e){return{__ref:String(e)}}function u(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return c(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return c(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.ej(53);e[t.value]=null}}function l(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var o=r.name,i=r.value;return c(n[e.name.value],o,i,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,o=e.value;return c(r,n,o,t)}))),f(e.name.value,r,n)}var d=["connection","include","skip","client","rest","export"];function f(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+JSON.stringify(i)+")"}return n.connection.key}var a=e;if(t){var s=o()(t);a+="("+s+")"}return n&&Object.keys(n).forEach((function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function p(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return c(n,r,o,t)})),n}return null}function h(e){return e.alias?e.alias.value:e.name.value}function m(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,o=t.selections;r<o.length;r++){var i=o[r];if(v(i)){if("__typename"===i.name.value)return e[h(i)]}else{var s=m(e,(0,a.hi)(i,n).selectionSet,n);if("string"==typeof s)return s}}}function v(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},9280:(e,t,n)=>{"use strict";n.d(t,{Gw:()=>h,aL:()=>y,ob:()=>b,Fo:()=>v});var r=n(162),o=n(8867),i=(n(9279),n(197));function a(e,t,n){var r=0;return e.forEach((function(n,o){t.call(this,n,o,e)&&(e[r++]=n)}),n),e.length=r,e}var s=n(6287),u=n(7980),c={kind:"Field",name:{kind:"Name",value:"__typename"}};function l(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&l(t[e.name.value],t)}))}function d(e){return l((0,i.$H)(e)||(0,i.pD)(e),(0,u.F)((0,i.kU)(e)))?null:e}function f(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function p(e,t){var n=Object.create(null),i=[],s=Object.create(null),u=[],c=d((0,o.Vn)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(f(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&g(t.selectionSet).forEach((function(e){u.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){s[e.name.value]=!0}},Directive:{enter:function(t){if(f(e)(t))return null}}}));return c&&a(i,(function(e){return!!e.name&&!n[e.name]})).length&&(c=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return d((0,o.Vn)(t,{OperationDefinition:{enter:function(t){return(0,r.pi)((0,r.pi)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(i,c)),c&&a(u,(function(e){return!!e.name&&!s[e.name]})).length&&(c=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return d((0,o.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(u,c)),c}function h(e){return(0,o.Vn)((0,i.A$)(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var o=e.selections;if(o)if(!o.some((function(e){return(0,s.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!((0,s.My)(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return(0,r.pi)((0,r.pi)({},e),{selections:(0,r.pr)(o,[c])})}}}}})}h.added=function(e){return e===c};var m={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function v(e){return p([m],(0,i.A$)(e))}function g(e){var t=[];return e.selections.forEach((function(e){((0,s.My)(e)||(0,s.Ao)(e))&&e.selectionSet?g(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function y(e){return"query"===(0,i.p$)(e).operation?e:(0,o.Vn)(e,{OperationDefinition:{enter:function(e){return(0,r.pi)((0,r.pi)({},e),{operation:"query"})}}})}function b(e){(0,i.A$)(e);var t=p([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,o.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return(0,s.My)(e)&&"__typename"===e.name.value})))return null}}})),t}},4859:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},3291:(e,t,n)=>{var r=n(8921).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},8921:e=>{function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"}},1128:(e,t,n)=>{"use strict";n.d(t,{mi:()=>s,_4:()=>c,U1:()=>l,_j:()=>d,$n:()=>f});var r=n(1606);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),a({type:c,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?d(e,t):f(e,t)}function l(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},5656:(e,t,n)=>{"use strict";n.d(t,{X:()=>i,Z:()=>a});var r=n(7896),o=n(9740),i=["xs","sm","md","lg","xl"];function a(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,a=e.unit,s=void 0===a?"px":a,u=e.step,c=void 0===u?5:u,l=(0,o.Z)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=i.indexOf(t);return r===i.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[i[r+1]]?n[i[r+1]]:t)-c/100).concat(s,")")}return(0,r.Z)({keys:i,values:n,up:d,down:function(e){var t=i.indexOf(e)+1,r=n[i[t]];return t===i.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},l)}},331:(e,t,n)=>{"use strict";n.d(t,{Z:()=>M});var r=n(9740),o=n(7057),i=n(5656),a=n(6666),s=n(7896);function u(e,t,n){var r;return(0,s.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,a.Z)({},e.up("sm"),(0,s.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,a.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,a.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(1606);const l={black:"#000",white:"#fff"};var d=n(5410);const f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const g={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var y=n(1128),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.white,default:d.Z[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},E={text:{primary:l.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d.Z[800],default:"#303030"},action:{active:l.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,y.$n)(e.main,o):"dark"===t&&(e.dark=(0,y._j)(e.main,i)))}function x(e){var t=e.primary,n=void 0===t?{light:f[300],main:f[500],dark:f[700]}:t,i=e.secondary,a=void 0===i?{light:p.A200,main:p.A400,dark:p.A700}:i,u=e.error,x=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,S=e.warning,k=void 0===S?{light:m[300],main:m[500],dark:m[700]}:S,C=e.info,O=void 0===C?{light:v[300],main:v[500],dark:v[700]}:C,T=e.success,_=void 0===T?{light:g[300],main:g[500],dark:g[700]}:T,N=e.type,R=void 0===N?"light":N,P=e.contrastThreshold,I=void 0===P?3:P,A=e.tonalOffset,M=void 0===A?.2:A,L=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return(0,y.mi)(e,E.text.primary)>=I?E.text.primary:b.text.primary}var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,s.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return w(e,"light",n,M),w(e,"dark",r,M),e.contrastText||(e.contrastText=D(e.main)),e},F={dark:E,light:b};return(0,o.Z)((0,s.Z)({common:l,type:R,primary:j(n),secondary:j(a,"A400","A200","A700"),error:j(x),warning:j(k),info:j(O),success:j(_),grey:d.Z,contrastThreshold:I,getContrastText:D,augmentColor:j,tonalOffset:M},F[R]),L)}function S(e){return Math.round(1e5*e)/1e5}var k={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function O(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,a=void 0===i?C:i,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,d=void 0===l?300:l,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,E=n.allVariants,w=n.pxToRem,x=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var O=c/14,T=w||function(e){return"".concat(e/b*O,"rem")},_=function(e,t,n,r,o){return(0,s.Z)({fontFamily:a,fontWeight:e,fontSize:T(t),lineHeight:n},a===C?{letterSpacing:"".concat(S(r/t),"em")}:{},o,E)},N={h1:_(d,96,1.167,-1.5),h2:_(d,60,1.2,-.5),h3:_(p,48,1.167,0),h4:_(p,34,1.235,.25),h5:_(p,24,1.334,0),h6:_(m,20,1.6,.15),subtitle1:_(p,16,1.75,.15),subtitle2:_(m,14,1.57,.1),body1:_(p,16,1.5,.15),body2:_(p,14,1.43,.15),button:_(m,14,1.75,.4,k),caption:_(p,12,1.66,.4),overline:_(p,12,2.66,1,k)};return(0,o.Z)((0,s.Z)({htmlFontSize:b,pxToRem:T,round:S,fontFamily:a,fontSize:c,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},N),x,{clone:!1})}function T(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const _=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];const N={borderRadius:4};var R=n(8971);function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,R.h)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var I=n(9265),A=n(8816);const M=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.mixins,s=void 0===a?{}:a,c=e.palette,l=void 0===c?{}:c,d=e.spacing,f=e.typography,p=void 0===f?{}:f,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=x(l),v=(0,i.Z)(n),g=P(d),y=(0,o.Z)({breakpoints:v,direction:"ltr",mixins:u(v,g,s),overrides:{},palette:m,props:{},shadows:_,typography:O(m,p),spacing:g,shape:N,transitions:I.ZP,zIndex:A.Z},h),b=arguments.length,E=new Array(b>1?b-1:0),w=1;w<b;w++)E[w-1]=arguments[w];return y=E.reduce((function(e,t){return(0,o.Z)(e,t)}),y)}},9663:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(331).Z)()},9265:(e,t,n)=>{"use strict";n.d(t,{x9:()=>i,ZP:()=>s});var r=n(9740),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?i.standard:n,u=t.easing,c=void 0===u?o.easeInOut:u,l=t.delay,d=void 0===l?0:l;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:a(s)," ").concat(c," ").concat("string"==typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},5459:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7896),o=n(2337),i=n(9663);const a=function(e,t){return(0,o.Z)(e,(0,r.Z)({defaultTheme:i.Z},t))}},8816:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},7580:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1606);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},1375:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:()=>r})},6239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(7896),o=n(2784),i=n(9740),a=(n(3980),n(6277)),s=n(5459),u=n(7580),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.color,d=void 0===l?"inherit":l,f=e.component,p=void 0===f?"svg":f,h=e.fontSize,m=void 0===h?"default":h,v=e.htmlColor,g=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,E=(0,i.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,(0,r.Z)({className:(0,a.Z)(s.root,c,"inherit"!==d&&s["color".concat((0,u.Z)(d))],"default"!==m&&s["fontSize".concat((0,u.Z)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},E),n,g?o.createElement("title",null,g):null)}));c.muiName="SvgIcon";const l=(0,s.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c);function d(e,t){var n=function(t,n){return o.createElement(l,(0,r.Z)({ref:n},t),e)};return n.muiName=l.muiName,o.memo(o.forwardRef(n))}},708:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,s=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:()=>r})},6009:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.Z,createChainedFunction:()=>o.Z,createSvgIcon:()=>i.Z,debounce:()=>a.Z,deprecatedPropType:()=>s,isMuiElement:()=>u.Z,ownerDocument:()=>c.Z,ownerWindow:()=>l.Z,requirePropFactory:()=>d,setRef:()=>f.Z,unstable_useId:()=>g.Z,unsupportedProp:()=>p,useControlled:()=>h.Z,useEventCallback:()=>m.Z,useForkRef:()=>v.Z,useIsFocusVisible:()=>y.Z});var r=n(7580),o=n(1375),i=n(6239),a=n(708);function s(e,t){return function(){return null}}var u=n(3996),c=n(8732),l=n(6982);function d(e){return function(){return null}}var f=n(2955);function p(e,t,n,r,o){return null}var h=n(4514),m=n(4718),v=n(5974),g=n(6049),y=n(4736)},3996:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2784);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8732:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})},6982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8732);function o(e){return(0,r.Z)(e).defaultView||window}},2955:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},6049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2784);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},4514:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2784);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],s=i[1];return[o?t:a,r.useCallback((function(e){o||s(e)}),[])]}},4718:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},5974:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784),o=n(2955);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},4736:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(2784),o=n(8316),i=!0,a=!1,s=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function l(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!u[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:f,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("touchstart",l,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},595:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");t.Z=a},941:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z"}),"Attachment");t.Z=a},7685:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},3111:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7zm2 16h-4v-1h4v1zm0-2h-4v-1h4v1zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71-1.83 1.82z"}),"EmojiObjects");t.Z=a},8016:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},2160:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");t.Z=a},5292:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");t.Z=a},3054:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=a},2997:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.Z=a},686:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"}),"QuestionAnswer");t.Z=a},4842:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"}),"Send");t.Z=a},2047:(e,t,n)=>{"use strict";var r=n(4859),o=n(3291);t.Z=void 0;var i=o(n(2784)),a=(0,r(n(175)).default)(i.createElement("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"}),"Videocam");t.Z=a},175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6009)},9219:(e,t,n)=>{"use strict";n.d(t,{NU:()=>f,ZP:()=>p});var r,o=n(7896),i=n(9740),a=n(2784),s=(n(3980),n(2536)),u=n(4720),c=n(5119),l=(0,u.Ue)((0,c.Z)()),d={disableGeneration:!1,generateClassName:(0,s.Z)(),jss:l,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},f=a.createContext(d);function p(e){var t=e.children,n=e.injectFirst,s=void 0!==n&&n,l=e.disableGeneration,d=void 0!==l&&l,p=(0,i.Z)(e,["children","injectFirst","disableGeneration"]),h=a.useContext(f),m=(0,o.Z)({},h,{disableGeneration:d},p);if(!m.jss.options.insertionPoint&&s&&"undefined"!=typeof window){if(!r){var v=document.head;r=document.createComment("mui-inject-first"),v.insertBefore(r,v.firstChild)}m.jss=(0,u.Ue)({plugins:(0,c.Z)().plugins,insertionPoint:r})}return a.createElement(f.Provider,{value:m},t)}},5140:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},2536:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5140),o=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,a=void 0===i?"jss":i,s=e.seed,u=void 0===s?"":s,c=""===u?"":"".concat(u,"-"),l=0,d=function(){return l+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==o.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(c).concat(i,"-").concat(e.key);return t.options.theme[r.Z]&&""===u?"".concat(s,"-").concat(d()):s}return"".concat(c).concat(a).concat(d())}}},8489:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:()=>r})},5119:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Le});var r=n(4720),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o;const s=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,s=o[a];s&&(o.style=s(e)||{});var u=o[i];if(u)for(var c in u)o.prop(c,u[c](e),r)}}};var u=n(7896),c="@global",l="@global ",d=function(){function e(e,t,n){for(var o in this.type="global",this.at=c,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,u.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,n){this.type="global",this.at=c,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(l.length);this.rule=n.jss.createRule(r,t,(0,u.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),p=/\s*,\s*/g;function h(e,t){for(var n=e.split(p),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}const m=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===c)return new d(e,t,n);if("@"===e[0]&&e.substr(0,l.length)===l)return new f(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[c]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,u.Z)({},n,{selector:h(i,e.selector)}));delete r[c]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,c.length)===c){var i=h(o.substr(c.length),e.selector);t.addRule(i,r[o],(0,u.Z)({},n,{selector:i})),delete r[o]}}(e,t))}}};var v=/\s*,\s*/g,g=/&/g,y=/\$([\w-]+)/g;const b=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(v),r=e.split(v),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var u=r[s];o&&(o+=", "),o+=-1!==u.indexOf("&")?u.replace(g,a):a+" "+u}return o}function n(e,t,n){if(n)return(0,u.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,u.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,c=o,l=c.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(a=n(c,l,a),f){var h=t(d,c.selector);s||(s=e(l,i)),h=h.replace(y,s),l.addRule(h,r[d],(0,u.Z)({},a,{selector:h}))}else p&&l.addRule(d,{},a).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}};var E=/[A-Z]/g,w=/^ms-/,x={};function S(e){return"-"+e.toLowerCase()}const k=function(e){if(x.hasOwnProperty(e))return x[e];var t=e.replace(E,S);return x[e]=w.test(t)?"-"+t:t};function C(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:k(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(C):t.fallbacks=C(e.fallbacks)),t}const O=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=C(e[t]);return e}return C(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=k(t);return t===r?e:(n.prop(r,e),null)}}};var T=r.HZ&&CSS?CSS.px:"px",_=r.HZ&&CSS?CSS.ms:"ms",N=r.HZ&&CSS?CSS.percent:"%";function R(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var P=R({"animation-delay":_,"animation-duration":_,"background-position":T,"background-position-x":T,"background-position-y":T,"background-size":T,border:T,"border-bottom":T,"border-bottom-left-radius":T,"border-bottom-right-radius":T,"border-bottom-width":T,"border-left":T,"border-left-width":T,"border-radius":T,"border-right":T,"border-right-width":T,"border-top":T,"border-top-left-radius":T,"border-top-right-radius":T,"border-top-width":T,"border-width":T,"border-block":T,"border-block-end":T,"border-block-end-width":T,"border-block-start":T,"border-block-start-width":T,"border-block-width":T,"border-inline":T,"border-inline-end":T,"border-inline-end-width":T,"border-inline-start":T,"border-inline-start-width":T,"border-inline-width":T,"border-start-start-radius":T,"border-start-end-radius":T,"border-end-start-radius":T,"border-end-end-radius":T,margin:T,"margin-bottom":T,"margin-left":T,"margin-right":T,"margin-top":T,"margin-block":T,"margin-block-end":T,"margin-block-start":T,"margin-inline":T,"margin-inline-end":T,"margin-inline-start":T,padding:T,"padding-bottom":T,"padding-left":T,"padding-right":T,"padding-top":T,"padding-block":T,"padding-block-end":T,"padding-block-start":T,"padding-inline":T,"padding-inline-end":T,"padding-inline-start":T,"mask-position-x":T,"mask-position-y":T,"mask-size":T,height:T,width:T,"min-height":T,"max-height":T,"min-width":T,"max-width":T,bottom:T,left:T,top:T,right:T,inset:T,"inset-block":T,"inset-block-end":T,"inset-block-start":T,"inset-inline":T,"inset-inline-end":T,"inset-inline-start":T,"box-shadow":T,"text-shadow":T,"column-gap":T,"column-rule":T,"column-rule-width":T,"column-width":T,"font-size":T,"font-size-delta":T,"letter-spacing":T,"text-decoration-thickness":T,"text-indent":T,"text-stroke":T,"text-stroke-width":T,"word-spacing":T,motion:T,"motion-offset":T,outline:T,"outline-offset":T,"outline-width":T,perspective:T,"perspective-origin-x":N,"perspective-origin-y":N,"transform-origin":N,"transform-origin-x":N,"transform-origin-y":N,"transform-origin-z":N,"transition-delay":_,"transition-duration":_,"vertical-align":T,"flex-basis":T,"shape-margin":T,size:T,gap:T,grid:T,"grid-gap":T,"row-gap":T,"grid-row-gap":T,"grid-column-gap":T,"grid-template-rows":T,"grid-template-columns":T,"grid-auto-rows":T,"grid-auto-columns":T,"box-shadow-x":T,"box-shadow-y":T,"box-shadow-blur":T,"box-shadow-spread":T,"font-line-height":T,"text-shadow-x":T,"text-shadow-y":T,"text-shadow-blur":T});function I(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=I(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=I(o,t[o],n);else for(var i in t)t[i]=I(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||P[e];return!a||0===t&&a===T?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const A=function(e){void 0===e&&(e={});var t=R(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=I(r,e[r],t);return e},onChangeValue:function(e,n){return I(n,e,t)}}};var M="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};const L="object"===("undefined"==typeof window?"undefined":M(window))&&"object"===("undefined"==typeof document?"undefined":M(document))&&9===document.nodeType;var D=n(8777),j="",F="",Z="",U="",B=L&&"ontouchstart"in document.documentElement;if(L){var z={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},V=document.createElement("p").style;for(var q in z)if(q+"Transform"in V){j=q,F=z[q];break}"Webkit"===j&&"msHyphens"in V&&(j="ms",F=z.ms,U="edge"),"Webkit"===j&&"-apple-trailing-word"in V&&(Z="apple")}var W=j,H=F,G=Z,$=U,Q=B;var K={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===W?"-webkit-"+e:H+e)}},Y={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===W?H+"print-"+e:e)}},X=/[-\s]+(.)?/g;function J(e,t){return t?t.toUpperCase():""}function ee(e){return e.replace(X,J)}function te(e){return ee("-"+e)}var ne,re={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===W){var n="mask-image";if(ee(n)in t)return e;if(W+te(n)in t)return H+e}return e}},oe={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==G||Q?e:H+e)}},ie={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:H+e)}},ae={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:H+e)}},se={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===W||"ms"===W&&"edge"!==$?H+e:e)}},ue={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===W||"ms"===W||"apple"===G?H+e:e)}},ce={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===W?"WebkitColumn"+te(e)in t&&H+"column-"+e:"Moz"===W&&("page"+te(e)in t&&"page-"+e))}},le={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===W)return e;var n=e.replace("-inline","");return W+te(n)in t&&H+n}},de={supportedProperty:function(e,t){return ee(e)in t&&e}},fe={supportedProperty:function(e,t){var n=te(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:W+n in t?H+e:"Webkit"!==W&&"Webkit"+n in t&&"-webkit-"+e}},pe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===W?""+H+e:e)}},he={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===W?H+"scroll-chaining":e)}},me={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ve={supportedProperty:function(e,t){var n=me[e];return!!n&&(W+te(n)in t&&H+n)}},ge={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ye=Object.keys(ge),be=function(e){return H+e},Ee=[K,Y,re,oe,ie,ae,se,ue,ce,le,de,fe,pe,he,ve,{supportedProperty:function(e,t,n){var r=n.multiple;if(ye.indexOf(e)>-1){var o=ge[e];if(!Array.isArray(o))return W+te(o)in t&&H+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(W+te(o[0])in t))return!1;return o.map(be)}return!1}}],we=Ee.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),xe=Ee.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,D.Z)(t.noPrefill)),e}),[]),Se={};if(L){ne=document.createElement("p");var ke=window.getComputedStyle(document.documentElement,"");for(var Ce in ke)isNaN(Ce)||(Se[ke[Ce]]=ke[Ce]);xe.forEach((function(e){return delete Se[e]}))}function Oe(e,t){if(void 0===t&&(t={}),!ne)return e;if(null!=Se[e])return Se[e];"transition"!==e&&"transform"!==e||(t[e]=e in ne.style);for(var n=0;n<we.length&&(Se[e]=we[n](e,ne.style,t),!Se[e]);n++);try{ne.style[e]=""}catch(e){return!1}return Se[e]}var Te,_e={},Ne={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Re=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Pe(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Oe(t):", "+Oe(n);return r||(t||n)}function Ie(e,t){var n=t;if(!Te||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=_e[r])return _e[r];try{Te.style[e]=n}catch(e){return _e[r]=!1,!1}if(Ne[e])n=n.replace(Re,Pe);else if(""===Te.style[e]&&("-ms-flex"===(n=H+n)&&(Te.style[e]="-ms-flexbox"),Te.style[e]=n,""===Te.style[e]))return _e[r]=!1,!1;return Te.style[e]="",_e[r]=n,_e[r]}L&&(Te=document.createElement("p"));const Ae=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Oe(n);a&&a!==n&&(i=!0);var s=!1,u=Ie(a,(0,r.EK)(o));u&&u!==o&&(s=!0),(i||s)&&(i&&delete t[n],t[a||n]=u||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===W?e:"@"+H+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ie(t,(0,r.EK)(e))||e}}};const Me=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Le(){return{plugins:[s(),m(),b(),O(),A(),"undefined"==typeof window?null:Ae(),Me()]}}},4860:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(9740),o=n(7896),i=n(2784),a=n(4720),s=n(2761);const u={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};var c=n(1502),l=n(9219),d=-1e9;function f(){return d+=1}var p=n(7057);function h(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],s=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){s[e]=(0,p.Z)(s[e],a[e])})),s},options:{}}}const m={};function v(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,s.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function g(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,c=e.stylesCreator,l=e.name;if(!i.disableGeneration){var d=u.get(i.sheetsManager,c,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},u.set(i.sheetsManager,c,r,d));var f=(0,o.Z)({},c.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});f.generateId=f.serverGenerateClassName||f.generateClassName;var p=i.sheetsRegistry;if(0===d.refs){var h;i.sheetsCache&&(h=u.get(i.sheetsCache,c,r));var m=c.create(r,l);h||((h=i.jss.createStyleSheet(m,(0,o.Z)({link:!1},f))).attach(),i.sheetsCache&&u.set(i.sheetsCache,c,r,h)),p&&p.add(h),d.staticSheet=h,d.dynamicStyles=(0,a._$)(m)}if(d.dynamicStyles){var v=i.jss.createStyleSheet(d.dynamicStyles,(0,o.Z)({link:!0},f));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=(0,s.Z)({baseClasses:d.staticSheet.classes,newClasses:v.classes}),p&&p.add(v)}else n.classes=d.staticSheet.classes;d.refs+=1}}function y(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function b(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=u.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(u.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function E(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,u=t.defaultTheme,d=void 0===u?m:u,p=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),w=h(e),x=n||a||"makeStyles";w.options={index:f(),name:n,meta:x,classNamePrefix:x};var S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c.Z)()||d,r=(0,o.Z)({},i.useContext(l.NU),p),a=i.useRef(),u=i.useRef();E((function(){var o={name:n,state:{},stylesCreator:w,stylesOptions:r,theme:t};return g(o,e),u.current=!1,a.current=o,function(){b(o)}}),[t,w]),i.useEffect((function(){u.current&&y(a.current,e),u.current=!0}));var f=v(a.current,e.classes,s);return f};return S}},2761:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7896);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},6702:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(2784).createContext(null)},1502:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784),o=n(6702);function i(){return r.useContext(o.Z)}},2337:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(7896),o=n(9740),i=n(2784),a=(n(3980),n(3463)),s=n.n(a),u=n(4860),c=n(8489),l=n(1502);const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,u.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),g=i.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,d=(0,o.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=d;return("string"==typeof p||f)&&(s=(0,l.Z)()||a,p&&(m=(0,c.Z)({theme:s,name:p,props:d})),f&&!m.theme&&(m.theme=s)),i.createElement(n,(0,r.Z)({ref:u||t,classes:h},m))}));return s()(g,n),g}}},1226:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(6522),o=(n(3980),{xs:0,sm:600,md:960,lg:1280,xl:1920}),i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var o=e.theme.breakpoints||i;return t.reduce((function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e}),{})}if("object"===(0,r.Z)(t)){var a=e.theme.breakpoints||i;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},6941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7057);const o=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},8971:(e,t,n)=>{"use strict";n.d(t,{h:()=>p,Z:()=>v});var r=n(2867),o=n(1226),i=n(6941);var a,s,u={m:"margin",p:"padding"},c={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=(a=function(e){if(e.length>2){if(!l[e])return[e];e=l[e]}var t=e.split(""),n=(0,r.Z)(t,2),o=n[0],i=n[1],a=u[o],s=c[i]||"";return Array.isArray(s)?s.map((function(e){return a+e})):[a+s]},s={},function(e){return void 0===s[e]&&(s[e]=a(e)),s[e]}),f=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function p(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function h(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function m(e){var t=p(e.theme);return Object.keys(e).map((function(n){if(-1===f.indexOf(n))return null;var r=h(d(n),t),i=e[n];return(0,o.k)(e,i,r)})).reduce(i.Z,{})}m.propTypes={},m.filterProps=f;const v=m},7057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7896),o=n(6522);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},1606:(e,t,n)=>{"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:()=>r})},2139:(e,t,n)=>{"use strict";n.d(t,{g7:()=>u});var r=null,o={},i=1,a="@wry/context:Slot",s=Array,u=s[a]||function(){var e=function(){function e(){this.id=["slot",i++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===o)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=o),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,o){var i,a=((i={__proto__:null})[this.id]=e,i),s=r;r={parent:s,slots:a};try{return t.apply(o,n)}finally{r=s}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var o=r;try{return r=null,e.apply(n,t)}finally{r=o}},e}();try{Object.defineProperty(s,a,{value:s[a]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();u.bind,u.noContext},8229:(e,t,n)=>{"use strict";n.d(t,{D:()=>u});var r=Object.prototype,o=r.toString,i=r.hasOwnProperty,a=Function.prototype.toString,s=new Map;function u(e,t){try{return c(e,t)}finally{s.clear()}}function c(e,t){if(e===t)return!0;var n,r,s,u=o.call(e);if(u!==o.call(t))return!1;switch(u){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(p(e,t))return!0;var d=l(e),h=l(t),m=d.length;if(m!==h.length)return!1;for(var v=0;v<m;++v)if(!i.call(t,d[v]))return!1;for(v=0;v<m;++v){var g=d[v];if(!c(e[g],t[g]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(p(e,t))return!0;for(var y=e.entries(),b="[object Map]"===u;;){var E=y.next();if(E.done)break;var w=E.value,x=w[0],S=w[1];if(!t.has(x))return!1;if(b&&!c(S,t.get(x)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var k=e.byteLength;if(k===t.byteLength)for(;k--&&e[k]===t[k];);return-1===k;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var C=a.call(e);return C===a.call(t)&&(r=f,!((s=(n=C).length-r.length)>=0&&n.indexOf(r,s)===s))}return!1}function l(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}var f="{ [native code] }";function p(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},5115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetCampaignConversationsTypeFilter=void 0,function(e){e.NeedsAttention="NeedsAttention",e.AgentOperated="AgentOperated",e.BotOperated="BotOperated"}(t.GetCampaignConversationsTypeFilter||(t.GetCampaignConversationsTypeFilter={}))},3320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptConfigParamsToOptions=void 0;const r=n(5652);t.adaptConfigParamsToOptions=(e={},t={})=>{const n={...r.defaultEmbedParams,...t,...e};return{launcherStyles:{[n.va]:n.vv,[n.ha]:n.hv},buttonStyle:n.bs,includeAvatar:n.av,topScroll:n.ts,isCollapsible:!!n.ic}}},1126:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptConfigToUIParams=void 0;t.adaptConfigToUIParams=e=>{let t=[];return e.embedPosition&&(t=e.embedPosition.split("_")),{...2===t.length&&{va:t[0],ha:t[1]},...void 0!==e.embedRoaming&&null!==e.embedRoaming&&{ts:e.embedRoaming?1:0},...void 0!==e.embedButtonStyle&&null!==e.embedButtonStyle&&{bs:e.embedButtonStyle},...void 0!==e.embedAvatar&&null!==e.embedAvatar&&{av:e.embedAvatar?1:0}}}},5652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultEmbedParams=void 0,t.defaultEmbedParams={ha:"right",hv:"16px",va:"bottom",vv:"16px",ts:0,bs:"simple",av:0,ic:1}},7748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterConfigParams=void 0;t.filterConfigParams=e=>{const t=e=>/^-?\d+(?:px|%|rem|em){1}$/.test(e),n=e=>t=>e.includes(t),r=e=>[1,0].includes(e),o={ha:n(["left","right"]),hv:t,va:n(["top","bottom"]),vv:t,ts:r,bs:n(["simple","calloutBubble"]),av:r,ic:r};return Object.keys(e).reduce(((t,n)=>({...t,...o[n]&&o[n](e[n])?{[n]:e[n]}:{}})),{})}},259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOptionsFromParams=void 0;const r=n(3320),o=n(7748),i=n(8223);t.getOptionsFromParams=(e={},t={},n=!1)=>{const a=(0,r.adaptConfigParamsToOptions)((0,o.filterConfigParams)(e),t);return n?(0,i.stringifyObjectAsCode)(a):a}},8955:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(259),t),o(n(5652),t),o(n(3320),t),o(n(1126),t)},6507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isoPlainTextMessage=t.isoHtmlMessage=void 0;const r=n(1997);t.isoHtmlMessage=(0,r.iso)(),t.isoPlainTextMessage=(0,r.iso)()},3238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPlainTextRenderer=t.WEB_UI_LINK_GLUE=t.WEB_UI_ROUTE_URI=t.SMS_LENGTH=void 0;const r=n(6507);t.SMS_LENGTH=1600,t.WEB_UI_ROUTE_URI="/landing/:chatbotUuid/campaign?cid=:conversationUuid",t.WEB_UI_LINK_GLUE="... more at ";t.getPlainTextRenderer=e=>({castToPlainText:(n,o,i,a=!1)=>{const s=["p","em","strong","b","a","h1","h2","h3","h4","h5","h6","span"],u=r.isoHtmlMessage.unwrap(n);(u.match(/<([a-z0-9]+)/gi)||[]).map((e=>e.substring(1).toLowerCase())).map((e=>s.includes(e))).includes(!1)&&(a=!0);let c=e(u,{wordwrap:!1,hideLinkHrefIfSameAsText:!0});if(c.length>t.SMS_LENGTH&&(a=!0),a){const e=i(o),n=e.length+c.length-t.SMS_LENGTH;n>0&&(c=c.slice(0,-n)),c+=e}return Promise.resolve({message:r.isoPlainTextMessage.wrap(c.trim()),truncated:a})}})},4272:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.priorityMatchByRegex=void 0;const o=r(n(9166)),i=(e,t)=>{const n=(0,o.default)(e.pattern);return t.match(new RegExp(n))};t.priorityMatchByRegex=(e,t)=>{const n=e.map((e=>(e.pattern=e.pattern.replace(/^(https?:)/,""),e))).sort(((e,t)=>t.pattern.length-e.pattern.length));for(const e of n)if(i(e,t))return e}},4242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTokenReplacementHelper=void 0;t.getTokenReplacementHelper=e=>{const t=new RegExp("![A-Za-z0-9-]+","g"),n=(e,n)=>n?n.replace(/\{{3}(((?!\{{3}).)*)\}{3}/g,((n,r)=>{const o=[];let i;for(;null!==(i=t.exec(r));)o.push(i[0]);const a=e.variables||{};return o.every((e=>e.toLowerCase()in a))?r:""})):"",r=new RegExp("\\!\\b(fed-code|tax-id|act-code|ceeb-code)\\b","gi"),o=e=>{const t=Object.keys(e).join("|");return new RegExp(`\\!\\b((${t})(-office|contact-link|contact-number|contact-fax|contact-location|office-hours))\\b`,"gi")},i=(e,t,n,i)=>{const a=o(t);let s=i;return e.forEach((e=>{e.field_campus_name===n.campus&&(s=s.replace(a,`!${e.drupal_internal__id}-$1`).replace(r,`!${e.drupal_internal__id}-$1`))})),s},a=(e,t,n,r)=>{let i="",a=0;return e.forEach((e=>{e.field_campus_name===n.campus&&(e.field_offices||[]).forEach((t=>{t.field_mailing_address.organization===n.office&&([i]=t.field_office_type,a=e.drupal_internal__id)}))})),r.replace(/\{office\}/g,i).replace(o(t),`!${a}-$1`)};return{processGuardedSentences:n,replaceCampusAndOfficeTokens:(e,t,n,r)=>a(e,t,n,i(e,t,n,r)),replaceCampusTokens:i,replaceOfficeTokens:a,replaceTokens:(r,o,i)=>{if(!r)throw new Error("Chatbot config not provided");return((n,r,o)=>{if(!r)return"";let i=r,a=0;do{if(i=(r=i).replace(t,(e=>{let t=(n.variables||{})[e.toLowerCase()];if(t){const n=e.slice(1).replace(/^\d+-/g,"").substring(0,1);return n===n.toUpperCase()&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}return o?e:""})),a+=1,a>50){e.error("Reached maximum iterations in replace tokens routine, likely a circular dependency.");break}}while(i!==r);return i})(r,n(r,o),i)},variableMarker:"!"}}},2835:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.isFeatureFlagged=t.FeatureFlag=void 0,function(e){e.LiveChatCannedResponses="LiveChatCannedResponses",e.LiveChatPerOfficeSettings="LiveChatPerOfficeSettings",e.LiveChatTimeMessageHandling="TimeLiveChatMessage",e.QuotasAndPricing="QuotasAndPricing",e.OcelauditLogs="OcelauditLogs",e.ScheduleCampaign="ScheduleCampaign",e.SFTP="SFTP",e.QNA="QNA",e.Slate="Slate",e.FederatedGraphQL="FederatedGraphQL"}(n=t.FeatureFlag||(t.FeatureFlag={}));t.isFeatureFlagged=e=>{switch(e){case n.LiveChatTimeMessageHandling:case n.OcelauditLogs:case n.QNA:case n.FederatedGraphQL:return!["production","develop"].includes({NODE_ENV:"production",VERSION:"5.11.0",GQL_GATEWAY_URI:void 0,AI_API_URI:"https://ai.ocelotbot.com",AI_WS_URI:"wss://ai.ocelotbot.com",EMBED_URI:"https://embed.ocelotbot.com"}.OCELOT_ENV||"");default:return!0}}},679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIntegrationAllowedByPermissions=t.checkIntegrationManagementPermissions=void 0;const r=n(1646);t.checkIntegrationManagementPermissions=(e,t,n)=>{const o=t.fluent().withSubject(n);switch(e){case r.IntegrationType.TeamDynamix:if(!o.can((e=>e.AdministerTeamDynamix)))throw new Error("You're not allowed to manage TeamDynamix integration");break;case r.IntegrationType.LibAnswers:if(!o.can((e=>e.AdministerLibAnswers)))throw new Error("You're not allowed to manage LibAnswers integration");break;case r.IntegrationType.ServiceNow:if(!o.can((e=>e.AdministerServiceNow)))throw new Error("You're not allowed to manage ServiceNow integration");break;case r.IntegrationType.Zoom:if(!o.can((e=>e.AdministerZoom)))throw new Error("You're not allowed to manage Zoom integration");break;case r.IntegrationType.Slate:if(!o.can((e=>e.AdministerSlate)))throw new Error("You're not allowed to manage Slate integration");break;default:throw new Error("Invalid or unavailable integration type")}};t.isIntegrationAllowedByPermissions=(e,n,r)=>{try{(0,t.checkIntegrationManagementPermissions)(e,n,r)}catch(e){return!1}return!0}},2303:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.smsSegmentCount=t.smsBitSize=void 0;const n={10:[10],12:[27,10],13:[13],32:[32],33:[33],34:[34],35:[35],36:[2],37:[37],38:[38],39:[39],40:[40],41:[41],42:[42],43:[43],44:[44],45:[45],46:[46],47:[47],48:[48],49:[49],50:[50],51:[51],52:[52],53:[53],54:[54],55:[55],56:[56],57:[57],58:[58],59:[59],60:[60],61:[61],62:[62],63:[63],64:[0],65:[65],66:[66],67:[67],68:[68],69:[69],70:[70],71:[71],72:[72],73:[73],74:[74],75:[75],76:[76],77:[77],78:[78],79:[79],80:[80],81:[81],82:[82],83:[83],84:[84],85:[85],86:[86],87:[87],88:[88],89:[89],90:[90],91:[27,60],92:[27,47],93:[27,62],94:[27,20],95:[17],97:[97],98:[98],99:[99],100:[100],101:[101],102:[102],103:[103],104:[104],105:[105],106:[106],107:[107],108:[108],109:[109],110:[110],111:[111],112:[112],113:[113],114:[114],115:[115],116:[116],117:[117],118:[118],119:[119],120:[120],121:[121],122:[122],123:[27,40],124:[27,64],125:[27,41],126:[27,61],161:[64],163:[1],164:[36],165:[3],167:[95],191:[96],196:[91],197:[14],198:[28],201:[31],209:[93],214:[92],216:[11],220:[94],223:[30],224:[127],228:[123],229:[15],230:[29],199:[9],232:[4],233:[5],236:[7],241:[125],242:[8],246:[124],248:[12],249:[6],252:[126],915:[19],916:[16],920:[25],923:[20],926:[26],928:[22],931:[24],934:[18],936:[23],937:[21],8364:[27,101]};var r;!function(e){e[e.GSM7=0]="GSM7",e[e.UCS2=1]="UCS2"}(r||(r={}));t.smsBitSize=e=>(e=>[...e].some((e=>!n[e.codePointAt(0)||-1]))?r.UCS2:r.GSM7)(e)===r.UCS2?16*e.length:[...e].reduce(((e,t)=>e+7*n[t.codePointAt(0)||-1].length),0);t.smsSegmentCount=e=>{let n;n="string"==typeof e?(0,t.smsBitSize)(e):e;const r=Math.ceil(n/1120);return r>1?Math.ceil((48*r+n)/1120):1}},8223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyObjectAsCode=void 0;t.stringifyObjectAsCode=e=>{if("object"!=typeof e||Array.isArray(e))return JSON.stringify(e);return`{${Object.keys(e).map((n=>`${n}:${(0,t.stringifyObjectAsCode)(e[n])}`)).join(",")}}`}},6215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormSubmissionDataUnionType=void 0,function(e){e.YesOrNo="YesOrNo",e.Custom="Custom"}(t.FormSubmissionDataUnionType||(t.FormSubmissionDataUnionType={}))},3794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormAnswerConditionArgType=void 0,function(e){e.StaticValue="StaticValue",e.Injection="Injection",e.Condition="Condition"}(t.FormAnswerConditionArgType||(t.FormAnswerConditionArgType={}))},6653:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3794),t),o(n(474),t),o(n(6215),t)},4745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BuiltInFormType=t.FormAnswerConditionOp=t.FormFieldType=void 0,function(e){e.Boolean="Boolean"}(t.FormFieldType||(t.FormFieldType={})),function(e){e.ExactMatch="ExactMatch",e.CatchAll="CatchAll"}(t.FormAnswerConditionOp||(t.FormAnswerConditionOp={})),function(e){e.YesOrNo="YesOrNo"}(t.BuiltInFormType||(t.BuiltInFormType={}))},2242:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2659),t),o(n(4745),t)},5539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBinaryForm=t.createAnswer=t.BinaryFormValueVariant=t.BINARY_FORM_NODE=t.BINARY_FORM_FIELD=void 0;const r=n(2242);t.BINARY_FORM_FIELD="isYes",t.BINARY_FORM_NODE="yesNoQuestion",function(e){e.Yes="Yes",e.No="No",e.Other="Other",e.NoResponse="NoResponse"}(t.BinaryFormValueVariant||(t.BinaryFormValueVariant={}));t.createAnswer=(e,n)=>({text:{en:n},condition:{op:r.FormAnswerConditionOp.ExactMatch,args:[e,{formDataField:t.BINARY_FORM_FIELD}]}});t.createBinaryForm=(e,n,o,i)=>({chatbotUuid:e,type:r.BuiltInFormType.YesOrNo,fields:{[t.BINARY_FORM_NODE]:{field:{name:t.BINARY_FORM_FIELD,label:{en:n},type:r.FormFieldType.Boolean,skipValidation:!0},answerMapping:[{value:!0,answer:o},{value:!1,answer:i}].reduce(((e,{value:n,answer:r})=>r?e.concat((0,t.createAnswer)(n,r)):e),[])}},rootNode:t.BINARY_FORM_NODE}),t.default={}},2369:(e,t)=>{"use strict";function n(e){const t={...e,args:[]};return e.args.forEach((e=>{"boolean"!=typeof e.value?e.injection&&t.args.push(e.injection):t.args.push(e.value)})),t}Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeForm=t.deserializeFormNode=t.deserializeAnswer=void 0;t.deserializeAnswer=e=>({...e,condition:n(e.condition)});t.deserializeFormNode=e=>{const n=e.answerMapping.map(t.deserializeAnswer);return{...e,answerMapping:n}};t.deserializeForm=e=>{const n={...e,fields:{}};return e.fields.forEach((({key:e,node:r})=>{n.fields[e]=(0,t.deserializeFormNode)(r)})),n},t.default={}},1071:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5539),t),o(n(2369),t),o(n(4927),t),o(n(2896),t)},4927:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.serializeForm=t.serializeFormNode=t.serializeAnswer=void 0;const o=r(n(9756)),i=n(6653);function a(e){const t={...e,args:[]};return e.args.forEach((e=>{"boolean"!=typeof e?null!==e?"formDataField"in e&&t.args.push({type:i.FormAnswerConditionArgType.Injection,injection:e}):t.args.push({type:i.FormAnswerConditionArgType.StaticValue,value:void 0}):t.args.push({type:i.FormAnswerConditionArgType.StaticValue,value:e})})),t}t.serializeAnswer=e=>({...e,condition:a(e.condition)});t.serializeFormNode=e=>{const n=e.answerMapping.map(t.serializeAnswer);return{...e,answerMapping:n}};t.serializeForm=e=>{const n={...e,fields:[]};return(0,o.default)(e.fields,((e,r)=>{n.fields.push({key:r,node:(0,t.serializeFormNode)(e)})})),n},t.default={}},2896:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setFormContent=void 0;const r=n(2242),o=n(5539);t.setFormContent=(e,t)=>{switch(e.type){case r.BuiltInFormType.YesOrNo:return((e,t)=>{const n={...e,fields:e.fields.filter((e=>e.key!==o.BINARY_FORM_NODE))},r=e.fields.find((e=>e.key===o.BINARY_FORM_NODE));if(r){const e={...r,node:{...r.node,field:{...r.node.field,label:{en:t}}}};n.fields.push(e)}return n})(e,t)}return e},t.default={}},6272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalOperation=t.ComparisonOperation=t.EntityMappingError=void 0,function(e){e.ChatbotNotFound="Chatbot not found",e.MappingGroupNotFound="Entity mapping group not found",e.MappingGroupRuleNotFound="Entity mapping group rule not found"}(t.EntityMappingError||(t.EntityMappingError={})),function(e){e.EQUALS="=="}(t.ComparisonOperation||(t.ComparisonOperation={})),function(e){e.AND="&&",e.OR="||"}(t.LogicalOperation||(t.LogicalOperation={}))},9652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntityMappingRulesGroupStatus=t.InternalEntityType=t.EntityMappingRuleMapperType=t.EntityMappingRuleType=void 0,function(e){e.Single="Single"}(t.EntityMappingRuleType||(t.EntityMappingRuleType={})),function(e){e.Direct="Direct",e.Static="Static"}(t.EntityMappingRuleMapperType||(t.EntityMappingRuleMapperType={})),function(e){e.ChatbotContactForm="ChatbotContactForm",e.CustomForm="CustomForm",e.WebhookEvent="WebhookEvent",e.CampaignSMS="CampaignSMS"}(t.InternalEntityType||(t.InternalEntityType={})),function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(t.EntityMappingRulesGroupStatus||(t.EntityMappingRulesGroupStatus={}))},1646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationType=void 0,function(e){e.Zoom="zoom",e.TeamDynamix="TeamDynamix",e.LibAnswers="LibAnswers",e.Webhook="Webhook",e.ServiceNow="ServiceNow",e.Slate="Slate"}(t.IntegrationType||(t.IntegrationType={}))},2573:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashify=void 0;const o=r(n(3362));t.hashify=function(e,t,n="sha256"){const r=JSON.parse(JSON.stringify(e)),i=e=>Array.isArray(e)?e.reduce(((e,t)=>e+=i(t)),""):"object"==typeof e&&null!==e?Object.keys(e).sort().reduce(((t,n)=>{const r=i(e[n]);return t.concat(n,r)}),""):JSON.stringify(e),a=i(r);return o.default.createHash(n).update(t,"utf-8").update(a,"utf-8").update(t,"utf-8").digest("hex")}},6238:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OPERATOR_INPUT_MAX_LENGTH=t.CLIENT_NAME_MAX_LENGTH=t.OPERATOR_XSS_WHITELIST=t.Topics=void 0,t.Topics={LIVE_CHAT_CONVERSATION_NEW:"livechat:conversation:new",LIVE_CHAT_CONVERSATION_SYSTEM_EVENT:"livechat:conversation:system-event",LIVE_CHAT_OPERATOR_STATUS_UPDATE:"livechat:operator:status:update",LIVE_CHAT_MESSAGE:"livechat:message"},t.OPERATOR_XSS_WHITELIST={a:["href","title"],p:[],b:[],i:[],span:[],strong:[],em:[],div:[],br:[],figure:["class"],ol:[],ul:[],li:[],img:["src","alt","title","class"]},t.CLIENT_NAME_MAX_LENGTH=64,t.OPERATOR_INPUT_MAX_LENGTH=1e3},8987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiveChatRole=void 0,function(e){e.Client="Client",e.Operator="Operator"}(t.LiveChatRole||(t.LiveChatRole={}))},1414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiveChatEndingReasonType=void 0,function(e){e.Manual="Manual",e.Reassigned="Reassigned",e.UserLeftQueue="UserLeftQueue",e.ClientDisconnected="ClientDisconnected",e.NoActivity="NoActivity",e.Expired="Expired"}(t.LiveChatEndingReasonType||(t.LiveChatEndingReasonType={}))},4251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiveChatOperatorAvailabilityChangeReasonType=void 0,function(e){e.SwitchProduct="SwitchProduct",e.Idle="Idle",e.Manual="Manual",e.DrupalLogout="DrupalLogout",e.GracePeriod="GracePeriod",e.Disconnected="Disconnected",e.NoActiveSessions="NoActiveSessions",e.BulkChange="BulkChange"}(t.LiveChatOperatorAvailabilityChangeReasonType||(t.LiveChatOperatorAvailabilityChangeReasonType={}))},2003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiveChatOperatorChangeReasonType=void 0,function(e){e.Created="Created",e.Removed="Removed",e.AvailabilityChanged="AvailabilityChanged"}(t.LiveChatOperatorChangeReasonType||(t.LiveChatOperatorChangeReasonType={}))},8537:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NewMessageNotificationRule=void 0,function(e){e.EveryMessage="EveryMessage",e.ConversationNotFocused="ConversationNotFocused"}(t.NewMessageNotificationRule||(t.NewMessageNotificationRule={}))},3213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiveChatTurnType=void 0,function(e){e.OperatorTurn="livechat:operator",e.ClientTurn="livechat:client",e.QueueTurn="livechat:queue",e.CampaignBotTurn="campaign:bot",e.CampaignOperatorTurn="campaign:operator",e.CampaignClientTurn="campaign:client"}(t.LiveChatTurnType||(t.LiveChatTurnType={}))},3322:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiveChatOperatorStatus=void 0,function(e){e.Available="Available",e.Away="Away"}(t.LiveChatOperatorStatus||(t.LiveChatOperatorStatus={}))},1080:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CampaignSystemEventType=void 0,function(e){e.CampaignNeedsOperatorResponseChanged="CampaignNeedsOperatorResponseChanged",e.UnsolicitedConversationStarted="UnsolicitedConversationStarted",e.ConversationStartTypingOperator="ConversationStartTypingOperator",e.ConversationStopTypingOperator="ConversationStopTypingOperator",e.CampaignStatusChanged="CampaignStatusChanged"}(t.CampaignSystemEventType||(t.CampaignSystemEventType={}))},2712:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactSchemaFieldType=void 0,function(e){e.Email="Email",e.PhoneNumber="PhoneNumber",e.FirstName="FirstName",e.LastName="LastName",e.Text="Text"}(t.ContactSchemaFieldType||(t.ContactSchemaFieldType={}))},5129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptOutContactType=void 0,function(e){e.Email="Email",e.PhoneNumber="PhoneNumber"}(t.OptOutContactType||(t.OptOutContactType={}))},5395:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contactTokens=void 0;const r={openingMarker:"#",closingMarker:"#"},o=n(1565).FIELD_NAME_REGEX.source.slice(1,-1),i=new RegExp(`${r.openingMarker}(${o})${r.closingMarker}`,"ig");t.contactTokens={...r,regex:i,replace:(e,t)=>{const n=new Set;return{replacedMessage:(e=e.replace(i,((e,r)=>{const o=t.fields.find((e=>e.name.toLowerCase()===r.toLowerCase()));return o&&o.value?o.value:(n.add(r),"")}))).trim(),missingFields:Array.from(n)}}}},472:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AuditEventSeverityNames=t.AuditEventSeverity=void 0,function(e){e[e.Emergency=0]="Emergency",e[e.Alert=1]="Alert",e[e.Critical=2]="Critical",e[e.Error=3]="Error",e[e.Warning=4]="Warning",e[e.Notice=5]="Notice",e[e.Informational=6]="Informational",e[e.Debug=7]="Debug"}(n=t.AuditEventSeverity||(t.AuditEventSeverity={})),t.AuditEventSeverityNames=Object.freeze(Object.values(n))},4658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RejectedCampaignMessageReason=t.CampaignConversationSystemEventType=t.LaunchType=t.CampaignStatus=t.CampaignIdkType=t.CampaignType=void 0,function(e){e.Bot="Bot",e.Operator="Operator"}(t.CampaignType||(t.CampaignType={})),function(e){e.Default="Default",e.Operator="Operator"}(t.CampaignIdkType||(t.CampaignIdkType={})),function(e){e.Draft="Draft",e.Scheduled="Scheduled",e.Active="Active",e.Archived="Archived"}(t.CampaignStatus||(t.CampaignStatus={})),function(e){e.Immediately="Immediately",e.Future="Future"}(t.LaunchType||(t.LaunchType={})),function(e){e.ConversationModeChanged="ConversationModeChanged",e.ConversationNeedAttention="ConversationNeedAttention",e.ConversationContactOptOutEntriesChanged="ConversationContactOptOutEntriesChanged",e.ConversationStartTypingOperator="ConversationStartTypingOperator",e.ConversationStopTypingOperator="ConversationStopTypingOperator",e.ConversationHasNewFormSubmission="ConversationHasNewFormSubmission"}(t.CampaignConversationSystemEventType||(t.CampaignConversationSystemEventType={})),function(e){e.NotWhitelisted="NotWhitelisted",e.OptedOut="OptedOut"}(t.RejectedCampaignMessageReason||(t.RejectedCampaignMessageReason={}))},6891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2285:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8263:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7995),t),o(n(2285),t),o(n(6078),t),o(n(4397),t),o(n(3573),t),o(n(472),t),o(n(2100),t),o(n(8113),t),o(n(6283),t),o(n(4658),t),o(n(1644),t),o(n(8683),t),o(n(9717),t),o(n(6891),t)},3573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeliveryStatus=void 0,function(e){e.Scheduled="scheduled",e.Sending="sending",e.Delivered="delivered",e.RecoverableFailure="recoverable_failure",e.PermanentFailure="permanent_failure"}(t.DeliveryStatus||(t.DeliveryStatus={}))},6283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneNumberType=void 0,function(e){e.OneTime="OneTime",e.Reusable="Reusable"}(t.PhoneNumberType||(t.PhoneNumberType={}))},9717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8683:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.RECOVERABLE_TWILIO_ERROR_CODES=t.RECOVERABLE_TWILIO_ERRORS=t.TwilioSmsErrorMap=t.SmsErrorMessageMap=t.SmsErrorCode=t.TwilioErrorCode=t.TwilioMessageStatus=t.TwilioNotifyServiceError=t.TwilioMessagingServiceError=t.TwilioMessageSendingError=t.TwilioWebhookValidationError=t.TwilioClientError=void 0,function(e){e.TwilioClientInstantiationError="Failed to instantiate Twilio client",e.MessageNotFound="Message instance not found",e.FailedToRevokePhoneNumber="Failed to revoke phone number"}(t.TwilioClientError||(t.TwilioClientError={})),function(e){e.TwilioCredentialsMissing="Missing Twilio credentials for this request"}(t.TwilioWebhookValidationError||(t.TwilioWebhookValidationError={})),function(e){e.TwilioMessageCreatingError="Failed to create Twilio message",e.InvalidNumber="Phone number is invalid",e.InvalidCountryCode="Phone number contains unsupported country code",e.QueueOverflow="The message is queued and will be retried",e.UnreachableDestinationHandset="This number is switched off or otherwise unavailable",e.MessageBlocked="This number is blocked from receiving this message",e.UnknownDestinationHandset="This number is unknown and may no longer exist",e.LandlineOrUnreachableCarrier="This number was sent to a landline or unreachable carrier for this phone number type",e.CarrierViolation="This message was filtered or blocked by the carrier",e.UnknownError="This message delivery failed for an unknown reason",e.MissingSegment="One or more segments associated with your multi-part inbound message was not received",e.GenericError="There was an issue sending messages, please contact support"}(t.TwilioMessageSendingError||(t.TwilioMessageSendingError={})),function(e){e.TwilioMessagingServiceCreatingError="Failed to create Twilio Messaging service",e.TwilioMessagingServicePhoneNumberAttachError="Failed to attach phone number to Twilio Messaging service",e.TwilioMessagingServiceRemovalError="Failed to remove messaging service"}(t.TwilioMessagingServiceError||(t.TwilioMessagingServiceError={})),function(e){e.TwilioNotifyServiceCreatingError="Failed to create Twilio Notify service"}(t.TwilioNotifyServiceError||(t.TwilioNotifyServiceError={})),function(e){e.Accepted="accepted",e.Queued="queued",e.Sending="sending",e.Sent="sent",e.Receiving="receiving",e.Received="received",e.Delivered="delivered",e.Undelivered="undelivered",e.Failed="failed",e.Read="read",e.Scheduled="scheduled",e.PartiallyDelivered="partially_delivered"}(t.TwilioMessageStatus||(t.TwilioMessageStatus={})),function(e){e[e.FromNumberQueueOverflow=21611]="FromNumberQueueOverflow",e[e.QueueOverflow=30001]="QueueOverflow",e[e.AccountSuspended=30002]="AccountSuspended",e[e.UnreachableDestinationHandset=30003]="UnreachableDestinationHandset",e[e.MessageBlocked=30004]="MessageBlocked",e[e.UnknownDestinationHandset=30005]="UnknownDestinationHandset",e[e.LandlineOrUnreachableCarrier=30006]="LandlineOrUnreachableCarrier",e[e.CarrierViolation=30007]="CarrierViolation",e[e.UnknownError=30008]="UnknownError",e[e.MissingSegment=30009]="MissingSegment",e[e.MsgPriceExceedsMaxPrice=30010]="MsgPriceExceedsMaxPrice"}(n=t.TwilioErrorCode||(t.TwilioErrorCode={})),function(e){e.BlockedByCarrierUser="BlockedByCarrierUser",e.InternationalNumber="InternationalNumber",e.InvalidNumber="InvalidNumber",e.NotWhitelisted="NotWhitelisted",e.OptedOut="OptedOut",e.PartialFailure="PartialFailure",e.ReattemptingDelivery="ReattemptingDelivery",e.TwilioClientInstantiationError="TwilioClientInstantiationError",e.UnhandledTwilioError="UnhandledTwilioError",e.Unknown="Unknown",e.UnreachableNumber="UnreachableNumber"}(r=t.SmsErrorCode||(t.SmsErrorCode={})),t.SmsErrorMessageMap={[r.BlockedByCarrierUser]:"Blocked by Carrier/User",[r.InternationalNumber]:"International Number",[r.InvalidNumber]:"Invalid Number",[r.NotWhitelisted]:"Not in whitelist",[r.OptedOut]:"Opted out",[r.PartialFailure]:"Partial Failure",[r.ReattemptingDelivery]:"Re-attempting Delivery",[r.TwilioClientInstantiationError]:"Unknown",[r.UnhandledTwilioError]:"Unknown",[r.Unknown]:"Unknown",[r.UnreachableNumber]:"Unreachable Number"},t.TwilioSmsErrorMap={[n.MessageBlocked]:r.BlockedByCarrierUser,[n.CarrierViolation]:r.BlockedByCarrierUser,[n.UnknownDestinationHandset]:r.InvalidNumber,[n.MissingSegment]:r.PartialFailure,[n.UnreachableDestinationHandset]:r.UnreachableNumber,[n.LandlineOrUnreachableCarrier]:r.UnreachableNumber},t.RECOVERABLE_TWILIO_ERRORS=[r.TwilioClientInstantiationError],t.RECOVERABLE_TWILIO_ERROR_CODES=[n.QueueOverflow,n.FromNumberQueueOverflow]},305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CampaignConversationError=void 0,function(e){e.ConversationNotFound="Conversation not found!"}(t.CampaignConversationError||(t.CampaignConversationError={}))},6905:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SendingSMSResponseToClientError=t.IncomingSMSHandlingError=void 0,function(e){e.ResponseToPlainTextCastingError="Failed to cast operator response to plain text",e.PhoneNumberNotFound="Phone number not found"}(t.IncomingSMSHandlingError||(t.IncomingSMSHandlingError={})),function(e){e.UnableToSendSMSToConversation="Unable to send SMS to conversation",e.CampaignNotFound="Campaign not found",e.PhoneNumberNotFound="Phone number not found",e.CampaignWithoutMessagingService="Campaign has no messaging service assigned"}(t.SendingSMSResponseToClientError||(t.SendingSMSResponseToClientError={}))},6430:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StartCampaignConversationsError=t.CampaignCommunicationChannelAddressError=t.CampaignMessageRenderForContactError=t.CampaignExecutionError=t.CampaignCloningError=t.CampaignError=void 0,function(e){e.WrongPhoneNumberId="Wrong phone number identifier provided",e.ForbiddenCampaign="Campaign is not associated with current chatbot",e.ForbiddenPhoneNumber="Phone number is not associated with the current chatbot",e.CampaignNotFound="Can't find campaign",e.FailedToAssignPhoneNumber="Can't assign phone number",e.WrongCampusOffice="Campus and office of campaign are contradictory",e.DuplicateTitle="Campaign title must be unique",e.MissingLaunchSchedule="Scheduled launch time must be present",e.InvalidStatus="Status is invalid",e.PhoneNumberInUse="Phone number in use"}(t.CampaignError||(t.CampaignError={})),function(e){e.SourceCampaignNotFound="Source campaign not found",e.DuplicateTitle="Campaign title must be unique"}(t.CampaignCloningError||(t.CampaignCloningError={})),function(e){e.MessagingServiceCreation="Error creating message service",e.NotifyServiceCreation="Error creating notify service",e.MissingMessagingService="Campaign has no messaging service associated",e.MissingNotifyService="Campaign has no notify service associated",e.MissingPhoneNumber="Campaign has no phone number associated",e.NoContactListAssociated="Campaign has no contact list associated",e.ContactListNoPhoneField="Associated contact list has no phone number field",e.AccesDenied="Access denied",e.CommunicationChannelNotRecognized="Selected communication channel is not recognized",e.OutboundSmsRecordNotFound="Outbound SMS record not found"}(t.CampaignExecutionError||(t.CampaignExecutionError={})),function(e){e.ForeignContact="Supplied contact does not belong to the contact list the campaign is associated with.",e.ContactLacksData="Supplied contact does not have a value for a token the campaign message refers to.",e.ChatbotLacksData="Campaign message refers to a chatbot variable that is not defined within the chatbot the campaign is associated with.",e.MissingCampusOrOffice="Campaign must be associated with a campus and office",e.InvalidCampusId="Campaign's campusId does not refer to a valid campus",e.InvalidOfficeId="Campaign's officeId does not refer to a valid office"}(t.CampaignMessageRenderForContactError||(t.CampaignMessageRenderForContactError={})),function(e){e.NoCommunicationChannel="The campaign does not have a communication channel yet.",e.NoAddress="The campaign has not been associated to any address yet.",e.Unknown="Unknown error"}(t.CampaignCommunicationChannelAddressError||(t.CampaignCommunicationChannelAddressError={})),function(e){e.NoContactList="Campaign has not been associated to a contact list yet.",e.CouldNotRetrieveContacts="Failed while loading the contacts of a campaign.",e.CouldNotRetrieveCampaignAddress="Failed while loading the campaign address on the communication channel.",e.CouldNotRetrieveSchema="Failed while loading the contact schema of the campaign's contact list"}(t.StartCampaignConversationsError||(t.StartCampaignConversationsError={}))},4295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationStatsArgs=void 0;t.ConversationStatsArgs=class{}},5629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactListImportError=void 0,function(e){e.FailedToParseMessagePayload="Failed to parse message payload",e.BucketNameNotConfigured="Bucket name not configured",e.UnableToRetrieveSignedUrl="Unable to retrieve signed Url",e.FileNotFound="File not found"}(t.ContactListImportError||(t.ContactListImportError={}))},5457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactListError=void 0,function(e){e.DuplicateName="Contact list name must be unique",e.NotFound="Contact list not found",e.SchemaNotFound="Schema not found",e.SchemaPermissionDenied="You're not allowed to use this schema",e.AssociatedWithCampaign="Contact list is associated with a campaign"}(t.ContactListError||(t.ContactListError={}))},1205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactSchemaError=t.FIELD_NAME_REGEX=t.FIELD_NAME_MAX_LENGTH=void 0,t.FIELD_NAME_MAX_LENGTH=64,t.FIELD_NAME_REGEX=new RegExp(`^[a-zA-Z0-9_]{1,${t.FIELD_NAME_MAX_LENGTH}}$`),function(e){e.ContactSchemaNotFound="Can't find contact schema"}(t.ContactSchemaError||(t.ContactSchemaError={}))},9561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactError=void 0,function(e){e.ContactListNotFound="Can't find contact list",e.ContactSchemaNotFound="Can't find contact schema"}(t.ContactError||(t.ContactError={}))},2150:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InboxTab=void 0,function(e){e.NeedsAttention="NeedsAttention",e.Participating="Participating"}(t.InboxTab||(t.InboxTab={}))},1565:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1205),t),o(n(8395),t),o(n(5457),t),o(n(4145),t),o(n(9500),t),o(n(3637),t),o(n(305),t),o(n(1842),t),o(n(5122),t),o(n(7827),t),o(n(6623),t),o(n(6109),t),o(n(9561),t),o(n(6430),t),o(n(9869),t),o(n(4295),t),o(n(6905),t),o(n(5040),t),o(n(3028),t),o(n(2150),t),o(n(5629),t),o(n(6695),t),o(n(4407),t)},7827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiveChatStatsArgs=void 0;t.LiveChatStatsArgs=class{}},9500:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptOutContactError=void 0,function(e){e.ContactNotFound="Can't find contact",e.ContactNotAdded="Can't add contact"}(t.OptOutContactError||(t.OptOutContactError={}))},5040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneNumberError=t.PhoneNumberRemovingError=t.PhoneNumberSearchingError=t.PhoneNumberSavingError=void 0,function(e){e.MongoDBDocumentCreatingError="MongoDB document creating error",e.MissingOffice="Campus/Office information must be present"}(t.PhoneNumberSavingError||(t.PhoneNumberSavingError={})),function(e){e.MongoDBDocumentNotFound="MongoDB document not found",e.MongoDBDocumentsFetchingError="MongoDB documents fetching error",e.PermissionDenied="Permission denied"}(t.PhoneNumberSearchingError||(t.PhoneNumberSearchingError={})),function(e){e.MongoDBDocumentRemovingError="MongoDB document removing error",e.InUse="Phone number is in use"}(t.PhoneNumberRemovingError||(t.PhoneNumberRemovingError={})),function(e){e.NotFound="Phone number not found"}(t.PhoneNumberError||(t.PhoneNumberError={}))},6695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SSH_PUBLIC_KEY_PATTERN=t.SFTP_USER_NAME_PATTERN=t.SftpUserServiceError=void 0,function(e){e.MethodNotImplemented="Method not implemented",e.ServiceUnavailable="Service unavailable",e.UserAlreadyExists="User already exists",e.UserNotFound="User not found",e.ListUsersFailed="An error as occured while querying list users",e.InvalidRequestParameters="Invalid Request Parameters",e.UnableToCreateUser="Unable to create user",e.UnableToUpdateUser="Unable to update user",e.UnableToDeleteUser="Unable to delete user"}(t.SftpUserServiceError||(t.SftpUserServiceError={})),t.SFTP_USER_NAME_PATTERN=/^[\w][\w@.-]{2,99}$/,t.SSH_PUBLIC_KEY_PATTERN=/^ssh-rsa\s+[A-Za-z0-9+/]+[=]{0,3}(\s+.+)?\s*$/},3028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StudentProfileError=void 0,function(e){e.ContactNotFound="Contact not found",e.ContactAddressNotFound="Contact address not found",e.MongoDBDocumentsFetchingError="MongoDB documents fetching error",e.EncodeCSVError="Encode CSV file error"}(t.StudentProfileError||(t.StudentProfileError={}))},1036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationsPerDayScale=void 0,function(e){e.Minutes="Minutes",e.Hours="Hours",e.Days="Days",e.Weeks="Weeks",e.Months="Months",e.Years="Years"}(t.ConversationsPerDayScale||(t.ConversationsPerDayScale={}))},3746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.totalCampaignMessagesToSend=t.totalCampaignMessagesSent=t.countCampaignMetricStatuses=t.PENDING_STATUSES=void 0;const r=n(8263);t.PENDING_STATUSES=[r.DeliveryStatus.Scheduled,r.DeliveryStatus.Sending,r.DeliveryStatus.RecoverableFailure];const o=[r.DeliveryStatus.Delivered,r.DeliveryStatus.PermanentFailure],i=(e,t)=>Object.entries(e.messageStatuses||{}).reduce(((e,[n,r])=>t.includes(n)?e+(r||0):e),0);t.countCampaignMetricStatuses=(e,t)=>e.statuses.reduce(((e,n)=>t.includes(n.name)?e+n.count:e),0);t.totalCampaignMessagesSent=e=>{const n=e;return n.statuses?(0,t.countCampaignMetricStatuses)(n,o):i(e,o)};t.totalCampaignMessagesToSend=e=>{const n=e;return n.statuses?(0,t.countCampaignMetricStatuses)(n,t.PENDING_STATUSES):i(e,t.PENDING_STATUSES)}},7923:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationMode=void 0,function(e){e.Ai="ai",e.LiveChat="livechat",e.Campaign="campaign"}(t.ConversationMode||(t.ConversationMode={}))},4570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationResourceType=void 0,function(e){e.Video="video",e.Webpage="webpage",e.File="file"}(t.ConversationResourceType||(t.ConversationResourceType={}))},6930:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnowledgebaseEnvironment=void 0,function(e){e.Live="Live",e.Staging="Staging"}(t.KnowledgebaseEnvironment||(t.KnowledgebaseEnvironment={}))},21:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.priorityMatchByRegex=t.SFTP_USER_NAME_PATTERN=t.SSH_PUBLIC_KEY_PATTERN=t.LogicalOperation=t.ComparisonOperation=t.GetCampaignConversationsTypeFilter=t.InternalEntityType=t.LiveChatOperatorAvailabilityChangeReasonType=t.LiveChatOperatorChangeReasonType=t.NewMessageNotificationRule=t.LiveChatEndingReasonType=t.KnowledgebaseEnvironment=t.ConversationResourceType=t.ConversationMode=t.ConversationsPerDayScale=t.PhoneNumberType=t.CampaignError=t.LaunchType=t.CampaignConversationSystemEventType=t.CampaignType=t.CampaignIdkType=t.CampaignStatus=t.SmsErrorMessageMap=t.SmsErrorCode=t.DeliveryStatus=t.AuditEventSeverity=t.contactTokens=t.OptOutContactType=t.CampaignSystemEventType=t.ContactSchemaFieldType=t.LiveChatRole=t.LiveChatOperatorStatus=t.CAMPAIGN_OPERATOR_INPUT_MAX_LENGTH=t.LIVE_CHAT_OPERATOR_INPUT_MAX_LENGTH=t.LIVE_CHAT_CLIENT_NAME_MAX_LENGTH=t.replaceTokens=t.processGuardedSentences=t.SMS_LENGTH=t.WEB_UI_LINK_GLUE=t.WEB_UI_ROUTE_URI=t.getPlainTextRenderer=t.tokenReplacement=t.LiveChatTurnType=t.ConversationTurnMode=t.ConversationSource=t.ConversationActionType=void 0;const i=n(4242),a=n(6238);var s=n(405);Object.defineProperty(t,"ConversationActionType",{enumerable:!0,get:function(){return s.ConversationActionType}});var u=n(8934);Object.defineProperty(t,"ConversationSource",{enumerable:!0,get:function(){return u.ConversationSource}}),Object.defineProperty(t,"ConversationTurnMode",{enumerable:!0,get:function(){return u.ConversationTurnMode}});var c=n(3213);Object.defineProperty(t,"LiveChatTurnType",{enumerable:!0,get:function(){return c.LiveChatTurnType}}),t.tokenReplacement=(0,i.getTokenReplacementHelper)({debug:console.log.bind(console),error:console.error.bind(console),info:console.log.bind(console),warn:console.warn.bind(console)});var l=n(3238);Object.defineProperty(t,"getPlainTextRenderer",{enumerable:!0,get:function(){return l.getPlainTextRenderer}}),Object.defineProperty(t,"WEB_UI_ROUTE_URI",{enumerable:!0,get:function(){return l.WEB_UI_ROUTE_URI}}),Object.defineProperty(t,"WEB_UI_LINK_GLUE",{enumerable:!0,get:function(){return l.WEB_UI_LINK_GLUE}}),Object.defineProperty(t,"SMS_LENGTH",{enumerable:!0,get:function(){return l.SMS_LENGTH}}),o(n(8955),t),o(n(2835),t),o(n(679),t),o(n(2303),t),t.processGuardedSentences=t.tokenReplacement.processGuardedSentences,t.replaceTokens=t.tokenReplacement.replaceTokens,t.LIVE_CHAT_CLIENT_NAME_MAX_LENGTH=a.CLIENT_NAME_MAX_LENGTH,t.LIVE_CHAT_OPERATOR_INPUT_MAX_LENGTH=a.OPERATOR_INPUT_MAX_LENGTH,t.CAMPAIGN_OPERATOR_INPUT_MAX_LENGTH=1600,o(n(6141),t),o(n(8662),t);var d=n(3322);Object.defineProperty(t,"LiveChatOperatorStatus",{enumerable:!0,get:function(){return d.LiveChatOperatorStatus}});var f=n(8987);Object.defineProperty(t,"LiveChatRole",{enumerable:!0,get:function(){return f.LiveChatRole}});var p=n(2712);Object.defineProperty(t,"ContactSchemaFieldType",{enumerable:!0,get:function(){return p.ContactSchemaFieldType}});var h=n(1080);Object.defineProperty(t,"CampaignSystemEventType",{enumerable:!0,get:function(){return h.CampaignSystemEventType}});var m=n(5129);Object.defineProperty(t,"OptOutContactType",{enumerable:!0,get:function(){return m.OptOutContactType}}),o(n(6653),t);var v=n(5395);Object.defineProperty(t,"contactTokens",{enumerable:!0,get:function(){return v.contactTokens}});var g=n(8263);Object.defineProperty(t,"AuditEventSeverity",{enumerable:!0,get:function(){return g.AuditEventSeverity}}),Object.defineProperty(t,"DeliveryStatus",{enumerable:!0,get:function(){return g.DeliveryStatus}}),Object.defineProperty(t,"SmsErrorCode",{enumerable:!0,get:function(){return g.SmsErrorCode}}),Object.defineProperty(t,"SmsErrorMessageMap",{enumerable:!0,get:function(){return g.SmsErrorMessageMap}});var y=n(2100);Object.defineProperty(t,"CampaignStatus",{enumerable:!0,get:function(){return y.CampaignStatus}}),Object.defineProperty(t,"CampaignIdkType",{enumerable:!0,get:function(){return y.CampaignIdkType}}),Object.defineProperty(t,"CampaignType",{enumerable:!0,get:function(){return y.CampaignType}}),Object.defineProperty(t,"CampaignConversationSystemEventType",{enumerable:!0,get:function(){return y.CampaignConversationSystemEventType}}),Object.defineProperty(t,"LaunchType",{enumerable:!0,get:function(){return y.LaunchType}});var b=n(6623);Object.defineProperty(t,"CampaignError",{enumerable:!0,get:function(){return b.CampaignError}});var E=n(6283);Object.defineProperty(t,"PhoneNumberType",{enumerable:!0,get:function(){return E.PhoneNumberType}});var w=n(1036);Object.defineProperty(t,"ConversationsPerDayScale",{enumerable:!0,get:function(){return w.ConversationsPerDayScale}});var x=n(7923);Object.defineProperty(t,"ConversationMode",{enumerable:!0,get:function(){return x.ConversationMode}});var S=n(4570);Object.defineProperty(t,"ConversationResourceType",{enumerable:!0,get:function(){return S.ConversationResourceType}});var k=n(6930);Object.defineProperty(t,"KnowledgebaseEnvironment",{enumerable:!0,get:function(){return k.KnowledgebaseEnvironment}}),o(n(6507),t);var C=n(1414);Object.defineProperty(t,"LiveChatEndingReasonType",{enumerable:!0,get:function(){return C.LiveChatEndingReasonType}});var O=n(8537);Object.defineProperty(t,"NewMessageNotificationRule",{enumerable:!0,get:function(){return O.NewMessageNotificationRule}});var T=n(2003);Object.defineProperty(t,"LiveChatOperatorChangeReasonType",{enumerable:!0,get:function(){return T.LiveChatOperatorChangeReasonType}});var _=n(4251);Object.defineProperty(t,"LiveChatOperatorAvailabilityChangeReasonType",{enumerable:!0,get:function(){return _.LiveChatOperatorAvailabilityChangeReasonType}});var N=n(9652);Object.defineProperty(t,"InternalEntityType",{enumerable:!0,get:function(){return N.InternalEntityType}}),o(n(3746),t);var R=n(5115);Object.defineProperty(t,"GetCampaignConversationsTypeFilter",{enumerable:!0,get:function(){return R.GetCampaignConversationsTypeFilter}});var P=n(6272);Object.defineProperty(t,"ComparisonOperation",{enumerable:!0,get:function(){return P.ComparisonOperation}}),Object.defineProperty(t,"LogicalOperation",{enumerable:!0,get:function(){return P.LogicalOperation}}),o(n(1071),t),o(n(2573),t);var I=n(6695);Object.defineProperty(t,"SSH_PUBLIC_KEY_PATTERN",{enumerable:!0,get:function(){return I.SSH_PUBLIC_KEY_PATTERN}}),Object.defineProperty(t,"SFTP_USER_NAME_PATTERN",{enumerable:!0,get:function(){return I.SFTP_USER_NAME_PATTERN}});var A=n(4272);Object.defineProperty(t,"priorityMatchByRegex",{enumerable:!0,get:function(){return A.priorityMatchByRegex}}),o(n(2242),t),o(n(1646),t)},405:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationActionType=void 0,function(e){e.SendResponse="SendResponse",e.Callback="Callback"}(t.ConversationActionType||(t.ConversationActionType={}))},8934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationTurnMode=t.ConversationSource=void 0;n(6253);!function(e){e.Web="web",e.CampaignSMS="campaign_sms",e.CampaignEmail="campaign_email",e.CampaignUnsolicitedSms="campaign_unsolicited_sms",e.InboundSMS="inbound_sms"}(t.ConversationSource||(t.ConversationSource={})),function(e){e.sync="sync",e.async="async",e.system="system"}(t.ConversationTurnMode||(t.ConversationTurnMode={}))},6141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(t.SortDirection||(t.SortDirection={}))},8662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PAGINATION_DEFAULT_SKIP=t.PAGINATION_UNLIMITED=t.PAGINATION_DEFAULT_LIMIT=void 0,t.PAGINATION_DEFAULT_LIMIT=10,t.PAGINATION_UNLIMITED=-1,t.PAGINATION_DEFAULT_SKIP=0},462:(e,t)=>{"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OFFICE_NAME=t.DEFAULT_OPERATOR_NICKNAME=t.InboxSubscriptionsChangeEventType=t.InboxSubscriptionsChangePayloadType=t.InboxType=void 0,t.InboxType=n,function(e){e.Personal="Personal",e.Office="Office"}(n||(t.InboxType=n={})),t.InboxSubscriptionsChangePayloadType=r,function(e){e.CampaignSubscriptionsChangedPayload="CampaignSubscriptionsChangedPayload"}(r||(t.InboxSubscriptionsChangePayloadType=r={})),t.InboxSubscriptionsChangeEventType=o,function(e){e.CampaignSubscriptionsChanged="CampaignSubscriptionsChanged"}(o||(t.InboxSubscriptionsChangeEventType=o={}));t.DEFAULT_OPERATOR_NICKNAME="Unknown Operator";t.DEFAULT_OFFICE_NAME="Unknown Office"},3535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1621);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(3919);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},1621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ACCESS_ANY_KNOWLEDGEBASE_WILDCARD=t.ACCESS_ANY_KNOWLEDGEBASE_ID=t.ACCESS_ANY_OFFICE_WILDCARD=t.ACCESS_ANY_OFFICE_ID=t.ACCESS_ANY_CAMPUS_WILDCARD=t.ACCESS_ANY_CAMPUS_ID=void 0;t.ACCESS_ANY_CAMPUS_ID=0;t.ACCESS_ANY_CAMPUS_WILDCARD="*";t.ACCESS_ANY_OFFICE_ID=0;t.ACCESS_ANY_OFFICE_WILDCARD="*";t.ACCESS_ANY_KNOWLEDGEBASE_ID=0;t.ACCESS_ANY_KNOWLEDGEBASE_WILDCARD="*"},3919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_LEGACY_ROLE_IDS=t.CHATBOT_LEGACY_ROLE_IDS=t.CHATBOT_ROLE_IDS=t.LIVECHAT_LEGACY_ROLE_IDS=t.LIVECHAT_ROLE_IDS=t.CAMPAIGN_LEGACY_ROLE_IDS=t.CAMPAIGN_ROLE_IDS=t.NONE_ROLE_LEVEL=t.CHATBOT_VIEW_OTHER_OFFICES_ROLE_ID=t.CHATBOT_ADMIN_ROLE_ID=t.CHATBOT_STANDARD_ROLE_ID=t.CHATBOT_LIMITED_ROLE_ID=t.CHATBOT_SUPER_ROLE_ID=t.CHATBOT_FULL_ACCESS_ROLE_ID=t.CHATBOT_READONLY_ROLE_ID=t.LIVECHAT_VIEW_OTHER_OFFICES_ROLE_ID=t.LIVECHAT_ADMIN_ROLE_ID=t.LIVECHAT_STANDARD_ROLE_ID=t.LIVECHAT_LIMITED_ROLE_ID=t.LIVECHAT_LIMITED_LEGACY_ROLE_ID=t.LIVECHAT_NORMAL_LEGACY_ROLE_ID=t.LIVECHAT_ADMIN_LEGACY_ROLE_ID=t.CAMPAIGN_VIEW_OTHER_OFFICES_ROLE_ID=t.CAMPAIGN_ADMIN_ROLE_ID=t.CAMPAIGN_STANDARD_ROLE_ID=t.CAMPAIGN_LIMITED_ROLE_ID=t.CAMPAIGN_STANDARD_LEGACY_ROLE_ID=t.CAMPAIGN_ADMIN_LEGACY_ROLE_ID=void 0;var n="13429b03-4002-4dc8-a271-38a7598bc74f";t.CAMPAIGN_ADMIN_LEGACY_ROLE_ID=n;var r="156dcf2c-477e-499c-a4c2-6af223a06f7a";t.CAMPAIGN_STANDARD_LEGACY_ROLE_ID=r;var o="ca32b356-d30c-4f84-b6d2-62f9e4f3c67f";t.CAMPAIGN_LIMITED_ROLE_ID=o;var i="2c8fa7f1-acdc-48a6-9ea3-3c49136483e9";t.CAMPAIGN_STANDARD_ROLE_ID=i;var a="1efd4f64-c77d-426a-81ed-939807d8b4ad";t.CAMPAIGN_ADMIN_ROLE_ID=a;t.CAMPAIGN_VIEW_OTHER_OFFICES_ROLE_ID="7bd19b53-41c8-426e-86ec-c06b5cd82239";var s="f9cce1af-5ec2-4869-904b-4bf6c5103f1e";t.LIVECHAT_ADMIN_LEGACY_ROLE_ID=s;var u="a362e13b-1570-4992-947d-487ed5454463";t.LIVECHAT_NORMAL_LEGACY_ROLE_ID=u;var c="c49a5dd7-7d02-4649-9e82-4498fa12ba26";t.LIVECHAT_LIMITED_LEGACY_ROLE_ID=c;var l="43bccf0f-1c2f-4f25-aad0-74ab4170cc09";t.LIVECHAT_LIMITED_ROLE_ID=l;var d="f662867e-c2c5-4d8b-88b7-dc6b1f910beb";t.LIVECHAT_STANDARD_ROLE_ID=d;var f="0b2d067f-167e-46b2-9429-3f47d68214df";t.LIVECHAT_ADMIN_ROLE_ID=f;t.LIVECHAT_VIEW_OTHER_OFFICES_ROLE_ID="cc6c00db-a024-41ef-8170-cf5c660c12d7";var p="933bff40-f049-47a0-880d-08d0c7f65472";t.CHATBOT_READONLY_ROLE_ID=p;var h="3c82e235-8bce-4cda-a85c-5d1afcc28c34";t.CHATBOT_FULL_ACCESS_ROLE_ID=h;var m="9d3a4429-b906-4451-a925-7c8050790c7e";t.CHATBOT_SUPER_ROLE_ID=m;var v="6231b7db-f1a2-4c1c-96d4-a83d2599564f";t.CHATBOT_LIMITED_ROLE_ID=v;var g="eb9e0a54-3793-44b9-86fd-4481d380b7a0";t.CHATBOT_STANDARD_ROLE_ID=g;var y="f0f33c54-354c-4207-88a9-c93302446660";t.CHATBOT_ADMIN_ROLE_ID=y;t.CHATBOT_VIEW_OTHER_OFFICES_ROLE_ID="943196b1-a33a-4777-afd2-fd3faad68cf1";t.NONE_ROLE_LEVEL="0";var b=[o,i,a];t.CAMPAIGN_ROLE_IDS=b;var E=[n,r];t.CAMPAIGN_LEGACY_ROLE_IDS=E;var w=[l,d,f];t.LIVECHAT_ROLE_IDS=w;var x=[s,u,c];t.LIVECHAT_LEGACY_ROLE_IDS=x;var S=[v,g,y];t.CHATBOT_ROLE_IDS=S;var k=[p,h,m];t.CHATBOT_LEGACY_ROLE_IDS=k;var C=[].concat(E,x,k);t.ALL_LEGACY_ROLE_IDS=C},1408:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadStatusRole=t.ConversationResponseType=void 0,t.ConversationResponseType=n,function(e){e.AuthRequest="auth_request",e.Form="form",e.FormNoResponse="form_no_response",e.Idk="idk",e.Knowledgebase="kb",e.NoIntent="noIntent",e.Search="search",e.Slot="slot",e.Smalltalk="smalltalk",e.Suggestion="suggestion",e.WatchVideo="watchvideo"}(n||(t.ConversationResponseType=n={})),t.ReadStatusRole=r,function(e){e.OcelotAdmin="ocelotRead",e.Client="clientRead"}(r||(t.ReadStatusRole=r={}))},6253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3520);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(4545);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=n(4029);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=n(462);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=n(1408);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=n(3535);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}))},4545:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.OcelotProductType=t.JsonApiProductAccessKey=void 0,t.JsonApiProductAccessKey=n,function(e){e.Knowledgebase="knowledgebase",e.LiveChat="live_chat",e.Campaigns="campaigns",e.Chatbot="chatbot"}(n||(t.JsonApiProductAccessKey=n={})),t.OcelotProductType=r,function(e){e.Knowledgebase="knowledgebase",e.LiveChat="livechat",e.Campaign="campaign",e.Chatbot="chatbot"}(r||(t.OcelotProductType=r={}))},3520:()=>{},4029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prismUuid=t.isoUuid=void 0;var r=n(1997),o=n(9987),i=(0,r.iso)();t.isoUuid=i;var a=(0,r.prism)((function(e){return(0,o.validate)(e)}));t.prismUuid=a},7911:e=>{function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},6277:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:()=>o})},5695:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(n=t.cmp,function(e){return function(t,r){var o={key:t,value:e[t]},i={key:r,value:e[r]};return n(o,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,u=Object.keys(t).sort(o&&o(t));for(a="",n=0;n<u.length;n++){var c=u[n],l=e(t[c]);l&&(a&&(a+=","),a+=JSON.stringify(c)+":"+l)}return i.splice(s,1),"{"+a+"}"}}(e)}},2678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.default)(0),e.prototype.inspect=t,o.default&&(e.prototype[o.default]=t)};var r=i(n(5006)),o=i(n(8019));function i(e){return e&&e.__esModule?e:{default:e}}},8048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var r,o=(r=n(8019))&&r.__esModule?r:{default:r};function i(e){return(i="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)}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(o.default)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:a(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,o=[],i=0;i<n;++i)o.push(a(e[i],t));1===r?o.push("... 1 more item"):r>1&&o.push("... ".concat(r," more items"));return"["+o.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},8019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=n},4560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(e){return null!=e&&"string"==typeof e.kind},t.Token=t.Location=void 0;var r,o=(r=n(2678))&&r.__esModule?r:{default:r};var i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=i,(0,o.default)(i);var a=function(){function e(e,t,n,r,o,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=a,this.prev=i,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,o.default)(a)},9501:(e,t)=>{"use strict";function n(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function r(e){for(var t,n=!0,r=!0,o=0,i=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,o=0;break;case 9:case 32:++o;break;default:r&&!n&&(null===i||o<i)&&(i=o),r=!1}return null!==(t=i)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),o=r(e);if(0!==o)for(var i=1;i<t.length;i++)t[i]=t[i].slice(o);var a=0;for(;a<t.length&&n(t[a]);)++a;var s=t.length;for(;s>a&&n(t[s-1]);)--s;return t.slice(a,s).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),o=" "===e[0]||"\t"===e[0],i='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||i||a||n,u="";!s||r&&o||(u+="\n"+t);u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n");return'"""'+u.replace(/"""/g,'\\"""')+'"""'}},5325:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0;var n=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});t.Kind=n},3083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:i})};var r=n(2624),o=n(9501);var i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=c("(",s(e.variableDefinitions,", "),")"),o=s(e.directives," "),i=e.selectionSet;return n||o||r||"query"!==t?s([t,s([n,r]),o,i]," "):i},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,o=e.directives;return t+": "+n+c(" = ",r)+c(" ",s(o," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,o=e.directives,i=e.selectionSet,a=c("",t,": ")+n,u=a+c("(",s(r,", "),")");return u.length>80&&(u=a+c("(\n",l(s(r,"\n")),"\n)")),s([u,s(o," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",c("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,o=e.directives,i=e.selectionSet;return"fragment ".concat(t).concat(c("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(c("",s(o," ")," "))+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,o.printBlockString)(n,"description"===t?"":"  "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),u(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return s(["type",t,c("implements ",s(n," & ")),s(r," "),u(o)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,o=e.directives;return t+(f(n)?c("(\n",l(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(o," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,o=e.directives;return s([t+": "+n,c("= ",r),s(o," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return s(["interface",t,c("implements ",s(n," & ")),s(r," "),u(o)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),u(r)]," ")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),u(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,o=e.locations;return"directive @"+t+(f(n)?c("(\n",l(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(o," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),u(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return s(["extend type",t,c("implements ",s(n," & ")),s(r," "),u(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return s(["extend interface",t,c("implements ",s(n," & ")),s(r," "),u(o)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),u(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),u(r)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function u(e){return c("{\n",l(s(e,"\n")),"\n}")}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function l(e){return c("  ",e.replace(/\n/g,"\n  "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},2624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,c=Array.isArray(e),l=[e],d=-1,f=[],p=void 0,h=void 0,m=void 0,v=[],g=[],y=e;do{var b=++d===l.length,E=b&&0!==f.length;if(b){if(h=0===g.length?void 0:v[v.length-1],p=m,m=g.pop(),E){if(c)p=p.slice();else{for(var w={},x=0,S=Object.keys(p);x<S.length;x++){var k=S[x];w[k]=p[k]}p=w}for(var C=0,O=0;O<f.length;O++){var T=f[O][0],_=f[O][1];c&&(T-=C),c&&null===_?(p.splice(T,1),C++):p[T]=_}}d=r.index,l=r.keys,f=r.edits,c=r.inArray,r=r.prev}else{if(h=m?c?d:l[d]:void 0,null==(p=m?m[h]:y))continue;m&&v.push(h)}var N,R=void 0;if(!Array.isArray(p)){if(!(0,i.isNode)(p))throw new Error("Invalid AST Node: ".concat((0,o.default)(p),"."));var P=u(t,p.kind,b);if(P){if((R=P.call(t,p,h,m,v,g))===s)break;if(!1===R){if(!b){v.pop();continue}}else if(void 0!==R&&(f.push([h,R]),!b)){if(!(0,i.isNode)(R)){v.pop();continue}p=R}}}if(void 0===R&&E&&f.push([h,p]),b)v.pop();else r={inArray:c,index:d,keys:l,edits:f,prev:r},c=Array.isArray(p),l=c?p:null!==(N=n[p.kind])&&void 0!==N?N:[],d=-1,f=[],m&&g.push(m),m=p}while(void 0!==r);0!==f.length&&(y=f[f.length-1][1]);return y},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var o=u(e[r],n.kind,!1);if(o){var i=o.apply(e[r],arguments);if(!1===i)t[r]=n;else if(i===s)t[r]=s;else if(void 0!==i)return i}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var o=u(e[r],n.kind,!0);if(o){var i=o.apply(e[r],arguments);if(i===s)t[r]=s;else if(void 0!==i&&!1!==i)return i}}else t[r]===n&&(t[r]=null)}}},t.getVisitFn=u,t.BREAK=t.QueryDocumentKeys=void 0;var r,o=(r=n(8048))&&r.__esModule?r:{default:r},i=n(4560);var a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;var s=Object.freeze({});function u(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var o=n?r.leave:r.enter;if("function"==typeof o)return o}else{var i=n?e.leave:e.enter;if(i){if("function"==typeof i)return i;var a=i[t];if("function"==typeof a)return a}}}t.BREAK=s},3922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){for(var n=null,o=0,i=e.definitions;o<i.length;o++){var a,s=i[o];if(s.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=s}else if((null===(a=s.name)||void 0===a?void 0:a.value)===t)return s}return n};var r=n(5325)},3463:(e,t,n)=>{"use strict";var r=n(3887),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=f(n,g);try{c(t,g,y)}catch(e){}}}}return t}},3459:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=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,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=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,E=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case u:return e;default:return t}}case o:return t}}}function x(e){return w(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||w(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E||e.$$typeof===g)},t.typeOf=w},3887:(e,t,n)=>{"use strict";e.exports=n(3459)},2034:(e,t,n)=>{var r,o;!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var a=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in i)i[u]&&(s+="; "+u,!0!==i[u]&&(s+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(s[0]);if(u=(r.read||r)(u,c)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[c]=u,e===c)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},4720:(e,t,n)=>{"use strict";n.d(t,{RB:()=>$,Ue:()=>ge,JH:()=>f,_$:()=>me,HZ:()=>ve,EK:()=>h});var r=n(7896),o="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};const i="object"===("undefined"==typeof window?"undefined":o(window))&&"object"===("undefined"==typeof document?"undefined":o(document))&&9===document.nodeType;var a=n(7371),s=n(1665),u=n(753),c=n(1461),l={}.constructor;function d(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(d);if(e.constructor!==l)return e;var t={};for(var n in e)t[n]=d(e[n]);return t}function f(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=d(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var p=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},h=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=p(e[r]," ");else n=p(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function m(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function v(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var u=a[s];for(var c in u){var l=u[c];null!=l&&(r&&(r+="\n"),r+=""+m(c+": "+h(l)+";",i))}}else for(var d in a){var f=a[d];null!=f&&(r&&(r+="\n"),r+=""+m(d+": "+h(f)+";",i))}for(var p in t){var v=t[p];null!=v&&"fallbacks"!==p&&(r&&(r+="\n"),r+=""+m(p+": "+h(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),m(e+" {"+r,--i)+m("}",i)):r}var g=/([[\].#*$><+~=|^:(),"'`\s])/g,y="undefined"!=typeof CSS&&CSS.escape,b=function(e){return y?y(e):e.replace(g,"\\$1")},E=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var u=this.options.sheet;return u&&u.attached,this},e}(),w=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,s=r.sheet,c=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=c((0,u.Z)((0,u.Z)(o)),s),o.selectorText="."+b(o.id)),o}(0,s.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=h(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return v(this.selectorText,this.style,n)},(0,a.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(E),x={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new w(e,t,n)}},S={indent:1,children:!0},k=/@([\w-]+)/,C=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var o=e.match(k);for(var i in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new $((0,r.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),O=/@media|@supports\s+/,T={onCreateRule:function(e,t,n){return O.test(e)?new C(e,t,n):null}},_={indent:1,children:!0},N=/@keyframes\s+([\w-]+)/,R=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var o=e.match(N);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===i?this.name:b(s(this,a)),this.rules=new $((0,r.Z)({},n,{parent:this})),t)this.rules.add(u,t[u],(0,r.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=_),null==e.indent&&(e.indent=_.indent),null==e.children&&(e.children=_.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),P=/@keyframes\s+/,I=/\$([\w-]+)/g,A=function(e,t){return"string"==typeof e?e.replace(I,(function(e,n){return n in t?t[n]:e})):e},M=function(e,t,n){var r=e[t],o=A(r,n);o!==r&&(e[t]=o)},L={onCreateRule:function(e,t,n){return"string"==typeof e&&P.test(e)?new R(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&M(e,"animation-name",n.keyframes),"animation"in e&&M(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return A(e,r.keyframes);default:return e}}},D=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return(0,s.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return v(this.key,this.style,n)},t}(E),j={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new D(e,t,n):null}},F=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=v(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return v(this.at,this.style,e)},e}(),Z=/@font-face/,U={onCreateRule:function(e,t,n){return Z.test(e)?new F(e,t,n):null}},B=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return v(this.key,this.style,e)},e}(),z={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new B(e,t,n):null}},V=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),q={"@charset":!0,"@import":!0,"@namespace":!0},W=[x,T,L,j,U,z,{onCreateRule:function(e,t,n){return e in q?new V(e,t,n):null}}],H={process:!0},G={force:!0,process:!0},$=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var o=this.options,i=o.parent,a=o.sheet,s=o.jss,u=o.Renderer,c=o.generateId,l=o.scoped,d=(0,r.Z)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:u,generateId:c,scoped:l,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+b(this.classes[p]));var h=f(p,t,d);if(!h)return null;this.register(h);var m=void 0===d.index?this.index.length:d.index;return this.index.splice(m,0,h),h},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof w?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof R&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof w?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof R&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=H);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t,u=s.style;if(i.onUpdate(n,t,a,r),r.process&&u&&u!==s.style){for(var c in i.onProcessStyle(s.style,s,a),s.style){var l=s.style[c];l!==u[c]&&s.prop(c,l,G)}for(var d in u){var f=s.style[d],p=u[d];null==f&&f!==p&&s.prop(d,null,G)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),Q=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,r.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new $(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),K=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Y=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,c.Z)(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},(0,a.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),X="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),J="2f1acc6c3a606b082e5eef5e54414ffb";null==X[J]&&(X[J]=0);var ee=X[J]++,te=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ee+o+t:i+n.key+"-"+ee+(o?"-"+o:"")+"-"+t}},ne=function(e){var t;return function(){return t||(t=e()),t}},re=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},oe=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=h(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0},ie=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},ae=function(e,t){return e.selectorText=t,e.selectorText===t},se=ne((function(){return document.querySelector("head")}));function ue(e){var t=Y.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=se(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var ce=ne((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),le=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},de=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},fe=function(){function e(e){this.getPropertyValue=re,this.setProperty=oe,this.removeProperty=ie,this.setSelector=ae,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&Y.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,o=n.meta,i=n.element;this.element=i||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),o&&this.element.setAttribute("data-meta",o);var a=ce();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ue(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else se().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=de(n,t);if(!1===(o=le(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=de(n,t),u=le(n,a,s);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,s,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Q&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),pe=0,he=function(){function e(e){this.id=pe++,this.version="10.6.0",this.plugins=new K,this.options={id:{minify:!1},createGenerateId:te,Renderer:i?fe:null,plugins:[]},this.generateId=te({minify:!1});for(var t=0;t<W.length;t++)this.plugins.use(W[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,r.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Y.index?0:Y.index+1);var o=new Q(e,(0,r.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),Y.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var o=(0,r.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||(o.generateId=this.generateId),o.classes||(o.classes={}),o.keyframes||(o.keyframes={});var i=f(e,t,o);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function me(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=me(r);i&&(t||(t={}),t[n]=i)}}return t}var ve="object"==typeof CSS&&null!=CSS&&"number"in CSS,ge=function(e){return new he(e)};ge()},3958:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",l="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",m="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",b="[object WeakMap]",E="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[i]=k[a]=k[E]=k[s]=k[w]=k[u]=k[c]=k[l]=k[d]=k[f]=k[p]=k[m]=k[v]=k[g]=k[b]=!1;var C="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,O="object"==typeof self&&self&&self.Object===Object&&self,T=C||O||Function("return this")(),_=t&&!t.nodeType&&t,N=_&&e&&!e.nodeType&&e,R=N&&N.exports===_,P=R&&C.process,I=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),A=I&&I.isTypedArray;function M(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var j,F,Z,U=Array.prototype,B=Function.prototype,z=Object.prototype,V=T["__core-js_shared__"],q=B.toString,W=z.hasOwnProperty,H=(j=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",G=z.toString,$=RegExp("^"+q.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=R?T.Buffer:void 0,K=T.Symbol,Y=T.Uint8Array,X=z.propertyIsEnumerable,J=U.splice,ee=K?K.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=Q?Q.isBuffer:void 0,re=(F=Object.keys,Z=Object,function(e){return F(Z(e))}),oe=Ie(T,"DataView"),ie=Ie(T,"Map"),ae=Ie(T,"Promise"),se=Ie(T,"Set"),ue=Ie(T,"WeakMap"),ce=Ie(Object,"create"),le=De(oe),de=De(ie),fe=De(ae),pe=De(se),he=De(ue),me=K?K.prototype:void 0,ve=me?me.valueOf:void 0;function ge(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 ye(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 be(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 Ee(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new ye(e);this.size=t.size}function xe(e,t){var n=Ze(e),r=!n&&Fe(e),o=!n&&!r&&Ue(e),i=!n&&!r&&!o&&We(e),a=n||r||o||i,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 c in e)!t&&!W.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Le(c,u))||s.push(c);return s}function Se(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function ke(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=W.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var o=G.call(e);r&&(t?e[ee]=n:delete e[ee]);return o}(e):function(e){return G.call(e)}(e)}function Ce(e){return qe(e)&&ke(e)==i}function Oe(e,t,n,r,o){return e===t||(null==e||null==t||!qe(e)&&!qe(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var h=Ze(e),b=Ze(t),x=h?a:Me(e),S=b?a:Me(t),k=(x=x==i?p:x)==p,C=(S=S==i?p:S)==p,O=x==S;if(O&&Ue(e)){if(!Ue(t))return!1;h=!0,k=!1}if(O&&!k)return l||(l=new we),h||We(e)?Ne(e,t,n,r,o,l):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!i(new Y(e),new Y(t)));case s:case u:case f:return je(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case d:var l=L;case v:var p=1&r;if(l||(l=D),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Ne(l(e),l(t),r,o,i,a);return a.delete(e),b;case y:if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,x,n,r,o,l);if(!(1&n)){var T=k&&W.call(e,"__wrapped__"),_=C&&W.call(t,"__wrapped__");if(T||_){var N=T?e.value():e,R=_?t.value():t;return l||(l=new we),o(N,R,n,r,l)}}if(!O)return!1;return l||(l=new we),function(e,t,n,r,o,i){var a=1&n,s=Re(e),u=s.length,c=Re(t).length;if(u!=c&&!a)return!1;var l=u;for(;l--;){var d=s[l];if(!(a?d in t:W.call(t,d)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var p=!0;i.set(e,t),i.set(t,e);var h=a;for(;++l<u;){var m=e[d=s[l]],v=t[d];if(r)var g=a?r(v,m,d,t,e,i):r(m,v,d,e,t,i);if(!(void 0===g?m===v||o(m,v,n,r,i):g)){p=!1;break}h||(h="constructor"==d)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,l)}(e,t,n,r,Oe,o))}function Te(e){return!(!Ve(e)||function(e){return!!H&&H in e}(e))&&(Be(e)?$:x).test(De(e))}function _e(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||z,t!==r)return re(e);var t,n,r,o=[];for(var i in Object(e))W.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ne(e,t,n,r,o,i){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,d=!0,f=2&n?new Ee:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var p=e[l],h=t[l];if(r)var m=a?r(h,p,l,t,e,i):r(p,h,l,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!M(t,(function(e,t){if(a=t,!f.has(a)&&(p===e||o(p,e,n,r,i)))return f.push(t);var a}))){d=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Re(e){return function(e,t,n){var r=t(e);return Ze(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,He,Ae)}function Pe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Te(n)?n:void 0}ge.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(ce){var n=t[e];return n===r?void 0:n}return W.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:W.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?r:t,this},ye.prototype.clear=function(){this.__data__=[],this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=Se(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},ye.prototype.get=function(e){var t=this.__data__,n=Se(t,e);return n<0?void 0:t[n][1]},ye.prototype.has=function(e){return Se(this.__data__,e)>-1},ye.prototype.set=function(e,t){var n=this.__data__,r=Se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(ie||ye),string:new ge}},be.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Pe(this,e).get(e)},be.prototype.has=function(e){return Pe(this,e).has(e)},be.prototype.set=function(e,t){var n=Pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,r),this},Ee.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ye,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Ae=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(te(e),(function(t){return X.call(e,t)})))}:function(){return[]},Me=ke;function Le(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function De(e){if(null!=e){try{return q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(oe&&Me(new oe(new ArrayBuffer(1)))!=w||ie&&Me(new ie)!=d||ae&&Me(ae.resolve())!=h||se&&Me(new se)!=v||ue&&Me(new ue)!=b)&&(Me=function(e){var t=ke(e),n=t==p?e.constructor:void 0,r=n?De(n):"";if(r)switch(r){case le:return w;case de:return d;case fe:return h;case pe:return v;case he:return b}return t});var Fe=Ce(function(){return arguments}())?Ce:function(e){return qe(e)&&W.call(e,"callee")&&!X.call(e,"callee")},Ze=Array.isArray;var Ue=ne||function(){return!1};function Be(e){if(!Ve(e))return!1;var t=ke(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ze(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qe(e){return null!=e&&"object"==typeof e}var We=A?function(e){return function(t){return e(t)}}(A):function(e){return qe(e)&&ze(e.length)&&!!k[ke(e)]};function He(e){return null!=(t=e)&&ze(t.length)&&!Be(t)?xe(e):_e(e);var t}e.exports=function(e,t){return Oe(e,t)}},9612:(e,t,n)=>{var r=n(2118),o=n(6909),i=n(8138),a=n(4174),s=n(7942);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=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},235:(e,t,n)=>{var r=n(3945),o=n(1846),i=n(8028),a=n(2344),s=n(4769);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=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),o=n(6417),i=n(6928),a=n(9493),s=n(4150);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=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},2517: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}},1634:(e,t,n)=>{var r=n(6473),o=n(9631),i=n(6152),a=n(3226),s=n(9045),u=n(7598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),d=!n&&!l&&a(e),f=!n&&!l&&!d&&u(e),p=n||l||d||f,h=p?r(e.length,String):[],m=h.length;for(var v in e)!t&&!c.call(e,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4034:e=>{e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},4303:(e,t,n)=>{var r=n(6548),o=n(2019)(r);e.exports=o},5308:(e,t,n)=>{var r=n(5463)();e.exports=r},6548:(e,t,n)=>{var r=n(5308),o=n(249);e.exports=function(e,t){return e&&r(e,t,o)}},3324:(e,t,n)=>{var r=n(7297),o=n(3812);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},3366:(e,t,n)=>{var r=n(857),o=n(2107),i=n(7157),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)?o(e):i(e)}},2726:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},5183:(e,t,n)=>{var r=n(3366),o=n(5125);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},6840:(e,t,n)=>{var r=n(1049),o=n(7394),i=n(9259),a=n(7035),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,d=c.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},5522:(e,t,n)=>{var r=n(3366),o=n(1158),i=n(5125),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 i(e)&&o(e.length)&&!!a[r(e)]}},6411:(e,t,n)=>{var r=n(6001),o=n(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1054:(e,t,n)=>{var r=n(857),o=n(343),i=n(6152),a=n(4795),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},1704:(e,t,n)=>{var r=n(2153),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9419:(e,t,n)=>{var r=n(3059);e.exports=function(e){return"function"==typeof e?e:r}},7297:(e,t,n)=>{var r=n(6152),o=n(1401),i=n(4452),a=n(6188);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},2019:(e,t,n)=>{var r=n(7878);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},5463:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),o=n(8109);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1369:(e,t,n)=>{var r=n(7297),o=n(9631),i=n(6152),a=n(9045),s=n(1158),u=n(3812);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,d=!1;++c<l;){var f=u(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=l?d:!!(l=null==e?0:e.length)&&s(l)&&a(f,l)&&(i(e)||o(e))}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),o=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 o.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);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}},9045: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}},1401:(e,t,n)=>{var r=n(6152),o=n(4795),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,o=n(4019),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),o=n(235),i=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},7777:(e,t,n)=>{var r=n(733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},4248:(e,t,n)=>{var r=n(241)(Object.keys,Object);e.exports=r},4146:(e,t,n)=>{e=n.nmd(e);var r=n(1242),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},7772:(e,t,n)=>{var r=n(1242),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},4452:(e,t,n)=>{var r=n(7777),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},3812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},7035: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""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},7630:(e,t,n)=>{var r=n(4034),o=n(1054),i=n(8101),a=n(6188);e.exports=function(e,t,n){e=a(e),t=o(t);var s=e.length,u=n=void 0===n?s:r(i(n),0,s);return(n-=t.length)>=0&&e.slice(n,u)==t}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9166:(e,t,n)=>{var r=n(6188),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);e.exports=function(e){return(e=r(e))&&i.test(e)?e.replace(o,"\\$&"):e}},9756:(e,t,n)=>{var r=n(2517),o=n(4303),i=n(9419),a=n(6152);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},2579:(e,t,n)=>{var r=n(3324);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},3352:(e,t,n)=>{var r=n(2726),o=n(1369);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3059:e=>{e.exports=function(e){return e}},9631:(e,t,n)=>{var r=n(5183),o=n(5125),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,n)=>{var r=n(1049),o=n(1158);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3226:(e,t,n)=>{e=n.nmd(e);var r=n(7772),o=n(6330),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u},1049:(e,t,n)=>{var r=n(3366),o=n(9259);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},537:(e,t,n)=>{var r=n(3366),o=n(5125);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,n)=>{var r=n(3366),o=n(6152),i=n(5125);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},4795:(e,t,n)=>{var r=n(3366),o=n(5125);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7598:(e,t,n)=>{var r=n(5522),o=n(7826),i=n(4146),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},249:(e,t,n)=>{var r=n(1634),o=n(6411),i=n(7878);e.exports=function(e){return i(e)?r(e):o(e)}},733:(e,t,n)=>{var r=n(6738);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},6330:e=>{e.exports=function(){return!1}},5707:(e,t,n)=>{var r=n(7642),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8101:(e,t,n)=>{var r=n(5707);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},7642:(e,t,n)=>{var r=n(1704),o=n(9259),i=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},865:(e,t,n)=>{e.exports=n(9221)},9221:(e,t)=>{var n,r={asArray:function(e){var t=this.getBreakPoints(e),n=this.getCustomQueries(e);return this._translate(this._makeSteps(this._toSortedArray(t))).concat(this._objToArr(n))},asObject:function(e){return this._arrToObj(this.asArray(e))},getBreakPoints:function(e){return Object.keys(e).reduce((function(t,n){return"number"==typeof e[n]&&(t[n]=e[n]),t}),{})},getCustomQueries:function(e){return Object.keys(e).reduce((function(t,n){return"string"==typeof e[n]&&(t[n]=e[n]),t}),{})},_toSortedArray:function(e){return Object.keys(e).map((function(t){return[t,e[t]]})).sort((function(e,t){return e[1]-t[1]}))},_makeSteps:function(e){return e[e.length-1][1]===1/0?e:e.concat([1/0])},_translate:function(e){return e.map((function(t,n){return 0===n?[t[0],"screen and (max-width: "+t[1]+"px)"]:n===e.length-1?[t[0]||"default","screen and (min-width: "+(e[n-1][1]+1)+"px)"]:[t[0],"screen and (min-width: "+(e[n-1][1]+1)+"px) and (max-width: "+t[1]+"px)"]}))},_objToArr:function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))},_arrToObj:function(e){return e.reduce((function(e,t){return e[t[0]]=t[1],e}),{})}};void 0!==e.exports?e.exports=r:void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)},1997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getEq:()=>mr,getField:()=>wr,getMonoid:()=>yr,getOrd:()=>vr,getRing:()=>Er,getSemigroup:()=>gr,getSemiring:()=>br,iso:()=>Sr,prism:()=>kr});var r={};n.r(r),n.d(r,{Category:()=>Fn,Invariant:()=>Dn,Semigroupoid:()=>jn,URI:()=>Ln,asOptional:()=>un,asTraversal:()=>cn,atKey:()=>On,component:()=>xn,compose:()=>ln,composeIso:()=>fn,composeLens:()=>dn,composeOptional:()=>hn,composePrism:()=>pn,composeTraversal:()=>mn,filter:()=>bn,findFirst:()=>Pn,findFirstNonEmpty:()=>In,fromNullable:()=>yn,id:()=>sn,imap:()=>An,index:()=>Sn,indexNonEmpty:()=>kn,key:()=>Cn,left:()=>Nn,lens:()=>an,modify:()=>vn,modifyF:()=>gn,prop:()=>En,props:()=>wn,right:()=>_n,some:()=>Tn,traverse:()=>Rn});function o(e){return e}var i=o;function a(e){return function(){return e}}function s(e,t,n,r,o,i,a,s,u){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return o(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return i(o(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return a(i(o(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(a(i(o(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return u(s(a(i(o(r(n(t(e.apply(this,arguments)))))))))}}}function u(e,t,n,r,o,i,a,s,u){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return o(r(n(t(e))));case 6:return i(o(r(n(t(e)))));case 7:return a(i(o(r(n(t(e))))));case 8:return s(a(i(o(r(n(t(e)))))));case 9:return u(s(a(i(o(r(n(t(e))))))));default:for(var c=arguments[0],l=1;l<arguments.length;l++)c=arguments[l](c);return c}}var c=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},l=function(e){return"Some"===e._tag},d={_tag:"None"},f=function(e){return{_tag:"Some",value:e}},p=function(e){return"Left"===e._tag},h=[],m=Object.prototype.hasOwnProperty,v=function(e){return c([e[0]],e.slice(1))};var g,y=function(){return{concat:o}};g=void 0;var b=function(e,t){return{left:e,right:t}};function E(e,t){return function(n){var r=e.traverse(n);return function(e,o){return n.map(r(e,o),t.separate)}}}function w(e,t){return function(n){var r=e.traverse(n);return function(e,o){return n.map(r(e,o),t.compact)}}}var x=d,S=f;function k(e){return function(t){return e(t)?S(t):x}}var C=function(e){return"Left"===e._tag?x:S(e.right)},O=function(e,t){return u(e,_(t))},T=function(e){return{concat:function(t,n){return P(t)?n:P(n)?t:S(e.concat(t.value,n.value))},empty:x}},_=function(e){return function(t){return P(t)?x:S(e(t.value))}},N=function(e){return function(t){return P(t)?x:e(t.value)}},R=C,P=function(e){return"None"===e._tag},I=function(e,t){return function(n){return P(n)?e():t(n.value)}},A=I,M=A,L=function(e){return function(t){return P(t)?e():t.value}},D=function(e){return null==e?x:S(e)};var j=O,F=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Z=h,U=function(e){return e.length>0},B=function(e,t){return e<0||e>=t.length},z=function(e){return function(t){return F(F([],t),[e])}},V=z,q=function(e,t,n){if(n[e]===t)return n;var r=v(n);return r[e]=t,r};var W=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},H=function(e){return function(t){return W(W([],t),[e])}},G=H;var $=function(e){return[e]};var Q=U,K=V;var Y=B;function X(e,t){return void 0===t?function(t){return X(e,t)}:Y(e,t)?d:f(t[e])}var J=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f(n);return d}};function ee(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f(t[n]);return d}}var te=function(e,t){return u(e,se(t))},ne=function(e,t,n){return u(e,pe(t,n))},re=function(e){var t=he(e);return function(e,n){return u(e,t(n))}},oe=function(e,t,n){return u(e,ve(t,n))},ie=function(e){var t=ye(e);return function(e,n){return u(e,t(n))}},ae=function(){return Ce},se=function(e){return function(t){return t.map((function(t){return e(t)}))}},ue=function(e){for(var t=[],n=[],r=0,o=e;r<o.length;r++){var i=o[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return b(t,n)},ce=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var o=e(r,t[r]);l(o)&&n.push(o.value)}return n}},le=function(e){return ce((function(t,n){return e(n)}))},de=le(o),fe=function(e){return function(t){return function(n){return n.reduce((function(n,r,o){return e.concat(n,t(o,r))}),e.empty)}}},pe=function(e,t){return me(e,(function(e,n,r){return t(n,r)}))},he=function(e){var t=fe(e);return function(e){return t((function(t,n){return e(n)}))}},me=function(e,t){return function(n){for(var r=n.length,o=e,i=0;i<r;i++)o=t(i,o,n[i]);return o}},ve=function(e,t){return ge(e,(function(e,n,r){return t(n,r)}))},ge=function(e,t){return function(n){return n.reduceRight((function(e,n,r){return t(r,n,e)}),e)}},ye=function(e){var t=Ee(e);return function(e){return t((function(t,n){return e(n)}))}},be=function(e){return function(t){return ne(t,e.of(ae()),(function(t,n){return e.ap(e.map(t,(function(e){return function(t){return u(e,K(t))}})),n)}))}},Ee=function(e){return function(t){return me(e.of(ae()),(function(n,r,o){return e.ap(e.map(r,(function(e){return function(t){return u(e,K(t))}})),t(n,o))}))}},we="ReadonlyArray",xe={URI:we,compact:de,separate:ue},Se={URI:we,map:te,reduce:ne,foldMap:re,reduceRight:oe,traverse:ie,sequence:be},ke=(w(Se,xe),E(Se,xe),function(e,t,n){return Q(n)?q(e,t,n):n}),Ce=Z,Oe=G;var Te=function(e,t){return u(e,Ae(t))},_e=function(e,t,n){return u(e,Ze(t,n))},Ne=function(e){var t=Fe(e);return function(e,n){return u(e,t(n))}},Re=function(e,t,n){return u(e,Be(t,n))},Pe=function(e){var t=ze(e);return function(e,n){return u(e,t(n))}},Ie=$,Ae=function(e){return function(t){return t.map((function(t){return e(t)}))}},Me=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var o=e(r,t[r]);l(o)&&n.push(o.value)}return n}},Le=function(e){return Me((function(t,n){return e(n)}))},De=Le(o),je=function(e){for(var t=[],n=[],r=0,o=e;r<o.length;r++){var i=o[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return b(t,n)},Fe=he,Ze=pe,Ue=me,Be=ve,ze=function(e){var t=qe(e);return function(e){return t((function(t,n){return e(n)}))}},Ve=function(e){return function(t){return _e(t,e.of([]),(function(t,n){return e.ap(e.map(t,(function(e){return function(t){return u(e,Oe(t))}})),n)}))}},qe=function(e){return function(t){return Ue(e.of([]),(function(n,r,o){return e.ap(e.map(r,(function(e){return function(t){return u(e,Oe(t))}})),t(n,o))}))}},We="Array",He={URI:We,compact:De,separate:je},Ge={URI:We,map:Te,reduce:_e,foldMap:Ne,reduceRight:Re,traverse:Pe,sequence:Ve},$e=(w(Ge,He),E(Ge,He),i);function Qe(e){var t=function(e){return{URI:Xe,_E:void 0,map:Ke,ap:function(t,n){return $e(e.concat(t,n))}}}(e);return{URI:Xe,_E:void 0,map:t.map,ap:t.ap,of:function(){return $e(e.empty)}}}var Ke=function(e,t){return u(e,Ye(t))},Ye=function(){return i},Xe="Const",Je={concat:function(e,t){return e&&t},empty:!0},et={concat:function(e,t){return e||t},empty:!1};var tt=u;function nt(e){return function(t){if(!m.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}function rt(e,t){return void 0===t?function(t){return rt(e,t)}:m.call(t,e)?f(t[e]):d}var ot=function(e,t){return function(n){if(m.call(n,e)&&n[e]===t)return n;var r=Object.assign({},n);return r[e]=t,r}};var it=function(e){return{_tag:"Left",left:e}},at=function(e){return{_tag:"Right",right:e}},st=p;var ut=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},ct=function(e){return pt(e.get,s(e.reverseGet,a))},lt=function(e){return bt(s(e.get,S),e.reverseGet)},dt=function(e){return Rt(s(e.get,S),s(e.reverseGet,a))},ft=function(e){return Zt((function(t){return function(n){return function(r){return t.map(n(e.get(r)),(function(t){return e.reverseGet(t)}))}}}))},pt=function(e,t){return{get:e,set:t}},ht=function(e){return Rt(s(e.get,S),e.set)},mt=function(e){return Zt((function(t){return function(n){return function(r){return t.map(n(e.get(r)),(function(t){return e.set(t)(r)}))}}}))},vt=function(e){return function(t){return pt((function(n){return e.get(t.get(n))}),(function(n){return function(r){return t.set(e.set(n)(t.get(r)))(r)}}))}},gt=function(e){return function(t){return bt(s(t.getOption,N(e.getOption)),s(e.reverseGet,t.reverseGet))}},yt=function(e){return function(t){return Mt(Et(e))(ht(t))}},bt=function(e,t){return{getOption:e,reverseGet:t}},Et=function(e){return Rt(e.getOption,(function(t){return kt(t)(e)}))},wt=function(e){return Zt((function(t){return function(n){return function(r){return tt(e.getOption(r),M((function(){return t.of(r)}),(function(o){return t.map(n(o),(function(t){return kt(t)(e)(r)}))})))}}}))},xt=function(e){return function(t){return function(n){return tt(t.getOption(n),_((function(r){var o=e(r);return o===r?n:t.reverseGet(o)})))}}},St=function(e){return function(t){var n=xt(e)(t);return function(e){return tt(n(e),L((function(){return e})))}}},kt=function(e){return St((function(){return e}))},Ct=function(){return bt(D,o)},Ot=function(e){return bt(k(e),o)},Tt=function(){return bt(o,S)},_t=function(){return bt(R,at)},Nt=function(){return bt((function(e){return st(e)?S(e.left):x}),it)},Rt=function(e,t){return{getOption:e,set:t}},Pt=function(e){return Zt((function(t){return function(n){return function(r){return tt(e.getOption(r),M((function(){return t.of(r)}),(function(o){return t.map(n(o),(function(t){return e.set(t)(r)}))})))}}}))},It=function(e){return function(t){return function(n){return tt(t.getOption(n),_((function(r){var o=e(r);return o===r?n:t.set(o)(n)})))}}},At=function(e){return function(t){var n=It(e)(t);return function(e){return tt(n(e),L((function(){return e})))}}},Mt=function(e){return function(t){return Rt(s(t.getOption,N(e.getOption)),(function(n){return At(e.set(n))(t)}))}},Lt=function(e){return function(t){return tt(t,Mt(Wt().index(e)))}},Dt=function(e){return function(t){return tt(t,Mt(Ht().index(e)))}},jt=function(e){return function(t){return tt(t,Mt(Gt().index(e)))}},Ft=function(e,t,n){if(n[e]===t)return n;var r=ut([n[0]],n.slice(1));return r[e]=t,r},Zt=function(e){return{modifyF:e}};function Ut(e){return function(t){return Zt((function(n){return function(r){return t.modifyF(n)(e.modifyF(n)(r))}}))}}var Bt={URI:"Identity",map:function(e,t){return t(e)},of:o,ap:function(e,t){return e(t)}};function zt(e){return function(){return Zt((function(t){var n=function(e){return"Identity"===e.URI}(t)?e.map:e.traverse(t);return function(e){return function(t){return n(t,e)}}}))}}function Vt(e){return Ut(zt(e)())}var qt=function(e){return{index:e}},Wt=function(){return qt((function(e){return Rt((function(t){return X(e,t)}),(function(t){return function(n){return tt(X(e,n),M((function(){return n}),(function(){return ke(e,t,n)})))}}))}))},Ht=function(){return qt((function(e){return Rt((function(t){return X(e,t)}),(function(t){return function(n){return tt(X(e,n),M((function(){return n}),(function(){return Ft(e,t,n)})))}}))}))},Gt=function(){return qt((function(e){return Rt((function(t){return rt(e,t)}),(function(t){return function(n){return n[e]===t||P(rt(e,n))?n:ot(e,t)(n)}}))}))},$t=function(e){return{at:e}};function Qt(){return $t((function(e){return pt((function(t){return rt(e,t)}),M((function(){return nt(e)}),(function(t){return ot(e,t)})))}))}var Kt=$t,Yt=function(e,t){return{get:e,reverseGet:t}},Xt=ct,Jt=lt,en=dt,tn=ft,nn=function(e){return function(t){return Yt(s(t.get,e.get),s(e.reverseGet,t.reverseGet))}},rn=function(e){return s(Jt,gt(e))};Tt(),_t(),Nt();var on=qt,an=pt,sn=function(){return pt(o,a)},un=ht,cn=mt,ln=vt,dn=ln,fn=s(ct,ln),pn=yt,hn=function(e){return s(un,Mt(e))},mn=function(e){return s(cn,Ut(e))},vn=function(e){return function(t){return function(n){var r=t.get(n),o=e(r);return r===o?n:t.set(o)(n)}}};function gn(e){return function(t){return function(n){return function(r){return tt(n.get(r),t,(function(t){return e.map(t,(function(e){return n.set(e)(r)}))}))}}}}var yn=function(e){return pn(Ct())(e)};function bn(e){return pn(Ot(e))}var En=function(e){return function(t){return pt((function(n){return t.get(n)[e]}),(function(n){return function(r){var o,i=t.get(r);return n===i[e]?r:t.set(Object.assign({},i,((o={})[e]=n,o)))(r)}}))}},wn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return pt((function(n){for(var r=t.get(n),o={},i=0,a=e;i<a.length;i++){var s=a[i];o[s]=r[s]}return o}),(function(n){return function(r){for(var o=t.get(r),i=0,a=e;i<a.length;i++){var s=a[i];if(n[s]!==o[s])return t.set(Object.assign({},o,n))(r)}return r}}))}},xn=function(e){return function(t){return pt((function(n){return t.get(n)[e]}),(function(n){return function(r){var o=t.get(r);if(n===o[e])return r;var i=o.slice();return i[e]=n,t.set(i)(r)}}))}},Sn=function(e){return s(un,Lt(e))},kn=function(e){return s(un,Dt(e))},Cn=function(e){return s(un,jt(e))},On=function(e){return function(t){return tt(t,vt(Qt().at(e)))}},Tn=pn(Tt()),_n=pn(_t()),Nn=pn(Nt());function Rn(e){return s(cn,Vt(e))}function Pn(e){return hn(function(e){return Rt(ee(e),(function(t){return function(n){return tt(J(e)(n),M((function(){return n}),(function(e){return ke(e,t,n)})))}}))}(e))}function In(e){return hn(function(e){return Rt(ee(e),(function(t){return function(n){return tt(J(e)(n),M((function(){return n}),(function(e){return Ft(e,t,n)})))}}))}(e))}var An=function(e,t){return function(n){return Mn(n,e,t)}},Mn=function(e,t,n){return an(s(e.get,t),s(n,e.set))},Ln="monocle-ts/Lens",Dn={URI:Ln,imap:Mn},jn={URI:Ln,compose:function(e,t){return ln(e)(t)}},Fn={URI:Ln,compose:jn.compose,id:sn},Zn=Pt,Un=Mt,Bn=It,zn=At;Et(Ct());Et(Tt()),Et(_t()),Et(Nt());var Vn=Ot,qn=Et,Wn=wt,Hn=gt,Gn=function(e){return function(t){return Mt(ht(e))(Et(t))}};Ct();Tt(),_t(),Nt();var $n=Ut,Qn=function(e){return function(t){return t.modifyF(Bt)(e)}};wt(Tt()),wt(_t()),wt(Nt());var Kn=function(e){return new or(e.get,e.reverseGet)},Yn=function(e){return new ir(e.get,e.set)},Xn=function(e){return new ar(e.getOption,e.reverseGet)},Jn=function(e){return new ur(e.getOption,e.set)},er=function(e){return new cr(e.modifyF)},tr=function(e){return new lr((function(t){return Yn(e.at(t))}))},nr=function(e){return new dr((function(t){return Jn(e.index(t))}))},rr=function(e,t,n){var r;return n===e[t]?e:Object.assign({},e,((r={})[t]=n,r))},or=function(){function e(e,t){this.get=e,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return e.prototype.reverse=function(){return Kn(Yt((e=this).reverseGet,e.get));var e},e.prototype.modify=function(e){return function(e){return function(t){return function(n){return t.reverseGet(e(t.get(n)))}}}(e)(this)},e.prototype.asLens=function(){return Yn(Xt(this))},e.prototype.asPrism=function(){return Xn(Jt(this))},e.prototype.asOptional=function(){return Jn(en(this))},e.prototype.asTraversal=function(){return er(tn(this))},e.prototype.asFold=function(){var e=this;return new pr((function(){return function(t){return function(n){return t(e.get(n))}}}))},e.prototype.asGetter=function(){var e=this;return new fr((function(t){return e.get(t)}))},e.prototype.asSetter=function(){var e=this;return new hr((function(t){return e.modify(t)}))},e.prototype.compose=function(e){return Kn(nn(e)(this))},e.prototype.composeIso=function(e){return this.compose(e)},e.prototype.composeLens=function(e){return Yn(tt(this,Xt,ln(e)))},e.prototype.composePrism=function(e){return Xn(tt(this,Jt,Hn(e)))},e.prototype.composeOptional=function(e){return Jn(tt(this,en,Un(e)))},e.prototype.composeTraversal=function(e){return er(tt(this,tn,$n(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e}(),ir=function(){function e(e,t){this.get=e,this.set=t,this._tag="Lens"}return e.fromPath=function(){var t=e.fromProp();return function(e){var n=t(e[0]);return e.slice(1).reduce((function(e,n){return e.compose(t(n))}),n)}},e.fromProp=function(){return function(e){return Yn(tt(sn(),En(e)))}},e.fromProps=function(){return function(e){return Yn(tt(sn(),wn.apply(r,e)))}},e.fromNullableProp=function(){return function(t,n){return new e((function(e){var r=D(e[t]);return P(r)?n:r.value}),(function(e){return function(n){return rr(n,t,e)}}))}},e.prototype.modify=function(e){return vn(e)(this)},e.prototype.asOptional=function(){return Jn(un(this))},e.prototype.asTraversal=function(){return er(cn(this))},e.prototype.asSetter=function(){var e=this;return new hr((function(t){return e.modify(t)}))},e.prototype.asGetter=function(){var e=this;return new fr((function(t){return e.get(t)}))},e.prototype.asFold=function(){var e=this;return new pr((function(){return function(t){return function(n){return t(e.get(n))}}}))},e.prototype.compose=function(e){return Yn(ln(e)(this))},e.prototype.composeLens=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeOptional=function(e){return Jn(tt(this,un,Un(e)))},e.prototype.composeTraversal=function(e){return er(tt(this,cn,$n(e)))},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return Yn(tt(this,ln(tt(e,Xt))))},e.prototype.composePrism=function(e){return Jn(pn(e)(this))},e}(),ar=function(){function e(e,t){this.getOption=e,this.reverseGet=t,this._tag="Prism"}return e.fromPredicate=function(e){return Xn(Vn(e))},e.some=function(){return sr},e.prototype.modify=function(e){var t=this;return function(n){var r=t.modifyOption(e)(n);return P(r)?n:r.value}},e.prototype.modifyOption=function(e){var t=this;return function(n){return j(t.getOption(n),(function(r){var o=e(r);return o===r?n:t.reverseGet(o)}))}},e.prototype.set=function(e){return this.modify((function(){return e}))},e.prototype.asOptional=function(){return Jn(qn(this))},e.prototype.asTraversal=function(){return er(Wn(this))},e.prototype.asSetter=function(){var e=this;return new hr((function(t){return e.modify(t)}))},e.prototype.asFold=function(){var e=this;return new pr((function(t){return function(n){return function(r){var o=e.getOption(r);return P(o)?t.empty:n(o.value)}}}))},e.prototype.compose=function(e){return Xn(Hn(e)(this))},e.prototype.composePrism=function(e){return this.compose(e)},e.prototype.composeOptional=function(e){return Jn(tt(this,qn,Un(e)))},e.prototype.composeTraversal=function(e){return er(tt(this,Wn,$n(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return Xn(tt(this,Hn(tt(e,Jt))))},e.prototype.composeLens=function(e){return Jn(Gn(e)(this))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),sr=new ar(o,S),ur=function(){function e(e,t){this.getOption=e,this.set=t,this._tag="Optional"}return e.fromPath=function(){var t=e.fromNullableProp();return function(e){var n=t(e[0]);return e.slice(1).reduce((function(e,n){return e.compose(t(n))}),n)}},e.fromNullableProp=function(){return function(t){return new e((function(e){return D(e[t])}),(function(e){return function(n){return null==n[t]?n:rr(n,t,e)}}))}},e.fromOptionProp=function(){var e=ir.fromProp();return function(t){return e(t).composePrism(sr)}},e.prototype.modify=function(e){return zn(e)(this)},e.prototype.modifyOption=function(e){return Bn(e)(this)},e.prototype.asTraversal=function(){return er(Zn(this))},e.prototype.asFold=function(){var e=this;return new pr((function(t){return function(n){return function(r){var o=e.getOption(r);return P(o)?t.empty:n(o.value)}}}))},e.prototype.asSetter=function(){var e=this;return new hr((function(t){return e.modify(t)}))},e.prototype.compose=function(e){return Jn(Un(e)(this))},e.prototype.composeOptional=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return er(tt(this,Zn,$n(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeLens=function(e){return Jn(tt(this,Un(tt(e,un))))},e.prototype.composePrism=function(e){return Jn(tt(this,Un(tt(e,qn))))},e.prototype.composeIso=function(e){return Jn(tt(this,Un(tt(e,en))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),cr=function(){function e(e){this.modifyF=e,this._tag="Traversal"}return e.prototype.modify=function(e){return Qn(e)(this)},e.prototype.set=function(e){return function(e){return Qn((function(){return e}))}(e)(this)},e.prototype.filter=function(e){return er(function(e){return $n(wt(Ot(e)))}(e)(this))},e.prototype.asFold=function(){var e=this;return new pr((function(t){return function(n){return e.modifyF(Qe(t))((function(e){return $e(n(e))}))}}))},e.prototype.asSetter=function(){var e=this;return new hr((function(t){return e.modify(t)}))},e.prototype.compose=function(e){return er($n(e)(this))},e.prototype.composeTraversal=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeOptional=function(e){return this.compose(e.asTraversal())},e.prototype.composeLens=function(e){return er(tt(this,$n(tt(e,cn))))},e.prototype.composePrism=function(e){return er(tt(this,$n(tt(e,Wn))))},e.prototype.composeIso=function(e){return er(tt(this,$n(tt(e,tn))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),lr=function(){function e(e){this.at=e,this._tag="At"}return e.prototype.fromIso=function(e){return tr(function(e){return function(t){return Kt((function(n){return tt(e,ct,vt(t.at(n)))}))}}(e)(this))},e}(),dr=function(){function e(e){this.index=e,this._tag="Index"}return e.fromAt=function(e){return nr(function(e){return on((function(t){return yt(Tt())(e.at(t))}))}(e))},e.prototype.fromIso=function(e){return nr(function(e){return function(t){return on((function(n){return tt(e,dt,Mt(t.index(n)))}))}}(e)(this))},e}(),fr=function(){function e(e){this.get=e,this._tag="Getter"}return e.prototype.asFold=function(){var e=this;return new pr((function(){return function(t){return function(n){return t(e.get(n))}}}))},e.prototype.compose=function(t){var n=this;return new e((function(e){return t.get(n.get(e))}))},e.prototype.composeGetter=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeLens=function(e){return this.compose(e.asGetter())},e.prototype.composeIso=function(e){return this.compose(e.asGetter())},e.prototype.composeTraversal=function(e){return this.asFold().compose(e.asFold())},e.prototype.composeOptional=function(e){return this.asFold().compose(e.asFold())},e.prototype.composePrism=function(e){return this.asFold().compose(e.asFold())},e}(),pr=function(){function e(e){this.foldMap=e,this._tag="Fold",this.getAll=e({concat:function(e,t){return e.concat(t)},empty:[]})(Ie),this.exist=e(et),this.all=e(Je),this.foldMapFirst=e(T(y()))}return e.prototype.compose=function(t){var n=this;return new e((function(e){return function(r){return n.foldMap(e)(t.foldMap(e)(r))}}))},e.prototype.composeFold=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.compose(e.asFold())},e.prototype.composeTraversal=function(e){return this.compose(e.asFold())},e.prototype.composeOptional=function(e){return this.compose(e.asFold())},e.prototype.composeLens=function(e){return this.compose(e.asFold())},e.prototype.composePrism=function(e){return this.compose(e.asFold())},e.prototype.composeIso=function(e){return this.compose(e.asFold())},e.prototype.find=function(e){return this.foldMapFirst(k(e))},e.prototype.headOption=function(e){return this.find((function(){return!0}))(e)},e}(),hr=function(){function e(e){this.modify=e,this._tag="Setter"}return e.prototype.set=function(e){return this.modify(a(e))},e.prototype.compose=function(t){var n=this;return new e((function(e){return n.modify(t.modify(e))}))},e.prototype.composeSetter=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return this.compose(e.asSetter())},e.prototype.composeOptional=function(e){return this.compose(e.asSetter())},e.prototype.composeLens=function(e){return this.compose(e.asSetter())},e.prototype.composePrism=function(e){return this.compose(e.asSetter())},e.prototype.composeIso=function(e){return this.compose(e.asSetter())},e}();var mr=function(e){return e},vr=function(e){return e},gr=function(e){return e},yr=function(e){return e},br=function(e){return e},Er=function(e){return e},wr=function(e){return e},xr=new or(i,i);function Sr(){return xr}function kr(e){return new ar((function(t){return e(t)?S(t):x}),o)}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(u[s[d]]=a[s[d]])}}return u}},5547:(e,t,n)=>{"use strict";n.d(t,{Gl:()=>s,dP:()=>I,re:()=>L});var r=function(){return Object.create(null)},o=Array.prototype,i=o.forEach,a=o.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=r),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return i.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(a.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}();var u=n(2139);function c(){}var l,d=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=c),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),f=new u.g7,p=Object.prototype.hasOwnProperty,h=void 0===(l=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:l;function m(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var v=[];function g(e,t){if(!e)throw new Error(t||"assertion failure")}function y(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var b=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!x(this))return E(this),this.value[0]},e.prototype.recompute=function(e){return g(!this.recomputing,"already recomputing"),E(this),x(this)?function(e,t){N(e),f.withValue(e,w,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{m(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,x(e))return;k(e)}(e);return y(e.value)}(this,e):y(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,S(this),m(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),N(this),C(this,(function(t,n){t.setDirty(),R(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=v.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(h(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),v.push(this.deps),this.deps=null)},e.count=0,e}();function E(e){var t=f.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),x(e)?O(t,e):T(t,e),t}function w(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function x(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function S(e){C(e,O)}function k(e){C(e,T)}function C(e,t){var n=e.parents.size;if(n)for(var r=h(e.parents),o=0;o<n;++o)t(r[o],e)}function O(e,t){g(e.childValues.has(t)),g(x(t));var n=!x(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=v.pop()||new Set;e.dirtyChildren.add(t),n&&S(e)}function T(e,t){g(e.childValues.has(t)),g(!x(t));var n,r,o,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(n=i,r=t.value,(o=n.length)>0&&o===r.length&&n[o-1]===r[o-1]||e.setDirty()),_(e,t),x(e)||k(e)}function _(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(v.length<100&&v.push(n),e.dirtyChildren=null))}function N(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){R(e,n)})),e.forgetDeps(),g(null===e.dirtyChildren)}function R(e,t){t.parents.delete(e),e.childValues.delete(t),_(e,t)}var P={setDirty:!0,dispose:!0,forget:!0};function I(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=f.getValue();if(r){var o=t.get(e);o||t.set(e,o=new Set),r.dependOn(o),"function"==typeof n&&(m(o),o.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var o=n&&p.call(P,n)?n:"setDirty";h(r).forEach((function(e){return e[o]()})),t.delete(e),m(r)}},r}function A(){var e=new s("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}A();var M=new Set;function L(e,t){void 0===t&&(t=Object.create(null));var n=new d(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,o=t.makeCacheKey||A(),i=function(){var i=o.apply(null,r?r.apply(null,arguments):arguments);if(void 0===i)return e.apply(null,arguments);var a=n.get(i);a||(n.set(i,a=new b(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(i)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(i,a),M.add(n),f.hasValue()||(M.forEach((function(e){return e.clean()})),M.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(i,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),i.dirtyKey=a,i.dirty=function(){a(o.apply(null,arguments))},i.peekKey=s,i.peek=function(){return s(o.apply(null,arguments))},i.forgetKey=u,i.forget=function(){return u(o.apply(null,arguments))},i.makeCacheKey=o,i.getKey=r?function(){return o.apply(null,r.apply(null,arguments))}:o,Object.freeze(i)}},8262:(e,t,n)=>{"use strict";var r=n(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},3980:(e,t,n)=>{e.exports=n(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1418:(e,t,n)=>{"use strict";var r=n(7320),o=n(2784);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=60106,s=60107,u=60108,c=60114,l=60109,d=60110,f=60112,p=60113,h=60120,m=60115,v=60116,g=60121,y=60117,b=60119,E=60129,w=60131;if("function"==typeof Symbol&&Symbol.for){var x=Symbol.for;a=x("react.portal"),s=x("react.fragment"),u=x("react.strict_mode"),c=x("react.profiler"),l=x("react.provider"),d=x("react.context"),f=x("react.forward_ref"),p=x("react.suspense"),h=x("react.suspense_list"),m=x("react.memo"),v=x("react.lazy"),g=x("react.block"),y=x("react.fundamental"),b=x("react.scope"),E=x("react.debug_trace_mode"),w=x("react.legacy_hidden")}function S(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case s:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case d:return(e.displayName||"Context")+".Consumer";case l:return(e._context.displayName||"Context")+".Provider";case f:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case m:return S(e.type);case g:return S(e._render);case v:t=e._payload,e=e._init;try{return S(e(t))}catch(e){}}return null}var k=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C={};function O(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var T=new Uint16Array(16),_=0;15>_;_++)T[_]=_+1;T[15]=0;var N=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,R=Object.prototype.hasOwnProperty,P={},I={};function A(e){return!!R.call(I,e)||!R.call(P,e)&&(N.test(e)?I[e]=!0:(P[e]=!0,!1))}function M(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){L[e]=new M(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];L[t]=new M(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){L[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){L[e]=new M(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){L[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){L[e]=new M(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){L[e]=new M(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){L[e]=new M(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){L[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)}));var D=/[\-:]([a-z])/g;function j(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(D,j);L[t]=new M(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(D,j);L[t]=new M(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(D,j);L[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){L[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)})),L.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){L[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)}));var F=/["'&<>]/;function Z(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=F.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}function U(e,t){var n,r=L.hasOwnProperty(e)?L[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+Z(t)+'"')):A(e)?e+'="'+Z(t)+'"':""}var B="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},z=null,V=null,q=null,W=!1,H=!1,G=null,$=0;function Q(){if(null===z)throw Error(i(321));return z}function K(){if(0<$)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Y(){return null===q?null===V?(W=!1,V=q=K()):(W=!0,q=V):null===q.next?(W=!1,q=q.next=K()):(W=!0,q=q.next),q}function X(e,t,n,r){for(;H;)H=!1,$+=1,q=null,n=e(t,r);return J(),n}function J(){z=null,H=!1,V=null,$=0,q=G=null}function ee(e,t){return"function"==typeof t?t(e):t}function te(e,t,n){if(z=Q(),q=Y(),W){var r=q.queue;if(t=r.dispatch,null!==G&&void 0!==(n=G.get(r))){G.delete(r),r=q.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return q.memoizedState=r,[r,t]}return[q.memoizedState,t]}return e=e===ee?"function"==typeof t?t():t:void 0!==n?n(t):t,q.memoizedState=e,e=(e=q.queue={last:null,dispatch:null}).dispatch=re.bind(null,z,e),[q.memoizedState,e]}function ne(e,t){if(z=Q(),t=void 0===t?null:t,null!==(q=Y())){var n=q.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!B(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),q.memoizedState=[e,t],e}function re(e,t,n){if(!(25>$))throw Error(i(301));if(e===z)if(H=!0,e={action:n,next:null},null===G&&(G=new Map),void 0===(n=G.get(t)))G.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function oe(){}var ie=null,ae={readContext:function(e){var t=ie.threadID;return O(e,t),e[t]},useContext:function(e){Q();var t=ie.threadID;return O(e,t),e[t]},useMemo:ne,useReducer:te,useRef:function(e){z=Q();var t=(q=Y()).memoizedState;return null===t?(e={current:e},q.memoizedState=e):t},useState:function(e){return te(ee,e)},useLayoutEffect:function(){},useCallback:function(e,t){return ne((function(){return e}),t)},useImperativeHandle:oe,useEffect:oe,useDebugValue:oe,useDeferredValue:function(e){return Q(),e},useTransition:function(){return Q(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(ie.identifierPrefix||"")+"R:"+(ie.uniqueID++).toString(36)},useMutableSource:function(e,t){return Q(),t(e._source)}},se="http://www.w3.org/1999/xhtml";function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ce={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},le=r({menuitem:!0},ce),de={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];Object.keys(de).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var pe=/([A-Z])/g,he=/^ms-/,me=o.Children.toArray,ve=k.ReactCurrentDispatcher,ge={listing:!0,pre:!0,textarea:!0},ye=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,be={},Ee={};var we=Object.prototype.hasOwnProperty,xe={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Se(e,t){if(void 0===e)throw Error(i(152,S(t)||"Component"))}function ke(e,t,n){function a(o,a){var s=a.prototype&&a.prototype.isReactComponent,u=function(e,t,n,r){if(r&&"object"==typeof(r=e.contextType)&&null!==r)return O(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=C;return t}(a,t,n,s),c=[],l=!1,d={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){l=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(s){if(s=new a(o.props,u,d),"function"==typeof a.getDerivedStateFromProps){var f=a.getDerivedStateFromProps.call(null,o.props,s.state);null!=f&&(s.state=r({},s.state,f))}}else if(z={},s=a(o.props,u,d),null==(s=X(a,o.props,s,u))||null==s.render)return void Se(e=s,a);if(s.props=o.props,s.context=u,s.updater=d,void 0===(d=s.state)&&(s.state=d=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){d=c;var p=l;if(c=null,l=!1,p&&1===d.length)s.state=d[0];else{f=p?d[0]:s.state;var h=!0;for(p=p?1:0;p<d.length;p++){var m=d[p];null!=(m="function"==typeof m?m.call(s,f,o.props,u):m)&&(h?(h=!1,f=r({},f,m)):r(f,m))}s.state=f}}else c=null;if(Se(e=s.render(),a),"function"==typeof s.getChildContext&&"object"==typeof(o=a.childContextTypes)){var v=s.getChildContext();for(var g in v)if(!(g in o))throw Error(i(108,S(a)||"Unknown",g))}v&&(t=r({},t,v))}for(;o.isValidElement(e);){var s=e,u=s.type;if("function"!=typeof u)break;a(s,u)}return{child:e,context:t}}var Ce=function(){function e(e,t,n){o.isValidElement(e)?e.type!==s?e=[e]:(e=e.props.children,e=o.isValidElement(e)?[e]:me(e)):e=me(e),e={type:null,domNamespace:se,children:e,childIndex:0,context:C,footer:""};var r=T[0];if(0===r){var a=T,u=2*(r=a.length);if(!(65536>=u))throw Error(i(304));var c=new Uint16Array(u);for(c.set(a),(T=c)[0]=r+1,a=r;a<u-1;a++)T[a]=a+1;T[u-1]=0}else T[0]=T[r];this.threadID=r,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=n&&n.identifierPrefix||""}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;T[e]=T[0],T[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID;O(n,r);var o=n[r];this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ie;ie=this;var n=ve.current;ve.current=ae;try{for(var r=[""],o=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;T[a]=T[0],T[0]=a;break}var s=this.stack[this.stack.length-1];if(o||s.childIndex>=s.children.length){var u=s.footer;if(""!==u&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===l)this.popProvider(s.type);else if(s.type===p){this.suspenseDepth--;var c=r.pop();if(o){o=!1;var d=s.fallbackFrame;if(!d)throw Error(i(303));this.stack.push(d),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=u}else{var f=s.children[s.childIndex++],h="";try{h+=this.render(f,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(i(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=h}}return r[0]}finally{ve.current=n,ie=t,J()}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?Z(n):this.previousWasTextNode?"\x3c!-- --\x3e"+Z(n):(this.previousWasTextNode=!0,Z(n));if(e=(t=ke(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(i(257));throw Error(i(258,n.toString()))}return e=me(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var g=e.type;if("string"==typeof g)return this.renderDOM(e,t,n);switch(g){case w:case E:case u:case c:case h:case s:return e=me(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:throw Error(i(294));case b:throw Error(i(343))}if("object"==typeof g&&null!==g)switch(g.$$typeof){case f:z={};var x=g.render(e.props,e.ref);return x=X(g.render,e.props,x,e.ref),x=me(x),this.stack.push({type:null,domNamespace:n,children:x,childIndex:0,context:t,footer:""}),"";case m:return e=[o.createElement(g.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case l:return n={type:e,domNamespace:n,children:g=me(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:g=e.type,x=e.props;var S=this.threadID;return O(g,S),g=me(x.children(g[S])),this.stack.push({type:e,domNamespace:n,children:g,childIndex:0,context:t,footer:""}),"";case y:throw Error(i(338));case v:return g=(x=(g=e.type)._init)(g._payload),e=[o.createElement(g,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(i(130,null==g?g:typeof g,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===se&&ue(a),!be.hasOwnProperty(a)){if(!ye.test(a))throw Error(i(65,a));be[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var u=s.value;if(null==u){u=s.defaultValue;var c=s.children;if(null!=c){if(null!=u)throw Error(i(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(i(93));c=c[0]}u=""+c}null==u&&(u="")}s=r({},s,{value:void 0,children:""+u})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var l=function(e){if(null==e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=c){var d=null!=s.value?s.value+"":l;if(u=!1,Array.isArray(c)){for(var f=0;f<c.length;f++)if(""+c[f]===d){u=!0;break}}else u=""+c===d;s=r({selected:void 0,children:void 0},s,{selected:u,children:l})}}if(u=s){if(le[a]&&(null!=u.children||null!=u.dangerouslySetInnerHTML))throw Error(i(137,a));if(null!=u.dangerouslySetInnerHTML){if(null!=u.children)throw Error(i(60));if("object"!=typeof u.dangerouslySetInnerHTML||!("__html"in u.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=u.style&&"object"!=typeof u.style)throw Error(i(62))}u=s,c=this.makeStaticMarkup,l=1===this.stack.length,d="<"+e.type;e:if(-1===a.indexOf("-"))f="string"==typeof u.is;else switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":f=!1;break e;default:f=!0}for(w in u)if(we.call(u,w)){var p=u[w];if(null!=p){if("style"===w){var h=void 0,m="",v="";for(h in p)if(p.hasOwnProperty(h)){var g=0===h.indexOf("--"),y=p[h];if(null!=y){if(g)var b=h;else if(b=h,Ee.hasOwnProperty(b))b=Ee[b];else{var E=b.replace(pe,"-$1").toLowerCase().replace(he,"-ms-");b=Ee[b]=E}m+=v+b+":",v=h,m+=g=null==y||"boolean"==typeof y||""===y?"":g||"number"!=typeof y||0===y||de.hasOwnProperty(v)&&de[v]?(""+y).trim():y+"px",v=";"}}p=m||null}h=null,f?xe.hasOwnProperty(w)||(h=A(h=w)&&null!=p?h+'="'+Z(p)+'"':""):h=U(w,p),h&&(d+=" "+h)}}c||l&&(d+=' data-reactroot=""');var w=d;u="",ce.hasOwnProperty(a)?w+="/>":(w+=">",u="</"+e.type+">");e:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=s.children)||"number"==typeof c){c=Z(c);break e}c=null}return null!=c?(s=[],ge.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(w+="\n"),w+=c):s=me(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ue(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:u}),this.previousWasTextNode=!1,w},e}();t.renderToString=function(e,t){e=new Ce(e,!1,t);try{return e.read(1/0)}finally{e.destroy()}}},2967:(e,t,n)=>{"use strict";var r=n(2784),o=n(7320),i=n(4616);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,u={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function E(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(m,e)||!p.call(h,e)&&(f.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,S=60106,k=60107,C=60108,O=60114,T=60109,_=60110,N=60112,R=60113,P=60120,I=60115,A=60116,M=60121,L=60128,D=60129,j=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var Z=Symbol.for;x=Z("react.element"),S=Z("react.portal"),k=Z("react.fragment"),C=Z("react.strict_mode"),O=Z("react.profiler"),T=Z("react.provider"),_=Z("react.context"),N=Z("react.forward_ref"),R=Z("react.suspense"),P=Z("react.suspense_list"),I=Z("react.memo"),A=Z("react.lazy"),M=Z("react.block"),Z("react.scope"),L=Z("react.opaque.id"),D=Z("react.debug_trace_mode"),j=Z("react.offscreen"),F=Z("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function V(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var q=!1;function W(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function H(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case S:return"Portal";case O:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return G(e.type);case M:return G(e._render);case A:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&E(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ce(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ge=(ve=function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ee=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){Ee.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ke(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Ce(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,_e=null,Ne=null;function Re(e){if(e=eo(e)){if("function"!=typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=no(t),Te(e.stateNode,e.type,t))}}function Pe(e){_e?Ne?Ne.push(e):Ne=[e]:_e=e}function Ie(){if(_e){var e=_e,t=Ne;if(Ne=_e=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Ae(e,t){return e(t)}function Me(e,t,n,r,o){return e(t,n,r,o)}function Le(){}var De=Ae,je=!1,Fe=!1;function Ze(){null===_e&&null===Ne||(Le(),Ie())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=no(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Be=!1;if(d)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Be=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ve){Be=!1}function Ve(e,t,n,r,o,i,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var qe=!1,We=null,He=!1,Ge=null,$e={onError:function(e){qe=!0,We=e}};function Qe(e,t,n,r,o,i,a,s,u){qe=!1,We=null,Ve.apply($e,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ke(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Xe(o),e;if(i===r)return Xe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],st=null,ut=null,ct=null,lt=new Map,dt=new Map,ft=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function vt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=eo(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function gt(e){var t=Jr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=eo(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function Et(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=eo(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==ut&&yt(ut)&&(ut=null),null!==ct&&yt(ct)&&(ct=null),lt.forEach(bt),dt.forEach(bt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Et)))}function xt(e){function t(t){return wt(t,e)}if(0<at.length){wt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&wt(st,e),null!==ut&&wt(ut,e),null!==ct&&wt(ct,e),lt.forEach(t),dt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)gt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Ct={},Ot={};function Tt(e){if(Ct[e])return Ct[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return Ct[e]=n[t];return e}d&&(Ot=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var _t=Tt("animationend"),Nt=Tt("animationiteration"),Rt=Tt("animationstart"),Pt=Tt("transitionend"),It=new Map,At=new Map,Mt=["abort","abort",_t,"animationEnd",Nt,"animationIteration",Rt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),At.set(r,t),It.set(r,o),c(o,[r])}}(0,i.unstable_now)();var Dt=8;function jt(e){if(0!=(1&e))return Dt=15,1;if(0!=(2&e))return Dt=14,2;if(0!=(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!=(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!=(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!=(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!=(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!=(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Dt=15;else if(0!==(i=134217727&n)){var u=i&~a;0!==u?(r=jt(u),o=Dt):0!==(s&=i)&&(r=jt(s),o=Dt)}else 0!==(i=n&~a)?(r=jt(i),o=Dt):0!==s&&(r=jt(s),o=Dt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(jt(t),o<=Dt)return t;Dt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-qt(t)),r|=e[n],t&=~o;return r}function Zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ut(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ut(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Ht|0)|0},Wt=Math.log,Ht=Math.LN2;var Gt=i.unstable_UserBlockingPriority,$t=i.unstable_runWithPriority,Qt=!0;function Kt(e,t,n,r){je||Le();var o=Xt,i=je;je=!0;try{Me(o,e,t,n,r)}finally{(je=i)||Ze()}}function Yt(e,t,n,r){$t(Gt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var o;if(Qt)if((o=0==(4&t))&&0<at.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&mt(e,r);else{if(o){if(-1<pt.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return st=vt(st,e,t,n,r,o),!0;case"dragenter":return ut=vt(ut,e,t,n,r,o),!0;case"mouseover":return ct=vt(ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return lt.set(i,vt(lt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,vt(dt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Ir(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Oe(r);if(null!==(o=Jr(o))){var i=Ke(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ye(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Ir(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function sn(){return!1}function un(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:sn,this.isPropagationStopped=sn,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,ln,dn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(fn),hn=o({},fn,{view:0,detail:0}),mn=un(hn),vn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,ln=e.screenY-dn.screenY):ln=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=un(vn),yn=un(o({},vn,{dataTransfer:0})),bn=un(o({},hn,{relatedTarget:0})),En=un(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=un(o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xn=un(o({},fn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Tn(){return On}var _n=un(o({},hn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Nn=un(o({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=un(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Pn=un(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=un(o({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=[9,13,27,32],Mn=d&&"CompositionEvent"in window,Ln=null;d&&"documentMode"in document&&(Ln=document.documentMode);var Dn=d&&"TextEvent"in window&&!Ln,jn=d&&(!Mn||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),Zn=!1;function Un(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,r){Pe(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Gn=null;function $n(e){Or(e,0)}function Qn(e){if(Y(to(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(d){var Xn;if(d){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Hn&&(Hn.detachEvent("onpropertychange",nr),Gn=Hn=null)}function nr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];if(Wn(t,Gn,e,Oe(e)),e=$n,je)e(t);else{je=!0;try{Ae(e,t)}finally{je=!1,Ze()}}}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Hn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function cr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function Er(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==X(r)||("selectionStart"in(r=vr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&cr(yr,r)||(yr=r,0<(r=Mr(gr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(Mt,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<wr.length;xr++)At.set(wr[xr],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,u,c){if(Qe.apply(this,arguments),qe){if(!qe)throw Error(a(198));var l=We;qe=!1,We=null,He||(He=!0,Ge=l)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==i&&o.isPropagationStopped())break e;Cr(o,s,c),i=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,c=s.currentTarget,s=s.listener,u!==i&&o.isPropagationStopped())break e;Cr(o,s,c),i=u}}}if(He)throw e=Ge,He=!1,Ge=null,e}function Tr(e,t){var n=ro(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var _r="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[_r]||(e[_r]=!0,s.forEach((function(t){kr.has(t)||Rr(t,!1,e,null),Rr(t,!0,e,null)})))}function Rr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ro(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Pr(i,e,o,t),a.add(s))}function Pr(e,t,n,r){var o=At.get(t);switch(void 0===o?2:o){case 0:o=Kt;break;case 1:o=Yt;break;default:o=Xt}n=o.bind(null,t,n,e),o=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ir(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=Jr(s)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{De(e,t,n)}finally{Fe=!1,Ze()}}((function(){var r=i,o=Oe(n),a=[];e:{var s=It.get(e);if(void 0!==s){var u=pn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":u=_n;break;case"focusin":c="focus",u=bn;break;case"focusout":c="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Rn;break;case _t:case Nt:case Rt:u=En;break;case Pt:u=Pn;break;case"scroll":u=mn;break;case"wheel":u=In;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Nn}var l=0!=(4&t),d=!l&&"scroll"===e,f=l?null!==s?s+"Capture":null:s;l=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ue(h,f))&&l.push(Ar(h,m,p)))),d)break;h=h.return}0<l.length&&(s=new u(s,c,null,n,o),a.push({event:s,listeners:l}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=n.relatedTarget||n.fromElement)||!Jr(c)&&!c[Yr])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Jr(c):null)&&(c!==(d=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=gn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==u?s:to(u),p=null==c?s:to(c),(s=new l(m,h+"leave",u,n,o)).target=d,s.relatedTarget=p,m=null,Jr(o)===r&&((l=new l(f,h+"enter",c,n,o)).target=p,l.relatedTarget=d,m=l),d=m,u&&c)e:{for(f=c,h=0,p=l=u;p;p=Lr(p))h++;for(p=0,m=f;m;m=Lr(m))p++;for(;0<h-p;)l=Lr(l),h--;for(;0<p-h;)f=Lr(f),p--;for(;h--;){if(l===f||null!==f&&l===f.alternate)break e;l=Lr(l),f=Lr(f)}l=null}else l=null;null!==u&&Dr(a,s,u,l,!1),null!==c&&null!==d&&Dr(a,d,c,l,!0)}if("select"===(u=(s=r?to(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Kn;else if(qn(s))if(Yn)v=ar;else{v=or;var g=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ir);switch(v&&(v=v(e,r))?Wn(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&oe(s,"number",s.value)),g=r?to(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,Er(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Er(a,n,o)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=rn()):(tn="value"in(en=o)?en.value:en.textContent,zn=!0)),0<(g=Mr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Bn(n))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Zn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Zn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Mn&&Un(e,t)?(e=rn(),nn=tn=en=null,zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Or(a,t)}))}function Ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ue(e,n))&&r.unshift(Ar(e,i,o)),null!=(i=Ue(e,t))&&r.push(Ar(e,i,o))),e=e.return}return r}function Lr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(u=Ue(n,i))&&a.unshift(Ar(n,u,s)):o||null!=(u=Ue(n,i))&&a.push(Ar(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function jr(){}var Fr=null,Zr=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Br(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var zr="function"==typeof setTimeout?setTimeout:void 0,Vr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Gr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Kr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Xr="__reactEvents$"+$r;function Jr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function eo(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function to(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function no(e){return e[Kr]||null}function ro(e){var t=e[Xr];return void 0===t&&(t=e[Xr]=new Set),t}var oo=[],io=-1;function ao(e){return{current:e}}function so(e){0>io||(e.current=oo[io],oo[io]=null,io--)}function uo(e,t){io++,oo[io]=e.current,e.current=t}var co={},lo=ao(co),fo=ao(!1),po=co;function ho(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mo(e){return null!=(e=e.childContextTypes)}function vo(){so(fo),so(lo)}function go(e,t,n){if(lo.current!==co)throw Error(a(168));uo(lo,t),uo(fo,n)}function yo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,po=lo.current,uo(lo,e),uo(fo,fo.current),!0}function Eo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=yo(e,t,po),r.__reactInternalMemoizedMergedChildContext=e,so(fo),so(lo),uo(lo,e)):so(fo),uo(fo,n)}var wo=null,xo=null,So=i.unstable_runWithPriority,ko=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,Oo=i.unstable_shouldYield,To=i.unstable_requestPaint,_o=i.unstable_now,No=i.unstable_getCurrentPriorityLevel,Ro=i.unstable_ImmediatePriority,Po=i.unstable_UserBlockingPriority,Io=i.unstable_NormalPriority,Ao=i.unstable_LowPriority,Mo=i.unstable_IdlePriority,Lo={},Do=void 0!==To?To:function(){},jo=null,Fo=null,Zo=!1,Uo=_o(),Bo=1e4>Uo?_o:function(){return _o()-Uo};function zo(){switch(No()){case Ro:return 99;case Po:return 98;case Io:return 97;case Ao:return 96;case Mo:return 95;default:throw Error(a(332))}}function Vo(e){switch(e){case 99:return Ro;case 98:return Po;case 97:return Io;case 96:return Ao;case 95:return Mo;default:throw Error(a(332))}}function qo(e,t){return e=Vo(e),So(e,t)}function Wo(e,t,n){return e=Vo(e),ko(e,t,n)}function Ho(){if(null!==Fo){var e=Fo;Fo=null,Co(e)}Go()}function Go(){if(!Zo&&null!==jo){Zo=!0;var e=0;try{var t=jo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),jo=null}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),ko(Ro,Ho),t}finally{Zo=!1}}}var $o=w.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ko=ao(null),Yo=null,Xo=null,Jo=null;function ei(){Jo=Xo=Yo=null}function ti(e){var t=Ko.current;so(Ko),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ri(e,t){Yo=e,Jo=Xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ma=!0),e.firstContext=null)}function oi(e,t){if(Jo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Jo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xo){if(null===Yo)throw Error(a(308));Xo=t,Yo.dependencies={lanes:0,firstContext:t,responders:null}}else Xo=Xo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ci(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function di(e,t,n,r){var i=e.updateQueue;ii=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var c=u,l=c.next;c.next=null,null===s?a=l:s.next=l,s=c;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=l:f.next=l,d.lastBaseUpdate=c)}}if(null!==a){for(f=i.baseState,s=0,d=l=c=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,u);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=m.payload)?h.call(p,f,u):h))break e;f=o({},f,u);break e;case 2:ii=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(l=d=p,c=f):d=d.next=p,s|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===d&&(c=f),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=d,Fs|=s,e.lanes=s,e.memoizedState=f}}function fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var pi=(new r.Component).refs;function hi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cu(),o=lu(e),i=ui(r,o);i.payload=t,null!=n&&(i.callback=n),ci(e,i),du(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cu(),o=lu(e),i=ui(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),ci(e,i),du(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cu(),r=lu(e),o=ui(n,r);o.tag=2,null!=t&&(o.callback=t),ci(e,o),du(e,r,n)}};function vi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(o,i))}function gi(e,t,n){var r=!1,o=co,i=t.contextType;return"object"==typeof i&&null!==i?i=oi(i):(o=mo(t)?po:lo.current,i=(r=null!=(r=t.contextTypes))?ho(e,o):co),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function yi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function bi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=pi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=oi(i):(i=mo(t)?po:lo.current,o.context=ho(e,i)),di(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(hi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&mi.enqueueReplaceState(o,o.state,null),di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Ei=Array.isArray;function wi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===pi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function xi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Si(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Vu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Gu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=wi(e,t,n),r.return=e,r):((r=qu(n.type,n.key,n.props,null,e.mode,r)).ref=wi(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$u(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Wu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Gu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=qu(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case S:return(t=$u(t,e.mode,n)).return=e,t}if(Ei(t)||z(t))return(t=Wu(t,e.mode,n,null)).return=e,t;xi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?n.type===k?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case S:return n.key===o?l(e,t,n,r):null}if(Ei(n)||z(n))return null!==o?null:d(e,t,n,r,null);xi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===k?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case S:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ei(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);xi(t,r)}return null}function m(o,a,s,u){for(var c=null,l=null,d=a,m=a=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(o,d,s[m],u);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,m),null===l?c=g:l.sibling=g,l=g,d=v}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],u))&&(a=i(d,a,m),null===l?c=d:l.sibling=d,l=d);return c}for(d=r(o,d);m<s.length;m++)null!==(v=h(d,o,m,s[m],u))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=i(v,a,m),null===l?c=v:l.sibling=v,l=v);return e&&d.forEach((function(e){return t(o,e)})),c}function v(o,s,u,c){var l=z(u);if("function"!=typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var d=l=null,m=s,v=s=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,v),null===d?l=b:d.sibling=b,d=b,m=g}if(y.done)return n(o,m),l;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=f(o,y.value,c))&&(s=i(y,s,v),null===d?l=y:d.sibling=y,d=y);return l}for(m=r(o,m);!y.done;v++,y=u.next())null!==(y=h(m,o,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=i(y,s,v),null===d?l=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),l}return function(e,r,i,u){var c="object"==typeof i&&null!==i&&i.type===k&&null===i.key;c&&(i=i.props.children);var l="object"==typeof i&&null!==i;if(l)switch(i.$$typeof){case x:e:{for(l=i.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(i.type===k){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=wi(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===k?((r=Wu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=qu(i.type,i.key,i.props,null,e.mode,u)).ref=wi(e,r,i),u.return=e,e=u)}return s(e);case S:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$u(i,e.mode,u)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Gu(i,e.mode,u)).return=e,e=r),s(e);if(Ei(i))return m(e,r,i,u);if(z(i))return v(e,r,i,u);if(l&&xi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var ki=Si(!0),Ci=Si(!1),Oi={},Ti=ao(Oi),_i=ao(Oi),Ni=ao(Oi);function Ri(e){if(e===Oi)throw Error(a(174));return e}function Pi(e,t){switch(uo(Ni,t),uo(_i,e),uo(Ti,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}so(Ti),uo(Ti,t)}function Ii(){so(Ti),so(_i),so(Ni)}function Ai(e){Ri(Ni.current);var t=Ri(Ti.current),n=he(t,e.type);t!==n&&(uo(_i,e),uo(Ti,n))}function Mi(e){_i.current===e&&(so(Ti),so(_i))}var Li=ao(0);function Di(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ji=null,Fi=null,Zi=!1;function Ui(e,t){var n=Bu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Bi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function zi(e){if(Zi){var t=Fi;if(t){var n=t;if(!Bi(e,t)){if(!(t=Wr(n.nextSibling))||!Bi(e,t))return e.flags=-1025&e.flags|2,Zi=!1,void(ji=e);Ui(ji,n)}ji=e,Fi=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Zi=!1,ji=e}}function Vi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ji=e}function qi(e){if(e!==ji)return!1;if(!Zi)return Vi(e),Zi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Br(t,e.memoizedProps))for(t=Fi;t;)Ui(e,t),t=Wr(t.nextSibling);if(Vi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fi=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fi=null}}else Fi=ji?Wr(e.stateNode.nextSibling):null;return!0}function Wi(){Fi=ji=null,Zi=!1}var Hi=[];function Gi(){for(var e=0;e<Hi.length;e++)Hi[e]._workInProgressVersionPrimary=null;Hi.length=0}var $i=w.ReactCurrentDispatcher,Qi=w.ReactCurrentBatchConfig,Ki=0,Yi=null,Xi=null,Ji=null,ea=!1,ta=!1;function na(){throw Error(a(321))}function ra(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function oa(e,t,n,r,o,i){if(Ki=i,Yi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$i.current=null===e||null===e.memoizedState?Ra:Pa,e=n(r,o),ta){i=0;do{if(ta=!1,!(25>i))throw Error(a(301));i+=1,Ji=Xi=null,t.updateQueue=null,$i.current=Ia,e=n(r,o)}while(ta)}if($i.current=Na,t=null!==Xi&&null!==Xi.next,Ki=0,Ji=Xi=Yi=null,ea=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ji?Yi.memoizedState=Ji=e:Ji=Ji.next=e,Ji}function aa(){if(null===Xi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Xi.next;var t=null===Ji?Yi.memoizedState:Ji.next;if(null!==t)Ji=t,Xi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Xi=e).memoizedState,baseState:Xi.baseState,baseQueue:Xi.baseQueue,queue:Xi.queue,next:null},null===Ji?Yi.memoizedState=Ji=e:Ji=Ji.next=e}return Ji}function sa(e,t){return"function"==typeof t?t(e):t}function ua(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Xi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=s=i=null,c=o;do{var l=c.lane;if((Ki&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=d,i=r):u=u.next=d,Yi.lanes|=l,Fs|=l}c=c.next}while(null!==c&&c!==o);null===u?i=r:u.next=s,sr(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ca(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sr(i,t.memoizedState)||(Ma=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function la(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=r,Hi.push(t))),e)return n(t._source);throw Hi.push(t),Error(a(350))}function da(e,t,n,r){var o=Rs;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),u=$i.current,c=u.useState((function(){return la(o,t,n)})),l=c[1],d=c[0];c=Ji;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var v=Yi;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=l;var e=i(t._source);if(!sr(s,e)){e=n(t._source),sr(d,e)||(l(e),e=lu(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-qt(a),c=1<<u;r[u]|=e,a&=~c}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=lu(v);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),sr(h,n)&&sr(m,t)&&sr(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:d}).dispatch=l=_a.bind(null,Yi,e),c.queue=e,c.baseQueue=null,d=la(o,t,n),c.memoizedState=c.baseState=d),d}function fa(e,t,n){return da(aa(),e,t,n)}function pa(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e}).dispatch=_a.bind(null,Yi,e),[t.memoizedState,e]}function ha(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yi.updateQueue)?(t={lastEffect:null},Yi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ma(e){return e={current:e},ia().memoizedState=e}function va(){return aa().memoizedState}function ga(e,t,n,r){var o=ia();Yi.flags|=e,o.memoizedState=ha(1|t,n,void 0,void 0===r?null:r)}function ya(e,t,n,r){var o=aa();r=void 0===r?null:r;var i=void 0;if(null!==Xi){var a=Xi.memoizedState;if(i=a.destroy,null!==r&&ra(r,a.deps))return void ha(t,n,i,r)}Yi.flags|=e,o.memoizedState=ha(1|t,n,i,r)}function ba(e,t){return ga(516,4,e,t)}function Ea(e,t){return ya(516,4,e,t)}function wa(e,t){return ya(4,2,e,t)}function xa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!=n?n.concat([e]):null,ya(4,2,xa.bind(null,t,e),n)}function ka(){}function Ca(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ta(e,t){var n=zo();qo(98>n?98:n,(function(){e(!0)})),qo(97<n?97:n,(function(){var n=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=n}}))}function _a(e,t,n){var r=cu(),o=lu(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Yi||null!==a&&a===Yi)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=a(s,n);if(i.eagerReducer=a,i.eagerState=u,sr(u,s))return}catch(e){}du(e,o,r)}}var Na={readContext:oi,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useMutableSource:na,useOpaqueIdentifier:na,unstable_isNewReconciler:!1},Ra={readContext:oi,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:oi,useEffect:ba,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ga(4,2,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var n=ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ia();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=_a.bind(null,Yi,e),[r.memoizedState,e]},useRef:ma,useState:pa,useDebugValue:ka,useDeferredValue:function(e){var t=pa(e),n=t[0],r=t[1];return ba((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=pa(!1),t=e[0];return ma(e=Ta.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ia();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},da(r,e,t,n)},useOpaqueIdentifier:function(){if(Zi){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Gr++).toString(36))),Error(a(355))})),n=pa(t)[1];return 0==(2&Yi.mode)&&(Yi.flags|=516,ha(5,(function(){n("r:"+(Gr++).toString(36))}),void 0,null)),t}return pa(t="r:"+(Gr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:oi,useCallback:Ca,useContext:oi,useEffect:Ea,useImperativeHandle:Sa,useLayoutEffect:wa,useMemo:Oa,useReducer:ua,useRef:va,useState:function(){return ua(sa)},useDebugValue:ka,useDeferredValue:function(e){var t=ua(sa),n=t[0],r=t[1];return Ea((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=ua(sa)[0];return[va().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ua(sa)[0]},unstable_isNewReconciler:!1},Ia={readContext:oi,useCallback:Ca,useContext:oi,useEffect:Ea,useImperativeHandle:Sa,useLayoutEffect:wa,useMemo:Oa,useReducer:ca,useRef:va,useState:function(){return ca(sa)},useDebugValue:ka,useDeferredValue:function(e){var t=ca(sa),n=t[0],r=t[1];return Ea((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=ca(sa)[0];return[va().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ca(sa)[0]},unstable_isNewReconciler:!1},Aa=w.ReactCurrentOwner,Ma=!1;function La(e,t,n,r){t.child=null===e?Ci(t,null,n,r):ki(t,e.child,n,r)}function Da(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=oa(e,t,n,r,i,o),null===e||Ma?(t.flags|=1,La(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,ns(e,t,o))}function ja(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||zu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=qu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:cr)(o,r)&&e.ref===t.ref)?ns(e,t,i):(t.flags|=1,(e=Vu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,o,i){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0==(i&o))return t.lanes=e.lanes,ns(e,t,i);0!=(16384&e.flags)&&(Ma=!0)}return Ba(e,t,n,r,i)}function Za(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bu(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bu(t,e),null;t.memoizedState={baseLanes:0},bu(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bu(t,r);return La(e,t,o,n),t.child}function Ua(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ba(e,t,n,r,o){var i=mo(n)?po:lo.current;return i=ho(t,i),ri(t,o),n=oa(e,t,n,r,i,o),null===e||Ma?(t.flags|=1,La(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,ns(e,t,o))}function za(e,t,n,r,o){if(mo(n)){var i=!0;bo(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),gi(t,n,r),bi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=oi(c):c=ho(t,c=mo(n)?po:lo.current);var l=n.getDerivedStateFromProps,d="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==c)&&yi(t,a,r,c),ii=!1;var f=t.memoizedState;a.state=f,di(t,r,a,o),u=t.memoizedState,s!==r||f!==u||fo.current||ii?("function"==typeof l&&(hi(t,n,l,r),u=t.memoizedState),(s=ii||vi(t,n,s,r,f,u,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,si(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qo(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=oi(u):u=ho(t,u=mo(n)?po:lo.current);var p=n.getDerivedStateFromProps;(l="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==u)&&yi(t,a,r,u),ii=!1,f=t.memoizedState,a.state=f,di(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||fo.current||ii?("function"==typeof p&&(hi(t,n,p,r),h=t.memoizedState),(c=ii||vi(t,n,c,r,f,h,u))?(l||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Va(e,t,n,r,i,o)}function Va(e,t,n,r,o,i){Ua(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&Eo(t,n,!1),ns(e,t,i);r=t.stateNode,Aa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,s,i)):La(e,t,s,i),t.memoizedState=r.state,o&&Eo(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?go(0,t.pendingContext,t.pendingContext!==t.context):t.context&&go(0,t.context,!1),Pi(e,t.containerInfo)}var Wa,Ha,Ga,$a={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,o=t.pendingProps,i=Li.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),uo(Li,1&i),null===e?(void 0!==o.fallback&&zi(t),e=o.children,i=o.fallback,a?(e=Ka(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ka(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=Hu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=Xa(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,o):(n=Ya(e,t,o.children,n),t.memoizedState=null,n))}function Ka(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Hu(t,o,0,null),n=Wu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Ya(e,t,n,r){var o=e.child;return e=o.sibling,n=Vu(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Xa(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vu(a,s),null!==e?r=Vu(e,r):(r=Wu(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ja(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ni(e.return,t)}function es(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function ts(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(La(e,t,r.children,n),0!=(2&(r=Li.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ja(e,n);else if(19===e.tag)Ja(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(uo(Li,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Di(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),es(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Di(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}es(t,!0,n,null,i,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Vu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Zi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function os(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mo(t.type)&&vo(),null;case 3:return Ii(),so(fo),so(lo),Gi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Mi(t);var i=Ri(Ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Ha(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ri(Ti.current),qi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Qr]=t,r[Kr]=s,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Tr(Sr[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,s),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Tr("invalid",r);break;case"textarea":ue(r,s),Tr("invalid",r)}for(var c in ke(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Tr("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),le(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=jr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Qr]=t,e[Kr]=r,Wa(e,t),t.stateNode=e,c=Ce(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),i=r;break;case"iframe":case"object":case"embed":Tr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Sr.length;i++)Tr(Sr[i],e);i=r;break;case"source":Tr("error",e),i=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),i=r;break;case"details":Tr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Tr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":ue(e,r),i=se(e,r),Tr("invalid",e);break;default:i=r}ke(n,i);var l=i;for(s in l)if(l.hasOwnProperty(s)){var d=l[s];"style"===s?xe(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"==typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Tr("scroll",e):null!=d&&E(e,s,d,c))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=jr)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ri(Ni.current),Ri(Ti.current),qi(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return so(Li),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Li.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Rs||0==(134217727&Fs)&&0==(134217727&Zs)||mu(Rs,Is))),(r||n)&&(t.flags|=4),null);case 4:return Ii(),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return ti(t),null;case 17:return mo(t.type)&&vo(),null;case 19:if(so(Li),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(c=r.rendering))if(s)rs(r,!1);else{if(0!==Ls||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Di(e))){for(t.flags|=64,rs(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return uo(Li,1&Li.current|2),t.child}e=e.sibling}null!==r.tail&&Bo()>Vs&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Di(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Zi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bo()-r.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bo(),n.sibling=null,t=Li.current,uo(Li,s?1&t|2:1&t),n):null;case 23:case 24:return Eu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function is(e){switch(e.tag){case 1:mo(e.type)&&vo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ii(),so(fo),so(lo),Gi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mi(e),null;case 13:return so(Li),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return so(Li),null;case 4:return Ii(),null;case 10:return ti(e),null;case 23:case 24:return Eu(),null;default:return null}}function as(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function ss(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ri(Ti.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=jr)}for(d in ke(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(u.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var l=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&l!==c&&(null!=l||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(s||(s=[]),s.push(d,n)),n=l;else"dangerouslySetInnerHTML"===d?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(d,l)):"children"===d?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(d,""+l):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(u.hasOwnProperty(d)?(null!=l&&"onScroll"===d&&Tr("scroll",e),s||c===l||(s=[])):"object"==typeof l&&null!==l&&l.$$typeof===L?l.toString():(s=s||[]).push(d,l))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};var us="function"==typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,$s=r),ss(0,t)},n}function ls(e,t,n){(n=ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ss(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ds="function"==typeof WeakSet?WeakSet:Set;function fs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ju(e,t)}else t.current=null}function ps(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Mu(n,e),Au(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Ur(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ms(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vs(e,t){if(xo&&"function"==typeof xo.onCommitFiberUnmount)try{xo.onCommitFiberUnmount(wo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Mu(t,n);else{r=t;try{o()}catch(e){ju(r,e)}}n=n.next}while(n!==e)}break;case 1:if(fs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ju(t,e)}break;case 5:fs(t);break;case 4:xs(e,t)}}function gs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ys(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(ys(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ys(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Es(e,n,t):ws(e,n,t)}function Es(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=jr));else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function ws(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function xs(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,u=o,c=u;;)if(vs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,u=o.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(vs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Ss(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ce(e,o),t=Ce(e,r),o=0;o<i.length;o+=2){var s=i[o],u=i[o+1];"style"===s?xe(n,u):"dangerouslySetInnerHTML"===s?ge(n,u):"children"===s?ye(n,u):E(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(zs=Bo(),ms(t.child,!0)),void ks(t);case 19:return void ks(t);case 17:return;case 23:case 24:return void ms(t,null!==t.memoizedState)}throw Error(a(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ds),t.forEach((function(t){var r=Zu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cs(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Os=Math.ceil,Ts=w.ReactCurrentDispatcher,_s=w.ReactCurrentOwner,Ns=0,Rs=null,Ps=null,Is=0,As=0,Ms=ao(0),Ls=0,Ds=null,js=0,Fs=0,Zs=0,Us=0,Bs=null,zs=0,Vs=1/0;function qs(){Vs=Bo()+500}var Ws,Hs=null,Gs=!1,$s=null,Qs=null,Ks=!1,Ys=null,Xs=90,Js=[],eu=[],tu=null,nu=0,ru=null,ou=-1,iu=0,au=0,su=null,uu=!1;function cu(){return 0!=(48&Ns)?Bo():-1!==ou?ou:ou=Bo()}function lu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zo()?1:2;if(0===iu&&(iu=js),0!==$o.transition){0!==au&&(au=null!==Bs?Bs.pendingLanes:0),e=iu;var t=4186112&~au;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=zo(),0!=(4&Ns)&&98===e?e=Ut(12,iu):e=Ut(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),iu),e}function du(e,t,n){if(50<nu)throw nu=0,ru=null,Error(a(185));if(null===(e=fu(e,t)))return null;Vt(e,t,n),e===Rs&&(Zs|=t,4===Ls&&mu(e,Is));var r=zo();1===t?0!=(8&Ns)&&0==(48&Ns)?vu(e):(pu(e,n),0===Ns&&(qs(),Ho())):(0==(4&Ns)||98!==r&&99!==r||(null===tu?tu=new Set([e]):tu.add(e)),pu(e,n)),Bs=e}function fu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-qt(s),c=1<<u,l=i[u];if(-1===l){if(0==(c&r)||0!=(c&o)){l=t,jt(c);var d=Dt;i[u]=10<=d?l+250:6<=d?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ft(e,e===Rs?Is:0),t=Dt,0===r)null!==n&&(n!==Lo&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Lo&&Co(n)}15===t?(n=vu.bind(null,e),null===jo?(jo=[n],Fo=ko(Ro,Go)):jo.push(n),n=Lo):14===t?n=Wo(99,vu.bind(null,e)):n=Wo(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),hu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hu(e){if(ou=-1,au=iu=0,0!=(48&Ns))throw Error(a(327));var t=e.callbackNode;if(Iu()&&e.callbackNode!==t)return null;var n=Ft(e,e===Rs?Is:0);if(0===n)return null;var r=n,o=Ns;Ns|=16;var i=Su();for(Rs===e&&Is===r||(qs(),wu(e,r));;)try{Ou();break}catch(t){xu(e,t)}if(ei(),Ts.current=i,Ns=o,null!==Ps?r=0:(Rs=null,Is=0,r=Ls),0!=(js&Zs))wu(e,0);else if(0!==r){if(2===r&&(Ns|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Zt(e))&&(r=ku(e,n))),1===r)throw t=Ds,wu(e,0),mu(e,n),pu(e,Bo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Nu(e);break;case 3:if(mu(e,n),(62914560&n)===n&&10<(r=zs+500-Bo())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){cu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=zr(Nu.bind(null,e),r);break}Nu(e);break;case 4:if(mu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-qt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Bo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Os(n/1960))-n)){e.timeoutHandle=zr(Nu.bind(null,e),n);break}Nu(e);break;case 5:Nu(e);break;default:throw Error(a(329))}}return pu(e,Bo()),e.callbackNode===t?hu.bind(null,e):null}function mu(e,t){for(t&=~Us,t&=~Zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function vu(e){if(0!=(48&Ns))throw Error(a(327));if(Iu(),e===Rs&&0!=(e.expiredLanes&Is)){var t=Is,n=ku(e,t);0!=(js&Zs)&&(n=ku(e,t=Ft(e,t)))}else n=ku(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ns|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Zt(e))&&(n=ku(e,t))),1===n)throw n=Ds,wu(e,0),mu(e,t),pu(e,Bo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nu(e),pu(e,Bo()),null}function gu(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{0===(Ns=n)&&(qs(),Ho())}}function yu(e,t){var n=Ns;Ns&=-2,Ns|=8;try{return e(t)}finally{0===(Ns=n)&&(qs(),Ho())}}function bu(e,t){uo(Ms,As),As|=t,js|=t}function Eu(){As=Ms.current,so(Ms)}function wu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Vr(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case 3:Ii(),so(fo),so(lo),Gi();break;case 5:Mi(r);break;case 4:Ii();break;case 13:case 19:so(Li);break;case 10:ti(r);break;case 23:case 24:Eu()}n=n.return}Rs=e,Ps=Vu(e.current,null),Is=As=js=t,Ls=0,Ds=null,Us=Zs=Fs=0}function xu(e,t){for(;;){var n=Ps;try{if(ei(),$i.current=Na,ea){for(var r=Yi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ea=!1}if(Ki=0,Ji=Xi=Yi=null,ta=!1,_s.current=null,null===n||null===n.return){Ls=1,Ds=t,Ps=null;break}e:{var i=e,a=n.return,s=n,u=t;if(t=Is,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&s.mode)){var l=s.alternate;l?(s.updateQueue=l.updateQueue,s.memoizedState=l.memoizedState,s.lanes=l.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&Li.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var v=f.updateQueue;if(null===v){var g=new Set;g.add(c),f.updateQueue=g}else v.add(c);if(0==(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=ui(-1,1);y.tag=2,ci(s,y)}s.lanes|=1;break e}u=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new us,u=new Set,b.set(c,u)):void 0===(u=b.get(c))&&(u=new Set,b.set(c,u)),!u.has(s)){u.add(s);var E=Fu.bind(null,i,c,s);c.then(E,E)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);u=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),u=as(u,s),f=a;do{switch(f.tag){case 3:i=u,f.flags|=4096,t&=-t,f.lanes|=t,li(f,cs(0,i,t));break e;case 1:i=u;var w=f.type,x=f.stateNode;if(0==(64&f.flags)&&("function"==typeof w.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Qs||!Qs.has(x)))){f.flags|=4096,t&=-t,f.lanes|=t,li(f,ls(f,i,t));break e}}f=f.return}while(null!==f)}_u(n)}catch(e){t=e,Ps===n&&null!==n&&(Ps=n=n.return);continue}break}}function Su(){var e=Ts.current;return Ts.current=Na,null===e?Na:e}function ku(e,t){var n=Ns;Ns|=16;var r=Su();for(Rs===e&&Is===t||wu(e,t);;)try{Cu();break}catch(t){xu(e,t)}if(ei(),Ns=n,Ts.current=r,null!==Ps)throw Error(a(261));return Rs=null,Is=0,Ls}function Cu(){for(;null!==Ps;)Tu(Ps)}function Ou(){for(;null!==Ps&&!Oo();)Tu(Ps)}function Tu(e){var t=Ws(e.alternate,e,As);e.memoizedProps=e.pendingProps,null===t?_u(e):Ps=t,_s.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=os(n,t,As)))return void(Ps=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&As)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=is(t)))return n.flags&=2047,void(Ps=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ps=t);Ps=t=e}while(null!==t);0===Ls&&(Ls=5)}function Nu(e){var t=zo();return qo(99,Ru.bind(null,e,t)),null}function Ru(e,t){do{Iu()}while(null!==Ys);if(0!=(48&Ns))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<i;){var c=31-qt(i),l=1<<c;o[c]=0,s[c]=-1,u[c]=-1,i&=~l}if(null!==tu&&0==(24&r)&&tu.has(e)&&tu.delete(e),e===Rs&&(Ps=Rs=null,Is=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Ns,Ns|=32,_s.current=null,Fr=Qt,hr(s=pr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(l=u.getSelection&&u.getSelection())&&0!==l.rangeCount){u=l.anchorNode,i=l.anchorOffset,c=l.focusNode,l=l.focusOffset;try{u.nodeType,c.nodeType}catch(e){u=null;break e}var d=0,f=-1,p=-1,h=0,m=0,v=s,g=null;t:for(;;){for(var y;v!==u||0!==i&&3!==v.nodeType||(f=d+i),v!==c||0!==l&&3!==v.nodeType||(p=d+l),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===s)break t;if(g===u&&++h===i&&(f=d),g===c&&++m===l&&(p=d),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}u=-1===f||-1===p?null:{start:f,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Zr={focusedElem:s,selectionRange:u},Qt=!1,su=null,uu=!1,Hs=r;do{try{Pu()}catch(e){if(null===Hs)throw Error(a(330));ju(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);su=null,Hs=r;do{try{for(s=e;null!==Hs;){var b=Hs.flags;if(16&b&&ye(Hs.stateNode,""),128&b){var E=Hs.alternate;if(null!==E){var w=E.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:bs(Hs),Hs.flags&=-3;break;case 6:bs(Hs),Hs.flags&=-3,Ss(Hs.alternate,Hs);break;case 1024:Hs.flags&=-1025;break;case 1028:Hs.flags&=-1025,Ss(Hs.alternate,Hs);break;case 4:Ss(Hs.alternate,Hs);break;case 8:xs(s,u=Hs);var x=u.alternate;gs(u),null!==x&&gs(x)}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(a(330));ju(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);if(w=Zr,E=pr(),b=w.focusedElem,s=w.selectionRange,E!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==s&&hr(b)&&(E=s.start,void 0===(w=s.end)&&(w=E),"selectionStart"in b?(b.selectionStart=E,b.selectionEnd=Math.min(w,b.value.length)):(w=(E=b.ownerDocument||document)&&E.defaultView||window).getSelection&&(w=w.getSelection(),u=b.textContent.length,x=Math.min(s.start,u),s=void 0===s.end?x:Math.min(s.end,u),!w.extend&&x>s&&(u=s,s=x,x=u),u=dr(b,x),i=dr(b,s),u&&i&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((E=E.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),x>s?(w.addRange(E),w.extend(i.node,i.offset)):(E.setEnd(i.node,i.offset),w.addRange(E))))),E=[];for(w=b;w=w.parentNode;)1===w.nodeType&&E.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<E.length;b++)(w=E[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Qt=!!Fr,Zr=Fr=null,e.current=n,Hs=r;do{try{for(b=e;null!==Hs;){var S=Hs.flags;if(36&S&&hs(b,Hs.alternate,Hs),128&S){E=void 0;var k=Hs.ref;if(null!==k){var C=Hs.stateNode;switch(Hs.tag){case 5:E=C;break;default:E=C}"function"==typeof k?k(E):k.current=E}}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(a(330));ju(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);Hs=null,Do(),Ns=o}else e.current=n;if(Ks)Ks=!1,Ys=e,Xs=t;else for(Hs=r;null!==Hs;)t=Hs.nextEffect,Hs.nextEffect=null,8&Hs.flags&&((S=Hs).sibling=null,S.stateNode=null),Hs=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===ru?nu++:(nu=0,ru=e):nu=0,n=n.stateNode,xo&&"function"==typeof xo.onCommitFiberRoot)try{xo.onCommitFiberRoot(wo,n,void 0,64==(64&n.current.flags))}catch(e){}if(pu(e,Bo()),Gs)throw Gs=!1,e=$s,$s=null,e;return 0!=(8&Ns)||Ho(),null}function Pu(){for(;null!==Hs;){var e=Hs.alternate;uu||null===su||(0!=(8&Hs.flags)?et(Hs,su)&&(uu=!0):13===Hs.tag&&Cs(e,Hs)&&et(Hs,su)&&(uu=!0));var t=Hs.flags;0!=(256&t)&&ps(e,Hs),0==(512&t)||Ks||(Ks=!0,Wo(97,(function(){return Iu(),null}))),Hs=Hs.nextEffect}}function Iu(){if(90!==Xs){var e=97<Xs?97:Xs;return Xs=90,qo(e,Lu)}return!1}function Au(e,t){Js.push(t,e),Ks||(Ks=!0,Wo(97,(function(){return Iu(),null})))}function Mu(e,t){eu.push(t,e),Ks||(Ks=!0,Wo(97,(function(){return Iu(),null})))}function Lu(){if(null===Ys)return!1;var e=Ys;if(Ys=null,0!=(48&Ns))throw Error(a(331));var t=Ns;Ns|=32;var n=eu;eu=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===i)throw Error(a(330));ju(i,e)}}for(n=Js,Js=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(a(330));ju(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Ns=t,Ho(),!0}function Du(e,t,n){ci(e,t=cs(0,t=as(n,t),1)),t=cu(),null!==(e=fu(e,1))&&(Vt(e,1,t),pu(e,t))}function ju(e,t){if(3===e.tag)Du(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Du(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var o=ls(n,e=as(t,e),1);if(ci(n,o),o=cu(),null!==(n=fu(n,1)))Vt(n,1,o),pu(n,o);else if("function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Fu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=cu(),e.pingedLanes|=e.suspendedLanes&n,Rs===e&&(Is&n)===n&&(4===Ls||3===Ls&&(62914560&Is)===Is&&500>Bo()-zs?wu(e,0):Us|=n),pu(e,t)}function Zu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===zo()?1:2:(0===iu&&(iu=js),0===(t=Bt(62914560&~iu))&&(t=4194304))),n=cu(),null!==(e=fu(e,t))&&(Vt(e,t,n),pu(e,n))}function Uu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bu(e,t,n,r){return new Uu(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vu(e,t){var n=e.alternate;return null===n?((n=Bu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qu(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)zu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Wu(n.children,o,i,t);case D:s=8,o|=16;break;case C:s=8,o|=1;break;case O:return(e=Bu(12,n,t,8|o)).elementType=O,e.type=O,e.lanes=i,e;case R:return(e=Bu(13,n,t,o)).type=R,e.elementType=R,e.lanes=i,e;case P:return(e=Bu(19,n,t,o)).elementType=P,e.lanes=i,e;case j:return Hu(n,o,i,t);case F:return(e=Bu(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case _:s=9;break e;case N:s=11;break e;case I:s=14;break e;case A:s=16,r=null;break e;case M:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bu(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Wu(e,t,n,r){return(e=Bu(7,e,r,t)).lanes=n,e}function Hu(e,t,n,r){return(e=Bu(23,e,r,t)).elementType=j,e.lanes=n,e}function Gu(e,t,n){return(e=Bu(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=Bu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Ku(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Yu(e,t,n,r){var o=t.current,i=cu(),s=lu(o);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(mo(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(mo(c)){n=yo(n,c,u);break e}}n=u}else n=co;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ci(o,t),du(o,s,i),s}function Xu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ju(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Ju(e,t),(e=e.alternate)&&Ju(e,t)}function tc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Qu(e,t,null!=n&&!0===n.hydrate),t=Bu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ai(t),e[Yr]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Xu(a);s.call(e)}}Yu(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Xu(a);u.call(e)}}yu((function(){Yu(t,a,e,o)}))}return Xu(a)}function oc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(a(200));return Ku(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fo.current)Ma=!0;else{if(0==(n&r)){switch(Ma=!1,t.tag){case 3:qa(t),Wi();break;case 5:Ai(t);break;case 1:mo(t.type)&&bo(t);break;case 4:Pi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;uo(Ko,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(uo(Li,1&Li.current),null!==(t=ns(e,t,n))?t.sibling:null);uo(Li,1&Li.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),uo(Li,Li.current),r)break;return null;case 23:case 24:return t.lanes=0,Za(e,t,n)}return ns(e,t,n)}Ma=0!=(16384&e.flags)}else Ma=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=ho(t,lo.current),ri(t,n),o=oa(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mo(r)){var i=!0;bo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&hi(t,r,s,e),o.updater=mi,t.stateNode=o,o._reactInternals=t,bi(t,r,e,n),t=Va(null,t,r,!0,i,n)}else t.tag=0,La(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return zu(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===I)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Ba(null,t,o,e,n);break e;case 1:t=za(null,t,o,e,n);break e;case 11:t=Da(null,t,o,e,n);break e;case 14:t=ja(null,t,o,Qo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,si(e,t),di(t,r,null,n),(r=t.memoizedState.element)===o)Wi(),t=ns(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Fi=Wr(t.stateNode.containerInfo.firstChild),ji=t,i=Zi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Hi.push(i);for(n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else La(e,t,r,n),Wi();t=t.child}return t;case 5:return Ai(t),null===e&&zi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Br(r,o)?s=null:null!==i&&Br(r,i)&&(t.flags|=16),Ua(e,t),La(e,t,s,n),t.child;case 6:return null===e&&zi(t),null;case 13:return Qa(e,t,n);case 4:return Pi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):La(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Da(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return La(e,t,t.pendingProps,n),t.child;case 8:case 12:return La(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var u=t.type._context;if(uo(Ko,u._currentValue),u._currentValue=i,null!==s)if(u=s.value,0===(i=sr(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(s.children===o.children&&!fo.current){t=ns(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&i)){1===u.tag&&((l=ui(-1,n&-n)).tag=2,ci(u,l)),u.lanes|=n,null!==(l=u.alternate)&&(l.lanes|=n),ni(u.return,n),c.lanes|=n;break}l=l.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}La(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.flags|=1,La(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),ja(e,t,o,i=Qo(o.type,i),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mo(r)?(e=!0,bo(t)):e=!1,ri(t,n),gi(t,r,o),bi(t,r,o,n),Va(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Za(e,t,n)}throw Error(a(156,t.tag))},tc.prototype.render=function(e){Yu(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yu(null,e,null,(function(){t[Yr]=null}))},tt=function(e){13===e.tag&&(du(e,4,cu()),ec(e,4))},nt=function(e){13===e.tag&&(du(e,67108864,cu()),ec(e,67108864))},rt=function(e){if(13===e.tag){var t=cu(),n=lu(e);du(e,n,t),ec(e,n)}},ot=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=no(r);if(!o)throw Error(a(90));Y(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ae=gu,Me=function(e,t,n,r,o){var i=Ns;Ns|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{0===(Ns=i)&&(qs(),Ho())}},Le=function(){0==(49&Ns)&&(function(){if(null!==tu){var e=tu;tu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pu(e,Bo())}))}Ho()}(),Iu())},De=function(e,t){var n=Ns;Ns|=2;try{return e(t)}finally{0===(Ns=n)&&(qs(),Ho())}};var ic={Events:[eo,to,no,Pe,Ie,Iu,{current:!1}]},ac={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ac.bundleType,version:ac.version,rendererPackageName:ac.rendererPackageName,rendererConfig:ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ac.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{wo=uc.inject(sc),xo=uc}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ic,t.createPortal=oc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ns;if(0!=(48&n))return e(t);Ns|=1;try{if(e)return qo(99,e.bind(null,t))}finally{Ns=n,Ho()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(a(40));return!!e._reactRootContainer&&(yu((function(){rc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=gu,t.unstable_createPortal=function(e,t){return oc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return rc(e,t,n,!1,r)},t.version="17.0.2"},8316:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2967)},8090:(e,t,n)=>{"use strict";e.exports=n(1418)},6866:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,u=60110,c=60112,l=60113,d=60120,f=60115,p=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),c=b("react.forward_ref"),l=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case l:case d:return e;default:switch(e=e&&e.$$typeof){case u:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}},8570:(e,t,n)=>{"use strict";n(6866)},8559:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=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,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=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,E=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case u:return e;default:return t}}case o:return t}}}function x(e){return w(e)===d}t.isContextConsumer=function(e){return w(e)===c}},3920:(e,t,n)=>{"use strict";e.exports=n(8559)},2079:(e,t,n)=>{"use strict";t.Z=void 0;var r=s(n(3958)),o=s(n(2784)),i=s(n(3980)),a=s(n(6975));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="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)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=d(this,f(t).call(this,e)),e.noWrapper?n.childrenRefs={}:n.rootRef=o.default.createRef(),n}var n,i,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(i=[{key:"_parseTwemoji",value:function(){if(this.props.noWrapper)for(var e in this.childrenRefs){var t=this.childrenRefs[e].current;a.default.parse(t,this.props.options)}else{var n=this.rootRef.current;a.default.parse(n,this.props.options)}}},{key:"componentDidUpdate",value:function(e){(0,r.default)(this.props,e)||this._parseTwemoji()}},{key:"componentDidMount",value:function(){this._parseTwemoji()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.noWrapper,i=t.tag,a=c(t,["children","noWrapper","tag"]);return r?o.default.createElement(o.default.Fragment,null,o.default.Children.map(n,(function(t,n){return"string"==typeof t?(console.warn("Twemoji can't parse string child when noWrapper is set. Skipping child \"".concat(t,'"')),t):(e.childrenRefs[n]=e.childrenRefs[n]||o.default.createRef(),o.default.cloneElement(t,{ref:e.childrenRefs[n]}))}))):(delete a.options,o.default.createElement(i,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h(e,t,n[t])}))}return e}({ref:this.rootRef},a),n))}}])&&l(n.prototype,i),s&&l(n,s),t}(o.default.Component);t.Z=m,h(m,"propTypes",{children:i.default.node,noWrapper:i.default.bool,options:i.default.object,tag:i.default.string}),h(m,"defaultProps",{tag:"div"})},3426:(e,t,n)=>{"use strict";var r=n(7320),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),u=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),l=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var E={current:null},w=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!x.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:E.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var C=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+O(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),T(a,t,n,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=r+O(s=e[c],c);u+=T(s,t,n,l,a)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),c=0;!(s=e.next()).done;)u+=T(s=s.value,t,n,l=r+O(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function _(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var R={current:null};function P(){var e=R.current;if(null===e)throw Error(p(321));return e}var I={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)w.call(t,l)&&!x.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},2784:(e,t,n)=>{"use strict";e.exports=n(3426)},547:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=(0,o.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,o){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,o=(r=n(2393))&&r.__esModule?r:{default:r}},2393:(e,t)=>{"use strict";function n(e){return(n="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)}function r(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return function(e){if("object"!==("undefined"==typeof self?"undefined":n(self))||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch(e){return!1}return!0}(t)?self[t]:o};var o={getItem:r,setItem:r,removeItem:r}},9449:(e,t,n)=>{"use strict";var r;t.Z=void 0;var o=(0,((r=n(547))&&r.__esModule?r:{default:r}).default)("session");t.Z=o},6475:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?w.postMessage(null):(m=!1,v=null)}catch(e){throw w.postMessage(null),e}}else m=!1},n=function(e){v=e,m||(m=!0,w.postMessage(null))},r=function(e,n){g=f((function(){e(t.unstable_now())}),n)},o=function(){p(g),g=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,u=e[s];if(void 0!==a&&0>C(a,n))void 0!==u&&0>C(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],T=[],_=1,N=null,R=3,P=!1,I=!1,A=!1;function M(e){for(var t=S(T);null!==t;){if(null===t.callback)k(T);else{if(!(t.startTime<=e))break;k(T),t.sortIndex=t.expirationTime,x(O,t)}t=S(T)}}function L(e){if(A=!1,M(e),!I)if(null!==S(O))I=!0,n(D);else{var t=S(T);null!==t&&r(L,t.startTime-e)}}function D(e,n){I=!1,A&&(A=!1,o()),P=!0;var i=R;try{for(M(n),N=S(O);null!==N&&(!(N.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=N.callback;if("function"==typeof a){N.callback=null,R=N.priorityLevel;var s=a(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?N.callback=s:N===S(O)&&k(O),M(n)}else k(O);N=S(O)}if(null!==N)var u=!0;else{var c=S(T);null!==c&&r(L,c.startTime-n),u=!1}return u}finally{N=null,R=i,P=!1}}var j=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||P||(I=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:_++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>s?(e.sortIndex=a,x(T,e),null===S(O)&&e===S(T)&&(A?o():A=!0,r(L,a-s))):(e.sortIndex=u,x(O,e),I||P||(I=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},8420:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionClient=void 0;var s=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},u=s.WebSocket||s.MozWebSocket,c=n(7911),l=n(9457),d=n(14),f=n(7107),p=n(3083),h=n(3922),m=n(7288),v=n(209),g=n(5169),y=n(3172),b=function(){function e(e,t,n,r){var o=t||{},i=o.connectionCallback,a=void 0===i?void 0:i,s=o.connectionParams,d=void 0===s?{}:s,f=o.minTimeout,p=void 0===f?g.MIN_WS_TIMEOUT:f,h=o.timeout,m=void 0===h?g.WS_TIMEOUT:h,y=o.reconnect,b=void 0!==y&&y,E=o.reconnectionAttempts,w=void 0===E?1/0:E,x=o.lazy,S=void 0!==x&&x,k=o.inactivityTimeout,C=void 0===k?0:k,O=o.wsOptionArguments,T=void 0===O?[]:O;if(this.wsImpl=n||u,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=r||v.GRAPHQL_WS,this.connectionCallback=a,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=p,this.wsTimeout=m,this.unsentMessagesQueue=[],this.reconnect=b,this.reconnecting=!1,this.reconnectionAttempts=w,this.lazy=!!S,this.inactivityTimeout=C,this.closedByUser=!1,this.backoff=new c({jitter:.5}),this.eventEmitter=new l.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(d),this.wsOptionArguments=T,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,y.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),e||this.tryReconnect())},e.prototype.request=function(e){var t,n,r=this.getObserver.bind(this),o=this.executeOperation.bind(this),i=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(t={})[m.default]=function(){return this},t.subscribe=function(t,a,s){var u=r(t,a,s);return n=o(e,(function(e,t){null===e&&null===t?u.complete&&u.complete():e?u.error&&u.error(e[0]):u.next&&u.next(t)})),{unsubscribe:function(){n&&(i(n),n=null)}}},t},e.prototype.on=function(e,t,n){var r=this.eventEmitter.on(e,t,n);return function(){r.off(e,t,n)}},e.prototype.onConnected=function(e,t){return this.on("connected",e,t)},e.prototype.onConnecting=function(e,t){return this.on("connecting",e,t)},e.prototype.onDisconnected=function(e,t){return this.on("disconnected",e,t)},e.prototype.onReconnected=function(e,t){return this.on("reconnected",e,t)},e.prototype.onReconnecting=function(e,t){return this.on("reconnecting",e,t)},e.prototype.onError=function(e,t){return this.on("error",e,t)},e.prototype.unsubscribeAll=function(){var e=this;Object.keys(this.operations).forEach((function(t){e.unsubscribe(t)}))},e.prototype.applyMiddlewares=function(e){var t=this;return new Promise((function(n,r){var o,i,s;o=a(t.middlewares),i=t,(s=function(t){if(t)r(t);else if(o.length>0){var a=o.shift();a&&a.applyMiddleware.apply(i,[e,s])}else n(e)})()}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,n){if("function"==typeof e)try{return t(e.call(null))}catch(e){return n(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,y.default.GQL_START,e))})).catch((function(e){n.unsubscribe(r),t(n.formatErrors(e))})),r},e.prototype.getObserver=function(e,t,n){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new c({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,o=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!d.default(n)&&!h.getOperationAST(n,o)||o&&!d.default(o)||r&&!f.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?r(r({},n),{query:"string"==typeof n.query?n.query:p.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,y.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return o(t,void 0,void 0,(function(){var e,t;return i(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,y.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,y.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var n=e.data;t.processReceivedData(n)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[y.default.GQL_DATA,y.default.GQL_COMPLETE,y.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case y.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case y.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case y.default.GQL_COMPLETE:var o=this.operations[n].handler;delete this.operations[n],o.call(this,null,null);break;case y.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case y.default.GQL_DATA:var i=t.payload.errors?r(r({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,i);break;case y.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,y.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=b},5169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WS_TIMEOUT=t.MIN_WS_TIMEOUT=void 0;t.MIN_WS_TIMEOUT=1e3;t.WS_TIMEOUT=3e4},3172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}();t.default=n},209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GRAPHQL_SUBSCRIPTIONS=t.GRAPHQL_WS=void 0;t.GRAPHQL_WS="graphql-ws";t.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},7107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"==typeof e}},14:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},9457:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(d-1);c<d;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var f,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),d){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(f=1,u=new Array(d-1);f<d;f++)u[f-1]=arguments[f];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},7288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},6975:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(){var e={base:"https://twemoji.maxcdn.com/v/13.1.0/",ext:".png",size:"72x72",className:"emoji",convert:{fromCodePoint:function(e){var t="string"==typeof e?parseInt(e,16):e;if(t<65536)return s(t);return s(55296+((t-=65536)>>10),56320+(1023&t))},toCodePoint:g},onerror:function(){this.parentNode&&this.parentNode.replaceChild(u(this.alt,!1),this)},parse:function(t,n){n&&"function"!=typeof n||(n={callback:n});return("string"==typeof t?p:f)(t,{callback:n.callback||c,attributes:"function"==typeof n.attributes?n.attributes:m,base:"string"==typeof n.base?n.base:e.base,ext:n.ext||e.ext,size:n.folder||(r=n.size||e.size,"number"==typeof r?r+"x"+r:r),className:n.className||e.className,onerror:n.onerror||e.onerror});var r},replace:v,test:function(e){n.lastIndex=0;var t=n.test(e);return n.lastIndex=0,t}},t={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},n=/(?:\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1|\ud83d\udc6b\ud83c[\udffb-\udfff]|\ud83d\udc6c\ud83c[\udffb-\udfff]|\ud83d\udc6d\ud83c[\udffb-\udfff]|\ud83d\udc8f\ud83c[\udffb-\udfff]|\ud83d\udc91\ud83c[\udffb-\udfff]|\ud83d[\udc6b-\udc6d\udc8f\udc91])|(?:\ud83d[\udc68\udc69]|\ud83e\uddd1)(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|\u2764\ufe0f\u200d\ud83d\udd25|\u2764\ufe0f\u200d\ud83e\ude79|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc15\u200d\ud83e\uddba|\ud83d\udc3b\u200d\u2744\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude35\u200d\ud83d\udcab|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f|\ud83d\udc08\u200d\u2b1b)|[#*0-9]\ufe0f?\u20e3|(?:[©®\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26a7\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\udd77\uddb5\uddb6\uddb8\uddb9\uddbb\uddcd-\uddcf\uddd1-\udddd]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udeeb\udeec\udef4-\udefc\udfe0-\udfeb]|\ud83e[\udd0d\udd0e\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd3f-\udd45\udd47-\udd76\udd78\udd7a-\uddb4\uddb7\uddba\uddbc-\uddcb\uddd0\uddde-\uddff\ude70-\ude74\ude78-\ude7a\ude80-\ude86\ude90-\udea8\udeb0-\udeb6\udec0-\udec2\uded0-\uded6]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,r=/\uFE0F/g,o=String.fromCharCode(8205),i=/[&<>'"]/g,a=/^(?:iframe|noframes|noscript|script|select|style|textarea)$/,s=String.fromCharCode;return e;function u(e,t){return document.createTextNode(t?e.replace(r,""):e)}function c(e,t){return"".concat(t.base,t.size,"/",e,t.ext)}function l(e,t){for(var n,r,o=e.childNodes,i=o.length;i--;)3===(r=(n=o[i]).nodeType)?t.push(n):1!==r||"ownerSVGElement"in n||a.test(n.nodeName.toLowerCase())||l(n,t);return t}function d(e){return g(e.indexOf(o)<0?e.replace(r,""):e)}function f(e,t){for(var r,o,i,a,s,c,f,p,h,m,v,g,y,b=l(e,[]),E=b.length;E--;){for(i=!1,a=document.createDocumentFragment(),c=(s=b[E]).nodeValue,p=0;f=n.exec(c);){if((h=f.index)!==p&&a.appendChild(u(c.slice(p,h),!0)),g=d(v=f[0]),p=h+v.length,y=t.callback(g,t),g&&y){for(o in(m=new Image).onerror=t.onerror,m.setAttribute("draggable","false"),r=t.attributes(v,g))r.hasOwnProperty(o)&&0!==o.indexOf("on")&&!m.hasAttribute(o)&&m.setAttribute(o,r[o]);m.className=t.className,m.alt=v,m.src=y,i=!0,a.appendChild(m)}m||a.appendChild(u(v,!1)),m=null}i&&(p<c.length&&a.appendChild(u(c.slice(p),!0)),s.parentNode.replaceChild(a,s))}return e}function p(e,t){return v(e,(function(e){var n,r,o=e,a=d(e),s=t.callback(a,t);if(a&&s){for(r in o="<img ".concat('class="',t.className,'" ','draggable="false" ','alt="',e,'"',' src="',s,'"'),n=t.attributes(e,a))n.hasOwnProperty(r)&&0!==r.indexOf("on")&&-1===o.indexOf(" "+r+"=")&&(o=o.concat(" ",r,'="',n[r].replace(i,h),'"'));o=o.concat("/>")}return o}))}function h(e){return t[e]}function m(){return null}function v(e,t){return String(e).replace(n,t)}function g(e,t){for(var n=[],r=0,o=0,i=0;i<e.length;)r=e.charCodeAt(i++),o?(n.push((65536+(o-55296<<10)+(r-56320)).toString(16)),o=0):55296<=r&&r<=56319?o=r:n.push(r.toString(16));return n.join(t||"-")}}()},9987:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{NIL:()=>R,parse:()=>v,stringify:()=>l,v1:()=>m,v3:()=>C,v4:()=>O,v5:()=>N,validate:()=>s,version:()=>P});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&a.test(e)};for(var u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d,f,p=0,h=0;const m=function(e,t,n){var r=t&&n||0,o=t||new Array(16),a=(e=e||{}).node||d,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||i)();null==a&&(a=d=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,v=c-p+(m-h)/1e4;if(v<0&&void 0===e.clockseq&&(s=s+1&16383),(v<0||c>p)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,h=m,f=s;var g=(1e4*(268435455&(c+=122192928e5))+m)%4294967296;o[r++]=g>>>24&255,o[r++]=g>>>16&255,o[r++]=g>>>8&255,o[r++]=255&g;var y=c/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var b=0;b<6;++b)o[r+b]=a[b];return t||l(o)};const v=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function g(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return l(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function E(e,t,n,r,o,i){return b((a=b(b(t,e),b(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function w(e,t,n,r,o,i,a){return E(t&n|~t&r,e,t,o,i,a)}function x(e,t,n,r,o,i,a){return E(t&r|n&~r,e,t,o,i,a)}function S(e,t,n,r,o,i,a){return E(t^n^r,e,t,o,i,a)}function k(e,t,n,r,o,i,a){return E(n^(t|~r),e,t,o,i,a)}const C=g("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,u=r,c=o,l=i;n=w(n,r,o,i,e[a],7,-680876936),i=w(i,n,r,o,e[a+1],12,-389564586),o=w(o,i,n,r,e[a+2],17,606105819),r=w(r,o,i,n,e[a+3],22,-1044525330),n=w(n,r,o,i,e[a+4],7,-176418897),i=w(i,n,r,o,e[a+5],12,1200080426),o=w(o,i,n,r,e[a+6],17,-1473231341),r=w(r,o,i,n,e[a+7],22,-45705983),n=w(n,r,o,i,e[a+8],7,1770035416),i=w(i,n,r,o,e[a+9],12,-1958414417),o=w(o,i,n,r,e[a+10],17,-42063),r=w(r,o,i,n,e[a+11],22,-1990404162),n=w(n,r,o,i,e[a+12],7,1804603682),i=w(i,n,r,o,e[a+13],12,-40341101),o=w(o,i,n,r,e[a+14],17,-1502002290),n=x(n,r=w(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=x(i,n,r,o,e[a+6],9,-1069501632),o=x(o,i,n,r,e[a+11],14,643717713),r=x(r,o,i,n,e[a],20,-373897302),n=x(n,r,o,i,e[a+5],5,-701558691),i=x(i,n,r,o,e[a+10],9,38016083),o=x(o,i,n,r,e[a+15],14,-660478335),r=x(r,o,i,n,e[a+4],20,-405537848),n=x(n,r,o,i,e[a+9],5,568446438),i=x(i,n,r,o,e[a+14],9,-1019803690),o=x(o,i,n,r,e[a+3],14,-187363961),r=x(r,o,i,n,e[a+8],20,1163531501),n=x(n,r,o,i,e[a+13],5,-1444681467),i=x(i,n,r,o,e[a+2],9,-51403784),o=x(o,i,n,r,e[a+7],14,1735328473),n=S(n,r=x(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=S(i,n,r,o,e[a+8],11,-2022574463),o=S(o,i,n,r,e[a+11],16,1839030562),r=S(r,o,i,n,e[a+14],23,-35309556),n=S(n,r,o,i,e[a+1],4,-1530992060),i=S(i,n,r,o,e[a+4],11,1272893353),o=S(o,i,n,r,e[a+7],16,-155497632),r=S(r,o,i,n,e[a+10],23,-1094730640),n=S(n,r,o,i,e[a+13],4,681279174),i=S(i,n,r,o,e[a],11,-358537222),o=S(o,i,n,r,e[a+3],16,-722521979),r=S(r,o,i,n,e[a+6],23,76029189),n=S(n,r,o,i,e[a+9],4,-640364487),i=S(i,n,r,o,e[a+12],11,-421815835),o=S(o,i,n,r,e[a+15],16,530742520),n=k(n,r=S(r,o,i,n,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=k(i,n,r,o,e[a+7],10,1126891415),o=k(o,i,n,r,e[a+14],15,-1416354905),r=k(r,o,i,n,e[a+5],21,-57434055),n=k(n,r,o,i,e[a+12],6,1700485571),i=k(i,n,r,o,e[a+3],10,-1894986606),o=k(o,i,n,r,e[a+10],15,-1051523),r=k(r,o,i,n,e[a+1],21,-2054922799),n=k(n,r,o,i,e[a+8],6,1873313359),i=k(i,n,r,o,e[a+15],10,-30611744),o=k(o,i,n,r,e[a+6],15,-1560198380),r=k(r,o,i,n,e[a+13],21,1309151649),n=k(n,r,o,i,e[a+4],6,-145523070),i=k(i,n,r,o,e[a+11],10,-1120210379),o=k(o,i,n,r,e[a+2],15,718787259),r=k(r,o,i,n,e[a+9],21,-343485551),n=b(n,s),r=b(r,u),o=b(o,c),i=b(i,l)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const O=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return l(r)};function T(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function _(e,t){return e<<t|e>>>32-t}const N=g("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var h=16;h<80;++h)f[h]=_(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),x=_(m,5)+T(w,v,g,y)+b+t[w]+f[E]>>>0;b=y,y=g,g=_(v,30)>>>0,v=m,m=x}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),R="00000000-0000-0000-0000-000000000000";const P=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},2394:(e,t,n)=>{e.exports=n(5757).Observable},5757:(e,t)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}t.Observable=void 0;var i=function(){return"function"==typeof Symbol},a=function(e){return i()&&Boolean(Symbol[e])},s=function(e){return a(e)?Symbol[e]:"@@"+e};i()&&!a("observable")&&(Symbol.observable=Symbol("observable"));var u=s("iterator"),c=s("observable"),l=s("species");function d(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function f(e){var t=e.constructor;return void 0!==t&&null===(t=t[l])&&(t=void 0),void 0!==t?t:x}function p(e){return e instanceof x}function h(e){h.log?h.log(e):setTimeout((function(){throw e}))}function m(e){Promise.resolve().then((function(){try{e()}catch(e){h(e)}}))}function v(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=d(t,"unsubscribe");n&&n.call(t)}}catch(e){h(e)}}function g(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function y(e,t,n){e._state="running";var r=e._observer;try{var o=d(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(g(e),!o)throw n;o.call(r,n);break;case"complete":g(e),o&&o.call(r)}}catch(e){h(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function b(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void m((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(y(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void y(e,t,n);e._queue.push({type:t,value:n})}}var E=function(){function e(t,r){n(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var o=new w(this);try{this._cleanup=r.call(void 0,o)}catch(e){o.error(e)}"initializing"===this._state&&(this._state="ready")}return o(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(g(this),v(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),w=function(){function e(t){n(this,e),this._subscription=t}return o(e,[{key:"next",value:function(e){b(this._subscription,"next",e)}},{key:"error",value:function(e){b(this._subscription,"error",e)}},{key:"complete",value:function(){b(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),x=function(){function e(t){if(n(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return o(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new E(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),o.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function i(){o.unsubscribe(),n()}}))}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(f(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(f(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=f(this),r=arguments.length>1,o=!1,i=arguments[1],a=i;return new n((function(n){return t.subscribe({next:function(t){var i=!o;if(o=!0,!i||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!o&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=f(this);return new o((function(t){var r,i=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){i===n.length?(r=void 0,t.complete()):e(o.from(n[i++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=f(this);return new n((function(r){var o=[],i=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var i=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=o.indexOf(i);e>=0&&o.splice(e,1),a()}});o.push(i)},error:function(e){r.error(e)},complete:function(){a()}});function a(){i.closed&&0===o.length&&r.complete()}return function(){o.forEach((function(e){return e.unsubscribe()})),i.unsubscribe()}}))}},{key:c,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=d(t,c);if(r){var o=r.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return p(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(a("iterator")&&(r=d(t,u)))return new n((function(e){m((function(){if(!e.closed){var n=!0,o=!1,i=void 0;try{for(var a,s=r.call(t)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if(e.next(u),e.closed)return}}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){m((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o="function"==typeof this?this:e;return new o((function(e){m((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))}},{key:l,get:function(){return this}}]),e}();t.Observable=x,i()&&Object.defineProperty(x,Symbol("extensions"),{value:{symbol:c,hostReportError:h},configurable:!0})},3362:()=>{},926:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},753:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},7371:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},6666:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},7896:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},1665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8960);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},9740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1461);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},1461:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},8960:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:()=>r})},2867:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9147);function o(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,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},8777:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(926);var o=n(9147);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},6522:(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:()=>r})},9147:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(926);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.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)?(0,r.Z)(e,t):void 0}}},2277:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6182);function o(e){return(o="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)}function i(e){return a(e,[])}function a(e,t){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),o=function(e){var t=e[String(r.Z)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==o){var i=o.call(e);if(i!==e)return"string"==typeof i?i:a(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,o=[],i=0;i<n;++i)o.push(a(e[i],t));1===r?o.push("... 1 more item"):r>1&&o.push("... ".concat(r," more items"));return"["+o.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},6182:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},3161:(e,t,n)=>{"use strict";n.d(t,{Ye:()=>i,WU:()=>a,UG:()=>s});var r=n(6182);function o(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();o(i);var a=function(){function e(e,t,n,r,o,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=a,this.prev=i,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}o(a)},5717:(e,t,n)=>{"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,o=0,i=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,o=0;break;case 9:case 32:++o;break;default:r&&!n&&(null===i||o<i)&&(i=o),r=!1}return null!==(t=i)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&o(t[i]);)++i;for(var a=t.length;a>i&&o(t[a-1]);)--a;return t.slice(i,a).join("\n")}function o(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),o=" "===e[0]||"\t"===e[0],i='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||i||a||n,u="";return!s||r&&o||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,LZ:()=>i})},8867:(e,t,n)=>{"use strict";n.d(t,{$_:()=>a,Vn:()=>s});var r=n(2277),o=n(3161),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,s=void 0,c=Array.isArray(e),l=[e],d=-1,f=[],p=void 0,h=void 0,m=void 0,v=[],g=[],y=e;do{var b=++d===l.length,E=b&&0!==f.length;if(b){if(h=0===g.length?void 0:v[v.length-1],p=m,m=g.pop(),E){if(c)p=p.slice();else{for(var w={},x=0,S=Object.keys(p);x<S.length;x++){var k=S[x];w[k]=p[k]}p=w}for(var C=0,O=0;O<f.length;O++){var T=f[O][0],_=f[O][1];c&&(T-=C),c&&null===_?(p.splice(T,1),C++):p[T]=_}}d=s.index,l=s.keys,f=s.edits,c=s.inArray,s=s.prev}else{if(h=m?c?d:l[d]:void 0,null==(p=m?m[h]:y))continue;m&&v.push(h)}var N,R=void 0;if(!Array.isArray(p)){if(!(0,o.UG)(p))throw new Error("Invalid AST Node: ".concat((0,r.Z)(p),"."));var P=u(t,p.kind,b);if(P){if((R=P.call(t,p,h,m,v,g))===a)break;if(!1===R){if(!b){v.pop();continue}}else if(void 0!==R&&(f.push([h,R]),!b)){if(!(0,o.UG)(R)){v.pop();continue}p=R}}}if(void 0===R&&E&&f.push([h,p]),b)v.pop();else s={inArray:c,index:d,keys:l,edits:f,prev:s},l=(c=Array.isArray(p))?p:null!==(N=n[p.kind])&&void 0!==N?N:[],d=-1,f=[],m&&g.push(m),m=p}while(void 0!==s);return 0!==f.length&&(y=f[f.length-1][1]),y}function u(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var o=n?r.leave:r.enter;if("function"==typeof o)return o}else{var i=n?e.leave:e.enter;if(i){if("function"==typeof i)return i;var a=i[t];if("function"==typeof a)return a}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";n.d(r,{default:()=>am});var e=n(2784),t=n(8316),o="persist:",i="persist/FLUSH",a="persist/REHYDRATE",s="persist/PAUSE",u="persist/PERSIST",c="persist/PURGE",l="persist/REGISTER";function d(e){return(d="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)}function f(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 p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n,r){r.debug;var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return e&&"object"===d(e)&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])})),o}function m(e){var t,n=e.blacklist||null,r=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,s="".concat(void 0!==e.keyPrefix?e.keyPrefix:o).concat(e.key),u=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:v;var c=e.writeFailHandler||null,l={},d={},f=[],p=null,h=null;function m(){if(0===f.length)return p&&clearInterval(p),void(p=null);var e=f.shift(),n=i.reduce((function(t,n){return n.in(t,e,l)}),l[e]);if(void 0!==n)try{d[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete d[e];0===f.length&&(Object.keys(d).forEach((function(e){void 0===l[e]&&delete d[e]})),h=u.setItem(s,t(d)).catch(y))}function g(e){return(!r||-1!==r.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function y(e){c&&c(e)}return{update:function(e){Object.keys(e).forEach((function(t){g(t)&&l[t]!==e[t]&&-1===f.indexOf(t)&&f.push(t)})),Object.keys(l).forEach((function(t){void 0===e[t]&&g(t)&&-1===f.indexOf(t)&&void 0!==l[t]&&f.push(t)})),null===p&&(p=setInterval(m,a)),l=e},flush:function(){for(;0!==f.length;)m();return h||Promise.resolve()}}}function v(e){return JSON.stringify(e)}function g(e){var t,n=e.transforms||[],r="".concat(void 0!==e.keyPrefix?e.keyPrefix:o).concat(e.key),i=e.storage;e.debug;return t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:y,i.getItem(r).then((function(e){if(e)try{var r={},o=t(e);return Object.keys(o).forEach((function(e){r[e]=n.reduceRight((function(t,n){return n.out(t,e,o)}),t(o[e]))})),r}catch(e){throw e}}))}function y(e){return JSON.parse(e)}function b(e){0}function E(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(n,!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?h:e.stateReconciler),l=e.getStoredState||g,d=void 0!==e.timeout?e.timeout:5e3,f=null,p=!1,v=!0,y=function(e){return e._persist.rehydrated&&f&&!v&&f.update(e),e};return function(h,g){var E=h||{},x=E._persist,k=S(E,["_persist"]);if(g.type===u){var C=!1,O=function(t,n){C||(g.rehydrate(e.key,t,n),C=!0)};if(d&&setTimeout((function(){!C&&O(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),d),v=!1,f||(f=m(e)),x)return w({},t(k,g),{_persist:x});if("function"!=typeof g.rehydrate||"function"!=typeof g.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return g.register(e.key),l(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){O(e)}),(function(e){O(void 0,e)}))}),(function(e){O(void 0,e)})),w({},t(k,g),{_persist:{version:n,rehydrated:!1}})}if(g.type===c)return p=!0,g.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:o).concat(e.key);return t.removeItem(n,b)}(e)),w({},t(k,g),{_persist:x});if(g.type===i)return g.result(f&&f.flush()),w({},t(k,g),{_persist:x});if(g.type===s)v=!0;else if(g.type===a){if(p)return w({},k,{_persist:w({},x,{rehydrated:!0})});if(g.key===e.key){var T=t(k,g),_=g.payload,N=w({},!1!==r&&void 0!==_?r(_,h,T,e):T,{_persist:w({},x,{rehydrated:!0})});return y(N)}}if(!x)return t(h,g);var R=t(k,g);return R===k?h:y(w({},R,{_persist:x}))}}var C=n(6666);function O(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,C.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var N="function"==typeof Symbol&&Symbol.observable||"@@observable",R=function(){return Math.random().toString(36).substring(7).split("").join(".")},P={INIT:"@@redux/INIT"+R(),REPLACE:"@@redux/REPLACE"+R(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+R()}};function I(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function A(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(_(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(_(1));return n(A)(e,t)}if("function"!=typeof e)throw new Error(_(2));var o=e,i=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function l(){if(u)throw new Error(_(3));return i}function d(e){if("function"!=typeof e)throw new Error(_(4));if(u)throw new Error(_(5));var t=!0;return c(),s.push(e),function(){if(t){if(u)throw new Error(_(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!I(e))throw new Error(_(7));if(void 0===e.type)throw new Error(_(8));if(u)throw new Error(_(9));try{u=!0,i=o(i,e)}finally{u=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error(_(10));o=e,f({type:P.REPLACE})}function h(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(_(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[N]=function(){return this},e}return f({type:P.INIT}),(r={dispatch:f,subscribe:d,getState:l,replaceReducer:p})[N]=h,r}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function L(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function D(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 j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(n,!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z={registry:[],bootstrapped:!1},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l:return j({},e,{registry:[].concat(L(e.registry),[t.key])});case a:var n=e.registry.indexOf(t.key),r=L(e.registry);return r.splice(n,1),j({},e,{registry:r,bootstrapped:0===r.length});default:return e}};function B(e){return(B="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)}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?H(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q=function(e){function t(){var e,n;z(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return $(H(n=q(this,(e=W(t)).call.apply(e,[this].concat(o)))),"state",{bootstrapped:!1}),$(H(n),"_unsubscribe",void 0),$(H(n),"handlePersistorState",(function(){n.props.persistor.getState().bootstrapped&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally((function(){return n.setState({bootstrapped:!0})})):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}])&&V(n.prototype,r),o&&V(n,o),t}(e.PureComponent);$(Q,"defaultProps",{children:null,loading:null});var K=n(9449),Y=n(3980),X=n.n(Y),J=e.createContext(null);var ee=function(e){e()},te=function(){return ee},ne={notify:function(){}};var re=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=ne,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=te(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=ne)},e}(),oe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const ie=function(t){var n=t.store,r=t.context,o=t.children,i=(0,e.useMemo)((function(){var e=new re(n);return e.onStateChange=e.notifyNestedSubs,{store:n,subscription:e}}),[n]),a=(0,e.useMemo)((function(){return n.getState()}),[n]);oe((function(){var e=i.subscription;return e.trySubscribe(),a!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var s=r||J;return e.createElement(s.Provider,{value:i},o)};var ae=n(7896),se=n(1461),ue=n(3463),ce=n.n(ue),le=n(3920),de=[],fe=[null,null];function pe(e,t){var n=e[1];return[t.payload,n+1]}function he(e,t,n){oe((function(){return e.apply(void 0,t)}),n)}function me(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function ve(e,t,n,r,o,i,a,s,u,c){if(e){var l=!1,d=null,f=function(){if(!l){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===i.current?a.current||u():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var ge=function(){return[null,0]};function ye(t,n){void 0===n&&(n={});var r=n,o=r.getDisplayName,i=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,a=r.methodName,s=void 0===a?"connectAdvanced":a,u=r.renderCountProp,c=void 0===u?void 0:u,l=r.shouldHandleStateChanges,d=void 0===l||l,f=r.storeKey,p=void 0===f?"store":f,h=(r.withRef,r.forwardRef),m=void 0!==h&&h,v=r.context,g=void 0===v?J:v,y=(0,se.Z)(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),b=g;return function(n){var r=n.displayName||n.name||"Component",o=i(r),a=(0,ae.Z)({},y,{getDisplayName:i,methodName:s,renderCountProp:c,shouldHandleStateChanges:d,storeKey:p,displayName:o,wrappedComponentName:r,WrappedComponent:n}),u=y.pure;var l=u?e.useMemo:function(e){return e()};function f(r){var o=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=(0,se.Z)(r,["reactReduxForwardedRef"]);return[r.context,e,t]}),[r]),i=o[0],s=o[1],u=o[2],c=(0,e.useMemo)((function(){return i&&i.Consumer&&(0,le.isContextConsumer)(e.createElement(i.Consumer,null))?i:b}),[i,b]),f=(0,e.useContext)(c),p=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(f)&&Boolean(f.store);var h=p?r.store:f.store,m=(0,e.useMemo)((function(){return function(e){return t(e.dispatch,a)}(h)}),[h]),v=(0,e.useMemo)((function(){if(!d)return fe;var e=new re(h,p?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,p,f]),g=v[0],y=v[1],E=(0,e.useMemo)((function(){return p?f:(0,ae.Z)({},f,{subscription:g})}),[p,f,g]),w=(0,e.useReducer)(pe,de,ge),x=w[0][0],S=w[1];if(x&&x.error)throw x.error;var k=(0,e.useRef)(),C=(0,e.useRef)(u),O=(0,e.useRef)(),T=(0,e.useRef)(!1),_=l((function(){return O.current&&u===C.current?O.current:m(h.getState(),u)}),[h,x,u]);he(me,[C,k,T,u,_,O,y]),he(ve,[d,h,g,m,C,k,T,O,y,S],[h,g,m]);var N=(0,e.useMemo)((function(){return e.createElement(n,(0,ae.Z)({},_,{ref:s}))}),[s,n,_]);return(0,e.useMemo)((function(){return d?e.createElement(c.Provider,{value:E},N):N}),[c,N,E])}var h=u?e.memo(f):f;if(h.WrappedComponent=n,h.displayName=f.displayName=o,m){var v=e.forwardRef((function(t,n){return e.createElement(h,(0,ae.Z)({},t,{reactReduxForwardedRef:n}))}));return v.displayName=o,v.WrappedComponent=n,ce()(v,n)}return ce()(h,n)}}function be(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ee(e,t){if(be(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!be(e[n[o]],t[n[o]]))return!1;return!0}function we(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function xe(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Se(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=xe(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=xe(o),o=r(t,n)),o},r}}const ke=[function(e){return"function"==typeof e?Se(e):void 0},function(e){return e?void 0:we((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?we((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];const Ce=[function(e){return"function"==typeof e?Se(e):void 0},function(e){return e?void 0:we((function(){return{}}))}];function Oe(e,t,n){return(0,ae.Z)({},n,e,t)}const Te=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var u=e(t,n,s);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return Oe}}];function _e(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function Ne(e,t,n,r,o){var i,a,s,u,c,l=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;function h(o,p){var h,m,v=!d(p,a),g=!l(o,i);return i=o,a=p,v&&g?(s=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),c=n(s,u,a)):v?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),c=n(s,u,a)):g?(h=e(i,a),m=!f(h,s),s=h,m&&(c=n(s,u,a)),c):c}return function(o,l){return p?h(o,l):(s=e(i=o,a=l),u=t(r,a),c=n(s,u,a),p=!0,c)}}function Re(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,se.Z)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),u=o(e,i);return(i.pure?Ne:_e)(a,s,u,e,i)}function Pe(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Ie(e,t){return e===t}function Ae(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?ye:n,o=t.mapStateToPropsFactories,i=void 0===o?Ce:o,a=t.mapDispatchToPropsFactories,s=void 0===a?ke:a,u=t.mergePropsFactories,c=void 0===u?Te:u,l=t.selectorFactory,d=void 0===l?Re:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,u=a.pure,l=void 0===u||u,f=a.areStatesEqual,p=void 0===f?Ie:f,h=a.areOwnPropsEqual,m=void 0===h?Ee:h,v=a.areStatePropsEqual,g=void 0===v?Ee:v,y=a.areMergedPropsEqual,b=void 0===y?Ee:y,E=(0,se.Z)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=Pe(e,i,"mapStateToProps"),x=Pe(t,s,"mapDispatchToProps"),S=Pe(n,c,"mergeProps");return r(d,(0,ae.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:x,initMergeProps:S,pure:l,areStatesEqual:p,areOwnPropsEqual:m,areStatePropsEqual:g,areMergedPropsEqual:b},E))}}const Me=Ae();function Le(){return(0,e.useContext)(J)}function De(t){void 0===t&&(t=J);var n=t===J?Le:function(){return(0,e.useContext)(t)};return function(){return n().store}}var je=De();function Fe(e){void 0===e&&(e=J);var t=e===J?je:De(e);return function(){return t().dispatch}}var Ze=Fe(),Ue=function(e,t){return e===t};function Be(t){void 0===t&&(t=J);var n=t===J?Le:function(){return(0,e.useContext)(t)};return function(t,r){void 0===r&&(r=Ue);var o=n(),i=function(t,n,r,o){var i,a=(0,e.useReducer)((function(e){return e+1}),0)[1],s=(0,e.useMemo)((function(){return new re(r,o)}),[r,o]),u=(0,e.useRef)(),c=(0,e.useRef)(),l=(0,e.useRef)(),d=(0,e.useRef)(),f=r.getState();try{if(t!==c.current||f!==l.current||u.current){var p=t(f);i=void 0!==d.current&&n(p,d.current)?d.current:p}else i=d.current}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return oe((function(){c.current=t,l.current=f,d.current=i,u.current=void 0})),oe((function(){function e(){try{var e=r.getState(),t=c.current(e);if(n(t,d.current))return;d.current=t,l.current=e}catch(e){u.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),i}(t,r,o.store,o.subscription);return(0,e.useDebugValue)(i),i}}var ze,Ve=Be();ze=t.unstable_batchedUpdates,ee=ze;var qe=n(21),We=n(2034),He=n.n(We),Ge=n(6522);function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){(0,C.Z)(e,t,n[t])}))}return e}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ke=n(7371),Ye=n(753);function Xe(e,t){if(t&&("object"===(0,Ge.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,Ye.Z)(e)}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=n(8960);function tt(e,t){if("function"!=typeof t&&null!==t)throw new 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,et.Z)(e,t)}var nt={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},rt=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe(this,e),this.init(t,n)}return(0,Ke.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||nt,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,$e({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),ot=function(){function e(){Qe(this,e),this.observers={}}return(0,Ke.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function it(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function at(e){return null==e?"":""+e}function st(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function ut(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function ct(e,t,n){var r=ut(e,t,Object);r.obj[r.k]=n}function lt(e,t){var n=ut(e,t),r=n.obj,o=n.k;if(r)return r[o]}function dt(e,t,n){var r=lt(e,n);return void 0!==r?r:lt(t,n)}function ft(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):ft(e[r],t[r],n):e[r]=t[r]);return e}function pt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function mt(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return ht[e]})):e}var vt="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,gt=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Qe(this,t),n=Xe(this,Je(t).call(this)),vt&&ot.call((0,Ye.Z)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return tt(t,e),(0,Ke.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),lt(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),ct(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=lt(this.data,a)||{};r?ft(s,n,o):s=$e({},s,n),ct(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?$e({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(ot),yt={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},bt={},Et=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Qe(this,t),n=Xe(this,Je(t).call(this)),vt&&ot.call((0,Ye.Z)(n)),st(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,Ye.Z)(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=rt.create("translator"),n}return tt(t,e),(0,Ke.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==(0,Ge.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],t),a=i.key,s=i.namespaces,u=s[s.length-1],c=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(l){var d=t.nsSeparator||this.options.nsSeparator;return u+d+a}return a}var f=this.resolve(e,t),p=f&&f.res,h=f&&f.usedKey||a,m=f&&f.exactUsedKey||a,v=Object.prototype.toString.apply(p),g=["[object Number]","[object Function]","[object RegExp]"],y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p;if(b&&p&&E&&g.indexOf(v)<0&&("string"!=typeof y||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,p,t):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(o){var w="[object Array]"===v,x=w?[]:{},S=w?m:h;for(var k in p)if(Object.prototype.hasOwnProperty.call(p,k)){var C="".concat(S).concat(o).concat(k);x[k]=this.translate(C,$e({},t,{joinArrays:!1,ns:s})),x[k]===C&&(x[k]=p[k])}p=x}}else if(b&&"string"==typeof y&&"[object Array]"===v)(p=p.join(y))&&(p=this.extendTranslation(p,e,t,n));else{var O=!1,T=!1;if(!this.isValidLookup(p)&&void 0!==t.defaultValue){if(O=!0,void 0!==t.count){var _=this.pluralResolver.getSuffix(c,t.count);p=t["defaultValue".concat(_)]}p||(p=t.defaultValue)}this.isValidLookup(p)||(T=!0,p=a);var N=t.defaultValue&&t.defaultValue!==p&&this.options.updateMissing;if(T||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,u,a,N?t.defaultValue:p),o){var R=this.resolve(a,$e({},t,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var A=0;A<I.length;A++)P.push(I[A]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(t.lng||this.language):P.push(t.lng||this.language);var M=function(e,n){r.options.missingKeyHandler?r.options.missingKeyHandler(e,u,n,N?t.defaultValue:p,N,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,u,n,N?t.defaultValue:p,N,t),r.emit("missingKey",e,u,n,p)};if(this.options.saveMissing){var L=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&L?P.forEach((function(e){r.pluralResolver.getPluralFormsOfKey(e,a).forEach((function(t){return M([e],t)}))})):M(P,a)}}p=this.extendTranslation(p,e,t,f,n),T&&p===a&&this.options.appendNamespaceToMissingKey&&(p="".concat(u,":").concat(a)),T&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init($e({},n,{interpolation:$e({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=$e({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=yt.handle(f,e,t,this.options&&this.options.postProcessPassResolved?$e({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!bt["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(bt["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u,l=c,p=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,c,n,e,s);else d&&(i=a.pluralResolver.getSuffix(n,s.count)),d&&f&&p.push(l+i),f&&p.push(l+="".concat(a.options.contextSeparator).concat(s.context)),d&&p.push(l+=i);for(;u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}]),t}(ot);function wt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xt=function(){function e(t){Qe(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=rt.create("languageUtils")}return(0,Ke.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=wt(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=wt(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=wt(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),St=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],kt={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function Ct(){var e={};return St.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:kt[t.fc]}}))})),e}var Ot=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe(this,e),this.languageUtils=t,this.options=n,this.logger=rt.create("pluralResolver"),this.rules=Ct()}return(0,Ke.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,r=[],o=this.getRule(e);return o?(o.numbers.forEach((function(o){var i=n.getSuffix(e,o);r.push("".concat(t).concat(i))})),r):r}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Tt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Qe(this,e),this.logger=rt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,Ke.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:mt,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?pt(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?pt(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?pt(t.nestingPrefix):t.nestingPrefixEscaped||pt("$t("),this.nestingSuffix=t.nestingSuffix?pt(t.nestingSuffix):t.nestingSuffixEscaped||pt(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var o=dt(t,u,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(dt(t,u,a),c,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof d){var n=d(e,o,r);i="string"==typeof n?n:""}else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=at(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=$e({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=$e({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),u=l,c=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=at(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var _t=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Qe(this,t),o=Xe(this,Je(t).call(this)),vt&&ot.call((0,Ye.Z)(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=rt.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return tt(t,e),(0,Ke.Z)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l,d;r=n.loaded,s=i,c=ut(r,[o],Object),l=c.obj,d=c.k,l[d]=l[d]||[],u&&(l[d]=l[d].concat(s)),u||l[d].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,$e({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(ot);function Nt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,Ge.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,Ge.Z)(e[2])||"object"===(0,Ge.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Rt(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Pt(){}const It=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Qe(this,t),e=Xe(this,Je(t).call(this)),vt&&ot.call((0,Ye.Z)(e)),e.options=Rt(n),e.services={},e.logger=rt,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Xe(e,(0,Ye.Z)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return tt(t,e),(0,Ke.Z)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=$e({},Nt(),this.options,Rt(t)),this.format=this.options.interpolation.format,n||(n=Pt),!this.options.isClone){this.modules.logger?rt.init(r(this.modules.logger),this.options):rt.init(null,this.options);var o=new xt(this.options);this.store=new gt(this.options.resources,this.options);var i=this.services;i.logger=rt,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Ot(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Tt(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new _t(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Et(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=it(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=it();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Pt),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&yt.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=it();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==(0,Ge.Z)(r)){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];o=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else o=$e({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=it();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=it();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt,o=$e({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=$e({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Et(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(ot));function At(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){(0,C.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt,Dt={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},jt=e.createContext();function Ft(){return Dt}var Zt=function(){function e(){Qe(this,e),this.usedNamespaces={}}return(0,Ke.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function Ut(){return Lt}var Bt={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Dt=Mt(Mt({},Dt),e)}(e.options.react),function(e){Lt=e}(e)}};It.use(Bt).init({lng:"en",fallbackLng:"en",ns:["common"],defaultNS:"common",keySeparator:!1,interpolation:{escapeValue:!1,formatSeperator:","},react:{wait:!0,useSuspense:!1},resources:{en:{common:{"api-failed":"Sorry! There appears to be a connectivity issue. Please try again shortly.","session-expired":"Your session expired. Please try again.","appbar-header":"Ask {{bot}}","chatbot-version":"Chatbot v{{version}}",copyright:"Copyright ©{{years}} CareerAmerica, LLC",patent:"U.S. Patent No. {{number}}",Close:"Close {{bot}}","created-by":"Created by the financial aid and student services experts\n          at Ocelot in Boulder, CO and Evanston, IL.","default-launch-button":"Questions? Ask {{bot}}","download-transcript-question":"Would you like to download a copy of your chat transcript?","emojis-powered":"Emojis powered by {{emojiLink}}.","feedback-failed":"I'm sorry, I wasn't able to receive your feedback. Try again later.","fatv-video-player":"FATV Video Player","likely-to-recommend":"How likely are you to recommend speaking with {{bot}} to a friend?","livechat-agent-connected":"You are now speaking with {{operator}}.","livechat-office-changed":"Operator has transferred this conversation to {{office}}.","livechat-agent-left":"{{operator}} has left the conversation.","livechat-bot-speaking":"You are now speaking with {{bot}} again.","livechat-left-queue":"You've left the queue. You are now speaking with {{bot}} again.","rate-bot":"Rate {{bot}}",Spanish:"Español","About me":"Information about this Chatbot software","username-said":"{{name}} said","language-selected":"{{lang}} is currently selected",visiturl:"Visit {{webpage}}"}},es:{common:{About:"Acerca de","api-failed":"¡Lo sentimos! Parece que hay un problema de conectividad.\n          Por favor intente nuevamente más tarde.","session-expired":"¡Lo siento! Tu sesión ha expirado. Por favor intenta nuevamente más tarde.","appbar-header":"Pregúntale a {{bot}}","Ask a question":"Haz una pregunta",Cancel:"Cancelar","Change language":"Cambiar el idioma","Translation unavailable during live agent conversation":"Traducción no disponible durante la conversación con el agente en vivo","chatbot-version":"Chatbot v{{version}}",copyright:"© Derechos de autor {{years}}. CareerAmerica, LLC","Clear conversation":"Limpiar la conversación",Close:"Cerrar {{bot}}","Close suggestions":"Cerrar sugerencias","Close videos":"Cerrar videos","Close links":"Cerrar enlaces","created-by":"Creado por expertos en ayuda financiera y servicios estudiantiles\n          en Ocelot en Boulder, CO y Evanston, IL.","default-launch-button":"Preguntas? Pregúntale a {{bot}}",Dismiss:"Descartar","Download transcript":"Descargar transcripción","download-transcript-question":"¿Le gustaría descargar una copia de su transcripción?","Do you have any other feedback about your experience?":"¿Tienes algún otro\n          comentario sobre tu experiencia?","emojis-powered":"Emojis accionados por {{emojiLink}}.","Enjoying your chat? We'd love your feedback.":"¿Estás disfrutando de tu conversa?\n        Nos encantaría saber tus comentarios.",Links:"Enlaces","feedback-failed":"Lo siento, no pude recibir tus comentarios.\n          Inténtalo de nuevo más tarde.","fatv-video-player":"Reproductor de vídeo FATV","I'm back":"He vuelto","likely-to-recommend":"¿Qué tan probable es que recomiendes hablar con\n          {{bot}} a un amigo?","livechat-agent-connected":"Ahora estás hablando con {{operator}}.","livechat-office-changed":"El operador ha transferido esta conversación a {{oficina}}.","livechat-agent-left":"{{operator}} ha dejado la conversación.","livechat-bot-speaking":"Ahora estás hablando con {{bot}} nuevamente.","livechat-left-queue":"Has abandonado la cola de espera. Ahora estás hablando con {{bot}} nuevamente.","Not at all likely":"Para nada probable","Open Menu":"Menú abierto","Privacy Policy":"Política de privacidad","Accessibility Policy":"Política de accesibilidad","rate-bot":"Califica a {{bot}}","Send Message":"Enviar mensaje",Spanish:"Español",Submit:"Enviar",Suggestions:"Sugerencias","Terms of Use":"Términos de Uso","Thank you for your feedback!":"¡Gracias por tus comentarios!","Unknown Operator":"Operador desconocido","Very likely":"Muy probable","Visit Page":"Visita la página",Yes:"Sí","You said":"Dijiste","About me":"Información sobre este software de Chatbot","username-said":"{{name}} dijo","language-selected":"{{lang}} está actualmente seleccionado",Language:"Idioma",visiturl:"Vista la Pagina {{webpage}}","Explore suggestions":"Explorar sugerencias","Explore videos":"Explorar videos","Explore links":"Explorar enlaces"}},vi:{common:{About:"Về","api-failed":"Xin lỗi! Dường như có sự cố kết nối. Vui lòng thử lại trong thời gian ngắn.","session-expired":"Xin lỗi! Phiên của bạn đã hết hạn. Vui lòng thử lại trong thời gian ngắn.","appbar-header":"Hỏi {{bot}}","Ask a question":"Đặt một câu hỏi",Cancel:"Huỷ bỏ","Change language":"Cambiar el idioma","Translation unavailable during live agent conversation":"Không có bản dịch trong cuộc trò chuyện trực tiếp với đại lý","chatbot-version":"Chatbot v{{version}}",copyright:"© Bản quyền {{years}}. CareerAmerica, LLC","Clear conversation":"Xóa cuộc trò chuyện",Close:"Đóng lại {{bot}}","Close suggestions":"Đóng các đề xuất","Close videos":"Đóng video","Close links":"Đóng các liên kết","created-by":"Được tạo ra bởi các chuyên gia hỗ trợ tài chính và dịch vụ sinh viên tại\n          Ocelot ở Boulder, CO và Evanston, IL.","default-launch-button":"Câu hỏi? Hỏi {{bot}}",Dismiss:"Loại bỏ","Download transcript":"Tải xuống bảng điểm","download-transcript-question":"Bạn có muốn tải xuống bản sao bảng điểm của mình không?","Do you have any other feedback about your experience?":"Bạn có phản hồi nào khác về\n          trải nghiệm của mình không?","emojis-powered":"Biểu tượng cảm xúc được cung cấp bởi {{emojiLink}}.","Enjoying your chat? We'd love your feedback.":"Thích trò chuyện của bạn? Chúng tôi\n          rất thích phản hồi của bạn.",Links:"Liên kết","feedback-failed":"Tôi xin lỗi, tôi không thể nhận được phản hồi của bạn. Hãy thử lại\n          sau.","fatv-video-player":"Trình phát video FATV","I'm back":"Tôi trở lại","likely-to-recommend":"Bạn có khả năng giới thiệu trò chuyện bằng {{bot}} với một\n          người bạn không?\n        ","livechat-agent-connected":"Bây giờ bạn đang nói chuyện với {{operator}}.","livechat-office-changed":"Người điều hành đã chuyển cuộc trò chuyện này đến {{office}}.","livechat-agent-left":"{{operator}} đã rời khỏi cuộc trò chuyện.","livechat-bot-speaking":"Bây giờ bạn đang nói chuyện với {{bot}} một lần nữa.","livechat-left-queue":"Bạn đã rời khỏi hàng đợi. Bây giờ bạn đang nói chuyện với {{bot}} một lần nữa.","Not at all likely":"Không có khả năng","Open Menu":"Mở menu","Privacy Policy":"Chính sách quyền riêng tư","Accessibility Policy":"Chính sách trợ năng","rate-bot":"Xếp hạng {{bot}}}","Send Message":"Gửi tin nhắn",Vietnamese:"Việt nam",Submit:"Nộp",Suggestions:"Gợi ý","Terms of Use":"Điều khoản sử dụng","Thank you for your feedback!":"Cảm ơn bạn đã phản hồi!","Unknown Operator":"Nhà điều hành không xác định","Very likely":"Rất có thể","Visit Page":"Truy cập trang",Yes:"Vâng","You said":"Bạn đã nói","About me":"Thông tin về phần mềm Chatbot này","username-said":"{{name}} đã nói","language-selected":"{{lang}} hiện đã được chọn",Language:"Ngôn ngữ",visiturl:"Truy cập trang {{webpage}}","Explore suggestions":"Khám phá các đề xuất","Explore videos":"Khám phá video","Explore links":"Khám phá các liên kết"}},zh:{common:{About:"关于","api-failed":"抱歉! 似乎存在连接问题。 请稍后再试。","session-expired":"抱歉! 您的会话已过期。请稍后再试。","appbar-header":"询问 {{bot}}","Ask a question":"询问问题",Cancel:"取消","Change language":"更改语言","Translation unavailable during live agent conversation":"实时座席对话期间无法翻译","chatbot-version":"聊天机器人 v{{version}}",copyright:"© 版权 {{years}}. CareerAmerica, LLC","Clear conversation":"清楚的对话",Close:"关闭 {{bot}}","Close suggestions":"亲密建议","Close videos":"关闭影片","Close links":"关闭连结","created-by":"由位于科罗拉多州博尔德市和伊利诺伊州埃文斯顿市的Ocelot的财政资助和学生服务专家创建。","default-launch-button":"有任何疑问？询问 {{bot}}",Dismiss:"解雇","Do you have any other feedback about your experience?":"关于你的经历还有什么其他的反馈吗？","Download transcript":"下载成绩单","download-transcript-question":"您要下载成绩单吗？","emojis-powered":"由{{emojilink}}提供技术支持的emojis。","Enjoying your chat? We'd love your feedback.":"您是否喜欢这次对话？我们希望得到您的反馈。","feedback-failed":"很抱歉，我没能收到您的反馈。请稍后再试。","fatv-video-player":"FATV 视频播放器","I'm back":"我回来了","likely-to-recommend":"您有多大的可能性向朋友推荐与 {{bot}} 进行沟通？",Links:"网页","livechat-agent-connected":"您现在正在与{{operator}}对话。","livechat-office-changed":"接线员已将此对话转移到{{office}}。","livechat-agent-left":"{{operator}}已离开对话。","livechat-bot-speaking":"您现在再次与{{bot}}交谈。","livechat-left-queue":"您已离开队列。 您现在再次与{{bot}}交谈。","Not at all likely":"根本不可能","Open Menu":"打开菜单。","Privacy Policy":"隐私权保护政策","Accessibility Policy":"无障碍政策","rate-bot":"请对{{bot}}进行评分。","Send Message":"发送信息",Chinese:"中文",Submit:"提交",Suggestions:"意见建议","Terms of Use":"服务条款","Thank you for your feedback!":"感谢您的反馈意见！","Unknown Operator":"未知运算子","Very likely":"非常有可能（推荐）",Videos:"影片","Visit Page":"访问页面",Yes:"是的",No:"没有","You said":"你说","About me":"有关此聊天机器人软件的信息","username-said":"{{name}}说","language-selected":"当前选择了{{lang}}",Language:"语言",visiturl:"访问页面 {{webpage}}","Explore suggestions":"探索建议","Explore videos":"探索影片","Explore links":"探索链接"}}}});const zt=It;var Vt=n(2579),qt=n.n(Vt);class Wt{constructor(){this._data=new Map}setItem(e="",t=null){this._data.set(e,t)}getItem(e=""){return this._data.get(e)}removeItem(e){this._data.delete(e)}clear(){this._data.clear()}}const Ht=new class{constructor(){try{this._storage=qt()(window,"sessionStorage",new Wt)}catch(e){this._storage=new Wt}}getItem(e){try{const t=this._storage.getItem(e);return JSON.parse(t)}catch(t){return console.warn("SessionStorage: Failed to get key",e),null}}setItem(e,t){try{const n=JSON.stringify(t);this._storage.setItem(e,n)}catch(t){console.warn("SessionStorage: Failed to set key",e)}}removeItem(e){try{this._storage.removeItem(e)}catch(t){console.warn("SessionStorage: Failed to remove key",e)}}clear(){try{this._storage.clear()}catch(e){console.warn("SessionStorage: Failed to clear storage")}}},Gt=e=>{const t=document.createElement("a");return t.href=e,t.hostname},$t=(e,t)=>{let n=e;return e&&"object"==typeof e&&!Array.isArray(e)&&(n=e[t]?e[t]:e.en),Array.isArray(n)?n.join(" "):n},Qt=e=>e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,r)=>t+t+n+n+r+r)),Kt=(e,t,n)=>{const r=[e,t,n].map((e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*r[0]+.7152*r[1]+.0722*r[2]},Yt=e=>{const t=(e=>{e=Qt(e);const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null})(e),n=Kt(t.r,t.g,t.b),r=Kt(255,255,255);return(n>r?(r+.05)/(n+.05):(n+.05)/(r+.05))<1/4.5},Xt=(e,t)=>{const n=Qt(e);let r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);r=parseInt(r*(100+t)/100,10),o=parseInt(o*(100+t)/100,10),i=parseInt(i*(100+t)/100,10),r=r<255?r:255,o=o<255?o:255,i=i<255?i:255;return`${1===r.toString(16).length?`0${r.toString(16)}`:r.toString(16)}${1===o.toString(16).length?`0${o.toString(16)}`:o.toString(16)}${1===i.toString(16).length?`0${i.toString(16)}`:i.toString(16)}`},Jt=(e,t=1)=>{if(10===t)return e;if(Yt(e))return e;const n=Xt(e,-10);return Jt(n,t+1)},en=(e,t)=>{const n=document.getElementById("ocelotbot-message-container");if(!n)return;let r=document.createElement("div");const o=document.getElementById("conversation-review-status-pane-content");t&&o&&(r=o);const i=[...new Set([].concat(...[...n.querySelectorAll("[class]"),...r.querySelectorAll("[class]")].map((e=>[...e.classList]))))];let a='<style type="text/css">';[...document.styleSheets].forEach((e=>{e.ownerNode.hasAttribute("data-jss")&&[...e.rules].filter((e=>t?(e=>e.selectorText&&("body"===e.selectorText||i.includes(e.selectorText.substring(1))))(e):(e=>e.selectorText&&-1!==e.selectorText.indexOf(".MaxAI")&&i.includes(e.selectorText.substring(8)))(e))).forEach((e=>{a+=e.cssText}))})),a+="</style>";const s=n.cloneNode(!0);if(s.firstChild.classList.add("MaxAI"),t){const e=s.querySelector("#ocelotbot-transcript-header");s.firstChild.insertBefore(r.cloneNode(!0),e.nextSibling)}s.querySelectorAll(".ocelot-transcript-show").forEach((e=>{e.style.setProperty("display","flex","important")}));const u=document.createElement("a");if(u.setAttribute("href",`data:text/html;charset=utf-8,${encodeURIComponent(a+s.innerHTML)}`),u.setAttribute("download",`transcript-${e}-${(new Date).toISOString()}.html`),document.createEvent){const e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),u.dispatchEvent(e)}else u.click()},tn=e=>({type:"REPLACE_MESSAGES",messages:e}),nn=e=>({type:"UPDATE_CONVERSATION_CONTEXT",context:e}),rn=(e,t)=>({type:"RECEIVE_MESSAGE",data:e,messageType:t,receivedAt:Date.now()}),on=e=>({type:"TYPING_RESPONSE",state:e}),an=e=>t=>{var n;e&&t({type:"READ_MESSAGES",state:n}),t({type:"TOGGLE_DISPLAY",open:e})},sn=e=>t=>{const n=e||zt.t("Unknown Operator");t(rn({output:{text:zt.t("livechat-agent-connected",{operator:n}),resources:[],actions:[]}},"system")),t({type:"UPDATE_LIVE_CHAT_ASSIGNEE",assignee:n})},un=(e,t)=>n=>{n({type:"TOGGLE_LIVE_CHAT",status:e}),!0===e&&t&&n(sn(t))},cn=e=>(t,n)=>{const{messages:{liveChat:r,liveChatConnected:o}}=n();r&&e!==o&&t({type:"TOGGLE_LIVE_CHAT_CONNECTED",status:e})},ln=e=>(t,n)=>{const{chatbotUi:r}=n(),{messageType:o,message:i,actions:a,operatorAvatarUrl:s,operatorName:u,resources:c}=e;var l;t(on(!1)),t(rn({output:{text:i,resources:c,actions:a||[]},operatorName:u,operatorAvatar:s},o||qe.LiveChatTurnType.OperatorTurn)),r.open||t({type:"NEW_UNREAD_MESSAGE",state:l})},dn=(e,t)=>(n,r)=>{const{conversationState:o}=r();switch(t.event){case"LiveConversationStartTypingOperator":n(on(!0));break;case"LiveConversationStopTypingOperator":n(on(!1));break;case"LiveConversationClientNameChanged":n(nn({...o,name:t.payload.clientName}));break;case"LiveConversationSuperseded":if(t.payload.conversationId===o.conversation_id){const r=t.payload.newConversation;if(r.mode===qe.ConversationMode.LiveChat){if(r.operatorId)n(sn(r.operatorName));else{const e=`${r.office} (${r.campus})`;n((i=e,e=>{e(rn({output:{text:zt.t("livechat-office-changed",{office:i}),resources:[],actions:[]}},"system"))})),n({type:"UPDATE_LIVE_CHAT_ASSIGNEE",assignee:null})}n(nn({...o,conversation_id:r._id,campus:r.campus,office:r.office})),r.firstMessage&&n(ln(r.firstMessage))}else n((e=>(t,n)=>{const{messages:r}=n(),o=null==r.liveChatAssignee?zt.t("livechat-left-queue",{bot:e.name}):`${zt.t("livechat-agent-left",{operator:r.liveChatAssignee})} ${zt.t("livechat-bot-speaking",{bot:e.name})}`;t(un(!1)),t(on(!1)),t(rn({output:{text:o,resources:[],actions:[]}},"system")),t(rn({output:{text:`<p>${zt.t("I'm back!")}</p>\n                <p>${zt.t("download-transcript-question")}</p>`,resources:[],actions:[{type:qe.ConversationActionType.Callback,callback:()=>setTimeout((()=>en(e.name)),1500),text:{en:zt.t("Yes")}},{type:qe.ConversationActionType.SendResponse,text:{en:zt.t("No")}}]}})),t(nn({})),t({type:"UPDATE_LIVE_CHAT_ASSIGNEE",assignee:null})})(e)),n(nn({conversation_id:r._id}))}}var i},fn=e=>({type:"OPEN_FEEDBACK_DIALOG",open:e}),pn=e=>({type:"FEEDBACK_PROMPT_OPEN",open:e}),hn=e=>({type:"CHANGE_LANGUAGE",lang:e}),mn=e=>({type:"AUTH_SET_TOKEN",token:e}),vn=e=>({type:"AUTH_SET_DATA",data:e}),gn=(e,t)=>{fetch("https://ai.ocelotbot.com/api/click-track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,chatbotId:t})})},yn=(e,t,n={},r,o,i={retrying:!1})=>(a,s)=>{if(t){i.retrying||a((e=>({type:"SEND_MESSAGE",text:e}))(t));const u=(e,t)=>{e&&clearTimeout(e);const{messages:{typingResponse:n}}=s();n?setTimeout((()=>{a(on(!1)),t()}),250):t()},c=s(),{origin:l,pathname:d}=window.location,f={"Content-Type":"application/json","X-Referer":l+d};c.clientAuthToken.clientToken?f["Client-Auth-Token"]=c.clientAuthToken.clientToken:c.auth.token&&(f["X-Auth-Token"]=c.auth.token);const p=!c.messages.liveChat&&setTimeout((()=>a(on(!0))),750);fetch("https://ai.ocelotbot.com/api/message",{method:"POST",headers:f,body:JSON.stringify({key:e,input:{text:t,meta:n,language:r},language:c.language,context:{...c.conversationState,campus_id:c.userPrefs.campusId,office_id:c.userPrefs.officeId}})}).then((e=>e.json())).then((s=>"UnauthorizedError"===s.name?(a(mn("")),a(vn({})),Ht.removeItem("botauth:sso:tok"),u(p,(()=>i.retrying?a(rn({output:{text:[zt.t("session-expired")],resources:[],actions:[]}})):a(yn(e,t,n,r,o,{...i,retrying:!0}))))):u(p,(()=>{a(rn(s)),s.context.formcomplete&&(a(rn({output:{text:`${zt.t("download-transcript-question")}`,resources:[],actions:[{type:qe.ConversationActionType.Callback,callback:()=>en(o.name),text:{en:zt.t("Yes")}},{type:qe.ConversationActionType.SendResponse,text:{en:zt.t("No")}}]}})),delete s.context.formcomplete),a(nn(s.context)),s.context.livechat_approved&&!c.messages.liveChat&&a(un(!0,s.context.livechat_initial_operator)),s.language&&s.language!==c.language&&a(hn(s.language))})))).catch((()=>{u(p,(()=>{a(rn({output:{text:[zt.t("api-failed")],resources:[],actions:[]}}))}))}))}},bn=()=>e=>{const t=Ht.getItem("botauth:sso:tok"),n=(e=>{try{const t=e.split(".")[1],n=atob(t);return JSON.parse(n)}catch(e){return null}})(t);n&&(e(mn(t)),e(vn(n)))},En="[explore] SET_BACKDROP_OPEN",wn="[explore] SET_BACKDROP_TAB",xn=e=>({type:"CLIENT_AUTH_SET_TOKEN",clientToken:e});var Sn=n(865),kn=n.n(Sn);const Cn="redux-responsive/CALCULATE_RESPONSIVE_STATE";var On=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn={extraSmall:480,small:768,medium:992,large:1200},_n="infinity",Nn=function(e,t){var n={};return Object.keys(e).forEach((function(r){return t(n,e[r],r)})),n};function Rn(e){var t=Object.keys(e).sort((function(t,n){var r=e[t],o=e[n];return"number"==typeof r&&"string"==typeof o?-1:"number"==typeof o&&"string"==typeof r||r>=o?1:-1}));return Nn(e,(function(e,n,r){var o=t.indexOf(r);-1!==o&&(e[r]=o)}))}function Pn(e,t){var n=t[e];return Nn(t,(function(e,r,o){"number"==typeof r&&t[o]?e[o]=n<t[o]:e[o]=!1}))}function In(e,t){return Nn(t,(function(t,n,r){t[r]=r===e}))}function An(e,t){var n=t[e];return Nn(t,(function(e,r,o){e[o]="number"==typeof r&&n>t[o]}))}function Mn(e,t,n){return void 0===e?n:Object.keys(t).reduce((function(n,r){return e(t[r]).matches?r:n}),n)}function Ln(e){if(void 0===e)return null;var t={portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};return Object.keys(t).reduce((function(n,r){return e(t[r]).matches?r:n}),null)}var Dn="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};function jn(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function Fn(e,t){return"function"==typeof e.getIn?e.getIn(t):t.reduce((function(e,t){return e[t]}),e)}function Zn(e){return"function"==typeof e.keys?Array.from(e.keys()):Object.keys(e)}const Un=function(e){var t=e.getState(),n=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=[[]],o=function(){var o=r.shift();if(o.length>n)return"continue";var i=Fn(e,o);if(i){if(i[t])return{v:o};r.push.apply(r,jn(Zn(i).map((function(e){return o.concat(e)}))))}};r.length>0;){var i=o();switch(i){case"continue":continue;default:if("object"===(void 0===i?"undefined":Dn(i)))return i.v}}return!1}(t,"_responsiveState");if(!n)throw new Error("Could not find responsive state reducer. If you are still running into trouble, please open a ticket on github.");return Fn(t,n).breakpoints},Bn=function(e){var t=e.store,n=e.window,r=e.calculateInitialState,o=function(){return t.dispatch(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.innerWidth,n=e.innerHeight,r=e.matchMedia;return{type:Cn,innerWidth:t,innerHeight:n,matchMedia:r}}(n))},i=kn().asObject(Un(t));Object.keys(i).forEach((function(e){n.matchMedia(i[e]).addListener((function(e){e.matches&&o()}))})),n.addEventListener("orientationchange",o),r&&o()};var zn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.calculateInitialState,n=void 0===t||t;return function(e){return function(){var t=e.apply(void 0,arguments);return"undefined"!=typeof window&&void 0!==window.matchMedia&&Bn({store:t,window,calculateInitialState:n}),t}}},Vn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialMediaType,r=t.infinity,o=void 0===r?_n:r,i=t.extraFields,a=void 0===i?function(){return{}}:i;e||(e=Tn),e[o]=1/0;var s=kn().asObject(e),u=Rn(e);return function(t,r){var i=r.type,c=r.matchMedia;if(i===Cn||void 0===t){var l=!t&&n?n:Mn(c,s,o),d=Ln(c),f={_responsiveState:!0,lessThan:Pn(l,u),greaterThan:An(l,u),is:In(l,e),mediaType:l,orientation:d,breakpoints:e};return On({},f,a(f))}return t}}(),qn=zn();const Wn={token:null,data:null},Hn="suggestions",Gn="videos",$n="links",Qn=e=>{const t=e.messages.items,n=t.filter((e=>!0===e.highlight));if(n.length>0){const[e]=n.filter((e=>"user"!==e.type));if(e&&e.explore)return e.explore}else{const[e]=[...t].reverse();if(e&&e.explore){const{links:t=[],suggestions:n=[],videos:r=[]}=e.explore;return{links:t,suggestions:n,videos:r}}}},Kn=e=>e.explore&&e.explore.backdropTab,Yn=e=>e.explore&&e.explore.backdropOpen,Xn=Kn,Jn=Qn,er=e=>{const t=Kn(e),{links:n=[],suggestions:r=[],videos:o=[]}=Qn(e)||{};return[{type:Hn,suggestions:r},{type:Gn,videos:o},{type:$n,links:n}][t]},tr=e=>({showRatingDialog:!1,openSnackbar:!1,hasFeedbackPromptOpened:e||He().get("hasFeedbackPromptOpened")||!1,conversationId:"",score:"",additionalFeedback:"",status:"",displayThanksNotification:!1}),nr={calloutBubbleOpen:!0},rr={clientToken:null},or={key:null},ir=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:P.INIT}))throw new Error(_(12));if(void 0===n(void 0,{type:P.PROBE_UNKNOWN_ACTION()}))throw new Error(_(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var u=a[s],c=n[u],l=e[u],d=c(l,t);if(void 0===d){t&&t.type;throw new Error(_(14))}o[u]=d,r=r||d!==l}return(r=r||a.length!==Object.keys(e).length)?o:e}}({auth:(e=Wn,t)=>{switch(t.type){case"AUTH_SET_TOKEN":return{...e,token:t.token};case"AUTH_SET_DATA":return{...e,data:t.data};default:return e}},browser:Vn,chatbotUi:(e={open:!1,showViewMoreButton:!1},t)=>{switch(t.type){case"TOGGLE_DISPLAY":return{...e,open:t.open};default:return e}},explore:(e={backdropOpen:!1,backdropTab:null},t)=>{switch(t.type){case"SEND_MESSAGE":case"TOGGLE_DISPLAY":case"CLEAR_HISTORY":return{...e,backdropOpen:!1};case En:return{...e,backdropOpen:t.open};case wn:return{...e,backdropOpen:t.tabIndex!==e.backdropTab||!e.backdropOpen,backdropTab:t.tabIndex};default:return e}},feedback:(e=tr(),t)=>{switch(t.type){case"OPEN_FEEDBACK_DIALOG":return{...e,showRatingDialog:t.open};case"FEEDBACK_PROMPT_OPEN":return{...e,openSnackbar:t.open};case"FEEDBACK_PROMPT_SHOWN":return n=t.open,He().set("hasFeedbackPromptOpened",n,{expires:3}),{...e,hasFeedbackPromptOpened:t.open};case"SEND_FEEDBACK":return{...e,...t.data};case"FEEDBACK_SAVED_SUCCESSFULLY":return{...e,...t.data,displayThanksNotification:!0};case"CLEAR_FEEDBACK":return tr(!0);default:return e}var n},language:(e="en",t)=>{switch(t.type){case"CHANGE_LANGUAGE":return t.lang;default:return e}},messages:(e={unread:0,liveChat:!1,liveChatConnected:!1,liveChatReconnecting:!1,liveChatHasDisconnected:!1,isCampaign:!1,liveChatAssignee:null,fresh:!1,items:[],outstanding:!1,typingResponse:!1},t)=>{switch(t.type){case"SEND_MESSAGE":return{...e,outstanding:!0,items:[...e.items,{type:"user",output:t.text}]};case"RECEIVE_MESSAGE":return{...e,fresh:!0,outstanding:!1,items:[...e.items,{type:t.messageType||"watson",auth:t.data.context?t.data.context.auth:null,output:t.data.output.text,resources:t.data.output.resources,actions:t.data.output.actions,nid:t.data.output.nid||null,convoType:t.data.type,explore:t.data.context?t.data.context.explore:null,operatorAvatar:t.data.operatorAvatar,operatorName:t.data.operatorName}]};case"TYPING_RESPONSE":return{...e,typingResponse:t.state};case"REPLACE_MESSAGES":return{...e,items:t.messages};case"CLEAR_HISTORY":return{unread:0,liveChat:!1,liveChatConnected:!1,liveChatReconnecting:!1,liveChatHasDisconnected:!1,isCampaign:!1,liveChatAssignee:null,fresh:!1,items:[],outstanding:!1,typingResponse:!1};case"TOGGLE_LIVE_CHAT":return{...e,liveChat:t.status};case"TOGGLE_LIVE_CHAT_CONNECTED":return{...e,liveChatConnected:t.status,liveChatReconnecting:!1,liveChatHasDisconnected:!t.status||e.liveChatHasDisconnected};case"TOGGLE_LIVE_CHAT_RECONNECTING":return{...e,liveChatReconnecting:t.status};case"TOGGLE_CAMPAIGN":return{...e,isCampaign:t.isCampaign};case"UPDATE_LIVE_CHAT_ASSIGNEE":return{...e,liveChatAssignee:t.assignee};case"NEW_UNREAD_MESSAGE":return{...e,unread:e.unread+1};case"READ_MESSAGES":return{...e,unread:0};default:return e}},userPrefs:(e=nr,t)=>{switch(t.type){case"UPDATE_CALLOUT_BUBBLE_STATUS":return{...e,calloutBubbleOpen:t.open};case"SET_CAMPUS_OFFICE_PREFERENCE":return{...e,campusId:t.campusId,officeId:t.officeId};default:return e}},conversationState:(e={},t)=>{switch(t.type){case"UPDATE_CONVERSATION_CONTEXT":return t.context;case"CLEAR_HISTORY":return{};default:return e}},clientAuthToken:(e=rr,t)=>{switch(t.type){case"CLIENT_AUTH_SET_TOKEN":return{...e,clientToken:t.clientToken};default:return e}},key:(e=or,t)=>{switch(t.type){case"SET_KEY":return{...e,key:t.key};default:return e}}});var ar=n(4720),sr=n(5119),ur=n(2536),cr=n(9219),lr=n(6702),dr=n(1502),fr=n(5140);const pr=function(t){var n=t.children,r=t.theme,o=(0,dr.Z)(),i=e.useMemo((function(){var e=null===o?r:function(e,t){return"function"==typeof t?t(e):(0,ae.Z)({},e,t)}(o,r);return null!=e&&(e[fr.Z]=null!==o),e}),[r,o]);return e.createElement(lr.Z.Provider,{value:i},n)};function hr(t){var n=t.i18n,r=t.defaultNS,o=t.children,i=(0,e.useMemo)((function(){return{i18n:n,defaultNS:r}}),[n,r]);return(0,e.createElement)(jt.Provider,{value:i},o)}var mr=n(7630),vr=n.n(mr),gr=n(3352),yr=n.n(gr),br=n(9756),Er=n.n(br),wr=n(5505),xr=n.n(wr),Sr=n(537),kr=n.n(Sr);const Cr="!important";const Or={}.constructor,Tr=e=>{if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Tr);if(e.constructor!==Or)return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Tr(e[n])})),t};var _r=n(735),Nr=n(2867);function Rr(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Pr={};function Ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Pr[t[0]]||("string"==typeof t[0]&&(Pr[t[0]]=new Date),Rr.apply(void 0,t))}function Ar(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function Mr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return Ir("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))))}function Lr(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}function Dr(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 jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach((function(t){(0,C.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.i18n,o=(0,e.useContext)(jt)||{},i=o.i18n,a=o.defaultNS,s=r||i||Ut();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Zt),!s){Ir("You will need to pass in an i18next instance by using initReactI18next");var u=function(e){return Array.isArray(e)?e[e.length-1]:e},c=[u,{},!1];return c.t=u,c.i18n={},c.ready=!1,c}s.options.react&&void 0!==s.options.react.wait&&Ir("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=jr(jr(jr({},Ft()),s.options.react),n),d=l.useSuspense,f=t||a||s.options&&s.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(f);var p=(s.isInitialized||s.initializedStoreOnce)&&f.every((function(e){return Mr(e,s,l)}));function h(){return s.getFixedT(null,"fallback"===l.nsMode?f:f[0])}var m=(0,e.useState)(h),v=(0,Nr.Z)(m,2),g=v[0],y=v[1],b=(0,e.useRef)(!0);(0,e.useEffect)((function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){b.current&&y(h)}return b.current=!0,p||d||Ar(s,f,(function(){b.current&&y(h)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){b.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,f.join()]);var E=(0,e.useRef)(!0);(0,e.useEffect)((function(){b.current&&!E.current&&y(h),E.current=!1}),[s]);var w=[g,s,p];if(w.t=g,w.i18n=s,w.ready=p,p)return w;if(!p&&!d)return w;throw new Promise((function(e){Ar(s,f,(function(){e()}))}))}var Zr=n(4860);const Ur=(0,Zr.Z)((e=>({"@global":{"*":{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontWeight:"normal"},"a:link, a:active, a:visited":{color:e.palette.link?e.palette.link:e.palette.primary.dark,background:"none"},"a:visited":{color:e.palette.linkLight?e.palette.linkLight:e.palette.primary.light},form:{margin:0},"input, button":{boxShadow:"none",backgroundImage:"none"},img:{display:"inline-block"},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},"p, ul, ol":{margin:"0 0 1em"},".twemoji":{width:"16px",height:"16px"},'.twemoji[alt="®"]':{width:"10px",height:"10px"}}}))),Br=e.forwardRef((({children:t,environment:n,lang:r},o)=>("admin"!==n&&Ur(),e.createElement("div",{ref:o,className:"MaxAI",lang:r},e.createElement("div",null,t)))));Br.displayName="MaxAIWrapper",Br.propTypes={children:X().oneOfType([X().arrayOf(X().node),X().node]).isRequired,environment:X().string,lang:X().string.isRequired},Br.defaultProps={environment:"standard"};const zr=Br;var Vr=n(6901),qr=n(162),Wr=n(5547),Hr=n(7980),Gr=function(){function e(){this.getFragmentDoc=(0,Wr.re)(Hr.Yk)}return e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},e.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},e}(),$r=function(e,t,n,r,o){this.message=e,this.path=t,this.query=n,this.clientOnly=r,this.variables=o},Qr=n(6287),Kr=n(9280),Yr=n(9279),Xr=n(197),Jr=n(8029),eo=n(8803),to=n(8229);var no=n(3349),ro=Object.prototype.hasOwnProperty;var oo=/^[_a-z][_0-9a-z]*/i;function io(e){var t=e.match(oo);return t?t[0]:e}function ao(e,t,n){return!(!t||"object"!=typeof t)&&(Array.isArray(t)?t.every((function(t){return ao(e,t,n)})):e.selections.every((function(e){if((0,Qr.My)(e)&&(0,Jr.LZ)(e,n)){var r=(0,Qr.u2)(e);return ro.call(t,r)&&(!e.selectionSet||ao(e.selectionSet,t[r],n))}return!0})))}function so(e){return null!==e&&"object"==typeof e&&!(0,Qr.Yk)(e)&&!Array.isArray(e)}var uo=Object.create(null),co=function(){return uo},lo=Object.create(null),fo=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,Qr.Yk)(e)?n.get(e.__ref,t):e&&e[t]},this.canRead=function(e){return(0,Qr.Yk)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,Qr.kQ)(e);if((0,Qr.Yk)(e))return e;var r=n.policies.identify(e)[0];if(r){var o=(0,Qr.kQ)(r);return t&&n.merge(r,e),o}}}return e.prototype.toObject=function(){return(0,qr.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),ro.call(this.data,e)){var n=this.data[e];if(n&&ro.call(n,t))return n[t]}return"__typename"===t&&ro.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof mo?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),ro.call(this.data,e)?this.data[e]:this instanceof mo?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n=this,r=this.lookup(e),o=new eo.w0(vo).merge(r,t);if(this.data[e]=o,o!==r&&(delete this.refs[e],this.group.caching)){var i=Object.create(null);r||(i.__exists=1),Object.keys(t).forEach((function(e){if(!r||r[e]!==o[e]){i[e]=1;var t=io(e);t===e||n.policies.hasKeyArgs(o.__typename,t)||(i[t]=1),void 0!==o[e]||n instanceof mo||delete o[e]}})),Object.keys(i).forEach((function(t){return n.group.dirty(e,t)}))}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var o=Object.create(null),i=!1,a=!0,s={DELETE:uo,INVALIDATE:lo,isReference:Qr.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,Qr.kQ)(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var c=io(u),l=r[u];if(void 0!==l){var d="function"==typeof t?t:t[u]||t[c];if(d){var f=d===co?uo:d(l,(0,qr.pi)((0,qr.pi)({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));f===lo?n.group.dirty(e,u):(f===uo&&(f=void 0),f!==l&&(o[u]=f,i=!0,l=f))}void 0!==l&&(a=!1)}})),i)return this.merge(e,o),a&&(this instanceof mo?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,o=this.lookup(e);if(o){var i=this.getFieldValue(o,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:i,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=co,r):co)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(ro.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof mo&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){ro.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&ro.call(e,n)||t.delete(n)})),e){var n=e.__META,r=(0,qr._T)(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof mo?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){ro.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var o=this;o instanceof mo;)o=o.parent;r.forEach((function(e){return o.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!ro.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=new Set([this.data[e]]),r=function(e){return null!==e&&"object"==typeof e};n.forEach((function(e){(0,Qr.Yk)(e)?t[e.__ref]=!0:r(e)&&Object.values(e).filter(r).forEach(n.add,n)}))}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.group.keyMaker.lookupArray(e)},e}(),po=function(){function e(e){this.caching=e,this.d=null,this.keyMaker=new Wr.Gl(no.m),this.d=e?(0,Wr.dP)():null}return e.prototype.depend=function(e,t){if(this.d){this.d(ho(e,t));var n=io(t);n!==t&&this.d(ho(e,n))}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(ho(e,t))},e}();function ho(e,t){return t+"#"+e}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,o=void 0===r||r,i=t.seed,a=e.call(this,n,new po(o))||this;return a.storageTrie=new Wr.Gl(no.m),a.sharedLayerGroup=new po(o),i&&a.replace(i),a}return(0,qr.ZT)(t,e),t.prototype.addLayer=function(e,t){return new mo(e,this,t,this.sharedLayerGroup)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(fo||(fo={}));var mo=function(e){function t(t,n,r,o){var i=e.call(this,n.policies,o)||this;return i.id=t,i.parent=n,i.replay=r,i.group=o,r(i),i}return(0,qr.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){t.data[e]!==n.lookup(e)&&t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,qr.pi)((0,qr.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return ro.call(this.data,t)?(0,qr.pi)((0,qr.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(fo);function vo(e,t,n){var r=e[n],o=t[n];return(0,to.D)(r,o)?r:o}function go(e){return!!(e instanceof fo&&e.group.caching)}function yo(e,t){return new $r(e.message,t.path.slice(),t.query,t.clientOnly,t.variables)}var bo=function(){function e(e){var t=this;this.config=e,this.executeSelectionSet=(0,Wr.re)((function(e){return t.execSelectionSetImpl(e)}),{keyArgs:function(e){return[e.selectionSet,e.objectOrReference,e.context]},makeCacheKey:function(e,t,n){if(go(n.store))return n.store.makeCacheKey(e,(0,Qr.Yk)(t)?t.__ref:t,n.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,Wr.re)((function(e){return t.execSubSelectedArrayImpl(e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(go(r.store))return r.store.makeCacheKey(t,n,r.varString)}}),this.config=(0,qr.pi)({addTypename:!0},e)}return e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,o=void 0===r?"ROOT_QUERY":r,i=e.variables,a=e.returnPartialData,s=void 0===a||a,u=this.config.cache.policies;i=(0,qr.pi)((0,qr.pi)({},(0,Xr.O4)((0,Xr.iW)(n))),i);var c=this.executeSelectionSet({selectionSet:(0,Xr.p$)(n).selectionSet,objectOrReference:(0,Qr.kQ)(o),context:{store:t,query:n,policies:u,variables:i,varString:JSON.stringify(i),fragmentMap:(0,Hr.F)((0,Xr.kU)(n)),path:[],clientOnly:!1}}),l=c.missing&&c.missing.length>0;if(l&&!s)throw c.missing[0];return{result:c.result,missing:c.missing,complete:!l}},e.prototype.isFresh=function(e,t,n,r){if(go(r.store)&&this.knownResults.get(e)===n){var o=this.executeSelectionSet.peek(n,t,r);if(o&&e===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,o=e.context;if((0,Qr.Yk)(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:{},missing:[yo(new Yr.ej(4),o)]};var i=o.variables,a=o.policies,s=o.store,u=[],c={result:null},l=s.getFieldValue(r,"__typename");function d(){return c.missing||(c.missing=[])}function f(e){var t;return e.missing&&(t=d()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof l&&!a.rootIdsByTypename[l]&&u.push({__typename:l});var p=new Set(n.selections);return p.forEach((function(e){var n;if((0,Jr.LZ)(e,i))if((0,Qr.My)(e)){var s=a.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),c=(0,Qr.u2)(e);o.path.push(c);var h=o.clientOnly;o.clientOnly=h||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===s?Kr.Gw.added(e)||d().push(yo(new Yr.ej(5),o)):Array.isArray(s)?s=f(t.executeSubSelectedArray({field:e,array:s,context:o})):e.selectionSet&&null!=s&&(s=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,context:o}))),void 0!==s&&u.push(((n={})[c]=s,n)),o.clientOnly=h,(0,Yr.kG)(o.path.pop()===c)}else{var m=(0,Hr.hi)(e,o.fragmentMap);m&&a.fragmentMatches(m,l)&&m.selectionSet.selections.forEach(p.add,p)}})),c.result=(0,eo.bw)(u),this.knownResults.set(c.result,n),c},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,i=e.context;function a(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),(0,Yr.kG)(i.path.pop()===n),e.result}return r.selectionSet&&(o=o.filter(i.store.canRead)),{result:o=o.map((function(e,t){return null===e?null:(i.path.push(t),Array.isArray(e)?a(n.executeSubSelectedArray({field:r,array:e,context:i}),t):r.selectionSet?a(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,context:i}),t):((0,Yr.kG)(i.path.pop()===t),e))})),missing:t}},e}();var Eo=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,n=e.result,r=e.dataId,o=e.store,i=e.variables,a=(0,Xr.$H)(t),s=new eo.w0;i=(0,qr.pi)((0,qr.pi)({},(0,Xr.O4)(a)),i);var u=this.processSelectionSet({result:n||Object.create(null),dataId:r,selectionSet:a.selectionSet,mergeTree:{map:new Map},context:{store:o,written:Object.create(null),merge:function(e,t){return s.merge(e,t)},variables:i,varString:JSON.stringify(i),fragmentMap:(0,Hr.F)((0,Xr.kU)(t))}});if(!(0,Qr.Yk)(u))throw new Yr.ej(7);return o.retain(u.__ref),u},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,o=e.selectionSet,i=e.context,a=e.mergeTree,s=this.cache.policies,u=s.identify(r,o,i.fragmentMap),c=u[0],l=u[1];if("string"==typeof(n=n||c)){var d=i.written[n]||(i.written[n]=[]),f=(0,Qr.kQ)(n);if(d.indexOf(o)>=0)return f;if(d.push(o),this.reader&&this.reader.isFresh(r,f,o,i))return f}var p=Object.create(null);l&&(p=i.merge(p,l));var h=n&&s.rootTypenamesById[n]||(0,Qr.qw)(r,o,i.fragmentMap)||n&&i.store.get(n,"__typename");"string"==typeof h&&(p.__typename=h);var m=new Set(o.selections);if(m.forEach((function(e){var n;if((0,Jr.LZ)(e,i.variables))if((0,Qr.My)(e)){var o=(0,Qr.u2)(e),u=r[o];if(void 0!==u){var c=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:i.variables}),l=xo(a,c),d=t.processFieldValue(u,e,i,l),f=e.selectionSet&&i.store.getFieldValue(d,"__typename")||void 0,v=s.getMergeFunction(h,e.name.value,f);v?l.info={field:e,typename:h,merge:v}:So(a,c),p=i.merge(p,((n={})[c]=d,n))}else if(s.usingPossibleTypes&&!(0,Jr.FS)(["defer","client"],e))throw new Yr.ej(8)}else{var g=(0,Hr.hi)(e,i.fragmentMap);g&&s.fragmentMatches(g,h,r,i.variables)&&g.selectionSet.selections.forEach(m.add,m)}})),"string"==typeof n){var v=(0,Qr.kQ)(n);return a.map.size&&(p=this.applyMerges(a,v,p,i)),i.store.merge(n,p),v}return p},e.prototype.processFieldValue=function(e,t,n,r){var o=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,i){var a=o.processFieldValue(e,t,n,xo(r,i));return So(r,i),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},e.prototype.applyMerges=function(e,t,n,r,o){var i,a=this;if(e.map.size&&!(0,Qr.Yk)(n)){var s,u=Array.isArray(n)||!(0,Qr.Yk)(t)&&!so(t)?void 0:t,c=n;u&&!o&&(o=[(0,Qr.Yk)(u)?u.__ref:u]);var l=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){o&&o.push(t);var n=l(u,t),i=l(c,t),d=a.applyMerges(e,n,i,r,o);d!==i&&(s=s||new Map).set(t,d),o&&(0,Yr.kG)(o.pop()===t)})),s&&(n=Array.isArray(c)?c.slice(0):(0,qr.pi)({},c),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,o&&(i=r.store).getStorage.apply(i,o)):n},e}(),wo=[];function xo(e,t){var n=e.map;return n.has(t)||n.set(t,wo.pop()||{map:new Map}),n.get(t)}function So(e,t){var n=e.map,r=n.get(t);!r||r.info||r.map.size||(wo.push(r),n.delete(t))}new Set;var ko=n(2783);function Co(e){return void 0!==e.args?e.args:e.field?(0,Qr.NC)(e.field,e.variables):null}var Oo=function(e,t){var n=e.__typename,r=e.id,o=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==o?{_id:o}:void 0),void 0===r&&(r=o),void 0!==r))return n+":"+("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))},To=function(){},_o=function(e,t){return t.fieldName},No=function(e,t,n){return(0,n.mergeObjects)(e,t)},Ro=function(e,t){return t},Po=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,qr.pi)({dataIdFromObject:Oo},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var r=t&&n?(0,Qr.qw)(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,i={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var u=s(e,i);if(!Array.isArray(u)){o=u;break}s=Lo(u)}return o=o?String(o):void 0,i.keyObject?[o,i.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],o=r.queryType,i=r.mutationType,a=r.subscriptionType,s=(0,qr._T)(r,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),i&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),ro.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),o=t.keyFields,i=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?No:!1===t?Ro:e.merge}a(r,t.merge),r.keyFn=!1===o?To:Array.isArray(o)?Lo(o):"function"==typeof o?o:r.keyFn,i&&Object.keys(i).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),o=i[t];if("function"==typeof o)r.read=o;else{var s=o.keyArgs,u=o.read,c=o.merge;r.keyFn=!1===s?_o:Array.isArray(s)?Mo(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||_o)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,Yr.kG)(!r||r===e,1),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(oo);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!ro.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),o=r.fields,i=(0,qr._T)(r,["fields"]);Object.assign(n,i),Object.assign(n.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),l=0;l<s.length;++l){var d=s[l];if(d.has(i))return a.has(i)||a.add(i),!0;d.forEach(u),c&&l===s.length-1&&ao(e.selectionSet,n,r)&&(c=!1,!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,o=this.getFieldPolicy(n,r,!1),i=o&&o.keyFn;if(i&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Co(e);i;){var u=i(s,a);if(!Array.isArray(u)){t=u||r;break}i=Mo(u)}return void 0===t&&(t=e.field?(0,Qr.vf)(e.field,e.variables):(0,Qr.PT)(r,Co(e))),!1===t?r:r===io(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var o=this.getStoreFieldName(e),i=io(o),a=t.store.getFieldValue(n,o),s=this.getFieldPolicy(e.typename,i,!1),u=s&&s.read;if(u){var c=Io(this,n,e,t,t.store.getStorage((0,Qr.Yk)(n)?n.__ref:n,o));return ko.ab.withValue(this.cache,u,[a,c])}return a}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),o=r&&r.merge;return!o&&n&&(o=(r=this.getTypePolicy(n))&&r.merge),o},e.prototype.runMergeFunction=function(e,t,n,r,o){var i=n.field,a=n.typename,s=n.merge;return s===No?Ao(r.store.getFieldValue)(e,t):s===Ro?t:s(e,t,Io(this,void 0,{typename:a,fieldName:i.name.value,field:i,variables:r.variables},r,o||Object.create(null)))},e}();function Io(e,t,n,r,o){var i=e.getStoreFieldName(n),a=io(i),s=n.variables||r.variables,u=r.store,c=u.getFieldValue,l=u.toReference,d=u.canRead;return{args:Co(n),field:n.field||null,fieldName:a,storeFieldName:i,variables:s,isReference:Qr.Yk,toReference:l,storage:o,cache:e.cache,canRead:d,readField:function(n,o){var i="string"==typeof n?{fieldName:n,from:o}:(0,qr.pi)({},n);return void 0===i.from&&(i.from=t),void 0===i.variables&&(i.variables=s),e.readField(i,r)},mergeObjects:Ao(c)}}function Ao(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw new Yr.ej(2);if(t&&"object"==typeof t&&n&&"object"==typeof n){var r=e(t,"__typename"),o=e(n,"__typename");return!(r&&o&&r!==o)&&so(t)&&so(n)?(0,qr.pi)((0,qr.pi)({},t),n):n}return n}}function Mo(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(jo(t,e,!1)):n.fieldName}}function Lo(e){var t=new Wr.Gl(no.m);return function(n,r){var o;if(r.selectionSet&&r.fragmentMap){var i=t.lookupArray([r.selectionSet,r.fragmentMap]);o=i.aliasMap||(i.aliasMap=Do(r.selectionSet,r.fragmentMap))}var a=r.keyObject=jo(n,e,!0,o);return r.typename+":"+JSON.stringify(a)}}function Do(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if((0,Qr.My)(e)){if(e.alias){var o=e.alias.value,i=e.name.value;if(i!==o)(n.aliases||(n.aliases=Object.create(null)))[i]=o}if(e.selectionSet)(n.subsets||(n.subsets=Object.create(null)))[e.name.value]=Do(e.selectionSet,t)}else{var a=(0,Hr.hi)(e,t);a&&r.add(a.selectionSet)}}))})),n}function jo(e,t,n,r){var o,i=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof o){var a=r&&r.subsets,s=a&&a[o];i[o]=jo(e[o],t,n,s)}}else{var u=r&&r.aliases,c=u&&u[t]||t;ro.call(e,c)?i[o=t]=e[c]:((0,Yr.kG)(!n,3),o=void 0)}})),i}var Fo={dataIdFromObject:Oo,addTypename:!0,resultCaching:!0,typePolicies:{}},Zo=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=ko.QS,n.txCount=0,n.maybeBroadcastWatch=(0,Wr.re)((function(e,t){return n.broadcastWatch.call(n,e,!!t)}),{makeCacheKey:function(e){var t=e.optimistic?n.optimisticData:n.data;if(go(t)){var r=e.optimistic,o=e.rootId,i=e.variables;return t.makeCacheKey(e.query,e.callback,JSON.stringify({optimistic:r,rootId:o,variables:i}))}}}),n.watchDep=(0,Wr.dP)(),n.config=(0,qr.pi)((0,qr.pi)({},Fo),t),n.addTypename=!!n.config.addTypename,n.policies=new Po({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.data=new fo.Root({policies:n.policies,resultCaching:n.config.resultCaching}),n.optimisticData=n.data,n.storeWriter=new Eo(n,n.storeReader=new bo({cache:n,addTypename:n.addTypename})),n}return(0,qr.ZT)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:e.query,variables:e.variables,rootId:e.rootId,config:this.config,returnPartialData:n}).result||null}catch(e){if(e instanceof $r)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:e.query,result:e.result,dataId:e.dataId,variables:e.variables})}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(ro.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,ko._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,ko.li)(t),t.watchDep.dirty(e),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(){return this.optimisticData.gc()},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return(0,Qr.Yk)(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(ro.call(e,"id"))return!1;e=(0,qr.pi)((0,qr.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.performTransaction=function(e,t){var n=this,r=function(t){var r=n,o=r.data,i=r.optimisticData;++n.txCount,t&&(n.data=n.optimisticData=t);try{e(n)}finally{--n.txCount,n.data=o,n.optimisticData=i}},o=!1;"string"==typeof t?(this.optimisticData=this.optimisticData.addLayer(t,r),o=!0):null===t?r(this.data):r(),this.broadcastWatches(o)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,Kr.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){this.watchDep.dirty(e),this.watchDep(e);var n=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});e.optimistic&&t&&(n.fromOptimisticTransaction=!0),e.callback(n)},t}(Gr),Uo=n(9960),Bo=n(7865),zo=n(2394),Vo=n.n(zo);var qo=n(8420),Wo=function(e){function t(t){var n=e.call(this)||this;return t instanceof qo.SubscriptionClient?n.subscriptionClient=t:n.subscriptionClient=new qo.SubscriptionClient(t.uri,t.options,t.webSocketImpl),n}return(0,qr.ZT)(t,e),t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(Bo.i);"object"==typeof navigator&&navigator.userAgent&&navigator.userAgent.includes("jsdom"),"object"==typeof process&&!!process.versions&&process.versions.node;const Ho="object"==typeof window&&"object"==typeof document&&9===document.nodeType,Go=e.createContext(null);let $o;const Qo=(e,t,n)=>{const r=new Vr.u({uri:"https://ai.ocelotbot.com/graphql"}),o=(i=async()=>({headers:{"x-contextual-entity":e}}),new Bo.i((function(e,t){var n=(0,qr._T)(e,[]);return new(Vo())((function(r){var o;return Promise.resolve(n).then((function(t){return i(t,e.getContext())})).then(e.setContext).then((function(){o=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)})})).catch(r.error.bind(r)),function(){o&&o.unsubscribe()}}))})));var i;const a=_r.ApolloLink.from([o,r]),s=Ho?(0,_r.split)((({query:e})=>{const t=(0,Xr.p$)(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation}),($o||($o=new qo.SubscriptionClient("wss://ai.ocelotbot.com/graphql",{reconnect:!0,lazy:!0,connectionParams:()=>t.current()}),$o.onConnected((()=>{n(cn(!0))})),$o.onReconnecting((()=>{var e;n((e=!0,(t,n)=>{const{messages:{liveChat:r,liveChatReconnecting:o}}=n();r&&e!==o&&t({type:"TOGGLE_LIVE_CHAT_RECONNECTING",status:e})}))})),$o.onReconnected((()=>{n(cn(!0))})),$o.onDisconnected((()=>{n(cn(!1))}))),new Wo($o)),a):a,u=new Zo({possibleTypes:{LiveChatConversationSystemEventPayload:["ConversationSupersededPayload","ConversationQueueChanged","StartTypingOperatorPayload","StopTypingOperatorPayload"]}});return[new Uo.f({link:s,cache:u}),$o]},Ko=()=>{const t=Ze(),n=(0,e.useContext)(Go),r=Ve((e=>e.messages.liveChat)),o=(0,e.useRef)(r),i=(()=>{const t=Ve((e=>e.conversationState.conversation_id)),n=(0,e.useRef)((()=>({conversationId:t,clientVersion:"5.11.0",role:"Client"})));return(0,e.useEffect)((()=>{n.current=()=>({conversationId:t,clientVersion:"5.11.0",role:"Client"})}),[t]),n})(),a=(0,e.useRef)();let s,u;return a.current&&([s,u]=a.current),a.current&&o.current===r||(o.current=r,u&&u.close(),a.current=Qo(n,i,t),[s,u]=a.current),s},Yo=(0,e.createContext)(null),Xo=Yo.Provider,Jo=()=>(0,e.useContext)(Yo),ei=e.createContext(null),ti=(e={})=>{try{e=JSON.parse(void 0)}catch(e){}return(0,qe.getOptionsFromParams)(e)};var ni=n(2337),ri=n(7685),oi=n(9740),ii=n(1665);const ai=!1,si=e.createContext(null);var ui="unmounted",ci="exited",li="entering",di="entered",fi="exiting",pi=function(n){function r(e,t){var r;r=n.call(this,e,t)||this;var o,i=t&&!t.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=ci,r.appearStatus=li):o=di:o=e.unmountOnExit||e.mountOnEnter?ui:ci,r.state={status:o},r.nextCallback=null,r}(0,ii.Z)(r,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ui?{status:ci}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==li&&n!==di&&(t=li):n!==li&&n!==di||(t=fi)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===li?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===ci&&this.setState({status:ui})},o.performEnter=function(e){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[t.findDOMNode(this),o],a=i[0],s=i[1],u=this.getTimeouts(),c=o?u.appear:u.enter;!e&&!r||ai?this.safeSetState({status:di},(function(){n.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:li},(function(){n.props.onEntering(a,s),n.onTransitionEnd(c,(function(){n.safeSetState({status:di},(function(){n.props.onEntered(a,s)}))}))})))},o.performExit=function(){var e=this,n=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:t.findDOMNode(this);n&&!ai?(this.props.onExit(o),this.safeSetState({status:fi},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:ci},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:ci},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:t.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var t=this.state.status;if(t===ui)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,se.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(si.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},r}(e.Component);function hi(){}pi.contextType=si,pi.propTypes={},pi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hi,onEntering:hi,onEntered:hi,onExit:hi,onExiting:hi,onExited:hi},pi.UNMOUNTED=ui,pi.EXITED=ci,pi.ENTERING=li,pi.ENTERED=di,pi.EXITING=fi;const mi=pi;var vi=n(9663);function gi(){return(0,dr.Z)()||vi.Z}var yi=function(e){return e.scrollTop};function bi(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var Ei=n(5974);function wi(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var xi={entering:{opacity:1,transform:wi(1)},entered:{opacity:1,transform:"none"}},Si=e.forwardRef((function(t,n){var r=t.children,o=t.disableStrictModeCompat,i=void 0!==o&&o,a=t.in,s=t.onEnter,u=t.onEntered,c=t.onEntering,l=t.onExit,d=t.onExited,f=t.onExiting,p=t.style,h=t.timeout,m=void 0===h?"auto":h,v=t.TransitionComponent,g=void 0===v?mi:v,y=(0,oi.Z)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=e.useRef(),E=e.useRef(),w=gi(),x=w.unstable_strictMode&&!i,S=e.useRef(null),k=(0,Ei.Z)(r.ref,n),C=(0,Ei.Z)(x?S:void 0,k),O=function(e){return function(t,n){if(e){var r=x?[S.current,t]:[t,n],o=(0,Nr.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},T=O(c),_=O((function(e,t){yi(e);var n,r=bi({style:p,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=w.transitions.getAutoHeightDuration(e.clientHeight),E.current=n):n=o,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:i}),w.transitions.create("transform",{duration:.666*n,delay:i})].join(","),s&&s(e,t)})),N=O(u),R=O(f),P=O((function(e){var t,n=bi({style:p,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=w.transitions.getAutoHeightDuration(e.clientHeight),E.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:o}),w.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=wi(.75),l&&l(e)})),I=O(d);return e.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),e.createElement(g,(0,ae.Z)({appear:!0,in:a,nodeRef:x?S:void 0,onEnter:_,onEntered:N,onEntering:T,onExit:P,onExited:I,onExiting:R,addEndListener:function(e,t){var n=x?e:t;"auto"===m&&(b.current=setTimeout(n,E.current||0))},timeout:"auto"===m?null:m},y),(function(t,n){return e.cloneElement(r,(0,ae.Z)({style:(0,ae.Z)({opacity:0,transform:wi(.75),visibility:"exited"!==t||a?void 0:"hidden"},xi[t],p,r.props.style),ref:C},n))}))}));Si.muiSupportAuto=!0;const ki=Si;var Ci=n(6277),Oi=n(5459),Ti=n(6239);const _i=(0,Ti.Z)(e.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var Ni=e.forwardRef((function(t,n){var r=t.alt,o=t.children,i=t.classes,a=t.className,s=t.component,u=void 0===s?"div":s,c=t.imgProps,l=t.sizes,d=t.src,f=t.srcSet,p=t.variant,h=void 0===p?"circle":p,m=(0,oi.Z)(t,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),v=null,g=function(t){var n=t.src,r=t.srcSet,o=e.useState(!1),i=o[0],a=o[1];return e.useEffect((function(){if(n||r){a(!1);var e=!0,t=new Image;return t.src=n,t.srcSet=r,t.onload=function(){e&&a("loaded")},t.onerror=function(){e&&a("error")},function(){e=!1}}}),[n,r]),i}({src:d,srcSet:f}),y=d||f,b=y&&"error"!==g;return v=b?e.createElement("img",(0,ae.Z)({alt:r,src:d,srcSet:f,sizes:l,className:i.img},c)):null!=o?o:y&&r?r[0]:e.createElement(_i,{className:i.fallback}),e.createElement(u,(0,ae.Z)({className:(0,Ci.Z)(i.root,i.system,i[h],a,!b&&i.colorDefault),ref:n},m),v)}));const Ri=(0,Oi.Z)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(Ni);var Pi=n(7580),Ii={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Ai=e.forwardRef((function(t,n){var r=t.align,o=void 0===r?"inherit":r,i=t.classes,a=t.className,s=t.color,u=void 0===s?"initial":s,c=t.component,l=t.display,d=void 0===l?"initial":l,f=t.gutterBottom,p=void 0!==f&&f,h=t.noWrap,m=void 0!==h&&h,v=t.paragraph,g=void 0!==v&&v,y=t.variant,b=void 0===y?"body1":y,E=t.variantMapping,w=void 0===E?Ii:E,x=(0,oi.Z)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=c||(g?"p":w[b]||Ii[b])||"span";return e.createElement(S,(0,ae.Z)({className:(0,Ci.Z)(i.root,a,"inherit"!==b&&i[b],"initial"!==u&&i["color".concat((0,Pi.Z)(u))],m&&i.noWrap,p&&i.gutterBottom,g&&i.paragraph,"inherit"!==o&&i["align".concat((0,Pi.Z)(o))],"initial"!==d&&i["display".concat((0,Pi.Z)(d))]),ref:n},x))}));const Mi=(0,Oi.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Ai);var Li=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.component,a=void 0===i?"div":i,s=t.square,u=void 0!==s&&s,c=t.elevation,l=void 0===c?1:c,d=t.variant,f=void 0===d?"elevation":d,p=(0,oi.Z)(t,["classes","className","component","square","elevation","variant"]);return e.createElement(a,(0,ae.Z)({className:(0,Ci.Z)(r.root,o,"outlined"===f?r.outlined:r["elevation".concat(l)],!u&&r.rounded),ref:n},p))}));const Di=(0,Oi.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,ae.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Li);var ji=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.color,a=void 0===i?"primary":i,s=t.position,u=void 0===s?"fixed":s,c=(0,oi.Z)(t,["classes","className","color","position"]);return e.createElement(Di,(0,ae.Z)({square:!0,component:"header",elevation:4,className:(0,Ci.Z)(r.root,r["position".concat((0,Pi.Z)(u))],r["color".concat((0,Pi.Z)(a))],o,"fixed"===u&&"mui-fixed"),ref:n},c))}));const Fi=(0,Oi.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(ji);var Zi=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.component,a=void 0===i?"div":i,s=t.disableGutters,u=void 0!==s&&s,c=t.variant,l=void 0===c?"regular":c,d=(0,oi.Z)(t,["classes","className","component","disableGutters","variant"]);return e.createElement(a,(0,ae.Z)({className:(0,Ci.Z)(r.root,r[l],o,!u&&r.gutters),ref:n},d))}));const Ui=(0,Oi.Z)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,C.Z)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(Zi);var Bi=n(1128),zi=n(4718),Vi=n(4736),qi=n(8777);function Wi(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Hi(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Gi(t,n,r){var o=Wi(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var u=a in n,c=a in o,l=n[a],d=(0,e.isValidElement)(l)&&!l.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,e.isValidElement)(l)&&(i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:l.props.in,exit:Hi(s,"exit",t),enter:Hi(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Hi(s,"exit",t),enter:Hi(s,"enter",t)})}})),i}var $i=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Qi=function(t){function n(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind((0,Ye.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,ii.Z)(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,Wi(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:Hi(t,"appear",r),enter:Hi(t,"enter",r),exit:Hi(t,"exit",r)})}))):Gi(t,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=Wi(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,ae.Z)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=(0,se.Z)(t,["component","childFactory"]),i=this.state.contextValue,a=$i(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(si.Provider,{value:i},a):e.createElement(si.Provider,{value:i},e.createElement(n,o,a))},n}(e.Component);Qi.propTypes={},Qi.defaultProps={component:"div",childFactory:function(e){return e}};const Ki=Qi;var Yi="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const Xi=function(t){var n=t.classes,r=t.pulsate,o=void 0!==r&&r,i=t.rippleX,a=t.rippleY,s=t.rippleSize,u=t.in,c=t.onExited,l=void 0===c?function(){}:c,d=t.timeout,f=e.useState(!1),p=f[0],h=f[1],m=(0,Ci.Z)(n.ripple,n.rippleVisible,o&&n.ripplePulsate),v={width:s,height:s,top:-s/2+a,left:-s/2+i},g=(0,Ci.Z)(n.child,p&&n.childLeaving,o&&n.childPulsate),y=(0,zi.Z)(l);return Yi((function(){if(!u){h(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,u,d]),e.createElement("span",{className:m,style:v},e.createElement("span",{className:g}))};var Ji=e.forwardRef((function(t,n){var r=t.center,o=void 0!==r&&r,i=t.classes,a=t.className,s=(0,oi.Z)(t,["center","classes","className"]),u=e.useState([]),c=u[0],l=u[1],d=e.useRef(0),f=e.useRef(null);e.useEffect((function(){f.current&&(f.current(),f.current=null)}),[c]);var p=e.useRef(!1),h=e.useRef(null),m=e.useRef(null),v=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=e.useCallback((function(t){var n=t.pulsate,r=t.rippleX,o=t.rippleY,a=t.rippleSize,s=t.cb;l((function(t){return[].concat((0,qi.Z)(t),[e.createElement(Xi,{key:d.current,classes:i,timeout:550,pulsate:n,rippleX:r,rippleY:o,rippleSize:a})])})),d.current+=1,f.current=s}),[i]),y=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,s=void 0===a?o||t.pulsate:a,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var l,d,f,y=c?null:v.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(b.width/2),d=Math.round(b.height/2);else{var E=e.touches?e.touches[0]:e,w=E.clientX,x=E.clientY;l=Math.round(w-b.left),d=Math.round(x-b.top)}if(s)(f=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(f+=1);else{var S=2*Math.max(Math.abs((y?y.clientWidth:0)-l),l)+2,k=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(S,2)+Math.pow(k,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})},h.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})}}),[o,g]),b=e.useCallback((function(){y({},{pulsate:!0})}),[y]),E=e.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(h.current=setTimeout((function(){E(e,t)})));m.current=null,l((function(e){return e.length>0?e.slice(1):e})),f.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:b,start:y,stop:E}}),[b,y,E]),e.createElement("span",(0,ae.Z)({className:(0,Ci.Z)(i.root,a),ref:v},s),e.createElement(Ki,{component:null,exit:!0},c))}));const ea=(0,Oi.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(e.memo(Ji));var ta=e.forwardRef((function(n,r){var o=n.action,i=n.buttonRef,a=n.centerRipple,s=void 0!==a&&a,u=n.children,c=n.classes,l=n.className,d=n.component,f=void 0===d?"button":d,p=n.disabled,h=void 0!==p&&p,m=n.disableRipple,v=void 0!==m&&m,g=n.disableTouchRipple,y=void 0!==g&&g,b=n.focusRipple,E=void 0!==b&&b,w=n.focusVisibleClassName,x=n.onBlur,S=n.onClick,k=n.onFocus,C=n.onFocusVisible,O=n.onKeyDown,T=n.onKeyUp,_=n.onMouseDown,N=n.onMouseLeave,R=n.onMouseUp,P=n.onTouchEnd,I=n.onTouchMove,A=n.onTouchStart,M=n.onDragLeave,L=n.tabIndex,D=void 0===L?0:L,j=n.TouchRippleProps,F=n.type,Z=void 0===F?"button":F,U=(0,oi.Z)(n,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),B=e.useRef(null);var z=e.useRef(null),V=e.useState(!1),q=V[0],W=V[1];h&&q&&W(!1);var H=(0,Vi.Z)(),G=H.isFocusVisible,$=H.onBlurVisible,Q=H.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,zi.Z)((function(r){return t&&t(r),!n&&z.current&&z.current[e](r),!0}))}e.useImperativeHandle(o,(function(){return{focusVisible:function(){W(!0),B.current.focus()}}}),[]),e.useEffect((function(){q&&E&&!v&&z.current.pulsate()}),[v,E,q]);var Y=K("start",_),X=K("stop",M),J=K("stop",R),ee=K("stop",(function(e){q&&e.preventDefault(),N&&N(e)})),te=K("start",A),ne=K("stop",P),re=K("stop",I),oe=K("stop",(function(e){q&&($(e),W(!1)),x&&x(e)}),!1),ie=(0,zi.Z)((function(e){B.current||(B.current=e.currentTarget),G(e)&&(W(!0),C&&C(e)),k&&k(e)})),se=function(){var e=t.findDOMNode(B.current);return f&&"button"!==f&&!("A"===e.tagName&&e.href)},ue=e.useRef(!1),ce=(0,zi.Z)((function(e){E&&!ue.current&&q&&z.current&&" "===e.key&&(ue.current=!0,e.persist(),z.current.stop(e,(function(){z.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!h&&(e.preventDefault(),S&&S(e))})),le=(0,zi.Z)((function(e){E&&" "===e.key&&z.current&&q&&!e.defaultPrevented&&(ue.current=!1,e.persist(),z.current.stop(e,(function(){z.current.pulsate(e)}))),T&&T(e),S&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&S(e)})),de=f;"button"===de&&U.href&&(de="a");var fe={};"button"===de?(fe.type=Z,fe.disabled=h):("a"===de&&U.href||(fe.role="button"),fe["aria-disabled"]=h);var pe=(0,Ei.Z)(i,r),he=(0,Ei.Z)(Q,B),me=(0,Ei.Z)(pe,he),ve=e.useState(!1),ge=ve[0],ye=ve[1];e.useEffect((function(){ye(!0)}),[]);var be=ge&&!v&&!h;return e.createElement(de,(0,ae.Z)({className:(0,Ci.Z)(c.root,l,q&&[c.focusVisible,w],h&&c.disabled),onBlur:oe,onClick:S,onFocus:ie,onKeyDown:ce,onKeyUp:le,onMouseDown:Y,onMouseLeave:ee,onMouseUp:J,onDragLeave:X,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:h?-1:D},fe,U),u,be?e.createElement(ea,(0,ae.Z)({ref:z,center:s},j)):null)}));const na=(0,Oi.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ta);var ra=e.forwardRef((function(t,n){var r=t.edge,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.className,u=t.color,c=void 0===u?"default":u,l=t.disabled,d=void 0!==l&&l,f=t.disableFocusRipple,p=void 0!==f&&f,h=t.size,m=void 0===h?"medium":h,v=(0,oi.Z)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return e.createElement(na,(0,ae.Z)({className:(0,Ci.Z)(a.root,s,"default"!==c&&a["color".concat((0,Pi.Z)(c))],d&&a.disabled,"small"===m&&a["size".concat((0,Pi.Z)(m))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!p,disabled:d,ref:n},v),e.createElement("span",{className:a.label},i))}));const oa=(0,Oi.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Bi.U1)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Bi.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Bi.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(ra);var ia=n(3996);const aa=e.createContext({});var sa="undefined"==typeof window?e.useEffect:e.useLayoutEffect,ua=e.forwardRef((function(n,r){var o=n.alignItems,i=void 0===o?"center":o,a=n.autoFocus,s=void 0!==a&&a,u=n.button,c=void 0!==u&&u,l=n.children,d=n.classes,f=n.className,p=n.component,h=n.ContainerComponent,m=void 0===h?"li":h,v=n.ContainerProps,g=(v=void 0===v?{}:v).className,y=(0,oi.Z)(v,["className"]),b=n.dense,E=void 0!==b&&b,w=n.disabled,x=void 0!==w&&w,S=n.disableGutters,k=void 0!==S&&S,C=n.divider,O=void 0!==C&&C,T=n.focusVisibleClassName,_=n.selected,N=void 0!==_&&_,R=(0,oi.Z)(n,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=e.useContext(aa),I={dense:E||P.dense||!1,alignItems:i},A=e.useRef(null);sa((function(){s&&A.current&&A.current.focus()}),[s]);var M=e.Children.toArray(l),L=M.length&&(0,ia.Z)(M[M.length-1],["ListItemSecondaryAction"]),D=e.useCallback((function(e){A.current=t.findDOMNode(e)}),[]),j=(0,Ei.Z)(D,r),F=(0,ae.Z)({className:(0,Ci.Z)(d.root,f,I.dense&&d.dense,!k&&d.gutters,O&&d.divider,x&&d.disabled,c&&d.button,"center"!==i&&d.alignItemsFlexStart,L&&d.secondaryAction,N&&d.selected),disabled:x},R),Z=p||"li";return c&&(F.component=p||"div",F.focusVisibleClassName=(0,Ci.Z)(d.focusVisible,T),Z=na),L?(Z=F.component||p?Z:"div","li"===m&&("li"===Z?Z="div":"li"===F.component&&(F.component="div")),e.createElement(aa.Provider,{value:I},e.createElement(m,(0,ae.Z)({className:(0,Ci.Z)(d.container,g),ref:j},y),e.createElement(Z,F,M),M.pop()))):e.createElement(aa.Provider,{value:I},e.createElement(Z,(0,ae.Z)({ref:j},F),M))}));const ca=(0,Oi.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(ua);var la=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.disableTypography,s=void 0!==a&&a,u=t.inset,c=void 0!==u&&u,l=t.primary,d=t.primaryTypographyProps,f=t.secondary,p=t.secondaryTypographyProps,h=(0,oi.Z)(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=e.useContext(aa).dense,v=null!=l?l:r;null==v||v.type===Mi||s||(v=e.createElement(Mi,(0,ae.Z)({variant:m?"body2":"body1",className:o.primary,component:"span",display:"block"},d),v));var g=f;return null==g||g.type===Mi||s||(g=e.createElement(Mi,(0,ae.Z)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},p),g)),e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(o.root,i,m&&o.dense,c&&o.inset,v&&g&&o.multiline),ref:n},h),v,g)}));const da=(0,Oi.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(la);var fa=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=(0,oi.Z)(t,["classes","className"]),a=e.useContext(aa);return e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(r.root,o,"flex-start"===a.alignItems&&r.alignItemsFlexStart),ref:n},i))}));const pa=(0,Oi.Z)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(fa);function ha(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 ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(n),!0).forEach((function(t){(0,C.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function va(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){function o(o){var i=o.forwardedRef,a=(0,oi.Z)(o,["forwardedRef"]),s=Fr(t,a),u=(0,Nr.Z)(s,3),c=u[0],l=u[1],d=u[2],f=ma(ma({},a),{},{t:c,i18n:l,tReady:d});return n.withRef&&i?f.ref=i:!n.withRef&&i&&(f.forwardedRef=i),e.createElement(r,f)}o.displayName="withI18nextTranslation(".concat(Lr(r),")"),o.WrappedComponent=r;return n.withRef?e.forwardRef((function(t,n){return e.createElement(o,Object.assign({},t,{forwardedRef:n}))})):o}}var ya=n(686),ba=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.color,s=void 0===a?"default":a,u=t.component,c=void 0===u?"button":u,l=t.disabled,d=void 0!==l&&l,f=t.disableFocusRipple,p=void 0!==f&&f,h=t.focusVisibleClassName,m=t.size,v=void 0===m?"large":m,g=t.variant,y=void 0===g?"round":g,b=(0,oi.Z)(t,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return e.createElement(na,(0,ae.Z)({className:(0,Ci.Z)(o.root,i,"round"!==y&&o.extended,"large"!==v&&o["size".concat((0,Pi.Z)(v))],d&&o.disabled,{primary:o.primary,secondary:o.secondary,inherit:o.colorInherit}[s]),component:c,disabled:d,focusRipple:!p,focusVisibleClassName:(0,Ci.Z)(o.focusVisible,h),ref:n},b),e.createElement("span",{className:o.label},r))}));const Ea=(0,Oi.Z)((function(e){return{root:(0,ae.Z)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(ba);var wa=n(9265),xa={entering:{transform:"none"},entered:{transform:"none"}},Sa={enter:wa.x9.enteringScreen,exit:wa.x9.leavingScreen};const ka=e.forwardRef((function(t,n){var r=t.children,o=t.disableStrictModeCompat,i=void 0!==o&&o,a=t.in,s=t.onEnter,u=t.onEntered,c=t.onEntering,l=t.onExit,d=t.onExited,f=t.onExiting,p=t.style,h=t.timeout,m=void 0===h?Sa:h,v=t.TransitionComponent,g=void 0===v?mi:v,y=(0,oi.Z)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=gi(),E=b.unstable_strictMode&&!i,w=e.useRef(null),x=(0,Ei.Z)(r.ref,n),S=(0,Ei.Z)(E?w:void 0,x),k=function(e){return function(t,n){if(e){var r=E?[w.current,t]:[t,n],o=(0,Nr.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},C=k(c),O=k((function(e,t){yi(e);var n=bi({style:p,timeout:m},{mode:"enter"});e.style.webkitTransition=b.transitions.create("transform",n),e.style.transition=b.transitions.create("transform",n),s&&s(e,t)})),T=k(u),_=k(f),N=k((function(e){var t=bi({style:p,timeout:m},{mode:"exit"});e.style.webkitTransition=b.transitions.create("transform",t),e.style.transition=b.transitions.create("transform",t),l&&l(e)})),R=k(d);return e.createElement(g,(0,ae.Z)({appear:!0,in:a,nodeRef:E?w:void 0,onEnter:O,onEntered:T,onEntering:C,onExit:N,onExited:R,onExiting:_,timeout:m},y),(function(t,n){return e.cloneElement(r,(0,ae.Z)({style:(0,ae.Z)({transform:"scale(0)",visibility:"exited"!==t||a?void 0:"hidden"},xa[t],p,r.props.style),ref:S},n))}))}));var Ca=e.forwardRef((function(t,n){var r=t.anchorOrigin,o=void 0===r?{vertical:"top",horizontal:"right"}:r,i=t.badgeContent,a=t.children,s=t.classes,u=t.className,c=t.color,l=void 0===c?"default":c,d=t.component,f=void 0===d?"span":d,p=t.invisible,h=t.max,m=void 0===h?99:h,v=t.overlap,g=void 0===v?"rectangle":v,y=t.showZero,b=void 0!==y&&y,E=t.variant,w=void 0===E?"standard":E,x=(0,oi.Z)(t,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),S=p;null==p&&(0===i&&!b||null==i&&"dot"!==w)&&(S=!0);var k="";return"dot"!==w&&(k=i>m?"".concat(m,"+"):i),e.createElement(f,(0,ae.Z)({className:(0,Ci.Z)(s.root,u),ref:n},x),a,e.createElement("span",{className:(0,Ci.Z)(s.badge,s["".concat(o.horizontal).concat((0,Pi.Z)(o.vertical),"}")],s["anchorOrigin".concat((0,Pi.Z)(o.vertical)).concat((0,Pi.Z)(o.horizontal)).concat((0,Pi.Z)(g))],"default"!==l&&s["color".concat((0,Pi.Z)(l))],S&&s.invisible,"dot"===w&&s.dot)},k))}));const Oa=(0,Oi.Z)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(Ca);function Ta({chatbotUi:t,children:n,dispatch:r}){return e.createElement(e.Fragment,null,n(((e,t)=>n=>()=>{const r=document.body.children;for(let t=0;t<r.length;t+=1)if(!r[t].contains(n))if(e.open){const e=r[t].getAttribute("fatv-ai-aria-hidden");e?r[t].setAttribute("aria-hidden",e):r[t].removeAttribute("aria-hidden")}else{const e=r[t].getAttribute("aria-hidden");r[t].setAttribute("aria-hidden","true"),e&&r[t].setAttribute("fatv-ai-aria-hidden",e)}t(an(!e.open))})(t,r)))}Ta.propTypes={chatbotUi:X().object.isRequired,children:X().func.isRequired,dispatch:X().func.isRequired};const _a=M(Me((e=>({chatbotUi:e.chatbotUi}))))(Ta),Na=(0,Ti.Z)(e.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"}),"CloudOff");var Ra=(0,Zr.Z)((function(){return{wrapper:{},icon:function(e){return{animation:e.reconnecting?"$pulse 2s infinite":void 0}},"@keyframes pulse":{"0%":{transform:"scale(0.1)",opacity:0},"50%":{opacity:1},"100%":{transform:"scale(1.2)",opacity:1}}}}));const Pa=function(t){var n=t.iconClassName,r=Ve((function(e){return e.messages.liveChatReconnecting})),o=Ra({reconnecting:r});return e.createElement("div",{className:o.wrapper},e.createElement(Na,{className:"".concat(n," ").concat(o.icon)}))};function Ia(){return(Ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Aa=(e,t)=>e?e.launch_button_text?e.launch_button_text:t("default-launch-button",{bot:e.name}):"",Ma=(0,Zr.Z)((e=>({avatar:{height:"24px",width:"24px"},button:{height:"auto",margin:e.spacing(1),"&:focus-visible":{border:`1px solid ${e.palette.primary.contrastText}`}},buttonCollapsed:{padding:0},buttonContent:{alignItems:"center",display:"flex",padding:e.spacing(1.5,0)},text:{overflow:"hidden"},textCollapsed:{display:"none"},textExpanded:{margin:e.spacing(0,1),maxWidth:({config:e,t})=>13*Aa(e,t).length},zoomContainer:{display:"inline-block"},unread:{top:e.spacing(1.5),right:e.spacing(1.5)},disconnectedIcon:{fontSize:"14px"}})));function La(t){const{config:n,root:r,showAvatar:o,showText:i,t:a,unread:s,disconnected:u,autoFocus:c}=t,l=Aa(n,a),d=Ma(t),f=i?l:`Click to open ${n.name}, an interactive chatbot here to answer your questions.`,p=(0,e.useRef)(null);return(0,e.useEffect)((()=>{c&&p.current&&setTimeout((()=>p.current.focus()),500)}),[c]),e.createElement(_a,null,(t=>e.createElement(ka,{in:!0,timeout:750},e.createElement("div",{className:d.zoomContainer},e.createElement(Oa,{classes:{badge:d.unread},color:"primary",badgeContent:u?e.createElement(Pa,{iconClassName:d.disconnectedIcon}):s},e.createElement(Ea,{"aria-label":f,className:`${d.button} ${i?"":d.buttonCollapsed}`,color:"secondary",onClick:t(r),role:"button",tabIndex:0,variant:"extended",ref:p,id:"launchChatbot"},e.createElement("div",{className:d.buttonContent},o?e.createElement(Ri,{alt:n.name,"aria-hidden":"true",classes:{root:d.avatar},src:n.avatar}):e.createElement(ya.Z,null),e.createElement(Mi,{variant:"button",color:"inherit",role:"heading","aria-level":"1",className:`${d.text} ${i?d.textExpanded:d.textCollapsed}`},l))))))))}La.propTypes={config:X().object.isRequired,root:X().any.isRequired,showAvatar:X().bool,showText:X().bool,t:X().func.isRequired,unread:X().number.isRequired,disconnected:X().bool.isRequired,autoFocus:X().bool},La.defaultProps={showAvatar:!1,showText:!0,autoFocus:!1};const Da=va("common")((function(t){return e.createElement(ei.Consumer,null,(n=>e.createElement(La,Ia({config:n},t))))}));function ja({classes:t,className:n,onClose:r,root:o,toggle:i,autoFocus:a}){const s=(0,e.useContext)(ei),u=(0,e.useRef)(null);return(0,e.useEffect)((()=>{a&&u.current&&setTimeout((()=>u.current.focus()),500)}),[a]),e.createElement(ki,{in:!0,timeout:1200},e.createElement("div",null,e.createElement("span",{role:"button",tabIndex:0,onClick:i(o),onKeyUp:e=>{"Space"!==e.code&&"Enter"!==e.code||(i(o)(),e.preventDefault())},onKeyDown:e=>{"Space"===e.code&&e.preventDefault()},className:`${t.speechBubble} ${n}`,ref:u},e.createElement("div",{className:t.speechBubbleInner},e.createElement(Fi,{position:"relative",className:t.container},e.createElement(Ui,{className:t.toolbar},e.createElement(Mi,{className:t.calloutHeading,variant:"h6",component:"div",color:"inherit",role:"heading","aria-level":"1"},s.callout_heading),e.createElement(oa,{color:"inherit",onClick:r,"aria-label":"Collapse the chatbot"},e.createElement(ri.Z,null)))),e.createElement(ca,{classes:{root:t.listRoot},component:"div"},e.createElement(pa,null,e.createElement(Ri,{src:s.avatar,alt:s.name,"aria-hidden":"true"})),e.createElement(da,{classes:{root:t.listText},primary:s.callout_body}))))))}function Fa({classes:t,onClose:n,options:r,root:o,showHelpChat:i,mobile:a,unread:s,disconnected:u,autoFocus:c}){return e.createElement(_a,null,(l=>e.createElement(e.Fragment,null,i&&r.launcherStyles.right&&e.createElement(ja,{classes:t,className:t.speechBubbleRight,onClose:n,root:o,toggle:l,autoFocus:c}),e.createElement(Da,{root:o,showText:!a&&!i,unread:s,disconnected:u}),i&&r.launcherStyles.left&&e.createElement(ja,{classes:t,className:t.speechBubbleLeft,onClose:n,root:o,toggle:l}))))}ja.propTypes={classes:X().object.isRequired,className:X().string.isRequired,onClose:X().func.isRequired,root:X().any.isRequired,toggle:X().func.isRequired,autoFocus:X().bool.isRequired},Fa.propTypes={classes:X().object.isRequired,mobile:X().bool,onClose:X().func.isRequired,options:X().object.isRequired,root:X().any.isRequired,showHelpChat:X().bool.isRequired,unread:X().number.isRequired,disconnected:X().bool.isRequired,autoFocus:X().bool},Fa.defaultProps={mobile:!1,autoFocus:!1};const Za=(0,ni.Z)((e=>({listRoot:{"align-items":"flex-start",margin:0,paddingTop:e.spacing(2.5),paddingBottom:e.spacing(2.5)},listText:{margin:0,color:e.palette.text.primary},calloutHeading:{flex:1,lineHeight:"40px",padding:e.spacing(0,1)},container:{borderRadius:e.spacing(2,2,0,0)},toolbar:{padding:e.spacing(0,1.5)},labelGrow:{transitionDelay:"1s",transitionDuration:"350ms",transitionProperty:"marginRight",transitionTimingFunction:"cubic-bezier(1, 0.07, 0.58, 1)"},launcher:{position:"fixed",zIndex:1299,maxWidth:"75%"},leftIcon:{marginRight:e.spacing(1)},speechBubble:{backgroundColor:"#fff",borderRadius:e.spacing(2),boxShadow:"0px 0px 20px 0px rgba(0,0,0,0.3)",display:"inline-block",maxWidth:320,cursor:"pointer",position:"relative"},speechBubbleLeft:{marginLeft:e.spacing(2),"&::after":{background:"radial-gradient(circle at bottom right, transparent 58%, #fff 60%)",bottom:e.spacing(3),content:'""',height:e.spacing(3),position:"absolute",left:-22,transform:"rotate(180deg)",width:e.spacing(4)}},speechBubbleRight:{marginRight:e.spacing(1.5),"&::after":{background:"radial-gradient(circle at top right, transparent 58%, #fff 60%)",bottom:e.spacing(3),content:'""',height:e.spacing(3),position:"absolute",right:-24,width:e.spacing(4)}}})))(Fa);class Ua extends e.Component{constructor(e){super(e),this.initialize=()=>{const{launcherRef:e}=this.props;e.current?(this.handleScroll(),window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleScroll)):setTimeout(this.initialize,20)},this.clamp=(e,t,n)=>Math.min(Math.max(e,t),n),this.handleScroll=()=>{const{align:e,launcherRef:t,absMargin:n}=this.props;if(!t.current)return;const r=this.getDocumentHeight(),o=this.getViewportHeightInPx(),i=2*o,a=this.getScrollY(),s=this.getPxIntFromMeasure(n),u=this.getRectangle(t.current);let c;if("top"===e&&(c=o-u.height-s,a+2*s+u.height<o&&(c=a+s)),"bottom"===e){const e=this.clamp(a/(r-o),0,1),t=r>i?a+i-u.height-s-r:Math.floor(e*o)-u.height-s;c=this.clamp(t,s,o-u.height-s)}this.targetPos=Math.floor(c),this.ticking||window.requestAnimationFrame(this.adjustRefPosition)},this.adjustRefPosition=()=>{this.ticking=!0;const{launcherRef:e,absMargin:t,align:n}=this.props;if(this.initializing&&e.current)return this.currentPos=this.getPxIntFromMeasure(t),"top"===n&&(e.current.style.bottom=`${this.getPxIntFromMeasure(t)}px`,e.current.style.top="auto"),this.initializing=!1,void(this.ticking=!1);if(this.targetPos!==this.currentPos&&e.current){const t=25,n=10,r=this.currentPos-this.targetPos,o=Math.min(t,Math.ceil(Math.abs(r/n))),i=r>0?this.currentPos-o:this.currentPos+o;e.current.style.bottom=`${i}px`,this.currentPos=i,window.requestAnimationFrame(this.adjustRefPosition)}else this.ticking=!1},this.getDocumentHeight=()=>Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),this.getScrollY=()=>window.pageYOffset,this.getViewportHeightInPx=()=>Math.max(document.documentElement.clientHeight,window.innerHeight||0),this.getPxIntFromMeasure=e=>{const t=e.replace(/[0-9-]/g,""),n=this.getStrippedInt(e);if("px"===t)return n;if("%"===t)return Math.round(this.getViewportHeightInPx()*(n/100));if("em"===t||"rem"===t){const e=window.getComputedStyle(document.documentElement)["font-size"];return n*this.getStrippedInt(e)}return n},this.getStrippedInt=e=>Number.parseInt(e.replace(/[^0-9-]/g,""),10),this.getRectangle=e=>{const t=Math.max(e.offsetWidth,e.clientWidth,e.scrollWidth),n=Math.max(e.offsetHeight,e.clientHeight,e.scrollHeight);let r=0,o=0;do{r+=e.offsetTop||0,o+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:r,left:o,width:t,height:n}},this.props=e,this.ticking=!1,this.currentPos=null,this.targetPos=null,this.initializing=!0}componentDidMount(){this.initialize()}componentWillUnmount(){const{align:e,launcherRef:t,absMargin:n}=this.props;window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleScroll),"top"===e&&t.current&&(t.current.style.top=n)}render(){return null}}Ua.propTypes={absMargin:X().string.isRequired,align:X().string.isRequired,launcherRef:X().object},Ua.defaultProps={launcherRef:null};const Ba=Ua;function za(){return(za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Va=e=>()=>{const t={transform:"translateZ(0)"},{top:n,...r}=e.launcherStyles;return n?{...t,...r,bottom:n}:{...t,...e.launcherStyles}},qa=e.forwardRef(((t,n)=>{const{adaptLauncherStylesForTopScroll:r,classes:o,updateCalloutBubbleStatus:i,options:a,root:s,userPrefs:u,browser:c,messages:l,disconnected:d,autoFocus:f}=t;return e.createElement("div",{className:o.launcher,ref:n,style:a.topScroll?r():a.launcherStyles},((t,n,r,o,i,a,s,u)=>{switch(r.buttonStyle){case"calloutBubble":return e.createElement(Za,{onClose:e=>{n(!1),e.stopPropagation()},options:r,root:t,showHelpChat:o.calloutBubbleOpen,mobile:i.lessThan.medium,unread:a.unread,disconnected:s,autoFocus:u});case"simple":default:return e.createElement(Da,{showText:!i.lessThan.medium,root:t,showAvatar:1===r.includeAvatar,unread:a.unread,disconnected:s,autoFocus:u})}})(s,i,a,u,c,l,d,f))}));qa.displayName="ChatbotLauncher",qa.propTypes={adaptLauncherStylesForTopScroll:X().func.isRequired,browser:X().object.isRequired,classes:X().object.isRequired,messages:X().object.isRequired,options:X().object,updateCalloutBubbleStatus:X().func.isRequired,root:X().any.isRequired,userPrefs:X().object.isRequired,disconnected:X().bool.isRequired,autoFocus:X().bool},qa.defaultProps={options:ti({}),autoFocus:!1};const Wa={updateCalloutBubbleStatus:e=>({type:"UPDATE_CALLOUT_BUBBLE_STATUS",open:e})},Ha=M((t=>{const n=e.createRef();function r(r){const{options:o}=r,i=o.launcherStyles.top?"top":"bottom";return e.createElement(e.Fragment,null,e.createElement(t,za({ref:n,adaptLauncherStylesForTopScroll:Va(o)},r)),1===o.topScroll&&e.createElement(Ba,{launcherRef:n,absMargin:o.launcherStyles[i],align:i}))}return r.displayName=`Roaming(${t.displayName})`,r.propTypes={options:X().object.isRequired},r}),(0,ni.Z)((()=>({launcher:{alignItems:"flex-end",display:"flex",position:"fixed",zIndex:1e6,maxWidth:"85%"}}))),Me((e=>({browser:e.browser,userPrefs:e.userPrefs,messages:e.messages,disconnected:e.messages.liveChat&&e.messages.liveChatHasDisconnected&&!e.messages.liveChatConnected||!1})),Wa,null,{forwardRef:!0}))(qa);var Ga=function(){return(Ga=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;Object.create;function $a(e){return($a="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)}"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var Qa="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function Ka(e,t){for(var n,r=/\r\n|[\n\r]/g,o=1,i=t+1;(n=r.exec(e.body))&&n.index<t;)o+=1,i=t+1-(n.index+n[0].length);return{line:o,column:i}}function Ya(e){return Xa(e.source,Ka(e.source,e.start))}function Xa(e,t){var n=e.locationOffset.column-1,r=es(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,s=1===t.line?n:0,u=t.column+s,c="".concat(e.name,":").concat(a,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),d=l[o];if(d.length>120){for(var f=Math.floor(u/80),p=u%80,h=[],m=0;m<d.length;m+=80)h.push(d.slice(m,m+80));return c+Ja([["".concat(a),h[0]]].concat(h.slice(1,f+1).map((function(e){return["",e]})),[[" ",es(p-1)+"^"],["",h[f+1]]]))}return c+Ja([["".concat(a-1),l[o-1]],["".concat(a),d],["",es(u-1)+"^"],["".concat(a+1),l[o+1]]])}function Ja(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],o=e[1];return es(n-(t=r).length)+t+(o?" | "+o:" |")})).join("\n")}function es(e){return Array(e+1).join(" ")}function ts(e){return(ts="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)}function ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rs(e,t){return!t||"object"!==ts(t)&&"function"!=typeof t?os(e):t}function os(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function is(e){var t="function"==typeof Map?new Map:void 0;return(is=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return as(e,arguments,cs(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),us(r,e)})(e)}function as(e,t,n){return(as=ss()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&us(o,n.prototype),o}).apply(null,arguments)}function ss(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function us(e,t){return(us=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cs(e){return(cs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ls=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&us(e,t)}(s,e);var t,n,r,o,i,a=(t=s,n=ss(),function(){var e,r=cs(t);if(n){var o=cs(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return rs(this,e)});function s(e,t,n,r,o,i,u){var c,l,d,f,p;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),p=a.call(this,e);var h,m=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,v=n;!v&&m&&(v=null===(h=m[0].loc)||void 0===h?void 0:h.source);var g,y=r;!y&&m&&(y=m.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),y&&0===y.length&&(y=void 0),r&&n?g=r.map((function(e){return Ka(n,e)})):m&&(g=m.reduce((function(e,t){return t.loc&&e.push(Ka(t.loc.source,t.loc.start)),e}),[]));var b,E=u;if(null==E&&null!=i){var w=i.extensions;"object"==$a(b=w)&&null!==b&&(E=w)}return Object.defineProperties(os(p),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(c=g)&&void 0!==c?c:void 0,enumerable:null!=g},path:{value:null!=o?o:void 0,enumerable:null!=o},nodes:{value:null!=m?m:void 0},source:{value:null!==(l=v)&&void 0!==l?l:void 0},positions:{value:null!==(d=y)&&void 0!==d?d:void 0},originalError:{value:i},extensions:{value:null!==(f=E)&&void 0!==f?f:void 0,enumerable:null!=E}}),null!=i&&i.stack?(Object.defineProperty(os(p),"stack",{value:i.stack,writable:!0,configurable:!0}),rs(p)):(Error.captureStackTrace?Error.captureStackTrace(os(p),s):Object.defineProperty(os(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return r=s,(o=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var o=r[n];o.loc&&(t+="\n\n"+Ya(o.loc))}else if(e.source&&e.locations)for(var i=0,a=e.locations;i<a.length;i++){var s=a[i];t+="\n\n"+Xa(e.source,s)}return t}(this)}},{key:Qa,get:function(){return"Object"}}])&&ns(r.prototype,o),i&&ns(r,i),s}(is(Error));function ds(e,t,n){return new ls("Syntax Error: ".concat(n),void 0,e,[t])}var fs=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),ps=n(3161),hs=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),ms=n(2277);function vs(e,t){if(!Boolean(e))throw new Error(t)}const gs=function(e,t){return e instanceof t};function ys(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var bs=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||vs(0,"Body must be a string. Received: ".concat((0,ms.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||vs(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||vs(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:Qa,get:function(){return"Source"}}])&&ys(t.prototype,n),r&&ys(t,r),e}();var Es=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),ws=n(5717),xs=function(){function e(e){var t=new ps.WU(hs.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==hs.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=ks(this,e)}while(e.kind===hs.COMMENT);return e},e}();function Ss(e){return isNaN(e)?hs.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function ks(e,t){for(var n=e.source,r=n.body,o=r.length,i=t.end;i<o;){var a=r.charCodeAt(i),s=e.line,u=1+i-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 33:return new ps.WU(hs.BANG,i,i+1,s,u,t);case 35:return Os(n,i,s,u,t);case 36:return new ps.WU(hs.DOLLAR,i,i+1,s,u,t);case 38:return new ps.WU(hs.AMP,i,i+1,s,u,t);case 40:return new ps.WU(hs.PAREN_L,i,i+1,s,u,t);case 41:return new ps.WU(hs.PAREN_R,i,i+1,s,u,t);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return new ps.WU(hs.SPREAD,i,i+3,s,u,t);break;case 58:return new ps.WU(hs.COLON,i,i+1,s,u,t);case 61:return new ps.WU(hs.EQUALS,i,i+1,s,u,t);case 64:return new ps.WU(hs.AT,i,i+1,s,u,t);case 91:return new ps.WU(hs.BRACKET_L,i,i+1,s,u,t);case 93:return new ps.WU(hs.BRACKET_R,i,i+1,s,u,t);case 123:return new ps.WU(hs.BRACE_L,i,i+1,s,u,t);case 124:return new ps.WU(hs.PIPE,i,i+1,s,u,t);case 125:return new ps.WU(hs.BRACE_R,i,i+1,s,u,t);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?Rs(n,i,s,u,t,e):Ns(n,i,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ts(n,i,a,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Is(n,i,s,u,t)}throw ds(n,i,Cs(a))}var c=e.line,l=1+i-e.lineStart;return new ps.WU(hs.EOF,o,o,c,l,t)}function Cs(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(Ss(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Ss(e),".")}function Os(e,t,n,r,o){var i,a=e.body,s=t;do{i=a.charCodeAt(++s)}while(!isNaN(i)&&(i>31||9===i));return new ps.WU(hs.COMMENT,t,s,n,r,o,a.slice(t+1,s))}function Ts(e,t,n,r,o,i){var a=e.body,s=n,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw ds(e,u,"Invalid number, unexpected digit after 0: ".concat(Ss(s),"."))}else u=_s(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=_s(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=_s(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw ds(e,u,"Invalid number, expected digit but got: ".concat(Ss(s),"."));return new ps.WU(c?hs.FLOAT:hs.INT,t,u,r,o,i,a.slice(t,u))}function _s(e,t,n){var r=e.body,o=t,i=n;if(i>=48&&i<=57){do{i=r.charCodeAt(++o)}while(i>=48&&i<=57);return o}throw ds(e,o,"Invalid number, expected digit but got: ".concat(Ss(i),"."))}function Ns(e,t,n,r,o){for(var i,a,s,u,c=e.body,l=t+1,d=l,f=0,p="";l<c.length&&!isNaN(f=c.charCodeAt(l))&&10!==f&&13!==f;){if(34===f)return p+=c.slice(d,l),new ps.WU(hs.STRING,t,l+1,n,r,o,p);if(f<32&&9!==f)throw ds(e,l,"Invalid character within String: ".concat(Ss(f),"."));if(++l,92===f){switch(p+=c.slice(d,l-1),f=c.charCodeAt(l)){case 34:p+='"';break;case 47:p+="/";break;case 92:p+="\\";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+="\n";break;case 114:p+="\r";break;case 116:p+="\t";break;case 117:var h=(i=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),Ps(i)<<12|Ps(a)<<8|Ps(s)<<4|Ps(u));if(h<0){var m=c.slice(l+1,l+5);throw ds(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}p+=String.fromCharCode(h),l+=4;break;default:throw ds(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(f),"."))}d=++l}}throw ds(e,l,"Unterminated string.")}function Rs(e,t,n,r,o,i){for(var a=e.body,s=t+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new ps.WU(hs.BLOCK_STRING,t,s+3,n,r,o,(0,ws.W7)(l));if(c<32&&9!==c&&10!==c&&13!==c)throw ds(e,s,"Invalid character within String: ".concat(Ss(c),"."));10===c?(++s,++i.line,i.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++i.line,i.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw ds(e,s,"Unterminated string.")}function Ps(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Is(e,t,n,r,o){for(var i=e.body,a=i.length,s=t+1,u=0;s!==a&&!isNaN(u=i.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new ps.WU(hs.NAME,t,s,n,r,o,i.slice(t,s))}var As=function(){function e(e,t){var n=function(e){return gs(e,bs)}(e)?e:new bs(e);this._lexer=new xs(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(hs.NAME);return{kind:fs.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:fs.DOCUMENT,definitions:this.many(hs.SOF,this.parseDefinition,hs.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(hs.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(hs.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(hs.BRACE_L))return{kind:fs.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(hs.NAME)&&(t=this.parseName()),{kind:fs.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(hs.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(hs.PAREN_L,this.parseVariableDefinition,hs.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:fs.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(hs.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(hs.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(hs.DOLLAR),{kind:fs.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:fs.SELECTION_SET,selections:this.many(hs.BRACE_L,this.parseSelection,hs.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(hs.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(hs.COLON)?(e=r,t=this.parseName()):t=r,{kind:fs.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(hs.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(hs.PAREN_L,t,hs.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(hs.COLON),{kind:fs.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:fs.ARGUMENT,name:this.parseName(),value:(this.expectToken(hs.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(hs.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(hs.NAME)?{kind:fs.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:fs.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:fs.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:fs.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case hs.BRACKET_L:return this.parseList(e);case hs.BRACE_L:return this.parseObject(e);case hs.INT:return this._lexer.advance(),{kind:fs.INT,value:t.value,loc:this.loc(t)};case hs.FLOAT:return this._lexer.advance(),{kind:fs.FLOAT,value:t.value,loc:this.loc(t)};case hs.STRING:case hs.BLOCK_STRING:return this.parseStringLiteral();case hs.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:fs.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:fs.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:fs.NULL,loc:this.loc(t)};default:return{kind:fs.ENUM,value:t.value,loc:this.loc(t)}}case hs.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:fs.STRING,value:e.value,block:e.kind===hs.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:fs.LIST,values:this.any(hs.BRACKET_L,(function(){return t.parseValueLiteral(e)}),hs.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:fs.OBJECT,fields:this.any(hs.BRACE_L,(function(){return t.parseObjectField(e)}),hs.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(hs.COLON),{kind:fs.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(hs.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(hs.AT),{kind:fs.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(hs.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(hs.BRACKET_R),e={kind:fs.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(hs.BANG)?{kind:fs.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:fs.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===hs.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(hs.STRING)||this.peek(hs.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(hs.BRACE_L,this.parseOperationTypeDefinition,hs.BRACE_R);return{kind:fs.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(hs.COLON);var n=this.parseNamedType();return{kind:fs.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:fs.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:fs.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(hs.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(hs.AMP)||this.peek(hs.NAME));return t}return this.delimitedMany(hs.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(hs.BRACE_L)&&this._lexer.lookahead().kind===hs.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(hs.BRACE_L,this.parseFieldDefinition,hs.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(hs.COLON);var o=this.parseTypeReference(),i=this.parseDirectives(!0);return{kind:fs.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:i,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(hs.PAREN_L,this.parseInputValueDef,hs.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(hs.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(hs.EQUALS)&&(r=this.parseValueLiteral(!0));var i=this.parseDirectives(!0);return{kind:fs.INPUT_VALUE_DEFINITION,description:t,name:n,type:o,defaultValue:r,directives:i,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:fs.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:fs.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(hs.EQUALS)?this.delimitedMany(hs.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:fs.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(hs.BRACE_L,this.parseEnumValueDefinition,hs.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:fs.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:fs.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(hs.BRACE_L,this.parseInputValueDef,hs.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===hs.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(hs.BRACE_L,this.parseOperationTypeDefinition,hs.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:fs.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:fs.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:fs.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:fs.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:fs.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:fs.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:fs.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(hs.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var i=this.parseDirectiveLocations();return{kind:fs.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:i,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(hs.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==Es[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new ps.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw ds(this._lexer.source,t.start,"Expected ".concat(Ls(e),", found ").concat(Ms(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==hs.NAME||t.value!==e)throw ds(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Ms(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===hs.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return ds(this._lexer.source,t.start,"Unexpected ".concat(Ms(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function Ms(e){var t=e.value;return Ls(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Ls(e){return function(e){return e===hs.BANG||e===hs.DOLLAR||e===hs.AMP||e===hs.PAREN_L||e===hs.PAREN_R||e===hs.SPREAD||e===hs.COLON||e===hs.EQUALS||e===hs.AT||e===hs.BRACKET_L||e===hs.BRACKET_R||e===hs.BRACE_L||e===hs.PIPE||e===hs.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ds=new Map,js=new Map,Fs=!0,Zs=!1;function Us(e){return e.replace(/[\s,]+/g," ").trim()}function Bs(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,o=Us((a=e.loc).source.body.substring(a.start,a.end)),i=js.get(r);i&&!i.has(o)?Fs&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||js.set(r,i=new Set),i.add(o),t.has(o)||(t.add(o),n.push(e))}else n.push(e);var a})),Ga(Ga({},e),{definitions:n})}function zs(e){var t=Us(e);if(!Ds.has(t)){var n=function(e,t){return new As(e,t).parseDocument()}(e,{experimentalFragmentVariables:Zs});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ds.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Bs(n)))}return Ds.get(t)}function Vs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),zs(r)}var qs,Ws=Vs,Hs=function(){Ds.clear(),js.clear()},Gs=function(){Fs=!1},$s=function(){Zs=!0},Qs=function(){Zs=!1};(qs=Vs||(Vs={})).gql=Ws,qs.resetCaches=Hs,qs.disableFragmentWarnings=Gs,qs.enableExperimentalFragmentVariables=$s,qs.disableExperimentalFragmentVariables=Qs,Vs.default=Vs;const Ks=Vs,Ys=Ks`
  subscription OnMessage($conversationId: String!) {
    onMessage(conversationId: $conversationId) {
      messageType
      message
      actions {
        type
        text {
          en
          es
        }
      }
      operatorAvatarUrl
      operatorName
      resources {
        nids
        nid
        type
        autoplay
        title {
          en
        }
        duration
        url
        snippet {
          en
          es
        }
        actionLabel
        contentType
      }
    }
  }
`,Xs=Ks`
  subscription SystemEvent($chatbotId: String!, $conversationId: String) {
    onLiveChatConversationSystemEvent(chatbotId: $chatbotId, conversationId: $conversationId) {
      event
      payload {
        ... on StartTypingOperatorPayload {
          conversationId
        }
        ... on StopTypingOperatorPayload {
          conversationId
        }
        ... on ConversationClientNameChangedPayload {
          conversationId
          clientName
        }
        ... on ConversationSupersededPayload {
          conversationId
          newConversation {
            _id
            last_turn
            operatorId
            operatorName
            mode
            campus
            office
            lastMessage
            firstMessage {
              messageType
              message
              actions {
                type
                text {
                  en
                  es
                }
              }
              operatorAvatarUrl
              operatorName
              resources {
                nids
                nid
                type
                autoplay
                title {
                  en
                }
                duration
                url
                snippet {
                  en
                  es
                }
                actionLabel
                contentType
              }
            }
          }
        }
      }
    }
  }
`;const Js=function(){return(()=>{const e=Ze(),t=Ve((e=>e.conversationState)),{error:n}=(0,_r.useSubscription)(Ys,{variables:{conversationId:t.conversation_id},shouldResubscribe:!0,onSubscriptionData:({subscriptionData:t})=>{const n=t&&t.data&&t.data.onMessage&&t.data.onMessage;n&&e(ln(n))}});n&&console.error(n)})(),(()=>{const t=Ze(),n=(0,e.useContext)(ei),r=(0,e.useContext)(Go),o=Ve((e=>e.conversationState)),{error:i}=(0,_r.useSubscription)(Xs,{variables:{conversationId:o.conversation_id,chatbotId:r},shouldResubscribe:!0,fetchPolicy:"no-cache",onSubscriptionData:({subscriptionData:e})=>{const r=e&&e.data&&e.data.onLiveChatConversationSystemEvent;r&&t(dn(n,r))}});i&&console.error(i)})(),e.createElement("span",null)},eu=Ks`
  subscription OnCampaignMessage($conversationId: String!, $chatbotId: String!) {
    onCampaignConversationMessage(conversationId: $conversationId, chatbotId: $chatbotId) {
      conversationId
      messageType
      message
      clientName
      operatorId
      operatorAvatarUrl
      operatorName
      actions {
        type
        text {
          en
          es
        }
      }
      resources {
        nids
        nid
        type
        autoplay
        title {
          en
        }
        duration
        url
        snippet {
          en
          es
        }
        actionLabel
        contentType
      }
    }
  }
`,tu=Ks`
  subscription OnCampaignConversationSystemEvent(
    $chatbotId: String!
    $conversationId: String
    $campus: String
    $office: String
  ) {
    onCampaignConversationSystemEvent(
      chatbotId: $chatbotId
      conversationId: $conversationId
      campus: $campus
      office: $office
    ) {
      event
      payload {
        ... on ConversationModeChangedPayload {
          campaignId
          conversationId
          mode
          firstMessage {
            messageType
            message
            actions {
              type
              text {
                en
                es
              }
            }
            operatorAvatarUrl
            operatorName
            resources {
              nids
              nid
              type
              autoplay
              title {
                en
              }
              duration
              url
              snippet {
                en
                es
              }
              actionLabel
              contentType
            }
          }
        }
      }
      timestamp
    }
  }
`,nu=()=>{const t=Ze(),n=(0,e.useContext)(Go),r=Ve((e=>e.conversationState)),{error:o}=(0,_r.useSubscription)(tu,{variables:{conversationId:r.conversation_id,chatbotId:n},shouldResubscribe:!0,fetchPolicy:"no-cache",onSubscriptionData:({subscriptionData:e})=>{const n=e&&e.data&&e.data.onCampaignConversationSystemEvent;n&&t((e=>(t,n)=>{const{conversationState:r}=n();switch(e.event){case"ConversationModeChanged":{const{mode:n,firstMessage:o}=e.payload;t(nn({...r,agent_campaign:n===qe.ConversationMode.Campaign})),o&&t(ln(o));break}}})(n))}});o&&console.error(o)};function ru(){return(()=>{const t=Ze(),n=Ve((e=>e.conversationState)),r=(0,e.useContext)(Go),{error:o}=(0,_r.useSubscription)(eu,{variables:{conversationId:n.conversation_id,chatbotId:r},shouldResubscribe:!0,onSubscriptionData:({subscriptionData:e})=>{const n=e&&e.data&&e.data.onCampaignConversationMessage;n&&t(ln(n))}});o&&console.error(o)})(),e.createElement("span",null)}function ou(){return nu(),e.createElement("span",null)}const iu=(0,e.createContext)();function au({children:t}){return e.createElement(iu.Provider,{value:(0,e.useState)(!1)},t)}au.propTypes={children:X().node.isRequired};const su=()=>(0,e.useContext)(iu);var uu=n(8489),cu=n(8732),lu=n(2955);var du="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;const fu=e.forwardRef((function(n,r){var o=n.children,i=n.container,a=n.disablePortal,s=void 0!==a&&a,u=n.onRendered,c=e.useState(null),l=c[0],d=c[1],f=(0,Ei.Z)(e.isValidElement(o)?o.ref:null,r);return du((function(){s||d(function(e){return e="function"==typeof e?e():e,t.findDOMNode(e)}(i)||document.body)}),[i,s]),du((function(){if(l&&!s)return(0,lu.Z)(r,l),function(){(0,lu.Z)(r,null)}}),[r,l,s]),du((function(){u&&(l||s)&&u()}),[u,l,s]),s?e.isValidElement(o)?e.cloneElement(o,{ref:f}):o:l?t.createPortal(o,l):l}));var pu=n(1375),hu=n(8816);function mu(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var vu=n(6982);function gu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yu(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function bu(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,qi.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&gu(e,o)}))}function Eu(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function wu(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,cu.Z)(e);return t.body===e?(0,vu.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=mu();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(yu(i)+a,"px"),n=(0,cu.Z)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(yu(e)+a,"px")}))}var s=i.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var xu=function(){function e(){Qe(this,e),this.modals=[],this.containers=[]}return(0,Ke.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&gu(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);bu(t,e.mountNode,e.modalRef,r,!0);var o=Eu(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Eu(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=wu(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Eu(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&gu(e.modalRef,!0),bu(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&gu(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const Su=function(n){var r=n.children,o=n.disableAutoFocus,i=void 0!==o&&o,a=n.disableEnforceFocus,s=void 0!==a&&a,u=n.disableRestoreFocus,c=void 0!==u&&u,l=n.getDoc,d=n.isEnabled,f=n.open,p=e.useRef(),h=e.useRef(null),m=e.useRef(null),v=e.useRef(),g=e.useRef(null),y=e.useCallback((function(e){g.current=t.findDOMNode(e)}),[]),b=(0,Ei.Z)(r.ref,y),E=e.useRef();return e.useEffect((function(){E.current=f}),[f]),!E.current&&f&&"undefined"!=typeof window&&(v.current=l().activeElement),e.useEffect((function(){if(f){var e=(0,cu.Z)(g.current);i||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!s&&d()&&!p.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():p.current=!1)},n=function(t){!s&&d()&&9===t.keyCode&&e.activeElement===g.current&&(p.current=!0,t.shiftKey?m.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[i,s,c,d,f]),e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),e.cloneElement(r,{ref:b}),e.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))};var ku={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const Cu=e.forwardRef((function(t,n){var r=t.invisible,o=void 0!==r&&r,i=t.open,a=(0,oi.Z)(t,["invisible","open"]);return i?e.createElement("div",(0,ae.Z)({"aria-hidden":!0,ref:n},a,{style:(0,ae.Z)({},ku.root,o?ku.invisible:{},a.style)})):null}));var Ou=new xu;const Tu=e.forwardRef((function(n,r){var o=(0,dr.Z)(),i=(0,uu.Z)({name:"MuiModal",props:(0,ae.Z)({},n),theme:o}),a=i.BackdropComponent,s=void 0===a?Cu:a,u=i.BackdropProps,c=i.children,l=i.closeAfterTransition,d=void 0!==l&&l,f=i.container,p=i.disableAutoFocus,h=void 0!==p&&p,m=i.disableBackdropClick,v=void 0!==m&&m,g=i.disableEnforceFocus,y=void 0!==g&&g,b=i.disableEscapeKeyDown,E=void 0!==b&&b,w=i.disablePortal,x=void 0!==w&&w,S=i.disableRestoreFocus,k=void 0!==S&&S,C=i.disableScrollLock,O=void 0!==C&&C,T=i.hideBackdrop,_=void 0!==T&&T,N=i.keepMounted,R=void 0!==N&&N,P=i.manager,I=void 0===P?Ou:P,A=i.onBackdropClick,M=i.onClose,L=i.onEscapeKeyDown,D=i.onRendered,j=i.open,F=(0,oi.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Z=e.useState(!0),U=Z[0],B=Z[1],z=e.useRef({}),V=e.useRef(null),q=e.useRef(null),W=(0,Ei.Z)(q,r),H=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),G=function(){return(0,cu.Z)(V.current)},$=function(){return z.current.modalRef=q.current,z.current.mountNode=V.current,z.current},Q=function(){I.mount($(),{disableScrollLock:O}),q.current.scrollTop=0},K=(0,zi.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,t.findDOMNode(e)}(f)||G().body;I.add($(),e),q.current&&Q()})),Y=e.useCallback((function(){return I.isTopModal($())}),[I]),X=(0,zi.Z)((function(e){V.current=e,e&&(D&&D(),j&&Y()?Q():gu(q.current,!0))})),J=e.useCallback((function(){I.remove($())}),[I]);if(e.useEffect((function(){return function(){J()}}),[J]),e.useEffect((function(){j?K():H&&d||J()}),[j,J,H,d,K]),!R&&!j&&(!H||U))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(o||{zIndex:hu.Z}),te={};return void 0===c.props.tabIndex&&(te.tabIndex=c.props.tabIndex||"-1"),H&&(te.onEnter=(0,pu.Z)((function(){B(!1)}),c.props.onEnter),te.onExited=(0,pu.Z)((function(){B(!0),d&&J()}),c.props.onExited)),e.createElement(fu,{ref:X,container:f,disablePortal:x},e.createElement("div",(0,ae.Z)({ref:W,onKeyDown:function(e){"Escape"===e.key&&Y()&&(L&&L(e),E||(e.stopPropagation(),M&&M(e,"escapeKeyDown")))},role:"presentation"},F,{style:(0,ae.Z)({},ee.root,!j&&U?ee.hidden:{},F.style)}),_?null:e.createElement(s,(0,ae.Z)({open:j,onClick:function(e){e.target===e.currentTarget&&(A&&A(e),!v&&M&&M(e,"backdropClick"))}},u)),e.createElement(Su,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:k,getDoc:G,isEnabled:Y,open:j},e.cloneElement(c,te))))}));var _u={entering:{opacity:1},entered:{opacity:1}},Nu={enter:wa.x9.enteringScreen,exit:wa.x9.leavingScreen};const Ru=e.forwardRef((function(t,n){var r=t.children,o=t.disableStrictModeCompat,i=void 0!==o&&o,a=t.in,s=t.onEnter,u=t.onEntered,c=t.onEntering,l=t.onExit,d=t.onExited,f=t.onExiting,p=t.style,h=t.TransitionComponent,m=void 0===h?mi:h,v=t.timeout,g=void 0===v?Nu:v,y=(0,oi.Z)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),b=gi(),E=b.unstable_strictMode&&!i,w=e.useRef(null),x=(0,Ei.Z)(r.ref,n),S=(0,Ei.Z)(E?w:void 0,x),k=function(e){return function(t,n){if(e){var r=E?[w.current,t]:[t,n],o=(0,Nr.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},C=k(c),O=k((function(e,t){yi(e);var n=bi({style:p,timeout:g},{mode:"enter"});e.style.webkitTransition=b.transitions.create("opacity",n),e.style.transition=b.transitions.create("opacity",n),s&&s(e,t)})),T=k(u),_=k(f),N=k((function(e){var t=bi({style:p,timeout:g},{mode:"exit"});e.style.webkitTransition=b.transitions.create("opacity",t),e.style.transition=b.transitions.create("opacity",t),l&&l(e)})),R=k(d);return e.createElement(m,(0,ae.Z)({appear:!0,in:a,nodeRef:E?w:void 0,onEnter:O,onEntered:T,onEntering:C,onExit:N,onExited:R,onExiting:_,timeout:g},y),(function(t,n){return e.cloneElement(r,(0,ae.Z)({style:(0,ae.Z)({opacity:0,visibility:"exited"!==t||a?void 0:"hidden"},_u[t],p,r.props.style),ref:S},n))}))}));var Pu=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.invisible,s=void 0!==a&&a,u=t.open,c=t.transitionDuration,l=t.TransitionComponent,d=void 0===l?Ru:l,f=(0,oi.Z)(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return e.createElement(d,(0,ae.Z)({in:u,timeout:c},f),e.createElement("div",{className:(0,Ci.Z)(o.root,i,s&&o.invisible),"aria-hidden":!0,ref:n},r))}));const Iu=(0,Oi.Z)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Pu);var Au=n(708);function Mu(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Lu={enter:wa.x9.enteringScreen,exit:wa.x9.leavingScreen};const Du=e.forwardRef((function(n,r){var o=n.children,i=n.direction,a=void 0===i?"down":i,s=n.in,u=n.onEnter,c=n.onEntered,l=n.onEntering,d=n.onExit,f=n.onExited,p=n.onExiting,h=n.style,m=n.timeout,v=void 0===m?Lu:m,g=n.TransitionComponent,y=void 0===g?mi:g,b=(0,oi.Z)(n,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),E=gi(),w=e.useRef(null),x=e.useCallback((function(e){w.current=t.findDOMNode(e)}),[]),S=(0,Ei.Z)(o.ref,x),k=(0,Ei.Z)(S,r),C=function(e){return function(t){e&&(void 0===t?e(w.current):e(w.current,t))}},O=C((function(e,t){Mu(a,e),yi(e),u&&u(e,t)})),T=C((function(e,t){var n=bi({timeout:v,style:h},{mode:"enter"});e.style.webkitTransition=E.transitions.create("-webkit-transform",(0,ae.Z)({},n,{easing:E.transitions.easing.easeOut})),e.style.transition=E.transitions.create("transform",(0,ae.Z)({},n,{easing:E.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",l&&l(e,t)})),_=C(c),N=C(p),R=C((function(e){var t=bi({timeout:v,style:h},{mode:"exit"});e.style.webkitTransition=E.transitions.create("-webkit-transform",(0,ae.Z)({},t,{easing:E.transitions.easing.sharp})),e.style.transition=E.transitions.create("transform",(0,ae.Z)({},t,{easing:E.transitions.easing.sharp})),Mu(a,e),d&&d(e)})),P=C((function(e){e.style.webkitTransition="",e.style.transition="",f&&f(e)})),I=e.useCallback((function(){w.current&&Mu(a,w.current)}),[a]);return e.useEffect((function(){if(!s&&"down"!==a&&"right"!==a){var e=(0,Au.Z)((function(){w.current&&Mu(a,w.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[a,s]),e.useEffect((function(){s||I()}),[s,I]),e.createElement(y,(0,ae.Z)({nodeRef:w,onEnter:O,onEntered:_,onEntering:T,onExit:R,onExited:P,onExiting:N,appear:!0,in:s,timeout:v},b),(function(t,n){return e.cloneElement(o,(0,ae.Z)({ref:k,style:(0,ae.Z)({visibility:"exited"!==t||s?void 0:"hidden"},h,o.props.style)},n))}))}));var ju={left:"right",right:"left",top:"down",bottom:"up"};var Fu={enter:wa.x9.enteringScreen,exit:wa.x9.leavingScreen},Zu=e.forwardRef((function(t,n){var r=t.anchor,o=void 0===r?"left":r,i=t.BackdropProps,a=t.children,s=t.classes,u=t.className,c=t.elevation,l=void 0===c?16:c,d=t.ModalProps,f=(d=void 0===d?{}:d).BackdropProps,p=(0,oi.Z)(d,["BackdropProps"]),h=t.onClose,m=t.open,v=void 0!==m&&m,g=t.PaperProps,y=void 0===g?{}:g,b=t.SlideProps,E=t.TransitionComponent,w=void 0===E?Du:E,x=t.transitionDuration,S=void 0===x?Fu:x,k=t.variant,C=void 0===k?"temporary":k,O=(0,oi.Z)(t,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),T=gi(),_=e.useRef(!1);e.useEffect((function(){_.current=!0}),[]);var N=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?ju[t]:t}(T,o),R=e.createElement(Di,(0,ae.Z)({elevation:"temporary"===C?l:0,square:!0},y,{className:(0,Ci.Z)(s.paper,s["paperAnchor".concat((0,Pi.Z)(N))],y.className,"temporary"!==C&&s["paperAnchorDocked".concat((0,Pi.Z)(N))])}),a);if("permanent"===C)return e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(s.root,s.docked,u),ref:n},O),R);var P=e.createElement(w,(0,ae.Z)({in:v,direction:ju[N],timeout:S,appear:_.current},b),R);return"persistent"===C?e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(s.root,s.docked,u),ref:n},O),P):e.createElement(Tu,(0,ae.Z)({BackdropProps:(0,ae.Z)({},i,f,{transitionDuration:S}),BackdropComponent:Iu,className:(0,Ci.Z)(s.root,s.modal,u),open:v,onClose:h,ref:n},O,p),P)}));const Uu=(0,Oi.Z)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(Zu);var Bu=e.forwardRef((function(t,n){var r=t.absolute,o=void 0!==r&&r,i=t.classes,a=t.className,s=t.component,u=void 0===s?"hr":s,c=t.flexItem,l=void 0!==c&&c,d=t.light,f=void 0!==d&&d,p=t.orientation,h=void 0===p?"horizontal":p,m=t.role,v=void 0===m?"hr"!==u?"separator":void 0:m,g=t.variant,y=void 0===g?"fullWidth":g,b=(0,oi.Z)(t,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return e.createElement(u,(0,ae.Z)({className:(0,Ci.Z)(i.root,a,"fullWidth"!==y&&i[y],o&&i.absolute,l&&i.flexItem,f&&i.light,"vertical"===h&&i.vertical),role:v,ref:n},b))}));const zu=(0,Oi.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,Bi.U1)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Bu),Vu=(0,e.createContext)();function qu({children:t}){const n=(0,e.useRef)(),[r,o]=(0,e.useState)(),i=()=>{n.current&&o(n.current.offsetHeight)};return(0,e.useEffect)((()=>(i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i))),[]),e.createElement(Vu.Provider,{value:r},t(n))}qu.propTypes={children:X().func.isRequired};var Wu=n(4842),Hu=n(1606);function Gu(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var $u=e.createContext();const Qu=$u;function Ku(e,t){return parseInt(e[t],10)||0}var Yu="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Xu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const Ju=e.forwardRef((function(t,n){var r=t.onChange,o=t.rows,i=t.rowsMax,a=t.rowsMin,s=void 0===a?1:a,u=t.style,c=t.value,l=(0,oi.Z)(t,["onChange","rows","rowsMax","rowsMin","style","value"]),d=o||s,f=e.useRef(null!=c).current,p=e.useRef(null),h=(0,Ei.Z)(n,p),m=e.useRef(null),v=e.useRef(0),g=e.useState({}),y=g[0],b=g[1],E=e.useCallback((function(){var e=p.current,n=window.getComputedStyle(e),r=m.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],a=Ku(n,"padding-bottom")+Ku(n,"padding-top"),s=Ku(n,"border-bottom-width")+Ku(n,"border-top-width"),u=r.scrollHeight-a;r.value="x";var c=r.scrollHeight-a,l=u;d&&(l=Math.max(Number(d)*c,l)),i&&(l=Math.min(Number(i)*c,l));var f=(l=Math.max(l,c))+("border-box"===o?a+s:0),h=Math.abs(l-u)<=1;b((function(e){return v.current<20&&(f>0&&Math.abs((e.outerHeightStyle||0)-f)>1||e.overflow!==h)?(v.current+=1,{overflow:h,outerHeightStyle:f}):e}))}),[i,d,t.placeholder]);e.useEffect((function(){var e=(0,Au.Z)((function(){v.current=0,E()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[E]),Yu((function(){E()})),e.useEffect((function(){v.current=0}),[c]);return e.createElement(e.Fragment,null,e.createElement("textarea",(0,ae.Z)({value:c,onChange:function(e){v.current=0,f||E(),r&&r(e)},ref:h,rows:d,style:(0,ae.Z)({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},u)},l)),e.createElement("textarea",{"aria-hidden":!0,"aria-label":"Shadow Input",className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,ae.Z)({},Xu,u)}))}));function ec(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function tc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(ec(e.value)&&""!==e.value||t&&ec(e.defaultValue)&&""!==e.defaultValue)}var nc="undefined"==typeof window?e.useEffect:e.useLayoutEffect,rc=e.forwardRef((function(t,n){var r=t["aria-describedby"],o=t.autoComplete,i=t.autoFocus,a=t.classes,s=t.className,u=(t.color,t.defaultValue),c=t.disabled,l=t.endAdornment,d=(t.error,t.fullWidth),f=void 0!==d&&d,p=t.id,h=t.inputComponent,m=void 0===h?"input":h,v=t.inputProps,g=void 0===v?{}:v,y=t.inputRef,b=(t.margin,t.multiline),E=void 0!==b&&b,w=t.name,x=t.onBlur,S=t.onChange,k=t.onClick,C=t.onFocus,O=t.onKeyDown,T=t.onKeyUp,_=t.placeholder,N=t.readOnly,R=t.renderSuffix,P=t.rows,I=t.rowsMax,A=t.rowsMin,M=t.startAdornment,L=t.type,D=void 0===L?"text":L,j=t.value,F=(0,oi.Z)(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),Z=null!=g.value?g.value:j,U=e.useRef(null!=Z).current,B=e.useRef(),z=e.useCallback((function(e){0}),[]),V=(0,Ei.Z)(g.ref,z),q=(0,Ei.Z)(y,V),W=(0,Ei.Z)(B,q),H=e.useState(!1),G=H[0],$=H[1],Q=e.useContext($u);var K=Gu({props:t,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});K.focused=Q?Q.focused:G,e.useEffect((function(){!Q&&c&&G&&($(!1),x&&x())}),[Q,c,G,x]);var Y=Q&&Q.onFilled,X=Q&&Q.onEmpty,J=e.useCallback((function(e){tc(e)?Y&&Y():X&&X()}),[Y,X]);nc((function(){U&&J({value:Z})}),[Z,J,U]);e.useEffect((function(){J(B.current)}),[]);var ee=m,te=(0,ae.Z)({},g,{ref:W});"string"!=typeof ee?te=(0,ae.Z)({inputRef:W,type:D},te,{ref:null}):E?!P||I||A?(te=(0,ae.Z)({rows:P,rowsMax:I},te),ee=Ju):ee="textarea":te=(0,ae.Z)({type:D},te);return e.useEffect((function(){Q&&Q.setAdornedStart(Boolean(M))}),[Q,M]),e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(a.root,a["color".concat((0,Pi.Z)(K.color||"primary"))],s,K.disabled&&a.disabled,K.error&&a.error,f&&a.fullWidth,K.focused&&a.focused,Q&&a.formControl,E&&a.multiline,M&&a.adornedStart,l&&a.adornedEnd,"dense"===K.margin&&a.marginDense),onClick:function(e){B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)},ref:n},F),M,e.createElement(Qu.Provider,{value:null},e.createElement(ee,(0,ae.Z)({"aria-invalid":K.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:u,disabled:K.disabled,id:p,onAnimationStart:function(e){J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:_,readOnly:N,required:K.required,rows:P,value:Z,onKeyDown:O,onKeyUp:T},te,{className:(0,Ci.Z)(a.input,g.className,K.disabled&&a.disabled,E&&a.inputMultiline,K.hiddenLabel&&a.inputHiddenLabel,M&&a.inputAdornedStart,l&&a.inputAdornedEnd,"search"===D&&a.inputTypeSearch,"dense"===K.margin&&a.inputMarginDense),onBlur:function(e){x&&x(e),g.onBlur&&g.onBlur(e),Q&&Q.onBlur?Q.onBlur(e):$(!1)},onChange:function(e){if(!U){var t=e.target||B.current;if(null==t)throw new Error((0,Hu.Z)(1));J({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];g.onChange&&g.onChange.apply(g,[e].concat(r)),S&&S.apply(void 0,[e].concat(r))},onFocus:function(e){K.disabled?e.stopPropagation():(C&&C(e),g.onFocus&&g.onFocus(e),Q&&Q.onFocus?Q.onFocus(e):$(!0))}}))),l,R?R((0,ae.Z)({},K,{startAdornment:M})):null)}));const oc=(0,Oi.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,ae.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(rc);var ic=e.forwardRef((function(t,n){var r=t.disableUnderline,o=t.classes,i=t.fullWidth,a=void 0!==i&&i,s=t.inputComponent,u=void 0===s?"input":s,c=t.multiline,l=void 0!==c&&c,d=t.type,f=void 0===d?"text":d,p=(0,oi.Z)(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(oc,(0,ae.Z)({classes:(0,ae.Z)({},o,{root:(0,Ci.Z)(o.root,!r&&o.underline),underline:null}),fullWidth:a,inputComponent:u,multiline:l,ref:n,type:f},p))}));ic.muiName="Input";const ac=(0,Oi.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(ic);var sc=e.forwardRef((function(t,n){var r=t.disableUnderline,o=t.classes,i=t.fullWidth,a=void 0!==i&&i,s=t.inputComponent,u=void 0===s?"input":s,c=t.multiline,l=void 0!==c&&c,d=t.type,f=void 0===d?"text":d,p=(0,oi.Z)(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return e.createElement(oc,(0,ae.Z)({classes:(0,ae.Z)({},o,{root:(0,Ci.Z)(o.root,!r&&o.underline),underline:null}),fullWidth:a,inputComponent:u,multiline:l,ref:n,type:f},p))}));sc.muiName="Input";const uc=(0,Oi.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(sc);var cc=e.forwardRef((function(t,n){t.children;var r=t.classes,o=t.className,i=t.label,a=t.labelWidth,s=t.notched,u=t.style,c=(0,oi.Z)(t,["children","classes","className","label","labelWidth","notched","style"]),l="rtl"===gi().direction?"right":"left";if(void 0!==i)return e.createElement("fieldset",(0,ae.Z)({"aria-hidden":!0,className:(0,Ci.Z)(r.root,o),ref:n,style:u},c),e.createElement("legend",{className:(0,Ci.Z)(r.legendLabelled,s&&r.legendNotched)},i?e.createElement("span",null,i):e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var d=a>0?.75*a+8:.01;return e.createElement("fieldset",(0,ae.Z)({"aria-hidden":!0,style:(0,ae.Z)((0,C.Z)({},"padding".concat((0,Pi.Z)(l)),8),u),className:(0,Ci.Z)(r.root,o),ref:n},c),e.createElement("legend",{className:r.legend,style:{width:s?d:.01}},e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))}));const lc=(0,Oi.Z)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(cc);var dc=e.forwardRef((function(t,n){var r=t.classes,o=t.fullWidth,i=void 0!==o&&o,a=t.inputComponent,s=void 0===a?"input":a,u=t.label,c=t.labelWidth,l=void 0===c?0:c,d=t.multiline,f=void 0!==d&&d,p=t.notched,h=t.type,m=void 0===h?"text":h,v=(0,oi.Z)(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return e.createElement(oc,(0,ae.Z)({renderSuffix:function(t){return e.createElement(lc,{className:r.notchedOutline,label:u,labelWidth:l,notched:void 0!==p?p:Boolean(t.startAdornment||t.filled||t.focused)})},classes:(0,ae.Z)({},r,{root:(0,Ci.Z)(r.root,r.underline),notchedOutline:null}),fullWidth:i,inputComponent:s,multiline:f,ref:n,type:m},v))}));dc.muiName="Input";const fc=(0,Oi.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(dc);function pc(){return e.useContext(Qu)}var hc=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=(t.color,t.component),s=void 0===a?"label":a,u=(t.disabled,t.error,t.filled,t.focused,t.required,(0,oi.Z)(t,["children","classes","className","color","component","disabled","error","filled","focused","required"])),c=Gu({props:t,muiFormControl:pc(),states:["color","required","focused","disabled","error","filled"]});return e.createElement(s,(0,ae.Z)({className:(0,Ci.Z)(o.root,o["color".concat((0,Pi.Z)(c.color||"primary"))],i,c.disabled&&o.disabled,c.error&&o.error,c.filled&&o.filled,c.focused&&o.focused,c.required&&o.required),ref:n},u),r,c.required&&e.createElement("span",{"aria-hidden":!0,className:(0,Ci.Z)(o.asterisk,c.error&&o.error)}," ","*"))}));const mc=(0,Oi.Z)((function(e){return{root:(0,ae.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(hc);var vc=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.disableAnimation,a=void 0!==i&&i,s=(t.margin,t.shrink),u=(t.variant,(0,oi.Z)(t,["classes","className","disableAnimation","margin","shrink","variant"])),c=pc(),l=s;void 0===l&&c&&(l=c.filled||c.focused||c.adornedStart);var d=Gu({props:t,muiFormControl:c,states:["margin","variant"]});return e.createElement(mc,(0,ae.Z)({"data-shrink":l,className:(0,Ci.Z)(r.root,o,c&&r.formControl,!a&&r.animated,l&&r.shrink,"dense"===d.margin&&r.marginDense,{filled:r.filled,outlined:r.outlined}[d.variant]),classes:{focused:r.focused,disabled:r.disabled,error:r.error,required:r.required,asterisk:r.asterisk},ref:n},u))}));const gc=(0,Oi.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(vc);var yc=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.color,s=void 0===a?"primary":a,u=t.component,c=void 0===u?"div":u,l=t.disabled,d=void 0!==l&&l,f=t.error,p=void 0!==f&&f,h=t.fullWidth,m=void 0!==h&&h,v=t.focused,g=t.hiddenLabel,y=void 0!==g&&g,b=t.margin,E=void 0===b?"none":b,w=t.required,x=void 0!==w&&w,S=t.size,k=t.variant,C=void 0===k?"standard":k,O=(0,oi.Z)(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),T=e.useState((function(){var t=!1;return r&&e.Children.forEach(r,(function(e){if((0,ia.Z)(e,["Input","Select"])){var n=(0,ia.Z)(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)}})),t})),_=T[0],N=T[1],R=e.useState((function(){var t=!1;return r&&e.Children.forEach(r,(function(e){(0,ia.Z)(e,["Input","Select"])&&tc(e.props,!0)&&(t=!0)})),t})),P=R[0],I=R[1],A=e.useState(!1),M=A[0],L=A[1],D=void 0!==v?v:M;d&&D&&L(!1);var j=e.useCallback((function(){I(!0)}),[]),F={adornedStart:_,setAdornedStart:N,color:s,disabled:d,error:p,filled:P,focused:D,fullWidth:m,hiddenLabel:y,margin:("small"===S?"dense":void 0)||E,onBlur:function(){L(!1)},onEmpty:e.useCallback((function(){I(!1)}),[]),onFilled:j,onFocus:function(){L(!0)},registerEffect:undefined,required:x,variant:C};return e.createElement(Qu.Provider,{value:F},e.createElement(c,(0,ae.Z)({className:(0,Ci.Z)(o.root,i,"none"!==E&&o["margin".concat((0,Pi.Z)(E))],m&&o.fullWidth),ref:n},O),r))}));const bc=(0,Oi.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(yc);var Ec=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.component,s=void 0===a?"p":a,u=(t.disabled,t.error,t.filled,t.focused,t.margin,t.required,t.variant,(0,oi.Z)(t,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),c=Gu({props:t,muiFormControl:pc(),states:["variant","margin","disabled","error","filled","focused","required"]});return e.createElement(s,(0,ae.Z)({className:(0,Ci.Z)(o.root,("filled"===c.variant||"outlined"===c.variant)&&o.contained,i,c.disabled&&o.disabled,c.error&&o.error,c.filled&&o.filled,c.focused&&o.focused,c.required&&o.required,"dense"===c.margin&&o.marginDense),ref:n},u)," "===r?e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):r)}));const wc=(0,Oi.Z)((function(e){return{root:(0,ae.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(Ec);var xc=n(2761);n(8570);function Sc(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function kc(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Cc(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Oc(e){return"function"==typeof e?e():e}var Tc=e.forwardRef((function(n,r){var o=n.action,i=n.anchorEl,a=n.anchorOrigin,s=void 0===a?{vertical:"top",horizontal:"left"}:a,u=n.anchorPosition,c=n.anchorReference,l=void 0===c?"anchorEl":c,d=n.children,f=n.classes,p=n.className,h=n.container,m=n.elevation,v=void 0===m?8:m,g=n.getContentAnchorEl,y=n.marginThreshold,b=void 0===y?16:y,E=n.onEnter,w=n.onEntered,x=n.onEntering,S=n.onExit,k=n.onExited,C=n.onExiting,O=n.open,T=n.PaperProps,_=void 0===T?{}:T,N=n.transformOrigin,R=void 0===N?{vertical:"top",horizontal:"left"}:N,P=n.TransitionComponent,I=void 0===P?ki:P,A=n.transitionDuration,M=void 0===A?"auto":A,L=n.TransitionProps,D=void 0===L?{}:L,j=(0,oi.Z)(n,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),F=e.useRef(),Z=e.useCallback((function(e){if("anchorPosition"===l)return u;var t=Oc(i),n=(t&&1===t.nodeType?t:(0,cu.Z)(F.current).body).getBoundingClientRect(),r=0===e?s.vertical:"center";return{top:n.top+Sc(n,r),left:n.left+kc(n,s.horizontal)}}),[i,s.horizontal,s.vertical,u,l]),U=e.useCallback((function(e){var t=0;if(g&&"anchorEl"===l){var n=g(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[s.vertical,l,g]),B=e.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Sc(e,R.vertical)+t,horizontal:kc(e,R.horizontal)}}),[R.horizontal,R.vertical]),z=e.useCallback((function(e){var t=U(e),n={width:e.offsetWidth,height:e.offsetHeight},r=B(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Cc(r)};var o=Z(t),a=o.top-r.vertical,s=o.left-r.horizontal,u=a+n.height,c=s+n.width,d=(0,vu.Z)(Oc(i)),f=d.innerHeight-b,p=d.innerWidth-b;if(a<b){var h=a-b;a-=h,r.vertical+=h}else if(u>f){var m=u-f;a-=m,r.vertical+=m}if(s<b){var v=s-b;s-=v,r.horizontal+=v}else if(c>p){var g=c-p;s-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Cc(r)}}),[i,l,Z,U,B,b]),V=e.useCallback((function(){var e=F.current;if(e){var t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[z]),q=e.useCallback((function(e){F.current=t.findDOMNode(e)}),[]);e.useEffect((function(){O&&V()})),e.useImperativeHandle(o,(function(){return O?{updatePosition:function(){V()}}:null}),[O,V]),e.useEffect((function(){if(O){var e=(0,Au.Z)((function(){V()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[O,V]);var W=M;"auto"!==M||I.muiSupportAuto||(W=void 0);var H=h||(i?(0,cu.Z)(Oc(i)).body:void 0);return e.createElement(Tu,(0,ae.Z)({container:H,open:O,ref:r,BackdropProps:{invisible:!0},className:(0,Ci.Z)(f.root,p)},j),e.createElement(I,(0,ae.Z)({appear:!0,in:O,onEnter:E,onEntered:w,onExit:S,onExited:k,onExiting:C,timeout:W},D,{onEntering:(0,pu.Z)((function(e,t){x&&x(e,t),V()}),D.onEntering)}),e.createElement(Di,(0,ae.Z)({elevation:v,ref:q},_,{className:(0,Ci.Z)(f.paper,_.className)}),d)))}));const _c=(0,Oi.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Tc);var Nc=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.component,s=void 0===a?"ul":a,u=t.dense,c=void 0!==u&&u,l=t.disablePadding,d=void 0!==l&&l,f=t.subheader,p=(0,oi.Z)(t,["children","classes","className","component","dense","disablePadding","subheader"]),h=e.useMemo((function(){return{dense:c}}),[c]);return e.createElement(aa.Provider,{value:h},e.createElement(s,(0,ae.Z)({className:(0,Ci.Z)(o.root,i,c&&o.dense,!d&&o.padding,f&&o.subheader),ref:n},p),f,r))}));const Rc=(0,Oi.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Nc);function Pc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ic(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ac(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Mc(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Ac(s,i)&&!u)return void s.focus();s=o(e,s,n)}}var Lc="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const Dc=e.forwardRef((function(n,r){var o=n.actions,i=n.autoFocus,a=void 0!==i&&i,s=n.autoFocusItem,u=void 0!==s&&s,c=n.children,l=n.className,d=n.disabledItemsFocusable,f=void 0!==d&&d,p=n.disableListWrap,h=void 0!==p&&p,m=n.onKeyDown,v=n.variant,g=void 0===v?"selectedMenu":v,y=(0,oi.Z)(n,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),b=e.useRef(null),E=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lc((function(){a&&b.current.focus()}),[a]),e.useImperativeHandle(o,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight<b.current.clientHeight&&n){var r="".concat(mu(),"px");b.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,b.current.style.width="calc(100% + ".concat(r,")")}return b.current}}}),[]);var w=e.useCallback((function(e){b.current=t.findDOMNode(e)}),[]),x=(0,Ei.Z)(w,r),S=-1;e.Children.forEach(c,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===g&&t.props.selected||-1===S)&&(S=n))}));var k=e.Children.map(c,(function(t,n){if(n===S){var r={};return u&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===g&&(r.tabIndex=0),e.cloneElement(t,r)}return t}));return e.createElement(Rc,(0,ae.Z)({role:"menu",ref:x,className:l,onKeyDown:function(e){var t=b.current,n=e.key,r=(0,cu.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Mc(t,r,h,f,Pc);else if("ArrowUp"===n)e.preventDefault(),Mc(t,r,h,f,Ic);else if("Home"===n)e.preventDefault(),Mc(t,null,h,f,Pc);else if("End"===n)e.preventDefault(),Mc(t,null,h,f,Ic);else if(1===n.length){var o=E.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&Ac(r,o);o.previousKeyMatched&&(s||Mc(t,r,!1,f,Pc,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y),k)}));var jc={vertical:"top",horizontal:"right"},Fc={vertical:"top",horizontal:"left"},Zc=e.forwardRef((function(n,r){var o=n.autoFocus,i=void 0===o||o,a=n.children,s=n.classes,u=n.disableAutoFocusItem,c=void 0!==u&&u,l=n.MenuListProps,d=void 0===l?{}:l,f=n.onClose,p=n.onEntering,h=n.open,m=n.PaperProps,v=void 0===m?{}:m,g=n.PopoverClasses,y=n.transitionDuration,b=void 0===y?"auto":y,E=n.variant,w=void 0===E?"selectedMenu":E,x=(0,oi.Z)(n,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),S=gi(),k=i&&!c&&h,C=e.useRef(null),O=e.useRef(null),T=-1;e.Children.map(a,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("menu"!==w&&t.props.selected||-1===T)&&(T=n))}));var _=e.Children.map(a,(function(n,r){return r===T?e.cloneElement(n,{ref:function(e){O.current=t.findDOMNode(e),(0,lu.Z)(n.ref,e)}}):n}));return e.createElement(_c,(0,ae.Z)({getContentAnchorEl:function(){return O.current},classes:g,onClose:f,onEntering:function(e,t){C.current&&C.current.adjustStyleForScrollbar(e,S),p&&p(e,t)},anchorOrigin:"rtl"===S.direction?jc:Fc,transformOrigin:"rtl"===S.direction?jc:Fc,PaperProps:(0,ae.Z)({},v,{classes:(0,ae.Z)({},v.classes,{root:s.paper})}),open:h,ref:r,transitionDuration:b},x),e.createElement(Dc,(0,ae.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:C,autoFocus:i&&(-1===T||c),autoFocusItem:k,variant:w},d,{className:(0,Ci.Z)(s.list,d.className)}),_))}));const Uc=(0,Oi.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Zc);var Bc=n(4514);function zc(e,t){return"object"===(0,Ge.Z)(t)&&null!==t?e===t:String(e)===String(t)}const Vc=e.forwardRef((function(t,n){var r=t["aria-label"],o=t.autoFocus,i=t.autoWidth,a=t.children,s=t.classes,u=t.className,c=t.defaultValue,l=t.disabled,d=t.displayEmpty,f=t.IconComponent,p=t.inputRef,h=t.labelId,m=t.MenuProps,v=void 0===m?{}:m,g=t.multiple,y=t.name,b=t.onBlur,E=t.onChange,w=t.onClose,x=t.onFocus,S=t.onOpen,k=t.open,C=t.readOnly,O=t.renderValue,T=t.SelectDisplayProps,_=void 0===T?{}:T,N=t.tabIndex,R=(t.type,t.value),P=t.variant,I=void 0===P?"standard":P,A=(0,oi.Z)(t,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),M=(0,Bc.Z)({controlled:R,default:c,name:"Select"}),L=(0,Nr.Z)(M,2),D=L[0],j=L[1],F=e.useRef(null),Z=e.useState(null),U=Z[0],B=Z[1],z=e.useRef(null!=k).current,V=e.useState(),q=V[0],W=V[1],H=e.useState(!1),G=H[0],$=H[1],Q=(0,Ei.Z)(n,p);e.useImperativeHandle(Q,(function(){return{focus:function(){U.focus()},node:F.current,value:D}}),[U,D]),e.useEffect((function(){o&&U&&U.focus()}),[o,U]),e.useEffect((function(){if(U){var e=(0,cu.Z)(U).getElementById(h);if(e){var t=function(){getSelection().isCollapsed&&U.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[h,U]);var K,Y,X=function(e,t){e?S&&S(t):w&&w(t),z||(W(i?null:U.clientWidth),$(e))},J=e.Children.toArray(a),ee=function(e){return function(t){var n;if(g||X(!1,t),g){n=Array.isArray(D)?D.slice():[];var r=D.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),D!==n&&(j(n),E&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:y}}),E(t,e)))}},te=null!==U&&(z?k:G);delete A["aria-invalid"];var ne=[],re=!1;(tc({value:D})||d)&&(O?K=O(D):re=!0);var oe=J.map((function(t){if(!e.isValidElement(t))return null;var n;if(g){if(!Array.isArray(D))throw new Error((0,Hu.Z)(2));(n=D.some((function(e){return zc(e,t.props.value)})))&&re&&ne.push(t.props.children)}else(n=zc(D,t.props.value))&&re&&(Y=t.props.children);return n&&!0,e.cloneElement(t,{"aria-selected":n?"true":void 0,onClick:ee(t),onKeyUp:function(e){" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));re&&(K=g?ne.join(", "):Y);var ie,se=q;!i&&z&&U&&(se=U.clientWidth),ie=void 0!==N?N:l?null:0;var ue=_.id||(y?"mui-component-select-".concat(y):void 0);return e.createElement(e.Fragment,null,e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(s.root,s.select,s.selectMenu,s[I],u,l&&s.disabled),ref:B,tabIndex:ie,role:"button","aria-disabled":l?"true":void 0,"aria-expanded":te?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[h,ue].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),X(!0,e))}},onMouseDown:l||C?null:function(e){0===e.button&&(e.preventDefault(),U.focus(),X(!0,e))},onBlur:function(e){!te&&b&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),b(e))},onFocus:x},_,{id:ue}),function(e){return null==e||"string"==typeof e&&!e.trim()}(K)?e.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):K),e.createElement("input",(0,ae.Z)({value:Array.isArray(D)?D.join(","):D,name:y,ref:F,"aria-hidden":!0,onChange:function(e){var t=J.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=J[t];j(n.props.value),E&&E(e,n)}},tabIndex:-1,className:s.nativeInput,autoFocus:o},A)),e.createElement(f,{className:(0,Ci.Z)(s.icon,s["icon".concat((0,Pi.Z)(I))],te&&s.iconOpen,l&&s.disabled)}),e.createElement(Uc,(0,ae.Z)({id:"menu-".concat(y||""),anchorEl:U,open:te,onClose:function(e){X(!1,e)}},v,{MenuListProps:(0,ae.Z)({"aria-labelledby":h,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:(0,ae.Z)({},v.PaperProps,{style:(0,ae.Z)({minWidth:se},null!=v.PaperProps?v.PaperProps.style:null)})}),oe))})),qc=(0,Ti.Z)(e.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Wc=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.disabled,a=t.IconComponent,s=t.inputRef,u=t.variant,c=void 0===u?"standard":u,l=(0,oi.Z)(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return e.createElement(e.Fragment,null,e.createElement("select",(0,ae.Z)({className:(0,Ci.Z)(r.root,r.select,r[c],o,i&&r.disabled),disabled:i,ref:s||n},l)),t.multiple?null:e.createElement(a,{className:(0,Ci.Z)(r.icon,r["icon".concat((0,Pi.Z)(c))],i&&r.disabled)}))}));var Hc=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Gc=e.createElement(ac,null),$c=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.IconComponent,a=void 0===i?qc:i,s=t.input,u=void 0===s?Gc:s,c=t.inputProps,l=(t.variant,(0,oi.Z)(t,["children","classes","IconComponent","input","inputProps","variant"])),d=Gu({props:t,muiFormControl:pc(),states:["variant"]});return e.cloneElement(u,(0,ae.Z)({inputComponent:Wc,inputProps:(0,ae.Z)({children:r,classes:o,IconComponent:a,variant:d.variant,type:void 0},c,u?u.props.inputProps:{}),ref:n},l))}));$c.muiName="Select";(0,Oi.Z)(Hc,{name:"MuiNativeSelect"})($c);var Qc=Hc,Kc=e.createElement(ac,null),Yc=e.createElement(uc,null),Xc=e.forwardRef((function t(n,r){var o=n.autoWidth,i=void 0!==o&&o,a=n.children,s=n.classes,u=n.displayEmpty,c=void 0!==u&&u,l=n.IconComponent,d=void 0===l?qc:l,f=n.id,p=n.input,h=n.inputProps,m=n.label,v=n.labelId,g=n.labelWidth,y=void 0===g?0:g,b=n.MenuProps,E=n.multiple,w=void 0!==E&&E,x=n.native,S=void 0!==x&&x,k=n.onClose,C=n.onOpen,O=n.open,T=n.renderValue,_=n.SelectDisplayProps,N=n.variant,R=void 0===N?"standard":N,P=(0,oi.Z)(n,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),I=S?Wc:Vc,A=Gu({props:n,muiFormControl:pc(),states:["variant"]}).variant||R,M=p||{standard:Kc,outlined:e.createElement(fc,{label:m,labelWidth:y}),filled:Yc}[A];return e.cloneElement(M,(0,ae.Z)({inputComponent:I,inputProps:(0,ae.Z)({children:a,IconComponent:d,variant:A,type:void 0,multiple:w},S?{id:f}:{autoWidth:i,displayEmpty:c,labelId:v,MenuProps:b,onClose:k,onOpen:C,open:O,renderValue:T,SelectDisplayProps:(0,ae.Z)({id:f},_)},h,{classes:h?(0,xc.Z)({baseClasses:s,newClasses:h.classes,Component:t}):s},p?p.props.inputProps:{}),ref:r},P))}));Xc.muiName="Select";const Jc=(0,Oi.Z)(Qc,{name:"MuiSelect"})(Xc);var el={standard:ac,filled:uc,outlined:fc},tl=e.forwardRef((function(t,n){var r=t.autoComplete,o=t.autoFocus,i=void 0!==o&&o,a=t.children,s=t.classes,u=t.className,c=t.color,l=void 0===c?"primary":c,d=t.defaultValue,f=t.disabled,p=void 0!==f&&f,h=t.error,m=void 0!==h&&h,v=t.FormHelperTextProps,g=t.fullWidth,y=void 0!==g&&g,b=t.helperText,E=t.hiddenLabel,w=t.id,x=t.InputLabelProps,S=t.inputProps,k=t.InputProps,C=t.inputRef,O=t.label,T=t.multiline,_=void 0!==T&&T,N=t.name,R=t.onBlur,P=t.onChange,I=t.onFocus,A=t.placeholder,M=t.required,L=void 0!==M&&M,D=t.rows,j=t.rowsMax,F=t.select,Z=void 0!==F&&F,U=t.SelectProps,B=t.type,z=t.value,V=t.variant,q=void 0===V?"standard":V,W=(0,oi.Z)(t,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var H={};if("outlined"===q&&(x&&void 0!==x.shrink&&(H.notched=x.shrink),O)){var G,$=null!==(G=null==x?void 0:x.required)&&void 0!==G?G:L;H.label=e.createElement(e.Fragment,null,O,$&&" *")}Z&&(U&&U.native||(H.id=void 0),H["aria-describedby"]=void 0);var Q=b&&w?"".concat(w,"-helper-text"):void 0,K=O&&w?"".concat(w,"-label"):void 0,Y=el[q],X=e.createElement(Y,(0,ae.Z)({"aria-describedby":Q,autoComplete:r,autoFocus:i,defaultValue:d,fullWidth:y,multiline:_,name:N,rows:D,rowsMax:j,type:B,value:z,id:w,inputRef:C,onBlur:R,onChange:P,onFocus:I,placeholder:A,inputProps:S},H,k));return e.createElement(bc,(0,ae.Z)({className:(0,Ci.Z)(s.root,u),disabled:p,error:m,fullWidth:y,hiddenLabel:E,ref:n,required:L,color:l,variant:q},W),O&&e.createElement(gc,(0,ae.Z)({htmlFor:w,id:K},x),O),Z?e.createElement(Jc,(0,ae.Z)({"aria-describedby":Q,id:w,labelId:K,value:z,input:X},U),a):X,b&&e.createElement(wc,(0,ae.Z)({id:Q},v),b))}));const nl=(0,Oi.Z)({root:{}},{name:"MuiTextField"})(tl);var rl=n(5410);const ol=Ks`
  mutation TypingClient($conversationId: String!, $draftMessage: String!) {
    typingClient(conversationId: $conversationId, draftMessage: $draftMessage) {
      _id
    }
  }
`,il=({enabled:t=!1,timeout:n=1e3,callback:r})=>{const[o,i]=(0,e.useState)(0),a=(0,e.useRef)((()=>{})),s=(0,e.useRef)((()=>{})),u=(0,e.useRef)((()=>{})),c=(0,e.useCallback)((()=>{o&&(clearTimeout(o),i(0))}),[o]),l=(0,e.useCallback)((()=>{u.current(),i(setTimeout((()=>{a.current()}),n))}),[n]),d=(0,e.useCallback)((()=>{o&&(r(),s.current())}),[o,r]);(0,e.useEffect)((()=>{s.current=l}),[l]),(0,e.useEffect)((()=>{u.current=c}),[c]),(0,e.useEffect)((()=>{a.current=d}),[d]),(0,e.useEffect)((()=>(t&&s.current(),()=>{u.current()})),[t])},al=t=>{const[n,r]=(0,e.useState)(!1),[o,i]=(0,e.useState)(!1),[a,s]=(0,e.useState)(0),u=(0,e.useRef)((()=>{})),{conversation_id:c}=Ve((e=>e.conversationState)),l=(()=>{const{liveChat:e}=Ve((e=>e.messages)),[t]=(0,_r.useMutation)(ol,{onError:e=>{console.error(e)}});return e?(e,n)=>{t({variables:{conversationId:e,draftMessage:n}})}:()=>{}})(),d=(0,e.useCallback)((()=>{l(c,t)}),[t]);(0,e.useEffect)((()=>{u.current=d}),[d]);(0,e.useEffect)((()=>{n?o||i(!0):o&&i(!1)}),[n]),il({enabled:o,callback:()=>{u.current()},timeout:5e3}),(0,e.useEffect)((()=>()=>l(c,"")),[c]);return{handleTypingResponse:(0,e.useCallback)((()=>{n||r(!0),a&&clearTimeout(a),s(setTimeout((()=>{r(!1),s(0)}),2e3))}),[n,a]),onSubmitTyping:(0,e.useCallback)((()=>{a&&clearTimeout(a),s(0),r(!1),i(!1),u.current=()=>{}}),[a])}};function sl(){return(sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const ul=(0,Zr.Z)((e=>({form:{position:"relative"},inputWrapper:({disconnected:t})=>({padding:e.spacing(1,2),display:"flex","align-items":"center","& textarea":{boxShadow:"none"},opacity:t?.33:1,transition:"opacity 500ms ease-in-out"}),input:{"&::placeholder":{color:rl.Z[600],opacity:1}},formWrapper:{flex:1},buttonWrapper:{flex:"0 auto",marginLeft:e.spacing(1)},hidden:{position:"absolute",left:"-10000em",width:"1px",height:"1px",overflow:"hidden"},disconnected:({disconnected:e})=>({position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",opacity:e?1:0,transition:"opacity 500ms ease-in-out",pointerEvents:"none"})}))),cl=(0,e.forwardRef)((({onSubmit:t,outstanding:n,handleTypingResponse:r,onSubmitTyping:o,message:i,setMessage:a,disconnected:s},u)=>{const{t:c}=Fr("common"),l=ul({disconnected:s}),[,d]=su();(0,e.useEffect)((()=>{d(i.length>0)}),[i]);const f=()=>{!n&&i.trim()&&(t(i),a(""),o())};return e.createElement("div",null,e.createElement("form",{onSubmit:e=>{e.preventDefault(),f()},"data-testid":"chat-input-form",className:l.form},e.createElement("div",{className:l.inputWrapper},e.createElement("div",{className:l.formWrapper},e.createElement(nl,{id:"ask-a-question-input",autoComplete:"off",autoFocus:!0,fullWidth:!0,inputProps:{className:l.input,maxLength:500,"aria-label":c("Ask a question")},multiline:!0,onChange:e=>{a(e.currentTarget.value),r()},onKeyPress:e=>{13===e.charCode&&(e.preventDefault(),f())},placeholder:c("Ask a question"),rowsMax:5,spellCheck:"false",value:i,inputRef:u,disabled:s})),e.createElement("div",{className:l.buttonWrapper},e.createElement(oa,{type:"submit","aria-label":c("Send Message"),disabled:s},e.createElement(Wu.Z,null)))),e.createElement("div",{className:l.disconnected},e.createElement(Pa,null))))}));cl.displayName="ChatInput",cl.propTypes={onSubmit:X().func.isRequired,outstanding:X().bool,handleTypingResponse:X().func.isRequired,onSubmitTyping:X().func.isRequired,message:X().string.isRequired,setMessage:X().func.isRequired,disconnected:X().bool.isRequired},cl.defaultProps={outstanding:!1};const ll=(0,e.forwardRef)((({message:t,...n},r)=>{const{handleTypingResponse:o,onSubmitTyping:i}=al(t);return e.createElement(cl,sl({ref:r,message:t,handleTypingResponse:o,onSubmitTyping:i},n))}));ll.displayName="WithTypingInterval",ll.propTypes={message:X().string.isRequired};const dl=(0,e.forwardRef)(((t,n)=>{const[r,o]=(0,e.useState)(""),{liveChat:i}=Ve((e=>e.messages)),a=Ve((e=>{const{liveChatConnected:t,liveChatHasDisconnected:n}=e.messages;return i&&n&&!t||!1}));if(i)return e.createElement(ll,sl({message:r,disconnected:a,setMessage:o},t));return e.createElement(cl,sl({ref:n,handleTypingResponse:()=>{},onSubmitTyping:()=>{},message:r,setMessage:o,disconnected:a},t))}));dl.displayName="ChatInputWrapper";const fl=dl,pl=(0,Ti.Z)(e.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var hl=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.color,s=void 0===a?"default":a,u=t.component,c=void 0===u?"button":u,l=t.disabled,d=void 0!==l&&l,f=t.disableElevation,p=void 0!==f&&f,h=t.disableFocusRipple,m=void 0!==h&&h,v=t.endIcon,g=t.focusVisibleClassName,y=t.fullWidth,b=void 0!==y&&y,E=t.size,w=void 0===E?"medium":E,x=t.startIcon,S=t.type,k=void 0===S?"button":S,C=t.variant,O=void 0===C?"text":C,T=(0,oi.Z)(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=x&&e.createElement("span",{className:(0,Ci.Z)(o.startIcon,o["iconSize".concat((0,Pi.Z)(w))])},x),N=v&&e.createElement("span",{className:(0,Ci.Z)(o.endIcon,o["iconSize".concat((0,Pi.Z)(w))])},v);return e.createElement(na,(0,ae.Z)({className:(0,Ci.Z)(o.root,o[O],i,"inherit"===s?o.colorInherit:"default"!==s&&o["".concat(O).concat((0,Pi.Z)(s))],"medium"!==w&&[o["".concat(O,"Size").concat((0,Pi.Z)(w))],o["size".concat((0,Pi.Z)(w))]],p&&o.disableElevation,d&&o.disabled,b&&o.fullWidth),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:(0,Ci.Z)(o.focusVisible,g),ref:n,type:k},T),e.createElement("span",{className:o.label},_,r,N))}));const ml=(0,Oi.Z)((function(e){return{root:(0,ae.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,Bi.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Bi.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Bi.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,Bi.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,Bi.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,Bi.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,Bi.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(hl);function vl(e){return e&&e.ownerDocument||document}function gl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const yl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function bl(e){const t=[],n=[];return Array.from(e.querySelectorAll(yl)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function El(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getDoc:a,getTabbable:s=bl,isEnabled:u,open:c,allowClickOutside:l=!1}=t,d=e.useRef(),f=e.useRef(null),p=e.useRef(null),h=e.useRef(),m=e.useRef(null),v=e.useRef(!1),g=e.useRef(null),y=(b=n.ref,E=g,e.useMemo((()=>null==b&&null==E?null:e=>{gl(b,e),gl(E,e)}),[b,E]));var b,E;const w=e.useRef(null),x=e.useRef();e.useEffect((()=>{x.current=c}),[c]),x.current||!c||"undefined"==typeof window||r||(h.current=a().activeElement),e.useEffect((()=>{c&&g.current&&(v.current=!r)}),[r,c]),e.useEffect((()=>{if(!c||!g.current)return;const e=vl(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),v.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}}),[c]);const[S,k]=e.useState(!1),C=e.useCallback((e=>{const t=g.current.contains(e.target);k(!t)}),[S]);e.useEffect((()=>{const e=vl(g.current);return l&&c&&e.addEventListener("mouseup",C),()=>{e.removeEventListener("mouseup",C)}}),[c,l]),e.useEffect((()=>{c||k(!1)}),[c]),e.useEffect((()=>{if(!c||!g.current||S)return;const e=vl(g.current),t=t=>{const{current:n}=g;if(null!==n)if(e.hasFocus()&&!o&&u()&&!d.current){if(!n.contains(e.activeElement)){if(t&&m.current!==t.target||e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!v.current)return;let o=[];if(e.activeElement!==f.current&&e.activeElement!==p.current||(o=s(g.current)),o.length>0){var r,i;const e=Boolean((null===(r=w.current)||void 0===r?void 0:r.shiftKey)&&"Tab"===(null===(i=w.current)||void 0===i?void 0:i.key)),t=o[0],n=o[o.length-1];e?n.focus():t.focus()}else n.focus()}}else d.current=!1},n=t=>{w.current=t,!o&&u()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(d.current=!0,p.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[r,o,i,u,c,s,S]);const O=e=>{v.current||(h.current=e.relatedTarget),v.current=!0};return e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,onFocus:O,ref:f,"data-test":"sentinelStart"}),e.cloneElement(n,{ref:y,onFocus:e=>{v.current||(h.current=e.relatedTarget),v.current=!0,m.current=e.target;const t=n.props.onFocus;t&&t(e)}}),e.createElement("div",{tabIndex:0,onFocus:O,ref:p,"data-test":"sentinelEnd"}))}El.propTypes={children:X().element,disableAutoFocus:X().bool,disableEnforceFocus:X().bool,disableRestoreFocus:X().bool,getDoc:X().func.isRequired,getTabbable:X().func,isEnabled:X().func.isRequired,open:X().bool.isRequired,allowClickOutside:X().bool},El.defaultProps={children:null,disableAutoFocus:!1,disableEnforceFocus:!1,disableRestoreFocus:!1,getTabbable:bl,allowClickOutside:!1};const wl=El;var xl=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Sl=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},kl=300,Cl=(0,Zr.Z)((function(e){return{backdropLayer:{position:"relative",width:"100%"},content:{color:"#fff",display:"flex",flexDirection:"column",wordBreak:"break-word"},contentInner:{height:0,overflow:"hidden",transition:"all ".concat(kl,"ms ease-out"),visibility:"hidden"},contentInnerOpened:{height:function(e){var t=e.appBarHeight,n=e.backdropHeight;return"".concat(n+(64-t),"px")},visibility:"visible"},trapFocusOpened:{visibility:"visible"},trapFocusClosed:{visibility:"hidden"},closeButton:{padding:e.spacing(.5)},closeButtonWrapper:{display:"flex",justifyContent:"center",marginTop:e.spacing(1),width:"100%"},curve:{backgroundColor:"#fff",borderBottomLeftRadius:0,borderBottomRightRadius:0,height:0,transition:"all ".concat(kl,"ms ease-out")},curveOpen:{borderBottomLeftRadius:e.spacing(1),borderBottomRightRadius:e.spacing(1),height:"8px"},topLayer:{backgroundColor:"#fff",display:"flex",flexDirection:"column",flexGrow:1,overflowX:"hidden",overflowY:"auto",position:"relative",zIndex:1},wrapper:{backgroundColor:e.palette.primary.main,display:"flex",flexDirection:"column",flexGrow:1,minHeight:"0px",overflowX:"hidden",overflowY:"hidden",position:"relative"},colorAction:{color:e.palette.primary.contrastText}}})),Ol=function(t,n){var r=xl((0,e.useState)(0),2),o=r[0],i=r[1],a=(0,e.useRef)(null),s=(0,e.useRef)(null),u=(0,e.useCallback)((function(){var e;if(null===(e=s.current)||void 0===e?void 0:e.offsetHeight){var t=s.current.offsetHeight;i(t),a.current!==t&&(a.current=t,setTimeout(u,50))}}),[]);(0,e.useEffect)((function(){setTimeout(u,50)}),Sl([t,u],xl(n),!1)),(0,e.useEffect)((function(){var e=function(){return setTimeout(u,kl)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[u]);var c=(0,e.useRef)(null),l=(0,e.useRef)(null),d=(0,e.useRef)(!1);return(0,e.useEffect)((function(){var e=function(){c.current&&(d.current||(l.current=c.current.scrollTop+c.current.offsetHeight))};return e(),c.current&&c.current.addEventListener("scroll",e),function(){c.current&&c.current.removeEventListener("scroll",e)}}),[]),(0,e.useEffect)((function(){!function(e,t,n,r){var o;e();var i=function(e){return void 0===e&&(e=!1),function(a){o||(o=a),t(),a<o+r?requestAnimationFrame(i()):e?n():setTimeout((function(){requestAnimationFrame(i(!0))}),50)}};requestAnimationFrame(i())}((function(){d.current=!0}),(function(){if(c.current&&l.current){var e=l.current-c.current.offsetHeight;c.current.scrollTo({top:e})}}),(function(){d.current=!1}),kl)}),[t]),{backdropHeight:o,detectHeightRef:s,foregroundRef:c}};const Tl=function(t,n,r){return function(o){var i=e.forwardRef((function(i,a){var s=i.children,u=i.settings,c=t(),l=n(),d=Ol(c,r()),f=d.backdropHeight,p=d.detectHeightRef,h=d.foregroundRef,m=(0,e.useRef)(null),v=(0,e.useContext)(Vu),g=Cl({appBarHeight:v,backdropHeight:f}),y=Fr("common").t,b=Ve(er),E=null==b?void 0:b.type,w=c?g.contentInnerOpened:"",x=c?g.curveOpen:"";return(0,e.useEffect)((function(){var e=function(e){"Escape"===e.key&&l()};return c&&window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[c,l]),(0,e.useEffect)((function(){c&&E===Gn&&setTimeout((function(){var e;null===(e=m.current)||void 0===e||e.focus()}),320)}),[c,E]),e.createElement("div",{className:g.wrapper},e.createElement("div",{className:g.topLayer,ref:a},s&&s(h)),e.createElement("div",{className:c?g.trapFocusOpened:g.trapFocusClosed},e.createElement(wl,{open:c,isEnabled:function(){return c},getDoc:function(){return document},allowClickOutside:!0},e.createElement("div",{className:g.backdropLayer,role:"dialog","aria-label":y("Explore ".concat(E)),tabIndex:-1},e.createElement("div",{className:"".concat(g.curve," ").concat(x)}),c&&e.createElement("div",{className:g.closeButtonWrapper},e.createElement(ml,{className:g.closeButton,onClick:l,size:"small","aria-label":y("Close ".concat(E)),ref:m},e.createElement(pl,{color:"action",fontSize:"small",classes:{colorAction:g.colorAction}}))),e.createElement("div",{className:g.content},e.createElement("div",{className:"".concat(g.contentInner," ").concat(w)},e.createElement(o,{ref:p,settings:u})))))))}));return i.displayName="Backdrop(".concat(o.displayName,")"),i}};var _l=n(941),Nl=n(8016),Rl=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.raised,a=void 0!==i&&i,s=(0,oi.Z)(t,["classes","className","raised"]);return e.createElement(Di,(0,ae.Z)({className:(0,Ci.Z)(r.root,o),elevation:a?8:1,ref:n},s))}));const Pl=(0,Oi.Z)({root:{overflow:"hidden"}},{name:"MuiCard"})(Rl);var Il=["video","audio","picture","iframe","img"],Al=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.component,s=void 0===a?"div":a,u=t.image,c=t.src,l=t.style,d=(0,oi.Z)(t,["children","classes","className","component","image","src","style"]),f=-1!==Il.indexOf(s),p=!f&&u?(0,ae.Z)({backgroundImage:'url("'.concat(u,'")')},l):l;return e.createElement(s,(0,ae.Z)({className:(0,Ci.Z)(o.root,i,f&&o.media,-1!=="picture img".indexOf(s)&&o.img),ref:n,style:p,src:f?u||c:void 0},d),r)}));const Ml=(0,Oi.Z)({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(Al);var Ll=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.component,a=void 0===i?"div":i,s=(0,oi.Z)(t,["classes","className","component"]);return e.createElement(a,(0,ae.Z)({className:(0,Ci.Z)(r.root,o),ref:n},s))}));const Dl=(0,Oi.Z)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(Ll);var jl=e.forwardRef((function(t,n){var r=t.disableSpacing,o=void 0!==r&&r,i=t.classes,a=t.className,s=(0,oi.Z)(t,["disableSpacing","classes","className"]);return e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(i.root,a,!o&&i.spacing),ref:n},s))}));const Fl=(0,Oi.Z)({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiCardActions"})(jl);var Zl=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.collapsedHeight,s=void 0===a?"0px":a,u=t.component,c=void 0===u?"div":u,l=t.disableStrictModeCompat,d=void 0!==l&&l,f=t.in,p=t.onEnter,h=t.onEntered,m=t.onEntering,v=t.onExit,g=t.onExited,y=t.onExiting,b=t.style,E=t.timeout,w=void 0===E?wa.x9.standard:E,x=t.TransitionComponent,S=void 0===x?mi:x,k=(0,oi.Z)(t,["children","classes","className","collapsedHeight","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=gi(),O=e.useRef(),T=e.useRef(null),_=e.useRef(),N="number"==typeof s?"".concat(s,"px"):s;e.useEffect((function(){return function(){clearTimeout(O.current)}}),[]);var R=C.unstable_strictMode&&!d,P=e.useRef(null),I=(0,Ei.Z)(n,R?P:void 0),A=function(e){return function(t,n){if(e){var r=R?[P.current,t]:[t,n],o=(0,Nr.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},M=A((function(e,t){e.style.height=N,p&&p(e,t)})),L=A((function(e,t){var n=T.current?T.current.clientHeight:0,r=bi({style:b,timeout:w},{mode:"enter"}).duration;if("auto"===w){var o=C.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),_.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),m&&m(e,t)})),D=A((function(e,t){e.style.height="auto",h&&h(e,t)})),j=A((function(e){var t=T.current?T.current.clientHeight:0;e.style.height="".concat(t,"px"),v&&v(e)})),F=A(g),Z=A((function(e){var t=T.current?T.current.clientHeight:0,n=bi({style:b,timeout:w},{mode:"exit"}).duration;if("auto"===w){var r=C.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),_.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=N,y&&y(e)}));return e.createElement(S,(0,ae.Z)({in:f,onEnter:M,onEntered:D,onEntering:L,onExit:j,onExited:F,onExiting:Z,addEndListener:function(e,t){var n=R?e:t;"auto"===w&&(O.current=setTimeout(n,_.current||0))},nodeRef:R?P:void 0,timeout:"auto"===w?null:w},k),(function(t,n){return e.createElement(c,(0,ae.Z)({className:(0,Ci.Z)(o.container,i,{entered:o.entered,exited:!f&&"0px"===N&&o.hidden}[t]),style:(0,ae.Z)({minHeight:N},b),ref:I},n),e.createElement("div",{className:o.wrapper,ref:T},e.createElement("div",{className:o.wrapperInner},r)))}))}));Zl.muiSupportAuto=!0;const Ul=(0,Oi.Z)((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Zl);var Bl=n(2997);const zl=(0,Zr.Z)((e=>({aspectWrapper:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden"},duration:{display:"inline-block",paddingLeft:"6px"},link:{color:e.palette.link?e.palette.link:e.palette.primary.dark},expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},expandOpen:{transform:"rotate(180deg)"},imageRemoved:{backgroundColor:rl.Z[200],color:rl.Z[600],textAlign:"center"},oneLine:{display:"flex",alignItems:"center","& > *":{marginRight:e.spacing(1)}},webpageCard:{marginBottom:e.spacing(3),padding:e.spacing(0,3),"& a":{textDecoration:"none"}},videoCard:{marginBottom:e.spacing(3),padding:e.spacing(0,3)},imageCard:{marginBottom:e.spacing(3),padding:e.spacing(0,3)},fileCard:{marginBottom:e.spacing(3),padding:e.spacing(0,3)}})));function Vl({image:t,classes:n,language:r,onDownload:o}){return(t=>{const[n,r]=(0,e.useState)(!0);return(0,e.useEffect)((()=>{const e=new Image;e.onload=()=>r(!0),e.onerror=()=>r(!1),e.src=t}),[t]),n})(t.url)?e.createElement("div",{className:n.imageCard},e.createElement(Pl,null,e.createElement(Ml,{component:"img",image:t.url}),e.createElement(Dl,null,e.createElement(Mi,{component:"div",variant:"h5",color:"textPrimary"},$t(t.title,r))),e.createElement(Fl,null,e.createElement(ml,{onClick:o},"Open Image")))):e.createElement(ca,{className:n.imageRemoved,component:"div"},e.createElement(da,{primary:"Image removed by operator"}))}Vl.propTypes={image:X().object.isRequired,classes:X().object.isRequired,language:X().string.isRequired,onDownload:X().func.isRequired};const ql=e.forwardRef((({resource:t,cbID:n,language:r,classes:o,showVideo:i,singleWebsite:a},s)=>{const{t:u}=Fr("common"),c={...zl({thumb:t.url}),...o},[l,d]=(0,e.useState)(!1),f=(0,e.useCallback)((()=>{d(!l)}),[l]),p=(0,e.useContext)(Go);switch(t.type.toLowerCase()){case"video":{let o=[];t.nid?o.push(t.nid):o=t.nids;const a=$t(t.title,r),s=u("fatv-video-player");let l='<iframe style="position: absolute !important;';return l+=" left: 0 !important; top: 0 !important;",l+=' width: 100% !important; height: 100% !important;"',l+='  src="https://embed.ocelotbot.com/cms/embed/cbvideo/',l+=encodeURIComponent(o.join(" ")),l+=`?thumbEmbed&language=${r}&current_entity=${n}"`,l+=' allowfullscreen="true"',l+=' width="100%" height="100%" scrolling="no" frameborder="0"',l+=` title="${s} | ${a}" />`,e.createElement("div",{className:c.videoCard},e.createElement(Pl,null,e.createElement(Ml,{src:`https://embed.ocelotbot.com/api/thumbnail/${o[0]}`},i&&e.createElement("div",{"aria-live":"off",className:c.aspectWrapper,dangerouslySetInnerHTML:{__html:l}})),e.createElement(Dl,null,e.createElement(Mi,{component:"p"},a,e.createElement(Mi,{varient:"caption",classes:{root:c.duration},component:"span"},(e=>{const t=parseInt(e,10);return[Math.floor(t/3600)%24,Math.floor(t/60)%60,t%60].map((e=>e<10?`0${e}`:e)).filter(((e,t)=>"00"!==e||t>0)).join(":")})(t.duration))))))}case"webpage":{const{url:n}=t,o=null==n?void 0:n.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i),i=(o&&o[1])!==window.location.hostname,d=i?"_blank":"_self",h=i?"noopener":"",m=e=>{const t=new RegExp("https://ai.ocelotbot.com/attachment");e.currentTarget.getAttribute("tracked")||t.test(n)||(gn(n,p),e.currentTarget.setAttribute("tracked",!0))};return e.createElement("div",{className:c.webpageCard},e.createElement(Pl,null,a&&e.createElement(Dl,null,e.createElement("a",{href:t.url,ref:s,tabIndex:"0",target:d,rel:h,onClick:m},e.createElement(Mi,{component:"div",variant:"h5",color:"textPrimary"},$t(t.title,r)),e.createElement(Mi,{component:"div",variant:"subtitle1",color:"textSecondary"},Gt(t.url),i?e.createElement(Bl.Z,{fontSize:"small",style:{verticalAlign:"text-top"}}):null)),e.createElement(Mi,{component:"div",variant:"body2"},e.createElement("span",{dangerouslySetInnerHTML:{__html:t.snippet?$t(t.snippet,r):""}}))),e.createElement(Fl,null,a?e.createElement(ml,{color:"primary",component:"a",href:t.url,target:d,rel:h,onClick:m,"data-testid":"descriptiveWebLink","aria-label":u("visiturl",{webpage:$t(t.title,r)})},e.createElement(Mi,{variant:"button",className:c.link},t.actionLabel?$t(t.actionLabel,r):u("Visit Page"))):e.createElement(Dl,null,e.createElement("a",{href:t.url},e.createElement(Mi,{component:"div",variant:"h5",color:"textPrimary"},$t(t.title,r))),e.createElement("a",{href:t.url},e.createElement(Mi,{component:"div",variant:"subtitle1",color:"textSecondary"},Gt(t.url)))),!a&&e.createElement(oa,{className:`${c.expand} ${l?c.expandOpen:""}`,onClick:f,"aria-expanded":l,"aria-label":"Show more"},e.createElement(Nl.Z,null))),!a&&e.createElement(Ul,{in:l,timeout:"auto",unmountOnExit:!0},e.createElement(Dl,null,e.createElement(Mi,{component:"div",variant:"body2"},e.createElement("span",{dangerouslySetInnerHTML:{__html:t.snippet?`${$t(t.snippet,r)}...`:""}}))))))}case"file":{const n=()=>{window.open(t.url)};return/image\//.test(t.contentType)?e.createElement(Vl,{image:t,classes:c,language:r,onDownload:n}):e.createElement("div",{className:c.fileCard},e.createElement(Pl,null,e.createElement(Dl,null,e.createElement("div",{className:c.oneLine},e.createElement(_l.Z,null),e.createElement(Mi,{component:"div",variant:"h5",color:"textPrimary"},$t(t.title,r)))),e.createElement(Fl,null,e.createElement(ml,{onClick:n},"Open File"))))}default:return e.createElement("div",null,"Unsupported Media")}}));ql.propTypes={resource:X().object.isRequired,cbID:X().number.isRequired,language:X().string.isRequired,classes:X().object,showVideo:X().bool,singleWebsite:X().bool},ql.defaultProps={classes:{},showVideo:!0,singleWebsite:!0},ql.displayName="Resource";const Wl=ql;function Hl({cbid:t,data:n,language:r}){const{t:o}=Fr("common"),i=Ve(Yn),a=(0,e.useRef)(null);return(0,e.useEffect)((()=>{i&&setTimeout((()=>{var e;null===(e=a.current)||void 0===e||e.focus()}),320)}),[i,a]),e.createElement(Rc,{"aria-label":o("Links")},(n||[]).map(((n,o)=>e.createElement(Wl,{cbID:t,key:n.title[r],language:r,resource:n,showVideo:!1,singleWebsite:!0,ref:0===o?a:null}))))}Hl.propTypes={cbid:X().number.isRequired,data:X().array.isRequired,language:X().string.isRequired};const Gl=Hl,$l=(0,Zr.Z)((({palette:e})=>({list:{marginTop:0},button:{wordBreak:"break-word",width:"100%","&:focus-visible":{border:`1px solid ${e.primary.contrastText}`}},buttonLabel:{fontWeight:500,color:e.primary.contrastText}})));function Ql({data:t,language:n,settings:r}){const o=Ze(),i=(0,e.useContext)(Go),a=$l(),{t:s}=Fr("common"),u=Ve(Yn),c=(0,e.useRef)(null);(0,e.useEffect)((()=>{u&&setTimeout((()=>{var e;null===(e=c.current)||void 0===e||e.focusVisible()}),320)}),[u]);return e.createElement(Rc,{"aria-label":s("Suggestions")},(t||[]).map(((t,s)=>{const u=$t(t,n);return e.createElement(ca,{key:u},e.createElement(ml,{classes:{root:a.button,label:a.buttonLabel},onClick:()=>{return e=u,void("review"!==r.interfaceType&&o(yn(i,e,{viaExplore:!0})));var e},variant:"outlined",color:"inherit",action:0===s?c:null,ref:0===s?c:null},u))})))}Ql.propTypes={data:X().array.isRequired,language:X().string.isRequired,settings:X().object.isRequired};const Kl=Ql,Yl=({cbid:t,data:n,language:r})=>n.map(((n,o)=>e.createElement(Wl,{key:Number(o),resource:n,singleWebsite:!1,cbID:t,language:r})));Yl.propTypes={cbid:X().number.isRequired,data:X().array.isRequired,language:X().string.isRequired};const Xl=Yl,Jl=(0,Zr.Z)((e=>({tabBody:{maxHeight:`calc(100vh - 253px - ${e.spacing(1)}px)`,overflowY:"auto"},tabHeader:{marginTop:e.spacing(1)},tabLabel:{color:"#fff"}}))),ed=e.forwardRef((({settings:t},n)=>{const r=Ve(er),o=Ve((e=>e.language)),i=Jl();return e.createElement("div",{className:i.tabBody,ref:n},r&&((t,n,r)=>{switch(t.type){case $n:return e.createElement(Gl,{cbid:n.cbid,data:t.links,key:"links",language:r});case Hn:return e.createElement(Kl,{data:t.suggestions,key:"suggestions",language:r,settings:n});case Gn:return e.createElement(Xl,{cbid:n.cbid,data:t.videos,key:"videos",language:r});default:return console.error(`Unknown explore data type: ${t.type}`),null}})(r,t,o))}));ed.displayName="ExplorePane",ed.propTypes={settings:X().object.isRequired};const td=Tl((()=>Ve(Yn)),(()=>{const e=Ze();return()=>e({type:En,open:!1})}),(()=>[Ve(Xn)]))(ed);var nd=n(5292),rd=n(3111),od=n(2047),id=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.component,s=void 0===a?"div":a,u=t.onChange,c=t.showLabels,l=void 0!==c&&c,d=t.value,f=(0,oi.Z)(t,["children","classes","className","component","onChange","showLabels","value"]);return e.createElement(s,(0,ae.Z)({className:(0,Ci.Z)(o.root,i),ref:n},f),e.Children.map(r,(function(t,n){if(!e.isValidElement(t))return null;var r=void 0===t.props.value?n:t.props.value;return e.cloneElement(t,{selected:r===d,showLabel:void 0!==t.props.showLabel?t.props.showLabel:l,value:r,onChange:u})})))}));const ad=(0,Oi.Z)((function(e){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper}}}),{name:"MuiBottomNavigation"})(id);var sd=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.icon,a=t.label,s=t.onChange,u=t.onClick,c=t.selected,l=t.showLabel,d=t.value,f=(0,oi.Z)(t,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"]);return e.createElement(na,(0,ae.Z)({ref:n,className:(0,Ci.Z)(r.root,o,c?r.selected:!l&&r.iconOnly),focusRipple:!0,onClick:function(e){s&&s(e,d),u&&u(e)}},f),e.createElement("span",{className:r.wrapper},i,e.createElement("span",{className:(0,Ci.Z)(r.label,c?r.selected:!l&&r.iconOnly)},a)))}));const ud=(0,Oi.Z)((function(e){return{root:{transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:e.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:16},"&$selected":{paddingTop:6,color:e.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:e.typography.pxToRem(14)}}}}),{name:"MuiBottomNavigationAction"})(sd),cd=(0,Zr.Z)((e=>({bottomNavRoot:{margin:e.spacing(1,0)},bottomNavActionWrapper:{paddingTop:e.spacing(.5)},button:{"&:disabled":{opacity:.4}}}))),ld=(e,t)=>e&&e[t]?e[t].length:0;const dd=function(){const t=Ze(),n=Ve(Xn),r=Ve(Yn),o=(t=>[{count:ld(t,"suggestions"),icon:e.createElement(rd.Z,null),label:zt.t("Suggestions")},{count:ld(t,"videos"),icon:e.createElement(od.Z,null),label:zt.t("Videos")},{count:ld(t,"links"),icon:e.createElement(nd.Z,null),label:zt.t("Links")}])(Ve(Jn)),i=cd(),a=(e,n)=>{t({type:wn,tabIndex:n})};return o.reduce(((e,t)=>e+t.count),0)>0?e.createElement(e.Fragment,null,e.createElement(zu,null),e.createElement(ad,{classes:{root:i.bottomNavRoot},onChange:a,showLabels:!0,value:r?n:null},o.map((t=>e.createElement(ud,{classes:{wrapper:i.bottomNavActionWrapper,root:i.button},disabled:0===t.count,icon:t.count>0?e.createElement(Oa,{badgeContent:t.count,color:t.count>0?"secondary":"error"},t.icon):e.createElement(e.Fragment,null,t.icon),key:t.label,label:t.label}))))):e.createElement("div",null)};function fd(e){return e.substring(2).toLowerCase()}const pd=function(n){var r=n.children,o=n.disableReactTree,i=void 0!==o&&o,a=n.mouseEvent,s=void 0===a?"onClick":a,u=n.onClickAway,c=n.touchEvent,l=void 0===c?"onTouchEnd":c,d=e.useRef(!1),f=e.useRef(null),p=e.useRef(!1),h=e.useRef(!1);e.useEffect((function(){return setTimeout((function(){p.current=!0}),0),function(){p.current=!1}}),[]);var m=e.useCallback((function(e){f.current=t.findDOMNode(e)}),[]),v=(0,Ei.Z)(r.ref,m),g=(0,zi.Z)((function(e){var t=h.current;if(h.current=!1,p.current&&f.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(d.current)d.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(f.current)>-1;else n=!(0,cu.Z)(f.current).documentElement.contains(e.target)||f.current.contains(e.target);n||!i&&t||u(e)}})),y=function(e){return function(t){h.current=!0;var n=r.props[e];n&&n(t)}},b={ref:v};return!1!==l&&(b[l]=y(l)),e.useEffect((function(){if(!1!==l){var e=fd(l),t=(0,cu.Z)(f.current),n=function(){d.current=!0};return t.addEventListener(e,g),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,g),t.removeEventListener("touchmove",n)}}}),[g,l]),!1!==s&&(b[s]=y(s)),e.useEffect((function(){if(!1!==s){var e=fd(s),t=(0,cu.Z)(f.current);return t.addEventListener(e,g),function(){t.removeEventListener(e,g)}}}),[g,s]),e.createElement(e.Fragment,null,e.cloneElement(r,b))};var hd=e.forwardRef((function(t,n){var r=t.action,o=t.classes,i=t.className,a=t.message,s=t.role,u=void 0===s?"alert":s,c=(0,oi.Z)(t,["action","classes","className","message","role"]);return e.createElement(Di,(0,ae.Z)({role:u,square:!0,elevation:6,className:(0,Ci.Z)(o.root,i),ref:n},c),e.createElement("div",{className:o.message},a),r?e.createElement("div",{className:o.action},r):null)}));const md=(0,Oi.Z)((function(e){var t="light"===e.palette.type?.8:.98,n=(0,Bi._4)(e.palette.background.default,t);return{root:(0,ae.Z)({},e.typography.body2,(0,C.Z)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(hd);var vd=e.forwardRef((function(t,n){var r=t.action,o=t.anchorOrigin,i=(o=void 0===o?{vertical:"bottom",horizontal:"center"}:o).vertical,a=o.horizontal,s=t.autoHideDuration,u=void 0===s?null:s,c=t.children,l=t.classes,d=t.className,f=t.ClickAwayListenerProps,p=t.ContentProps,h=t.disableWindowBlurListener,m=void 0!==h&&h,v=t.message,g=t.onClose,y=t.onEnter,b=t.onEntered,E=t.onEntering,w=t.onExit,x=t.onExited,S=t.onExiting,k=t.onMouseEnter,C=t.onMouseLeave,O=t.open,T=t.resumeHideDuration,_=t.TransitionComponent,N=void 0===_?ki:_,R=t.transitionDuration,P=void 0===R?{enter:wa.x9.enteringScreen,exit:wa.x9.leavingScreen}:R,I=t.TransitionProps,A=(0,oi.Z)(t,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),M=e.useRef(),L=e.useState(!0),D=L[0],j=L[1],F=(0,zi.Z)((function(){g&&g.apply(void 0,arguments)})),Z=(0,zi.Z)((function(e){g&&null!=e&&(clearTimeout(M.current),M.current=setTimeout((function(){F(null,"timeout")}),e))}));e.useEffect((function(){return O&&Z(u),function(){clearTimeout(M.current)}}),[O,u,Z]);var U=function(){clearTimeout(M.current)},B=e.useCallback((function(){null!=u&&Z(null!=T?T:.5*u)}),[u,T,Z]);return e.useEffect((function(){if(!m&&O)return window.addEventListener("focus",B),window.addEventListener("blur",U),function(){window.removeEventListener("focus",B),window.removeEventListener("blur",U)}}),[m,B,O]),!O&&D?null:e.createElement(pd,(0,ae.Z)({onClickAway:function(e){g&&g(e,"clickaway")}},f),e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(l.root,l["anchorOrigin".concat((0,Pi.Z)(i)).concat((0,Pi.Z)(a))],d),onMouseEnter:function(e){k&&k(e),U()},onMouseLeave:function(e){C&&C(e),B()},ref:n},A),e.createElement(N,(0,ae.Z)({appear:!0,in:O,onEnter:(0,pu.Z)((function(){j(!1)}),y),onEntered:b,onEntering:E,onExit:w,onExited:(0,pu.Z)((function(){j(!0)}),x),onExiting:S,timeout:P,direction:"top"===i?"down":"up"},I),c||e.createElement(md,(0,ae.Z)({message:v,action:r},p)))))}));const gd=(0,Oi.Z)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},s={right:24},u={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,ae.Z)({},t,(0,C.Z)({},e.breakpoints.up("sm"),(0,ae.Z)({},i,c))),anchorOriginBottomCenter:(0,ae.Z)({},n,(0,C.Z)({},e.breakpoints.up("sm"),(0,ae.Z)({},a,c))),anchorOriginTopRight:(0,ae.Z)({},t,r,(0,C.Z)({},e.breakpoints.up("sm"),(0,ae.Z)({left:"auto"},i,s))),anchorOriginBottomRight:(0,ae.Z)({},n,r,(0,C.Z)({},e.breakpoints.up("sm"),(0,ae.Z)({left:"auto"},a,s))),anchorOriginTopLeft:(0,ae.Z)({},t,o,(0,C.Z)({},e.breakpoints.up("sm"),(0,ae.Z)({right:"auto"},i,u))),anchorOriginBottomLeft:(0,ae.Z)({},n,o,(0,C.Z)({},e.breakpoints.up("sm"),(0,ae.Z)({right:"auto"},a,u)))}}),{flip:!1,name:"MuiSnackbar"})(vd);var yd={enter:wa.x9.enteringScreen,exit:wa.x9.leavingScreen},bd=e.forwardRef((function(t,n){var r=t.BackdropProps,o=t.children,i=t.classes,a=t.className,s=t.disableBackdropClick,u=void 0!==s&&s,c=t.disableEscapeKeyDown,l=void 0!==c&&c,d=t.fullScreen,f=void 0!==d&&d,p=t.fullWidth,h=void 0!==p&&p,m=t.maxWidth,v=void 0===m?"sm":m,g=t.onBackdropClick,y=t.onClose,b=t.onEnter,E=t.onEntered,w=t.onEntering,x=t.onEscapeKeyDown,S=t.onExit,k=t.onExited,C=t.onExiting,O=t.open,T=t.PaperComponent,_=void 0===T?Di:T,N=t.PaperProps,R=void 0===N?{}:N,P=t.scroll,I=void 0===P?"paper":P,A=t.TransitionComponent,M=void 0===A?Ru:A,L=t.transitionDuration,D=void 0===L?yd:L,j=t.TransitionProps,F=t["aria-describedby"],Z=t["aria-labelledby"],U=(0,oi.Z)(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),B=e.useRef();return e.createElement(Tu,(0,ae.Z)({className:(0,Ci.Z)(i.root,a),BackdropComponent:Iu,BackdropProps:(0,ae.Z)({transitionDuration:D},r),closeAfterTransition:!0,disableBackdropClick:u,disableEscapeKeyDown:l,onEscapeKeyDown:x,onClose:y,open:O,ref:n},U),e.createElement(M,(0,ae.Z)({appear:!0,in:O,timeout:D,onEnter:b,onEntering:w,onEntered:E,onExit:S,onExiting:C,onExited:k,role:"none presentation"},j),e.createElement("div",{className:(0,Ci.Z)(i.container,i["scroll".concat((0,Pi.Z)(I))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===B.current&&(B.current=null,g&&g(e),!u&&y&&y(e,"backdropClick"))},onMouseDown:function(e){B.current=e.target}},e.createElement(_,(0,ae.Z)({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":Z},R,{className:(0,Ci.Z)(i.paper,i["paperScroll".concat((0,Pi.Z)(I))],i["paperWidth".concat((0,Pi.Z)(String(v)))],R.className,f&&i.paperFullScreen,h&&i.paperFullWidth)}),o))))}));const Ed=(0,Oi.Z)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,C.Z)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,C.Z)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,C.Z)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,C.Z)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,C.Z)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(bd);var wd=e.forwardRef((function(t,n){var r=t.disableSpacing,o=void 0!==r&&r,i=t.classes,a=t.className,s=(0,oi.Z)(t,["disableSpacing","classes","className"]);return e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(i.root,a,!o&&i.spacing),ref:n},s))}));const xd=(0,Oi.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(wd);var Sd=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.disableTypography,s=void 0!==a&&a,u=(0,oi.Z)(t,["children","classes","className","disableTypography"]);return e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(o.root,i),ref:n},u),s?r:e.createElement(Mi,{component:"h2",variant:"h6"},r))}));const kd=(0,Oi.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(Sd);var Cd=n(5656);function Od(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,dr.Z)(),o=(0,uu.Z)({theme:r,name:"MuiUseMediaQuery",props:{}});var i="function"==typeof t?t(r):t;i=i.replace(/^@media( ?)/m,"");var a="undefined"!=typeof window&&void 0!==window.matchMedia,s=(0,ae.Z)({},o,n),u=s.defaultMatches,c=void 0!==u&&u,l=s.matchMedia,d=void 0===l?a?window.matchMedia:null:l,f=s.noSsr,p=void 0!==f&&f,h=s.ssrMatchMedia,m=void 0===h?null:h,v=e.useState((function(){return p&&a?d(i).matches:m?m(i).matches:c})),g=v[0],y=v[1];return e.useEffect((function(){var e=!0;if(a){var t=d(i),n=function(){e&&y(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[i,d,a]),g}var Td=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?Cd.X.indexOf(t)<=Cd.X.indexOf(e):Cd.X.indexOf(t)<Cd.X.indexOf(e)},_d="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const Nd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=t.withTheme,o=void 0!==r&&r,i=t.noSSR,a=void 0!==i&&i,s=t.initialWidth;function u(t){var r=gi(),i=t.theme||r,u=(0,uu.Z)({theme:i,name:"MuiWithWidth",props:(0,ae.Z)({},t)}),c=u.initialWidth,l=u.width,d=(0,oi.Z)(u,["initialWidth","width"]),f=e.useState(!1),p=f[0],h=f[1];_d((function(){h(!0)}),[]);var m=i.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=Od(i.breakpoints.up(t));return!e&&n?t:e}),null),v=(0,ae.Z)({width:l||(p||a?m:void 0)||c||s},o?{theme:i}:{},d);return void 0===v.width?null:e.createElement(n,v)}return ce()(u,n),u}};const Rd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=t.breakpoint,o=void 0===r?"sm":r;return Nd()((function(t){return e.createElement(n,(0,ae.Z)({fullScreen:Td(o,t.width)},t))}))}};var Pd=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.disabled,s=void 0!==a&&a,u=t.disableFocusRipple,c=void 0!==u&&u,l=t.onChange,d=t.onClick,f=t.selected,p=t.size,h=void 0===p?"medium":p,m=t.value,v=(0,oi.Z)(t,["children","classes","className","disabled","disableFocusRipple","onChange","onClick","selected","size","value"]);return e.createElement(na,(0,ae.Z)({className:(0,Ci.Z)(o.root,i,s&&o.disabled,f&&o.selected,"medium"!==h&&o["size".concat((0,Pi.Z)(h))]),disabled:s,focusRipple:!c,ref:n,onClick:function(e){d&&(d(e,m),e.isDefaultPrevented())||l&&l(e,m)},onChange:l,value:m,"aria-pressed":f},v),e.createElement("span",{className:o.label},r))}));const Id=(0,Oi.Z)((function(e){return{root:(0,ae.Z)({},e.typography.button,{boxSizing:"border-box",borderRadius:e.shape.borderRadius,padding:11,border:"1px solid ".concat((0,Bi.U1)(e.palette.action.active,.12)),color:(0,Bi.U1)(e.palette.action.active,.38),"&$selected":{color:e.palette.action.active,backgroundColor:(0,Bi.U1)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,Bi.U1)(e.palette.action.active,.15)},"& + &":{borderLeft:0,marginLeft:0}},"&$disabled":{color:(0,Bi.U1)(e.palette.action.disabled,.12)},"&:hover":{textDecoration:"none",backgroundColor:(0,Bi.U1)(e.palette.text.primary,.05),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}}}),disabled:{},selected:{},label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},sizeSmall:{padding:7,fontSize:e.typography.pxToRem(13)},sizeLarge:{padding:15,fontSize:e.typography.pxToRem(15)}}}),{name:"MuiToggleButton"})(Pd);function Ad(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}var Md=e.forwardRef((function(t,n){var r=t.children,o=t.classes,i=t.className,a=t.exclusive,s=void 0!==a&&a,u=t.onChange,c=t.orientation,l=void 0===c?"horizontal":c,d=t.size,f=void 0===d?"medium":d,p=t.value,h=(0,oi.Z)(t,["children","classes","className","exclusive","onChange","orientation","size","value"]),m=function(e,t){if(u){var n,r=p&&p.indexOf(t);p&&r>=0?(n=p.slice()).splice(r,1):n=p?p.concat(t):[t],u(e,n)}},v=function(e,t){u&&u(e,p===t?null:t)};return e.createElement("div",(0,ae.Z)({role:"group",className:(0,Ci.Z)(o.root,i,"vertical"===l&&o.vertical),ref:n},h),e.Children.map(r,(function(t){return e.isValidElement(t)?e.cloneElement(t,{className:(0,Ci.Z)(o.grouped,o["grouped".concat((0,Pi.Z)(l))],t.props.className),onChange:s?v:m,selected:void 0===t.props.selected?Ad(t.props.value,p):t.props.selected,size:t.props.size||f}):null})))}));const Ld=(0,Oi.Z)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},vertical:{flexDirection:"column"},grouped:{},groupedHorizontal:{"&:not(:first-child)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-child)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}}),{name:"MuiToggleButtonGroup"})(Md),Dd=(0,Zr.Z)((e=>({desktopContainer:{alignItems:"center",background:e.palette.background.default,display:"flex",justifyContent:"space-around",margin:e.spacing(1,0),padding:e.spacing(1,2),[e.breakpoints.down("sm")]:{display:"none"}},desktopScoreLabel:{margin:e.spacing(1)},toggleButton:{width:65,[e.breakpoints.down("sm")]:{display:"flex",margin:e.spacing(2),padding:e.spacing(2)}},mobileContainer:{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",[e.breakpoints.up("md")]:{display:"none"}},col:{flex:"0 0 auto",flexBasis:"100%",maxWidth:"100%",padding:e.spacing(0,1.5)},mobileButtonWrapper:{margin:e.spacing(.5,0),width:"100%"},mobileButton:{color:"#999",padding:e.spacing(1,0)},mobileButtonPadding:{padding:e.spacing(.5,0)},mobileSelected:{color:e.palette.primary.main}}))),jd=new Array(11).fill(null).map(((e,t)=>t+0));function Fd({handleOnChange:t}){const{t:n}=Fr("common"),r=Dd(),[o,i]=(0,e.useState)(null),[a,s]=(0,e.useState)(""),u=(e,n)=>{i(n),t({score:n,additionalFeedback:a})};return e.createElement(e.Fragment,null,e.createElement("div",{className:r.desktopContainer},e.createElement("span",{className:r.desktopScoreLabel},n("Not at all likely")),e.createElement(Ld,{value:`${o}`,exclusive:!0},jd.map((t=>e.createElement(Id,{key:`score-${t}`,className:r.toggleButton,value:`${t}`,onClick:e=>u(0,t)},e.createElement(Mi,{variant:"button",color:"inherit"},t))))),e.createElement("span",{className:r.desktopScoreLabel},n("Very likely"))),e.createElement("div",{className:r.mobileContainer},jd.slice().reverse().map((t=>{const i=o===+t,a=i?"primary":"default",s=i?r.mobileSelected:"";return e.createElement(Di,{className:r.mobileButtonWrapper,key:`score-mobile-${t}`},e.createElement(ml,{color:a,className:`${r.mobileButton} ${s}`,fullWidth:!0,onClick:e=>u(0,t),variant:"outlined"},(e=>{switch(+e){case 10:return`10 – ${n("Very likely")}`;case 0:return`0 – ${n("Not at all likely")}`;default:return e}})(t)))}))),e.createElement(nl,{id:"outlined-helperText",fullWidth:!0,multiline:!0,rows:3,helperText:n("Do you have any other feedback about your experience?"),margin:"normal",variant:"outlined",onChange:e=>{s(e.target.value),t({score:o,additionalFeedback:e.target.value})}}))}Fd.propTypes={handleOnChange:X().func.isRequired};const Zd=Fd,Ud=e=>null==e;function Bd({classes:t,open:n,handleClose:r,onUpdateRating:o,rating:i,sendFeedback:a,wrapper:s,settingsName:u,t:c}){const[l,d]=(0,e.useState)(Ud(i.score));return e.createElement(Ed,{container:s,open:n,maxWidth:"lg",onClose:r,classes:{paperWidthLg:t.paperWidthLg},"aria-labelledby":"rating-dialog-title"},e.createElement(kd,{id:"rating-dialog-title",className:t.root},c("likely-to-recommend",{bot:u})),e.createElement("div",{className:t.ratingOptionsContainer},e.createElement(Zd,{handleOnChange:({score:e,additionalFeedback:t})=>{d(Ud(e)),o({score:e,additionalFeedback:t})}})),e.createElement(xd,null,e.createElement(ml,{onClick:e=>{e.preventDefault(),r()},color:"inherit"},e.createElement(Mi,{variant:"button",color:"inherit"},c("Cancel"))),e.createElement(ml,{onClick:e=>{e.preventDefault(),(()=>{const{score:e}=i;null!=e&&(a(i),r())})()},disabled:l,color:"primary"},e.createElement(Mi,{variant:"button",color:"inherit"},c("Submit")))))}Bd.propTypes={classes:X().object.isRequired,handleClose:X().func.isRequired,onUpdateRating:X().func.isRequired,rating:X().object.isRequired,open:X().bool.isRequired,sendFeedback:X().func.isRequired,settingsName:X().string.isRequired,t:X().func.isRequired,wrapper:X().object},Bd.defaultProps={wrapper:null};const zd=M(Rd(),va("common"),(0,ni.Z)((e=>({paperWidthLg:{overflowX:"hidden"},ratingOptionsContainer:{margin:e.spacing(0,5)},root:{textAlign:"center"}}))))(Bd);function Vd(){return(Vd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function qd({apiKey:t,wrapper:n,...r}){const[o,i]=(0,e.useState)({score:null,additionalFeedback:""}),a=Ze();return n&&e.createElement(zd,Vd({onUpdateRating:i,rating:o,sendFeedback:e=>{a(((e,t)=>(n,r)=>{const o=r();return fetch("https://ai.ocelotbot.com/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:t,conversation_id:o.conversationState.conversation_id,...e})}).then((e=>{if(!e.ok)throw new Error;return e.json()})).then((t=>(He().set("feedback_ratings",e,{expires:30}),n((e=>({type:"FEEDBACK_SAVED_SUCCESSFULLY",data:e}))(t)),setTimeout((()=>{}),5e3),t))).catch((()=>{He().set("feedback_ratings",e,{expires:1/24}),n(rn({output:{text:[zt.t("common:feedback-failed")],resources:[],actions:[]}}))})),{type:"SEND_FEEDBACK",ratingsData:e}})(e,t))},wrapper:n},r))}qd.propTypes={apiKey:X().string.isRequired,handleClose:X().func.isRequired,open:X().bool.isRequired,settingsName:X().string.isRequired,wrapper:X().object},qd.defaultProps={wrapper:null};const Wd=qd,Hd=(0,Zr.Z)((e=>({snackbar:{left:e.spacing(2),position:"absolute",right:e.spacing(2),transform:"none",top:e.spacing(9)},snackbarContent:{opacity:.85,width:"100%"}})));function Gd(){const{t}=Fr("common");return e.createElement("span",{id:"maxai-client-snackbar"},t("Enjoying your chat? We'd love your feedback."))}function $d({environment:t,hasUserProvidedFeedback:n,wrapper:r,chatInput:o}){const{t:i}=Fr("common"),a=Ze(),s=Hd(),u=(0,e.useContext)(Go),c=(0,e.useContext)(ei),[l,d]=(0,e.useState)(null),[f,p]=(0,e.useState)(null),[h,m]=(0,e.useState)(null),v="admin"!==t&&!!c.collectFeedback;const{showRatingDialog:g,hasFeedbackPromptOpened:y,openSnackbar:b,displayThanksNotification:E}=Ve((e=>e.feedback)),w=Ve((e=>e.messages.items)),x=w.length,S=w.filter((e=>"user"===e.type)).length,[k]=su(),C=(0,e.useRef)(null),O=(0,e.useRef)(null),T=(0,e.useRef)(null),_=e=>{C.current||(C.current=setTimeout((()=>{v&&!y&&(a(pn(!0)),a({type:"FEEDBACK_PROMPT_SHOWN",open:!0})),clearTimeout(C.current),C.current=null}),e))};(0,e.useEffect)((()=>{C.current&&(clearTimeout(C.current),C.current=null,_(5e3))}),[k]);const N=()=>{a({type:"CLEAR_FEEDBACK"}),o&&o.focus()};return(0,e.useEffect)((()=>{if(!v||y||C.current)return;const e=f?S-f+1:0;!l&&!!h&&x>h&&(d(Date.now()),p(S)),null!=l&&(Date.now()-l>75e3?_(1e3):e>=2&&_(5e3)),m(x)})),(0,e.useEffect)((()=>{v&&!n&&b&&setTimeout((()=>{O.current&&O.current.focus()}),0)}),[v,n,b]),(0,e.useEffect)((()=>{E&&T.current&&T.current.focus()}),[E]),e.createElement(e.Fragment,null,v&&e.createElement(e.Fragment,null,!n&&e.createElement(gd,{className:s.snackbar,key:"feedback",anchorOrigin:{vertical:"top",horizontal:"center"},open:b,TransitionComponent:Ru,ContentProps:{"aria-describedby":"message-id"}},e.createElement(md,{"aria-describedby":"maxai-client-snackbar","aria-label":i("rate-bot",{bot:c.name}),role:"alertdialog",className:s.snackbarContent,message:e.createElement(Gd,null),action:[e.createElement(ml,{buttonRef:O,key:"rate",color:"inherit",onClick:()=>{a(pn(!1)),a(fn(!0))}},i("rate-bot",{bot:c.name})),e.createElement(ml,{key:"dismiss",color:"inherit",onClick:()=>{a(pn(!1)),o&&o.focus()}},i("Dismiss"))]})),e.createElement(gd,{autoHideDuration:7e3,className:s.snackbar,key:"thanks",TransitionComponent:Ru,onClose:N,anchorOrigin:{vertical:"top",horizontal:"center"},open:E},e.createElement(md,{action:[e.createElement(ml,{buttonRef:T,key:"dismiss",color:"inherit",onClick:N},i("Dismiss"))],"aria-describedby":"maxai-client-snackbar",className:s.snackbarContent,message:e.createElement("span",{id:"maxai-client-snackbar"},i("Thank you for your feedback!"))})),e.createElement(Wd,{apiKey:u,dispatch:a,handleClose:()=>{a(fn(!1)),o&&o.focus()},open:g,settingsName:c.name,wrapper:r})))}$d.propTypes={environment:X().oneOf(["admin","embedded"]).isRequired,hasUserProvidedFeedback:X().string,wrapper:X().object,chatInput:X().object},$d.defaultProps={hasUserProvidedFeedback:null,wrapper:null,chatInput:null};const Qd=$d;var Kd=e.forwardRef((function(t,n){var r,o=t.classes,i=t.className,a=t.component,s=void 0===a?"li":a,u=t.disableGutters,c=void 0!==u&&u,l=t.ListItemClasses,d=t.role,f=void 0===d?"menuitem":d,p=t.selected,h=t.tabIndex,m=(0,oi.Z)(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return t.disabled||(r=void 0!==h?h:-1),e.createElement(ca,(0,ae.Z)({button:!0,role:f,tabIndex:r,component:s,selected:p,disableGutters:c,classes:(0,ae.Z)({dense:o.dense},l),className:(0,Ci.Z)(o.root,i,p&&o.selected,!c&&o.gutters),ref:n},m))}));const Yd=(0,Oi.Z)((function(e){return{root:(0,ae.Z)({},e.typography.body1,(0,C.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,ae.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(Kd);var Xd=n(7057),Jd="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,ef=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Jd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var tf=Jd&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),ef))}};function nf(e){return e&&"[object Function]"==={}.toString.call(e)}function rf(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function of(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function af(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=rf(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:af(of(e))}function sf(e){return e&&e.referenceNode?e.referenceNode:e}var uf=Jd&&!(!window.MSInputMethodContext||!document.documentMode),cf=Jd&&/MSIE 10/.test(navigator.userAgent);function lf(e){return 11===e?uf:10===e?cf:uf||cf}function df(e){if(!e)return document.documentElement;for(var t=lf(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===rf(n,"position")?df(n):n:e?e.ownerDocument.documentElement:document.documentElement}function ff(e){return null!==e.parentNode?ff(e.parentNode):e}function pf(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,u=i.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&df(a.firstElementChild)!==a?df(u):u;var c=ff(e);return c.host?pf(c.host,t):pf(e,ff(t).host)}function hf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function mf(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=hf(t,"top"),o=hf(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function vf(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function gf(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],lf(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function yf(e){var t=e.body,n=e.documentElement,r=lf(10)&&getComputedStyle(n);return{height:gf("Height",t,n,r),width:gf("Width",t,n,r)}}var bf=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ef=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),wf=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},xf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Sf(e){return xf({},e,{right:e.left+e.width,bottom:e.top+e.height})}function kf(e){var t={};try{if(lf(10)){t=e.getBoundingClientRect();var n=hf(e,"top"),r=hf(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?yf(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,u=e.offsetWidth-a,c=e.offsetHeight-s;if(u||c){var l=rf(e);u-=vf(l,"x"),c-=vf(l,"y"),o.width-=u,o.height-=c}return Sf(o)}function Cf(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=lf(10),o="HTML"===t.nodeName,i=kf(e),a=kf(t),s=af(e),u=rf(t),c=parseFloat(u.borderTopWidth),l=parseFloat(u.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Sf({top:i.top-a.top-c,left:i.left-a.left-l,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var f=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);d.top-=c-f,d.bottom-=c-f,d.left-=l-p,d.right-=l-p,d.marginTop=f,d.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=mf(d,t)),d}function Of(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Cf(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:hf(n),s=t?0:hf(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return Sf(u)}function Tf(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===rf(e,"position"))return!0;var n=of(e);return!!n&&Tf(n)}function _f(e){if(!e||!e.parentElement||lf())return document.documentElement;for(var t=e.parentElement;t&&"none"===rf(t,"transform");)t=t.parentElement;return t||document.documentElement}function Nf(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?_f(e):pf(e,sf(t));if("viewport"===r)i=Of(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=af(of(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=Cf(s,a,o);if("HTML"!==s.nodeName||Tf(a))i=u;else{var c=yf(e.ownerDocument),l=c.height,d=c.width;i.top+=u.top-u.marginTop,i.bottom=l+u.top,i.left+=u.left-u.marginLeft,i.right=d+u.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function Rf(e){return e.width*e.height}function Pf(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Nf(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return xf({key:e},s[e],{area:Rf(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function If(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?_f(t):pf(t,sf(n));return Cf(n,o,r)}function Af(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Mf(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Lf(e,t,n){n=n.split("-")[0];var r=Af(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",u=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[c]:t[Mf(s)],o}function Df(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function jf(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Df(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&nf(n)&&(t.offsets.popper=Sf(t.offsets.popper),t.offsets.reference=Sf(t.offsets.reference),t=n(t,e))})),t}function Ff(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=If(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Pf(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Lf(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=jf(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Zf(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Uf(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function Bf(){return this.state.isDestroyed=!0,Zf(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Uf("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function zf(e){var t=e.ownerDocument;return t?t.defaultView:window}function Vf(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||Vf(af(i.parentNode),t,n,r),r.push(i)}function qf(e,t,n,r){n.updateBound=r,zf(e).addEventListener("resize",n.updateBound,{passive:!0});var o=af(e);return Vf(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Wf(){this.state.eventsEnabled||(this.state=qf(this.reference,this.options,this.state,this.scheduleUpdate))}function Hf(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,zf(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Gf(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function $f(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Gf(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Qf=Jd&&/Firefox/i.test(navigator.userAgent);function Kf(e,t,n){var r=Df(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var Yf=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Xf=Yf.slice(3);function Jf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Xf.indexOf(e),r=Xf.slice(n+1).concat(Xf.slice(0,n));return t?r.reverse():r}var ep="flip",tp="clockwise",np="counterclockwise";function rp(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Df(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return Sf(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){Gf(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var op={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:wf({},u,i[u]),end:wf({},u,i[u]+i[c]-a[c])};e.offsets.popper=xf({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],u=void 0;return u=Gf(+n)?[+n,0]:rp(n,i,a,s),"left"===s?(i.top+=u[0],i.left-=u[1]):"right"===s?(i.top+=u[0],i.left+=u[1]):"top"===s?(i.left+=u[0],i.top-=u[1]):"bottom"===s&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||df(e.instance.popper);e.instance.reference===n&&(n=df(n));var r=Uf("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=Nf(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,d={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),wf({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),wf({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=xf({},l,d[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",u=a?"left":"top",c=a?"width":"height";return n[s]<i(r[u])&&(e.offsets.popper[u]=i(r[u])-n[c]),n[u]>i(r[s])&&(e.offsets.popper[u]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Kf(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",l=u?"Top":"Left",d=l.toLowerCase(),f=u?"left":"top",p=u?"bottom":"right",h=Af(r)[c];s[p]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(s[p]-h)),s[d]+h>a[p]&&(e.offsets.popper[d]+=s[d]+h-a[p]),e.offsets.popper=Sf(e.offsets.popper);var m=s[d]+s[c]/2-h/2,v=rf(e.instance.popper),g=parseFloat(v["margin"+l]),y=parseFloat(v["border"+l+"Width"]),b=m-e.offsets.popper[d]-g-y;return b=Math.max(Math.min(a[c]-h,b),0),e.arrowElement=r,e.offsets.arrow=(wf(n={},d,Math.round(b)),wf(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Zf(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Nf(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Mf(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ep:a=[r,o];break;case tp:a=Jf(r);break;case np:a=Jf(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],o=Mf(r);var c=e.offsets.popper,l=e.offsets.reference,d=Math.floor,f="left"===r&&d(c.right)>d(l.left)||"right"===r&&d(c.left)<d(l.right)||"top"===r&&d(c.bottom)>d(l.top)||"bottom"===r&&d(c.top)<d(l.bottom),p=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),v=d(c.bottom)>d(n.bottom),g="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v),E=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&v||!y&&"end"===i&&m),w=b||E;(f||g||w)&&(e.flipped=!0,(f||g)&&(r=a[u+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=xf({},e.offsets.popper,Lf(e.instance.popper,e.offsets.reference,e.placement)),e=jf(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Mf(t),e.offsets.popper=Sf(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Kf(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Df(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=Df(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=df(e.instance.popper),u=kf(s),c={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},u=i(o.width),c=i(r.width),l=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?l||d||u%2==c%2?i:a:s,p=t?i:s;return{left:f(u%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!Qf),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=Uf("transform"),h=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,h="right"===f?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,a&&p)c[p]="translate3d("+h+"px, "+m+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var v="bottom"===d?-1:1,g="right"===f?-1:1;c[d]=m*v,c[f]=h*g,c.willChange=d+", "+f}var y={"x-placement":e.placement};return e.attributes=xf({},y,e.attributes),e.styles=xf({},c,e.styles),e.arrowStyles=xf({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return $f(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&$f(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=If(o,t,e,n.positionFixed),a=Pf(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),$f(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ip=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};bf(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=tf(this.update.bind(this)),this.options=xf({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(xf({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=xf({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return xf({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&nf(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Ef(e,[{key:"update",value:function(){return Ff.call(this)}},{key:"destroy",value:function(){return Bf.call(this)}},{key:"enableEventListeners",value:function(){return Wf.call(this)}},{key:"disableEventListeners",value:function(){return Hf.call(this)}}]),e}();ip.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ip.placements=Yf,ip.Defaults=op;const ap=ip;function sp(e){return"function"==typeof e?e():e}var up="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,cp={};const lp=e.forwardRef((function(t,n){var r=t.anchorEl,o=t.children,i=t.container,a=t.disablePortal,s=void 0!==a&&a,u=t.keepMounted,c=void 0!==u&&u,l=t.modifiers,d=t.open,f=t.placement,p=void 0===f?"bottom":f,h=t.popperOptions,m=void 0===h?cp:h,v=t.popperRef,g=t.style,y=t.transition,b=void 0!==y&&y,E=(0,oi.Z)(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=e.useRef(null),x=(0,Ei.Z)(w,n),S=e.useRef(null),k=(0,Ei.Z)(S,v),C=e.useRef(k);up((function(){C.current=k}),[k]),e.useImperativeHandle(v,(function(){return S.current}),[]);var O=e.useState(!0),T=O[0],_=O[1],N=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,(0,dr.Z)()),R=e.useState(N),P=R[0],I=R[1];e.useEffect((function(){S.current&&S.current.update()}));var A=e.useCallback((function(){if(w.current&&r&&d){S.current&&(S.current.destroy(),C.current(null));var e=function(e){I(e.placement)},t=(sp(r),new ap(sp(r),w.current,(0,ae.Z)({placement:N},m,{modifiers:(0,ae.Z)({},s?{}:{preventOverflow:{boundariesElement:"window"}},l,m.modifiers),onCreate:(0,pu.Z)(e,m.onCreate),onUpdate:(0,pu.Z)(e,m.onUpdate)})));C.current(t)}}),[r,s,l,d,N,m]),M=e.useCallback((function(e){(0,lu.Z)(x,e),A()}),[x,A]),L=function(){S.current&&(S.current.destroy(),C.current(null))};if(e.useEffect((function(){return function(){L()}}),[]),e.useEffect((function(){d||b||L()}),[d,b]),!c&&!d&&(!b||T))return null;var D={placement:P};return b&&(D.TransitionProps={in:d,onEnter:function(){_(!1)},onExited:function(){_(!0),L()}}),e.createElement(fu,{disablePortal:s,container:i},e.createElement("div",(0,ae.Z)({ref:M,role:"tooltip"},E,{style:(0,ae.Z)({position:"fixed",top:0,left:0,display:d||!c||b?null:"none"},g)}),"function"==typeof o?o(D):o))}));var dp=n(6049);function fp(e){return Math.round(1e5*e)/1e5}var pp=!1,hp=null;var mp=e.forwardRef((function(n,r){var o=n.arrow,i=void 0!==o&&o,a=n.children,s=n.classes,u=n.disableFocusListener,c=void 0!==u&&u,l=n.disableHoverListener,d=void 0!==l&&l,f=n.disableTouchListener,p=void 0!==f&&f,h=n.enterDelay,m=void 0===h?100:h,v=n.enterNextDelay,g=void 0===v?0:v,y=n.enterTouchDelay,b=void 0===y?700:y,E=n.id,w=n.interactive,x=void 0!==w&&w,S=n.leaveDelay,k=void 0===S?0:S,C=n.leaveTouchDelay,O=void 0===C?1500:C,T=n.onClose,_=n.onOpen,N=n.open,R=n.placement,P=void 0===R?"bottom":R,I=n.PopperComponent,A=void 0===I?lp:I,M=n.PopperProps,L=n.title,D=n.TransitionComponent,j=void 0===D?ki:D,F=n.TransitionProps,Z=(0,oi.Z)(n,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),U=gi(),B=e.useState(),z=B[0],V=B[1],q=e.useState(null),W=q[0],H=q[1],G=e.useRef(!1),$=e.useRef(),Q=e.useRef(),K=e.useRef(),Y=e.useRef(),X=(0,Bc.Z)({controlled:N,default:!1,name:"Tooltip",state:"open"}),J=(0,Nr.Z)(X,2),ee=J[0],te=J[1],ne=ee,re=(0,dp.Z)(E);e.useEffect((function(){return function(){clearTimeout($.current),clearTimeout(Q.current),clearTimeout(K.current),clearTimeout(Y.current)}}),[]);var oe=function(e){clearTimeout(hp),pp=!0,te(!0),_&&_(e)},ie=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),G.current&&"touchstart"!==t.type||(z&&z.removeAttribute("title"),clearTimeout(Q.current),clearTimeout(K.current),m||pp&&g?(t.persist(),Q.current=setTimeout((function(){oe(t)}),pp?g:m)):oe(t))}},se=(0,Vi.Z)(),ue=se.isFocusVisible,ce=se.onBlurVisible,le=se.ref,de=e.useState(!1),fe=de[0],pe=de[1],he=function(){fe&&(pe(!1),ce())},me=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){z||V(t.currentTarget),ue(t)&&(pe(!0),ie()(t));var n=a.props;n.onFocus&&e&&n.onFocus(t)}},ve=function(e){clearTimeout(hp),hp=setTimeout((function(){pp=!1}),800+k),te(!1),T&&T(e),clearTimeout($.current),$.current=setTimeout((function(){G.current=!1}),U.transitions.duration.shortest)},ge=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),he()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===z&&n.onMouseLeave(t),clearTimeout(Q.current),clearTimeout(K.current),t.persist(),K.current=setTimeout((function(){ve(t)}),k)}},ye=function(e){G.current=!0;var t=a.props;t.onTouchStart&&t.onTouchStart(e)},be=(0,Ei.Z)(V,r),Ee=(0,Ei.Z)(le,be),we=e.useCallback((function(e){(0,lu.Z)(Ee,t.findDOMNode(e))}),[Ee]),xe=(0,Ei.Z)(a.ref,we);""===L&&(ne=!1);var Se=!ne&&!d,ke=(0,ae.Z)({"aria-describedby":ne?re:null,title:Se&&"string"==typeof L?L:null},Z,a.props,{className:(0,Ci.Z)(Z.className,a.props.className),onTouchStart:ye,ref:xe}),Ce={};p||(ke.onTouchStart=function(e){ye(e),clearTimeout(K.current),clearTimeout($.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){ie()(e)}),b)},ke.onTouchEnd=function(e){a.props.onTouchEnd&&a.props.onTouchEnd(e),clearTimeout(Y.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){ve(e)}),O)}),d||(ke.onMouseOver=ie(),ke.onMouseLeave=ge(),x&&(Ce.onMouseOver=ie(!1),Ce.onMouseLeave=ge(!1))),c||(ke.onFocus=me(),ke.onBlur=ge(),x&&(Ce.onFocus=me(!1),Ce.onBlur=ge(!1)));var Oe=e.useMemo((function(){return(0,Xd.Z)({popperOptions:{modifiers:{arrow:{enabled:Boolean(W),element:W}}}},M)}),[W,M]);return e.createElement(e.Fragment,null,e.cloneElement(a,ke),e.createElement(A,(0,ae.Z)({className:(0,Ci.Z)(s.popper,x&&s.popperInteractive,i&&s.popperArrow),placement:P,anchorEl:z,open:!!z&&ne,id:ke["aria-describedby"],transition:!0},Ce,Oe),(function(t){var n=t.placement,r=t.TransitionProps;return e.createElement(j,(0,ae.Z)({timeout:U.transitions.duration.shorter},r,F),e.createElement("div",{className:(0,Ci.Z)(s.tooltip,s["tooltipPlacement".concat((0,Pi.Z)(n.split("-")[0]))],G.current&&s.touch,i&&s.tooltipArrow)},L,i?e.createElement("span",{className:s.arrow,ref:H}):null))})))}));const vp=(0,Oi.Z)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,Bi.U1)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(fp(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,Bi.U1)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(fp(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,C.Z)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,C.Z)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,C.Z)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,C.Z)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(mp);var gp=n(2160),yp=n(3054),bp=e.forwardRef((function(t,n){var r=t.classes,o=t.className,i=t.dividers,a=void 0!==i&&i,s=(0,oi.Z)(t,["classes","className","dividers"]);return e.createElement("div",(0,ae.Z)({className:(0,Ci.Z)(r.root,o,a&&r.dividers),ref:n},s))}));const Ep=(0,Oi.Z)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(bp);var wp=e.forwardRef((function(t,n){return e.createElement(Mi,(0,ae.Z)({component:"p",variant:"body1",color:"textSecondary",ref:n},t))}));const xp=(0,Oi.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(wp);var Sp=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},kp=(0,Zr.Z)((function(e){return{dialogText:{"text-align":"center"},logoWrapper:{padding:e.spacing(6,5,2,5)}}}));const Cp=function(t){var n=t.open,r=void 0!==n&&n,o=t.handleClose,i=void 0===o?function(){}:o,a=t.wrapper,s=void 0===a?null:a,u=kp(),c=Fr("common").t,l=Od((0,dr.Z)().breakpoints.down("sm")),d=Sp((0,e.useState)(null),2),f=d[0],p=d[1];return(0,e.useEffect)((function(){f&&f.focus()}),[r,f]),e.createElement(Ed,{container:s,fullScreen:l,open:r,onClose:i,TransitionProps:{role:"dialog","aria-label":c("About me")},PaperProps:{ref:p,tabIndex:-1}},e.createElement(Ep,null,e.createElement("div",{className:u.dialogText},e.createElement(xp,{className:u.logoWrapper},e.createElement("a",{href:"https://www.fatv.us",target:"_blank",rel:"noopener noreferrer"},e.createElement("img",{style:{width:"333px"},src:"https://mkt-files.ocelotbot.com/ocelot-sig.png",alt:"Powered by Ocelot"}))),e.createElement(Mi,{variant:"subtitle1",component:"p",paragraph:!0},c("created-by")),e.createElement(Mi,{variant:"caption",component:"p",paragraph:!0},c("chatbot-version",{version:"5.11.0"})),e.createElement(Mi,{variant:"caption",component:"p",paragraph:!0},e.createElement("a",{href:"https://www.ocelotbot.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer"},c("Privacy Policy"))," | ",e.createElement("a",{href:"https://www.ocelotbot.com/terms-of-use/",target:"_blank",rel:"noopener noreferrer"},c("Terms of Use"))," | ",e.createElement("a",{href:"https://mkt-files.ocelotbot.com/Accessibility%20Policy%20-%20Chatbot%202021.01.22.pdf",target:"_blank",rel:"noopener noreferrer"},c("Accessibility Policy"))),e.createElement(Mi,{component:"p",variant:"caption",paragraph:!0},c("copyright",{years:"2005-2022"}),e.createElement("br",null),c("patent",{number:"11,151,195"})),e.createElement(Mi,{component:"p",variant:"caption",dangerouslySetInnerHTML:{__html:c("emojis-powered",{emojiLink:'<a href="https://github.com/twitter/twemoji" target="_blank" rel="noopener noreferrer">Twemoji</a>',interpolation:{escapeValue:!1}})}}))),e.createElement(xd,null,e.createElement(ml,{onClick:function(e){e.preventDefault(),i()},color:"primary",className:"aboutdialog-close-button"},e.createElement(Mi,{variant:"button",color:"inherit"},c("Close")))))};function Op({classes:t,dispatch:n,t:r,wrapper:o,chatbotName:i}){const[a,s]=(0,e.useState)(null),[u,c]=(0,e.useState)(!1),l=Jo(),d=(0,e.useRef)(null),f=()=>{d.current&&setTimeout((()=>{d.current.focus()}),200)},p=e=>{s(null),e&&f()},h=Boolean(a);return e.createElement("div",null,e.createElement(oa,{"aria-owns":h?"menu-appbar":null,"aria-haspopup":"true",onClick:e=>{s(e.currentTarget)},color:"inherit",className:t.menuButton,"aria-label":r("Open Menu"),ref:d},e.createElement(yp.Z,null)),e.createElement(Uc,{id:"menu-appbar",container:o,open:h,transformOrigin:{horizontal:"right",vertical:"top"},anchorEl:a,anchorOrigin:{horizontal:"right",vertical:"top"},onClose:p},e.createElement(Yd,{onClick:e=>{e.preventDefault(),p(!1),n({type:"CLEAR_HISTORY"})}},r("Clear conversation")),e.createElement(Yd,{onClick:e=>{e.preventDefault(),en(i,!!l.SettingsMenuItems),p()}},r("Download transcript")),e.createElement(Yd,{onClick:e=>{e.preventDefault(),c(!0),p()}},r("About")),l.SettingsMenuItems?e.createElement(l.SettingsMenuItems,null):null),e.createElement(Cp,{handleClose:()=>{c(!1),f()},open:u,wrapper:o}))}Op.propTypes={classes:X().object.isRequired,dispatch:X().func.isRequired,t:X().func.isRequired,wrapper:X().object.isRequired,chatbotName:X().string.isRequired};const Tp=M(va("common"),(0,ni.Z)((e=>({menuButton:{marginRight:e.spacing(-2)}}))),Me())(Op),_p="chat-app-header",Np=(0,Zr.Z)((e=>({appBar:{zIndex:10},flex:{flex:1},menuButton:{marginLeft:e.spacing(-2),marginRight:0},textLeft:{textAlign:"left"},toolBar:{margin:0}}))),Rp=(0,ni.Z)((e=>({root:{"&:focus":{backgroundColor:e.palette.action.selected},"&$selected":{backgroundColor:e.palette.primary.main,"&:focus":{backgroundColor:e.palette.action.selected}}},selected:{}})))(Yd),Pp=e.forwardRef(((t,n)=>{const{languages:r,settings:o,t:i,toggle:a,wrapper:s,isCollapsible:u}=t,c=Np(),l=Ze(),d=Ve((e=>e.language)),{liveChat:f}=Ve((e=>e.messages)),[p,h]=(0,e.useState)(),m=()=>{h(void 0)};return e.createElement("header",{className:c.appBar,ref:n},e.createElement(Fi,{position:"static",color:"primary"},e.createElement(Ui,{className:c.toolBar},u&&e.createElement(oa,{color:"inherit",onClick:a(void 0),className:c.menuButton,"aria-label":i("Close",{bot:o.name})},e.createElement(ri.Z,null)),e.createElement(Mi,{variant:"h6",component:"div",color:"inherit",className:`${c.flex} ${c.textLeft}`,id:_p},i("appbar-header",{bot:o.name})),r&&r.length>1&&e.createElement(e.Fragment,null,e.createElement(vp,{title:f?i("Translation unavailable during live agent conversation"):"Change language",enterDelay:300,placement:f?"left":"bottom",PopperProps:{container:s}},e.createElement("span",null,e.createElement(oa,{color:"inherit","aria-owns":p?"language-menu":void 0,"aria-haspopup":"true","aria-label":i("Language"),onClick:e=>{h(e.currentTarget)},disabled:f},e.createElement(gp.Z,null)))),e.createElement(Uc,{id:"language-menu",anchorEl:p,open:Boolean(p),onClose:m,container:s},r.map((t=>{return e.createElement(Rp,{key:t.code,"aria-label":d===t.code?i("language-selected",{lang:i(t.text)}):i(t.text),selected:d===t.code,onClick:(n=t.code,()=>{n!==d&&l(hn(n)),m()})},i(t.text));var n})))),e.createElement(Tp,{wrapper:s,chatbotName:o.name}))))}));Pp.displayName="Header",Pp.propTypes={languages:X().arrayOf(X().object).isRequired,settings:X().object.isRequired,t:X().func.isRequired,toggle:X().func.isRequired,wrapper:X().object.isRequired,isCollapsible:X().bool},Pp.defaultProps={isCollapsible:!0};const Ip=va("common",{withRef:!0})(Pp);var Ap=n(595),Mp=n(6253);const Lp=(0,Ti.Z)(e.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var Dp=n(6941);const jp=function(e){var t=function(t){var n=e(t);return t.css?(0,ae.Z)({},(0,Dp.Z)(n,e((0,ae.Z)({theme:t.theme},t.css))),function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(t.css,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css"].concat((0,qi.Z)(e.filterProps)),t};const Fp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?(0,Dp.Z)(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r};var Zp=n(1226);function Up(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}const Bp=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Up(e.theme,o)||{};return(0,Zp.k)(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Up(a,e)||e,i&&(t=i(t))),!1===r?t:(0,C.Z)({},r,t)}))};return a.propTypes={},a.filterProps=[t],a};function zp(e){return"number"!=typeof e?e:"".concat(e,"px solid")}const Vp=Fp(Bp({prop:"border",themeKey:"borders",transform:zp}),Bp({prop:"borderTop",themeKey:"borders",transform:zp}),Bp({prop:"borderRight",themeKey:"borders",transform:zp}),Bp({prop:"borderBottom",themeKey:"borders",transform:zp}),Bp({prop:"borderLeft",themeKey:"borders",transform:zp}),Bp({prop:"borderColor",themeKey:"palette"}),Bp({prop:"borderRadius",themeKey:"shape"}));const qp=Fp(Bp({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Bp({prop:"display"}),Bp({prop:"overflow"}),Bp({prop:"textOverflow"}),Bp({prop:"visibility"}),Bp({prop:"whiteSpace"}));const Wp=Fp(Bp({prop:"flexBasis"}),Bp({prop:"flexDirection"}),Bp({prop:"flexWrap"}),Bp({prop:"justifyContent"}),Bp({prop:"alignItems"}),Bp({prop:"alignContent"}),Bp({prop:"order"}),Bp({prop:"flex"}),Bp({prop:"flexGrow"}),Bp({prop:"flexShrink"}),Bp({prop:"alignSelf"}),Bp({prop:"justifyItems"}),Bp({prop:"justifySelf"}));const Hp=Fp(Bp({prop:"gridGap"}),Bp({prop:"gridColumnGap"}),Bp({prop:"gridRowGap"}),Bp({prop:"gridColumn"}),Bp({prop:"gridRow"}),Bp({prop:"gridAutoFlow"}),Bp({prop:"gridAutoColumns"}),Bp({prop:"gridAutoRows"}),Bp({prop:"gridTemplateColumns"}),Bp({prop:"gridTemplateRows"}),Bp({prop:"gridTemplateAreas"}),Bp({prop:"gridArea"}));const Gp=Fp(Bp({prop:"position"}),Bp({prop:"zIndex",themeKey:"zIndex"}),Bp({prop:"top"}),Bp({prop:"right"}),Bp({prop:"bottom"}),Bp({prop:"left"}));const $p=Fp(Bp({prop:"color",themeKey:"palette"}),Bp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}));const Qp=Bp({prop:"boxShadow",themeKey:"shadows"});function Kp(e){return e<=1?"".concat(100*e,"%"):e}var Yp=Bp({prop:"width",transform:Kp}),Xp=Bp({prop:"maxWidth",transform:Kp}),Jp=Bp({prop:"minWidth",transform:Kp}),eh=Bp({prop:"height",transform:Kp}),th=Bp({prop:"maxHeight",transform:Kp}),nh=Bp({prop:"minHeight",transform:Kp});Bp({prop:"size",cssProperty:"width",transform:Kp}),Bp({prop:"size",cssProperty:"height",transform:Kp});const rh=Fp(Yp,Xp,Jp,eh,th,nh,Bp({prop:"boxSizing"}));var oh=n(8971);const ih=Fp(Bp({prop:"fontFamily",themeKey:"typography"}),Bp({prop:"fontSize",themeKey:"typography"}),Bp({prop:"fontStyle",themeKey:"typography"}),Bp({prop:"fontWeight",themeKey:"typography"}),Bp({prop:"letterSpacing"}),Bp({prop:"lineHeight"}),Bp({prop:"textAlign"}));function ah(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}const sh=function(t){var n=function(t){return function(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.name,a=(0,oi.Z)(o,["name"]),s=i,u="function"==typeof n?function(e){return{root:function(t){return n((0,ae.Z)({theme:e},t))}}}:{root:n},c=(0,Zr.Z)(u,(0,ae.Z)({Component:t,name:i||t.displayName,classNamePrefix:s},a));n.filterProps&&(r=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);var l=e.forwardRef((function(n,o){var i=n.children,a=n.className,s=n.clone,u=n.component,l=(0,oi.Z)(n,["children","className","clone","component"]),d=c(n),f=(0,Ci.Z)(d.root,a),p=l;if(r&&(p=ah(p,r)),s)return e.cloneElement(i,(0,ae.Z)({className:(0,Ci.Z)(i.props.className,f)},p));if("function"==typeof i)return i((0,ae.Z)({className:f},p));var h=u||t;return e.createElement(h,(0,ae.Z)({ref:o,className:f},p),i)}));return ce()(l,t),l}}(t);return function(e,t){return n(e,(0,ae.Z)({defaultTheme:vi.Z},t))}};var uh=jp(Fp(Vp,qp,Wp,Hp,Gp,$p,Qp,rh,oh.Z,ih));const ch=sh("div")(uh,{name:"MuiBox"});var lh=n(2079),dh=(0,Zr.Z)((function(e){return{rightAvatar:{display:"flex",flexDirection:"column",alignItems:"flex-end"},avatarIcon:{color:e.palette.getContrastText(e.palette.secondary.dark),backgroundColor:e.palette.secondary.dark},avatarName:{display:"none",maxWidth:e.spacing(10),padding:e.spacing(.5),wordBreak:"break-word"},hidden:{position:"absolute",opacity:0,pointerEvents:"none"}}})),fh=function(t){var n=t.message,r=t.clientName,o=t.language,i=t.wrapper,a=dh();return e.createElement(ch,{display:"flex",width:"100%"},e.createElement(ch,{flexGrow:1},e.createElement(da,{primary:e.createElement(lh.Z,{options:{className:"twemoji"}},e.createElement("span",{className:a.hidden},"You said: "),$t(n.output,o)),secondary:n.reviewMode&&n.time&&e.createElement(vp,{title:n.timeZone,PopperProps:{container:i}},e.createElement(ch,{component:"span"},n.time)),primaryTypographyProps:{component:"div"},secondaryTypographyProps:{component:"div"}})),e.createElement(ch,null,e.createElement(pa,{className:a.rightAvatar},r?e.createElement(vp,{title:r,PopperProps:{container:i}},e.createElement(e.Fragment,null,e.createElement(Ri,{alt:"".concat(r," avatar"),"aria-hidden":"true",classes:{root:a.avatarIcon}},(r||"").split(/\s/).map((function(e){return e.substr(0,1)})).slice(0,2).join("")),e.createElement(Mi,{variant:"caption","aria-hidden":"true",className:"".concat(a.avatarName," ocelot-transcript-show")},r))):e.createElement(e.Fragment,null,e.createElement(Ri,{"aria-hidden":"true",classes:{root:a.avatarIcon}},e.createElement(Lp,null)),e.createElement(Mi,{variant:"caption","aria-hidden":"true",className:"".concat(a.avatarName," ocelot-transcript-show")},"You")))))};fh.displayName="UserMessage";const ph=e.memo(fh);const hh=function(e,t,n,r){void 0===r&&(r="Ocelot");try{window.ga&&"function"==typeof window.ga?window.ga((function(){ga.getAll().forEach((function(o){o.send("event",r,e,t,n)}))})):window.gtag&&"function"==typeof window.gtag?window.gtag("event",e,{event_category:r,event_label:t,value:n}):window._trackEvent&&"function"==typeof window._trackEvent&&window._trackEvent(r,e,t,n)}catch(e){console.warn("Ocelot failed to track event: Incompatible Google Analytics tag detected.")}};var mh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},vh=(0,Zr.Z)((function(e){return{listTextRoot:{flex:"1 1 50%",margin:0},listTextMultiline:{margin:0},editWrapper:{flex:"1 1 100%",textAlign:"right"},actionButton:{margin:"0 10px 10px 0",textAlign:"left"},leftAvatar:{display:"flex",flexDirection:"column",alignItems:"flex-start"},avatarIcon:{color:e.palette.getContrastText(e.palette.secondary.dark),backgroundColor:e.palette.secondary.dark},avatarName:{display:"none",maxWidth:e.spacing(10),padding:e.spacing(.5),wordBreak:"break-word"},hidden:{position:"absolute",opacity:0,pointerEvents:"none"},actionList:{listStyle:"none",margin:0,padding:0,"& li":{listStyle:"none",display:"inline",margin:0,padding:0}},systemMessage:{backgroundColor:rl.Z[200],color:rl.Z[600],textAlign:"center"},resourceList:{listStyle:"none",flex:"1 1 100%",width:"100%"},resourceListItem:{"& > div":{width:"100%"}}}})),gh=function(e){var t="en";return t in e?[e.en,t]:e.text&&t in e.text?[e.text.en,t]:[e.text,t]},yh=function(e,t){return e in t?t[e]:t.text},bh={video:1,webpage:2,file:3},Eh=function(t){var n,r=t.message,o=t.i,i=t.cbID,a=t.name,s=t.avatarUrl,u=t.language,c=t.wrapper,l=t.editNid,d=t.canEditOrAdd,f=t.displayActions,p=t.question,h=t.settings,m=t.AddOrEditQuestionButton,v=t.listClass,g=(0,e.useRef)(null),y=vh(),b=Ze(),E=(0,e.useContext)(Go),w=(0,e.useContext)(ei),x=Fr("common").t,S=r.resources.filter((function(e){return"webpage"===e.type})),k=S?S.length:0,C=function(){return r.actions&&r.actions.length?e.createElement(Rc,{className:y.actionList,"aria-label":"Actions","data-testid":"actionList-".concat(Number(o))},r.actions.map((function(t,n){var i="operator-button-".concat(o,"-").concat(n);return e.createElement(ca,{key:"actionListItem-".concat(Number(o),"-").concat(Number(n))},e.createElement(ml,{id:i,ref:0===n?g:null,classes:{root:y.actionButton},size:"small",variant:"contained",key:Number(n),"data-testid":"actionButton-".concat(Number(o),"-").concat(Number(n)),onClick:function(){var e=function(e,t){r.auth&&"yes"===$t(e).toLowerCase()?function(e){b({type:"CLEAR_HISTORY"}),window.location.href=e.uri}(r.auth):function(e,t){"review"!==h.interfaceType&&(hh("message_send","User sent message to chatbot"),b(yn(E,e,void 0,t,w)))}($t(e,u),t)};if("string"==typeof t)e(t);else switch(t.type){case qe.ConversationActionType.SendResponse:var n=mh(gh(t),2);e(n[0],n[1]);break;case qe.ConversationActionType.Callback:if(!t.callback){console.error("Callback action missing callback field");break}var o=mh(gh(t),2);e(o[0],o[1]),t.callback();break;default:console.error('Unknown conversation action type "'.concat(t.type,'"'))}}},e.createElement(Mi,{variant:"button",color:"inherit"},$t(function(e,t){if("string"==typeof t)return t;if(!("type"in t))return yh(e,t);switch(t.type){case qe.ConversationActionType.SendResponse:case qe.ConversationActionType.Callback:return yh(e,t);default:return console.error('getActionLabel: unknown action type "'.concat(t.type,'"')),""}}(u,t),u))))}))):e.createElement(e.Fragment,null)},O=[qe.LiveChatTurnType.OperatorTurn,qe.LiveChatTurnType.CampaignOperatorTurn],T=O.includes(r.type)||O.includes(r.convoType)?e.createElement(vp,{title:r.operatorName,PopperProps:{container:c}},e.createElement(e.Fragment,null,e.createElement(Ri,{src:r.operatorAvatar,alt:"".concat(r.operatorName," avatar"),"aria-hidden":"true",classes:{root:y.avatarIcon}},function(e){return(e||"").split(/\s/).map((function(e){return e.substr(0,1)})).slice(0,2).join("")}(r.operatorName)),e.createElement(Mi,{variant:"caption","aria-hidden":"true",className:"".concat(y.avatarName," ocelot-transcript-show")},r.operatorName))):e.createElement(e.Fragment,null,e.createElement(Ri,{src:s,alt:"".concat(a," avatar"),"aria-hidden":"true",classes:{root:y.avatarIcon}}),e.createElement(Mi,{variant:"caption","aria-hidden":"true",className:"".concat(y.avatarName," ocelot-transcript-show")},a)),_=r.operatorName||a,N="".concat(x("username-said",{name:_}).trim(),": "),R=$t(r.output,u),P=R.includes("href=")?"assertive":void 0;return e.createElement(e.Fragment,null,r.output?e.createElement(e.Fragment,null,"system"!==r.type&&e.createElement(pa,{className:y.leftAvatar},T),e.createElement(da,{classes:{root:y.listTextRoot},"aria-live":P,primary:e.createElement(lh.Z,{options:{className:"twemoji"}},e.createElement("span",{className:y.hidden},N," "),e.createElement("span",{dangerouslySetInnerHTML:{__html:R}})),secondary:!f||r.resources&&0!==r.resources.length?void 0:C(),primaryTypographyProps:{component:"div"},secondaryTypographyProps:{component:"div"}})):e.createElement("div",{className:"emptyMessage"}),r.resources&&!!r.resources.length&&e.createElement(Rc,{className:y.resourceList,"aria-label":"Resources"},f&&r.output&&r.actions&&r.actions.length>0&&e.createElement(ca,{classes:{root:v}},e.createElement(da,{classes:{multiline:y.listTextMultiline},secondary:C(),secondaryTypographyProps:{component:"div"}})),(n=r.resources||[],n.sort((function(e,t){return bh[e.type]-bh[t.type]})),n).map((function(t,n){return e.createElement(ca,{className:y.resourceListItem,key:Number(n)},e.createElement(Wl,{resource:t,singleWebsite:t.actions&&1===k,cbID:i,language:u}))}))),m&&d&&e.createElement("div",{className:y.editWrapper},e.createElement(m,{editType:l?"update":"add",questionObject:{nidToFetch:l,question:p,index:Number(o)},wrapper:c})))};Eh.displayName="OperatorMessage";const wh=e.memo(Eh);var xh=n(8090);const Sh="openNewWindow",kh=new RegExp("https://ai.ocelotbot.com/attachment"),Ch=t=>{const n=(0,e.useContext)(Go),r=e=>{const t=e.target.getAttribute("href"),r=e.target.closest('[data-message-type]:not([data-message-type=""])'),o=null==r?void 0:r.getAttribute("data-message-type");!t||e.target.getAttribute("tracked")||((e="")=>{switch(e){case"livechat:operator":case"livechat:client":case"livechat:queue":case"campaign:operator":case"campaign:client":return!0;default:return!1}})(o)||(gn(t,n),e.target.setAttribute("tracked",!0))},o=()=>{Array.from(t.current.getElementsByTagName("a")).forEach((t=>{const n=t.getAttribute("href");if(n&&(t.target="_blank",t.rel="noopener",!t.getAttribute("aria-describedby")&&!n.includes("tel:")&&!n.includes("mailto:"))){t.setAttribute("aria-describedby",Sh);[].some.call(t.parentElement.classList,(e=>/(MuiCardContent-.|MuiButton-.)*/.test(e)))||(t.innerHTML=`${t.innerHTML} ${(0,xh.renderToString)(e.createElement(Bl.Z,{style:{fontSize:"1rem",verticalAlign:"text-top"}}))}`)}const o=((e="")=>kh.test(e))(n);t.getAttribute("trackerAdded")||o||(t.setAttribute("trackerAdded",!0),t.addEventListener("click",r))}))};(0,e.useEffect)((()=>(o(),()=>{t.current&&Array.from(t.current.getElementsByTagName("a")).forEach((e=>{e.getAttribute("trackerAdded")&&(e.removeAttribute("trackerAdded"),e.removeEventListener("click",r))}))})))};var Oh;!function(e){e.Windows="Win",e.Mac="Mac",e.Unknown="Unknown"}(Oh||(Oh={}));var Th=function(){return-1!==window.navigator.userAgent.indexOf(Oh.Windows)?Oh.Windows:-1!==window.navigator.userAgent.indexOf(Oh.Mac)?Oh.Mac:Oh.Unknown};const _h=(0,Zr.Z)((e=>({listRootCommon:{overflowWrap:"break-word","& p":{padding:0,margin:"0 0 1em"},"& table":{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:e.shape.borderRadius,width:"100%","& tr":{display:"flex",borderTop:"1px solid rgba(0, 0, 0, 0.15)",marginBottom:e.spacing(.5),paddingTop:e.spacing(.5),"&:first-child":{borderTop:"none",marginTop:0},"& td, th":{borderLeft:"1px solid rgba(0, 0, 0, 0.15)",flex:1,margin:e.spacing(0,.5,0,.25),paddingLeft:e.spacing(1),"&:first-child":{borderLeft:"none",flex:2,paddingLeft:e.spacing(.25)}}}},"& img":{maxWidth:"100%"}},listRoot:{"align-items":"flex-start","flex-wrap":"wrap",margin:0,"&:hover $editWrapper":{opacity:"1",transition:"opacity .5s"},paddingTop:e.spacing(1.5),paddingBottom:e.spacing(1.5)},editWrapper:{flex:"1 1 100%",textAlign:"right"},listRootHl:{"align-items":"flex-start",margin:0,background:"#ffee58","&:hover $editWrapper":{opacity:"1",transition:"opacity .5s"},paddingTop:e.spacing(1.5),paddingBottom:e.spacing(1.5)},actionButton:{margin:"0 10px 10px 0",textAlign:"left"},aspectVideo:{position:"absolute",width:"100%",height:"100%",left:0,top:0},leftAvatar:{display:"flex",flexDirection:"column",alignItems:"flex-start"},rightAvatar:{display:"flex",flexDirection:"column",alignItems:"flex-end"},avatarIcon:{color:e.palette.getContrastText(e.palette.secondary.dark),backgroundColor:e.palette.secondary.dark},avatarName:{display:"none",maxWidth:e.spacing(10),padding:e.spacing(.5),wordBreak:"break-word"},actionList:{listStyle:"none",margin:0,padding:0,"& li":{listStyle:"none",display:"inline",margin:0,padding:0}},systemMessage:{backgroundColor:rl.Z[200],color:rl.Z[600],textAlign:"center"},dividerBorder:{borderTop:"1px solid rgba(0, 0, 0, 0.12)"},resourceList:{listStyle:"none",flex:"1 1 100%",width:"100%"},resourceListItem:{"& > div":{width:"100%"}}}))),Nh=e=>e.convoType!==qe.LiveChatTurnType.ClientTurn&&e.convoType!==qe.LiveChatTurnType.CampaignClientTurn,Rh=e.forwardRef(((t,n)=>{const{messages:r,settings:o,cbID:i,avatar:a,name:s,clientName:u,AddOrEditQuestionButton:c,language:l,wrapper:d}=t,f=_h(),p=(0,e.useRef)(null),h=(0,e.useRef)(null),m=r.filter(Nh),v=Th()===Oh.Mac,g=Ve((e=>e.chatbotUi)),y=(0,e.useRef)(!1);(0,e.useEffect)((()=>{r&&r.length&&p.current&&setTimeout((()=>{p.current.scrollIntoView()}),200)}),[p,g.open,y.current]),(0,e.useEffect)((()=>{!y.current&&g.open&&(y.current=!0)}),[g.open]),Ch(h);const b=y.current||g.open,E=Th();let w;return b&&(w=m.map(((t,r)=>{const h=Number(r),g=r===m.length-1,y=`${t.highlight?f.listRootHl:f.listRoot} ${f.listRootCommon} ${0===r?"":f.dividerBorder}`,b=t.convoType||t.type;if(b===Mp.ConversationResponseType.FormNoResponse)return e.createElement(e.Fragment,{key:h});if(["user",qe.LiveChatTurnType.ClientTurn].includes(t.type))return e.createElement(ca,{classes:{root:y},key:h,"aria-live":"polite","data-message-type":b,tabIndex:"0"},t.highlight?e.createElement("span",{ref:p}):"",g&&e.createElement("div",{ref:n}),e.createElement(ph,{message:t,clientName:u,language:l,wrapper:d}));const E=t.nid&&parseInt(t.nid,10)?t.nid:null,w=r>=2&&m[r-2]&&m[r-2].actions&&!!m[r-2].actions.length&&"noIntent"===t.convoType,x="slot"===t.convoType,S=r===m.length-1&&t.actions&&t.actions.length||t.actions&&t.reviewMode,k=E&&!x||!w&&["noIntent","idk"].includes(m[r].convoType);let C;c&&k&&(C=m[r-1].output);const O="system"===t.type?f.systemMessage:"",T=v||0!==r?void 0:"alert";return e.createElement(ca,{key:h,classes:{root:y},className:O,"aria-live":"polite",role:T,"data-message-type":b,tabIndex:"0"},g&&e.createElement("div",{ref:n}),e.createElement(wh,{message:t,i:r,cbID:i,name:s,avatarUrl:a,language:l,wrapper:d,editNid:E,canEditOrAdd:k,displayActions:!!S,question:C,settings:o,AddOrEditQuestionButton:c,listClass:y}))}))),e.createElement(e.Fragment,null,e.createElement(Rc,{"aria-label":`Messages with ${s}`,role:E!==Oh.Mac?"log":void 0,"aria-live":E!==Oh.Mac?"polite":void 0,"aria-atomic":E===Oh.Mac&&void 0,ref:h},w),e.createElement("div",{hidden:!0},e.createElement("span",{id:Sh},"Opens in a new window")))}));Rh.displayName="Messages",Rh.propTypes={messages:X().array.isRequired,AddOrEditQuestionButton:X().func,avatar:X().string.isRequired,cbID:X().number.isRequired,language:X().string.isRequired,name:X().string.isRequired,clientName:X().string.isRequired,settings:X().object.isRequired,wrapper:X().object.isRequired},Rh.defaultProps={AddOrEditQuestionButton:null};const Ph=e.memo(Rh);function Ih(e,t){return e===t}function Ah(e){return"function"==typeof e?function(){return e}:e}function Mh(t,n,r){var o=r&&r.equalityFn||Ih,i=function(t){var n=(0,e.useState)(Ah(t)),r=n[0],o=n[1];return[r,(0,e.useCallback)((function(e){return o(Ah(e))}),[])]}(t),a=i[0],s=i[1],u=function(t,n,r){var o=this,i=(0,e.useRef)(null),a=(0,e.useRef)(0),s=(0,e.useRef)(null),u=(0,e.useRef)([]),c=(0,e.useRef)(),l=(0,e.useRef)(),d=(0,e.useRef)(t),f=(0,e.useRef)(!0);d.current=t;var p=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof t)throw new TypeError("Expected a function");n=+n||0;var h=!!(r=r||{}).leading,m=!("trailing"in r)||!!r.trailing,v="maxWait"in r,g=v?Math.max(+r.maxWait||0,n):null,y=(0,e.useCallback)((function(e){var t=u.current,n=c.current;return u.current=c.current=null,a.current=e,l.current=d.current.apply(n,t)}),[]),b=(0,e.useCallback)((function(e,t){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(e):setTimeout(e,t)}),[p]),E=(0,e.useCallback)((function(e){if(!f.current)return!1;var t=e-i.current,r=e-a.current;return!i.current||t>=n||t<0||v&&r>=g}),[g,v,n]),w=(0,e.useCallback)((function(e){return s.current=null,m&&u.current?y(e):(u.current=c.current=null,l.current)}),[y,m]),x=(0,e.useCallback)((function(){var e=Date.now();if(E(e))return w(e);if(f.current){var t=e-i.current,r=e-a.current,o=n-t,s=v?Math.min(o,g-r):o;b(x,s)}}),[g,v,E,b,w,n]),S=(0,e.useCallback)((function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,u.current=i.current=c.current=s.current=null}),[p]),k=(0,e.useCallback)((function(){return s.current?w(Date.now()):l.current}),[w]);(0,e.useEffect)((function(){return f.current=!0,function(){f.current=!1}}),[]);var C=(0,e.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Date.now(),d=E(r);if(u.current=e,c.current=o,i.current=r,d){if(!s.current&&f.current)return a.current=i.current,b(x,n),h?y(i.current):l.current;if(v)return b(x,n),y(i.current)}return s.current||b(x,n),l.current}),[y,h,v,E,b,x,n]),O=(0,e.useCallback)((function(){return!!s.current}),[]);return(0,e.useMemo)((function(){return{callback:C,cancel:S,flush:k,pending:O}}),[C,S,k,O])}((0,e.useCallback)((function(e){return s(e)}),[s]),n,r),c=(0,e.useRef)(t);return(0,e.useEffect)((function(){o(c.current,t)||(u.callback(t),c.current=t)}),[t,u,o]),[a,{cancel:u.cancel,pending:u.pending,flush:u.flush}]}const Lh=(t,n)=>{(0,e.useEffect)((()=>(t.current&&t.current.addEventListener("scroll",n,{passive:!0}),()=>{t.current&&t.current.removeEventListener("scroll",n)})),[t])},Dh=(t,n,r,o)=>{const[i,a]=(0,e.useState)(!1),[s,u]=(0,e.useState)(!1),[c,l]=(0,e.useState)(!1),[d,f]=(0,e.useState)(!1),p=Ve((e=>e.messages.fresh)),h=()=>{const e=r.current;if(e){const t=e.scrollHeight-e.scrollTop<=e.clientHeight+10;a(!t)}};(0,e.useEffect)((()=>h())),Lh(r,(()=>{h(),s||u(!0)})),(0,e.useEffect)((()=>{d||i||f(!0)}),[d,i]),(0,e.useEffect)((()=>{if(!c&&!d&&!s&&o.current&&"review"!==n.interfaceType){if(o.current.scrollIntoView(),p){const e=o.current.parentElement.querySelectorAll('button, [href], input, select, textarea, iframe, [tabindex]:not([tabindex="-1"])');e.length&&e[0].focus()}l(!0)}})),(0,e.useEffect)((()=>{u(!1),f(!1),l(!1)}),[t]);const[m]=Mh(i&&!d,300);return[m,()=>{i&&r.current&&r.current.scrollBy({behavior:"smooth",top:r.current.clientHeight})}]};var jh=(0,Zr.Z)((function(e){var t=e.palette.secondary;return{"@keyframes typingAnimation":{"0%":{transform:"translateY(0px)"},"28%":{transform:"translateY(-3.5px)"},"44%":{transform:"translateY(0px)"}},"@keyframes bulge":{"50%":{transform:"scale(1)"},"75%":{transform:"scale(1.05)"}},typingWrapper:{backgroundColor:t.light,willChange:"transform",width:"auto",borderRadius:40,padding:16,display:"table",margin:e.spacing(2,0,2,3),position:"relative",animation:"3s $bulge infinite ease-out","&::before, &::after":{content:"''",position:"absolute",bottom:-1.5,left:-1.5,height:16,width:16,borderRadius:"50%",backgroundColor:t.light},"&::after":{height:8,width:8,left:-8,bottom:-8}},dotsContainer:{alignItems:"center",display:"flex"},dot:{backgroundColor:t.contrastText,borderRadius:2,display:"inline-block",height:4,width:4,marginRight:2,animation:"1.5s $typingAnimation infinite ease-in-out","&:nth-child(1)":{animationDelay:"200ms"},"&:nth-child(2)":{animationDelay:"300ms"},"&:nth-child(3)":{animationDelay:"400ms"}}}}));const Fh=function(t){var n=t.isTypingResponse,r=jh();return n?e.createElement(e.Fragment,null,e.createElement(zu,null),e.createElement("div",{className:r.typingWrapper},e.createElement("div",{className:r.dotsContainer},e.createElement("div",{className:r.dot}),e.createElement("div",{className:r.dot}),e.createElement("div",{className:r.dot})))):null},Zh=(0,Zr.Z)((e=>({container:{flex:"1 1 auto",minHeight:"0px",overflowX:"hidden",overflowY:"auto"},end:{clear:"both",float:"left"},icon:{fontSize:"1.2rem"},seeMoreButton:{backgroundColor:e.palette.link,color:"#fff",pointerEvents:"all","&:hover":{backgroundColor:e.palette.link,color:"#fff"},"&:focus-visible":{border:`1px solid ${e.palette.primary.contrastText}`}},seeMoreCentered:{display:"flex",justifyContent:"center"},seeMoreText:{fontSize:"0.8rem",margin:e.spacing(0,.5)},seeMoreWrap:{bottom:e.spacing(10),pointerEvents:"none",position:"absolute",width:"100%",zIndex:1},transcriptElement:{display:"none"}}))),Uh=e.forwardRef((({browser:t,cbid:n,settings:r,language:o,messages:i,clientName:a,wrapper:s},u)=>{const{t:c}=Fr("common"),{AddOrEditQuestionButton:l,LoadCompleteConversation:d,PostConversation:f,ReviewStatusPane:p}=Jo(),h=(0,e.useContext)(ei),m=(0,e.useRef)(null),v=(0,e.useRef)(null),g=u||(0,e.useRef)(null),y=(0,e.useRef)(null),b=Zh(),E=(0,e.useRef)(d&&e.createElement(d,null));(0,e.useEffect)((()=>{var e;(e=y.current)&&Array.from(e.getElementsByClassName("aspectRatio")).forEach((e=>{const t=(e.getAttribute("class")||"").split(/\s+/i),[n]=t.map((e=>/aspectRatio-(\d+(?:\.\d+)?)/i.exec(e))).filter((e=>!!e)).map((e=>e[1]));n&&e.parentElement&&"FIGURE"===e.parentElement.tagName&&(e.parentElement.style=`\n          position: relative;\n          padding-bottom: ${1/n*100}% !important;\n          height: 0;\n          width: 100%;\n          margin: 0;\n          overflow: hidden;\n          background-color: rgba(0, 0, 0, 0.1) !important;\n        `,e.style="\n          position: absolute;\n          top: 0;\n          left: 0;\n          width: 100%;\n          height: 100%;\n        ")}))}),[i.items]);const[w,x]=Dh(i,h,g,m),S=(0,e.useRef)((new Date).toLocaleString());return e.createElement(e.Fragment,null,p&&e.createElement(p,null),E.current,e.createElement("div",{className:b.seeMoreWrap},w&&e.createElement("div",{className:b.seeMoreCentered},e.createElement(Ea,{"aria-label":"More",className:b.seeMoreButton,onClick:x,size:"small",variant:"extended"},e.createElement(Ap.Z,{className:b.icon}),e.createElement(Mi,{className:b.seeMoreText,variant:"button"},c("More"))))),e.createElement("article",{className:b.container,ref:g},e.createElement("div",{id:"ocelotbot-message-container",ref:y},e.createElement("div",null,e.createElement(Mi,{variant:"h3",className:`${b.transcriptElement} ocelot-transcript-show`,id:"ocelotbot-transcript-header"},`Transcript with ${h.name} on ${S.current}`),e.createElement(Ph,{messages:i.items,avatar:h.avatar,cbID:n,AddOrEditQuestionButton:l||null,settings:r,mobile:t.lessThan.medium,name:h.name,language:o,ref:m,clientName:a,wrapper:s})),e.createElement(Fh,{isTypingResponse:i.typingResponse}),f&&e.createElement(f,null),e.createElement("div",{className:b.end,ref:v}))))}));Uh.displayName="MessagesWrapper",Uh.propTypes={browser:X().object.isRequired,cbid:X().number.isRequired,settings:X().object.isRequired,language:X().string.isRequired,messages:X().object.isRequired,clientName:X().string.isRequired,wrapper:X().object.isRequired};const Bh=Uh,zh=(0,Zr.Z)({conversation:{display:"flex",flexDirection:"column",height:"100%"},drawerPaper40:{width:"40%",height:"100%","-ms-overflow-style":"none"},drawerPaper30:{width:"35%",height:"100%","-ms-overflow-style":"none"},drawerPaper55:{width:"55%",height:"100%","-ms-overflow-style":"none"},drawerPaper100:{width:"100%",height:"100%","-ms-overflow-style":"none"}});function Vh(t){const{aiRef:n,chatInputRef:r,environment:o,settings:i,toggle:a,isCollapsible:s}=t,u=zh(),c=Ze(),l=(0,e.useContext)(Go),d=(0,e.useContext)(ei),f=Ve((e=>e.browser)),p=Ve((e=>e.chatbotUi)),h=Ve((e=>e.language)),m=Ve((e=>e.messages)),v=Ve((e=>e.conversationState)),g=Ve(Yn),{languages:y}=i,b=(e,t)=>{var n,r;"review"!==i.interfaceType&&(hh("message_send",null===(n=window)||void 0===n||null===(r=n.location)||void 0===r?void 0:r.href),c(yn(l,e,void 0,t,d)))};let E=u.drawerPaper30;return E=f.lessThan.medium?u.drawerPaper100:f.is.medium?u.drawerPaper55:u.drawerPaper40,(0,e.useEffect)((()=>{(p.open||1===m.items.length)&&r.current&&r.current.focus()}),[p.open,m.items]),e.createElement(Uu,{open:!s||p.open,anchor:"right",classes:{paper:E},onClose:a(this),container:n.current,ModalProps:{disableEscapeKeyDown:!s||g,keepMounted:!0},transitionDuration:s?void 0:0},e.createElement("section",{"aria-labelledby":_p,className:u.conversation},e.createElement(qu,null,(t=>e.createElement(e.Fragment,null,e.createElement(Ip,{languages:y,ref:t,settings:i,toggle:a,wrapper:n.current,isCollapsible:s}),e.createElement(td,{settings:i},(t=>e.createElement(Bh,{browser:f,cbid:i.cbid,settings:i,language:h,messages:m,clientName:v.name||"",ref:t,wrapper:n.current}))),e.createElement(Qd,{environment:o,wrapper:n.current,chatInput:r.current}),"review"!==i.interfaceType?e.createElement(e.Fragment,null,e.createElement(dd,{settings:i}),e.createElement("footer",null,e.createElement(zu,null),e.createElement(fl,{onSubmit:b,outstanding:m.outstanding,ref:r}))):"")))))}Vh.propTypes={aiRef:X().object.isRequired,chatInputRef:X().object.isRequired,environment:X().string.isRequired,settings:X().object.isRequired,toggle:X().func.isRequired,isCollapsible:X().bool},Vh.defaultProps={isCollapsible:!0};const qh=Vh;function Wh({children:t}){const n=Ko();return n?e.createElement(_r.ApolloProvider,{client:n},t):e.createElement(e.Fragment,null,t)}function Hh({adminComponents:t,environment:n,options:r}){const{i18n:o}=Fr("common"),i=(0,e.useContext)(ei),a=Ve((e=>e.chatbotUi)),s=Ve((e=>e.language)),u=Ve((e=>e.messages)),c=Ve((e=>e.conversationState)),{showRatingDialog:l}=Ve((e=>e.feedback)),[d,f]=(0,e.useState)(!1),p=Ze(),h=(0,e.useRef)(null),m=(0,e.useRef)(null),[v,g]=(0,e.useState)({loaded:!0,cbid:i.cbid?parseInt(i.cbid,10):parseInt(i.id,10),name:i.name,languages:i.languages,launch_button_text:i.launch_button_text,avatar:i.avatar,hello:i.hello,helloActions:i.helloActions,launcherType:i.launcherType,interfaceType:i.interfaceType,editing:null});(0,e.useEffect)((()=>{p(bn()),"#bot"===window.location.hash&&p(an(!0));const e=(window.navigator.userLanguage||window.navigator.language).split("-");"en"!==e[0]?p(hn(e[0])):o.changeLanguage(s)}),[]),(0,e.useEffect)((()=>{o.changeLanguage(s)}),[s]),(0,e.useEffect)((()=>{if((!r.isCollapsible||a.open)&&!u.items.length){const e={output:{text:v.hello,resources:[],actions:v.helloActions}};p(rn(e))}}),[u,a]),(0,e.useEffect)((()=>{v.loaded&&v.cbid===parseInt(i.cbid,10)&&v.interfaceType===i.interfaceType&&v.launcherType===i.launcherType||g({loaded:!0,name:i.name,languages:i.languages,launch_button_text:i.launch_button_text,avatar:i.avatar,launcherType:i.launcherType,interfaceType:i.interfaceType,cbid:i.cbid?parseInt(i.cbid,10):parseInt(i.id,10),hello:i.hello,helloActions:i.helloActions,editing:null})}),[v,i]),(0,e.useEffect)((()=>{let e;return!d&&h.current&&(e=()=>{m&&m.current&&m.current!==document.activeElement&&!l&&m.current.focus()},h.current.addEventListener("keypress",e),f(!0)),()=>{h.current&&h.current.removeEventListener("keypress",e)}}),[l,d]);const y=(0,e.useRef)(!1),b=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{var e,t,n,r;y.current&&(a.open?hh("chatbot_open",null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.href):hh("chatbot_close",null===(n=window)||void 0===n||null===(r=n.location)||void 0===r?void 0:r.href));y.current=!0,!b.current&&a.open&&(b.current=!0)}),[a.open]),e.createElement(Xo,{value:t},e.createElement(au,null,e.createElement(zr,{ref:h,environment:n,lang:s},e.createElement(Wh,null,u.liveChat&&e.createElement(Js,null),u.isCampaign&&e.createElement(ou,null),c.agent_campaign&&e.createElement(ru,null),h.current&&!a.open&&"none"!==v.launcherType?e.createElement(Ha,{options:r,root:h.current,autoFocus:b.current}):"",e.createElement(e.Fragment,null,e.createElement(_a,null,(t=>e.createElement(qh,{aiRef:h,chatInputRef:m,environment:n,settings:v,toggle:t,isCollapsible:r.isCollapsible}))))))))}Wh.propTypes={children:X().any.isRequired},Hh.propTypes={adminComponents:X().object,environment:X().oneOf(["admin","embedded"]),options:X().object},Hh.defaultProps={options:ti({}),adminComponents:{},environment:"embedded"};const Gh=Hh,$h=(0,ar.Ue)({plugins:[...(0,sr.Z)().plugins,(({important:e=!0}={})=>({onProcessStyle:(t,n,r)=>{let o=e;if(yr()(t,"important")?(o=t.important,delete t.important):yr()(r,["options","important"])&&(o=r.options.important),o){const e=Tr(t);return Er()(t,((t,n)=>{(xr()(t)||kr()(t))&&(["height","width","top","left","right","bottom","opacity","transition","animation","transform"].includes(n)||(e[n]=function(e){return vr()(e,Cr)?e:`${e} !important`}(t)))})),e}return null}}))(),{onProcessRule:e=>("style"===e.type&&e.selectorText&&".MaxAI"!==e.selectorText.substring(0,6)&&(e.selectorText=e.selectorText.split(",").map((e=>`.MaxAI ${e.trim()}`)).join(",")),e)}]}),Qh=(0,ur.Z)({productionPrefix:"fatv",disableGlobal:!0});function Kh({theme:t,...n}){return e.createElement("div",null,e.createElement(cr.ZP,{jss:$h,generateClassName:Qh},e.createElement(pr,{theme:t},e.createElement(hr,{i18n:zt},e.createElement(Gh,n)))))}Kh.propTypes={theme:X().object.isRequired};const Yh=Kh;function Xh(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Jh=Xh();Jh.withExtraArgument=Xh;const em=Jh,tm=(e,{dev:t=!1}={})=>A(e,void 0,(t&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||M)(qn,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(_(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=M.apply(void 0,i)(n.dispatch),T(T({},n),{},{dispatch:r})}}}(...[em])));var nm=n(331);const rm=e=>{if(!("string"!=typeof e||e.length<1))return 0===e.indexOf("#")?e:`#${e}`},om=e=>"string"==typeof e?rm(e):"object"==typeof e&&e.color?rm(e.color):void 0,im=e=>{const t={typography:Ho?{htmlFontSize:parseFloat(window.getComputedStyle(document.body.parentElement).getPropertyValue("font-size"))}:{},props:{MuiButtonBase:{disableRipple:!0},MuiButtonGroup:{disableRipple:!0}},zIndex:{mobileStepper:1e6,appBar:11e5,drawer:12e5,modal:13e5,snackbar:14e5,tooltip:15e5},palette:{},overrides:{MuiButtonBase:{root:{"&:focus-visible":{border:"1px solid currentColor"}}}}},n=om(e.primary),r=om(e.secondary);let o,i;if(e.link){const t=(e=>Jt(e))(e.link);if(o=om(t),o){const e=(e=>{const t=Xt(e,60);return Yt(t)?t:Xt(e,-40)})(t);i=om(e)}}return n&&(t.palette.primary={main:n}),r&&(t.palette.secondary={main:r}),o&&(t.palette.link=o),i&&(t.palette.linkLight=i),(0,nm.Z)(t)},am={new:n=>{const r=k({key:n.apiKey,storage:K.Z,blacklist:["chatbotUi"]},ir),o=tm(r);return{setToken:e=>{o.dispatch(xn(e.clientToken))},removeToken:()=>{o.dispatch({type:"CLIENT_AUTH_SET_TOKEN",clientToken:null})},render:r=>{let d=n.campusId,f=n.officeId;if((!d||!f)&&n.officePatterns){const e=(0,qe.priorityMatchByRegex)(n.officePatterns,window.location.href);e&&(d=e.campusId,f=e.officeId)}r.apiKey&&o.dispatch((e=>({type:"SET_KEY",key:e}))(r.apiKey)),r.clientToken&&o.dispatch(xn(r.clientToken));const p=function(e,t,n){var r=n||!1,o=A(U,Z,t&&t.enhancer?t.enhancer:void 0),d=function(e){o.dispatch({type:l,key:e})},f=function(t,n,i){var s={type:a,payload:n,err:i,key:t};e.dispatch(s),o.dispatch(s),r&&p.getState().bootstrapped&&(r(),r=!1)},p=j({},o,{purge:function(){var t=[];return e.dispatch({type:c,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:i,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:s})},persist:function(){e.dispatch({type:u,register:d,rehydrate:f})}});return t&&t.manualPersist||p.persist(),p}(o);fetch(`https://ai.ocelotbot.com/api/config?key=${r.apiKey?r.apiKey:n.apiKey}${d?`&campusId=${d}`:""}${f?`&officeId=${f}`:""}`).then((e=>e.json())).then((i=>{const a=im(i),s=(0,qe.getOptionsFromParams)(r.uiParams,(0,qe.adaptConfigToUIParams)(i));var u,c;r.conversation&&(i.interfaceType="review",i.launcherType="none",o.dispatch(tn(r.conversation)),o.dispatch(an(!0))),r.preload&&r.preload.conversation&&r.preload.context&&(o.dispatch(tn(r.preload.conversation)),o.dispatch(nn(r.preload.context)),o.dispatch(bn()),o.dispatch((c=r.apiKey?r.apiKey:n.apiKey,(e,t)=>{const n=t().conversationState.auth;n&&n.original_question&&e(yn(c,n.original_question))})),o.dispatch((u=!!r.preload.context.campaign_id,e=>{e({type:"TOGGLE_CAMPAIGN",isCampaign:u})}))),d&&f&&o.dispatch(((e,t)=>({type:"SET_CAMPUS_OFFICE_PREFERENCE",campusId:e,officeId:t}))(d,f)),t.render(e.createElement(ie,{store:o},e.createElement(Q,{loading:null,persistor:p},e.createElement(Go.Provider,{value:r.apiKey?r.apiKey:n.apiKey},e.createElement(ei.Provider,{value:i},e.createElement(Yh,{theme:a,options:s}))))),document.querySelector(r.target?r.target:n.target))}))}}}}})(),FATVAi=r.default})();
      function loadFATVAi() {
        var domId = 'fatv_ai';
        if (document.getElementById(domId)) return;
        var wrap=document.createElement('div');wrap.id=domId;
        var skipLink = document.querySelector('#skip-link, .skip-navigation, .skip-link');
        var targetContainer = document.querySelector('[data-ocelot-target]');
        if (targetContainer) {
          targetContainer.insertBefore(wrap, targetContainer.firstChild);
        } else if (skipLink) {
          skipLink.parentNode.insertBefore(wrap, skipLink.nextSibling);
        } else {
          document.body.insertBefore(wrap, document.body.firstChild);
        }
        var link = document.createElement('link');
        link.setAttribute('rel', 'stylesheet');link.setAttribute('type', 'text/css');
        link.setAttribute('href', 'https://ai.ocelotbot.com/static/fatvai-v5.11.0.css');
        document.getElementsByTagName('head')[0].appendChild(link);
        var fatvai = FATVAi.new({
          apiKey:'90a9b741-8fbc-40c5-8733-6fcf92adca4a',
          campusId: undefined,
          officeId: undefined,
          officePatterns: []
        });
        fatvai.render({
          target:'#'+domId,
          uiParams: {
            "ha":'right',
            "hv":'16px',
            "va":'bottom',
            "vv":'16px',
            
            "bs":'simple',
            "av":1,
            
          }
        });
      }
      if (document.readyState === "complete" ||
      document.readyState === "loaded" || document.readyState === "interactive") {
        loadFATVAi();
      } else { document.addEventListener('DOMContentLoaded', loadFATVAi, false); }