@perses-dev/prometheus-plugin 0.51.0-rc.0 → 0.51.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/__mf/js/{622.d75cbbb4.js → 622.f8d6828c.js} +1 -1
  2. package/__mf/js/{Prometheus.4ed45674.js → Prometheus.b8130f02.js} +3 -3
  3. package/__mf/js/async/2285.15378f70.js +1 -0
  4. package/__mf/js/async/2675.99cf926f.js +1 -0
  5. package/__mf/js/async/3057.e568f9b6.js +7 -0
  6. package/__mf/js/async/{4489.3361e7bc.js.LICENSE.txt → 3057.e568f9b6.js.LICENSE.txt} +1 -17
  7. package/__mf/js/async/3090.9fb5fe73.js +2 -0
  8. package/__mf/js/async/3980.7cea5715.js +2 -0
  9. package/__mf/js/async/{6333.865a46e0.js.LICENSE.txt → 3980.7cea5715.js.LICENSE.txt} +2 -2
  10. package/__mf/js/async/4062.3ab7f987.js +1 -0
  11. package/__mf/js/async/4421.42e889f6.js +1 -0
  12. package/__mf/js/async/528.d364bb0e.js +1 -0
  13. package/__mf/js/async/{5345.8c2e4b4a.js → 5345.2e531d76.js} +1 -1
  14. package/__mf/js/async/5503.7153681d.js +1 -0
  15. package/__mf/js/async/5769.f14c9663.js +1 -0
  16. package/__mf/js/async/5913.4e5abd09.js +73 -0
  17. package/__mf/js/async/7376.c7eb05b9.js +1 -0
  18. package/__mf/js/async/8980.afe002d4.js +28 -0
  19. package/__mf/js/async/9550.e19763f8.js +38 -0
  20. package/__mf/js/async/__federation_expose_PrometheusDatasource.f9c8cf41.js +1 -0
  21. package/__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js +1 -0
  22. package/__mf/js/async/{__federation_expose_PrometheusLabelNamesVariable.86d0ad5a.js → __federation_expose_PrometheusLabelNamesVariable.873e5f4d.js} +1 -1
  23. package/__mf/js/async/{__federation_expose_PrometheusLabelValuesVariable.b2893484.js → __federation_expose_PrometheusLabelValuesVariable.6696e340.js} +1 -1
  24. package/__mf/js/async/{__federation_expose_PrometheusPromQLVariable.cd16f6e8.js → __federation_expose_PrometheusPromQLVariable.ab45c7cc.js} +1 -1
  25. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.66611c9d.js +1 -0
  26. package/__mf/js/main.855882c0.js +1 -0
  27. package/lib/cjs/explore/PrometheusMetricsFinder/filter/FinderFilters.js +5 -1
  28. package/lib/cjs/model/prometheus-selectors.js +5 -4
  29. package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.js +3 -1
  30. package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +3 -2
  31. package/lib/cjs/plugins/prometheus-time-series-query/get-time-series-data.js +4 -2
  32. package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.d.ts.map +1 -1
  33. package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js +6 -2
  34. package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js.map +1 -1
  35. package/lib/model/prometheus-selectors.d.ts +5 -4
  36. package/lib/model/prometheus-selectors.d.ts.map +1 -1
  37. package/lib/model/prometheus-selectors.js +7 -6
  38. package/lib/model/prometheus-selectors.js.map +1 -1
  39. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.d.ts.map +1 -1
  40. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.js +4 -2
  41. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.js.map +1 -1
  42. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.d.ts.map +1 -1
  43. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +4 -3
  44. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js.map +1 -1
  45. package/lib/plugins/prometheus-time-series-query/get-time-series-data.d.ts.map +1 -1
  46. package/lib/plugins/prometheus-time-series-query/get-time-series-data.js +6 -4
  47. package/lib/plugins/prometheus-time-series-query/get-time-series-data.js.map +1 -1
  48. package/lib/plugins/prometheus-time-series-query/time-series-query-model.d.ts +2 -1
  49. package/lib/plugins/prometheus-time-series-query/time-series-query-model.d.ts.map +1 -1
  50. package/lib/plugins/prometheus-time-series-query/time-series-query-model.js.map +1 -1
  51. package/mf-manifest.json +194 -207
  52. package/mf-stats.json +200 -213
  53. package/package.json +9 -8
  54. package/__mf/js/async/1495.6c8b8071.js +0 -1
  55. package/__mf/js/async/1864.df7c4beb.js +0 -1
  56. package/__mf/js/async/1950.704c331e.js +0 -1
  57. package/__mf/js/async/1996.01084c88.js +0 -2
  58. package/__mf/js/async/2316.fec4907a.js +0 -1
  59. package/__mf/js/async/232.f3523a60.js +0 -1
  60. package/__mf/js/async/2675.c3b73822.js +0 -1
  61. package/__mf/js/async/3436.97c926a4.js +0 -1
  62. package/__mf/js/async/4421.1bcc1637.js +0 -1
  63. package/__mf/js/async/4489.3361e7bc.js +0 -29
  64. package/__mf/js/async/5387.fd6e16d6.js +0 -1
  65. package/__mf/js/async/5654.ecb41aea.js +0 -38
  66. package/__mf/js/async/5913.9d30fd07.js +0 -73
  67. package/__mf/js/async/6333.865a46e0.js +0 -2
  68. package/__mf/js/async/8265.b9e2c31e.js +0 -1
  69. package/__mf/js/async/8610.90592927.js +0 -1
  70. package/__mf/js/async/87.fdc843ac.js +0 -1
  71. package/__mf/js/async/8997.18901f45.js +0 -28
  72. package/__mf/js/async/__federation_expose_PrometheusDatasource.f6f57299.js +0 -1
  73. package/__mf/js/async/__federation_expose_PrometheusExplorer.e5f23291.js +0 -1
  74. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.eb9eefa6.js +0 -1
  75. package/__mf/js/main.a79f60cc.js +0 -1
  76. /package/__mf/js/async/{1996.01084c88.js.LICENSE.txt → 3090.9fb5fe73.js.LICENSE.txt} +0 -0
  77. /package/__mf/js/async/{5913.9d30fd07.js.LICENSE.txt → 5913.4e5abd09.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 3980.7cea5715.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkPrometheus=self.webpackChunkPrometheus||[]).push([["3980"],{33834:function(t,e,s){var i=s(54538),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=i.useState,u=i.useEffect,a=i.useLayoutEffect,o=i.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!r(t,s)}catch(t){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),i=n({inst:{value:s,getSnapshot:e}}),r=i[0].inst,h=i[1];return a(function(){r.value=s,r.getSnapshot=e,l(r)&&h({inst:r})},[t,s,e]),u(function(){return l(r)&&h({inst:r}),t(function(){l(r)&&h({inst:r})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:h},70644:function(t,e,s){t.exports=s(33834)},27474:function(t,e,s){s.r(e),s.d(e,{useIsRestoring:()=>tp,useSuspenseQuery:()=>tx,QueryClientProvider:()=>td,matchQuery:()=>f,useHydrate:()=>tA,IsRestoringProvider:()=>ty,replaceEqualDeep:()=>b,useSuspenseQueries:()=>tD,defaultShouldDehydrateQuery:()=>ti,hashQueryKey:()=>v,notifyManager:()=>k,useInfiniteQuery:()=>tL,defaultContext:()=>to,MutationObserver:()=>te,Hydrate:()=>tI,defaultShouldDehydrateMutation:()=>ts,parseMutationFilterArgs:()=>d,onlineManager:()=>F,Query:()=>L,useQueries:()=>tP,hydrate:()=>tn,parseFilterArgs:()=>c,dehydrate:()=>tr,QueryCache:()=>j,QueryClient:()=>W,CancelledError:()=>A,isCancelledError:()=>I,parseMutationArgs:()=>h,QueryObserver:()=>J,focusManager:()=>P,useQueryErrorResetBoundary:()=>tb,useMutation:()=>tk,useIsFetching:()=>tU,QueryErrorResetBoundary:()=>tg,useQueryClient:()=>tc,useIsMutating:()=>tT,parseQueryArgs:()=>l,InfiniteQueryObserver:()=>tt,isError:()=>Q,useQuery:()=>tF,MutationCache:()=>N,QueriesObserver:()=>$,isServer:()=>r,queryOptions:()=>tj});class i{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let r="undefined"==typeof window||"Deno"in window;function n(){}function u(t){return"number"==typeof t&&t>=0&&t!==1/0}function a(t,e){return t.filter(t=>!e.includes(t))}function o(t,e){return Math.max(t+(e||0)-Date.now(),0)}function l(t,e,s){return S(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function h(t,e,s){return S(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function c(t,e,s){return S(t)?[{...e,queryKey:t},s]:[t||{},e]}function d(t,e,s){return S(t)?[{...e,mutationKey:t},s]:[t||{},e]}function f(t,e){let{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:u,stale:a}=t;if(S(u)){if(i){if(e.queryHash!==y(u,e.options))return!1}else{var o;if(o=e.queryKey,!m(o,u))return!1}}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===r||r===e.state.fetchStatus)&&(!n||!!n(e))}function p(t,e){let{exact:s,fetching:i,predicate:r,mutationKey:n}=t;if(S(n)){if(!e.options.mutationKey)return!1;if(s){if(v(e.options.mutationKey)!==v(n))return!1}else{var u;if(u=e.options.mutationKey,!m(u,n))return!1}}return("boolean"!=typeof i||"loading"===e.state.status===i)&&(!r||!!r(e))}function y(t,e){return((null==e?void 0:e.queryKeyHashFn)||v)(t)}function v(t){return JSON.stringify(t,(t,e)=>C(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function m(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!m(t[s],e[s]))}function b(t,e){if(t===e)return t;let s=O(t)&&O(e);if(s||C(t)&&C(e)){let i=s?t.length:Object.keys(t).length,r=s?e:Object.keys(e),n=r.length,u=s?[]:{},a=0;for(let i=0;i<n;i++){let n=s?i:r[i];u[n]=b(t[n],e[n]),u[n]===t[n]&&a++}return i===n&&a===i?t:u}return e}function g(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function O(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function C(t){if(!R(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!(R(s)&&s.hasOwnProperty("isPrototypeOf"))}function R(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return Array.isArray(t)}function Q(t){return t instanceof Error}function w(t){return new Promise(e=>{setTimeout(e,t)})}function q(t){w(0).then(t)}function E(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?b(t,e):e}let P=new class extends i{constructor(){super(),this.setup=t=>{if(!r&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},M=["online","offline"],F=new class extends i{constructor(){super(),this.setup=t=>{if(!r&&window.addEventListener){let e=()=>t();return M.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{M.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function x(t){return Math.min(1e3*2**t,3e4)}function D(t){return(null!=t?t:"online")!=="online"||F.isOnline()}class A{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function I(t){return t instanceof A}function U(t){let e,s,i,r=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,i=e}),o=()=>!P.isFocused()||"always"!==t.networkMode&&!F.isOnline(),l=i=>{u||(u=!0,null==t.onSuccess||t.onSuccess(i),null==e||e(),s(i))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),i(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,i;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(i=t.retryDelay)?i:x,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);if(r||!p){h(e);return}n++,null==t.onFail||t.onFail(n,e),w(f).then(()=>{if(o())return c()}).then(()=>{r?h(e):d()})})}};return D(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new A(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}let T=console,k=function(){let t=[],e=0,s=t=>{t()},i=t=>{t()},r=i=>{e?t.push(i):q(()=>{s(i)})},n=()=>{let e=t;t=[],e.length&&q(()=>{i(()=>{e.forEach(t=>{s(t)})})})};return{batch:t=>{let s;e++;try{s=t()}finally{--e||n()}return s},batchCalls:t=>(...e)=>{r(()=>{t(...e)})},schedule:r,setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{i=t}}}();class K{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:r?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class L extends K{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||T,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,i=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=E(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(n).catch(n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!o(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,i,r,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(r=this.retryer)||r.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};o(l),null==(s=this.options.behavior)||s.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=l.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(n=l.fetchOptions)?void 0:n.meta});let h=t=>{if(I(t)&&t.silent||this.dispatch({type:"error",error:t}),!I(t)){var e,s,i,r;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(i=(r=this.cache.config).onSettled)||i.call(r,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=U({fn:l.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,i,r;if(void 0===t){h(Error(this.queryHash+" data is undefined"));return}this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(i=(r=this.cache.config).onSettled)||i.call(r,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){this.state=(e=>{var s,i;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:D(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=t.error;if(I(r)&&r.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),k.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class j extends i{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var i;let r=e.queryKey,n=null!=(i=e.queryHash)?i:y(r,e),u=this.get(n);return u||(u=new L({cache:this,logger:t.getLogger(),queryKey:r,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){k.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=c(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>f(s,t))}findAll(t,e){let[s]=c(t,e);return Object.keys(s).length>0?this.queries.filter(t=>f(s,t)):this.queries}notify(t){k.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){k.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){k.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class H extends K{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||T,this.observers=[],this.state=t.state||B(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,i,r,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O="loading"===this.state.status;try{if(!O){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await (()=>{var t;return this.retryer=U({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(i=this.options).onSuccess)?void 0:s.call(i,d,this.state.variables,this.state.context)),await (null==(r=(n=this.mutationCache.config).onSettled)?void 0:r.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!D(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}})(this.state),k.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function B(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class N extends i{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let i=new H({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){k.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>p(t,e))}findAll(t){return this.mutations.filter(e=>p(t,e))}notify(t){k.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return k.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(n)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function G(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,i,r,n,u;let a;let o=null==(e=t.fetchOptions)?void 0:null==(s=e.meta)?void 0:s.refetchPage,l=null==(i=t.fetchOptions)?void 0:null==(r=i.meta)?void 0:r.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}})},b=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),g=(t,e,s,i)=>(y=i?[e,...y]:[...y,e],i?[s,...t]:[...t,s]),O=(e,s,i,r)=>{if(v)return Promise.reject("Cancelled");if(void 0===i&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:i,meta:t.options.meta};return m(n),Promise.resolve(b(n)).then(t=>g(e,i,t,r))};if(f.length){if(c){let e=void 0!==h,s=e?h:_(t.options,f);a=O(f,e,s)}else if(d){let e=void 0!==h,s=e?h:z(t.options,f);a=O(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?O([],e,p[0]):Promise.resolve(g([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(i=>{if(!o||!f[s]||o(f[s],s,f)){let r=e?p[s]:_(t.options,i);return O(i,e,r)}return Promise.resolve(g(i,p[s],f[s]))})}}else a=O([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function _(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class W{constructor(t={}){this.queryCache=t.queryCache||new j,this.mutationCache=t.mutationCache||new N,this.logger=t.logger||T,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=P.subscribe(()=>{P.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=F.subscribe(()=>{F.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=c(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let i=l(t,e,s),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let i=this.queryCache.find(t),r=null==i?void 0:i.state.data,n="function"==typeof e?e(r):e;if(void 0===n)return;let u=l(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return k.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=c(t,e),i=this.queryCache;k.batch(()=>{i.findAll(s).forEach(t=>{i.remove(t)})})}resetQueries(t,e,s){let[i,r]=c(t,e,s),n=this.queryCache,u={type:"active",...i};return k.batch(()=>(n.findAll(i).forEach(t=>{t.reset()}),this.refetchQueries(u,r)))}cancelQueries(t,e,s){let[i,r={}]=c(t,e,s);return void 0===r.revert&&(r.revert=!0),Promise.all(k.batch(()=>this.queryCache.findAll(i).map(t=>t.cancel(r)))).then(n).catch(n)}invalidateQueries(t,e,s){let[i,r]=c(t,e,s);return k.batch(()=>{var t,e;if(this.queryCache.findAll(i).forEach(t=>{t.invalidate()}),"none"===i.refetchType)return Promise.resolve();let s={...i,type:null!=(t=null!=(e=i.refetchType)?e:i.type)?t:"active"};return this.refetchQueries(s,r)})}refetchQueries(t,e,s){let[i,r]=c(t,e,s),u=Promise.all(k.batch(()=>this.queryCache.findAll(i).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...r,cancelRefetch:null==(e=null==r?void 0:r.cancelRefetch)||e,meta:{refetchPage:i.refetchPage}})}))).then(n);return null!=r&&r.throwOnError||(u=u.catch(n)),u}fetchQuery(t,e,s){let i=l(t,e,s),r=this.defaultQueryOptions(i);void 0===r.retry&&(r.retry=!1);let n=this.queryCache.build(this,r);return n.isStaleByTime(r.staleTime)?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(n).catch(n)}fetchInfiniteQuery(t,e,s){let i=l(t,e,s);return i.behavior=G(),this.fetchQuery(i)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(n).catch(n)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>v(t)===v(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>m(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>v(t)===v(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>m(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=y(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class J extends i{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),V(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return X(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return X(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),g(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let r=this.hasListeners();r&&Y(this.currentQuery,i,this.options,s)&&this.executeFetch(),this.updateResult(e),r&&(this.currentQuery!==i||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();r&&(this.currentQuery!==i||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,i;let r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return e=this,s=n,(i=t).keepPreviousData||(void 0!==i.placeholderData?!s.isPlaceholderData:g(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(n)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),r||this.currentResult.isStale||!u(this.options.staleTime))return;let t=o(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!r&&!1!==this.options.enabled&&u(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||P.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s;let i=this.currentQuery,r=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==i,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&V(t,e),u=s&&Y(t,i,e,r);(n||u)&&(y=D(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data){if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=E(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=E(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:Z(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,g(s,e))return;this.currentResult=s;let i={cache:!0};(null==t?void 0:t.listeners)!==!1&&(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let i=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&i.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&i.has(t))})()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||I(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){k.batch(()=>{var e,s,i,r,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(i=(r=this.options).onSettled)||i.call(r,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function V(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&X(t,e,e.refetchOnMount)}function X(t,e,s){if(!1!==e.enabled){let i="function"==typeof s?s(t):s;return"always"===i||!1!==i&&Z(t,e)}return!1}function Y(t,e,s,i){return!1!==s.enabled&&(t!==e||!1===i.enabled)&&(!s.suspense||"error"!==t.state.status)&&Z(t,s)}function Z(t,e){return t.isStaleByTime(e.staleTime)}class $ extends i{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,k.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let i=s.map(t=>t.observer),r=Object.fromEntries(i.map(t=>[t.options.queryHash,t])),n=i.map(t=>t.getCurrentResult()),u=i.some((e,s)=>e!==t[s]);if(t.length!==i.length||u)this.observers=i,this.observersMap=r,this.result=n,this.hasListeners()&&(a(t,i).forEach(t=>{t.destroy()}),a(i,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify())})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),i=t.map(t=>this.client.defaultQueryOptions(t)),r=i.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(r.map(t=>t.defaultedQueryOptions.queryHash)),u=i.filter(t=>!n.has(t.queryHash)),a=new Set(r.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new J(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return r.concat(h).sort((t,e)=>i.indexOf(t.defaultedQueryOptions)-i.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);-1!==s&&(this.result=function(t,e,s){let i=t.slice(0);return i[e]=s,i}(this.result,s,e),this.notify())}notify(){k.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tt extends J{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:G()},e)}getOptimisticResult(t){return t.behavior=G(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,i,r,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)?void 0:null==(i=s.fetchMore)?void 0:i.direction)==="forward",f=h&&(null==(r=o.fetchMeta)?void 0:null==(n=r.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=_(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class te extends i{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),g(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:B(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){k.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,i,r,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(r=this.mutateOptions).onSettled)||i.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function ts(t){return t.state.isPaused}function ti(t){return"success"===t.state.status}function tr(t,e={}){let s=[],i=[];if(!1!==e.dehydrateMutations){let i=e.shouldDehydrateMutation||ts;t.getMutationCache().getAll().forEach(t=>{if(i(t))s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||ti;t.getQueryCache().getAll().forEach(t=>{if(s(t))i.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:i}}function tn(t,e,s){if("object"!=typeof e||null===e)return;let i=t.getMutationCache(),r=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var r;i.build(t,{...null==s?void 0:null==(r=s.defaultOptions)?void 0:r.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:i,queryHash:n})=>{var u;let a=r.get(n);if(a){if(a.state.dataUpdatedAt<i.dataUpdatedAt){let{fetchStatus:t,...e}=i;a.setState(e)}return}r.build(t,{...null==s?void 0:null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...i,fetchStatus:"idle"})})}var tu=s(54538);let ta=s(70644).useSyncExternalStore,to=tu.createContext(void 0),tl=tu.createContext(!1);function th(t,e){return t||(e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=to),window.ReactQueryClientContext):to)}let tc=({context:t}={})=>{let e=tu.useContext(th(t,tu.useContext(tl)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},td=({client:t,children:e,context:s,contextSharing:i=!1})=>{tu.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let r=th(s,i);return tu.createElement(tl.Provider,{value:!s&&i},tu.createElement(r.Provider,{value:t},e))},tf=tu.createContext(!1),tp=()=>tu.useContext(tf),ty=tf.Provider;function tv(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tm=tu.createContext(tv()),tb=()=>tu.useContext(tm),tg=({children:t})=>{let[e]=tu.useState(()=>tv());return tu.createElement(tm.Provider,{value:e},"function"==typeof t?t(e):t)};function tO(t,e){return"function"==typeof t?t(...e):!!t}let tC=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tR=t=>{tu.useEffect(()=>{t.clearReset()},[t])},tS=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&tO(s,[t.error,i]),tQ=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},tw=(t,e)=>t.isLoading&&t.isFetching&&!e,tq=(t,e,s)=>(null==t?void 0:t.suspense)&&tw(e,s),tE=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tP({queries:t,context:e}){let s=tc({context:e}),i=tp(),r=tb(),n=tu.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=i?"isRestoring":"optimistic",e}),[t,s,i]);n.forEach(t=>{tQ(t),tC(t,r)}),tR(r);let[u]=tu.useState(()=>new $(s,n)),a=u.getOptimisticResult(n);ta(tu.useCallback(t=>i?()=>void 0:u.subscribe(k.batchCalls(t)),[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),tu.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tq(n[e],t,i))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a){if(tq(s,t,i))return tE(s,a,r);tw(t,i)&&tE(s,a,r)}return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,i;return tS({result:t,errorResetBoundary:r,useErrorBoundary:null!=(s=null==(i=n[e])?void 0:i.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tM(t,e){let s=tc({context:t.context}),i=tp(),r=tb(),n=s.defaultQueryOptions(t);n._optimisticResults=i?"isRestoring":"optimistic",n.onError&&(n.onError=k.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=k.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=k.batchCalls(n.onSettled)),tQ(n),tC(n,r),tR(r);let[u]=tu.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(ta(tu.useCallback(t=>{let e=i?()=>void 0:u.subscribe(k.batchCalls(t));return u.updateResult(),e},[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),tu.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tq(n,a,i))throw tE(n,u,r);if(tS({result:a,errorResetBoundary:r,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tF(t,e,s){return tM(l(t,e,s),J)}function tx(t){return tM({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"},J)}function tD({queries:t,context:e}){return tP({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tA(t,e={}){let s=tc({context:e.context}),i=tu.useRef(e);i.current=e,tu.useMemo(()=>{t&&tn(s,t,i.current)},[s,t])}let tI=({children:t,options:e,state:s})=>(tA(s,e),t);function tU(t,e,s){let[i,r={}]=c(t,e,s),n=tc({context:r.context}),u=n.getQueryCache();return ta(tu.useCallback(t=>u.subscribe(k.batchCalls(t)),[u]),()=>n.isFetching(i),()=>n.isFetching(i))}function tT(t,e,s){let[i,r={}]=d(t,e,s),n=tc({context:r.context}),u=n.getMutationCache();return ta(tu.useCallback(t=>u.subscribe(k.batchCalls(t)),[u]),()=>n.isMutating(i),()=>n.isMutating(i))}function tk(t,e,s){let i=h(t,e,s),r=tc({context:i.context}),[n]=tu.useState(()=>new te(r,i));tu.useEffect(()=>{n.setOptions(i)},[n,i]);let u=ta(tu.useCallback(t=>n.subscribe(k.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=tu.useCallback((t,e)=>{n.mutate(t,e).catch(tK)},[n]);if(u.error&&tO(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tK(){}function tL(t,e,s){return tM(l(t,e,s),tt)}function tj(t){return t}}}]);
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license React
3
- * react-jsx-runtime.production.min.js
3
+ * use-sync-external-store-shim.production.js
4
4
  *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkPrometheus=self.webpackChunkPrometheus||[]).push([["4062"],{56050:function(){}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkPrometheus=self.webpackChunkPrometheus||[]).push([["4421"],{76439:function(e,t,r){"use strict";r.d(t,{Z:()=>p});var o=r(54538),n=r(96858),i=r(49267),a=r(24105);let c={...o}.useSyncExternalStore;function l(e={}){let{themeId:t}=e;return function(e,r={}){let l=(0,a.Z)();l&&t&&(l=l[t]||l);let p="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:u=!1,matchMedia:f=p?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:y=!1}=(0,i.Z)({name:"MuiUseMediaQuery",props:r,theme:l}),d="function"==typeof e?e(l):e;return(void 0!==c?function(e,t,r,n,i){let a=o.useCallback(()=>t,[t]),l=o.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return a},[a,e,n,i,r]),[p,u]=o.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,r,e]);return c(u,p,l)}:function(e,t,r,i,a){let[c,l]=o.useState(()=>a&&r?r(e).matches:i?i(e).matches:t);return(0,n.Z)(()=>{if(!r)return;let t=r(e),o=()=>{l(t.matches)};return o(),t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}},[e,r]),c})(d=d.replace(/^@media( ?)/m,""),u,f,s,y)}}l();let p=l({themeId:r(92994).Z})},66694:function(e,t,r){"use strict";r.d(t,{Q:()=>n,U:()=>o});let o="1h",n="0s"},73223:function(e,t,r){"use strict";r.r(t),r.d(t,{useExplorerQueryParams:()=>I,ExplorerManagerProvider:()=>b,useExplorerManagerContext:()=>v,ExploreManager:()=>x,ViewExplore:()=>P,ExploreToolbar:()=>m,explorerQueryConfig:()=>E});var o=r(24246),n=r(36372),i=r(71141),a=r(66694),c=r(20370),l=r(76006),p=r(54538),u=r(76439),f=r(25283),s=r(51781),y=r(49408),d=r(84954),h=r(94776);let m=e=>{let{exploreTitleComponent:t}=e,r=(0,u.Z)((0,h.Z)().breakpoints.up("lg"));return(0,o.jsx)(f.Z,{"data-testid":"explore-toolbar",children:(0,o.jsxs)(n.Z,{sx:{display:"flex",width:"100%"},children:[t,(0,o.jsx)(f.Z,{direction:"row",spacing:1,ml:"auto",flexWrap:r?"nowrap":"wrap-reverse",justifyContent:"end",children:(0,o.jsx)(i.TimeRangeControls,{})})]})})},g=(0,p.createContext)(void 0);function b({children:e,store:t}){let[r,n]=(0,p.useState)({}),i=(0,p.useState)({explorer:void 0,data:{}}),[a,c]=t||i,{explorer:l,data:u}=a;return(0,o.jsx)(g.Provider,{value:{explorer:l,data:u,setExplorer:function(e){l&&(r[l]={data:u},n(r));let t=r[e]??{data:{}};c({explorer:e,data:t.data})},setData:function(e){c({explorer:l,data:e})}},children:e})}function v(){let e=(0,p.useContext)(g);if(void 0===e)throw Error("No ExplorerManagerContext found. Did you forget a Provider?");return e}function x(e){let{exploreTitleComponent:t}=e,{explorer:r,setExplorer:n}=v(),a=(0,i.useListPluginMetadata)(["Explore"]),c=(0,u.Z)("(max-width: 768px)"),l=(0,p.useMemo)(()=>Object.fromEntries(a.data?.map(e=>[`${e.module.name}-${e.spec.name}`,e])??[]),[a.data]);(0,p.useEffect)(()=>{let e=Object.keys(l);!r&&e?.[0]&&n(e[0])},[l,r,n]);let h=r?l[r]:void 0;return r?(0,o.jsxs)(f.Z,{sx:{width:"100%"},px:2,pb:2,pt:1.5,gap:3,children:[(0,o.jsx)(m,{exploreTitleComponent:t}),(0,o.jsxs)(f.Z,{direction:c?"column":"row",gap:2,sx:{width:"100%"},children:[(0,o.jsx)(s.Z,{orientation:c?"horizontal":"vertical",value:r,onChange:(e,t)=>n(t),variant:c?"fullWidth":"scrollable",sx:{borderRight:+!c,borderBottom:+!!c,borderColor:"divider",minWidth:"100px"},children:a.data?.map(e=>o.jsx(y.Z,{value:`${e.module.name}-${e.spec.name}`,label:e.spec.display.name},`${e.module.name}-${e.spec.name}`))}),(0,o.jsx)(d.Z,{sx:{padding:"10px",width:"100%"},children:h&&(0,o.jsx)(i.PluginLoaderComponent,{plugin:{name:h.spec.name,moduleName:h.module.name}},`${h.module.name}-${h.spec.name}`)})]})]}):(0,o.jsx)("div",{children:"No explorer plugin available"})}var S=r(51564);let w={explorer:(0,S.withDefault)(S.StringParam,void 0),data:(0,S.withDefault)(S.JsonParam,{})};function j({children:e}){let[t,r]=(0,S.useQueryParams)(w);return(0,o.jsx)(b,{store:[t,r],children:e})}function A(e){let{exploreTitleComponent:t}=e,r=(0,c.useChartsTheme)();return(0,o.jsx)(n.Z,{sx:{flexGrow:1,overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column"},children:(0,o.jsx)(c.ChartsProvider,{chartsTheme:r,enablePinning:!1,children:(0,o.jsx)(j,{children:(0,o.jsx)(x,{exploreTitleComponent:t})})})})}function P(e){let{datasourceApi:t,externalVariableDefinitions:r,sx:p,exploreTitleComponent:u,...f}=e,s=(0,i.useInitialTimeRange)(a.U),y=(0,i.useInitialRefreshInterval)(a.Q);return(0,o.jsx)(l.DatasourceStoreProvider,{datasourceApi:t,children:(0,o.jsx)(i.TimeRangeProviderWithQueryParams,{initialTimeRange:s,initialRefreshInterval:y,children:(0,o.jsx)(l.VariableProvider,{externalVariableDefinitions:r,children:(0,o.jsx)(n.Z,{sx:(0,c.combineSx)({display:"flex",width:"100%",height:"100%",position:"relative",overflow:"hidden"},p),...f,children:(0,o.jsx)(c.ErrorBoundary,{FallbackComponent:c.ErrorAlert,children:(0,o.jsx)(A,{exploreTitleComponent:u})})})})})})}var O=r(8139);let E={refresh:i.TimeRangeParam,start:i.TimeRangeParam,end:i.TimeRangeParam,explorer:S.StringParam,data:S.JsonParam};function I(e){let[t]=(0,S.useQueryParams)(E,{updateType:"replaceIn"});return(0,O.stringify)((0,S.encodeQueryParams)(E,{...t,...e}))}},6088:function(e,t,r){"use strict";var o=r(20132),n=r(52453),i=r(31720),a=r(68273);e.exports=a||o.call(i,n)},52453:function(e){"use strict";e.exports=Function.prototype.apply},31720:function(e){"use strict";e.exports=Function.prototype.call},11519:function(e,t,r){"use strict";var o=r(20132),n=r(31805),i=r(31720),a=r(6088);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return a(o,i,e)}},68273:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},75343:function(e,t,r){"use strict";var o=r(68750),n=r(11519),i=n([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n([r]):r}},97755:function(e,t,r){"use strict";var o,n=r(11519),i=r(77502);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;e.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(e){return l(null==e?e:c(e))}},51544:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},73573:function(e){"use strict";e.exports=EvalError},85513:function(e){"use strict";e.exports=Error},77679:function(e){"use strict";e.exports=RangeError},39269:function(e){"use strict";e.exports=ReferenceError},74329:function(e){"use strict";e.exports=SyntaxError},31805:function(e){"use strict";e.exports=TypeError},99491:function(e){"use strict";e.exports=URIError},19767:function(e){"use strict";e.exports=Object},68458:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,o=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r},i=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};e.exports=function(e){var a,c=this;if("function"!=typeof c||"[object Function]"!==t.apply(c))throw TypeError("Function.prototype.bind called on incompatible "+c);for(var l=n(arguments,1),p=r(0,c.length-l.length),u=[],f=0;f<p;f++)u[f]="$"+f;if(a=Function("binder","return function ("+i(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=c.apply(this,o(l,arguments));return Object(t)===t?t:this}return c.apply(e,o(l,arguments))}),c.prototype){var s=function(){};s.prototype=c.prototype,a.prototype=new s,s.prototype=null}return a}},20132:function(e,t,r){"use strict";var o=r(68458);e.exports=Function.prototype.bind||o},68750:function(e,t,r){"use strict";var o,n=r(19767),i=r(85513),a=r(73573),c=r(77679),l=r(39269),p=r(74329),u=r(31805),f=r(99491),s=r(36354),y=r(72244),d=r(24268),h=r(55139),m=r(89544),g=r(56298),b=r(87558),v=Function,x=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(77502),w=r(51544),j=function(){throw new u},A=S?function(){try{return arguments.callee,j}catch(e){try{return S(arguments,"callee").get}catch(e){return j}}}():j,P=r(40679)(),O=r(87778),E=r(77819),I=r(84578),R=r(52453),D=r(31720),M={},k="undefined"!=typeof Uint8Array&&O?O(Uint8Array):o,F={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":P&&O?O([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":M,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&O?O(O([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&O?O(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&O?O(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&O?O(""[Symbol.iterator]()):o,"%Symbol%":P?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":A,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":R,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":E,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(O)try{null.error}catch(e){var T=O(O(e));F["%Error.prototype%"]=T}var N=function e(t){var r;if("%AsyncFunction%"===t)r=x("async function () {}");else if("%GeneratorFunction%"===t)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=x("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&O&&(r=O(n.prototype))}return F[t]=r,r},_={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=r(20132),U=r(71712),B=C.call(D,Array.prototype.concat),W=C.call(R,Array.prototype.splice),L=C.call(D,String.prototype.replace),$=C.call(D,String.prototype.slice),K=C.call(D,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,G=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return L(e,Q,function(e,t,r,n){o[o.length]=r?L(n,Z,"$1"):t||e}),o},H=function(e,t){var r,o=e;if(U(_,o)&&(o="%"+(r=_[o])[0]+"%"),U(F,o)){var n=F[o];if(n===M&&(n=N(o)),void 0===n&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(e),o=r.length>0?r[0]:"",n=H("%"+o+"%",t),i=n.name,a=n.value,c=!1,l=n.alias;l&&(o=l[0],W(r,B([0,1],l)));for(var f=1,s=!0;f<r.length;f+=1){var y=r[f],d=$(y,0,1),h=$(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&s||(c=!0),o+="."+y,U(F,i="%"+o+"%"))a=F[i];else if(null!=a){if(!(y in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var m=S(a,y);a=(s=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else s=U(a,y),a=a[y];s&&!c&&(F[i]=a)}}return a}},77819:function(e,t,r){"use strict";var o=r(19767);e.exports=o.getPrototypeOf||null},84578:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},87778:function(e,t,r){"use strict";var o=r(84578),n=r(77819),i=r(97755);e.exports=o?function(e){return o(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:i?function(e){return i(e)}:null},76158:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},77502:function(e,t,r){"use strict";var o=r(76158);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},40679:function(e,t,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(8186);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},8186:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},71712:function(e,t,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(20132);e.exports=i.call(o,n)},36354:function(e){"use strict";e.exports=Math.abs},72244:function(e){"use strict";e.exports=Math.floor},77890:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},24268:function(e){"use strict";e.exports=Math.max},55139:function(e){"use strict";e.exports=Math.min},89544:function(e){"use strict";e.exports=Math.pow},56298:function(e){"use strict";e.exports=Math.round},87558:function(e,t,r){"use strict";var o=r(77890);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},86524:function(e,t,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&l&&"function"==typeof l.get?l.get:null,u=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,x=String.prototype.toUpperCase,S=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,A=Array.prototype.join,P=Array.prototype.slice,O=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D?"object":"symbol")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-O(-e):O(e);if(o!==e){var n=String(o),i=b.call(t,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var N=r(56050),_=N.custom,C=Q(_)?_:null,U={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(e,t,r){var o=U[r.quoteStyle||t];return o+e+o}function L(e){return!M||!("object"==typeof e&&(M in e||void 0!==e[M]))}function $(e){return"[object Array]"===H(e)&&L(e)}function K(e){return"[object RegExp]"===H(e)&&L(e)}function Q(e){if(D)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,n,c){var l,h,x,w,O,I=o||{};if(G(I,"quoteStyle")&&!G(U,I.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(G(I,"maxStringLength")&&("number"==typeof I.maxStringLength?I.maxStringLength<0&&I.maxStringLength!==1/0:null!==I.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _=!G(I,"customInspect")||I.customInspect;if("boolean"!=typeof _&&"symbol"!==_)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(I,"indent")&&null!==I.indent&&" "!==I.indent&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(I,"numericSeparator")&&"boolean"!=typeof I.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Z=I.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var o=t.length-r.maxStringLength;return e(b.call(t,0,r.maxStringLength),r)+("... "+o)+" more character"+(o>1?"s":"")}var n=B[r.quoteStyle||"single"];return n.lastIndex=0,W(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,z),"single",r)}(t,I);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return Z?T(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return Z?T(t,er):er}var eo=void 0===I.depth?5:I.depth;if(void 0===n&&(n=0),n>=eo&&eo>0&&"object"==typeof t)return $(t)?"[Array]":"[Object]";var en=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(I,n);if(void 0===c)c=[];else if(V(c,t)>=0)return"[Circular]";function ei(t,r,o){if(r&&(c=P.call(c)).push(r),o){var i={depth:I.depth};return G(I,"quoteStyle")&&(i.quoteStyle=I.quoteStyle),e(t,i,n+1,c)}return e(t,I,n+1,c)}if("function"==typeof t&&!K(t)){var ea=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ec=ee(t,ei);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(ec.length>0?" { "+A.call(ec,", ")+" }":"")}if(Q(t)){var el=D?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||D?el:q(el)}if((ep=t)&&"object"==typeof ep&&("undefined"!=typeof HTMLElement&&ep instanceof HTMLElement||"string"==typeof ep.nodeName&&"function"==typeof ep.getAttribute)){for(var ep,eu,ef="<"+S.call(String(t.nodeName)),es=t.attributes||[],ey=0;ey<es.length;ey++){ef+=" "+es[ey].name+"="+W((eu=es[ey].value,v.call(String(eu),/"/g,"&quot;")),"double",I)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+S.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var ed=ee(t,ei);return en&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ed)?"["+Y(ed,en)+"]":"[ "+A.call(ed,", ")+" ]"}if("[object Error]"===H(l=t)&&L(l)){var eh=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(eh,", ")+" }":"{ ["+String(t)+"] "+A.call(j.call("[cause]: "+ei(t.cause),eh),", ")+" }"}if("object"==typeof t&&_){if(C&&"function"==typeof t[C]&&N)return N(t,{depth:eo-n});if("symbol"!==_&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var em=[];return a&&a.call(t,function(e,r){em.push(ei(r,t,!0)+" => "+ei(e,t))}),X("Map",i.call(t),em,en)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return u&&u.call(t,function(e){eg.push(ei(e,t))}),X("Set",p.call(t),eg,en)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if("[object Number]"===H(h=t)&&L(h))return q(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return q(ei(E.call(t)));if("[object Boolean]"===H(x=t)&&L(x))return q(d.call(t));if("[object String]"===H(w=t)&&L(w))return q(ei(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===H(O=t)&&L(O))&&!K(t)){var eb=ee(t,ei),ev=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,ex=t instanceof Object?"":"null prototype",eS=!ev&&M&&Object(t)===t&&M in t?b.call(H(t),8,-1):ex?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eS||ex?"["+A.call(j.call([],eS||[],ex||[]),": ")+"] ":"");return 0===eb.length?ew+"{}":en?ew+"{"+Y(eb,en)+"}":ew+"{ "+A.call(eb,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return Z.call(e,t)}function H(e){return h.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return -1}function z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function q(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,r,o){return e+" ("+t+") {"+(o?Y(r,o):A.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,o=$(e),n=[];if(o){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=G(e,i)?t(e[i],e):""}var a="function"==typeof I?I(e):[];if(D){r={};for(var c=0;c<a.length;c++)r["$"+a[c]]=a[c]}for(var l in e){if(G(e,l)&&(!o||String(Number(l))!==l||!(l<e.length)))!(D&&r["$"+l]instanceof Symbol)&&(w.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e)))}if("function"==typeof I)for(var p=0;p<a.length;p++)k.call(e,a[p])&&n.push("["+t(a[p])+"]: "+t(e[a[p]],e));return n}},69771:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},8139:function(e,t,r){"use strict";var o=r(56360),n=r(19520),i=r(69771);e.exports={formats:i,parse:n,stringify:o}},19520:function(e,t,r){"use strict";var o=r(54330),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,p),f=-1,s=t.charset;if(t.charsetSentinel)for(y=0;y<u.length;++y)0===u[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[y]?s="utf-8":"utf8=%26%2310003%3B"===u[y]&&(s="iso-8859-1"),f=y,y=u.length);for(y=0;y<u.length;++y)if(y!==f){var y,d,h,m=u[y],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(d=t.decoder(m,a.decoder,s,"key"),h=t.strictNullHandling?null:""):(d=t.decoder(m.slice(0,b),a.decoder,s,"key"),h=o.maybeMap(c(m.slice(b+1),t),function(e){return t.decoder(e,a.decoder,s,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===s&&(h=h.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(h=i(h)?[h]:h);var v=n.call(r,d);v&&"combine"===t.duplicates?r[d]=o.combine(r[d],h):v&&"last"!==t.duplicates||(r[d]=h)}return r},p=function(e,t,r,o){for(var n=o?t:c(t,r),i=e.length-1;i>=0;--i){var a,l=e[i];if("[]"===l&&r.parseArrays)a=r.allowEmptyArrays&&(""===n||r.strictNullHandling&&null===n)?[]:[].concat(n);else{a=r.plainObjects?Object.create(null):{};var p="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,u=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&l!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=n:"__proto__"!==u&&(a[u]=n):a={0:n}}n=a}return n},u=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=c?i.slice(0,c.index):i,u=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var f=0;r.depth>0&&null!==(c=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(c[1])}if(c){if(!0===r.strictDepth)throw RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(c.index)+"]")}return p(u,t,r,o)}},f=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?l(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),c=0;c<a.length;++c){var p=a[c],s=u(p,n[p],r,"string"==typeof e);i=o.merge(i,s,r)}return!0===r.allowSparse?i:o.compact(i)}},56360:function(e,t,r){"use strict";var o=r(95337),n=r(54330),i=r(69771),a=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,p=Array.prototype.push,u=function(e,t){p.apply(e,l(t)?t:[t])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},h=function e(t,r,i,a,c,p,f,s,h,m,g,b,v,x,S,w,j,A){for(var P,O,E=t,I=A,R=0,D=!1;void 0!==(I=I.get(d))&&!D;){var M=I.get(t);if(R+=1,void 0!==M){if(M===R)throw RangeError("Cyclic object value");D=!0}void 0===I.get(d)&&(R=0)}if("function"==typeof m?E=m(r,E):E instanceof Date?E=v(E):"comma"===i&&l(E)&&(E=n.maybeMap(E,function(e){return e instanceof Date?v(e):e})),null===E){if(p)return h&&!w?h(r,y.encoder,j,"key",x):r;E=""}if("string"==typeof(P=E)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||n.isBuffer(E))return h?[S(w?r:h(r,y.encoder,j,"key",x))+"="+S(h(E,y.encoder,j,"value",x))]:[S(r)+"="+S(String(E))];var k=[];if(void 0===E)return k;if("comma"===i&&l(E))w&&h&&(E=n.maybeMap(E,h)),O=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(m))O=m;else{var F=Object.keys(E);O=g?F.sort(g):F}var T=s?r.replace(/\./g,"%2E"):r,N=a&&l(E)&&1===E.length?T+"[]":T;if(c&&l(E)&&0===E.length)return N+"[]";for(var _=0;_<O.length;++_){var C=O[_],U="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!f||null!==U){var B=b&&s?C.replace(/\./g,"%2E"):C,W=l(E)?"function"==typeof i?i(N,B):N:N+(b?"."+B:"["+B+"]");A.set(t,R);var L=o();L.set(d,A),u(k,e(U,W,i,a,c,p,f,s,"comma"===i&&w&&l(E)?null:h,m,g,b,v,x,S,w,j,L))}}return k},m=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");o=e.format}var n=i.formatters[o],p=y.filter;if(("function"==typeof e.filter||l(e.filter))&&(p=e.filter),t=e.arrayFormat in c?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};e.exports=function(e,t){var r,n,i=e,a=m(t);"function"==typeof a.filter?i=(0,a.filter)("",i):l(a.filter)&&(r=a.filter);var p=[];if("object"!=typeof i||null===i)return"";var f=c[a.arrayFormat],s="comma"===f&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var y=o(),d=0;d<r.length;++d){var g=r[d];(!a.skipNulls||null!==i[g])&&u(p,h(i[g],g,f,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,y))}var b=p.join(a.delimiter),v=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},54330:function(e,t,r){"use strict";var o=r(69771),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),l=0;l<a.length;++l){var p=a[l],u=i[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:p}),r.push(u))}return c(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",p=0;p<c.length;p+=1024){for(var u=c.length>=1024?c.slice(p,p+1024):c,f=[],s=0;s<u.length;++s){var y=u.charCodeAt(s);if(45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===o.RFC1738&&(40===y||41===y)){f[f.length]=u.charAt(s);continue}if(y<128){f[f.length]=a[y];continue}if(y<2048){f[f.length]=a[192|y>>6]+a[128|63&y];continue}if(y<55296||y>=57344){f[f.length]=a[224|y>>12]+a[128|y>>6&63]+a[128|63&y];continue}s+=1,y=65536+((1023&y)<<10|1023&u.charCodeAt(s)),f[f.length]=a[240|y>>18]+a[128|y>>12&63]+a[128|y>>6&63]+a[128|63&y]}l+=f.join("")}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=l(t,o)),i(t)&&i(r))?(r.forEach(function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},98842:function(e,t,r){"use strict";var o=r(86524),n=r(31805),i=function(e,t,r){for(var o,n=e;null!=(o=n.next);n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},a=function(e,t){if(e){var r=i(e,t);return r&&r.value}},c=function(e,t,r){var o=i(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){var r=e&&e.next,o=l(e,t);return o&&r&&r===o&&(e=void 0),!!o},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),c(e,t,r)}};return t}},4249:function(e,t,r){"use strict";var o=r(68750),n=r(75343),i=r(86524),a=r(31805),c=o("%Map%",!0),l=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),f=n("Map.prototype.delete",!0),s=n("Map.prototype.size",!0);e.exports=!!c&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=f(e,t);return 0===s(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new c),p(e,t,r)}};return t}},16725:function(e,t,r){"use strict";var o=r(68750),n=r(75343),i=r(86524),a=r(4249),c=r(31805),l=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),s=n("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new c("Side channel does not contain "+i(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?p(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),u(e,r,o)):a&&(t||(t=a()),t.set(r,o))}};return r}:a},95337:function(e,t,r){"use strict";var o=r(31805),n=r(86524),i=r(98842),a=r(4249),c=r(16725)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}}}]);