/*! For license information please see main.d2da92da6a042665a156.js.LICENSE.txt */ try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="01fee211-9ca5-479d-8101-b4d136a0eecf",e._sentryDebugIdIdentifier="sentry-dbid-01fee211-9ca5-479d-8101-b4d136a0eecf")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"5e0990f30df9fd434ee38139b091846e4647d3b5"},(self.webpackChunkfrontend_saas=self.webpackChunkfrontend_saas||[]).push([[8792],{145:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(20647);t.getTraceMetaTags=function(){return Object.entries(r.getTraceData()).map((([e,t])=>``)).join("\n")}},211:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,e:()=>o});var r=n(38413),a=n(31609);function o(e){return(0,a.Ay)("MuiMenu",e)}const i=(0,r.A)("MuiMenu",["root","paper","list"])},244:(e,t,n)=>{"use strict";t.quartersToMonths=function(e){return Math.trunc(e*r.monthsInQuarter)};var r=n(78052)},284:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.Summary=t.ExpansionPaperPanel=void 0;var a,o,i=r(n(20166)),s=r(n(51510)),l=r(n(3808));t.ExpansionPaperPanel=(0,s.default)(l.default)(a||(a=(0,i.default)(["\n && {\n border-radius: 4px;\n }\n\n &::before {\n height: 0px !important;\n top: 0px !important;\n background-color: transparent;\n }\n"]))),t.Summary=s.default.div(o||(o=(0,i.default)(["\n display: flex;\n flex: 1;\n align-items: center;\n"])))},384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloCache:()=>r.ApolloCache,ApolloClient:()=>r.ApolloClient,ApolloConsumer:()=>c,ApolloError:()=>r.ApolloError,ApolloLink:()=>r.ApolloLink,ApolloProvider:()=>u,Cache:()=>r.Cache,DocumentTransform:()=>r.DocumentTransform,DocumentType:()=>b.KG,HttpLink:()=>r.HttpLink,InMemoryCache:()=>r.InMemoryCache,MissingFieldError:()=>r.MissingFieldError,NetworkStatus:()=>r.NetworkStatus,Observable:()=>r.Observable,ObservableQuery:()=>r.ObservableQuery,checkFetcher:()=>r.checkFetcher,concat:()=>r.concat,createHttpLink:()=>r.createHttpLink,createQueryPreloader:()=>ge,createSignalIfSupported:()=>r.createSignalIfSupported,defaultDataIdFromObject:()=>r.defaultDataIdFromObject,defaultPrinter:()=>r.defaultPrinter,disableExperimentalFragmentVariables:()=>r.disableExperimentalFragmentVariables,disableFragmentWarnings:()=>r.disableFragmentWarnings,empty:()=>r.empty,enableExperimentalFragmentVariables:()=>r.enableExperimentalFragmentVariables,execute:()=>r.execute,fallbackHttpConfig:()=>r.fallbackHttpConfig,from:()=>r.from,fromError:()=>r.fromError,fromPromise:()=>r.fromPromise,getApolloContext:()=>l.l,gql:()=>r.gql,isApolloError:()=>r.isApolloError,isNetworkRequestSettled:()=>r.isNetworkRequestSettled,isReference:()=>r.isReference,makeReference:()=>r.makeReference,makeVar:()=>r.makeVar,mergeOptions:()=>r.mergeOptions,operationName:()=>b.Xn,parseAndCheckHttpResponse:()=>r.parseAndCheckHttpResponse,parser:()=>b.K3,resetApolloContext:()=>l.E,resetCaches:()=>r.resetCaches,rewriteURIForGET:()=>r.rewriteURIForGET,selectHttpOptionsAndBody:()=>r.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>r.selectHttpOptionsAndBodyInternal,selectURI:()=>r.selectURI,serializeFetchParameter:()=>r.serializeFetchParameter,setLogVerbosity:()=>r.setLogVerbosity,skipToken:()=>J,split:()=>r.split,throwServerError:()=>r.throwServerError,toPromise:()=>r.toPromise,useApolloClient:()=>d.m,useBackgroundQuery:()=>ae,useFragment:()=>k,useLazyQuery:()=>y,useLoadableQuery:()=>de,useMutation:()=>S,useQuery:()=>f.IT,useQueryRefHandlers:()=>pe,useReactiveVar:()=>T,useReadQuery:()=>he,useSubscription:()=>C,useSuspenseFragment:()=>le,useSuspenseQuery:()=>ee});var r=n(83519),a=n(52687),o=n(31635),i=n(27243),s=n.t(i,2),l=n(6741),u=function(e){var t=e.client,n=e.children,r=(0,l.l)(),s=i.useContext(r),u=i.useMemo((function(){return(0,o.__assign)((0,o.__assign)({},s),{client:t||s.client})}),[s,t]);return(0,a.V1)(u.client,55),i.createElement(r.Provider,{value:u},n)},c=function(e){var t=(0,l.l)();return i.createElement(t.Consumer,null,(function(t){return(0,a.V1)(t&&t.client,53),e.children(t.client)}))},d=n(70111),p=n(60144),f=n(1723),h=n(2619),m=h.Sw?i.useLayoutEffect:i.useEffect,g=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function y(e,t){var n,r=i.useRef(void 0),a=i.useRef(void 0),s=i.useRef(void 0),l=(0,p.l)(t,r.current||{}),u=null!==(n=null==l?void 0:l.query)&&void 0!==n?n:e;a.current=t,s.current=u;var c=(0,o.__assign)((0,o.__assign)({},l),{skip:!r.current}),d=(0,f.SX)(u,c),h=d.obsQueryFields,y=d.result,v=d.client,b=d.resultData,x=d.observable,S=d.onQueryExecuted,w=x.options.initialFetchPolicy||(0,f.kk)(c.defaultOptions,v.defaultOptions),A=i.useReducer((function(e){return e+1}),0)[1],_=i.useMemo((function(){for(var e={},t=function(t){var n=h[t];e[t]=function(){return r.current||(r.current=Object.create(null),A()),n.apply(this,arguments)}},n=0,a=g;n0?new x.K4({graphQLErrors:o}):void 0,p=e.onError||(null===(n=l.current.options)||void 0===n?void 0:n.onError);if(d&&p&&p(d,c),u===l.current.mutationId&&!c.ignoreResults){var f={called:!0,loading:!1,data:a,error:d,client:i};l.current.isMounted&&!(0,v.L)(l.current.result,f)&&s(l.current.result=f)}var h=e.onCompleted||(null===(r=l.current.options)||void 0===r?void 0:r.onCompleted);return d||null==h||h(t.data,c),t}),(function(t){var n;if(u===l.current.mutationId&&l.current.isMounted){var r={loading:!1,error:t,data:void 0,called:!0,client:i};(0,v.L)(l.current.result,r)||s(l.current.result=r)}var a=e.onError||(null===(n=l.current.options)||void 0===n?void 0:n.onError);if(a)return a(t,c),{data:void 0,errors:t};throw t}))}),[]),c=i.useCallback((function(){if(l.current.isMounted){var e={called:!1,loading:!1,client:l.current.client};Object.assign(l.current,{mutationId:0,result:e}),s(e)}}),[]);return i.useEffect((function(){var e=l.current;return e.isMounted=!0,function(){e.isMounted=!1}}),[]),[u,(0,o.__assign)({reset:c},a)]}var w=n(73401);function A(e,t){var n=i.useRef(void 0);return n.current&&(0,v.L)(n.current.deps,t)||(n.current={value:e(),deps:t}),n.current.value}var _=n(19770);function C(e,t){void 0===t&&(t=Object.create(null));var n=i.useRef(!1),r=(0,d.m)(t.client);(0,b.D$)(e,b.KG.Subscription),n.current||(n.current=!0,t.onSubscriptionData&&!1!==globalThis.__DEV__&&a.V1.warn(t.onData?61:62),t.onSubscriptionComplete&&!1!==globalThis.__DEV__&&a.V1.warn(t.onComplete?63:64));var s=t.skip,l=t.fetchPolicy,u=t.errorPolicy,c=t.shouldResubscribe,p=t.context,h=t.extensions,g=t.ignoreResults,y=A((function(){return t.variables}),[t.variables]),S=function(){return function(e,t,n,r,a,i,s){var l={query:t,variables:n,fetchPolicy:r,errorPolicy:a,context:i,extensions:s},u=(0,o.__assign)((0,o.__assign)({},l),{client:e,result:{loading:!0,data:void 0,error:void 0,variables:n},setResult:function(e){u.result=e}}),c=null;return Object.assign(new w.c((function(t){c||(c=e.subscribe(l));var n=c.subscribe(t);return function(){return n.unsubscribe()}})),{__:u})}(r,e,y,l,u,p,h)},C=i.useState(t.skip?null:S),T=C[0],E=C[1],M=i.useRef(S);m((function(){M.current=S})),s?T&&E(T=null):T&&(r===T.__.client&&e===T.__.query&&l===T.__.fetchPolicy&&u===T.__.errorPolicy&&(0,v.L)(y,T.__.variables)||!1===("function"==typeof c?!!c(t):c))||E(T=S());var k=i.useRef(t);i.useEffect((function(){k.current=t}));var O=!s&&!g,P=i.useMemo((function(){return{loading:O,error:void 0,data:void 0,variables:y}}),[O,y]),I=i.useRef(g);m((function(){I.current=g}));var D=(0,_.r)(i.useCallback((function(e){if(!T)return function(){};var t=!1,n=T.__.variables,r=T.__.client,a=T.subscribe({next:function(a){var o,i;if(!t){var s={loading:!1,data:a.data,error:(0,f.jy)(a),variables:n};T.__.setResult(s),I.current||e(),s.error?null===(i=(o=k.current).onError)||void 0===i||i.call(o,s.error):k.current.onData?k.current.onData({client:r,data:s}):k.current.onSubscriptionData&&k.current.onSubscriptionData({client:r,subscriptionData:s})}},error:function(r){var a,o;r=r instanceof x.K4?r:new x.K4({protocolErrors:[r]}),t||(T.__.setResult({loading:!1,data:void 0,error:r,variables:n}),I.current||e(),null===(o=(a=k.current).onError)||void 0===o||o.call(a,r))},complete:function(){t||(k.current.onComplete?k.current.onComplete():k.current.onSubscriptionComplete&&k.current.onSubscriptionComplete())}});return function(){t=!0,setTimeout((function(){a.unsubscribe()}))}}),[T]),(function(){return!T||s||g?P:T.__.result}),(function(){return P})),R=i.useCallback((function(){(0,a.V1)(!k.current.skip,65),E(M.current())}),[k,M]);return i.useMemo((function(){return(0,o.__assign)((0,o.__assign)({},D),{restart:R})}),[D,R])}function T(e){return(0,_.r)(i.useCallback((function(t){return e.onNextChange((function n(){t(),e.onNextChange(n)}))}),[e]),e,e)}var E=n(92922),M=n(68481);function k(e){return(0,M.Y)("useFragment",O,(0,d.m)(e.client))(e)}function O(e){var t=(0,d.m)(e.client),n=t.cache,r=e.from,a=(0,o.__rest)(e,["from"]),s=i.useMemo((function(){return"string"==typeof r?r:null===r?null:n.identify(r)}),[n,r]),l=A((function(){return(0,o.__assign)((0,o.__assign)({},a),{from:s})}),[a,s]),u=i.useMemo((function(){var e=l.fragment,n=l.fragmentName,r=l.from,a=l.optimistic,i=void 0===a||a;if(null===r)return{result:P({result:{},complete:!1})};var s=t.cache,u=s.diff((0,o.__assign)((0,o.__assign)({},l),{returnPartialData:!0,id:r,query:s.getFragmentDoc(e,n),optimistic:i}));return{result:P((0,o.__assign)((0,o.__assign)({},u),{result:t.queryManager.maskFragment({fragment:e,fragmentName:n,data:u.result})}))}}),[t,l]),c=i.useCallback((function(){return u.result}),[u]);return(0,_.r)(i.useCallback((function(e){var n=0,r=null===l.from?null:t.watchFragment(l).subscribe({next:function(t){(0,v.A)(t,u.result)||(u.result=t,clearTimeout(n),n=setTimeout(e))}});return function(){null==r||r.unsubscribe(),clearTimeout(n)}}),[t,l,u]),c,c)}function P(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=(0,E.IM)(e.missing.map((function(e){return e.missing})))),t}var I=n(88599),D=n(45636);function R(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function L(e){if(function(e){return"status"in e}(e))return e;var t=e;return t.status="pending",t.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})),e}var N=s.use||function(e){var t=L(e);switch(t.status){case"pending":throw t;case"rejected":throw t.reason;case"fulfilled":return t.value}},$=n(32453),j=n(67235),F=Symbol.for("apollo.internal.queryRef"),B=Symbol.for("apollo.internal.refPromise");function z(e){var t,n=((t={toPromise:function(){return W(n).then((function(){return n}))}})[F]=e,t[B]=e.promise,t);return n}function V(e){(0,j.V1)(!e||F in e,69)}function W(e){var t=U(e);return"fulfilled"===t.promise.status?t.promise:e[B]}function U(e){return e[F]}function H(e,t){e[B]=t}var q=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],G=function(){function e(e,t){var n=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();var r=function(){var e;n.references||(n.autoDisposeTimeoutId=setTimeout(n.dispose,null!==(e=t.autoDisposeTimeoutMs)&&void 0!==e?e:3e4))};this.promise.then(r,r)}return Object.defineProperty(e.prototype,"disposed",{get:function(){return this.subscription.closed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),e.prototype.reinitialize=function(){var e=this.observable,t=this.watchQueryOptions.fetchPolicy,n="no-cache"===t||"standby"===t;try{if(n?e.silentSetOptions({fetchPolicy:"standby"}):(e.resetLastResults(),e.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),n)return;e.resetDiff(),this.setResult()}finally{e.silentSetOptions({fetchPolicy:t})}},e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout((function(){e.references||e.dispose()})))}},e.prototype.softRetain=function(){var e=this;this.softReferences++;var t=!1;return function(){t||(t=!0,e.softReferences--,setTimeout((function(){e.softReferences||e.references||e.dispose()})))}},e.prototype.didChangeOptions=function(e){var t=this;return q.some((function(n){return n in e&&!(0,v.L)(t.watchQueryOptions[n],e[n])}))},e.prototype.applyOptions=function(e){var t=this.watchQueryOptions,n=t.fetchPolicy,r=t.canonizeResults;return"standby"===n&&n!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):(this.observable.silentSetOptions(e),r!==e.canonizeResults&&(this.result=(0,o.__assign)((0,o.__assign)({},this.result),this.observable.getCurrentResult()),this.promise=R(this.result))),this.promise},e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.refetch=function(e){return this.initiateFetch(this.observable.refetch(e))},e.prototype.fetchMore=function(e){return this.initiateFetch(this.observable.fetchMore(e))},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.handleNext=function(e){var t;if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data),this.result=e,null===(t=this.resolve)||void 0===t||t.call(this,e);else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;void 0===e.data&&(e.data=this.result.data),this.result=e,this.promise=R(e),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t,n,r;this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),"pending"===this.promise.status?null===(t=this.reject)||void 0===t||t.call(this,e):(this.promise=(n=e,(r=Promise.reject(n)).catch((function(){})),r.status="rejected",r.reason=n,r),this.deliver(this.promise))},e.prototype.deliver=function(e){this.listeners.forEach((function(t){return t(e)}))},e.prototype.initiateFetch=function(e){var t=this;return this.promise=this.createPendingPromise(),this.promise.catch((function(){})),e.then((function(){setTimeout((function(){var e;"pending"===t.promise.status&&(t.result=t.observable.getCurrentResult(),null===(e=t.resolve)||void 0===e||e.call(t,t.result))}))})).catch((function(e){var n;return null===(n=t.reject)||void 0===n?void 0:n.call(t,e)})),e},e.prototype.subscribeToQuery=function(){var e=this;this.subscription=this.observable.filter((function(t){return!(0,v.L)(t.data,{})&&!(0,v.L)(t,e.result)})).subscribe(this.handleNext,this.handleError)},e.prototype.setResult=function(){var e=this.observable.getCurrentResult(!1);(0,v.L)(e,this.result)||(this.result=e,this.promise=!e.data||e.partial&&!this.watchQueryOptions.returnPartialData?this.createPendingPromise():R(e))},e.prototype.createPendingPromise=function(){var e=this;return L(new Promise((function(t,n){e.resolve=t,e.reject=n})))},e}(),Y=function(){function e(e,t,n){var r=this;this.key={},this.listeners=new Set,this.references=0,this.dispose=this.dispose.bind(this),this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.observable=e.watchFragment(t),n.onDispose&&(this.onDispose=n.onDispose);var a=this.getDiff(e,t),o=function(){var e;r.references||(r.autoDisposeTimeoutId=setTimeout(r.dispose,null!==(e=n.autoDisposeTimeoutMs)&&void 0!==e?e:3e4))};this.promise=a.complete?R(a.result):this.createPendingPromise(),this.subscribeToFragment(),this.promise.then(o,o)}return e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout((function(){e.references||e.dispose()})))}},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.subscribeToFragment=function(){this.subscription=this.observable.subscribe(this.handleNext.bind(this),this.handleError.bind(this))},e.prototype.handleNext=function(e){var t;switch(this.promise.status){case"pending":if(e.complete)return null===(t=this.resolve)||void 0===t?void 0:t.call(this,e.data);this.deliver(this.promise);break;case"fulfilled":if((0,v.L)(this.promise.value,e.data))return;this.promise=e.complete?R(e.data):this.createPendingPromise(),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t;null===(t=this.reject)||void 0===t||t.call(this,e)},e.prototype.deliver=function(e){this.listeners.forEach((function(t){return t(e)}))},e.prototype.createPendingPromise=function(){var e=this;return L(new Promise((function(t,n){e.resolve=t,e.reject=n})))},e.prototype.getDiff=function(e,t){var n=e.cache,r=t.from,a=t.fragment,i=t.fragmentName,s=n.diff((0,o.__assign)((0,o.__assign)({},t),{query:n.getFragmentDoc(a,i),returnPartialData:!0,id:r,optimistic:!0}));return(0,o.__assign)((0,o.__assign)({},s),{result:e.queryManager.maskFragment({fragment:a,fragmentName:i,data:s.result})})},e}(),K=function(){function e(e){void 0===e&&(e=Object.create(null)),this.queryRefs=new $.b(h.et),this.fragmentRefs=new $.b(h.et),this.options=e}return e.prototype.getQueryRef=function(e,t){var n=this.queryRefs.lookupArray(e);return n.current||(n.current=new G(t(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete n.current}})),n.current},e.prototype.getFragmentRef=function(e,t,n){var r=this.fragmentRefs.lookupArray(e);return r.current||(r.current=new Y(t,n,{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete r.current}})),r.current},e.prototype.add=function(e,t){this.queryRefs.lookupArray(e).current=t},e}(),Z=Symbol.for("apollo.suspenseCache");function Q(e){var t;return e[Z]||(e[Z]=new K(null===(t=e.defaultOptions.react)||void 0===t?void 0:t.suspense)),e[Z]}var X=n(96269),J=Symbol.for("apollo.skipToken");function ee(e,t){return void 0===t&&(t=Object.create(null)),(0,M.Y)("useSuspenseQuery",te,(0,d.m)("object"==typeof t?t.client:void 0))(e,t)}function te(e,t){var n=(0,d.m)(t.client),r=Q(n),a=re({client:n,query:e,options:t}),s=a.fetchPolicy,l=a.variables,u=t.queryKey,c=void 0===u?[]:u,p=(0,o.__spreadArray)([e,(0,X.M)(l)],[].concat(c),!0),f=r.getQueryRef(p,(function(){return n.watchQuery(a)})),h=i.useState([f.key,f.promise]),m=h[0],g=h[1];m[0]!==f.key&&(m[0]=f.key,m[1]=f.promise);var y=m[1];f.didChangeOptions(a)&&(m[1]=y=f.applyOptions(a)),i.useEffect((function(){var e=f.retain(),t=f.listen((function(e){g([f.key,e])}));return function(){t(),e()}}),[f]);var v=i.useMemo((function(){var e=ne(f.result);return{loading:!1,data:f.result.data,networkStatus:e?I.pT.error:I.pT.ready,error:e}}),[f.result]),b="standby"===s?v:N(y),x=i.useCallback((function(e){var t=f.fetchMore(e);return g([f.key,f.promise]),t}),[f]),S=i.useCallback((function(e){var t=f.refetch(e);return g([f.key,f.promise]),t}),[f]),w=f.observable.subscribeToMore;return i.useMemo((function(){return{client:n,data:b.data,error:ne(b),networkStatus:b.networkStatus,fetchMore:x,refetch:S,subscribeToMore:w}}),[n,x,S,b,w])}function ne(e){return(0,D.E)(e.errors)?new x.K4({graphQLErrors:e.errors}):e.error}function re(e){var t=e.client,n=e.query,r=e.options;return A((function(){var e;if(r===J)return{query:n,fetchPolicy:"standby"};var i=r.fetchPolicy||(null===(e=t.defaultOptions.watchQuery)||void 0===e?void 0:e.fetchPolicy)||"cache-first",s=(0,o.__assign)((0,o.__assign)({},r),{fetchPolicy:i,query:n,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return!1!==globalThis.__DEV__&&function(e){var t=e.query,n=e.fetchPolicy,r=e.returnPartialData;(0,b.D$)(t,b.KG.Query),function(e){void 0===e&&(e="cache-first"),(0,a.V1)(["cache-first","network-only","no-cache","cache-and-network"].includes(e),66,e)}(n),function(e,t){"no-cache"===e&&t&&!1!==globalThis.__DEV__&&a.V1.warn(67)}(n,r)}(s),r.skip&&(s.fetchPolicy="standby"),s}),[t,r,n])}function ae(e,t){return void 0===t&&(t=Object.create(null)),(0,M.Y)("useBackgroundQuery",oe,(0,d.m)("object"==typeof t?t.client:void 0))(e,t)}function oe(e,t){var n=(0,d.m)(t.client),r=Q(n),a=re({client:n,query:e,options:t}),s=a.fetchPolicy,l=a.variables,u=t.queryKey,c=void 0===u?[]:u,p=i.useRef("standby"!==s);p.current||(p.current="standby"!==s);var f=(0,o.__spreadArray)([e,(0,X.M)(l)],[].concat(c),!0),h=r.getQueryRef(f,(function(){return n.watchQuery(a)})),m=i.useState(z(h)),g=m[0],y=m[1];U(g)!==h&&y(z(h)),h.didChangeOptions(a)&&H(g,h.applyOptions(a)),i.useEffect((function(){var e=setTimeout((function(){h.disposed&&r.add(f,h)}));return function(){return clearTimeout(e)}}));var v=i.useCallback((function(e){var t=h.fetchMore(e);return y(z(h)),t}),[h]),b=i.useCallback((function(e){var t=h.refetch(e);return y(z(h)),t}),[h]);return i.useEffect((function(){return h.softRetain()}),[h]),[p.current?g:void 0,{fetchMore:v,refetch:b,subscribeToMore:h.observable.subscribeToMore}]}var ie,se=[];function le(e){return(0,M.Y)("useSuspenseFragment",ue,(0,d.m)("object"==typeof e?e.client:void 0))(e)}function ue(e){var t=(0,d.m)(e.client),n=e.from,r=e.variables,a=t.cache,s=i.useMemo((function(){return"string"==typeof n?n:null===n?null:a.identify(n)}),[a,n]),l=null===s?null:Q(t).getFragmentRef([s,e.fragment,(0,X.M)(r)],t,(0,o.__assign)((0,o.__assign)({},e),{variables:r,from:s})),u=i.useState(null===l?se:[l.key,l.promise]),c=u[0],p=u[1];return i.useEffect((function(){if(null!==l){var e=l.retain(),t=l.listen((function(e){p([l.key,e])}));return function(){e(),t()}}}),[l]),null===l?{data:null}:(c[0]!==l.key&&(c[0]=l.key,c[1]=l.promise),{data:N(c[1])})}function ce(){}function de(e,t){void 0===t&&(t=Object.create(null));var n=(0,d.m)(t.client),r=Q(n),s=re({client:n,query:e,options:t}),l=t.queryKey,u=void 0===l?[]:l,c=i.useState(null),p=c[0],f=c[1];V(p);var h=p&&U(p);p&&(null==h?void 0:h.didChangeOptions(s))&&H(p,h.applyOptions(s));var m=(ie||(ie=i.createContext(null)),i.useCallback((function(){var e=console.error;try{return console.error=ce,i.useContext(ie),!0}catch(e){return!1}finally{console.error=e}}),[])),g=i.useCallback((function(e){if(!h)throw new Error("The query has not been loaded. Please load the query.");var t=h.fetchMore(e);return f(z(h)),t}),[h]),y=i.useCallback((function(e){if(!h)throw new Error("The query has not been loaded. Please load the query.");var t=h.refetch(e);return f(z(h)),t}),[h]),v=i.useCallback((function(){for(var t=[],i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var r,a=(r=n(83399))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},411:(e,t,n)=>{"use strict";var r=n(77626);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 a=n(29941);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 o=n(77591);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(79463);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 s=n(32945);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 l=n(84280);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var u=n(33937);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]}}))}));var c=n(66379);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var d=n(21149);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=n(46689);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var f=n(94073);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var h=n(61440);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(74674);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var g=n(48214);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var y=n(98741);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var v=n(77617);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var b=n(86789);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var x=n(87777);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var S=n(92956);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 w=n(2700);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var A=n(2934);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 _=n(2110);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var C=n(35506);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var T=n(32480);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return T[e]}}))}));var E=n(98813);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))}));var M=n(60562);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}}))}));var k=n(26024);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var O=n(54746);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 P=n(4875);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var I=n(83724);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 D=n(10990);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return D[e]}}))}));var R=n(54294);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 L=n(52495);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===L[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return L[e]}}))}));var N=n(13072);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}}))}));var $=n(45460);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))}));var j=n(85442);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}}))}));var F=n(50192);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}}))}));var B=n(64184);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var z=n(26605);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return z[e]}}))}));var V=n(83700);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===V[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return V[e]}}))}));var W=n(38996);Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return W[e]}}))}));var U=n(80666);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]}}))}));var H=n(45824);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var q=n(37838);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}}))}));var G=n(33298);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}}))}));var Y=n(39305);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Y[e]}}))}));var K=n(5456);Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return K[e]}}))}));var Z=n(51441);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Z[e]}}))}));var Q=n(66245);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Q[e]}}))}));var X=n(61883);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}}))}));var J=n(36903);Object.keys(J).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return J[e]}}))}));var ee=n(15881);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ee[e]}}))}));var te=n(4650);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return te[e]}}))}));var ne=n(64729);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ne[e]}}))}));var re=n(43999);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return re[e]}}))}));var ae=n(51291);Object.keys(ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ae[e]}}))}));var oe=n(25265);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return oe[e]}}))}));var ie=n(79883);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ie[e]}}))}));var se=n(42366);Object.keys(se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return se[e]}}))}));var le=n(31574);Object.keys(le).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return le[e]}}))}));var ue=n(61587);Object.keys(ue).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ue[e]}}))}));var ce=n(97624);Object.keys(ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ce[e]}}))}));var de=n(46601);Object.keys(de).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===de[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return de[e]}}))}));var pe=n(49460);Object.keys(pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pe[e]}}))}));var fe=n(25909);Object.keys(fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}}))}));var he=n(5206);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=n(34950);Object.keys(me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))}));var ge=n(40977);Object.keys(ge).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ge[e]}}))}));var ye=n(13772);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));var ve=n(96179);Object.keys(ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ve[e]}}))}));var be=n(69792);Object.keys(be).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return be[e]}}))}));var xe=n(62067);Object.keys(xe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xe[e]}}))}));var Se=n(75449);Object.keys(Se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Se[e]}}))}));var we=n(42764);Object.keys(we).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===we[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return we[e]}}))}));var Ae=n(72292);Object.keys(Ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ae[e]}}))}));var _e=n(6808);Object.keys(_e).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _e[e]}}))}));var Ce=n(50819);Object.keys(Ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ce[e]}}))}));var Te=n(31591);Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}}))}));var Ee=n(70659);Object.keys(Ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ee[e]}}))}));var Me=n(62575);Object.keys(Me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Me[e]}}))}));var ke=n(62396);Object.keys(ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ke[e]}}))}));var Oe=n(42963);Object.keys(Oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Oe[e]}}))}));var Pe=n(86032);Object.keys(Pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pe[e]}}))}));var Ie=n(79732);Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}}))}));var De=n(58284);Object.keys(De).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===De[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return De[e]}}))}));var Re=n(18926);Object.keys(Re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Re[e]}}))}));var Le=n(9957);Object.keys(Le).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Le[e]}}))}));var Ne=n(28595);Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}}))}));var $e=n(37633);Object.keys($e).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $e[e]}}))}));var je=n(76234);Object.keys(je).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return je[e]}}))}));var Fe=n(27519);Object.keys(Fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fe[e]}}))}));var Be=n(46482);Object.keys(Be).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Be[e]}}))}));var ze=n(88397);Object.keys(ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ze[e]}}))}));var Ve=n(1462);Object.keys(Ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ve[e]}}))}));var We=n(7044);Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===We[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}}))}));var Ue=n(69318);Object.keys(Ue).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ue[e]}}))}));var He=n(29639);Object.keys(He).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===He[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return He[e]}}))}));var qe=n(50970);Object.keys(qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qe[e]}}))}));var Ge=n(36708);Object.keys(Ge).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ge[e]}}))}));var Ye=n(26159);Object.keys(Ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ye[e]}}))}));var Ke=n(28684);Object.keys(Ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ke[e]}}))}));var Ze=n(98563);Object.keys(Ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}}))}));var Qe=n(75676);Object.keys(Qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qe[e]}}))}));var Xe=n(34180);Object.keys(Xe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xe[e]}}))}));var Je=n(24702);Object.keys(Je).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Je[e]}}))}));var et=n(35609);Object.keys(et).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===et[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return et[e]}}))}));var tt=n(70881);Object.keys(tt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tt[e]}}))}));var nt=n(30324);Object.keys(nt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nt[e]}}))}));var rt=n(25677);Object.keys(rt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rt[e]}}))}));var at=n(88520);Object.keys(at).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===at[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return at[e]}}))}));var ot=n(44337);Object.keys(ot).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ot[e]}}))}));var it=n(4879);Object.keys(it).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===it[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return it[e]}}))}));var st=n(94437);Object.keys(st).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===st[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return st[e]}}))}));var lt=n(83804);Object.keys(lt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===lt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return lt[e]}}))}));var ut=n(48164);Object.keys(ut).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ut[e]}}))}));var ct=n(92488);Object.keys(ct).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ct[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ct[e]}}))}));var dt=n(70920);Object.keys(dt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dt[e]}}))}));var pt=n(93364);Object.keys(pt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pt[e]}}))}));var ft=n(97256);Object.keys(ft).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ft[e]}}))}));var ht=n(74081);Object.keys(ht).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ht[e]}}))}));var mt=n(77865);Object.keys(mt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mt[e]}}))}));var gt=n(99691);Object.keys(gt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gt[e]}}))}));var yt=n(83833);Object.keys(yt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yt[e]}}))}));var vt=n(5626);Object.keys(vt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vt[e]}}))}));var bt=n(78857);Object.keys(bt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bt[e]}}))}));var xt=n(28847);Object.keys(xt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xt[e]}}))}));var St=n(59019);Object.keys(St).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===St[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return St[e]}}))}));var wt=n(49825);Object.keys(wt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wt[e]}}))}));var At=n(29435);Object.keys(At).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===At[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return At[e]}}))}));var _t=n(30659);Object.keys(_t).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _t[e]}}))}));var Ct=n(21992);Object.keys(Ct).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ct[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ct[e]}}))}));var Tt=n(22056);Object.keys(Tt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tt[e]}}))}));var Et=n(73561);Object.keys(Et).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Et[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Et[e]}}))}));var Mt=n(56387);Object.keys(Mt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mt[e]}}))}));var kt=n(71464);Object.keys(kt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kt[e]}}))}));var Ot=n(17909);Object.keys(Ot).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ot[e]}}))}));var Pt=n(39105);Object.keys(Pt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pt[e]}}))}));var It=n(2463);Object.keys(It).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===It[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return It[e]}}))}));var Dt=n(76573);Object.keys(Dt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dt[e]}}))}));var Rt=n(90701);Object.keys(Rt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rt[e]}}))}));var Lt=n(59526);Object.keys(Lt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Lt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Lt[e]}}))}));var Nt=n(53587);Object.keys(Nt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nt[e]}}))}));var $t=n(5800);Object.keys($t).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $t[e]}}))}));var jt=n(88032);Object.keys(jt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return jt[e]}}))}));var Ft=n(63806);Object.keys(Ft).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ft[e]}}))}));var Bt=n(27489);Object.keys(Bt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Bt[e]}}))}));var zt=n(57851);Object.keys(zt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return zt[e]}}))}));var Vt=n(43348);Object.keys(Vt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Vt[e]}}))}));var Wt=n(41591);Object.keys(Wt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Wt[e]}}))}));var Ut=n(84439);Object.keys(Ut).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ut[e]}}))}));var Ht=n(90106);Object.keys(Ht).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ht[e]}}))}));var qt=n(26249);Object.keys(qt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qt[e]}}))}));var Gt=n(20917);Object.keys(Gt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Gt[e]}}))}));var Yt=n(59404);Object.keys(Yt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Yt[e]}}))}));var Kt=n(80630);Object.keys(Kt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Kt[e]}}))}));var Zt=n(62994);Object.keys(Zt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Zt[e]}}))}));var Qt=n(82829);Object.keys(Qt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qt[e]}}))}));var Xt=n(6686);Object.keys(Xt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xt[e]}}))}));var Jt=n(38873);Object.keys(Jt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Jt[e]}}))}));var en=n(93375);Object.keys(en).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===en[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return en[e]}}))}));var tn=n(50449);Object.keys(tn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tn[e]}}))}));var nn=n(51647);Object.keys(nn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nn[e]}}))}));var rn=n(85635);Object.keys(rn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rn[e]}}))}));var an=n(94855);Object.keys(an).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===an[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return an[e]}}))}));var on=n(54432);Object.keys(on).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===on[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return on[e]}}))}));var sn=n(25325);Object.keys(sn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return sn[e]}}))}));var ln=n(73074);Object.keys(ln).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ln[e]}}))}));var un=n(96228);Object.keys(un).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return un[e]}}))}));var cn=n(30623);Object.keys(cn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cn[e]}}))}));var dn=n(70064);Object.keys(dn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dn[e]}}))}));var pn=n(4251);Object.keys(pn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pn[e]}}))}));var fn=n(7374);Object.keys(fn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fn[e]}}))}));var hn=n(43859);Object.keys(hn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hn[e]}}))}));var mn=n(99322);Object.keys(mn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mn[e]}}))}));var gn=n(37724);Object.keys(gn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gn[e]}}))}));var yn=n(75083);Object.keys(yn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yn[e]}}))}));var vn=n(35610);Object.keys(vn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vn[e]}}))}));var bn=n(84266);Object.keys(bn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bn[e]}}))}));var xn=n(89757);Object.keys(xn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xn[e]}}))}));var Sn=n(87144);Object.keys(Sn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Sn[e]}}))}));var wn=n(58092);Object.keys(wn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wn[e]}}))}));var An=n(15255);Object.keys(An).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===An[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return An[e]}}))}));var _n=n(62650);Object.keys(_n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _n[e]}}))}));var Cn=n(3767);Object.keys(Cn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cn[e]}}))}));var Tn=n(15457);Object.keys(Tn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tn[e]}}))}));var En=n(21440);Object.keys(En).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===En[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return En[e]}}))}));var Mn=n(91743);Object.keys(Mn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mn[e]}}))}));var kn=n(29182);Object.keys(kn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kn[e]}}))}));var On=n(244);Object.keys(On).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===On[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return On[e]}}))}));var Pn=n(19629);Object.keys(Pn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pn[e]}}))}));var In=n(39859);Object.keys(In).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===In[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return In[e]}}))}));var Dn=n(17957);Object.keys(Dn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dn[e]}}))}));var Rn=n(62944);Object.keys(Rn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rn[e]}}))}));var Ln=n(74317);Object.keys(Ln).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ln[e]}}))}));var Nn=n(4638);Object.keys(Nn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nn[e]}}))}));var $n=n(93635);Object.keys($n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $n[e]}}))}));var jn=n(51311);Object.keys(jn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return jn[e]}}))}));var Fn=n(4395);Object.keys(Fn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fn[e]}}))}));var Bn=n(23359);Object.keys(Bn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Bn[e]}}))}));var zn=n(42756);Object.keys(zn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return zn[e]}}))}));var Vn=n(69520);Object.keys(Vn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Vn[e]}}))}));var Wn=n(72240);Object.keys(Wn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Wn[e]}}))}));var Un=n(23354);Object.keys(Un).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Un[e]}}))}));var Hn=n(64617);Object.keys(Hn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Hn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Hn[e]}}))}));var qn=n(71133);Object.keys(qn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qn[e]}}))}));var Gn=n(31982);Object.keys(Gn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Gn[e]}}))}));var Yn=n(77035);Object.keys(Yn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Yn[e]}}))}));var Kn=n(51201);Object.keys(Kn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Kn[e]}}))}));var Zn=n(5154);Object.keys(Zn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Zn[e]}}))}));var Qn=n(21315);Object.keys(Qn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qn[e]}}))}));var Xn=n(67816);Object.keys(Xn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xn[e]}}))}));var Jn=n(12648);Object.keys(Jn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Jn[e]}}))}));var er=n(68290);Object.keys(er).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===er[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return er[e]}}))}));var tr=n(36660);Object.keys(tr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tr[e]}}))}));var nr=n(65262);Object.keys(nr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nr[e]}}))}));var rr=n(36107);Object.keys(rr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rr[e]}}))}));var ar=n(1152);Object.keys(ar).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ar[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ar[e]}}))}));var or=n(61804);Object.keys(or).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===or[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return or[e]}}))}));var ir=n(67710);Object.keys(ir).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ir[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ir[e]}}))}));var sr=n(16944);Object.keys(sr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===sr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return sr[e]}}))}));var lr=n(86936);Object.keys(lr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===lr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return lr[e]}}))}));var ur=n(13975);Object.keys(ur).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ur[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ur[e]}}))}));var cr=n(3313);Object.keys(cr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cr[e]}}))}));var dr=n(95472);Object.keys(dr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dr[e]}}))}));var pr=n(93040);Object.keys(pr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pr[e]}}))}));var fr=n(20775);Object.keys(fr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fr[e]}}))}));var hr=n(93552);Object.keys(hr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hr[e]}}))}));var mr=n(30037);Object.keys(mr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mr[e]}}))}));var gr=n(73570);Object.keys(gr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gr[e]}}))}));var yr=n(93224);Object.keys(yr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yr[e]}}))}));var vr=n(21130);Object.keys(vr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vr[e]}}))}));var br=n(36322);Object.keys(br).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===br[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return br[e]}}))}));var xr=n(61675);Object.keys(xr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xr[e]}}))}));var Sr=n(63028);Object.keys(Sr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Sr[e]}}))}));var wr=n(65112);Object.keys(wr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wr[e]}}))}));var Ar=n(38542);Object.keys(Ar).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ar[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ar[e]}}))}));var _r=n(60364);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 Cr=n(20220);Object.keys(Cr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cr[e]}}))}));var Tr=n(28417);Object.keys(Tr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tr[e]}}))}));var Er=n(34446);Object.keys(Er).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Er[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Er[e]}}))}));var Mr=n(74082);Object.keys(Mr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mr[e]}}))}));var kr=n(58442);Object.keys(kr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kr[e]}}))}));var Or=n(25827);Object.keys(Or).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Or[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Or[e]}}))}));var Pr=n(95807);Object.keys(Pr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pr[e]}}))}));var Ir=n(49049);Object.keys(Ir).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ir[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ir[e]}}))}))},431:(e,t,n)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82430),a=n(68974),o=n(53910),i=n(48051),s=r.defineIntegration((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(l(t,e))return a.DEBUG_BUILD&&o.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}));function l(e,t){return!(!t||!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!c(e,t)&&!!u(e,t))))}(e,t)&&!function(e,t){const n=d(t),r=d(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!c(e,t)&&!!u(e,t)))}(e,t))}function u(e,t){let n=i.getFramesFromEvent(e),r=i.getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e{"use strict";e.exports=JSON.parse('{"owner":{"label":"Proprietário","editable":false},"admin":{"label":"Administrador","editable":true},"executor":{"label":"Executor","editable":true},"requester":{"label":"Solicitante","editable":true},"planner":{"label":"Planejador","editable":true}}')},561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,a.default)(e,n)};var r=o(n(83399)),a=o(n(410));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},599:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,V:()=>l});var r=n(11744),a=n(37783),o=new WeakSet;function i(e){e.size<=(e.max||-1)||o.has(e)||(o.add(e),setTimeout((function(){e.clean(),o.delete(e)}),100))}var s=function(e,t){var n=new r.l(e,t);return n.set=function(e,t){var n=r.l.prototype.set.call(this,e,t);return i(this),n},n},l=function(e,t){var n=new a.C(e,t);return n.set=function(e,t){var n=a.C.prototype.set.call(this,e,t);return i(this),n},n}},602:(e,t,n)=>{"use strict";n.d(t,{A:()=>o}),n(96540);var r=n(20561),a=n(74848);const o=(0,r.A)((0,a.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},631:(e,t,n)=>{"use strict";n.d(t,{CJ:()=>f,IU:()=>p,Kr:()=>d});var r=n(96540),a=n(34164),o=n(31338),i=n(49535),s=n(34805),l=n(89827),u=n(73721),c=n(74848);const d=(0,o.Ay)("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${l.k.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${l.k.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${l.k.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${l.k.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${l.k.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${l.k.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${l.k.shortcuts}`]:{gridColumn:3}}}]}),p=(0,o.Ay)("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),f=r.forwardRef((function(e,t){const n=(0,i.A)({props:e,name:"MuiPickersLayout"}),{toolbar:o,content:f,tabs:h,actionBar:m,shortcuts:g}=(0,u.A)(n),{sx:y,className:v,isLandscape:b,wrapperVariant:x}=n,S=(e=>{const{isLandscape:t,classes:n}=e,r={root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]};return(0,s.A)(r,l.s,n)})(n);return(0,c.jsxs)(d,{ref:t,sx:y,className:(0,a.A)(S.root,v),ownerState:n,children:[b?g:o,b?o:g,(0,c.jsx)(p,{className:S.contentWrapper,children:"desktop"===x?(0,c.jsxs)(r.Fragment,{children:[f,h]}):(0,c.jsxs)(r.Fragment,{children:[h,f]})}),m]})}))},773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TimePicker:()=>f,TimePickerToolbar:()=>h.b,timePickerToolbarClasses:()=>m.n});var r=n(58168),a=n(98587),o=n(96540),i=n(28236),s=n(49535),l=n(31131),u=n(81491),c=n(24034),d=n(74848);const p=["desktopModeMediaQuery"],f=o.forwardRef((function(e,t){const n=(0,s.A)({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=c.jX}=n,f=(0,a.A)(n,p);return(0,i.A)(o,{defaultMatches:!0})?(0,d.jsx)(l.U,(0,r.A)({ref:t},f)):(0,d.jsx)(u.o,(0,r.A)({ref:t},f))}));var h=n(5004),m=n(80614)},799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOAD_ORGANIZATION_IMAGE=t.UPDATE_ORGANIZATION=t.UPDATE_BRANCH=t.UNSET_ORGANIZATION_IMAGE=t.SET_BRANCHES=t.REMOVE_AD_INTEGRATE=t.REACTIVATE_BRANCH=t.INACTIVATE_BRANCH=t.FIND_AD_URL=t.CREATE_BRANCH=t.CONFIGURE_AD_INTEGRATE=void 0;var r=n(384);t.UPDATE_ORGANIZATION=r.gql` mutation updateOrganization($name: String!, $socialName: String) { updateOrganization(fields: { name: $name, socialName: $socialName }) { name socialName branches { id } } } `,t.CREATE_BRANCH=r.gql` mutation createBranch($branch: BranchInput!) { createBranch(branch: $branch) { name documentNumber phoneNumber activityType timeZone zipCode street number neighborhood city state country complement id organizationId createdAt updatedAt deletedAt } } `,t.UPDATE_BRANCH=r.gql` mutation updateBranch($fields: BranchUpdateInput!) { updateBranch(fields: $fields) { id name documentNumber phoneNumber activityType timeZone zipCode street number neighborhood city state country complement } } `,t.INACTIVATE_BRANCH=r.gql` mutation removeBranch($branchId: String!) { removeBranch(branchId: $branchId) { id deletedAt } } `,t.REACTIVATE_BRANCH=r.gql` mutation reactivateBranch($branchId: String!) { reactivateBranch(branchId: $branchId) { id deletedAt } } `,t.SET_BRANCHES=r.gql` mutation setBranches( $branches: [String!]! $userId: String! $roleId: String! $anonymize: Boolean ) { setBranches( branches: $branches userId: $userId roleId: $roleId anonymize: $anonymize ) { userId branchId roleId createdAt } } `,t.UNSET_ORGANIZATION_IMAGE=r.gql` mutation unsetOrganizationPicture { unsetOrganizationPicture } `,t.UPLOAD_ORGANIZATION_IMAGE=r.gql` mutation setOrganizationPicture( $contentLength: Float! $contentType: String! ) { setOrganizationPicture( contentLength: $contentLength contentType: $contentType ) } `,t.CONFIGURE_AD_INTEGRATE=r.gql` mutation configureAdIntegrate( $identifiers: String! $metadataUrl: String! ) { configureAdIntegrate( identifiers: $identifiers metadataUrl: $metadataUrl ) } `,t.REMOVE_AD_INTEGRATE=r.gql` mutation removeAdIntegrate { removeAdIntegrate } `,t.FIND_AD_URL=r.gql` query findAdUrl($email: String!) { findAdUrl(email: $email) } `},812:(e,t,n)=>{"use strict";var r=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(42032)),o=n(74848);t.default=(0,a.default)((0,o.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update")},813:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(94634)),o=r(n(43693)),i=r(n(91847)),s=r(n(96540)),l=r(n(78729)),u=["children","color","dashed","href","margin","padding","style","variant"];function c(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 d(e){for(var t=1;t{"use strict";n.d(t,{A:()=>S});var r=n(96540),a=n(34164),o=n(75659),i=n(34661),s=n(31338),l=n(25669),u=n(77623),c=n(21915),d=n(8641),p=n(29571),f=n(45359),h=n(6347),m=n(27967),g=n(82759),y=n(6025),v=n(74848);const b={standard:u.A,filled:c.A,outlined:d.A},x=(0,s.Ay)(f.A,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),S=r.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:u,className:c,color:d="primary",defaultValue:f,disabled:S=!1,error:w=!1,FormHelperTextProps:A,fullWidth:_=!1,helperText:C,id:T,InputLabelProps:E,inputProps:M,InputProps:k,inputRef:O,label:P,maxRows:I,minRows:D,multiline:R=!1,name:L,onBlur:N,onChange:$,onFocus:j,placeholder:F,required:B=!1,rows:z,select:V=!1,SelectProps:W,slots:U={},slotProps:H={},type:q,value:G,variant:Y="outlined",...K}=n,Z={...n,autoFocus:s,color:d,disabled:S,error:w,fullWidth:_,multiline:R,required:B,select:V,variant:Y},Q=(e=>{const{classes:t}=e;return(0,o.A)({root:["root"]},g._,t)})(Z),X=(0,i.A)(T),J=C&&X?`${X}-helper-text`:void 0,ee=P&&X?`${X}-label`:void 0,te=b[Y],ne={slots:U,slotProps:{input:k,inputLabel:E,htmlInput:M,formHelperText:A,select:W,...H}},re={},ae=ne.slotProps.inputLabel;"outlined"===Y&&(ae&&void 0!==ae.shrink&&(re.notched=ae.shrink),re.label=P),V&&(W&&W.native||(re.id=void 0),re["aria-describedby"]=void 0);const[oe,ie]=(0,y.A)("input",{elementType:te,externalForwardedProps:ne,additionalProps:re,ownerState:Z}),[se,le]=(0,y.A)("inputLabel",{elementType:p.A,externalForwardedProps:ne,ownerState:Z}),[ue,ce]=(0,y.A)("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:Z}),[de,pe]=(0,y.A)("formHelperText",{elementType:h.A,externalForwardedProps:ne,ownerState:Z}),[fe,he]=(0,y.A)("select",{elementType:m.A,externalForwardedProps:ne,ownerState:Z}),me=(0,v.jsx)(oe,{"aria-describedby":J,autoComplete:r,autoFocus:s,defaultValue:f,fullWidth:_,multiline:R,name:L,rows:z,maxRows:I,minRows:D,type:q,value:G,id:X,inputRef:O,onBlur:N,onChange:$,onFocus:j,placeholder:F,inputProps:ce,slots:{input:U.htmlInput?ue:void 0},...ie});return(0,v.jsxs)(x,{className:(0,a.A)(Q.root,c),disabled:S,error:w,fullWidth:_,ref:t,required:B,color:d,variant:Y,ownerState:Z,...K,children:[null!=P&&""!==P&&(0,v.jsx)(se,{htmlFor:X,id:ee,...le,children:P}),V?(0,v.jsx)(fe,{"aria-describedby":J,id:X,labelId:ee,value:G,input:me,...he,children:u}):me,C&&(0,v.jsx)(de,{id:J,...pe,children:C})]})}))},1108:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});var r=n(29407);function a(e){const t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},1136:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S,formControlLabelClasses:()=>m,getFormControlLabelUtilityClasses:()=>h});var r=n(96540),a=n(34164),o=n(75659),i=n(79716),s=n(31338),l=n(57305),u=n(25669),c=n(33551),d=n(28466),p=n(38413),f=n(31609);function h(e){return(0,f.Ay)("MuiFormControlLabel",e)}const m=(0,p.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var g=n(38086),y=n(6025),v=n(74848);const b=(0,s.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${m.label}`]:t.label},t.root,t[`labelPlacement${(0,d.A)(n.labelPlacement)}`]]}})((0,l.A)((({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${m.disabled}`]:{cursor:"default"},[`& .${m.label}`]:{[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]})))),x=(0,s.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((0,l.A)((({theme:e})=>({[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}})))),S=r.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiFormControlLabel"}),{checked:s,className:l,componentsProps:p={},control:f,disabled:m,disableTypography:S,inputRef:w,label:A,labelPlacement:_="end",name:C,onChange:T,required:E,slots:M={},slotProps:k={},value:O,...P}=n,I=(0,i.A)(),D=m??f.props.disabled??I?.disabled,R=E??f.props.required,L={disabled:D,required:R};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===f.props[e]&&void 0!==n[e]&&(L[e]=n[e])}));const N=(0,g.A)({props:n,muiFormControl:I,states:["error"]}),$={...n,disabled:D,labelPlacement:_,required:R,error:N.error},j=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:a,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${(0,d.A)(r)}`,a&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return(0,o.A)(s,h,t)})($),F={slots:M,slotProps:{...p,...k}},[B,z]=(0,y.A)("typography",{elementType:c.A,externalForwardedProps:F,ownerState:$});let V=A;return null==V||V.type===c.A||S||(V=(0,v.jsx)(B,{component:"span",...z,className:(0,a.A)(j.label,z?.className),children:V})),(0,v.jsxs)(b,{className:(0,a.A)(j.root,l),ownerState:$,ref:t,...P,children:[r.cloneElement(f,L),R?(0,v.jsxs)("div",{children:[V,(0,v.jsxs)(x,{ownerState:$,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]}):V]})}))},1152:(e,t,n)=>{"use strict";t.startOfISOWeekYear=function(e,t){const n=(0,a.getISOWeekYear)(e,t),i=(0,r.constructFrom)(t?.in||e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),(0,o.startOfISOWeek)(i)};var r=n(92956),a=n(9957),o=n(36107)},1186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(8582),o=n(99086),i=n(90644),s=n(77630),l=n(9070),u=n(75709),c=n(74265),d=n(14733),p=n(13815),f=n(92476),h=n(14500);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}const g="Perfil do usuário alterado com sucesso";t.default=e=>{const{handleRedirect:t}=(0,c.useRedirect)(),n=(0,l.useRolesUpdate)(),m=(0,u.useUserInvitation)(),{roles:y}=(0,p.usePermissions)(),{user:v}=e,b=[{id:"email",label:"E-mail",name:"email",disabled:!0},{id:"name",label:"Nome",name:"name",disabled:!0},{id:"roleId",label:"Perfil",name:"roleId",options:["admin","planner","executor","requester"].map((e=>(0,d.generateRoles)(y).find((0,s.propEq)("name",e))))}],x=(0,r.useCallback)((()=>({roleId:v?.roleId??"",email:v?.email??"",name:v?.name??""})),[v]),[S,w]=(0,r.useState)(x()),[A]=(0,o.useNotification)();(0,r.useEffect)((()=>w(x())),[x]);const _=r.default.createElement(f.EditRoleWrapper,null,b.map((e=>{let{id:t,name:n,label:o,options:l=[],disabled:u}=e;return r.default.createElement(a.TextField,{fullWidth:!0,"data-intercom-target":n,key:t,name:"view-"+(0,i.toLispCase)(n),disabled:u,select:!!l.length,value:S[t],label:o,onChange:(c=t,(e,t)=>{w(t?.value?(0,s.assoc)(c,t.value):(0,s.assoc)(c,e.target.value))})},l.map((e=>{let{value:t,label:n}=e;return r.default.createElement(a.ListItem,{key:t,value:t,id:`option-${t}`},n)})));var c})));return r.default.createElement(a.Dialog,{open:e.open,title:"Editar usuário",content:_,actions:r.default.createElement(h.FlexRow,null,r.default.createElement(a.Actions,{padding:"10px 12px 10px 26px",onCancel:e.onClose,onConfirm:async()=>{v&&"invited"===v.status?await(async n=>{m({...(0,s.pick)(["email","name"],n),...(0,s.pick)(["roleId"],S)}).then(e.refetch).then(e.onClose).then((()=>t("/my-account/users"))).then((()=>A("success",g))).catch((e=>A("error",e)))})(v):await(async()=>{const r={userId:v?.id??"",roleId:S.roleId};(r.roleId===v?.roleId?()=>Promise.resolve(void 0):n)(r).then(e.refetch).then(e.onClose).then((()=>t("/my-account/users"))).then((()=>A("success",g))).catch((e=>A("error",e)))})()}}))})}},1188:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.observe=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}}},1206:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AriaComponent:()=>Ns,AxisPointerComponent:()=>ce,BrushComponent:()=>Oa,CalendarComponent:()=>Wt,DataZoomComponent:()=>Fi,DataZoomInsideComponent:()=>Ei,DataZoomSliderComponent:()=>ji,DatasetComponent:()=>tl,GeoComponent:()=>lt.a,GraphicComponent:()=>ln,GridComponent:()=>pe,GridSimpleComponent:()=>r.a,LegendComponent:()=>mi,LegendPlainComponent:()=>ii,LegendScrollComponent:()=>hi,MarkAreaComponent:()=>Uo,MarkLineComponent:()=>Po,MarkPointComponent:()=>xo,ParallelComponent:()=>Dt.a,PolarComponent:()=>it,RadarComponent:()=>st.a,SingleAxisComponent:()=>It,TimelineComponent:()=>Xa,TitleComponent:()=>Da,ToolboxComponent:()=>Tr,TooltipComponent:()=>na,TransformComponent:()=>Qs,VisualMapComponent:()=>ks,VisualMapContinuousComponent:()=>ws,VisualMapPiecewiseComponent:()=>Ms});var r=n(26146),a=n(22480),o=n(74179),i=n(98026),s=n(43870),l=n(43199),u=n(32322),c=n(5638),d=n(49890),p=n(35452),f=n(24711),h=n(48170),m=(0,h.$r)(),g=i.clone,y=i.bind,v=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==a||this._lastStatus!==o){this._lastValue=a,this._lastStatus=o;var l=this._group,u=this._handle;if(!o||"hide"===o)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,a,e,t,n);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=d;var p=this._moveAnimation=this.determineAnimation(e,t);if(l){var f=i.curry(b,t,p);this.updatePointerEl(l,c,f),this.updateLabelEl(l,c,f,t)}else l=this._group=new s.A,this.createPointerEl(l,c,e,t),this.createLabelEl(l,c,e,t),n.getZr().add(l);A(l,t,!0),this._renderHandle(a)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,a="category"===r.type,o=t.get("snap");if(!o&&!a)return!1;if("auto"===n||null==n){var i=this.animationThreshold;if(a&&r.getBandWidth()>i)return!0;if(o){var s=d.Yc(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>i}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,a){},e.prototype.createPointerEl=function(e,t,n,r){var a=t.pointer;if(a){var o=m(e).pointerEl=new l[a.type](g(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var a=m(e).labelEl=new u.Ay(g(t.label));e.add(a),S(a,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=m(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var a=m(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{x:t.label.x,y:t.label.y}),S(a,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,o=n.getModel("handle"),s=n.get("status");if(!o.get("show")||!s||"hide"===s)return a&&r.remove(a),void(this._handle=null);this._handle||(t=!0,a=this._handle=l.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){p.ds(e.event)},onmousedown:y(this._onHandleDragMove,this,0,0),drift:y(this._onHandleDragMove,this),ondragend:y(this._onHandleDragEnd,this)}),r.add(a)),A(a,n,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=o.get("size");i.isArray(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,f.N(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){b(this._axisPointerModel,!t&&this._moveAnimation,this._handle,w(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(w(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(w(r)),m(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),f.IU(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function b(e,t,n,r){x(m(n).lastProp,r)||(m(n).lastProp=r,t?c.oi(n,r,e):(n.stopAnimation(),n.attr(r)))}function x(e,t){if(i.isObject(e)&&i.isObject(t)){var n=!0;return i.each(t,(function(t,r){n=n&&x(e[r],t)})),!!n}return e===t}function S(e,t){e[t.get(["label","show"])?"show":"hide"]()}function w(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function A(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=a&&(e.zlevel=a),e.silent=n)}))}const _=v;var C=n(45558),T=n(83412),E=n(45587),M=n(25751),k=n(89598),O=n(89632);function P(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}function I(e,t,n,r,a){var o=D(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),i=n.getModel("label"),s=T.QX(i.get("padding")||0),l=i.getFont(),u=C.NO(o,l),c=a.position,d=u.width+s[1]+s[3],p=u.height+s[0]+s[2],f=a.align;"right"===f&&(c[0]-=d),"center"===f&&(c[0]-=d/2);var h=a.verticalAlign;"bottom"===h&&(c[1]-=p),"middle"===h&&(c[1]-=p/2),function(e,t,n,r){var a=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,d,p,r);var m=i.get("backgroundColor");m&&"auto"!==m||(m=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:(0,O.VB)(i,{text:o,font:l,fill:i.getTextColor(),padding:s,backgroundColor:m}),z2:10}}function D(e,t,n,r,a){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:a.precision}),s=a.formatter;if(s){var l={value:M.Dt(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};i.each(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,a=t&&t.getDataParams(r);a&&l.seriesData.push(a)})),i.isString(s)?o=s.replace("{value}",o):i.isFunction(s)&&(o=s(l))}return o}function R(e,t,n){var r=E.create();return E.rotate(r,r,n.rotation),E.translate(r,r,n.position),l.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function L(e,t,n,r,a,o){var i=k.A.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),I(t,r,a,o,{position:R(r.axis,e,n),align:i.textAlign,verticalAlign:i.textVerticalAlign})}function N(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function $(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function j(e,t,n,r,a,o){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:o,clockwise:!0}}var F=n(96878),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.makeElOption=function(e,t,n,r,a){var o=n.axis,i=o.grid,s=r.get("type"),l=z(i,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=P(r),d=V[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}L(t,e,F.Zp(i.model,n),n,r,a)},t.prototype.getHandleTransform=function(e,t,n){var r=F.Zp(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var a=R(t.axis,e,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var a=n.axis,o=a.grid,i=a.getGlobalExtent(!0),s=z(o,a).getOtherAxis(a).getGlobalExtent(),l="x"===a.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(i[1],u[l]),u[l]=Math.max(i[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];return d[l]=u[l],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(_);function z(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var V={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:N([t,n[0]],[t,n[1]],W(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:$([t-r/2,n[0]],[r,a],W(e))}}};function W(e){return"x"===e.dim?0:1}const U=B;var H=n(15915);const q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(H.A);var G=n(38123),Y=(0,h.$r)(),K=i.each;function Z(e,t,n){if(!G.A.node){var r=t.getZr();Y(r).records||(Y(r).records={}),function(e,t){function n(n,r){e.on(n,(function(n){var a=function(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);K(Y(e).records,(function(e){e&&r(e,n,a.dispatchAction)})),function(e,t){var n,r=e.showTip.length,a=e.hideTip.length;r?n=e.showTip[r-1]:a&&(n=e.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}(a.pendings,t)}))}Y(e).initialized||(Y(e).initialized=!0,n("click",i.curry(X,"click")),n("mousemove",i.curry(X,"mousemove")),n("globalout",Q))}(r,t),(Y(r).records[e]||(Y(r).records[e]={})).handler=n}}function Q(e,t,n){e.handler("leave",null,n)}function X(e,t,n,r){t.handler(e,n,r)}function J(e,t){if(!G.A.node){var n=t.getZr();(Y(n).records||{})[e]&&(Y(n).records[e]=null)}}var ee=n(59109);const te=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),a=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";Z("axisPointer",n,(function(e,t,n){"none"!==a&&("leave"===e||a.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){J("axisPointer",t)},t.prototype.dispose=function(e,t){J("axisPointer",t)},t.type="axisPointer",t}(ee.A);function ne(e,t){var n,r=[],a=e.seriesIndex;if(null==a||!(n=t.getSeriesByIndex(a)))return{point:[]};var o=n.getData(),s=h.le(o,e);if(null==s||s<0||i.isArray(s))return{point:[]};var l=o.getItemGraphicEl(s),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(s)||[];else if(u&&u.dataToPoint)if(e.isStacked){var c=u.getBaseAxis(),d=u.getOtherAxis(c).dim,p=c.dim,f="x"===d||"radius"===d?1:0,m=o.mapDimension(p),g=[];g[f]=o.get(m,s),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),s),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(o.getValues(i.map(u.dimensions,(function(e){return o.mapDimension(e)})),s))||[];else if(l){var y=l.getBoundingRect().clone();y.applyTransform(l.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:l}}var re=(0,h.$r)();function ae(e,t,n){var r=e.currTrigger,a=[e.x,e.y],o=e,s=e.dispatchAction||(0,i.bind)(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){ue(a)&&(a=ne({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var u=ue(a),c=o.axesInfo,d=l.axesInfo,p="leave"===r||ue(a),f={},h={},m={list:[],map:{}},g={showPointer:(0,i.curry)(ie,h),showTooltip:(0,i.curry)(se,m)};(0,i.each)(l.coordSysMap,(function(e,t){var n=u||e.containPoint(a);(0,i.each)(l.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(c,e);if(!p&&n&&(!c||o)){var i=o&&o.value;null!=i||u||(i=r.pointToData(a)),null!=i&&oe(e,i,g,!1,f)}}))}));var y={};return(0,i.each)(d,(function(e,t){var n=e.linkGroup;n&&!h[t]&&(0,i.each)(n.axesInfo,(function(t,r){var a=h[r];if(t!==e&&a){var o=a.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,le(t),le(e)))),y[e.key]=o}}))})),(0,i.each)(y,(function(e,t){oe(d[t],e,g,!0,f)})),function(e,t,n){var r=n.axesInfo=[];(0,i.each)(t,(function(t,n){var a=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(a.status="show"),a.value=o.value,a.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(a.status="hide"),"show"===a.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:a.value})}))}(h,d,f),function(e,t,n,r){if(!ue(t)&&e.list.length){var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}(m,a,e,s),function(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",o=re(r)[a]||{},s=re(r)[a]={};(0,i.each)(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&(0,i.each)(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var l=[],u=[];(0,i.each)(o,(function(e,t){!s[t]&&u.push(e)})),(0,i.each)(s,(function(e,t){!o[t]&&l.push(e)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}(d,0,n),f}}function oe(e,t,n,r,a){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var s=function(e,t){var n=t.axis,r=n.dim,a=e,o=[],s=Number.MAX_VALUE,l=-1;return(0,i.each)(t.seriesModels,(function(t,u){var c,d,p=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(p,e,n);d=f.dataIndices,c=f.nestestValue}else{if(!(d=t.getData().indicesOfNearest(p[0],e,"category"===n.type?.5:null)).length)return;c=t.getData().get(p[0],d[0])}if(null!=c&&isFinite(c)){var h=e-c,m=Math.abs(h);m<=s&&((m=0&&l<0)&&(s=m,l=h,a=c,o.length=0),(0,i.each)(d,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:a}}(t,e),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==a.seriesIndex&&(0,i.extend)(a,l[0]),!r&&e.snap&&o.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,l),n.showTooltip(e,s,u)}else n.showPointer(e,t)}function ie(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function se(e,t,n,r){var a=n.payloadBatch,o=t.axis,i=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&a.length){var l=t.coordSys.model,u=d.og(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:i.componentIndex,axisType:i.type,axisId:i.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function le(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function ue(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function ce(e){a.A.registerAxisPointerClass("CartesianAxisPointer",U),e.registerComponentModel(q),e.registerComponentView(te),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!(0,i.isArray)(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=(0,d.Fo)(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ae)}var de=n(3087);function pe(e){(0,de.Y)(r.a),(0,de.Y)(ce)}var fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.makeElOption=function(e,t,n,r,a){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var i=o.polar,s=i.getOtherAxis(o).getExtent(),u=o.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var d=P(r),p=he[c](o,i,u,s);p.style=d,e.graphicKey=p.type,e.pointer=p}var f=function(e,t,n,r,a){var o=t.axis,i=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var u,c,d,p=r.getRadiusAxis().getExtent();if("radius"===o.dim){var f=E.create();E.rotate(f,f,s),E.translate(f,f,[r.cx,r.cy]),u=l.applyTransform([i,-a],f);var h=t.getModel("axisLabel").get("rotate")||0,m=k.A.innerTextLayout(s,h*Math.PI/180,-1);c=m.textAlign,d=m.textVerticalAlign}else{var g=p[1];u=r.coordToPoint([g+a,i]);var y=r.cx,v=r.cy;c=Math.abs(u[0]-y)/g<.3?"center":u[0]>y?"left":"right",d=Math.abs(u[1]-v)/g<.3?"middle":u[1]>v?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}(t,n,0,i,r.get(["label","margin"]));I(e,n,r,a,f)},t}(_),he={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:N(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var a=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:j(t.cx,t.cy,r[0],r[1],(-n-a/2)*o,(a/2-n)*o)}:{type:"Sector",shape:j(t.cx,t.cy,n-a/2,n+a/2,0,2*Math.PI)}}};const me=fe,ge=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(H.A);var ye=n(59470),ve=n(12462),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",h.US).models[0]},t.type="polarAxis",t}(H.A);i.mixin(be,ve.L);var xe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="angleAxis",t}(be),Se=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="radiusAxis",t}(be),we=n(20912),Ae=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return(0,o.C6)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(we.A);Ae.prototype.dataToRadius=we.A.prototype.dataToCoord,Ae.prototype.radiusToData=we.A.prototype.coordToData;const _e=Ae;var Ce=(0,h.$r)(),Te=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return(0,o.C6)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),a=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],i=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(i),l=C.NO(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),d=Ce(e.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-c)<=1&&Math.abs(f-a)<=1&&p>c?c=p:(d.lastTickCount=a,d.lastAutoInterval=c),c},t}(we.A);Te.prototype.dataToAngle=we.A.prototype.dataToCoord,Te.prototype.angleToData=we.A.prototype.coordToData;const Ee=Te;var Me=["radius","angle"];function ke(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const Oe=function(){function e(e){this.dimensions=Me,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new _e,this._angleAxis=new Ee,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),a=r.getExtent(),o=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]);r.inverse?o=i-360:i=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,u=li;)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,a=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,o=n*n+r*r,i=this.r,s=this.r0;return i!==s&&o-a<=i*i&&o+a>=s*s}}},e.prototype.convertToPixel=function(e,t,n){return ke(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return ke(t)===this?this.pointToData(n):null},e}();var Pe=n(24326);function Ie(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();i.each((0,M.wq)(t,"radius"),(function(e){a.scale.unionExtentFromData(t,e)})),i.each((0,M.wq)(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),(0,M.af)(r.scale,r.model),(0,M.af)(a.scale,a.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),s=360/r.scale.count();r.inverse?o[1]+=s:o[1]-=s,r.setExtent(o[0],o[1])}}function De(e,t){var n;if(e.type=t.get("type"),e.scale=(0,M.f$)(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),a=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,a)}t.axis=e,e.model=t}const Re={dimensions:Me,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var a=new Oe(r+"");a.update=Ie;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=e.findAxisModel("radiusAxis"),u=e.findAxisModel("angleAxis");De(o,l),De(s,u),function(e,t,n){var r=t.get("center"),a=n.getWidth(),o=n.getHeight();e.cx=(0,Pe.lo)(r[0],a),e.cy=(0,Pe.lo)(r[1],o);var s=e.getRadiusAxis(),l=Math.min(a,o)/2,u=t.get("radius");null==u?u=[0,"100%"]:i.isArray(u)||(u=[0,u]);var c=[(0,Pe.lo)(u[0],l),(0,Pe.lo)(u[1],l)];s.inverse?s.setExtent(c[1],c[0]):s.setExtent(c[0],c[1])}(a,e,t),n.push(a),e.coordinateSystem=a,a.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",h.US).models[0];e.coordinateSystem=t.coordinateSystem}})),n}};var Le=n(42933),Ne=n(82861),$e=n(25014),je=n(43172),Fe=n(69622),Be=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ze(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function Ve(e){return e.getRadiusAxis().inverse?0:1}function We(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var Ue=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,o.C6)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,a=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),s=n.getMinorTicksCoords(),l=i.map(n.getViewLabels(),(function(e){e=i.clone(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));We(l),We(o),i.each(Be,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||He[t](this.group,e,r,o,s,a,l)}),this)}},t.type="angleAxis",t}(a.A),He={axisLine:function(e,t,n,r,a,o){var i,s=t.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),p=Ve(n),f=p?0:1,h=360===Math.abs(d[1]-d[0])?"Circle":"Arc";(i=0===o[f]?new l[h]({shape:{cx:n.cx,cy:n.cy,r:o[p],startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Le.A({shape:{cx:n.cx,cy:n.cy,r:o[p],r0:o[f]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(i)},axisTick:function(e,t,n,r,a,o){var s=t.getModel("axisTick"),u=(s.get("inside")?-1:1)*s.get("length"),c=o[Ve(n)],d=i.map(r,(function(e){return new Ne.A({shape:ze(n,[c,c+u],e.coord)})}));e.add(l.mergePath(d,{style:i.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,o){if(a.length){for(var s=t.getModel("axisTick"),u=t.getModel("minorTick"),c=(s.get("inside")?-1:1)*u.get("length"),d=o[Ve(n)],p=[],f=0;fg?"left":"right",b=Math.abs(m[1]-y)/h<.3?"middle":m[1]>y?"top":"bottom";if(l&&l[f]){var x=l[f];i.isObject(x)&&x.textStyle&&(s=new je.A(x.textStyle,c,c.ecModel))}var S=new u.Ay({silent:k.A.isLabelSilent(t),style:(0,O.VB)(s,{x:m[0],y:m[1],fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:b})});if(e.add(S),p){var w=k.A.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=r.rawLabel,(0,Fe.z)(S).eventData=w}}),this)},splitLine:function(e,t,n,r,a,o){var s=t.getModel("splitLine").getModel("lineStyle"),u=s.get("color"),c=0;u=u instanceof Array?u:[u];for(var d=[],p=0;p=0?"p":"n",E=S;v&&(r[s][C]||(r[s][C]={p:S,n:S}),E=r[s][C][T]);var M=void 0,k=void 0,O=void 0,P=void 0;if("radius"===d.dim){var I=d.dataToCoord(_)-S,D=o.dataToCoord(C);Math.abs(I)=P})}}}))};var rt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},at={splitNumber:5},ot=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="polar",t}(ee.A);function it(e){(0,de.Y)(ce),a.A.registerAxisPointerClass("PolarAxisPointer",me),e.registerCoordinateSystem("polar",Re),e.registerComponentModel(ge),e.registerComponentView(ot),(0,ye.A)(e,"angle",xe,rt),(0,ye.A)(e,"radius",Se,at),e.registerComponentView(qe),e.registerComponentView(Xe),e.registerLayout((0,i.curry)(nt,"bar"))}var st=n(63279),lt=n(60487);function ut(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,a={},o=r.position,s=r.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};a.position=["vertical"===s?c.vertical[o]:u[0],"horizontal"===s?c.horizontal[o]:u[3]],a.rotation=Math.PI/2*{horizontal:0,vertical:1}[s],a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),i.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),a.labelRotation="top"===o?-d:d,a.z2=1,a}var ct=n(35369),dt=["axisLine","axisTickLabel","axisName"],pt=["splitArea","splitLine"],ft=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return(0,o.C6)(t,e),t.prototype.render=function(t,n,r,a){var o=this.group;o.removeAll();var u=this._axisGroup;this._axisGroup=new s.A;var c=ut(t),d=new k.A(t,c);i.each(dt,d.add,d),o.add(this._axisGroup),o.add(d.getGroup()),i.each(pt,(function(e){t.get([e,"show"])&&ht[e](this,this.group,this._axisGroup,t)}),this),l.groupTransition(u,this._axisGroup,t),e.prototype.render.call(this,t,n,r,a)},t.prototype.remove=function(){(0,ct.V)(this)},t.type="singleAxis",t}(a.A),ht={splitLine:function(e,t,n,r){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color");u=u instanceof Array?u:[u];for(var c=s.get("width"),d=r.coordinateSystem.getRect(),p=a.isHorizontal(),f=[],h=0,m=a.getTicksCoords({tickModel:o}),g=[],y=[],v=0;v=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],a="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[a]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-a]=0===a?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){return St(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return St(t)===this?this.pointToData(n):null},e}(),At={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,a){var o=new wt(r,e,t);o.name="single_"+a,o.resize(r,t),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",h.US).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:xt};var _t=["x","y"],Ct=["width","height"],Tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.makeElOption=function(e,t,n,r,a){var o=n.axis,i=o.coordinateSystem,s=kt(i,1-Mt(o)),l=i.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=P(r),d=Et[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}L(t,e,ut(n),n,r,a)},t.prototype.getHandleTransform=function(e,t,n){var r=ut(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var a=R(t.axis,e,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var a=n.axis,o=a.coordinateSystem,i=Mt(a),s=kt(o,i),l=[e.x,e.y];l[i]+=t[i],l[i]=Math.min(s[1],l[i]),l[i]=Math.max(s[0],l[i]);var u=kt(o,1-i),c=(u[1]+u[0])/2,d=[c,c];return d[i]=l[i],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(_),Et={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:N([t,n[0]],[t,n[1]],Mt(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:$([t-r/2,n[0]],[r,a],Mt(e))}}};function Mt(e){return e.isHorizontal()?0:1}function kt(e,t){var n=e.getRect();return[n[_t[t]],n[_t[t]]+n[Ct[t]]]}const Ot=Tt;var Pt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="single",t}(ee.A);function It(e){(0,de.Y)(ce),a.A.registerAxisPointerClass("SingleAxisPointer",Ot),e.registerComponentView(Pt),e.registerComponentView(mt),e.registerComponentModel(yt),(0,ye.A)(e,"single",yt,yt.defaultOption),e.registerCoordinateSystem("single",At)}var Dt=n(3498);function Rt(e,t){var n,r=e.cellSize;1===(n=i.isArray(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var a=i.map([0,1],(function(e){return(0,bt.Qf)(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));(0,bt.YA)(e,t,{type:"box",ignoreSize:a})}const Lt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.init=function(t,n,r){var a=(0,bt.vs)(t);e.prototype.init.apply(this,arguments),Rt(t,a)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),Rt(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(H.A);var Nt=n(30010),$t=n(39195),jt=n(30182);const Ft=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var a=e.coordinateSystem,o=a.getRangeInfo(),i=a.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,r),this._renderLines(e,o,i,r),this._renderYearText(e,o,i,r),this._renderMonthText(e,s,i,r),this._renderWeekText(e,s,o,i,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,a=e.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),i=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new Nt.A({shape:{x:l[0],y:l[1],width:o,height:i},cursor:"default",style:a});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var a=this,o=e.coordinateSystem,i=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=i.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){p(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function p(t){a._firstDayOfMonth.push(o.getDateInfo(t)),a._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=a._getLinePointsOfOneWeek(e,t,n);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,i,r)}p(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,n),i,r),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,n),i,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],a="horizontal"===n?0:1;return r[0][a]=r[0][a]-t/2,r[1][a]=r[1][a]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new $t.A({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,a=r.getDateInfo(t),o=[],i=0;i<7;i++){var s=r.getNextNDay(a.time,i),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return(0,i.isString)(e)&&e?(0,T.io)(e,t):(0,i.isFunction)(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,a){var o=t[0],i=t[1],s=["center","bottom"];"bottom"===r?(i+=a,s=["center","top"]):"left"===r?o-=a:"right"===r?(o+=a,s=["center","top"]):i-=a;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:i,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var a=e.getModel("yearLabel");if(a.get("show")){var o=a.get("margin"),i=a.get("position");i||(i="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,d="horizontal"===n?0:1,p={top:[l,s[d][1]],bottom:[l,s[1-d][1]],left:[s[1-d][0],c],right:[s[d][0],c]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var h=a.get("formatter"),m={start:t.start.y,end:t.end.y,nameMap:f},g=this._formatterLabel(h,m),y=new u.Ay({z2:30,style:(0,O.VB)(a,{text:g}),silent:a.get("silent")});y.attr(this._yearTextPositionControl(y,p[i],n,i,o)),r.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,r,a){var o="left",i="top",s=e[0],l=e[1];return"horizontal"===n?(l+=a,t&&(o="center"),"start"===r&&(i="bottom")):(s+=a,t&&(i="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:i}},t.prototype._renderMonthText=function(e,t,n,r){var a=e.getModel("monthLabel");if(a.get("show")){var o=a.get("nameMap"),s=a.get("margin"),l=a.get("position"),c=a.get("align"),d=[this._tlpoints,this._blpoints];o&&!(0,i.isString)(o)||(o&&(t=(0,jt.A4)(o)||t),o=t.get(["time","monthAbbr"])||[]);var p="start"===l?0:1,f="horizontal"===n?0:1;s="start"===l?-s:s;for(var h="center"===c,m=a.get("silent"),g=0;g=r.start.time&&n.times.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/Bt)-Math.floor(n[0].time/Bt)+1,a=new Date(n[0].time),o=a.getDate(),i=n[1].date.getDate();a.setDate(o+r-1);var s=a.getDate();if(s!==i)for(var l=a.getTime()-n[1].time>0?1:-1;(s=a.getDate())!==i&&(a.getTime()-n[1].time)*l>0;)r-=l,a.setDate(s-l);var u=Math.floor((r+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&tr.lweek)return null;var a=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(+r.start.d+a),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(a){var o=new e(a,t,n);r.push(o),a.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function Wt(e){e.registerComponentModel(Lt),e.registerComponentView(Ft),e.registerCoordinateSystem("calendar",Vt)}function Ut(e,t){var n;return i.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var Ht=["transition","enterFrom","leaveTo"],qt=Ht.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Gt(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?Ht:qt,a=0;a=0;u--){var g,y;if(d=n[u],y=null!=(g=h.vS(d.id,null))?a.get(g):null){var v=y.parent,b=(m=tn(v),v===r?{width:o,height:s}:{width:m.width,height:m.height}),x={},S=bt.m$(y,d,b,null,{hv:d.hv,boundingMode:d.bounding},x);if(!tn(y).isNew&&S){for(var w=d.transition,A={},_=0;_=0)?A[C]=T:y[C]=T}(0,c.oi)(y,A,e,0)}else y.attr(x)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){on(n,tn(n).option,t,e._lastGraphicModel)})),this._elMap=i.createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ee.A);function rn(e){var t=new(i.hasOwn(en,e)?en[e]:l.getShapeClass(e))({});return tn(t).type=e,t}function an(e,t,n,r){var a=rn(n);return t.add(a),r.set(e,a),tn(a).id=e,tn(a).isNew=!0,a}function on(e,t,n,r){e&&e.parent&&("group"===e.type&&e.traverse((function(e){on(e,t,n,r)})),(0,Xt.h8)(e,t,r),n.removeKey(tn(e).id))}function sn(e,t,n,r){e.isGroup||i.each([["cursor",Kt.Ay.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];i.hasOwn(t,r)?e[r]=i.retrieve2(t[r],n[1]):null==e[r]&&(e[r]=n[1])})),i.each(i.keys(t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=i.isFunction(r)?r:null}})),i.hasOwn(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function ln(e){e.registerComponentModel(Yt),e.registerComponentView(nn),e.registerPreprocessor((function(e){var t=e.graphic;(0,i.isArray)(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var un=["x","y","radius","angle","single"],cn=["cartesian2d","polar","singleAxis"];function dn(e){return e+"Axis"}function pn(e){var t=e.ecModel,n={infoList:[],infoMap:(0,i.createHashMap)()};return e.eachTargetAxis((function(e,r){var a=t.getComponent(dn(e),r);if(a){var o=a.getCoordSysModel();if(o){var i=o.uid,s=n.infoMap.get(i);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(i,s)),s.axisModels.push(a)}}})),n}var fn=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}();function hn(e){var t={};return(0,i.each)(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}const mn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,o.C6)(t,e),t.prototype.init=function(e,t,n){var r=hn(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=hn(e);(0,i.merge)(this.option,e,!0),(0,i.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;(0,i.each)([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=(0,i.createHashMap)();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return(0,i.each)(un,(function(n){var r=this.getReferringComponents(dn(n),h.UW);if(r.specified){t=!0;var a=new fn;(0,i.each)(r.models,(function(e){a.add(e.componentIndex)})),e.set(n,a)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var a="vertical"===t?"y":"x";o(n.findComponents({mainType:a+"Axis"}),a)}function o(t,n){var a=t[0];if(a){var o=new fn;if(o.add(a.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var s=a.getReferringComponents("grid",h.US).models[0];s&&(0,i.each)(t,(function(e){a.componentIndex!==e.componentIndex&&s===e.getReferringComponents("grid",h.US).models[0]&&o.add(e.componentIndex)}))}}}r&&o(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single"),r&&(0,i.each)(un,(function(t){if(r){var a=n.findComponents({mainType:dn(t),filter:function(e){return"category"===e.get("type",!0)}});if(a[0]){var o=new fn;o.add(a[0].componentIndex),e.set(t,o),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");(0,i.each)([["start","startValue"],["end","endValue"]],(function(r,a){var o=null!=e[r[0]],i=null!=e[r[1]];o&&!i?t[a]="percent":!o&&i?t[a]="value":n?t[a]=n[a]:o&&(t[a]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(dn(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){(0,i.each)(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(dn(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;(0,i.each)([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;(0,i.each)(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r=0}(t)){var n=dn(this._dimName),r=t.getReferringComponents(n,h.US).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return i.clone(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],i=[],s=[];Sn(["start","end"],(function(l,u){var c=e[l],d=e[l+"Value"];"percent"===a[u]?(null==c&&(c=o[u]),d=r.parse(Pe.Cb(c,o,n))):(t=!0,d=null==d?n[u]:r.parse(d),c=Pe.Cb(d,n,o)),s[u]=null==d||isNaN(d)?n[u]:d,i[u]=null==c||isNaN(c)?o[u]:c})),wn(s),wn(i);var l=this._minMaxSpan;function u(e,t,n,a,o){var i=o?"Span":"ValueSpan";(0,bn.A)(0,e,n,"all",l["min"+i],l["max"+i]);for(var s=0;s<2;s++)t[s]=Pe.Cb(e[s],n,a,!0),o&&(t[s]=r.parse(t[s]))}return t?u(s,i,n,o,!1):u(i,s,o,n,!0),{valueWindow:s,percentWindow:i}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];Sn(n,(function(e){(0,M.PN)(r,e.getData(),t)}));var a=e.getAxisModel(),o=(0,xn.Tc)(a.axis.scale,a,r).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._valueWindow;"none"!==a&&Sn(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===a){var s=t.getStore(),l=i.map(r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,a,i=0;io[1];if(c&&!d&&!p)return!0;c&&(a=!0),d&&(t=!0),p&&(n=!0)}return a&&t&&n}))}else Sn(r,(function(n){if("empty"===a)e.setData(t=t.map(n,(function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}}));Sn(r,(function(e){t.setApproximateExtent(o,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Sn(["min","max"],(function(r){var a=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?a=Pe.Cb(n[0]+o,n,[0,100],!0):null!=a&&(o=Pe.Cb(a,[0,100],n,!0)-n[0]),e[r+"Span"]=a,e[r+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Pe.hb(n,[0,500]);r=Math.min(r,20);var a=e.axis.scale.rawExtentInfo;0!==t[0]&&a.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&a.setDeterminedMinMax("max",+n[1].toFixed(r)),a.freeze()}},e}(),_n={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,a){var o=e.getComponent(dn(r),a);t(r,a,o,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,a,o){a.__dzAxisProxy||(a.__dzAxisProxy=new An(t,r,o,e),n.push(a.__dzAxisProxy))}));var r=(0,i.createHashMap)();return(0,i.each)(n,(function(e){(0,i.each)(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};var Cn=!1;function Tn(e){Cn||(Cn=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,_n),function(e){e.registerAction("dataZoom",(function(e,t){var n=function(e,t){var n,r=(0,i.createHashMap)(),a=[],o=(0,i.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||l(e)}));do{n=!1,e.eachComponent("dataZoom",s)}while(n);function s(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var a=r.get(e);a&&a[n]&&(t=!0)})),t}(e)&&(l(e),n=!0)}function l(e){o.set(e.uid,!0),a.push(e),e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return a}(t,e);(0,i.each)(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function En(e){e.registerComponentModel(gn),e.registerComponentView(vn),Tn(e)}var Mn=function(){},kn={};function On(e,t){kn[e]=t}function Pn(e){return kn[e]}const In=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;i.each(this.option.feature,(function(e,n){var r=Pn(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),i.merge(e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(H.A);var Dn=n(34833),Rn=n(16563);function Ln(e,t){var n=T.QX(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),new Nt.A({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}var Nn=n(12616),$n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n,r){var a=this.group;if(a.removeAll(),e.get("show")){var o=+e.get("itemSize"),s="vertical"===e.get("orient"),c=e.get("feature")||{},d=this._features||(this._features={}),p=[];i.each(c,(function(e,t){p.push(t)})),new Rn.A(this._featureNames||[],p).add(f).update(f).remove(i.curry(f,null)).execute(),this._featureNames=p,function(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},i=(0,bt.dV)(r,o,a);(0,bt.aP)(t.get("orient"),e,t.get("itemGap"),i.width,i.height),(0,bt.m$)(e,r,o,a)}(a,e,n),a.add(Ln(a.getBoundingRect(),e)),s||a.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),s=r.textConfig||(r.textConfig={}),l=e.getTextContent(),c=l&&l.ensureState("emphasis");if(c&&!i.isFunction(c)&&t){var d=c.style||(c.style={}),p=C.NO(t,u.Ay.makeFont(d)),f=e.x+a.x,h=!1;e.y+a.y+o+p.height>n.getHeight()&&(s.position="top",h=!0);var m=h?-5-p.height:o+10;f+p.width/2>n.getWidth()?(s.position=["100%",m],d.align="right"):f-p.width/2<0&&(s.position=[0,m],d.align="left")}}))}function f(f,h){var m,g=p[f],y=p[h],v=c[g],b=new je.A(v,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===g&&(v.title=r.newTitle),g&&!y){if(function(e){return 0===e.indexOf("my")}(g))m={onclick:b.option.onclick,featureName:g};else{var x=Pn(g);if(!x)return;m=new x}d[g]=m}else if(!(m=d[y]))return;m.uid=(0,Nn.$Q)("toolbox-feature"),m.model=b,m.ecModel=t,m.api=n;var S=m instanceof Mn;g||!y?!b.get("show")||S&&m.unusable?S&&m.remove&&m.remove(t,n):(function(r,c,d){var p,f,h=r.getModel("iconStyle"),m=r.getModel(["emphasis","iconStyle"]),g=c instanceof Mn&&c.getIcons?c.getIcons():r.get("icon"),y=r.get("title")||{};i.isString(g)?(p={})[d]=g:p=g,i.isString(y)?(f={})[d]=y:f=y;var v=r.iconPaths={};i.each(p,(function(d,p){var g=l.createIcon(d,{},{x:-o/2,y:-o/2,width:o,height:o});g.setStyle(h.getItemStyle()),g.ensureState("emphasis").style=m.getItemStyle();var y=new u.Ay({style:{text:f[p],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:(0,O.c8)({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},t)},ignore:!0});g.setTextContent(y),l.setTooltipConfig({el:g,componentModel:e,itemName:p,formatterParamsExtra:{title:f[p]}}),g.__title=f[p],g.on("mouseover",(function(){var t=m.getItemStyle(),r=s?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";y.setStyle({fill:m.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),g.setTextConfig({position:m.get("textPosition")||r}),y.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",p])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===r.get(["iconStatus",p])?Dn.HY:Dn.SD)(g),a.add(g),g.on("click",i.bind(c.onclick,c,t,n,p)),v[p]=g}))}(b,m,g),b.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?Dn.HY:Dn.SD)(r[e])},m instanceof Mn&&m.render&&m.render(b,t,n,r)):S&&m.dispose&&m.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){i.each(this._features,(function(e){e instanceof Mn&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){i.each(this._features,(function(n){n instanceof Mn&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){i.each(this._features,(function(n){n instanceof Mn&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(ee.A);const jn=$n,Fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",a="svg"===t.getZr().painter.getType(),o=a?"svg":n.get("type",!0)||"png",i=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=G.A.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||a){var l=i.split(","),u=l[0].indexOf("base64")>-1,c=a?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=c.length,f=new Uint8Array(p);p--;)f[p]=c.charCodeAt(p);var h=new Blob([f]);window.navigator.msSaveOrOpenBlob(h,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var g=m.contentWindow,y=g.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),g.focus(),y.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var v=n.get("lang"),b='',x=window.open();x.document.write(b),x.document.title=r}else{var S=document.createElement("a");S.download=r+"."+o,S.target="_blank",S.href=i;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});S.dispatchEvent(w)}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(Mn);var Bn=n(92351),zn="__ec_magicType_stack__",Vn=[["line","bar"],["stack"]],Wn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return i.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,a=r.get(["seriesIndex",n]);if(Un[n]){var o,s={series:[]};i.each(Vn,(function(e){i.indexOf(e,n)>=0&&i.each(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},(function(e){var t=e.subType,a=e.id,o=Un[n](t,a,e,r);o&&(i.defaults(o,e.option),s.series.push(o));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var c=u.dim+"Axis",d=e.getReferringComponents(c,h.US).models[0].componentIndex;s[c]=s[c]||[];for(var p=0;p<=d;p++)s[c][d]=s[c][d]||{};s[c][d].boundaryGap="bar"===n}}}));var l=n;"stack"===n&&(o=i.merge({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:s,newTitle:o,featureName:"magicType"})}},t}(Mn),Un={line:function(e,t,n,r){if("bar"===e)return i.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return i.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===zn;if("line"===e||"bar"===e)return r.setIconStatus("stack",a?"normal":"emphasis"),i.merge({id:t,stack:a?"":zn},r.get(["option","stack"])||{},!0)}};Bn.OH({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));const Hn=Wn;var qn=new Array(60).join("-"),Gn="\t";function Yn(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Kn=new RegExp("[\t]+","g");var Zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),s=r.get("lang")||[];o.innerHTML=s[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="overflow:auto";var c=r.get("optionToContent"),d=r.get("contentToOption"),f=function(e){var t,n,r,a=function(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var a=e.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)n.push(e);else{var o=a.getBaseAxis();if("category"===o.type){var i=o.dim+"_"+o.index;t[i]||(t[i]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[i].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:i.filter([(n=a.seriesGroupByCategoryAxis,r=[],i.each(n,(function(e,t){var n=e.categoryAxis,a=e.valueAxis.dim,o=[" "].concat(i.map(e.series,(function(e){return e.name}))),s=[n.model.getCategories()];i.each(e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(a),(function(e){return e})))}));for(var l=[o.join(Gn)],u=0;u=0)return!0}(e)){var a=function(e){for(var t=e.split(/\n+/g),n=Yn(t.shift()).split(Kn),r=[],a=i.map(n,(function(e){return{name:e,data:[]}})),o=0;o=0)&&e(a,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=fr[e.brushType](0,n,t);e.__rangeOffset={offset:mr[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){(0,i.each)(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&(0,i.each)(r.coordSyses,(function(r){var a=fr[e.brushType](1,r,e.range,!0);n(e,a.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){(0,i.each)(e,(function(e){var n,r,a,o,i,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=fr[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?mr[e.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,a=yr(n),o=yr(r),i=[a[0]/o[0],a[1]/o[1]],isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i)):l.values}}),this)},e.prototype.makePanelOpts=function(e,t){return(0,i.map)(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:or.wd(r),isTargetByCursor:or.x$(r,e,n.coordSysModel),getLinearBrushOtherExtent:or.wx(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&(0,i.indexOf)(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=ur(t,e),a=0;ae[1]&&e.reverse(),e}function ur(e,t){return(0,h._e)(e,t,{includeMainTypes:ir})}var cr={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,o=(0,i.createHashMap)(),s={},l={};(n||r||a)&&((0,i.each)(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),(0,i.each)(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),l[t.id]=!0})),(0,i.each)(a,(function(e){o.set(e.id,e),s[e.id]=!0,l[e.id]=!0})),o.each((function(e){var a=e.coordinateSystem,o=[];(0,i.each)(a.getCartesians(),(function(e,t){((0,i.indexOf)(n,e.getAxis("x").model)>=0||(0,i.indexOf)(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:pr.grid,xAxisDeclared:s[e.id],yAxisDeclared:l[e.id]})})))},geo:function(e,t){(0,i.each)(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:pr.geo})}))}},dr=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],pr={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(l.getTransform(e)),t}},fr={lineX:(0,i.curry)(hr,0),lineY:(0,i.curry)(hr,1),rect:function(e,t,n,r){var a=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),i=[lr([a[0],o[0]]),lr([a[1],o[1]])];return{values:i,xyMinMax:i}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,i.map)(n,(function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o})),xyMinMax:a}}};function hr(e,t,n,r){var a=n.getAxis(["x","y"][e]),o=lr((0,i.map)([0,1],(function(e){return t?a.coordToData(a.toLocalCoord(r[e]),!0):a.toGlobalCoord(a.dataToCoord(r[e]))}))),s=[];return s[e]=o,s[1-e]=[NaN,NaN],{values:o,xyMinMax:s}}var mr={lineX:(0,i.curry)(gr,0),lineY:(0,i.curry)(gr,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return(0,i.map)(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function gr(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function yr(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const vr=sr;var br=n(7442),xr=i.each,Sr=(0,h.S_)("toolbox-dataZoom_"),wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new ar.A(n.getZr()),this._brushController.on("brush",i.bind(this._onBrush,this)).mount()),function(e,t,n,r,a){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var i=new vr(_r(e),t,{include:["grid"]}).makePanelOpts(a,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(i).enableBrush(!(!o||!i.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return tr(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){Ar[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new vr(_r(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(a("x",n,t[0]),a("y",n,t[1])):a({lineX:"x",lineY:"y"}[r],n,t)}})),function(e,t){var n=tr(e);Jn(t,(function(t,r){for(var a=n.length-1;a>=0&&!n[a][r];a--);if(a<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var i=o.getPercentRange();n[0][r]={dataZoomId:r,start:i[0],end:i[1]}}}})),n.push(t)}(r,n),this._dispatchZoomAction(n)}function a(e,t,a){var o=t.getAxis(e),i=o.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)})),r}(e,i,r),l=s.findRepresentativeAxisProxy(i).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(a=(0,bn.A)(0,a.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:a[0],endValue:a[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];xr(e,(function(e,n){t.push(i.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(Mn),Ar={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=tr(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Jn(n,(function(e,n){for(var a=t.length-1;a>=0;a--)if(e=t[a][n]){r[n]=e;break}})),r}(this.ecModel))}};function _r(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}(0,br.S)("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),a=[],o=_r(r),i=(0,h._e)(e,o);return xr(i.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),xr(i.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),a}function s(e,t,n){var o=e.componentIndex,i={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Sr+t+o};i[n]=o,a.push(i)}}));const Cr=wr;function Tr(e){e.registerComponentModel(In),e.registerComponentView(jn),On("saveAsImage",Fn),On("magicType",Hn),On("dataView",Xn),On("dataZoom",Cr),On("restore",rr),(0,de.Y)(En)}const Er=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(H.A);var Mr=n(29687);function kr(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function Or(e){if(G.A.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n-1?(c+="top:50%",d+="translateY(-50%) rotate("+(s="left"===l?-225:-45)+"deg)"):(c+="left:50%",d+="translateX(-50%) rotate("+(s="top"===l?225:45)+"deg)");var p=s*Math.PI/180,f=u+a,h=f*Math.abs(Math.cos(p))+f*Math.abs(Math.sin(p)),m=t+" solid "+a+"px;";return'
'}(n,r,a)),(0,i.isString)(e))o.innerHTML=e+s;else if(e){o.innerHTML="",(0,i.isArray)(e)||(e=[e]);for(var l=0;l=0;o--){var s=e[o];s&&(s instanceof je.A&&(s=s.get("tooltip",!0)),(0,i.isString)(s)&&(s={formatter:s}),s&&(r=new je.A(s,r,a)))}return r}function Jr(e,t){return e.dispatchAction||(0,i.bind)(t.dispatchAction,t)}function ea(e){return"center"===e||"middle"===e}const ta=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.init=function(e,t){if(!G.A.node&&t.getDom()){var n=e.getComponent("tooltip"),r=this._renderMode=(0,h.XJ)(n.get("renderMode"));this._tooltipContent="richText"===r?new Gr(t):new zr(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!G.A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?(0,f.N)(this,"_updatePosition",50,"fixRate"):(0,f.IU)(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");Z("itemTooltip",this._api,(0,i.bind)((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&a.manuallyShowTip(e,t,n,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!G.A.node&&n.getDom()){var a=Jr(r,n);this._ticket="";var o=r.dataByCoordSys,i=function(e,t,n){var r=(0,h.HB)(e).queryOptionMap,a=r.keys()[0];if(a&&"series"!==a){var o,i=(0,h.JO)(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(i)return n.getViewOfComponentModel(i).group.traverse((function(t){var n=(0,Fe.z)(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0})),o?{componentMainType:a,componentIndex:i.componentIndex,el:o}:void 0}}(r,t,n);if(i){var s=i.el.getBoundingRect().clone();s.applyTransform(i.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:i.el,position:r.position,positionDefault:"bottom"},a)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=Qr;l.x=r.x,l.y=r.y,l.update(),(0,Fe.z)(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},a)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},a);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=ne(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},a)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},a))}},t.prototype.manuallyHideTip=function(e,t,n,r){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(Jr(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var a=r.seriesIndex,o=r.dataIndex,i=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=o&&null!=i){var s=t.getSeriesByIndex(a);if(s&&"axis"===Xr([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var a,o;if("legend"===(0,Fe.z)(n).ssrType)return;this._lastDataByCoordSys=null,(0,Zr.R)(n,(function(e){return null!=(0,Fe.z)(e).dataIndex?(a=e,!0):null!=(0,Fe.z)(e).tooltipConfig?(o=e,!0):void 0}),!0),a?this._showSeriesItemTooltip(e,a,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=(0,i.bind)(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,a=[t.offsetX,t.offsetY],o=Xr([t.tooltipOption],r),s=this._renderMode,l=[],u=(0,Rr.Qx)("section",{blocks:[],noHeader:!0}),c=[],d=new Rr.lb;(0,i.each)(e,(function(e){(0,i.each)(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),a=e.value;if(t&&null!=a){var o=D(a,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),p=(0,Rr.Qx)("section",{header:o,noHeader:!(0,i.trim)(o),sortBlocks:!0,blocks:[]});u.blocks.push(p),(0,i.each)(e.seriesDataIndices,(function(u){var f=n.getSeriesByIndex(u.seriesIndex),h=u.dataIndexInside,m=f.getDataParams(h);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=M.Dt(t.axis,{value:a}),m.axisValueLabel=o,m.marker=d.makeTooltipMarker("item",(0,T.he)(m.color),s);var g=(0,Kr.L)(f.formatTooltip(h,!0,null)),y=g.frag;if(y){var v=Xr([f],r).get("valueFormatter");p.blocks.push(v?(0,i.extend)({valueFormatter:v},y):y)}g.text&&c.push(g.text),l.push(m)}}))}}))})),u.blocks.reverse(),c.reverse();var p=t.position,f=o.get("order"),h=(0,Rr.Yu)(u,d,s,f,n.get("useUTC"),o.get("textStyle"));h&&c.unshift(h);var m="richText"===s?"\n\n":"
",g=c.join(m);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,p,a[0],a[1],this._tooltipContent,l):this._showTooltipContent(o,g,l,Math.random()+"",a[0],a[1],p,null,d)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,a=(0,Fe.z)(t),o=a.seriesIndex,s=r.getSeriesByIndex(o),l=a.dataModel||s,u=a.dataIndex,c=a.dataType,d=l.getData(c),p=this._renderMode,f=e.positionDefault,h=Xr([d.getItemModel(u),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=h.get("trigger");if(null==m||"item"===m){var g=l.getDataParams(u,c),y=new Rr.lb;g.marker=y.makeTooltipMarker("item",(0,T.he)(g.color),p);var v=(0,Kr.L)(l.formatTooltip(u,!1,c)),b=h.get("order"),x=h.get("valueFormatter"),S=v.frag,w=S?(0,Rr.Yu)(x?(0,i.extend)({valueFormatter:x},S):S,y,p,b,r.get("useUTC"),h.get("textStyle")):v.text,A="item_"+l.name+"_"+u;this._showOrMove(h,(function(){this._showTooltipContent(h,w,g,A,e.offsetX,e.offsetY,e.position,e.target,y)})),n({type:"showTip",dataIndexInside:u,dataIndex:d.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,a=(0,Fe.z)(t),o=a.tooltipConfig.option||{},s=o.encodeHTMLContent;(0,i.isString)(o)&&(o={content:o,formatter:o},s=!0),s&&r&&o.content&&((o=(0,i.clone)(o)).content=(0,Mr.Me)(o.content));var l=[o],u=this._ecModel.getComponent(a.componentMainType,a.componentIndex);u&&l.push(u),l.push({formatter:o.content});var c=e.positionDefault,d=Xr(l,this._tooltipModel,c?{position:c}:null),p=d.get("content"),f=Math.random()+"",h=new Rr.lb;this._showOrMove(d,(function(){var n=(0,i.clone)(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,f,e.offsetX,e.offsetY,e.position,t,h)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,a,o,s,l,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var d=e.get("formatter");s=s||e.get("position");var p=t,f=this._getNearestPoint([a,o],n,e.get("trigger"),e.get("borderColor")).color;if(d)if((0,i.isString)(d)){var h=e.ecModel.get("useUTC"),m=(0,i.isArray)(n)?n[0]:n;p=d,m&&m.axisType&&m.axisType.indexOf("time")>=0&&(p=(0,Yr.GP)(m.axisValue,p,h)),p=(0,T.YK)(p,n,!0)}else if((0,i.isFunction)(d)){var g=(0,i.bind)((function(t,r){t===this._ticket&&(c.setContent(r,u,e,f,s),this._updatePosition(e,s,a,o,c,n,l))}),this);this._ticket=r,p=d(n,r,g)}else p=d;c.setContent(p,u,e,f,s),c.show(e,f),this._updatePosition(e,s,a,o,c,n,l)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||(0,i.isArray)(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:(0,i.isArray)(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,a,o,s){var l=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=a.getSize(),d=e.get("align"),p=e.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),(0,i.isFunction)(t)&&(t=t([n,r],o,a.el,f,{viewSize:[l,u],contentSize:c.slice()})),(0,i.isArray)(t))n=(0,Pe.lo)(t[0],l),r=(0,Pe.lo)(t[1],u);else if((0,i.isObject)(t)){var h=t;h.width=c[0],h.height=c[1];var m=(0,bt.dV)(h,{width:l,height:u});n=m.x,r=m.y,d=null,p=null}else if((0,i.isString)(t)&&s){var g=function(e,t,n,r){var a=n[0],o=n[1],i=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-a/2,l=t.y-o-i;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+i;break;case"left":s=t.x-a-i,l=t.y+c/2-o/2;break;case"right":s=t.x+u+i,l=t.y+c/2-o/2}return[s,l]}(t,f,c,e.get("borderWidth"));n=g[0],r=g[1]}else g=function(e,t,n,r,a,o,i){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>r?e-=l+o:e+=o),null!=i&&(t+u+i>a?t-=u+i:t+=i),[e,t]}(n,r,a,l,u,d?null:20,p?null:20),n=g[0],r=g[1];d&&(n-=ea(d)?c[0]/2:"right"===d?c[0]:0),p&&(r-=ea(p)?c[1]/2:"bottom"===p?c[1]:0),kr(e)&&(g=function(e,t,n,r,a){var o=n.getSize(),i=o[0],s=o[1];return e=Math.min(e+i,r)-i,t=Math.min(t+s,a)-s,[e=Math.max(e,0),t=Math.max(t,0)]}(n,r,a,l,u),n=g[0],r=g[1]),a.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,a=!!n&&n.length===e.length;return a&&(0,i.each)(n,(function(n,o){var s=n.dataByAxis||[],l=(e[o]||{}).dataByAxis||[];(a=a&&s.length===l.length)&&(0,i.each)(s,(function(e,n){var o=l[n]||{},s=e.seriesDataIndices||[],u=o.seriesDataIndices||[];(a=a&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&s.length===u.length)&&(0,i.each)(s,(function(e,t){var n=u[t];a=a&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&(0,i.each)(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],i=r[n];o&&i&&i.data!==o.data&&(a=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!G.A.node&&t.getDom()&&((0,f.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),J("itemTooltip",t))},t.type="tooltip",t}(ee.A);function na(e){(0,de.Y)(ce),e.registerComponentModel(Er),e.registerComponentView(ta),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},i.noop),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},i.noop)}var ra=["rect","polygon","keep","clear"];function aa(e,t){var n=(0,h.qB)(e?e.brush:[]);if(n.length){var r=[];i.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var a=e&&e.toolbox;i.isArray(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var o,s,l=a.feature||(a.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,r),o=c,s={},i.each(o,(function(e){s[e]=1})),o.length=0,i.each(s,(function(e,t){o.push(t)})),t&&!c.length&&c.push.apply(c,ra)}}var oa=n(29308),ia=n(7857),sa=n(37395),la=i.each;function ua(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function ca(e,t,n){var r={};return la(t,(function(t){var a,o=r[t]=((a=function(){}).prototype.__hidden=a.prototype,new a);la(e[t],(function(e,r){if(ia.A.isValidType(r)){var a={type:r,visual:e};n&&n(a,t),o[r]=new ia.A(a),"opacity"===r&&((a=i.clone(a)).type="colorAlpha",o.__hidden.__alphaForOpacity=new ia.A(a))}}))})),r}function da(e,t,n){var r;i.each(n,(function(e){t.hasOwnProperty(e)&&ua(t[e])&&(r=!0)})),r&&i.each(n,(function(n){t.hasOwnProperty(n)&&ua(t[n])?e[n]=i.clone(t[n]):delete e[n]}))}var pa=n(51183),fa={lineX:ha(0),lineY:ha(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&pa.l(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var a=e.x,o=e.y,i=e.width,s=e.height,u=r[0];return!!(pa.l(r,a,o)||pa.l(r,a+i,o)||pa.l(r,a,o+s)||pa.l(r,a+i,o+s)||oa.A.create(e).contain(u[0],u[1])||(0,l.linePolygonIntersect)(a,o,a+i,o,r)||(0,l.linePolygonIntersect)(a,o,a,o+s,r)||(0,l.linePolygonIntersect)(a+i,o,a+i,o+s,r)||(0,l.linePolygonIntersect)(a,o+s,a+i,o+s,r))||void 0}}};function ha(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var a=r.range;return ma(t[e],a)}},rect:function(r,a,o){if(r){var i=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]t[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&_a(t)}};function _a(e){return new oa.A(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}const Ca=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new ar.A(t.getZr())).on("brush",i.bind(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){ba(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:i.clone(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:i.clone(n),$from:t})},t.type="brush",t}(ee.A);function Ta(e,t){return i.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new je.A(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const Ea=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return(0,o.C6)(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&da(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=i.map(e,(function(e){return Ta(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=Ta(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(H.A);var Ma=["rect","polygon","lineX","lineY","keep","clear"];const ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n){var r,a,o;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,a=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=r,this._brushMode=a,i.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===a:"clear"===t?o:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return i.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,a=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===a?"single":"multiple":a}})},t.getDefaultOption=function(e){return{show:!0,type:Ma.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(Mn);function Oa(e){e.registerComponentView(Ca),e.registerComponentModel(Ea),e.registerPreprocessor(aa),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,xa),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},i.noop),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},i.noop),On("brush",ka)}var Pa=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,o.C6)(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(H.A),Ia=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,a=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),l=i.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),c=new u.Ay({style:(0,O.VB)(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),p=e.get("subtext"),f=new u.Ay({style:(0,O.VB)(o,{text:p,fill:o.getTextColor(),y:d.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),m=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!h&&!g,f.silent=!m&&!g,h&&c.on("click",(function(){(0,T.JW)(h,"_"+e.get("target"))})),m&&f.on("click",(function(){(0,T.JW)(m,"_"+e.get("subtarget"))})),(0,Fe.z)(c).eventData=(0,Fe.z)(f).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(c),p&&r.add(f);var y=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=y.width,v.height=y.height;var b=(0,bt.dV)(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));s||("middle"===(s=e.get("left")||e.get("right"))&&(s="center"),"right"===s?b.x+=b.width:"center"===s&&(b.x+=b.width/2)),l||("center"===(l=e.get("top")||e.get("bottom"))&&(l="middle"),"bottom"===l?b.y+=b.height:"middle"===l&&(b.y+=b.height/2),l=l||"top"),r.x=b.x,r.y=b.y,r.markRedraw();var x={align:s,verticalAlign:l};c.setStyle(x),f.setStyle(x),y=r.getBoundingRect();var S=b.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var A=new Nt.A({shape:{x:y.x-S[3],y:y.y-S[0],width:y.width+S[1]+S[3],height:y.height+S[0]+S[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(A)}},t.type="title",t}(ee.A);function Da(e){e.registerComponentModel(Pa),e.registerComponentView(Ia)}var Ra=n(6006);const La=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return(0,o.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,a=this._names=[];"category"===r?(e=[],(0,i.each)(n,(function(t,n){var r,o=(0,h.vS)((0,h.vj)(t),"");(0,i.isObject)(t)?(r=(0,i.clone)(t)).value=n:r=n,e.push(r),a.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new Ra.A([{name:"value",type:o}],this)).initData(e,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(H.A);var Na=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="timeline.slider",t.defaultOption=(0,Nn.G_)(La.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(La);(0,i.mixin)(Na,Kr.J.prototype);const $a=Na,ja=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="timeline",t}(ee.A),Fa=function(e){function t(t,n,r,a){var o=e.call(this,t,n,r)||this;return o.type=a||"value",o}return(0,o.C6)(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(we.A);var Ba=n(62103),za=n(18550),Va=n(12706),Wa=n(74562),Ua=Math.PI,Ha=(0,h.$r)();function qa(e,t,n,r,a,o){var s=t.get("color");if(a)a.setColor(s),n.add(a),o&&o.onUpdate(a);else{var l=e.get("symbol");(a=(0,Ba.v5)(l,-1,-1,2,2,s)).setStyle("strokeNoScale",!0),n.add(a),o&&o.onCreate(a)}var u=t.getItemStyle(["color"]);a.setStyle(u),r=(0,i.merge)({rectHover:!0,z2:100},r,!0);var c=(0,Ba.xU)(e.get("symbolSize"));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var d=(0,Ba.hV)(e.get("symbolOffset"),c);d&&(r.x=(r.x||0)+d[0],r.y=(r.y||0)+d[1]);var p=e.get("symbolRotate");return r.rotation=(p||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function Ga(e,t,n,r,a,o){if(!e.dragging){var i=a.getModel("checkpointStyle"),s=r.dataToCoord(a.getData().get("value",n));if(o||!i.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:i.get("animationDuration",!0),easing:i.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const Ya=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),a=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=s.scale.getLabel({value:e});return(0,Rr.Qx)("nameValue",{noName:!0,value:t})},(0,i.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,a,s,e)}),this),this._renderAxisLabel(r,o,s,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r,a,o,s=e.get(["label","position"]),l=e.get("orient"),u=function(e,t){return bt.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),c={horizontal:"center",vertical:(n=null==s||"auto"===s?"horizontal"===l?u.y+u.height/2=0||"+"===n?"left":"right"},d={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:Ua/2},f="vertical"===l?u.height:u.width,h=e.getModel("controlStyle"),m=h.get("show",!0),g=m?h.get("itemSize"):0,y=m?h.get("itemGap"):0,v=g+y,b=e.get(["label","rotate"])||0;b=b*Ua/180;var x=h.get("position",!0),S=m&&h.get("showPlayBtn",!0),w=m&&h.get("showPrevBtn",!0),A=m&&h.get("showNextBtn",!0),_=0,C=f;"left"===x||"bottom"===x?(S&&(r=[0,0],_+=v),w&&(a=[_,0],_+=v),A&&(o=[C-g,0],C-=v)):(S&&(r=[C-g,0],C-=v),w&&(a=[0,0],_+=v),A&&(o=[C-g,0],C-=v));var T=[_,C];return e.get("inverse")&&T.reverse(),{viewRect:u,mainLength:f,orient:l,rotation:p[l],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[l],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||d[l],playPosition:r,prevBtnPosition:a,nextBtnPosition:o,axisExtent:T,controlSize:g,controlGap:y}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,a=e.viewRect;if("vertical"===e.orient){var o=E.create(),s=a.x,l=a.y+a.height;E.translate(o,o,[-s,-l]),E.rotate(o,o,-Ua/2),E.translate(o,o,[s,l]),(a=a.clone()).applyTransform(o)}var u=y(a),c=y(n.getBoundingRect()),d=y(r.getBoundingRect()),p=[n.x,n.y],f=[r.x,r.y];f[0]=p[0]=u[0][0];var h,m=e.labelPosOpt;function g(e){e.originX=u[0][0]-e.x,e.originY=u[1][0]-e.y}function y(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,r,a){e[r]+=n[r][a]-t[r][a]}null==m||(0,i.isString)(m)?(v(p,c,u,1,h="+"===m?0:1),v(f,d,u,1,1-h)):(v(p,c,u,1,h=m>=0?0:1),f[1]=p[1]+m),n.setPosition(p),r.setPosition(f),n.rotation=r.rotation=e.rotation,g(n),g(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),a=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new za.A({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Va.A({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Wa.A}}(t,r);a.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");a.setExtent(o[0],o[1]),a.calcNiceTicks();var i=new Fa("value",a,e.axisExtent,r);return i.model=t,i},t.prototype._createGroup=function(e){var t=this[e]=new s.A;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var a=n.getExtent();if(r.get(["lineStyle","show"])){var o=new Ne.A({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:(0,i.extend)({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var s=this._progressLine=new Ne.A({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:(0,i.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(s)}},t.prototype._renderAxisTick=function(e,t,n,r){var a=this,o=r.getData(),s=n.scale.getTicks();this._tickSymbols=[],(0,i.each)(s,(function(e){var s=n.dataToCoord(e.value),l=o.getItemModel(e.value),u=l.getModel("itemStyle"),c=l.getModel(["emphasis","itemStyle"]),d=l.getModel(["progress","itemStyle"]),p={x:s,y:0,onclick:(0,i.bind)(a._changeTimeline,a,e.value)},f=qa(l,u,t,p);f.ensureState("emphasis").style=c.getItemStyle(),f.ensureState("progress").style=d.getItemStyle(),(0,Dn.iJ)(f);var h=(0,Fe.z)(f);l.get("tooltip")?(h.dataIndex=e.value,h.dataModel=r):h.dataIndex=h.dataModel=null,a._tickSymbols.push(f)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var a=this;if(n.getLabelModel().get("show")){var o=r.getData(),s=n.getViewLabels();this._tickLabels=[],(0,i.each)(s,(function(r){var s=r.tickValue,l=o.getItemModel(s),c=l.getModel("label"),d=l.getModel(["emphasis","label"]),p=l.getModel(["progress","label"]),f=n.dataToCoord(r.tickValue),h=new u.Ay({x:f,y:0,rotation:e.labelRotation-e.rotation,onclick:(0,i.bind)(a._changeTimeline,a,s),silent:!1,style:(0,O.VB)(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=(0,O.VB)(d),h.ensureState("progress").style=(0,O.VB)(p),t.add(h),(0,Dn.iJ)(h),Ha(h).dataIndex=s,a._tickLabels.push(h)}))}},t.prototype._renderControl=function(e,t,n,r){var a=e.controlSize,o=e.rotation,s=r.getModel("controlStyle").getItemStyle(),u=r.getModel(["emphasis","controlStyle"]).getItemStyle(),c=r.getPlayState(),d=r.get("inverse",!0);function p(e,n,c,d){if(e){var p=(0,C.lo)((0,i.retrieve2)(r.get(["controlStyle",n+"BtnSize"]),a),a),f=function(e,t,n,r){var a=r.style,o=l.createIcon(e.get(["controlStyle",t]),r||{},new oa.A(n[0],n[1],n[2],n[3]));return a&&o.setStyle(a),o}(r,n+"Icon",[0,-p/2,p,p],{x:e[0],y:e[1],originX:a/2,originY:0,rotation:d?-o:0,rectHover:!0,style:s,onclick:c});f.ensureState("emphasis").style=u,t.add(f),(0,Dn.iJ)(f)}}p(e.nextBtnPosition,"next",(0,i.bind)(this._changeTimeline,this,d?"-":"+")),p(e.prevBtnPosition,"prev",(0,i.bind)(this._changeTimeline,this,d?"+":"-")),p(e.playPosition,c?"stop":"play",(0,i.bind)(this._handlePlayClick,this,!c),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var a=r.getData(),o=r.getCurrentIndex(),s=a.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(e){e.draggable=!0,e.drift=(0,i.bind)(l._handlePointerDrag,l),e.ondragend=(0,i.bind)(l._handlePointerDragend,l),Ga(e,l._progressLine,o,n,r,!0)},onUpdate:function(e){Ga(e,l._progressLine,o,n,r)}};this._currentPointer=qa(s,s,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,a=Pe.Y6(r.getExtent().slice());n>a[1]&&(n=a[1]),n=0&&(i[o]=+i[o].toFixed(d)),[i,c]}var uo={min:(0,i.curry)(lo,"min"),max:(0,i.curry)(lo,"max"),average:(0,i.curry)(lo,"average"),median:(0,i.curry)(lo,"median")};function co(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!(0,i.isArray)(t.coord)&&(0,i.isArray)(a)){var o=po(t,n,r,e);if((t=(0,i.clone)(t)).type&&uo[t.type]&&o.baseAxis&&o.valueAxis){var s=(0,i.indexOf)(a,o.baseAxis.dim),l=(0,i.indexOf)(a,o.valueAxis.dim),u=uo[t.type](n,o.baseDataDim,o.valueDataDim,s,l);t.coord=u[0],t.value=u[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&(0,i.isArray)(a))for(var c=t.coord,d=0;d<2;d++)uo[c[d]]&&(c[d]=mo(n,n.mapDimension(a[d]),c[d]));else t.coord=[];return t}}function po(e,t,n,r){var a={};return null!=e.valueIndex||null!=e.valueDim?(a.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function fo(e,t){return!(e&&e.containData&&t.coord&&!so(t))||e.containData(t.coord)}function ho(e,t){return e?function(e,n,r,a){var o=a<2?e.coord&&e.coord[a]:e.value;return(0,io.Pn)(o,t[a])}:function(e,n,r,a){return(0,io.Pn)(e.value,t[a])}}function mo(e,t,n){if("average"===n){var r=0,a=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,a++)})),r/a}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var go=(0,h.$r)();const yo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.init=function(){this.markerGroupMap=(0,i.createHashMap)()},t.prototype.render=function(e,t,n){var r=this,a=this.markerGroupMap;a.each((function(e){go(e).keep=!1})),t.eachSeries((function(e){var a=ro.getMarkerModelFromSeries(e,r.type);a&&r.renderSeries(e,a,t,n)})),a.each((function(e){!go(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){go(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;(0,i.each)(e,(function(e){var r=ro.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl((function(e){e&&(t?(0,Dn.QX)(e):(0,Dn.JC)(e))}))}))},t.type="marker",t}(ee.A);function vo(e,t,n){var r=t.coordinateSystem;e.each((function(a){var o,i=e.getItemModel(a),s=Pe.lo(i.get("x"),n.getWidth()),l=Pe.lo(i.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)}))}const bo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ro.getMarkerModelFromSeries(e,"markPoint");t&&(vo(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var a=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new oo.A),c=function(e,t,n){var r;r=e?(0,i.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return(0,i.extend)((0,i.extend)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new Ra.A(r,n),o=(0,i.map)(n.get("data"),(0,i.curry)(co,t));e&&(o=(0,i.filter)(o,(0,i.curry)(fo,e)));var s=ho(!!e,r);return a.initData(o,null,s),a}(a,e,t);t.setData(c),vo(t.getData(),e,r),c.each((function(e){var n=c.getItemModel(e),r=n.getShallow("symbol"),a=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),u=n.getShallow("symbolKeepAspect");if((0,i.isFunction)(r)||(0,i.isFunction)(a)||(0,i.isFunction)(o)||(0,i.isFunction)(l)){var d=t.getRawValue(e),p=t.getDataParams(e);(0,i.isFunction)(r)&&(r=r(d,p)),(0,i.isFunction)(a)&&(a=a(d,p)),(0,i.isFunction)(o)&&(o=o(d,p)),(0,i.isFunction)(l)&&(l=l(d,p))}var f=n.getModel("itemStyle").getItemStyle(),h=(0,sa.rI)(s,"color");f.fill||(f.fill=h),c.setItemVisual(e,{symbol:r,symbolSize:a,symbolRotate:o,symbolOffset:l,symbolKeepAspect:u,style:f})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){(0,Fe.z)(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(yo);function xo(e){e.registerComponentModel(ao),e.registerComponentView(bo),e.registerPreprocessor((function(e){Ja(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}const So=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ro);var wo=n(64380),Ao=n(41849),_o=(0,h.$r)(),Co=function(e,t,n,r){var a,o=e.getData();if((0,i.isArray)(r))a=r;else{var s=r.type;if("min"===s||"max"===s||"average"===s||"median"===s||null!=r.xAxis||null!=r.yAxis){var l=void 0,u=void 0;if(null!=r.yAxis||null!=r.xAxis)l=t.getAxis(null!=r.yAxis?"y":"x"),u=(0,i.retrieve)(r.yAxis,r.xAxis);else{var c=po(r,o,t,e);l=c.valueAxis,u=mo(o,(0,Je.me)(o,c.valueDataDim),s)}var d="x"===l.dim?0:1,p=1-d,f=(0,i.clone)(r),h={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,h.coord[p]=1/0;var m=n.get("precision");m>=0&&(0,i.isNumber)(u)&&(u=+u.toFixed(Math.min(m,20))),f.coord[d]=h.coord[d]=u,a=[f,h,{type:s,valueIndex:r.valueIndex,value:u}]}else a=[]}var g=[co(e,a[0]),co(e,a[1]),(0,i.extend)({},a[2])];return g[2].type=g[2].type||null,(0,i.merge)(g[2],g[0]),(0,i.merge)(g[2],g[1]),g};function To(e){return!isNaN(e)&&!isFinite(e)}function Eo(e,t,n,r){var a=1-e,o=r.dimensions[e];return To(t[a])&&To(n[a])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function Mo(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(Eo(1,n,r,e)||Eo(0,n,r,e)))return!0}return fo(e,t[0])&&fo(e,t[1])}function ko(e,t,n,r,a){var o,i=r.coordinateSystem,s=e.getItemModel(t),l=Pe.lo(s.get("x"),a.getWidth()),u=Pe.lo(s.get("y"),a.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,d=e.get(c[0],t),p=e.get(c[1],t);o=i.dataToPoint([d,p])}if((0,Ao.g)(i,"cartesian2d")){var f=i.getAxis("x"),h=i.getAxis("y");c=i.dimensions,To(e.get(c[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):To(e.get(c[1],t))&&(o[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}const Oo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ro.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),a=_o(t).from,o=_o(t).to;a.each((function(t){ko(a,t,!0,e,n),ko(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[a.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var a=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new wo.A);this.group.add(u.group);var c=function(e,t,n){var r;r=e?(0,i.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return(0,i.extend)((0,i.extend)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new Ra.A(r,n),o=new Ra.A(r,n),s=new Ra.A([],n),l=(0,i.map)(n.get("data"),(0,i.curry)(Co,t,e,n));e&&(l=(0,i.filter)(l,(0,i.curry)(Mo,e)));var u=ho(!!e,r);return a.initData((0,i.map)(l,(function(e){return e[0]})),null,u),o.initData((0,i.map)(l,(function(e){return e[1]})),null,u),s.initData((0,i.map)(l,(function(e){return e[2]}))),s.hasItemOption=!0,{from:a,to:o,line:s}}(a,e,t),d=c.from,p=c.to,f=c.line;_o(t).from=d,_o(t).to=p,t.setData(f);var h=t.get("symbol"),m=t.get("symbolSize"),g=t.get("symbolRotate"),y=t.get("symbolOffset");function v(t,n,a){var o=t.getItemModel(n);ko(t,n,a,e,r);var l=o.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=(0,sa.rI)(s,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:(0,i.retrieve2)(o.get("symbolOffset",!0),y[a?0:1]),symbolRotate:(0,i.retrieve2)(o.get("symbolRotate",!0),g[a?0:1]),symbolSize:(0,i.retrieve2)(o.get("symbolSize"),m[a?0:1]),symbol:(0,i.retrieve2)(o.get("symbol",!0),h[a?0:1]),style:l})}(0,i.isArray)(h)||(h=[h,h]),(0,i.isArray)(m)||(m=[m,m]),(0,i.isArray)(g)||(g=[g,g]),(0,i.isArray)(y)||(y=[y,y]),c.from.each((function(e){v(d,e,!0),v(p,e,!1)})),f.each((function(e){var t=f.getItemModel(e).getModel("lineStyle").getLineStyle();f.setItemLayout(e,[d.getItemLayout(e),p.getItemLayout(e)]),null==t.stroke&&(t.stroke=d.getItemVisual(e,"style").fill),f.setItemVisual(e,{fromSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(e,"symbolOffset"),fromSymbolRotate:d.getItemVisual(e,"symbolRotate"),fromSymbolSize:d.getItemVisual(e,"symbolSize"),fromSymbol:d.getItemVisual(e,"symbol"),toSymbolKeepAspect:p.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(e,"symbolOffset"),toSymbolRotate:p.getItemVisual(e,"symbolRotate"),toSymbolSize:p.getItemVisual(e,"symbolSize"),toSymbol:p.getItemVisual(e,"symbol"),style:t})})),u.updateData(f),c.line.eachItemGraphicEl((function(e){(0,Fe.z)(e).dataModel=t,e.traverse((function(e){(0,Fe.z)(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(yo);function Po(e){e.registerComponentModel(So),e.registerComponentView(Oo),e.registerPreprocessor((function(e){Ja(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}const Io=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ro);var Do=n(47698),Ro=n(52505),Lo=(0,h.$r)(),No=function(e,t,n,r){var a=r[0],o=r[1];if(a&&o){var s=co(e,a),l=co(e,o),u=s.coord,c=l.coord;u[0]=(0,i.retrieve)(u[0],-1/0),u[1]=(0,i.retrieve)(u[1],-1/0),c[0]=(0,i.retrieve)(c[0],1/0),c[1]=(0,i.retrieve)(c[1],1/0);var d=(0,i.mergeAll)([{},s,l]);return d.coord=[s.coord,l.coord],d.x0=s.x,d.y0=s.y,d.x1=l.x,d.y1=l.y,d}};function $o(e){return!isNaN(e)&&!isFinite(e)}function jo(e,t,n,r){var a=1-e;return $o(t[a])&&$o(n[a])}function Fo(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return(0,Ao.g)(e,"cartesian2d")?!(!n||!r||!jo(1,n,r)&&!jo(0,n,r))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!so(t)&&!so(n))||e.containZone(t.coord,n.coord)}(e,a,o):fo(e,a)||fo(e,o)}function Bo(e,t,n,r,a){var o,i=r.coordinateSystem,s=e.getItemModel(t),l=Pe.lo(s.get(n[0]),a.getWidth()),u=Pe.lo(s.get(n[1]),a.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=i.clampData(c),f=i.clampData(d),h=[];"x0"===n[0]?h[0]=p[0]>f[0]?d[0]:c[0]:h[0]=p[0]>f[0]?c[0]:d[0],"y0"===n[1]?h[1]=p[1]>f[1]?d[1]:c[1]:h[1]=p[1]>f[1]?c[1]:d[1],o=r.getMarkerPosition(h,n,!0)}else{var m=[v=e.get(n[0],t),b=e.get(n[1],t)];i.clampData&&i.clampData(m,m),o=i.dataToPoint(m,!0)}if((0,Ao.g)(i,"cartesian2d")){var g=i.getAxis("x"),y=i.getAxis("y"),v=e.get(n[0],t),b=e.get(n[1],t);$o(v)?o[0]=g.toGlobalCoord(g.getExtent()["x0"===n[0]?0:1]):$o(b)&&(o[1]=y.toGlobalCoord(y.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var zo=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Vo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ro.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var a=(0,i.map)(zo,(function(a){return Bo(r,t,a,e,n)}));r.setItemLayout(t,a),r.getItemGraphicEl(t).setShape("points",a)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var a=e.coordinateSystem,o=e.id,l=e.getData(),u=this.markerGroupMap,d=u.get(o)||u.set(o,{group:new s.A});this.group.add(d.group),this.markKeep(d);var p=function(e,t,n){var r,a;if(e){var o=(0,i.map)(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return(0,i.extend)((0,i.extend)({},r),{name:e,ordinalMeta:null})}));a=(0,i.map)(["x0","y0","x1","y1"],(function(e,t){return{name:e,type:o[t%2].type}})),r=new Ra.A(a,n)}else a=[{name:"value",type:"float"}],r=new Ra.A(a,n);var s=(0,i.map)(n.get("data"),(0,i.curry)(No,t,e,n));e&&(s=(0,i.filter)(s,(0,i.curry)(Fo,e)));var l=e?function(e,t,n,r){var o=e.coord[Math.floor(r/2)][r%2];return(0,io.Pn)(o,a[r])}:function(e,t,n,r){return(0,io.Pn)(e.value,a[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}(a,e,t);t.setData(p),p.each((function(t){var n=(0,i.map)(zo,(function(n){return Bo(p,t,n,e,r)})),o=a.getAxis("x").scale,s=a.getAxis("y").scale,u=o.getExtent(),c=s.getExtent(),d=[o.parse(p.get("x0",t)),o.parse(p.get("x1",t))],f=[s.parse(p.get("y0",t)),s.parse(p.get("y1",t))];Pe.Y6(d),Pe.Y6(f);var h=!!(u[0]>d[1]||u[1]f[1]||c[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(H.A);const qo=Ho;var Go=n(4316),Yo=i.curry,Ko=i.each,Zo=s.A,Qo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return(0,o.C6)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new Zo),this.group.add(this._selectorGroup=new Zo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),o=e.get("orient");a&&"auto"!==a||(a="right"===e.get("left")&&"vertical"===o?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(a,e,t,n,s,o,l);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},d=e.get("padding"),p=bt.dV(u,c,d),f=this.layoutInner(e,a,p,r,s,l),h=bt.dV(i.defaults({width:f.width,height:f.height},u),c,d);this.group.x=h.x-f.x,this.group.y=h.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Ln(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,a,o,s){var l=this.getContentGroup(),u=i.createHashMap(),c=t.get("selectedMode"),d=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),Ko(t.getData(),(function(a,o){var s=a.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var p=new Zo;return p.newline=!0,void l.add(p)}var f=n.getSeriesByName(s)[0];if(!u.get(s))if(f){var h=f.getData(),m=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),y=h.getVisual("style"),v=this._createItem(f,s,o,a,t,e,m,y,g,c,r);v.on("click",Yo(Xo,s,null,r,d)).on("mouseover",Yo(ei,f.name,null,r,d)).on("mouseout",Yo(ti,f.name,null,r,d)),n.ssr&&v.eachChild((function(e){var t=(0,Fe.z)(e);t.seriesIndex=f.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),u.set(s,!0)}else n.eachRawSeries((function(l){if(!u.get(s)&&l.legendVisualProvider){var p=l.legendVisualProvider;if(!p.containName(s))return;var f=p.indexOfName(s),h=p.getItemVisual(f,"style"),m=p.getItemVisual(f,"legendIcon"),g=(0,Do.parse)(h.fill);g&&0===g[3]&&(g[3]=.2,h=i.extend(i.extend({},h),{fill:(0,Do.stringify)(g,"rgba")}));var y=this._createItem(l,s,o,a,t,e,{},h,m,c,r);y.on("click",Yo(Xo,null,s,r,d)).on("mouseover",Yo(ei,null,s,r,d)).on("mouseout",Yo(ti,null,s,r,d)),n.ssr&&y.eachChild((function(e){var t=(0,Fe.z)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),u.set(s,!0)}}),this)}),this),a&&this._createSelector(a,t,r,o,s)},t.prototype._createSelector=function(e,t,n,r,a){var o=this.getSelectorGroup();Ko(e,(function(e){var r=e.type,a=new u.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});o.add(a);var i=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);(0,O.qM)(a,{normal:i,emphasis:s},{defaultText:e.title}),(0,Dn.iJ)(a)}))},t.prototype._createItem=function(e,t,n,r,a,o,s,c,d,p,f){var h,m,g,y=e.visualDrawType,v=a.get("itemWidth"),b=a.get("itemHeight"),x=a.isSelected(t),S=r.get("symbolRotate"),w=r.get("symbolKeepAspect"),A=r.get("icon"),_=function(e,t,n,r,a,o,i){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),Ko(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?(0,Go.w)(d,i):r.decal,"inherit"===u.fill&&(u.fill=r[a]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===a?r:n).opacity),s(u,r);var p=t.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===f.stroke&&(f.stroke=r.fill),!o){var h=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth="auto"===h?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}(d=A||d||"roundRect",r,s,c,y,x,f),C=new Zo,T=r.getModel("textStyle");if(!i.isFunction(e.getLegendIcon)||A&&"inherit"!==A){var E="inherit"===A&&e.getData().getVisual("symbol")?"inherit"===S?e.getData().getVisual("symbolRotate"):S:0;C.add((h={itemWidth:v,itemHeight:b,icon:d,iconRotate:E,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:w},m=h.icon||"roundRect",(g=(0,Ba.v5)(m,0,0,h.itemWidth,h.itemHeight,h.itemStyle.fill,h.symbolKeepAspect)).setStyle(h.itemStyle),g.rotation=(h.iconRotate||0)*Math.PI/180,g.setOrigin([h.itemWidth/2,h.itemHeight/2]),m.indexOf("empty")>-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),g))}else C.add(e.getLegendIcon({itemWidth:v,itemHeight:b,icon:d,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:w}));var M="left"===o?v+5:-5,k=o,P=a.get("formatter"),I=t;i.isString(P)&&P?I=P.replace("{name}",null!=t?t:""):i.isFunction(P)&&(I=P(t));var D=x?T.getTextColor():r.get("inactiveColor");C.add(new u.Ay({style:(0,O.VB)(T,{text:I,x:M,y:b/2,fill:D,align:k,verticalAlign:"middle"},{inheritColor:D})}));var R=new Nt.A({shape:C.getBoundingRect(),style:{fill:"transparent"}}),L=r.getModel("tooltip");return L.get("show")&&l.setTooltipConfig({el:R,componentModel:a,itemName:t,itemTooltipOption:L.option}),C.add(R),C.eachChild((function(e){e.silent=!0})),R.silent=!p,this.getContentGroup().add(C),(0,Dn.iJ)(C),C.__legendDataIndex=n,C},t.prototype.layoutInner=function(e,t,n,r,a,o){var i=this.getContentGroup(),s=this.getSelectorGroup();bt.aP(e.get("orient"),i,e.get("itemGap"),n.width,n.height);var l=i.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),i.markRedraw(),a){bt.aP("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],p=e.get("selectorButtonGap",!0),f=e.getOrient().index,h=0===f?"width":"height",m=0===f?"height":"width",g=0===f?"y":"x";"end"===o?d[f]+=l[h]+p:u[f]+=c[h]+p,d[1-f]+=l[m]/2-c[m]/2,s.x=d[0],s.y=d[1],i.x=u[0],i.y=u[1];var y={x:0,y:0};return y[h]=l[h]+p+c[h],y[m]=Math.max(l[m],c[m]),y[g]=Math.min(0,c[g]+d[1-f]),y}return i.x=u[0],i.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ee.A);function Xo(e,t,n,r){ti(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),ei(e,t,n,r)}function Jo(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,a=n.length;rn[a],g=[-f.x,-f.y];t||(g[r]=u[l]);var y=[0,0],v=[-h.x,-h.y],b=i.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));m&&("end"===e.get("pageButtonPosition",!0)?v[r]+=n[a]-h[a]:y[r]+=h[a]+b),v[1-r]+=f[o]/2-h[o]/2,u.setPosition(g),d.setPosition(y),p.setPosition(v);var x={x:0,y:0};if(x[a]=m?n[a]:f[a],x[o]=Math.max(f[o],h[o]),x[s]=Math.min(0,h[s]+v[1-r]),d.__rectSize=n[a],m){var S={x:0,y:0};S[a]=Math.max(n[a]-h[a]-b,0),S[o]=x[o],d.setClipPath(new Nt.A({shape:S})),d.__rectSize=S[a]}else p.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&c.oi(u,{x:w.contentPosition[0],y:w.contentPosition[1]},m?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(r){var a=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",a?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var r=n.childOfName("pageText"),a=e.get("pageFormatter"),o=t.pageIndex,s=null!=o?o+1:0,l=t.pageCount;r&&a&&r.setStyle("text",i.isString(a)?a.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):a({current:s,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,a=e.getOrient().index,o=ci[a],i=di[a],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,p={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var f=v(u);p.contentPosition[a]=-f.s;for(var h=s+1,m=f,g=f,y=null;h<=c;++h)(!(y=v(l[h]))&&g.e>m.s+r||y&&!b(y,m.s))&&(m=g.i>m.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount),g=y;for(h=s-1,m=f,g=f,y=null;h>=-1;--h)(y=v(l[h]))&&b(g,y.s)||!(m.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,a){var o=r.__legendDataIndex;null==n&&null!=o&&(n=a),o===e&&(t=a)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(ni);const fi=pi;function hi(e){(0,de.Y)(ii),e.registerComponentModel(li),e.registerComponentView(fi),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}function mi(e){(0,de.Y)(ii),(0,de.Y)(hi)}const gi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="dataZoom.inside",t.defaultOption=(0,Nn.G_)(mn.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(mn);var yi=n(81722),vi=(0,h.$r)();function bi(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function xi(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Si(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}var wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return(0,o.C6)(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){vi(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}(r,t,{pan:(0,i.bind)(Ai.pan,this),zoom:(0,i.bind)(Ai.zoom,this),scrollMove:(0,i.bind)(Ai.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=vi(e).coordSysRecordMap,r=n.keys(),a=0;a0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return(0,bn.A)(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}},pan:_i((function(e,t,n,r,a,o){var i=Ci[r]([o.oldX,o.oldY],[o.newX,o.newY],t,a,n);return i.signal*(e[1]-e[0])*i.pixel/i.pixelLength})),scrollMove:_i((function(e,t,n,r,a,o){return Ci[r]([0,0],[o.scrollDelta,o.scrollDelta],t,a,n).signal*(e[1]-e[0])*o.scrollDelta}))};function _i(e){return function(t,n,r,a){var o=this.range,i=o.slice(),s=t.axisModels[0];if(s){var l=e(i,s,t,n,r,a);return(0,bn.A)(l,i,[0,100],"all"),this.range=i,o[0]!==i[0]||o[1]!==i[1]?i:void 0}}}var Ci={grid:function(e,t,n,r,a){var o=n.axis,i={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(i.pixel=t[0]-e[0],i.pixelLength=s.width,i.pixelStart=s.x,i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=s.height,i.pixelStart=s.y,i.signal=o.inverse?-1:1),i},polar:function(e,t,n,r,a){var o=n.axis,i={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(i.pixel=t[0]-e[0],i.pixelLength=l[1]-l[0],i.pixelStart=l[0],i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=u[1]-u[0],i.pixelStart=u[0],i.signal=o.inverse?-1:1),i},singleAxis:function(e,t,n,r,a){var o=n.axis,i=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=i.width,s.pixelStart=i.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=i.height,s.pixelStart=i.y,s.signal=o.inverse?-1:1),s}};const Ti=wi;function Ei(e){Tn(e),e.registerComponentModel(gi),e.registerComponentView(Ti),function(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=vi(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=(0,i.createHashMap)());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=pn(e);(0,i.each)(n.infoList,(function(n){var a=n.model.uid,o=r.get(a)||r.set(a,function(e,t){var n={model:t,containsPoint:(0,i.curry)(Si,t),dispatchAction:(0,i.curry)(xi,e),dataZoomInfoMap:null,controller:null},r=n.controller=new yi.A(e.getZr());return(0,i.each)(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(a){if(t.isAvailableBehavior(a.model.option)){var o=(a.getRange||{})[e],i=o&&o(a.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!a.model.get("disabled",!0)&&i&&r.push({dataZoomId:a.model.id,start:i[0],end:i[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(t,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=(0,i.createHashMap)())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];null!=o&&(t=a.get(o))}if(t){var i=function(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each((function(e){var o=e.model,i=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+i]>r[n+t]&&(t=i),a=a&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}(a);n.enable(i.controlType,i.opt),n.setPointerChecker(e.containsPoint),f.N(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else bi(r,e)}))}))}(e)}const Mi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=(0,Nn.G_)(mn.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(mn);var ki=n(26346),Oi=Nt.A,Pi="horizontal",Ii="vertical",Di=["line","bar","candlestick","scatter"],Ri={easing:"cubicOut",duration:100,delay:0},Li=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return(0,o.C6)(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=(0,i.bind)(this._onBrush,this),this._onBrushEnd=(0,i.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,a){if(e.prototype.render.apply(this,arguments),f.N(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();a&&"dataZoom"===a.type&&a.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){f.IU(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new s.A;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),a={width:t.getWidth(),height:t.getHeight()},o=this._orient===Pi?{right:a.width-r.x-r.width,top:a.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},s=bt.vs(e.option);(0,i.each)(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=o[e])}));var l=bt.dV(s,a);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===Ii&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),a=r&&r.get("inverse"),o=this._displayables.sliderGroup,i=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==Pi||a?n===Pi&&a?{scaleY:i?1:-1,scaleX:-1}:n!==Ii||a?{scaleY:i?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:i?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:i?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new Oi({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new Oi({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:(0,i.bind)(this._onClickPanel,this)}),o=this.api.getZr();r?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,a=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),i=o&&a.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=i){var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(a!==this._shadowData||i!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=a.getDataExtent(i),d=.3*(c[1]-c[0]);c=[c[0]-d,c[1]+d];var p,f=[0,t[1]],h=[0,t[0]],m=[[t[0],0],[0,0]],g=[],y=h[1]/(a.count()-1),v=0,b=Math.round(a.count()/t[0]);a.each([i],(function(e,t){if(b>0&&t%b)v+=y;else{var n=null==e||isNaN(e)||""===e,r=n?0:(0,Pe.Cb)(e,c,f,!0);n&&!p&&t?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&p&&(m.push([v,0]),g.push([v,0])),m.push([v,r]),g.push([v,r]),v+=y,p=n}})),l=this._shadowPolygonPts=m,u=this._shadowPolylinePts=g}this._shadowData=a,this._shadowDim=i,this._shadowSize=[t[0],t[1]];for(var x=this.dataZoomModel,S=0;S<3;S++){var w=A(1===S);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function A(e){var t=x.getModel(e?"selectedDataBackground":"dataBackground"),n=new s.A,r=new Ro.A({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),a=new $t.A({shape:{points:u},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(a),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(a,o){var s=e.getAxisProxy(a,o).getTargetSeriesModels();(0,i.each)(s,(function(e){if(!(n||!0!==t&&(0,i.indexOf)(Di,e.get("type"))<0)){var s,l=r.getComponent(dn(a),o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[a],c=e.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=e.getData().mapDimension(u),n={thisAxis:l,series:e,thisDim:a,otherDim:u,otherAxisInverse:s}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],a=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,c=s.get("borderRadius")||0,d=s.get("brushSelect"),p=t.filler=new Oi({silent:d,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new Oi({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:c},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,i.each)([0,1],(function(t){var o=s.get("handleIcon");!Ba.$V[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var l=(0,Ba.v5)(o,-1,0,2,2,null,!0);l.attr({cursor:Ni(this._orient),draggable:!0,drift:(0,i.bind)(this._onDragMove,this,t),ondragend:(0,i.bind)(this._onDragEnd,this),onmouseover:(0,i.bind)(this._showDataInfo,this,!0),onmouseout:(0,i.bind)(this._showDataInfo,this,!1),z2:5});var c=l.getBoundingRect(),d=s.get("handleSize");this._handleHeight=(0,Pe.lo)(d,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,l.setStyle(s.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,Dn.iJ)(l);var p=s.get("handleColor");null!=p&&(l.style.fill=p),a.add(n[t]=l);var f=s.getModel("textStyle"),h=(s.get("handleLabel")||{}).show||!1;e.add(r[t]=new u.Ay({silent:!0,invisible:!h,style:(0,O.VB)(f,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:f.getTextColor(),font:f.getFont()}),z2:10}))}),this);var f=p;if(d){var h=(0,Pe.lo)(s.get("moveHandleSize"),o[1]),m=t.moveHandle=new Nt.A({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:h}}),g=.8*h,y=t.moveHandleIcon=(0,Ba.v5)(s.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=o[1]+h/2-.5,m.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(h,10));(f=t.moveZone=new Nt.A({invisible:!0,shape:{y:o[1]-v,height:h+v}})).on("mouseover",(function(){l.enterEmphasis(m)})).on("mouseout",(function(){l.leaveEmphasis(m)})),a.add(m),a.add(y),a.add(f)}f.attr({draggable:!0,cursor:Ni(this._orient),drift:(0,i.bind)(this._onDragMove,this,"all"),ondragstart:(0,i.bind)(this._showDataInfo,this,!0),ondragend:(0,i.bind)(this._onDragEnd,this),onmouseover:(0,i.bind)(this._showDataInfo,this,!0),onmouseout:(0,i.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[(0,Pe.Cb)(e[0],[0,100],t,!0),(0,Pe.Cb)(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,a=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),i=[0,100];(0,bn.A)(t,r,a,n.get("zoomLock")?"all":e,null!=o.minSpan?(0,Pe.Cb)(o.minSpan,i,a,!0):null,null!=o.maxSpan?(0,Pe.Cb)(o.maxSpan,i,a,!0):null);var s=this._range,l=this._range=(0,Pe.Y6)([(0,Pe.Cb)(r[0],a,i,!0),(0,Pe.Cb)(r[1],a,i,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=(0,Pe.Y6)(n.slice()),a=this._size;(0,i.each)([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:a[1]/2-o/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:a[1]});var o={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=t.dataShadowSegs,l=[0,r[0],r[1],a[0]],u=0;ut[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,a=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-a);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new ki.A(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),a=[0,100];this._range=(0,Pe.Y6)([(0,Pe.Cb)(n.x,r,a,!0),(0,Pe.Cb)(n.x+n.width,r,a,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(p.ds(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,a=n.brushRect;a||(a=n.brushRect=new Oi({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(a)),a.attr("ignore",!1);var o=this._brushStart,i=this._displayables.sliderGroup,s=i.transformCoordToLocal(e,t),l=i.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),a.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Ri:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=pn(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),a=this.api.getHeight();e={x:.2*r,y:.2*a,width:.6*r,height:.6*a}}return e},t.type="dataZoom.slider",t}(yn);function Ni(e){return"vertical"===e?"ns-resize":"ew-resize"}const $i=Li;function ji(e){e.registerComponentModel(Mi),e.registerComponentView($i),Tn(e)}function Fi(e){(0,de.Y)(Ei),(0,de.Y)(ji)}var Bi={get:function(e,t,n){var r=i.clone((zi[e]||{})[t]);return n&&i.isArray(r)?r[r.length-1]:r}},zi={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Vi=Bi;var Wi=ia.A.mapVisual,Ui=ia.A.eachVisual,Hi=i.isArray,qi=i.each,Gi=Pe.Y6,Yi=Pe.Cb;const Ki=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return(0,o.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&da(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=i.bind(e,this),this.controllerVisuals=ca(this.option.controller,t,e),this.targetVisuals=ca(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=h.qB(e),t},t.prototype.eachTargetSeries=function(e,t){i.each(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,a=this.option,o=a.precision,s=this.dataBound,l=a.formatter;n=n||["<",">"],i.isArray(e)&&(e=e.slice(),r=!0);var u=t?e:r?[c(e[0]),c(e[1])]:c(e);return i.isString(l)?l.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):i.isFunction(l)?r?l(e[0],e[1]):l(e):r?e[0]===s[0]?n[0]+" "+u[1]:e[1]===s[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(e){return e===s[0]?"min":e===s[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=Gi([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var a=n[r],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),a=t.controller||(t.controller={});i.merge(r,n),i.merge(a,n);var o=this.isCategory();function s(n){Hi(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}s.call(this,r),s.call(this,a),function(e,t,n){var r=e[t],a=e[n];r&&!a&&(a=e[n]={},qi(r,(function(e,t){if(ia.A.isValidType(t)){var n=Vi.get(t,"inactive",o);null!=n&&(a[t]=n,"color"!==t||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),a=this.getItemSymbol()||"roundRect";qi(this.stateList,(function(s){var l=this.itemSize,u=e[s];u||(u=e[s]={color:o?r:[r]}),null==u.symbol&&(u.symbol=t&&i.clone(t)||(o?a:[a])),null==u.symbolSize&&(u.symbolSize=n&&i.clone(n)||(o?l[0]:[l[0],l[0]])),u.symbol=Wi(u.symbol,(function(e){return"none"===e?a:e}));var c=u.symbolSize;if(null!=c){var d=-1/0;Ui(c,(function(e){e>d&&(d=e)})),u.symbolSize=Wi(c,(function(e){return Yi(e,[0,d],[0,l[0]],!0)}))}}),this)}.call(this,a)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(H.A);var Zi=[20,140],Qi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=Zi[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=Zi[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):i.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Pe.Y6((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],a=n.getData();a.each(this.getDataDimensionIndex(a),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=Xi(0,0,this.getExtent()),n=Xi(0,0,this.option.range.slice()),r=[];function a(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,i=0,s=n.length,l=t.length;ie[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:a/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new s.A("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,a=n.handleThumbs,o=n.handleLabels,i=r.itemSize,s=r.getExtent(),u=this._applyTransform("left",n.mainGroup);is([0,1],(function(c){var d=a[c];d.setStyle("fill",t.handlesColor[c]),d.y=e[c];var p=os(e[c],[0,i[1]],s,!0),f=this.getControllerVisual(p,"symbolSize");d.scaleX=d.scaleY=f/i[0],d.x=i[0]-f/2;var h=l.applyTransform(n.handleLabelPoints[c],l.getTransform(d,this.group));if("horizontal"===this._orient){var m="left"===u||"top"===u?(i[0]-f)/2:(i[0]-f)/-2;h[1]+=m}o[c].setStyle({x:h[0],y:h[1],text:r.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var a=this.visualMapModel,o=a.getExtent(),i=a.itemSize,s=[0,i[1]],u=this._shapes,c=u.indicator;if(c){c.attr("invisible",!1);var d=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(e,"symbolSize"),f=os(e,o,s,!0),h=i[0]-p/2,m={x:c.x,y:c.y};c.y=f,c.x=h;var g=l.applyTransform(u.indicatorLabelPoint,l.getTransform(c,this.group)),y=u.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",u.mainGroup),b="horizontal"===this._orient;y.setStyle({text:(n||"")+a.formatValueText(t),verticalAlign:b?v:"middle",align:b?"center":v});var x={x:h,y:f,style:{fill:d}},S={style:{x:g[0],y:g[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=m.x,c.y=m.y,c.animateTo(x,w),y.animateTo(S,w)}else c.attr(x),y.attr(S);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var _=0;_a[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",i):u[1]===1/0?this._showIndicator(l,u[0],"> ",i):this._showIndicator(l,l,"≈ ",i));var c=this._hoverLinkDataIndices,d=[];(t||cs(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=h.D6(c,d);this._dispatchHighDown("downplay",as(p[0],n)),this._dispatchHighDown("highlight",as(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if((0,Zr.R)(e.target,(function(e){var n=(0,Fe.z)(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var a=n.getData(t.dataType),o=a.getStore().get(r.getDataDimensionIndex(a),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(a.dimension=o,r.push(a))}})),e.getData().setVisual("visualMeta",r)}}];function gs(e,t,n,r){for(var a=t.targetVisuals[r],o=ia.A.prepareVisualTypes(a),i={color:(0,sa.rI)(e.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(fs,hs),(0,i.each)(ms,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(vs))}function ws(e){e.registerComponentModel(Ji),e.registerComponentView(ps),Ss(e)}var As=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return(0,o.C6)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],_s[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=i.clone(a)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=i.map(this._pieceList,(function(e){return e=i.clone(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=ia.A.listVisualTypes(),a=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}i.each(t.pieces,(function(e){i.each(r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),i.each(n,(function(e,n){var r=!1;i.each(this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&i.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=Vi.get(n,"inRange"===e?"active":"inactive",a)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,a=(t?n:e).selected||{};if(n.selected=a,i.each(r,(function(e,t){var n=this.getSelectedMapKey(e);a.hasOwnProperty(n)||(a[n]=!0)}),this),"single"===n.selectedMode){var o=!1;i.each(r,(function(e,t){var n=this.getSelectedMapKey(e);a[n]&&(o?a[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=i.clone(e)},t.prototype.getValueState=function(e){var t=ia.A.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var a=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(t,r){ia.A.findPieceIndex(t,n)===e&&a.push(r)}),this),t.push({seriesId:r.id,dataIndex:a})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,a=this._pieceList.slice();if(a.length){var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),(o=a[a.length-1].interval[1])!==1/0&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return i.each(a,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function l(a,o){var i=r.getRepresentValue({interval:a});o||(o=r.getValueState(i));var s=e(i,o);a[0]===-1/0?n[0]=s:a[1]===1/0?n[1]=s:t.push({value:a[0],color:s},{value:a[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=(0,Nn.G_)(Ki.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Ki),_s={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var o=(r[1]-r[0])/a;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var s=0,l=r[0];s","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function Cs(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}const Ts=As,Es=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,a=r.getFont(),o=r.getTextColor(),l=this._getItemAlign(),c=t.itemSize,d=this._getViewData(),p=d.endsText,f=i.retrieve(t.get("showLabel",!0),!p),h=!t.get("selectedMode");p&&this._renderEndsText(e,p[0],c,f,l),i.each(d.viewPieceList,(function(r){var d=r.piece,p=new s.A;p.onclick=i.bind(this._onItemClick,this,d),this._enableHoverLink(p,r.indexInModelPieceList);var m=t.getRepresentValue(d);if(this._createItemSymbol(p,m,[0,0,c[0],c[1]],h),f){var g=this.visualMapModel.getValueState(m);p.add(new u.Ay({style:{x:"right"===l?-n:c[0]+n,y:c[1]/2,text:d.text,verticalAlign:"middle",align:l,font:a,fill:o,opacity:"outOfRange"===g?.5:1},silent:h}))}e.add(p)}),this),p&&this._renderEndsText(e,p[1],c,f,l),bt.aP(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:as(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return rs(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,a){if(t){var o=new s.A,i=this.visualMapModel.textStyleModel;o.add(new u.Ay({style:(0,O.VB)(i,{x:r?"right"===a?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?a:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=i.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),a=e.get("inverse");return("horizontal"===r?a:!a)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var a=(0,Ba.v5)(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));a.silent=r,e.add(a)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var a=i.clone(n.selected),o=t.getSelectedMapKey(e);"single"===r||!0===r?(a[o]=!0,i.each(a,(function(e,t){a[t]=t===o}))):a[o]=!a[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(ts);function Ms(e){e.registerComponentModel(Ts),e.registerComponentView(Es),Ss(e)}function ks(e){(0,de.Y)(ws),(0,de.Y)(Ms)}var Os=n(96501),Ps={label:{enabled:!0},decal:{show:!1}},Is=(0,h.$r)(),Ds={};function Rs(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=i.clone(Ps);i.merge(r.label,e.getLocaleModel().get("aria"),!1),i.merge(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var t=i.createHashMap();e.eachSeries((function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),Is(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(i.isFunction(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=(0,Os.x)(t.ecModel,t.name,Ds,e.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",c(a,r))}else{var o=t.getRawData(),s={},l=Is(t).scope;n.each((function(e){var t=n.getRawIndex(e);s[t]=e}));var u=o.count();o.each((function(e){var r=s[e],a=o.getName(e)||e+"",i=(0,Os.x)(t.ecModel,a,l,u),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(d,i))}))}}function c(e,t){var n=e?i.extend(i.extend({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var r=t.getZr().dom;if(r){var o=e.getLocaleModel().get("aria"),s=n.getModel("label");if(s.option=i.defaults(s.option,o),s.get("enabled"))if(r.setAttribute("role","img"),s.get("description"))r.setAttribute("aria-label",s.get("description"));else{var l,u=e.getSeriesCount(),c=s.get(["data","maxCount"])||10,d=s.get(["series","maxCount"])||10,p=Math.min(u,d);if(!(u<1)){var f=function(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}();l=f?a(s.get(["general","withTitle"]),{title:f}):s.get(["general","withoutTitle"]);var h=[];l+=a(u>1?s.get(["series","multiple","prefix"]):s.get(["series","single","prefix"]),{seriesCount:u}),e.eachSeries((function(t,n){if(n1?s.get(["series","multiple",o]):s.get(["series","single",o]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(S=t.subType,w=e.getLocaleModel().get(["series","typeNames"]),w[S]||w.chart)});var l=t.getData();l.count()>c?r+=a(s.get(["data","partialData"]),{displayCnt:c}):r+=s.get(["data","allData"]);for(var d=s.get(["data","separator","middle"]),f=s.get(["data","separator","end"]),m=s.get(["data","excludeDimensionId"]),g=[],y=0;y":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},js=function(){function e(e){null==(this._condVal=(0,i.isString)(e)?new RegExp(e):(0,i.isRegExp)(e)?e:null)&&(0,Vr.$8)("")}return e.prototype.evaluate=function(e){var t=typeof e;return(0,i.isString)(t)?this._condVal.test(e):!!(0,i.isNumber)(t)&&this._condVal.test(e+"")},e}(),Fs=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Bs=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t{"use strict";t.match=void 0;var r=n(49038),a=n(77520);t.match={ordinalNumber:(0,a.buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,r.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},1331:(e,t)=>{"use strict";t.getRoundingMethod=function(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}},1333:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(53540)),i=n(50903);t.default=function(e){var t=e.margin,n=void 0===t?48:t,r=e.padding,s=void 0===r?24:r,l=e.size,u=void 0===l?72:l;return a.default.createElement(i.LoadingContainer,{"data-testid":"loading-component",style:{margin:n,padding:s}},a.default.createElement(o.default,{color:"primary",size:u}))}},1462:(e,t,n)=>{"use strict";t.getSeconds=function(e){return(0,r.toDate)(e).getSeconds()};var r=n(34446)},1553:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.useSubheaderActions=void 0;var a=r(n(96540)),o=n(40961),i=n(8582),s=n(44322),l=n(14500);const u=e=>a.default.createElement(i.ListItem,{icon:e.icon,title:e.label,id:`option-${e.name}`,key:`option-${e.name}`,disabled:e.disabled,onClick:e.onClick}),c=e=>a.default.createElement(a.default.Fragment,null,e.options&&e.ref&&a.default.createElement(i.Menu,{open:e.open||!1,anchorEl:e.ref.current||void 0,anchorOrigin:s.ANCHOR_ORIGIN,transformOrigin:s.TRANSFORM_ORIGIN,onClose:e.onClick},a.default.createElement(s.SubheaderList,null,e.options.map(u))),e.label?a.default.createElement(l.GeneralWrapper,{ref:e.ref},a.default.createElement(i.Button,{color:"primary",margin:"0 6px",name:e.name,disabled:e.disabled,onClick:e.onClick},a.default.createElement(s.ActionIcon,null,e.icon),e.label)):a.default.createElement(l.GeneralWrapper,{ref:e.ref},a.default.createElement(i.IconButton,{name:e.name,color:"primary",disabled:e.disabled,onClick:e.onClick},e.icon))),d=(e,t)=>{const n=e.counter&&e.counter>0;return e.tooltip?a.default.createElement(i.Tooltip,{withWrapper:!0,key:e.name||t,title:e.tooltip},n?a.default.createElement(s.Counter,{color:"error",counter:e.counter||""},c(e)):c(e)):c(e)};t.useSubheaderActions=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page-actions";const n=document.getElementById(t);return n?[(0,o.createPortal)(e.map(d),n)]:[a.default.createElement(a.default.Fragment,null,null)]}},1668:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(34661).A},1697:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return(0,a.default)(e),t.loose?s.includes(e.toLowerCase()):i.includes(e)};var r,a=(r=n(83399))&&r.__esModule?r:{default:r},o={loose:!1},i=["true","false","1","0"],s=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default},1723:(e,t,n)=>{"use strict";n.d(t,{$X:()=>O,Er:()=>_,IT:()=>S,SX:()=>A,jy:()=>k,kk:()=>M,t_:()=>C});var r=n(31635),a=n(52687),o=n(27243),i=n(19770),s=n(15381),l=n(60144),u=n(6741),c=n(9211),d=n(88599),p=n(75443),f=n(70111),h=n(87945),m=n(45636),g=n(21469),y=n(68481),v=Object.prototype.hasOwnProperty;function b(){}var x=Symbol();function S(e,t){return void 0===t&&(t=Object.create(null)),(0,y.Y)("useQuery",w,(0,f.m)(t&&t.client))(e,t)}function w(e,t){var n=A(e,t),a=n.result,i=n.obsQueryFields;return o.useMemo((function(){return(0,r.__assign)((0,r.__assign)({},a),i)}),[a,i])}function A(e,t){var n=(0,f.m)(t.client),a=o.useContext((0,u.l)()).renderPromises,l=!!a,c=n.disableNetworkFetches,h=!1!==t.ssr&&!t.skip,m=t.partialRefetch,g=_(n,e,t,l),y=function(e,t,n,a,i){function s(r){var o;return(0,p.D$)(t,p.KG.Query),{client:e,query:t,observable:a&&a.getSSRObservable(i())||e.watchQuery(C(void 0,e,n,i())),resultData:{previousData:null===(o=null==r?void 0:r.resultData.current)||void 0===o?void 0:o.data}}}var l=o.useState(s),u=l[0],c=l[1];function d(e){var t,n;Object.assign(u.observable,((t={})[x]=e,t));var a=u.resultData;c((0,r.__assign)((0,r.__assign)({},u),{query:e.query,resultData:Object.assign(a,{previousData:(null===(n=a.current)||void 0===n?void 0:n.data)||a.previousData,current:void 0})}))}if(e!==u.client||t!==u.query){var f=s(u);return c(f),[f,d]}return[u,d]}(n,e,t,a,g),S=y[0],w=S.observable,A=S.resultData,M=y[1],k=g(w);!function(e,t,n,r,a){var o;t[x]&&!(0,s.L)(t[x],a)&&(t.reobserve(C(t,n,r,a)),e.previousData=(null===(o=e.current)||void 0===o?void 0:o.data)||e.previousData,e.current=void 0),t[x]=a}(A,w,n,t,k);var D=o.useMemo((function(){return function(e){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}(w)}),[w]);!function(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}(w,a,h);var R=function(e,t,n,r,a,l,u,c,p){var f=o.useRef(p);o.useEffect((function(){f.current=p}));var h=!c&&!l||!1!==r.ssr||r.skip?r.skip||"standby"===a.fetchPolicy?I:void 0:P,m=e.previousData,g=o.useMemo((function(){return h&&O(h,m,t,n)}),[n,t,h,m]);return(0,i.r)(o.useCallback((function(r){if(c)return function(){};var a=function(){var a=e.current,o=t.getCurrentResult();a&&a.loading===o.loading&&a.networkStatus===o.networkStatus&&(0,s.L)(a.data,o.data)||T(o,e,t,n,u,r,f.current)},o=function(l){if(i.current.unsubscribe(),i.current=t.resubscribeAfterError(a,o),!v.call(l,"graphQLErrors"))throw l;var c=e.current;(!c||c&&c.loading||!(0,s.L)(l,c.error))&&T({data:c&&c.data,error:l,loading:!1,networkStatus:d.pT.error},e,t,n,u,r,f.current)},i={current:t.subscribe(a,o)};return function(){setTimeout((function(){return i.current.unsubscribe()}))}}),[l,c,t,e,u,n]),(function(){return g||E(e,t,f.current,u,n)}),(function(){return g||E(e,t,f.current,u,n)}))}(A,w,n,t,k,c,m,l,{onCompleted:t.onCompleted||b,onError:t.onError||b});return{result:R,obsQueryFields:D,observable:w,resultData:A,client:n,onQueryExecuted:M}}function _(e,t,n,a){void 0===n&&(n={});var o=n.skip,i=(n.ssr,n.onCompleted,n.onError,n.defaultOptions),s=(0,r.__rest)(n,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(n){var r=Object.assign(s,{query:t});return!a||"network-only"!==r.fetchPolicy&&"cache-and-network"!==r.fetchPolicy||(r.fetchPolicy="cache-first"),r.variables||(r.variables={}),o?(r.initialFetchPolicy=r.initialFetchPolicy||r.fetchPolicy||M(i,e.defaultOptions),r.fetchPolicy="standby"):r.fetchPolicy||(r.fetchPolicy=(null==n?void 0:n.options.initialFetchPolicy)||M(i,e.defaultOptions)),r}}function C(e,t,n,r){var a=[],o=t.defaultOptions.watchQuery;return o&&a.push(o),n.defaultOptions&&a.push(n.defaultOptions),a.push((0,h.o)(e&&e.options,r)),a.reduce(l.l)}function T(e,t,n,o,i,s,l){var u=t.current;u&&u.data&&(t.previousData=u.data),!e.error&&(0,m.E)(e.errors)&&(e.error=new c.K4({graphQLErrors:e.errors})),t.current=O(function(e,t,n){return!e.partial||!n||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===t.options.fetchPolicy?e:(t.refetch(),(0,r.__assign)((0,r.__assign)({},e),{loading:!0,networkStatus:d.pT.refetch}))}(e,n,i),t.previousData,n,o),s(),function(e,t,n){if(!e.loading){var r=k(e);Promise.resolve().then((function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===d.pT.ready&&n.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&a.V1.warn(e)}))}}(e,null==u?void 0:u.networkStatus,l)}function E(e,t,n,r,a){return e.current||T(t.getCurrentResult(),e,t,a,r,(function(){}),n),e.current}function M(e,t){var n;return(null==e?void 0:e.fetchPolicy)||(null===(n=null==t?void 0:t.watchQuery)||void 0===n?void 0:n.fetchPolicy)||"cache-first"}function k(e){return(0,m.E)(e.errors)?new c.K4({graphQLErrors:e.errors}):e.error}function O(e,t,n,a){var o=e.data,i=(e.partial,(0,r.__rest)(e,["data","partial"]));return(0,r.__assign)((0,r.__assign)({data:o},i),{client:a,observable:n,variables:n.variables,called:e!==P&&e!==I,previousData:t})}var P=(0,g.G)({loading:!0,data:void 0,error:void 0,networkStatus:d.pT.loading}),I=(0,g.G)({loading:!1,data:void 0,error:void 0,networkStatus:d.pT.ready})},1757:(e,t,n)=>{"use strict";var r,a=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=e=>{throw TypeError(e)},d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of s(t))u.call(e,a)||a===n||o(e,a,{get:()=>t[a],enumerable:!(r=i(t,a))||r.enumerable});return e},p=(e,t,n)=>(n=null!=e?a(l(e)):{},d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),f=(e,t,n)=>(((e,t)=>{t.has(e)||c("Cannot read from private field")})(e,t),n?n.call(e):t.get(e)),h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{Await:()=>On,BrowserRouter:()=>da,Form:()=>ya,HashRouter:()=>pa,IDLE_BLOCKER:()=>xe,IDLE_FETCHER:()=>be,IDLE_NAVIGATION:()=>ve,Link:()=>ma,Links:()=>Jr,MemoryRouter:()=>_n,Meta:()=>na,NavLink:()=>ga,Navigate:()=>Cn,NavigationType:()=>g,Outlet:()=>Tn,PrefetchPageLinks:()=>ea,Route:()=>En,Router:()=>Mn,RouterProvider:()=>wn,Routes:()=>kn,Scripts:()=>aa,ScrollRestoration:()=>va,ServerRouter:()=>Qa,StaticRouter:()=>ja,StaticRouterProvider:()=>Fa,UNSAFE_DataRouterContext:()=>St,UNSAFE_DataRouterStateContext:()=>wt,UNSAFE_ErrorResponseImpl:()=>ce,UNSAFE_FetchersContext:()=>_t,UNSAFE_FrameworkContext:()=>Kr,UNSAFE_LocationContext:()=>Et,UNSAFE_NavigationContext:()=>Tt,UNSAFE_RemixErrorBoundary:()=>Ar,UNSAFE_RouteContext:()=>Mt,UNSAFE_ServerMode:()=>uo,UNSAFE_SingleFetchRedirectSymbol:()=>lr,UNSAFE_ViewTransitionContext:()=>At,UNSAFE_createBrowserHistory:()=>b,UNSAFE_createClientRoutes:()=>Rr,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>Pr,UNSAFE_createRouter:()=>Ce,UNSAFE_decodeViaTurboStream:()=>gr,UNSAFE_deserializeErrors:()=>Ko,UNSAFE_getPatchRoutesOnNavigationFunction:()=>Wr,UNSAFE_getSingleFetchDataStrategy:()=>dr,UNSAFE_invariant:()=>S,UNSAFE_mapRouteProperties:()=>bn,UNSAFE_shouldHydrateRouteLoader:()=>$r,UNSAFE_useFogOFWarDiscovery:()=>Ur,UNSAFE_useScrollRestoration:()=>Da,createBrowserRouter:()=>sa,createCookie:()=>oo,createCookieSessionStorage:()=>qo,createHashRouter:()=>la,createMemoryRouter:()=>xn,createMemorySessionStorage:()=>Go,createPath:()=>C,createRequestHandler:()=>Fo,createRoutesFromChildren:()=>Dn,createRoutesFromElements:()=>Rn,createRoutesStub:()=>Ja,createSearchParams:()=>Bn,createSession:()=>Vo,createSessionStorage:()=>Uo,createStaticHandler:()=>Wa,createStaticRouter:()=>Ua,data:()=>ie,generatePath:()=>q,href:()=>Yo,isCookie:()=>io,isRouteErrorResponse:()=>de,isSession:()=>Wo,matchPath:()=>G,matchRoutes:()=>I,parsePath:()=>T,redirect:()=>se,redirectDocument:()=>le,renderMatches:()=>Ln,replace:()=>ue,resolvePath:()=>Z,unstable_HistoryRouter:()=>fa,unstable_RouterContextProvider:()=>k,unstable_createContext:()=>M,unstable_setDevServerHooks:()=>Eo,unstable_usePrompt:()=>La,useActionData:()=>ln,useAsyncError:()=>dn,useAsyncValue:()=>cn,useBeforeUnload:()=>Ra,useBlocker:()=>fn,useFetcher:()=>Ma,useFetchers:()=>ka,useFormAction:()=>Ea,useHref:()=>It,useInRouterContext:()=>Dt,useLinkClickHandler:()=>wa,useLoaderData:()=>on,useLocation:()=>Rt,useMatch:()=>Nt,useMatches:()=>an,useNavigate:()=>Ft,useNavigation:()=>nn,useNavigationType:()=>Lt,useOutlet:()=>Vt,useOutletContext:()=>zt,useParams:()=>Wt,useResolvedPath:()=>Ut,useRevalidator:()=>rn,useRouteError:()=>un,useRouteLoaderData:()=>sn,useRoutes:()=>Ht,useSearchParams:()=>Aa,useSubmit:()=>Ta,useViewTransitionState:()=>Na}),e.exports=(r=h,d(o({},"__esModule",{value:!0}),r));var m,g=(e=>(e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE",e))(g||{}),y="popstate";function v(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:a=!1}=e;t=n.map(((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let o=l(null==r?t.length-1:r),i="POP",s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[o]}function c(e,n=null,r){let a=_(t?u().pathname:"/",e,n,r);return w("/"===a.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return"string"==typeof e?e:C(e)}return{get index(){return o},get action(){return i},get location(){return u()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?T(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=c(e,n);o+=1,t.splice(o,t.length,r),a&&s&&s({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=c(e,n);t[o]=r,a&&s&&s({action:i,location:r,delta:0})},go(e){i="POP";let n=l(o+e),r=t[n];o=n,s&&s({action:i,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function b(e={}){return E((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return _("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:C(t)}),null,e)}function x(e={}){return E((function(e,t){let{pathname:n="/",search:r="",hash:a=""}=T(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),_("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:C(t))}),(function(e,t){w("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function S(e,t){if(!1===e||null==e)throw new Error(t)}function w(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function A(e,t){return{usr:e.state,key:e.key,idx:t}}function _(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?T(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function C({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function T(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function E(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s="POP",l=null,u=c();function c(){return(i.state||{idx:null}).idx}function d(){s="POP";let e=c(),t=null==e?null:e-u;u=e,l&&l({action:s,location:f.location,delta:t})}function p(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:C(e);return n=n.replace(/ $/,"%20"),S(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let f={get action(){return s},get location(){return e(a,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(y,d),l=e,()=>{a.removeEventListener(y,d),l=null}},createHref:e=>t(a,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=_(f.location,e,t);n&&n(r,e),u=c()+1;let d=A(r,u),p=f.createHref(r);try{i.pushState(d,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(p)}o&&l&&l({action:s,location:f.location,delta:1})},replace:function(e,t){s="REPLACE";let r=_(f.location,e,t);n&&n(r,e),u=c();let a=A(r,u),d=f.createHref(r);i.replaceState(a,"",d),o&&l&&l({action:s,location:f.location,delta:0})},go:e=>i.go(e)};return f}function M(e){return{defaultValue:e}}var k=class{constructor(e){var t,n,r;if(t=this,n=m,r=new Map,n.has(t)?c("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),e)for(let[t,n]of e)this.set(t,n)}get(e){if(f(this,m).has(e))return f(this,m).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){f(this,m).set(e,t)}};m=new WeakMap;var O=new Set(["lazy","caseSensitive","path","id","index","children"]);function P(e,t,n=[],r={}){return e.map(((e,a)=>{let o=[...n,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(S(!0!==e.index||!e.children,"Cannot specify children on an index route"),S(!r[i],`Found a route id collision on id "${i}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:i};return r[i]=n,n}{let n={...e,...t(e),id:i,children:void 0};return r[i]=n,e.children&&(n.children=P(e.children,t,o,r)),n}}))}function I(e,t,n="/"){return D(e,t,n,!1)}function D(e,t,n,r){let a=K(("string"==typeof t?T(t):t).pathname||"/",n);if(null==a)return null;let o=L(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(S(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let s=te([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(S(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),L(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:U(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of N(e.path))a(e,t,n);else a(e,t)})),t}function N(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=N(r.join("/")),s=[];return s.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var $=/^:[\w-]+$/,j=3,F=2,B=1,z=10,V=-2,W=e=>"*"===e;function U(e,t){let n=e.split("/"),r=n.length;return n.some(W)&&(r+=V),t&&(r+=F),n.filter((e=>!W(e))).reduce(((e,t)=>e+($.test(t)?j:""===t?B:z)),r)}function H(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;enull==e?"":"string"==typeof e?e:String(e);return r+n.split(/\/+/).map(((e,n,r)=>{if(n===r.length-1&&"*"===e)return a(t["*"]);const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,n]=o;let r=t[e];return S("?"===n||null!=r,`Missing ":${e}" param`),a(r)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function G(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){w("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=s[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function Y(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return w(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function K(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Z(e,t="/"){let{pathname:n,search:r="",hash:a=""}="string"==typeof e?T(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:re(r),hash:ae(a)}}function Q(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function X(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function J(e){let t=X(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function ee(e,t,n,r=!1){let a;"string"==typeof e?a=T(e):(a={...e},S(!a.pathname||!a.pathname.includes("?"),Q("?","pathname","search",a)),S(!a.pathname||!a.pathname.includes("#"),Q("#","pathname","hash",a)),S(!a.search||!a.search.includes("#"),Q("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=Z(a,o),u=s&&"/"!==s&&s.endsWith("/"),c=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}var te=e=>e.join("/").replace(/\/\/+/g,"/"),ne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),re=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ae=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",oe=class{constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}};function ie(e,t){return new oe(e,"number"==typeof t?{status:t}:t)}var se=(e,t=302)=>{let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",e),new Response(null,{...n,headers:r})},le=(e,t)=>{let n=se(e,t);return n.headers.set("X-Remix-Reload-Document","true"),n},ue=(e,t)=>{let n=se(e,t);return n.headers.set("X-Remix-Replace","true"),n},ce=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function de(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var pe=["POST","PUT","PATCH","DELETE"],fe=new Set(pe),he=["GET",...pe],me=new Set(he),ge=new Set([301,302,303,307,308]),ye=new Set([307,308]),ve={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},be={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Se=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,we=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ae="remix-router-transitions",_e=Symbol("ResetLoaderData");function Ce(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;S(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,a,o,i=e.mapRouteProperties||we,s={},l=P(e.routes,i,void 0,s),u=e.basename||"/",c=e.dataStrategy||Fe,d={unstable_middleware:!1,...e.future},p=null,f=new Set,h=null,m=null,g=null,y=null!=e.hydrationData,v=I(l,e.history.location,u),b=!1,x=null;if(null==v&&!e.patchRoutesOnNavigation){let t=tt(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=et(l);v=n,x={[r.id]:t}}if(v&&!e.hydrationData&&Ee(v,l,e.history.location.pathname).active&&(v=null),v)if(v.some((e=>e.route.lazy)))a=!1;else if(v.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=v.findIndex((e=>void 0!==n[e.route.id]));a=v.slice(0,e+1).every((e=>!De(e.route,t,n)))}else a=v.every((e=>!De(e.route,t,n)))}else a=!0;else{a=!1,v=[];let t=Ee(null,l,e.history.location.pathname);t.active&&t.matches&&(b=!0,v=t.matches)}let A,C,T={historyAction:e.history.action,location:e.history.location,matches:v,initialized:a,navigation:ve,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},E="POP",M=!1,O=!1,L=new Map,N=null,$=!1,j=!1,F=new Set,B=new Map,z=0,V=-1,W=new Map,U=new Set,H=new Map,q=new Map,G=new Set,Y=new Map,Z=null;function Q(e,t={}){T={...T,...e};let n=[],r=[];T.fetchers.forEach(((e,t)=>{"idle"===e.state&&(G.has(t)?n.push(t):r.push(t))})),G.forEach((e=>{T.fetchers.has(e)||B.has(e)||n.push(e)})),[...f].forEach((e=>e(T,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>le(e))),r.forEach((e=>T.fetchers.delete(e)))}function X(t,n,{flushSync:a}={}){let o,i=null!=T.actionData&&null!=T.navigation.formMethod&&pt(T.navigation.formMethod)&&"loading"===T.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?T.actionData:null;let s=n.loaderData?Qe(T.loaderData,n.loaderData,n.matches||[],n.errors):T.loaderData,u=T.blockers;u.size>0&&(u=new Map(u),u.forEach(((e,t)=>u.set(t,xe))));let c,d=!0===M||null!=T.navigation.formMethod&&pt(T.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(l=r,r=void 0),$||"POP"===E||("PUSH"===E?e.history.push(t,t.state):"REPLACE"===E&&e.history.replace(t,t.state)),"POP"===E){let e=L.get(T.location.pathname);e&&e.has(t.pathname)?c={currentLocation:T.location,nextLocation:t}:L.has(t.pathname)&&(c={currentLocation:t,nextLocation:T.location})}else if(O){let e=L.get(T.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),L.set(T.location.pathname,e)),c={currentLocation:T.location,nextLocation:t}}Q({...n,actionData:o,loaderData:s,historyAction:E,location:t,initialized:!0,navigation:ve,revalidation:"idle",restoreScrollPosition:Te(t,n.matches||T.matches),preventScrollReset:d,blockers:u},{viewTransitionOpts:c,flushSync:!0===a}),E="POP",M=!1,O=!1,$=!1,j=!1,Z?.resolve(),Z=null}async function J(t,n,a){A&&A.abort(),A=null,E=t,$=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(h&&g){let n=Ce(e,t);h[n]=g()}}(T.location,T.matches),M=!0===(a&&a.preventScrollReset),O=!0===(a&&a.enableViewTransition);let o=r||l,i=a&&a.overrideNavigation,s=a?.initialHydration&&T.matches&&T.matches.length>0&&!b?T.matches:I(o,n,u),c=!0===(a&&a.flushSync);if(s&&T.initialized&&!j&&(d=T.location,p=n,d.pathname===p.pathname&&d.search===p.search&&(""===d.hash?""!==p.hash:d.hash===p.hash||""!==p.hash))&&!(a&&a.submission&&pt(a.submission.formMethod)))return void X(n,{matches:s},{flushSync:c});var d,p;let f=Ee(s,o,n.pathname);if(f.active&&f.matches&&(s=f.matches),!s){let{error:e,notFoundMatches:t,route:r}=_e(n.pathname);return void X(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:c})}A=new AbortController;let m,y=qe(e.history,n,A.signal,a&&a.submission),v=new k(e.unstable_getContext?await e.unstable_getContext():void 0);if(a&&a.pendingError)m=[Je(s).route.id,{type:"error",error:a.pendingError}];else if(a&&a.submission&&pt(a.submission.formMethod)){let t=await async function(e,t,n,r,a,o,i={}){ae();let s,l=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,n);if(Q({navigation:l},{flushSync:!0===i.flushSync}),o){let n=await Me(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Je(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=_e(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let c=ht(r,t);if(c.route.action||c.route.lazy){let t=await ne("action",e,[c],r,a,null);if(s=t[c.route.id],!s)for(let e of r)if(t[e.route.id]){s=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else s={type:"error",error:tt(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(it(s)){let t;return t=i&&null!=i.replace?i.replace:He(s.response.headers.get("Location"),new URL(e.url),u)===T.location.pathname+T.location.search,await te(e,s,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(ot(s)){let e=Je(r,c.route.id);return!0!==(i&&i.replace)&&(E="PUSH"),{matches:r,pendingActionResult:[e.route.id,s]}}return{matches:r,pendingActionResult:[c.route.id,s]}}(y,n,a.submission,s,v,f.active,{replace:a.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ot(r)&&de(r.error)&&404===r.error.status)return A=null,void X(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}s=t.matches||s,m=t.pendingActionResult,i=gt(n,a.submission),c=!1,f.active=!1,y=qe(e.history,y.url,y.signal)}let{shortCircuited:x,matches:S,loaderData:w,errors:_}=await async function(t,n,a,o,i,s,c,d,p,f,h,m){let g=s||gt(n,c),y=c||d||mt(g),v=!$&&!f;if(i){if(v){let e=ee(m);Q({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:h})}let e=await Me(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Je(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=_e(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}a=e.matches}let b=r||l,[x,S]=Ie(e.history,T,a,y,n,!0===f,j,F,G,H,U,b,u,m);if(V=++z,0===x.length&&0===S.length){let e=pe();return X(n,{matches:a,loaderData:{},errors:m&&ot(m[1])?{[m[0]]:m[1].error}:null,...Xe(m),...e?{fetchers:new Map(T.fetchers)}:{}},{flushSync:h}),{shortCircuited:!0}}if(v){let e={};if(!i){e.navigation=g;let t=ee(m);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=T.fetchers.get(e.key),n=yt(void 0,t?t.data:void 0);T.fetchers.set(e.key,n)})),new Map(T.fetchers)}(S)),Q(e,{flushSync:h})}S.forEach((e=>{ue(e.key),e.controller&&B.set(e.key,e.controller)}));let w=()=>S.forEach((e=>ue(e.key)));A&&A.signal.addEventListener("abort",w);let{loaderResults:_,fetcherResults:C}=await re(a,x,S,t,o);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",w),S.forEach((e=>B.delete(e.key)));let E=nt(_);if(E)return await te(t,E.result,!0,{replace:p}),{shortCircuited:!0};if(E=nt(C),E)return U.add(E.key),await te(t,E.result,!0,{replace:p}),{shortCircuited:!0};let{loaderData:M,errors:k}=Ze(T,a,_,m,S,C);f&&T.errors&&(k={...T.errors,...k});let O=pe(),P=fe(V);return{matches:a,loaderData:M,errors:k,...O||P||S.length>0?{fetchers:new Map(T.fetchers)}:{}}}(y,n,s,v,f.active,i,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,c,m);x||(A=null,X(n,{matches:S||s,...Xe(m),loaderData:w,errors:_}))}function ee(e){return e&&!ot(e[1])?{[e[0]]:e[1].data}:T.actionData?0===Object.keys(T.actionData).length?null:T.actionData:void 0}async function te(r,a,o,{submission:i,fetcherSubmission:s,preventScrollReset:l,replace:c}={}){a.response.headers.has("X-Remix-Revalidate")&&(j=!0);let d=a.response.headers.get("Location");S(d,"Expected a Location header on the redirect Response"),d=He(d,new URL(r.url),u);let p=_(T.location,d,{_isRedirect:!0});if(n){let n=!1;if(a.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(Se.test(d)){const r=e.history.createURL(d);n=r.origin!==t.location.origin||null==K(r.pathname,u)}if(n)return void(c?t.location.replace(d):t.location.assign(d))}A=null;let f=!0===c||a.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:h,formAction:m,formEncType:g}=T.navigation;!i&&!s&&h&&m&&g&&(i=mt(T.navigation));let y=i||s;if(ye.has(a.response.status)&&y&&pt(y.formMethod))await J(f,p,{submission:{...y,formAction:d},preventScrollReset:l||M,enableViewTransition:o?O:void 0});else{let e=gt(p,i);await J(f,p,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:l||M,enableViewTransition:o?O:void 0})}}async function ne(e,t,n,r,a,o){let l,p={};try{l=await Ve(c,e,t,n,r,o,s,i,a,d.unstable_middleware)}catch(e){return n.forEach((t=>{p[t.route.id]={type:"error",error:e}})),p}for(let[e,n]of Object.entries(l))if(at(n)){let a=n.result;p[e]={type:"redirect",response:Ue(a,t,e,r,u)}}else p[e]=await We(n);return p}async function re(t,n,r,a,o){let i=ne("loader",a,n,t,o,null),s=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await ne("loader",qe(e.history,t.path,t.controller.signal),[t.match],t.matches,o,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:tt(404,{pathname:t.path})}})})));return{loaderResults:await i,fetcherResults:(await s).reduce(((e,t)=>Object.assign(e,t)),{})}}function ae(){j=!0,H.forEach(((e,t)=>{B.has(t)&&F.add(t),ue(t)}))}function oe(e,t,n={}){T.fetchers.set(e,t),Q({fetchers:new Map(T.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function ie(e,t,n,r={}){let a=Je(T.matches,t);le(e),Q({errors:{[a.route.id]:n},fetchers:new Map(T.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function se(e){return q.set(e,(q.get(e)||0)+1),G.has(e)&&G.delete(e),T.fetchers.get(e)||be}function le(e){let t=T.fetchers.get(e);!B.has(e)||t&&"loading"===t.state&&W.has(e)||ue(e),H.delete(e),W.delete(e),U.delete(e),G.delete(e),F.delete(e),T.fetchers.delete(e)}function ue(e){let t=B.get(e);t&&(t.abort(),B.delete(e))}function ce(e){for(let t of e){let e=vt(se(t).data);T.fetchers.set(t,e)}}function pe(){let e=[],t=!1;for(let n of U){let r=T.fetchers.get(n);S(r,`Expected fetcher: ${n}`),"loading"===r.state&&(U.delete(n),e.push(n),t=!0)}return ce(e),t}function fe(e){let t=[];for(let[n,r]of W)if(r0}function he(e){T.blockers.delete(e),Y.delete(e)}function me(e,t){let n=T.blockers.get(e)||xe;S("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(T.blockers);r.set(e,t),Q({blockers:r})}function ge({currentLocation:e,nextLocation:t,historyAction:n}){if(0===Y.size)return;Y.size>1&&w(!1,"A router only supports one blocker at a time");let r=Array.from(Y.entries()),[a,o]=r[r.length-1],i=T.blockers.get(a);return i&&"proceeding"===i.state?void 0:o({currentLocation:e,nextLocation:t,historyAction:n})?a:void 0}function _e(e){let t=tt(404,{pathname:e}),n=r||l,{matches:a,route:o}=et(n);return{notFoundMatches:a,route:o,error:t}}function Ce(e,t){return m&&m(e,t.map((e=>R(e,T.loaderData))))||e.key}function Te(e,t){if(h){let n=Ce(e,t),r=h[n];if("number"==typeof r)return r}return null}function Ee(t,n,r){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:D(n,r,u,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:D(n,r,u,!0)}}return{active:!1,matches:null}}async function Me(t,n,a,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let c=t;for(;;){let t=null==r,d=r||l,p=s;try{await e.patchRoutesOnNavigation({signal:a,path:n,matches:c,fetcherKey:o,patch:(e,t)=>{a.aborted||Ne(e,t,d,p,i)}})}catch(e){return{type:"error",error:e,partialMatches:c}}finally{t&&!a.aborted&&(l=[...l])}if(a.aborted)return{type:"aborted"};let f=I(d,n,u);if(f)return{type:"success",matches:f};let h=D(d,n,u,!0);if(!h||c.length===h.length&&c.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};c=h}}return o={get basename(){return u},get future(){return d},get state(){return T},get routes(){return l},get window(){return t},initialize:function(){if(p=e.history.listen((({action:t,location:n,delta:r})=>{if(C)return C(),void(C=void 0);w(0===Y.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let a=ge({currentLocation:T.location,nextLocation:n,historyAction:t});if(a&&null!=r){let t=new Promise((e=>{C=e}));return e.history.go(-1*r),void me(a,{state:"blocked",location:n,proceed(){me(a,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(T.blockers);e.set(a,xe),Q({blockers:e})}})}return J(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(Ae);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,L);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ae,JSON.stringify(n))}catch(e){w(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,L);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return T.initialized||J("POP",T.location,{initialHydration:!0}),o},subscribe:function(e){return f.add(e),()=>f.delete(e)},enableScrollRestoration:function(e,t,n){if(h=e,g=t,m=n||null,!y&&T.navigation===ve){y=!0;let e=Te(T.location,T.matches);null!=e&&Q({restoreScrollPosition:e})}return()=>{h=null,g=null,m=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let a=ke(T.location,T.matches,u,n,r?.fromRouteId,r?.relative),{path:o,submission:i,error:s}=Oe(!1,a,r),l=T.location,c=_(T.location,o,r&&r.state);c={...c,...e.history.encodeLocation(c)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=i&&pt(i.formMethod)&&i.formAction===T.location.pathname+T.location.search&&(p="REPLACE");let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),m=ge({currentLocation:l,nextLocation:c,historyAction:p});m?me(m,{state:"blocked",location:c,proceed(){me(m,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(n,r)},reset(){let e=new Map(T.blockers);e.set(m,xe),Q({blockers:e})}}):await J(p,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h})},fetch:async function(t,n,a,o){ue(t);let i=!0===(o&&o.flushSync),s=r||l,c=ke(T.location,T.matches,u,a,n,o?.relative),d=I(s,c,u),p=Ee(d,s,c);if(p.active&&p.matches&&(d=p.matches),!d)return void ie(t,n,tt(404,{pathname:c}),{flushSync:i});let{path:f,submission:h,error:m}=Oe(!0,c,o);if(m)return void ie(t,n,m,{flushSync:i});let g=ht(d,f),y=new k(e.unstable_getContext?await e.unstable_getContext():void 0),v=!0===(o&&o.preventScrollReset);h&&pt(h.formMethod)?await async function(t,n,a,o,i,s,c,d,p,f){function h(e){if(!e.route.action&&!e.route.lazy){let e=tt(405,{method:f.formMethod,pathname:a,routeId:n});return ie(t,n,e,{flushSync:d}),!0}return!1}if(ae(),H.delete(t),!c&&h(o))return;let m=T.fetchers.get(t);oe(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(f,m),{flushSync:d});let g=new AbortController,y=qe(e.history,a,g.signal,f);if(c){let e=await Me(i,a,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ie(t,n,e.error,{flushSync:d});if(!e.matches)return void ie(t,n,tt(404,{pathname:a}),{flushSync:d});if(h(o=ht(i=e.matches,a)))return}B.set(t,g);let v=z,b=(await ne("action",y,[o],i,s,t))[o.route.id];if(y.signal.aborted)return void(B.get(t)===g&&B.delete(t));if(G.has(t)){if(it(b)||ot(b))return void oe(t,vt(void 0))}else{if(it(b))return B.delete(t),V>v?void oe(t,vt(void 0)):(U.add(t),oe(t,yt(f)),te(y,b,!1,{fetcherSubmission:f,preventScrollReset:p}));if(ot(b))return void ie(t,n,b.error)}let x=T.navigation.location||T.location,w=qe(e.history,x,g.signal),_=r||l,C="idle"!==T.navigation.state?I(_,T.navigation.location,u):T.matches;S(C,"Didn't find any matches after fetcher action");let M=++z;W.set(t,M);let k=yt(f,b.data);T.fetchers.set(t,k);let[O,P]=Ie(e.history,T,C,f,x,!1,j,F,G,H,U,_,u,[o.route.id,b]);P.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=T.fetchers.get(t),r=yt(void 0,n?n.data:void 0);T.fetchers.set(t,r),ue(t),e.controller&&B.set(t,e.controller)})),Q({fetchers:new Map(T.fetchers)});let D=()=>P.forEach((e=>ue(e.key)));g.signal.addEventListener("abort",D);let{loaderResults:R,fetcherResults:L}=await re(C,O,P,w,s);if(g.signal.aborted)return;g.signal.removeEventListener("abort",D),W.delete(t),B.delete(t),P.forEach((e=>B.delete(e.key)));let N=nt(R);if(N)return te(w,N.result,!1,{preventScrollReset:p});if(N=nt(L),N)return U.add(N.key),te(w,N.result,!1,{preventScrollReset:p});let{loaderData:$,errors:q}=Ze(T,C,R,void 0,P,L);if(T.fetchers.has(t)){let e=vt(b.data);T.fetchers.set(t,e)}fe(M),"loading"===T.navigation.state&&M>V?(S(E,"Expected pending action"),A&&A.abort(),X(T.navigation.location,{matches:C,loaderData:$,errors:q,fetchers:new Map(T.fetchers)})):(Q({errors:q,loaderData:Qe(T.loaderData,$,C,q),fetchers:new Map(T.fetchers)}),j=!1)}(t,n,f,g,d,y,p.active,i,v,h):(H.set(t,{routeId:n,path:f}),await async function(t,n,r,a,o,i,s,l,u,c){let d=T.fetchers.get(t);oe(t,yt(c,d?d.data:void 0),{flushSync:l});let p=new AbortController,f=qe(e.history,r,p.signal);if(s){let e=await Me(o,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ie(t,n,e.error,{flushSync:l});if(!e.matches)return void ie(t,n,tt(404,{pathname:r}),{flushSync:l});a=ht(o=e.matches,r)}B.set(t,p);let h=z,m=(await ne("loader",f,[a],o,i,t))[a.route.id];if(B.get(t)===p&&B.delete(t),!f.signal.aborted){if(!G.has(t))return it(m)?V>h?void oe(t,vt(void 0)):(U.add(t),void await te(f,m,!1,{preventScrollReset:u})):void(ot(m)?ie(t,n,m.error):oe(t,vt(m.data)));oe(t,vt(void 0))}}(t,n,f,g,d,y,p.active,i,v,h))},revalidate:function(){Z||(Z=function(){let e,t,n=new Promise(((r,a)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{a(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}()),ae(),Q({revalidation:"loading"});let e=Z.promise;return"submitting"===T.navigation.state?e:"idle"===T.navigation.state?(J(T.historyAction,T.location,{startUninterruptedRevalidation:!0}),e):(J(E||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:!0===O}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:se,deleteFetcher:function(e){let t=(q.get(e)||0)-1;t<=0?(q.delete(e),G.add(e)):q.set(e,t),Q({fetchers:new Map(T.fetchers)})},dispose:function(){p&&p(),N&&N(),f.clear(),A&&A.abort(),T.fetchers.forEach(((e,t)=>le(t))),T.blockers.forEach(((e,t)=>he(t)))},getBlocker:function(e,t){let n=T.blockers.get(e)||xe;return Y.get(e)!==t&&Y.set(e,t),n},deleteBlocker:he,patchRoutes:function(e,t){let n=null==r;Ne(e,t,r||l,s,i),n&&(l=[...l],Q({}))},_internalFetchControllers:B,_internalSetRoutes:function(e){s={},r=P(e,i,void 0,s)}},o}function Te(e,t){S(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let n={},r=(t?t.basename:null)||"/",a=t?.mapRouteProperties||we,o=P(e,a,void 0,n);async function i(e,t,n,r,a,o,i,u,c){S(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(pt(e.method)){let d=await async function(e,t,n,r,a,o,i,u,c){let d;if(n.route.action||n.route.lazy)d=(await l("action",e,[n],t,i,r,a))[n.route.id],e.signal.aborted&&Me(e,i);else{let t=tt(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:n.route.id});if(i)throw t;d={type:"error",error:t}}if(it(d))throw new Response(null,{status:d.response.status,headers:{Location:d.response.headers.get("Location")}});if(i){if(ot(d))throw d.error;return{matches:[n],loaderData:{},actionData:{[n.route.id]:d.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(c){if(ot(d)){let e=o?n:Je(t,n.route.id);return{statusCode:de(d.error)?d.error.status:null!=d.statusCode?d.statusCode:500,actionData:null,actionHeaders:{...d.headers?{[n.route.id]:d.headers}:{}},matches:t,loaderData:{},errors:{[e.route.id]:d.error},loaderHeaders:{}}}return{actionData:{[n.route.id]:d.data},actionHeaders:d.headers?{[n.route.id]:d.headers}:{},matches:t,loaderData:{},errors:null,statusCode:d.statusCode||200,loaderHeaders:{}}}let p=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});if(ot(d)){let e=o?n:Je(t,n.route.id);return{...await s(p,t,r,a,o,null,u,[e.route.id,d]),statusCode:de(d.error)?d.error.status:null!=d.statusCode?d.statusCode:500,actionData:null,actionHeaders:{...d.headers?{[n.route.id]:d.headers}:{}}}}return{...await s(p,t,r,a,o,null,u),actionData:{[n.route.id]:d.data},...d.statusCode?{statusCode:d.statusCode}:{},actionHeaders:d.headers?{[n.route.id]:d.headers}:{}}}(e,n,i||ht(n,t),r,a,o,null!=i,u,c);return d}let d=await s(e,n,r,a,o,i,u);return lt(d)?d:{...d,actionData:null,actionHeaders:{}}}catch(e){if(null!=(d=e)&&"object"==typeof d&&"type"in d&&"result"in d&&("data"===d.type||"error"===d.type)&<(e.result)){if("error"===e.type)throw e.result;return e.result}if(ct(e))return e;throw e}var d}async function s(e,t,n,r,a,o,i,s){let u=null!=o;if(u&&!o?.route.loader&&!o?.route.lazy)throw tt(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:o?.route.id});let c=(o?[o]:s&&ot(s[1])?Pe(t,s[0]):t).filter((e=>(e.route.loader||e.route.lazy)&&(!i||i(e))));if(0===c.length)return{matches:t,loaderData:t.reduce(((e,t)=>Object.assign(e,{[t.route.id]:null})),{}),errors:s&&ot(s[1])?{[s[0]]:s[1].error}:null,statusCode:200,loaderHeaders:{}};let d=await l("loader",e,c,t,u,n,r);e.signal.aborted&&Me(e,u);let p=Ke(t,d,s,!0,a),f=new Set(c.map((e=>e.route.id)));return t.forEach((e=>{f.has(e.route.id)||(p.loaderData[e.route.id]=null)})),{...p,matches:t}}async function l(e,t,o,i,s,l,u){let c=await Ve(u||je,e,t,o,i,null,n,a,l,!1),d={};return await Promise.all(i.map((async e=>{if(!(e.route.id in c))return;let n=c[e.route.id];if(at(n))throw Ue(n.result,t,e.route.id,i,r);if(lt(n.result)&&s)throw n;d[e.route.id]=await We(n)}))),d}return{dataRoutes:o,query:async function(e,{requestContext:t,filterMatchesToLoad:n,skipLoaderErrorBubbling:a,skipRevalidation:s,dataStrategy:l,unstable_respond:u}={}){let c=new URL(e.url),d=e.method,p=_("",C(c),null,"default"),f=I(o,p,r);if(t=null!=t?t:new k,!dt(d)&&"HEAD"!==d){let e=tt(405,{method:d}),{matches:t,route:n}=et(o),a={basename:r,location:p,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return u?u(a):a}if(!f){let e=tt(404,{pathname:p.pathname}),{matches:t,route:n}=et(o),a={basename:r,location:p,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return u?u(a):a}if(u&&f.some((e=>e.route.unstable_middleware))){S(t instanceof k,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `unstable_RouterContextProvider`");try{let c,d=await Be({request:e,matches:f,params:f[0].params,context:t},!0,(async()=>{let o=await i(e,p,f,t,l||null,!0===a,null,n||null,!0===s);return lt(o)?o:(c={location:p,basename:r,...o},await u(c))}),(async(e,t)=>{if(lt(e))return e;if(c)return t in c.loaderData&&(c.loaderData[t]=void 0),u(Ee(o,c,e,Je(f,t).route.id));{let t=f.findIndex((e=>e.route.loader)),n=t>=0?Je(f,f[t].route.id):Je(f);return u({matches:f,location:p,basename:r,loaderData:{},actionData:null,errors:{[n.route.id]:e},statusCode:de(e)?e.status:500,actionHeaders:{},loaderHeaders:{}})}}));return S(lt(d),"Expected a response in query()"),d}catch(e){if(lt(e))return e;throw e}}let h=await i(e,p,f,t,l||null,!0===a,null,n||null,!0===s);return lt(h)?h:{location:p,basename:r,...h}},queryRoute:async function(e,{routeId:t,requestContext:n,dataStrategy:a,unstable_respond:s}={}){let l=new URL(e.url),u=e.method,c=_("",C(l),null,"default"),d=I(o,c,r);if(n=null!=n?n:new k,!dt(u)&&"HEAD"!==u&&"OPTIONS"!==u)throw tt(405,{method:u});if(!d)throw tt(404,{pathname:c.pathname});let p=t?d.find((e=>e.route.id===t)):ht(d,c);if(t&&!p)throw tt(403,{pathname:c.pathname,routeId:t});if(!p)throw tt(404,{pathname:c.pathname});if(s&&d.some((e=>e.route.unstable_middleware)))return S(n instanceof k,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `unstable_RouterContextProvider`"),await Be({request:e,matches:d,params:d[0].params,context:n},!0,(async()=>{let t=await i(e,c,d,n,a||null,!1,p,null,!1);if(lt(t))return s(t);let r=t.errors?Object.values(t.errors)[0]:void 0;if(void 0!==r)throw r;let o=t.actionData?Object.values(t.actionData)[0]:Object.values(t.loaderData)[0];return"string"==typeof o?new Response(o):Response.json(o)}),(e=>lt(e)?s(e):new Response(String(e),{status:500,statusText:"Unexpected Server Error"})));let f=await i(e,c,d,n,a||null,!1,p,null,!1);if(lt(f))return f;let h=f.errors?Object.values(f.errors)[0]:void 0;if(void 0!==h)throw h;return f.actionData?Object.values(f.actionData)[0]:f.loaderData?Object.values(f.loaderData)[0]:void 0}}}function Ee(e,t,n,r){let a=r||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:de(n)?n.status:500,errors:{[a]:n}}}function Me(e,t){if(void 0!==e.signal.reason)throw e.signal.reason;throw new Error(`${t?"queryRoute":"query"}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`)}function ke(e,t,n,r,a,o){let i,s;if(a){i=[];for(let e of t)if(i.push(e),e.route.id===a){s=e;break}}else i=t,s=t[t.length-1];let l=ee(r||".",J(i),K(e.pathname,n)||e.pathname,"path"===o);if(null==r&&(l.search=e.search,l.hash=e.hash),(null==r||""===r||"."===r)&&s){let e=ft(l.search);if(s.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();l.search=n?`?${n}`:""}}return"/"!==n&&(l.pathname="/"===l.pathname?n:te([n,l.pathname])),C(l)}function Oe(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!dt(n.formMethod))return{path:t,error:tt(405,{method:n.formMethod})};let r,a,o=()=>({path:t,error:tt(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),s=rt(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!pt(i))return o();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!pt(i))return o();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return o()}}}if(S("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ge(n.formData),a=n.formData;else if(n.body instanceof FormData)r=Ge(n.body),a=n.body;else if(n.body instanceof URLSearchParams)r=n.body,a=Ye(r);else if(null==n.body)r=new URLSearchParams,a=new FormData;else try{r=new URLSearchParams(n.body),a=Ye(r)}catch(e){return o()}let l={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(pt(l.formMethod))return{path:t,submission:l};let u=T(t);return e&&u.search&&ft(u.search)&&r.append("index",""),u.search=`?${r}`,{path:C(u),submission:l}}function Pe(e,t,n=!1){let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function Ie(e,t,n,r,a,o,i,s,l,u,c,d,p,f){let h=f?ot(f[1])?f[1].error:f[1].data:void 0,m=e.createURL(t.location),g=e.createURL(a),y=n;o&&t.errors?y=Pe(n,Object.keys(t.errors)[0],!0):f&&ot(f[1])&&(y=Pe(n,f[0]));let v=f?f[1].statusCode:void 0,b=v&&v>=400,x=y.filter(((e,n)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return De(a,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}(t.loaderData,t.matches[n],e))return!0;let s=t.matches[n],l=e;return Le(e,{currentUrl:m,currentParams:s.params,nextUrl:g,nextParams:l.params,...r,actionResult:h,actionStatus:v,defaultShouldRevalidate:!b&&(i||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||Re(s,l))})})),S=[];return u.forEach(((e,a)=>{if(o||!n.some((t=>t.route.id===e.routeId))||l.has(a))return;let u=I(d,e.path,p);if(!u)return void S.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(a),y=ht(u,e.path),x=!1;c.has(a)?x=!1:s.has(a)?(s.delete(a),x=!0):x=f&&"idle"!==f.state&&void 0===f.data?i:Le(y,{currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:h,actionStatus:v,defaultShouldRevalidate:!b&&i}),x&&S.push({key:a,routeId:e.routeId,path:e.path,matches:u,match:y,controller:new AbortController})})),[x,S]}function De(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],a=null!=n&&void 0!==n[e.id];return!(!r&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!a)}function Re(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Le(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Ne(e,t,n,r,a){let o;if(e){let t=r[e];S(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),o=t.children}else o=n;let i=P(t.filter((e=>!o.some((t=>$e(e,t))))),a,[e||"_","patch",String(o?.length||"0")],r);o.push(...i)}function $e(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>$e(e,t))))))}async function je(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function Fe(e){return e.matches.some((e=>e.route.unstable_middleware))?Be(e,!1,(()=>je(e)),((e,t)=>({[t]:{type:"error",result:e}}))):je(e)}async function Be(e,t,n,r){let{matches:a,request:o,params:i,context:s}=e,l={handlerResult:void 0};try{let e=a.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),r=await ze({request:o,params:i,context:s},e,t,l,n);return t?r:l.handlerResult}catch(e){if(!l.middlewareError)throw e;let n=await r(l.middlewareError.error,l.middlewareError.routeId);return t||!l.handlerResult?n:Object.assign(l.handlerResult,n)}}async function ze(e,t,n,r,a,o=0){let{request:i}=e;if(i.signal.aborted){if(i.signal.reason)throw i.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`)}let s=t[o];if(!s)return r.handlerResult=await a(),r.handlerResult;let l,[u,c]=s,d=!1,p=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");d=!0;let i=await ze(e,t,n,r,a,o+1);if(n)return l=i,l};try{let t=await c({request:e.request,params:e.params,context:e.context},p);return d?void 0===t?l:t:p()}catch(e){throw r.middlewareError?r.middlewareError.error!==e&&(r.middlewareError={routeId:u,error:e}):r.middlewareError={routeId:u,error:e},e}}async function Ve(e,t,n,r,a,o,i,s,l,u){let c=a.map((e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];S(a,"No route found in manifest");let o={};for(let e in r){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;w(!t,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`),t||O.has(e)||(o[e]=r[e])}Object.assign(a,o),Object.assign(a,{...t(a),lazy:void 0})}(e.route,s,i):void 0));u&&await Promise.all(c);let d=a.map(((e,a)=>{let o=c[a],i=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:i,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,n,r,a,o){let i,s,l=r=>{let i,l=new Promise(((e,t)=>i=t));s=()=>i(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):r({request:t,params:n.params,context:o},...void 0!==a?[a]:[]),c=(async()=>{try{return{type:"data",result:await(a?a((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([c,l])};try{let a=n.route[e];if(r)if(a){let e,[t]=await Promise.all([l(a).catch((t=>{e=t})),r]);if(void 0!==e)throw e;i=t}else{if(await r,a=n.route[e],!a){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw tt(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}i=await l(a)}else{if(!a){let e=new URL(t.url);throw tt(404,{pathname:e.pathname+e.search})}i=await l(a)}}catch(e){return{type:"error",result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,n,e,o,r,l):Promise.resolve({type:"data",result:void 0}))}})),p=await e({matches:d,request:n,params:a[0].params,fetcherKey:o,context:l});try{await Promise.all(c)}catch(e){}return p}async function We(e){let{result:t,type:n}=e;if(lt(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new ce(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?st(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new ce(t.init?.status||500,void 0,t.data),statusCode:de(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:de(t)?t.status:void 0}:st(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ue(e,t,n,r,a){let o=e.headers.get("Location");if(S(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Se.test(o)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);o=ke(new URL(t.url),i,a,o),e.headers.set("Location",o)}return e}function He(e,t,n){if(Se.test(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=null!=K(a.pathname,n);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function qe(e,t,n,r){let a=e.createURL(rt(t)).toString(),o={signal:n};if(r&&pt(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=Ge(r.formData):o.body=r.formData}return new Request(a,o)}function Ge(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ye(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ke(e,t,n,r=!1,a=!1){let o,i={},s=null,l=!1,u={},c=n&&ot(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,p=t[d];if(S(!it(p),"Cannot handle redirect results in processLoaderData"),ot(p)){let t=p.error;if(void 0!==c&&(t=c,c=void 0),s=s||{},a)s[d]=t;else{let n=Je(e,d);null==s[n.route.id]&&(s[n.route.id]=t)}r||(i[d]=_e),l||(l=!0,o=de(p.error)?p.error.status:500),p.headers&&(u[d]=p.headers)}else i[d]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(o=p.statusCode),p.headers&&(u[d]=p.headers)})),void 0!==c&&n&&(s={[n[0]]:c},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:u}}function Ze(e,t,n,r,a,o){let{loaderData:i,errors:s}=Ke(t,n,r);return a.forEach((t=>{let{key:n,match:r,controller:a}=t,i=o[n];if(S(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(ot(i)){let t=Je(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(it(i))S(!1,"Unhandled fetcher revalidation redirect");else{let t=vt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:s}}function Qe(e,t,n,r){let a=Object.entries(t).filter((([,e])=>e!==_e)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(a[n]=e[n]),r&&r.hasOwnProperty(n))break}return a}function Xe(e){return e?ot(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Je(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function et(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function tt(e,{pathname:t,routeId:n,method:r,type:a,message:o}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===a&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",s=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new ce(e||500,i,new Error(s),!0)}function nt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(it(r))return{key:n,result:r}}}function rt(e){return C({..."string"==typeof e?T(e):e,hash:""})}function at(e){return lt(e.result)&&ge.has(e.result.status)}function ot(e){return"error"===e.type}function it(e){return"redirect"===(e&&e.type)}function st(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function lt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ut(e){return ge.has(e)}function ct(e){return lt(e)&&ut(e.status)&&e.headers.has("Location")}function dt(e){return me.has(e.toUpperCase())}function pt(e){return fe.has(e.toUpperCase())}function ft(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function ht(e,t){let n="string"==typeof t?T(t).search:t.search;if(e[e.length-1].route.index&&ft(n||""))return e[e.length-1];let r=X(e);return r[r.length-1]}function mt(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function gt(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function yt(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function vt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var bt=p(n(96540)),xt=p(n(96540)),St=xt.createContext(null);St.displayName="DataRouter";var wt=xt.createContext(null);wt.displayName="DataRouterState";var At=xt.createContext({isTransitioning:!1});At.displayName="ViewTransition";var _t=xt.createContext(new Map);_t.displayName="Fetchers";var Ct=xt.createContext(null);Ct.displayName="Await";var Tt=xt.createContext(null);Tt.displayName="Navigation";var Et=xt.createContext(null);Et.displayName="Location";var Mt=xt.createContext({outlet:null,matches:[],isDataRoute:!1});Mt.displayName="Route";var kt=xt.createContext(null);kt.displayName="RouteError";var Ot=p(n(96540)),Pt=!0;function It(e,{relative:t}={}){S(Dt(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=Ot.useContext(Tt),{hash:a,pathname:o,search:i}=Ut(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:te([n,o])),r.createHref({pathname:s,search:i,hash:a})}function Dt(){return null!=Ot.useContext(Et)}function Rt(){return S(Dt(),"useLocation() may be used only in the context of a component."),Ot.useContext(Et).location}function Lt(){return Ot.useContext(Et).navigationType}function Nt(e){S(Dt(),"useMatch() may be used only in the context of a component.");let{pathname:t}=Rt();return Ot.useMemo((()=>G(e,Y(t))),[t,e])}var $t="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function jt(e){Ot.useContext(Tt).static||Ot.useLayoutEffect(e)}function Ft(){let{isDataRoute:e}=Ot.useContext(Mt);return e?function(){let{router:e}=Jt("useNavigate"),t=tn("useNavigate"),n=Ot.useRef(!1);return jt((()=>{n.current=!0})),Ot.useCallback((async(r,a={})=>{w(n.current,$t),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))}),[e,t])}():function(){S(Dt(),"useNavigate() may be used only in the context of a component.");let e=Ot.useContext(St),{basename:t,navigator:n}=Ot.useContext(Tt),{matches:r}=Ot.useContext(Mt),{pathname:a}=Rt(),o=JSON.stringify(J(r)),i=Ot.useRef(!1);return jt((()=>{i.current=!0})),Ot.useCallback(((r,s={})=>{if(w(i.current,$t),!i.current)return;if("number"==typeof r)return void n.go(r);let l=ee(r,JSON.parse(o),a,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:te([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,o,a,e])}()}var Bt=Ot.createContext(null);function zt(){return Ot.useContext(Bt)}function Vt(e){let t=Ot.useContext(Mt).outlet;return t?Ot.createElement(Bt.Provider,{value:e},t):t}function Wt(){let{matches:e}=Ot.useContext(Mt),t=e[e.length-1];return t?t.params:{}}function Ut(e,{relative:t}={}){let{matches:n}=Ot.useContext(Mt),{pathname:r}=Rt(),a=JSON.stringify(J(n));return Ot.useMemo((()=>ee(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function Ht(e,t){return qt(e,t)}function qt(e,t,n,r){S(Dt(),"useRoutes() may be used only in the context of a component.");let{navigator:a,static:o}=Ot.useContext(Tt),{matches:i}=Ot.useContext(Mt),s=i[i.length-1],l=s?s.params:{},u=s?s.pathname:"/",c=s?s.pathnameBase:"/",d=s&&s.route;if(Pt){let e=d&&d.path||"";mn(u,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent to .`)}let p,f=Rt();if(t){let e="string"==typeof t?T(t):t;S("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=f;let h=p.pathname||"/",m=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=!o&&n&&n.matches&&n.matches.length>0?n.matches:I(e,{pathname:m});Pt&&(w(d||null!=g,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),w(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`));let y=Qt(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:te([c,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:te([c,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&y?Ot.createElement(Et.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},y):y}function Gt(){let e=un(),t=de(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},i=null;return Pt&&(console.error("Error handled by React Router default ErrorBoundary:",e),i=Ot.createElement(Ot.Fragment,null,Ot.createElement("p",null,"💿 Hey developer 👋"),Ot.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Ot.createElement("code",{style:o},"ErrorBoundary")," or"," ",Ot.createElement("code",{style:o},"errorElement")," prop on your route."))),Ot.createElement(Ot.Fragment,null,Ot.createElement("h2",null,"Unexpected Application Error!"),Ot.createElement("h3",{style:{fontStyle:"italic"}},t),n?Ot.createElement("pre",{style:a},n):null,i)}var Yt=Ot.createElement(Gt,null),Kt=class extends Ot.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?Ot.createElement(Mt.Provider,{value:this.props.routeContext},Ot.createElement(kt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Zt({routeContext:e,match:t,children:n}){let r=Ot.useContext(St);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),Ot.createElement(Mt.Provider,{value:e},n)}function Qt(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,o=n?.errors;if(null!=o){let e=a.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));S(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let i=!1,s=-1;if(n)for(let e=0;e=0?a.slice(0,s+1):[a[0]];break}}}return a.reduceRight(((e,r,l)=>{let u,c=!1,d=null,p=null;n&&(u=o&&r.route.id?o[r.route.id]:void 0,d=r.route.errorElement||Yt,i&&(s<0&&0===l?(mn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),c=!0,p=null):s===l&&(c=!0,p=r.route.hydrateFallbackElement||null)));let f=t.concat(a.slice(0,l+1)),h=()=>{let t;return t=u?d:c?p:r.route.Component?Ot.createElement(r.route.Component,null):r.route.element?r.route.element:e,Ot.createElement(Zt,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?Ot.createElement(Kt,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()}),null)}function Xt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jt(e){let t=Ot.useContext(St);return S(t,Xt(e)),t}function en(e){let t=Ot.useContext(wt);return S(t,Xt(e)),t}function tn(e){let t=function(e){let t=Ot.useContext(Mt);return S(t,Xt(e)),t}(e),n=t.matches[t.matches.length-1];return S(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function nn(){return en("useNavigation").navigation}function rn(){let e=Jt("useRevalidator"),t=en("useRevalidator");return Ot.useMemo((()=>({async revalidate(){await e.router.revalidate()},state:t.revalidation})),[e.router,t.revalidation])}function an(){let{matches:e,loaderData:t}=en("useMatches");return Ot.useMemo((()=>e.map((e=>R(e,t)))),[e,t])}function on(){let e=en("useLoaderData"),t=tn("useLoaderData");return e.loaderData[t]}function sn(e){return en("useRouteLoaderData").loaderData[e]}function ln(){let e=en("useActionData"),t=tn("useLoaderData");return e.actionData?e.actionData[t]:void 0}function un(){let e=Ot.useContext(kt),t=en("useRouteError"),n=tn("useRouteError");return void 0!==e?e:t.errors?.[n]}function cn(){let e=Ot.useContext(Ct);return e?._data}function dn(){let e=Ot.useContext(Ct);return e?._error}var pn=0;function fn(e){let{router:t,basename:n}=Jt("useBlocker"),r=en("useBlocker"),[a,o]=Ot.useState(""),i=Ot.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:a,historyAction:o}=t;return e({currentLocation:{...r,pathname:K(r.pathname,n)||r.pathname},nextLocation:{...a,pathname:K(a.pathname,n)||a.pathname},historyAction:o})}),[n,e]);return Ot.useEffect((()=>{let e=String(++pn);return o(e),()=>t.deleteBlocker(e)}),[t]),Ot.useEffect((()=>{""!==a&&t.getBlocker(a,i)}),[t,a,i]),a&&r.blockers.has(a)?r.blockers.get(a):xe}var hn={};function mn(e,t,n){t||hn[e]||(hn[e]=!0,w(!1,n))}var gn={};function yn(e,t){e||gn[t]||(gn[t]=!0,console.warn(t))}var vn=!0;function bn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(vn&&e.element&&w(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:bt.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(vn&&e.hydrateFallbackElement&&w(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:bt.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(vn&&e.errorElement&&w(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:bt.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function xn(e,t){return Ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:v({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,mapRouteProperties:bn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation}).initialize()}var Sn=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function wn({router:e,flushSync:t}){let[n,r]=bt.useState(e.state),[a,o]=bt.useState(),[i,s]=bt.useState({isTransitioning:!1}),[l,u]=bt.useState(),[c,d]=bt.useState(),[p,f]=bt.useState(),h=bt.useRef(new Map),m=bt.useCallback(((n,{deletedFetchers:a,flushSync:i,viewTransitionOpts:p})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&h.current.set(t,e.data)})),a.forEach((e=>h.current.delete(e))),yn(!1===i||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let m=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(yn(null==p||m,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),p&&m){if(t&&i){t((()=>{c&&(l&&l.resolve(),c.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:p.currentLocation,nextLocation:p.nextLocation})}));let a=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return a.finished.finally((()=>{t((()=>{u(void 0),d(void 0),o(void 0),s({isTransitioning:!1})}))})),void t((()=>d(a)))}c?(l&&l.resolve(),c.skipTransition(),f({state:n,currentLocation:p.currentLocation,nextLocation:p.nextLocation})):(o(n),s({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}))}else t&&i?t((()=>r(n))):bt.startTransition((()=>r(n)))}),[e.window,t,c,l]);bt.useLayoutEffect((()=>e.subscribe(m)),[e,m]),bt.useEffect((()=>{i.isTransitioning&&!i.flushSync&&u(new Sn)}),[i]),bt.useEffect((()=>{if(l&&a&&e.window){let t=a,n=l.promise,i=e.window.document.startViewTransition((async()=>{bt.startTransition((()=>r(t))),await n}));i.finished.finally((()=>{u(void 0),d(void 0),o(void 0),s({isTransitioning:!1})})),d(i)}}),[a,l,e.window]),bt.useEffect((()=>{l&&a&&n.location.key===a.location.key&&l.resolve()}),[l,c,n.location,a]),bt.useEffect((()=>{!i.isTransitioning&&p&&(o(p.state),s({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),f(void 0))}),[i.isTransitioning,p]);let g=bt.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),y=e.basename||"/",v=bt.useMemo((()=>({router:e,navigator:g,static:!1,basename:y})),[e,g,y]);return bt.createElement(bt.Fragment,null,bt.createElement(St.Provider,{value:v},bt.createElement(wt.Provider,{value:n},bt.createElement(_t.Provider,{value:h.current},bt.createElement(At.Provider,{value:i},bt.createElement(Mn,{basename:y,location:n.location,navigationType:n.historyAction,navigator:g},bt.createElement(An,{routes:e.routes,future:e.future,state:n})))))),null)}var An=bt.memo((function({routes:e,future:t,state:n}){return qt(e,void 0,n,t)}));function _n({basename:e,children:t,initialEntries:n,initialIndex:r}){let a=bt.useRef();null==a.current&&(a.current=v({initialEntries:n,initialIndex:r,v5Compat:!0}));let o=a.current,[i,s]=bt.useState({action:o.action,location:o.location}),l=bt.useCallback((e=>{bt.startTransition((()=>s(e)))}),[s]);return bt.useLayoutEffect((()=>o.listen(l)),[o,l]),bt.createElement(Mn,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}function Cn({to:e,replace:t,state:n,relative:r}){S(Dt()," may be used only in the context of a component.");let{static:a}=bt.useContext(Tt);w(!a," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:o}=bt.useContext(Mt),{pathname:i}=Rt(),s=Ft(),l=ee(e,J(o),i,"path"===r),u=JSON.stringify(l);return bt.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function Tn(e){return Vt(e.context)}function En(e){S(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Mn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){S(!Dt(),"You cannot render a inside another . You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=bt.useMemo((()=>({basename:i,navigator:a,static:o,future:{}})),[i,a,o]);"string"==typeof n&&(n=T(n));let{pathname:l="/",search:u="",hash:c="",state:d=null,key:p="default"}=n,f=bt.useMemo((()=>{let e=K(l,i);return null==e?null:{location:{pathname:e,search:u,hash:c,state:d,key:p},navigationType:r}}),[i,l,u,c,d,p,r]);return w(null!=f,` is not able to match the URL "${l}${u}${c}" because it does not start with the basename, so the won't render anything.`),null==f?null:bt.createElement(Tt.Provider,{value:s},bt.createElement(Et.Provider,{children:t,value:f}))}function kn({children:e,location:t}){return Ht(Dn(e),t)}function On({children:e,errorElement:t,resolve:n}){return bt.createElement(Pn,{resolve:n,errorElement:t},bt.createElement(In,null,e))}var Pn=class extends bt.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(" caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,a=0;if(n instanceof Promise)if(this.state.error){a=2;let e=this.state.error;r=Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(r=n,a="_error"in r?2:"_data"in r?1:0):(a=0,Object.defineProperty(n,"_tracked",{get:()=>!0}),r=n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else a=1,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(2===a&&!t)throw r._error;if(2===a)return bt.createElement(Ct.Provider,{value:r,children:t});if(1===a)return bt.createElement(Ct.Provider,{value:r,children:e});throw r}};function In({children:e}){let t=cn(),n="function"==typeof e?e(t):e;return bt.createElement(bt.Fragment,null,n)}function Dn(e,t=[]){let n=[];return bt.Children.forEach(e,((e,r)=>{if(!bt.isValidElement(e))return;let a=[...t,r];if(e.type===bt.Fragment)return void n.push.apply(n,Dn(e.props.children,a));S(e.type===En,`[${"string"==typeof e.type?e.type:e.type.name}] is not a component. All component children of must be a or `),S(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Dn(e.props.children,a)),n.push(o)})),n}var Rn=Dn;function Ln(e){return Qt(e)}var Nn=p(n(96540)),$n="get",jn="application/x-www-form-urlencoded";function Fn(e){return null!=e&&"string"==typeof e.tagName}function Bn(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var zn=null,Vn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wn(e){return null==e||Vn.has(e)?e:(w(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${jn}"`),null)}var Un,Hn=p(n(96540));function qn(e,t){if(!1===e||null==e)throw new Error(t)}async function Gn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Yn(e){return e.css?e.css.map((e=>({rel:"stylesheet",href:e}))):[]}async function Kn(e,t){if(!e.css&&!t.links||!function(){if(void 0!==Un)return Un;let e=document.createElement("link");return Un=e.relList.supports("preload"),e=null,Un}())return;let n=[];if(e.css&&n.push(...Yn(e)),t.links&&n.push(...t.links()),0===n.length)return;let r=[];for(let e of n)Qn(e)||"stylesheet"!==e.rel||r.push({...e,rel:"preload",as:"style"});await Promise.all(r.map(Zn))}async function Zn(e){return new Promise((t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement("link");function r(){document.head.contains(n)&&document.head.removeChild(n)}Object.assign(n,e),n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)}))}function Qn(e){return null!=e&&"string"==typeof e.page}function Xn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Jn(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter(((e,t)=>i(e,t)||s(e,t))):"data"===o?t.filter(((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function er(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a})).flat(1),[...new Set(r)];var r}function tr(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,a)=>{if(t&&!Qn(a)&&"script"===a.as&&a.href&&r.has(a.href))return e;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(o)||(n.add(o),e.push({key:o,link:a})),e}),[])}var nr={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},rr=/[&><\u2028\u2029]/g;function ar(e){return{__html:e}}var or=p(n(96540)),ir=n(91816);async function sr(e){let t={signal:e.signal};if("GET"!==e.method){t.method=e.method;let n=e.headers.get("Content-Type");n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var lr=Symbol("SingleFetchRedirect");function ur({context:e,identifier:t,reader:n,textDecoder:r,nonce:a}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:o}=e.renderMeta,i=o[t];if(i||(i=o[t]=n.read().then((e=>{o[t].result={done:e.done,value:r.decode(e.value,{stream:!0})}})).catch((e=>{o[t].error=e}))),i.error)throw i.error;if(void 0===i.result)throw i;let{done:s,value:l}=i.result,u=l?or.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${c=JSON.stringify(l),c.replace(rr,(e=>nr[e]))});`}}):null;var c;return s?or.createElement(or.Fragment,null,u,or.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:"window.__reactRouterContext.streamController.close();"}})):or.createElement(or.Fragment,null,u,or.createElement(or.Suspense,null,or.createElement(ur,{context:e,identifier:t+1,reader:n,textDecoder:r,nonce:a})))}function cr(e,t){return{[t]:{type:"error",result:e}}}function dr(e,t,n,r,a){return async t=>{let{request:o,matches:i,fetcherKey:s}=t;return"GET"!==o.method?Be(t,!1,(()=>async function(e,t,n){let r=t.find((e=>e.shouldLoad));qn(r,"No action match found");let a,o=await r.resolve((async t=>await t((async()=>{let t=hr(e.url,n),o=await sr(e),{data:i,status:s}=await mr(t,o);return a=s,vr(i,r.route.id)}))));return lt(o.result)||de(o.result)?{[r.route.id]:o}:{[r.route.id]:{type:o.type,result:ie(o.result,a)}}}(o,i,r)),cr):n||i.some((t=>t.shouldLoad&&e.routes[t.route.id]?.hasLoader&&!e.routes[t.route.id]?.hasClientLoader))?Be(t,!1,s?()=>async function(e,t,n){let r=t.find((e=>e.shouldLoad));qn(r,"No fetcher match found");let a=await r.resolve((async t=>pr(t,fr(hr(e.url,n)),await sr(e),r.route.id)));return{[r.route.id]:a}}(o,i,r):()=>async function(e,t,n,r,a,o,i){let s=new Set,l=!1,u=o.map((()=>br())),c=Promise.all(u.map((e=>e.promise))),d=br(),p=fr(hr(a.url,i)),f=await sr(a),h={},m=Promise.all(o.map((async(t,n)=>t.resolve((async a=>{u[n].resolve();let o=e.routes[t.route.id];if(!t.shouldLoad){if(!r.state.initialized)return;if(t.route.id in r.state.loaderData&&o&&t.route.shouldRevalidate)return void(o.hasLoader&&(l=!0))}if(o&&o.hasClientLoader){o.hasLoader&&(l=!0);try{let e=await pr(a,p,f,t.route.id);h[t.route.id]={type:"data",result:e}}catch(e){h[t.route.id]={type:"error",result:e}}}else{o&&o.hasLoader&&s.add(t.route.id);try{let e=await a((async()=>yr(await d.promise,t.route.id)));h[t.route.id]={type:"data",result:e}}catch(e){h[t.route.id]={type:"error",result:e}}}})))));if(await c,r.state.initialized&&0!==s.size||window.__reactRouterHdrActive)try{n&&l&&s.size>0&&p.searchParams.set("_routes",o.filter((e=>s.has(e.route.id))).map((e=>e.route.id)).join(","));let e=await mr(p,f);d.resolve(e.data)}catch(e){d.reject(e)}else d.resolve({});return await m,h}(e,0,n,a(),o,i,r),cr):Be(t,!1,(()=>async function(e,t,n,r){let a=n.filter((e=>e.shouldLoad)),o=fr(hr(t.url,r)),i=await sr(t),s={};return await Promise.all(a.map((t=>t.resolve((async n=>{try{let r=e.routes[t.route.id]?.hasClientLoader?await pr(n,o,i,t.route.id):await n();s[t.route.id]={type:"data",result:r}}catch(e){s[t.route.id]={type:"error",result:e}}}))))),s}(e,o,i,r)),cr)}}function pr(e,t,n,r){return e((async()=>{let e=new URL(t);e.searchParams.set("_routes",r);let{data:a}=await mr(e,n);return yr(a,r)}))}function fr(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append("index",t);return e}function hr(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===K(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}async function mr(e,t){let n=await fetch(e,t);if(404===n.status&&!n.headers.has("X-Remix-Response"))throw new ce(404,"Not Found",!0);if(new Set([100,101,204,205]).has(n.status))return t.method&&"GET"!==t.method?{status:n.status,data:{data:void 0}}:{status:n.status,data:{}};qn(n.body,"No response body to decode");try{let e=await gr(n.body,window);return{status:n.status,data:e.value}}catch(e){throw new Error("Unable to decode turbo-stream response")}}function gr(e,t){return(0,ir.decode)(e,{plugins:[(e,...n)=>{if("SanitizedError"===e){let[e,r,a]=n,o=Error;e&&e in t&&"function"==typeof t[e]&&(o=t[e]);let i=new o(r);return i.stack=a,{value:i}}if("ErrorResponse"===e){let[e,t,r]=n;return{value:new ce(t,r,e)}}return"SingleFetchRedirect"===e?{value:{[lr]:n[0]}}:"SingleFetchClassInstance"===e?{value:n[0]}:"SingleFetchFallback"===e?{value:void 0}:void 0}]})}function yr(e,t){let n=e[lr];return n?vr(n,t):void 0!==e[t]?vr(e[t],t):null}function vr(e,t){if("error"in e)throw e.error;if("redirect"in e){let t={};throw e.revalidate&&(t["X-Remix-Revalidate"]="yes"),e.reload&&(t["X-Remix-Reload-Document"]="yes"),e.replace&&(t["X-Remix-Replace"]="yes"),se(e.redirect,{status:e.status,headers:t})}if("data"in e)return e.data;throw new Error(`No response found for routeId "${t}"`)}function br(){let e,t,n=new Promise(((r,a)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{a(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var xr=p(n(96540)),Sr=p(n(96540)),wr=p(n(96540)),Ar=class extends wr.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?wr.createElement(_r,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function _r({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=wr.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n );\n '}});if(de(e))return wr.createElement(Cr,{title:"Unhandled Thrown Response!"},wr.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)n=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);n=new Error(t)}return wr.createElement(Cr,{title:"Application Error!",isOutsideRemixApp:t},wr.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),wr.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function Cr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=Zr();return a.root?.Layout&&!n?r:wr.createElement("html",{lang:"en"},wr.createElement("head",null,wr.createElement("meta",{charSet:"utf-8"}),wr.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),wr.createElement("title",null,e)),wr.createElement("body",null,wr.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?wr.createElement(aa,null):null)))}var Tr=p(n(96540));function Er(){return Tr.createElement(Cr,{title:"Loading...",renderScripts:!0},Tr.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this " +\n "when your app is loading JS modules and/or running `clientLoader` " +\n "functions. Check out https://remix.run/route/hydrate-fallback " +\n "for more information."\n );\n '}}))}function Mr(e){let t={};return Object.values(e).forEach((e=>{if(e){let n=e.parentId||"";t[n]||(t[n]=[]),t[n].push(e)}})),t}function kr(e,t,n){let r=Nr(t),a=!t.HydrateFallback||n&&"root"!==e.id?"root"===e.id?Er:void 0:t.HydrateFallback,o=t.ErrorBoundary?t.ErrorBoundary:"root"===e.id?()=>Sr.createElement(_r,{error:un()}):void 0;return"root"===e.id&&t.Layout?{...r?{element:Sr.createElement(t.Layout,null,Sr.createElement(r,null))}:{Component:r},...o?{errorElement:Sr.createElement(t.Layout,null,Sr.createElement(o,null))}:{ErrorBoundary:o},...a?{hydrateFallbackElement:Sr.createElement(t.Layout,null,Sr.createElement(a,null))}:{HydrateFallback:a}}:{Component:r,ErrorBoundary:o,HydrateFallback:a}}function Or(e,t,n,r,a="",o=Mr(e),i=Promise.resolve({Component:()=>null})){return(o[a]||[]).map((a=>{let s=t[a.id];qn(s,"No `routeModule` available to create server routes");let l={...kr(a,s,r),caseSensitive:a.caseSensitive,id:a.id,index:a.index,path:a.path,handle:s.handle,lazy:r?()=>i:void 0,loader:a.hasLoader||a.hasClientLoader?()=>null:void 0},u=Or(e,t,n,r,a.id,o,i);return u.length>0&&(l.children=u),l}))}function Pr(e,t,n,r,a,o){return Rr(t,n,r,a,o,"",Mr(t),e)}function Ir(e,t){if("loader"===e&&!t.hasLoader||"action"===e&&!t.hasAction){let n=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new ce(400,"Bad Request",new Error(n),!0)}}function Dr(e,t){let n="clientAction"===e?"a":"an",r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new ce(405,"Method Not Allowed",new Error(r),!0)}function Rr(e,t,n,r,a,o="",i=Mr(e),s){return(i[o]||[]).map((o=>{let l=t[o.id];function u(e){return qn("function"==typeof e,"No single fetch function available for route handler"),e()}function c(e){return o.hasLoader?u(e):Promise.resolve(null)}function d(e){if(!o.hasAction)throw Dr("action",o.id);return u(e)}function p(e){import(e)}function f(e){e.clientActionModule&&p(e.clientActionModule),e.clientLoaderModule&&p(e.clientLoaderModule)}async function h(e){let n=t[o.id],r=n?Kn(o,n):Promise.resolve();try{return e()}finally{await r}}let m={id:o.id,index:o.index,path:o.path};if(l){Object.assign(m,{...m,...kr(o,l,a),unstable_middleware:l.unstable_clientMiddleware,handle:l.handle,shouldRevalidate:Lr(l,o,r,s)});let e=n&&n.loaderData&&o.id in n.loaderData,t=e?n?.loaderData?.[o.id]:void 0,i=n&&n.errors&&o.id in n.errors,u=i?n?.errors?.[o.id]:void 0,p=null==s&&(!0===l.clientLoader?.hydrate||!o.hasLoader);m.loader=async({request:n,params:r,context:a},s)=>{try{return await h((async()=>(qn(l,"No `routeModule` available for critical-route loader"),l.clientLoader?l.clientLoader({request:n,params:r,context:a,async serverLoader(){if(Ir("loader",o),p){if(e)return t;if(i)throw u}return c(s)}}):c(s))))}finally{p=!1}},m.loader.hydrate=$r(o,l,a),m.action=({request:e,params:t,context:n},r)=>h((async()=>{if(qn(l,"No `routeModule` available for critical-route action"),!l.clientAction){if(a)throw Dr("clientAction",o.id);return d(r)}return l.clientAction({request:e,params:t,context:n,serverAction:async()=>(Ir("action",o),d(r))})}))}else o.hasClientLoader?o.clientLoaderModule&&(m.loader=async(e,t)=>{qn(o.clientLoaderModule);let{clientLoader:n}=await import(o.clientLoaderModule);return n({...e,serverLoader:async()=>(Ir("loader",o),c(t))})}):m.loader=(e,t)=>h((()=>c(t))),o.hasClientAction?o.clientActionModule&&(m.action=async(e,t)=>{qn(o.clientActionModule),f(o);let{clientAction:n}=await import(o.clientActionModule);return n({...e,serverAction:async()=>(Ir("action",o),d(t))})}):m.action=(e,t)=>h((()=>{if(a)throw Dr("clientAction",o.id);return d(t)})),m.lazy=async()=>{(o.clientLoaderModule||o.clientActionModule)&&await new Promise((e=>setTimeout(e,0)));let e=async function(e,t){let n=Gn(e,t),r=async function(e){if(!e.css)return;let t=Yn(e);await Promise.all(t.map(Zn))}(e),a=await n;return await Promise.all([r,Kn(e,a)]),{Component:Nr(a),ErrorBoundary:a.ErrorBoundary,unstable_clientMiddleware:a.unstable_clientMiddleware,clientAction:a.clientAction,clientLoader:a.clientLoader,handle:a.handle,links:a.links,meta:a.meta,shouldRevalidate:a.shouldRevalidate}}(o,t);f(o);let n=await e,a={...n};if(n.clientLoader){let e=n.clientLoader;a.loader=(t,n)=>e({...t,serverLoader:async()=>(Ir("loader",o),c(n))})}if(n.clientAction){let e=n.clientAction;a.action=(t,n)=>e({...t,serverAction:async()=>(Ir("action",o),d(n))})}return{...a.loader?{loader:a.loader}:{},...a.action?{action:a.action}:{},unstable_middleware:n.unstable_clientMiddleware,hasErrorBoundary:a.hasErrorBoundary,shouldRevalidate:Lr(a,o,r,s),handle:a.handle,Component:a.Component,ErrorBoundary:a.ErrorBoundary}};let g=Rr(e,t,n,r,a,o.id,i,s);return g.length>0&&(m.children=g),m}))}function Lr(e,t,n,r){if(r)return function(e,t,n){let r=!1;return a=>r?t?t(a):a.defaultShouldRevalidate:(r=!0,n.has(e))}(t.id,e.shouldRevalidate,r);if(!n&&t.hasLoader&&!t.hasClientLoader){if(e.shouldRevalidate){let t=e.shouldRevalidate;return e=>t({...e,defaultShouldRevalidate:!1})}return()=>!1}if(n&&e.shouldRevalidate){let t=e.shouldRevalidate;return e=>t({...e,defaultShouldRevalidate:!0})}return e.shouldRevalidate}function Nr(e){if(null!=e.default)return"object"==typeof e.default&&0===Object.keys(e.default).length?void 0:e.default}function $r(e,t,n){return n&&"root"!==e.id||null!=t.clientLoader&&(!0===t.clientLoader.hydrate||!0!==e.hasLoader)}var jr=new Set,Fr=1e3,Br=new Set,zr=7680;function Vr(e){return!0===e}function Wr(e,t,n,r,a){if(Vr(n))return async({path:o,patch:i,signal:s,fetcherKey:l})=>{Br.has(o)||await qr([o],l?window.location.href:o,e,t,n,r,a,i,s)}}function Ur(e,t,n,r,a){xr.useEffect((()=>{if(!Vr(r)||!0===navigator.connection?.saveData)return;function o(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let n="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;Br.has(n)||jr.add(n)}async function i(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(o);let i=Array.from(jr.keys()).filter((e=>!Br.has(e)||(jr.delete(e),!1)));if(0!==i.length)try{await qr(i,null,t,n,r,a,e.basename,e.patchRoutes)}catch(e){console.error("Failed to fetch manifest patches",e)}}let s=function(e){let t;return(...n)=>{window.clearTimeout(t),t=window.setTimeout((()=>e(...n)),100)}}(i);i();let l=new MutationObserver((()=>s()));return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>l.disconnect()}),[r,a,t,n,e])}var Hr="react-router-manifest-version";async function qr(e,t,n,r,a,o,i,s,l){let u,c=`${null!=i?i:"/"}/__manifest`.replace(/\/+/g,"/"),d=new URL(c,window.location.origin);if(e.sort().forEach((e=>d.searchParams.append("p",e))),d.searchParams.set("version",n.version),d.toString().length>zr)return void jr.clear();try{let e=await fetch(d,{signal:l});if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);if(204===e.status&&e.headers.has("X-Remix-Reload-Document")){if(!t)return void console.warn("Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.");if(sessionStorage.getItem(Hr)===n.version)return void console.error("Unable to discover routes due to manifest version mismatch.");throw sessionStorage.setItem(Hr,n.version),window.location.href=t,new Error("Detected manifest version mismatch, reloading...")}if(e.status>=400)throw new Error(await e.text());sessionStorage.removeItem(Hr),u=await e.json()}catch(e){if(l?.aborted)return;throw e}let p=new Set(Object.keys(n.routes)),f=Object.values(u).reduce(((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e)),{});Object.assign(n.routes,f),e.forEach((e=>function(e,t){if(t.size>=Fr){let e=t.values().next().value;t.delete(e)}t.add(e)}(e,Br)));let h=new Set;Object.values(f).forEach((e=>{!e||e.parentId&&f[e.parentId]||h.add(e.parentId)})),h.forEach((e=>s(e||null,Rr(f,r,null,a,o,e))))}function Gr(){let e=Hn.useContext(St);return qn(e,"You must render this element inside a element"),e}function Yr(){let e=Hn.useContext(wt);return qn(e,"You must render this element inside a element"),e}var Kr=Hn.createContext(void 0);function Zr(){let e=Hn.useContext(Kr);return qn(e,"You must render this element inside a element"),e}function Qr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Xr(e,t,n){if(n&&!ra)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function Jr(){let{isSpaMode:e,manifest:t,routeModules:n,criticalCss:r}=Zr(),{errors:a,matches:o}=Yr(),i=Xr(o,a,e),s=Hn.useMemo((()=>function(e,t,n){return tr(e.map((e=>{let r=t[e.route.id],a=n.routes[e.route.id];return[a&&a.css?a.css.map((e=>({rel:"stylesheet",href:e}))):[],r?.links?.()||[]]})).flat(2),er(e,n))}(i,n,t)),[i,n,t]);return Hn.createElement(Hn.Fragment,null,"string"==typeof r?Hn.createElement("style",{dangerouslySetInnerHTML:{__html:r}}):null,"object"==typeof r?Hn.createElement("link",{rel:"stylesheet",href:r.href}):null,s.map((({key:e,link:t})=>Qn(t)?Hn.createElement(ea,{key:e,...t}):Hn.createElement("link",{key:e,...t}))))}function ea({page:e,...t}){let{router:n}=Gr(),r=Hn.useMemo((()=>I(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?Hn.createElement(ta,{page:e,matches:r,...t}):null}function ta({page:e,matches:t,...n}){let r=Rt(),{manifest:a,routeModules:o}=Zr(),{basename:i}=Gr(),{loaderData:s,matches:l}=Yr(),u=Hn.useMemo((()=>Jn(e,t,l,a,r,"data")),[e,t,l,a,r]),c=Hn.useMemo((()=>Jn(e,t,l,a,r,"assets")),[e,t,l,a,r]),d=Hn.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in s&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))})),0===n.size)return[];let c=hr(e,i);return l&&n.size>0&&c.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[c.pathname+c.search]}),[i,s,r,a,u,t,e,o]),p=Hn.useMemo((()=>er(c,a)),[c,a]),f=function(e){let{manifest:t,routeModules:n}=Zr(),[r,a]=Hn.useState([]);return Hn.useEffect((()=>{let r=!1;return async function(e,t,n){let r=await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Gn(r,n);return e.links?e.links():[]}return[]})));return tr(r.flat(1).filter(Xn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||a(e)})),()=>{r=!0}}),[e,t,n]),r}(c);return Hn.createElement(Hn.Fragment,null,d.map((e=>Hn.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>Hn.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),f.map((({key:e,link:t})=>Hn.createElement("link",{key:e,...t}))))}function na(){let{isSpaMode:e,routeModules:t}=Zr(),{errors:n,matches:r,loaderData:a}=Yr(),o=Rt(),i=Xr(r,n,e),s=null;n&&(s=n[i[i.length-1].route.id]);let l=[],u=null,c=[];for(let e=0;e{if(!e)return null;if("tagName"in e){let{tagName:t,...n}=e;if(!function(e){return"string"==typeof e&&/^(meta|link)$/.test(e)}(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return Hn.createElement(r,{key:JSON.stringify(n),...n})}if("title"in e)return Hn.createElement("title",{key:"title"},String(e.title));if("charset"in e&&(e.charSet??(e.charSet=e.charset),delete e.charset),"charSet"in e&&null!=e.charSet)return"string"==typeof e.charSet?Hn.createElement("meta",{key:"charSet",charSet:e.charSet}):null;if("script:ld+json"in e)try{let t=JSON.stringify(e["script:ld+json"]);return Hn.createElement("script",{key:`script:ld+json:${t}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:t}})}catch(e){return null}return Hn.createElement("meta",{key:JSON.stringify(e),...e})})))}Kr.displayName="FrameworkContext";var ra=!1;function aa(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:a,renderMeta:o}=Zr(),{router:i,static:s,staticContext:l}=Gr(),{matches:u}=Yr(),c=Vr(a);o&&(o.didRenderScripts=!0);let d=Xr(u,null,r);Hn.useEffect((()=>{ra=!0}),[]);let p=Hn.useMemo((()=>{let r=l?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",a=s?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${c?"":`import ${JSON.stringify(t.url)}`};\n${d.map(((e,n)=>{let r=`route${n}`,a=t.routes[e.route.id];qn(a,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:i,hydrateFallbackModule:s,module:l}=a,u=[...o?[{module:o,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${c?`window.__reactRouterManifest = ${JSON.stringify(function(e,t){let n=new Set(t.state.matches.map((e=>e.route.id))),r=t.state.location.pathname.split("/").filter(Boolean),a=["/"];for(r.pop();r.length>0;)a.push(`/${r.join("/")}`),r.pop();a.forEach((e=>{let r=I(t.routes,e,t.basename);r&&r.forEach((e=>n.add(e.route.id)))}));let o=[...n].reduce(((t,n)=>Object.assign(t,{[n]:e.routes[n]})),{});return{...e,routes:o}}(t,i),null,2)};`:""}\n window.__reactRouterRouteModules = {${d.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return Hn.createElement(Hn.Fragment,null,Hn.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:ar(r),type:void 0}),Hn.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:ar(a),type:"module",async:!0}))}),[]),f=ra?[]:t.entry.imports.concat(er(d,t,{includeHydrateFallback:!0}));return ra?null:Hn.createElement(Hn.Fragment,null,c?null:Hn.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin}),Hn.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),(h=f,[...new Set(h)]).map((t=>Hn.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin}))),p);var h}function oa(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var ia="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{ia&&(window.__reactRouterVersion="7.4.0")}catch(e){}function sa(e,t){return Ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:b({window:t?.window}),hydrationData:t?.hydrationData||ua(),routes:e,mapRouteProperties:bn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function la(e,t){return Ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:x({window:t?.window}),hydrationData:t?.hydrationData||ua(),routes:e,mapRouteProperties:bn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function ua(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ca(e.errors)}),e}function ca(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new ce(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let a=new t(r.message);a.stack="",n[e]=a}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}function da({basename:e,children:t,window:n}){let r=Nn.useRef();null==r.current&&(r.current=b({window:n,v5Compat:!0}));let a=r.current,[o,i]=Nn.useState({action:a.action,location:a.location}),s=Nn.useCallback((e=>{Nn.startTransition((()=>i(e)))}),[i]);return Nn.useLayoutEffect((()=>a.listen(s)),[a,s]),Nn.createElement(Mn,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}function pa({basename:e,children:t,window:n}){let r=Nn.useRef();null==r.current&&(r.current=x({window:n,v5Compat:!0}));let a=r.current,[o,i]=Nn.useState({action:a.action,location:a.location}),s=Nn.useCallback((e=>{Nn.startTransition((()=>i(e)))}),[i]);return Nn.useLayoutEffect((()=>a.listen(s)),[a,s]),Nn.createElement(Mn,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}function fa({basename:e,children:t,history:n}){let[r,a]=Nn.useState({action:n.action,location:n.location}),o=Nn.useCallback((e=>{Nn.startTransition((()=>a(e)))}),[a]);return Nn.useLayoutEffect((()=>n.listen(o)),[n,o]),Nn.createElement(Mn,{basename:e,children:t,location:r.location,navigationType:r.action,navigator:n})}fa.displayName="unstable_HistoryRouter";var ha=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ma=Nn.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:o,state:i,target:s,to:l,preventScrollReset:u,viewTransition:c,...d},p){let f,{basename:h}=Nn.useContext(Tt),m="string"==typeof l&&ha.test(l),g=!1;if("string"==typeof l&&m&&(f=l,ia))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=K(t.pathname,h);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:g=!0}catch(e){w(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=It(l,{relative:r}),[v,b,x]=function(e,t){let n=Hn.useContext(Kr),[r,a]=Hn.useState(!1),[o,i]=Hn.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,p=Hn.useRef(null);Hn.useEffect((()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{i(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),Hn.useEffect((()=>{if(r){let e=setTimeout((()=>{i(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let f=()=>{a(!0)},h=()=>{a(!1),i(!1)};return n?"intent"!==e?[o,p,{}]:[o,p,{onFocus:Qr(s,f),onBlur:Qr(l,h),onMouseEnter:Qr(u,f),onMouseLeave:Qr(c,h),onTouchStart:Qr(d,f)}]:[!1,p,{}]}(n,d),S=wa(l,{replace:o,state:i,target:s,preventScrollReset:u,relative:r,viewTransition:c}),A=Nn.createElement("a",{...d,...x,href:f||y,onClick:g||a?e:function(t){e&&e(t),t.defaultPrevented||S(t)},ref:oa(p,b),target:s,"data-discover":m||"render"!==t?void 0:"true"});return v&&!m?Nn.createElement(Nn.Fragment,null,A,Nn.createElement(ea,{page:y})):A}));ma.displayName="Link";var ga=Nn.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:o,viewTransition:i,children:s,...l},u){let c=Ut(o,{relative:l.relative}),d=Rt(),p=Nn.useContext(wt),{navigator:f,basename:h}=Nn.useContext(Tt),m=null!=p&&Na(c)&&!0===i,g=f.encodeLocation?f.encodeLocation(c).pathname:c.pathname,y=d.pathname,v=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(y=y.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&h&&(v=K(v,h)||v);const b="/"!==g&&g.endsWith("/")?g.length-1:g.length;let x,S=y===g||!r&&y.startsWith(g)&&"/"===y.charAt(b),w=null!=v&&(v===g||!r&&v.startsWith(g)&&"/"===v.charAt(g.length)),A={isActive:S,isPending:w,isTransitioning:m},_=S?e:void 0;x="function"==typeof n?n(A):[n,S?"active":null,w?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let C="function"==typeof a?a(A):a;return Nn.createElement(ma,{...l,"aria-current":_,className:x,ref:u,style:C,to:o,viewTransition:i},"function"==typeof s?s(A):s)}));ga.displayName="NavLink";var ya=Nn.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:i=$n,action:s,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,...p},f)=>{let h=Ta(),m=Ea(s,{relative:u}),g="get"===i.toLowerCase()?"get":"post",y="string"==typeof s&&ha.test(s);return Nn.createElement("form",{ref:f,method:g,action:m,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||i;h(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:a,state:o,relative:u,preventScrollReset:c,viewTransition:d})},...p,"data-discover":y||"render"!==e?void 0:"true"})}));function va({getKey:e,storageKey:t,...n}){let r=Nn.useContext(Kr),{basename:a}=Nn.useContext(Tt),o=Rt(),i=an();Da({getKey:e,storageKey:t});let s=Nn.useMemo((()=>{if(!r||!e)return null;let t=Ia(o,i,a,e);return t!==o.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return Nn.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${JSON.stringify(t||Oa)}, ${JSON.stringify(s)})`}})}function ba(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xa(e){let t=Nn.useContext(St);return S(t,ba(e)),t}function Sa(e){let t=Nn.useContext(wt);return S(t,ba(e)),t}function wa(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:i}={}){let s=Ft(),l=Rt(),u=Ut(e,{relative:o});return Nn.useCallback((c=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(c,t)){c.preventDefault();let t=void 0!==n?n:C(l)===C(u);s(e,{replace:t,state:r,preventScrollReset:a,relative:o,viewTransition:i})}}),[l,s,u,n,r,t,e,a,o,i])}function Aa(e){w("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=Nn.useRef(Bn(e)),n=Nn.useRef(!1),r=Rt(),a=Nn.useMemo((()=>function(e,t){let n=Bn(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),o=Ft(),i=Nn.useCallback(((e,t)=>{const r=Bn("function"==typeof e?e(a):e);n.current=!0,o("?"+r,t)}),[o,a]);return[a,i]}ya.displayName="Form",va.displayName="ScrollRestoration";var _a=0,Ca=()=>`__${String(++_a)}__`;function Ta(){let{router:e}=xa("useSubmit"),{basename:t}=Nn.useContext(Tt),n=tn("useRouteId");return Nn.useCallback((async(r,a={})=>{let{action:o,method:i,encType:s,formData:l,body:u}=function(e,t){let n,r,a,o,i;if(Fn(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?K(i,t):null,n=e.getAttribute("method")||$n,a=Wn(e.getAttribute("enctype"))||jn,o=new FormData(e)}else if(function(e){return Fn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Fn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a