@databrainhq/plugin 0.6.1 → 0.6.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.
package/dist/index.es.js CHANGED
@@ -2512,70 +2512,70 @@ function useQuery(arg1, arg2, arg3) {
2512
2512
  var parsedOptions = parseQueryArgs(arg1, arg2, arg3);
2513
2513
  return useBaseQuery(parsedOptions, QueryObserver);
2514
2514
  }
2515
- const container$f = "_container_gr5gv_1";
2516
- const fixed = "_fixed_gr5gv_1";
2517
- const absolute = "_absolute_gr5gv_1";
2518
- const flex = "_flex_gr5gv_1";
2519
- const table$4 = "_table_gr5gv_1";
2520
- const grid = "_grid_gr5gv_1";
2521
- const hidden = "_hidden_gr5gv_1";
2522
- const transform = "_transform_gr5gv_1";
2523
- const border = "_border_gr5gv_1";
2524
- const shadow = "_shadow_gr5gv_1";
2525
- const filter$1 = "_filter_gr5gv_347";
2526
- const floatingFilterButton = "_floatingFilterButton_gr5gv_355";
2527
- const floatingFilterButtonIcon = "_floatingFilterButtonIcon_gr5gv_363";
2528
- const floatingButton = "_floatingButton_gr5gv_371";
2529
- const floatingButtonIcon = "_floatingButtonIcon_gr5gv_379";
2530
- const staticContainer = "_staticContainer_gr5gv_387";
2531
- const floatingContainer = "_floatingContainer_gr5gv_395";
2515
+ const container$f = "_container_1hfou_1";
2516
+ const fixed = "_fixed_1hfou_1";
2517
+ const absolute = "_absolute_1hfou_1";
2518
+ const flex = "_flex_1hfou_1";
2519
+ const table$4 = "_table_1hfou_1";
2520
+ const grid = "_grid_1hfou_1";
2521
+ const hidden = "_hidden_1hfou_1";
2522
+ const transform = "_transform_1hfou_1";
2523
+ const border = "_border_1hfou_1";
2524
+ const shadow = "_shadow_1hfou_1";
2525
+ const filter$1 = "_filter_1hfou_347";
2526
+ const floatingFilterButton = "_floatingFilterButton_1hfou_355";
2527
+ const floatingFilterButtonIcon = "_floatingFilterButtonIcon_1hfou_363";
2528
+ const floatingButton = "_floatingButton_1hfou_371";
2529
+ const floatingButtonIcon = "_floatingButtonIcon_1hfou_379";
2530
+ const staticContainer = "_staticContainer_1hfou_387";
2531
+ const floatingContainer = "_floatingContainer_1hfou_395";
2532
2532
  var styles$B = {
2533
2533
  container: container$f,
2534
- "static": "_static_gr5gv_387",
2534
+ "static": "_static_1hfou_387",
2535
2535
  fixed,
2536
2536
  absolute,
2537
- "left-2": "_left-2_gr5gv_1",
2538
- "top-1": "_top-1_gr5gv_1",
2539
- "mb-2": "_mb-2_gr5gv_1",
2540
- "mt-2": "_mt-2_gr5gv_1",
2541
- "mt-2.5": "_mt-2.5_gr5gv_1",
2542
- "mb-3": "_mb-3_gr5gv_1",
2537
+ "left-2": "_left-2_1hfou_1",
2538
+ "top-1": "_top-1_1hfou_1",
2539
+ "mb-2": "_mb-2_1hfou_1",
2540
+ "mt-2": "_mt-2_1hfou_1",
2541
+ "mt-2.5": "_mt-2.5_1hfou_1",
2542
+ "mb-3": "_mb-3_1hfou_1",
2543
2543
  flex,
2544
2544
  table: table$4,
2545
2545
  grid,
2546
2546
  hidden,
2547
- "h-screen": "_h-screen_gr5gv_1",
2548
- "h-full": "_h-full_gr5gv_1",
2549
- "h-80": "_h-80_gr5gv_1",
2550
- "w-screen": "_w-screen_gr5gv_1",
2551
- "w-full": "_w-full_gr5gv_1",
2552
- "w-[200px]": "_w-[200px]_gr5gv_1",
2547
+ "h-screen": "_h-screen_1hfou_1",
2548
+ "h-full": "_h-full_1hfou_1",
2549
+ "h-80": "_h-80_1hfou_1",
2550
+ "w-screen": "_w-screen_1hfou_1",
2551
+ "w-full": "_w-full_1hfou_1",
2552
+ "w-[200px]": "_w-[200px]_1hfou_1",
2553
2553
  transform,
2554
- "flex-col": "_flex-col_gr5gv_1",
2555
- "items-center": "_items-center_gr5gv_1",
2556
- "justify-center": "_justify-center_gr5gv_1",
2557
- "gap-5": "_gap-5_gr5gv_1",
2558
- "divide-solid": "_divide-solid_gr5gv_1",
2559
- "overflow-y-auto": "_overflow-y-auto_gr5gv_1",
2560
- "overflow-x-hidden": "_overflow-x-hidden_gr5gv_1",
2554
+ "flex-col": "_flex-col_1hfou_1",
2555
+ "items-center": "_items-center_1hfou_1",
2556
+ "justify-center": "_justify-center_1hfou_1",
2557
+ "gap-5": "_gap-5_1hfou_1",
2558
+ "divide-solid": "_divide-solid_1hfou_1",
2559
+ "overflow-y-auto": "_overflow-y-auto_1hfou_1",
2560
+ "overflow-x-hidden": "_overflow-x-hidden_1hfou_1",
2561
2561
  border,
2562
- "border-2": "_border-2_gr5gv_1",
2563
- "p-4": "_p-4_gr5gv_1",
2564
- "p-2": "_p-2_gr5gv_1",
2565
- "text-center": "_text-center_gr5gv_1",
2566
- "text-lg": "_text-lg_gr5gv_1",
2567
- "text-6xl": "_text-6xl_gr5gv_1",
2568
- "text-sm": "_text-sm_gr5gv_1",
2569
- "text-xs": "_text-xs_gr5gv_1",
2570
- "text-blue-700": "_text-blue-700_gr5gv_1",
2562
+ "border-2": "_border-2_1hfou_1",
2563
+ "p-4": "_p-4_1hfou_1",
2564
+ "p-2": "_p-2_1hfou_1",
2565
+ "text-center": "_text-center_1hfou_1",
2566
+ "text-lg": "_text-lg_1hfou_1",
2567
+ "text-6xl": "_text-6xl_1hfou_1",
2568
+ "text-sm": "_text-sm_1hfou_1",
2569
+ "text-xs": "_text-xs_1hfou_1",
2570
+ "text-blue-700": "_text-blue-700_1hfou_1",
2571
2571
  shadow,
2572
2572
  filter: filter$1,
2573
- "!filter": "_!filter_gr5gv_1",
2574
- "embedDashboard-container": "_embedDashboard-container_gr5gv_307",
2575
- "embedDashboard-header-static": "_embedDashboard-header-static_gr5gv_315",
2576
- "embedDashboard-header-floating": "_embedDashboard-header-floating_gr5gv_323",
2577
- "embedDashboard-wrapper": "_embedDashboard-wrapper_gr5gv_331",
2578
- "alt-container": "_alt-container_gr5gv_339",
2573
+ "!filter": "_!filter_1hfou_1",
2574
+ "embedDashboard-container": "_embedDashboard-container_1hfou_307",
2575
+ "embedDashboard-header-static": "_embedDashboard-header-static_1hfou_315",
2576
+ "embedDashboard-header-floating": "_embedDashboard-header-floating_1hfou_323",
2577
+ "embedDashboard-wrapper": "_embedDashboard-wrapper_1hfou_331",
2578
+ "alt-container": "_alt-container_1hfou_339",
2579
2579
  floatingFilterButton,
2580
2580
  floatingFilterButtonIcon,
2581
2581
  floatingButton,
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(vo,R){typeof exports=="object"&&typeof module!="undefined"?R(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],R):(vo=typeof globalThis!="undefined"?globalThis:vo||self,R(vo.Databrain={},vo.React,vo.ReactDOM))})(this,function(vo,R,Q$){"use strict";function TM(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function J$(r){if(r&&r.__esModule)return r;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return r&&Object.keys(r).forEach(function(e){if(e!=="default"){var n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:function(){return r[e]}})}}),t.default=r,Object.freeze(t)}var l0=J$(R),lt=TM(R),Kd=TM(Q$);function u0(r,t){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},u0(r,t)}function xs(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,u0(r,t)}var tH=function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=[]),t.length!==e.length||t.some(function(n,i){return!Object.is(n,e[i])})},MM={error:null},eH=function(r){xs(t,r);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=r.call.apply(r,[this].concat(a))||this,n.state=MM,n.resetErrorBoundary=function(){for(var s,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];n.props.onReset==null||(s=n.props).onReset.apply(s,u),n.reset()},n}t.getDerivedStateFromError=function(i){return{error:i}};var e=t.prototype;return e.reset=function(){this.setState(MM)},e.componentDidCatch=function(i,a){var o,s;(o=(s=this.props).onError)==null||o.call(s,i,a)},e.componentDidUpdate=function(i,a){var o=this.state.error,s=this.props.resetKeys;if(o!==null&&a.error!==null&&tH(i.resetKeys,s)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,i.resetKeys,s),this.reset()}},e.render=function(){var i=this.state.error,a=this.props,o=a.fallbackRender,s=a.FallbackComponent,l=a.fallback;if(i!==null){var u={error:i,resetErrorBoundary:this.resetErrorBoundary};if(l0.isValidElement(l))return l;if(typeof o=="function")return o(u);if(s)return l0.createElement(s,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(l0.Component),hu=function(){function r(){this.listeners=[]}var t=r.prototype;return t.subscribe=function(n){var i=this,a=n||function(){};return this.listeners.push(a),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(o){return o!==a}),i.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},r}();function ie(){return ie=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},ie.apply(this,arguments)}var Qd=typeof window=="undefined";function xr(){}function rH(r,t){return typeof r=="function"?r(t):r}function c0(r){return typeof r=="number"&&r>=0&&r!==1/0}function Jd(r){return Array.isArray(r)?r:[r]}function DM(r,t){return Math.max(r+(t||0)-Date.now(),0)}function tv(r,t,e){return qc(r)?typeof t=="function"?ie({},e,{queryKey:r,queryFn:t}):ie({},t,{queryKey:r}):r}function nH(r,t,e){return qc(r)?typeof t=="function"?ie({},e,{mutationKey:r,mutationFn:t}):ie({},t,{mutationKey:r}):typeof r=="function"?ie({},t,{mutationFn:r}):ie({},r)}function po(r,t,e){return qc(r)?[ie({},t,{queryKey:r}),e]:[r||{},t]}function iH(r,t){if(r===!0&&t===!0||r==null&&t==null)return"all";if(r===!1&&t===!1)return"none";var e=r!=null?r:!t;return e?"active":"inactive"}function AM(r,t){var e=r.active,n=r.exact,i=r.fetching,a=r.inactive,o=r.predicate,s=r.queryKey,l=r.stale;if(qc(s)){if(n){if(t.queryHash!==h0(s,t.options))return!1}else if(!ev(t.queryKey,s))return!1}var u=iH(e,a);if(u==="none")return!1;if(u!=="all"){var c=t.isActive();if(u==="active"&&!c||u==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i=="boolean"&&t.isFetching()!==i||o&&!o(t))}function LM(r,t){var e=r.exact,n=r.fetching,i=r.predicate,a=r.mutationKey;if(qc(a)){if(!t.options.mutationKey)return!1;if(e){if(Ss(t.options.mutationKey)!==Ss(a))return!1}else if(!ev(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function h0(r,t){var e=(t==null?void 0:t.queryKeyHashFn)||Ss;return e(r)}function Ss(r){var t=Jd(r);return aH(t)}function aH(r){return JSON.stringify(r,function(t,e){return f0(e)?Object.keys(e).sort().reduce(function(n,i){return n[i]=e[i],n},{}):e})}function ev(r,t){return PM(Jd(r),Jd(t))}function PM(r,t){return r===t?!0:typeof r!=typeof t?!1:r&&t&&typeof r=="object"&&typeof t=="object"?!Object.keys(t).some(function(e){return!PM(r[e],t[e])}):!1}function rv(r,t){if(r===t)return r;var e=Array.isArray(r)&&Array.isArray(t);if(e||f0(r)&&f0(t)){for(var n=e?r.length:Object.keys(r).length,i=e?t:Object.keys(t),a=i.length,o=e?[]:{},s=0,l=0;l<a;l++){var u=e?l:i[l];o[u]=rv(r[u],t[u]),o[u]===r[u]&&s++}return n===a&&s===n?r:o}return t}function oH(r,t){if(r&&!t||t&&!r)return!1;for(var e in r)if(r[e]!==t[e])return!1;return!0}function f0(r){if(!IM(r))return!1;var t=r.constructor;if(typeof t=="undefined")return!0;var e=t.prototype;return!(!IM(e)||!e.hasOwnProperty("isPrototypeOf"))}function IM(r){return Object.prototype.toString.call(r)==="[object Object]"}function qc(r){return typeof r=="string"||Array.isArray(r)}function sH(r){return new Promise(function(t){setTimeout(t,r)})}function OM(r){Promise.resolve().then(r).catch(function(t){return setTimeout(function(){throw t})})}function EM(){if(typeof AbortController=="function")return new AbortController}var lH=function(r){xs(t,r);function t(){var n;return n=r.call(this)||this,n.setup=function(i){var a;if(!Qd&&((a=window)==null?void 0:a.addEventListener)){var o=function(){return i()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},n}var e=t.prototype;return e.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},e.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},e.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setFocused(s):o.onFocus()})},e.setFocused=function(i){this.focused=i,i&&this.onFocus()},e.onFocus=function(){this.listeners.forEach(function(i){i()})},e.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(hu),Xc=new lH,uH=function(r){xs(t,r);function t(){var n;return n=r.call(this)||this,n.setup=function(i){var a;if(!Qd&&((a=window)==null?void 0:a.addEventListener)){var o=function(){return i()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},n}var e=t.prototype;return e.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},e.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},e.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setOnline(s):o.onOnline()})},e.setOnline=function(i){this.online=i,i&&this.onOnline()},e.onOnline=function(){this.listeners.forEach(function(i){i()})},e.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine},t}(hu),nv=new uH;function cH(r){return Math.min(1e3*Math.pow(2,r),3e4)}function iv(r){return typeof(r==null?void 0:r.cancel)=="function"}var kM=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function av(r){return r instanceof kM}var RM=function(t){var e=this,n=!1,i,a,o,s;this.abort=t.abort,this.cancel=function(f){return i==null?void 0:i(f)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(f,d){o=f,s=d});var l=function(d){e.isResolved||(e.isResolved=!0,t.onSuccess==null||t.onSuccess(d),a==null||a(),o(d))},u=function(d){e.isResolved||(e.isResolved=!0,t.onError==null||t.onError(d),a==null||a(),s(d))},c=function(){return new Promise(function(d){a=d,e.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,e.isPaused=!1,t.onContinue==null||t.onContinue()})},h=function f(){if(!e.isResolved){var d;try{d=t.fn()}catch(v){d=Promise.reject(v)}i=function(p){if(!e.isResolved&&(u(new kM(p)),e.abort==null||e.abort(),iv(d)))try{d.cancel()}catch{}},e.isTransportCancelable=iv(d),Promise.resolve(d).then(l).catch(function(v){var p,g;if(!e.isResolved){var m=(p=t.retry)!=null?p:3,y=(g=t.retryDelay)!=null?g:cH,_=typeof y=="function"?y(e.failureCount,v):y,b=m===!0||typeof m=="number"&&e.failureCount<m||typeof m=="function"&&m(e.failureCount,v);if(n||!b){u(v);return}e.failureCount++,t.onFail==null||t.onFail(e.failureCount,v),sH(_).then(function(){if(!Xc.isFocused()||!nv.isOnline())return c()}).then(function(){n?u(v):f()})}})}};h()},hH=function(){function r(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=r.prototype;return t.batch=function(n){var i;this.transactions++;try{i=n()}finally{this.transactions--,this.transactions||this.flush()}return i},t.schedule=function(n){var i=this;this.transactions?this.queue.push(n):OM(function(){i.notifyFn(n)})},t.batchCalls=function(n){var i=this;return function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];i.schedule(function(){n.apply(void 0,o)})}},t.flush=function(){var n=this,i=this.queue;this.queue=[],i.length&&OM(function(){n.batchNotifyFn(function(){i.forEach(function(a){n.notifyFn(a)})})})},t.setNotifyFunction=function(n){this.notifyFn=n},t.setBatchNotifyFunction=function(n){this.batchNotifyFn=n},r}(),ke=new hH,NM=console;function ov(){return NM}function fH(r){NM=r}var dH=function(){function r(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=r.prototype;return t.setOptions=function(n){var i;this.options=ie({},this.defaultOptions,n),this.meta=n==null?void 0:n.meta,this.cacheTime=Math.max(this.cacheTime||0,(i=this.options.cacheTime)!=null?i:5*60*1e3)},t.setDefaultOptions=function(n){this.defaultOptions=n},t.scheduleGc=function(){var n=this;this.clearGcTimeout(),c0(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){n.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(n,i){var a,o,s=this.state.data,l=rH(n,s);return(a=(o=this.options).isDataEqual)!=null&&a.call(o,s,l)?l=s:this.options.structuralSharing!==!1&&(l=rv(s,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt}),l},t.setState=function(n,i){this.dispatch({type:"setState",state:n,setStateOptions:i})},t.cancel=function(n){var i,a=this.promise;return(i=this.retryer)==null||i.cancel(n),a?a.then(xr).catch(xr):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(n){return n.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(n){return n.getCurrentResult().isStale})},t.isStaleByTime=function(n){return n===void 0&&(n=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!DM(this.state.dataUpdatedAt,n)},t.onFocus=function(){var n,i=this.observers.find(function(a){return a.shouldFetchOnWindowFocus()});i&&i.refetch(),(n=this.retryer)==null||n.continue()},t.onOnline=function(){var n,i=this.observers.find(function(a){return a.shouldFetchOnReconnect()});i&&i.refetch(),(n=this.retryer)==null||n.continue()},t.addObserver=function(n){this.observers.indexOf(n)===-1&&(this.observers.push(n),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:n}))},t.removeObserver=function(n){this.observers.indexOf(n)!==-1&&(this.observers=this.observers.filter(function(i){return i!==n}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:n}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(n,i){var a=this,o,s,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(i==null?void 0:i.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var u;return(u=this.retryer)==null||u.continueRetry(),this.promise}}if(n&&this.setOptions(n),!this.options.queryFn){var c=this.observers.find(function(y){return y.options.queryFn});c&&this.setOptions(c.options)}var h=Jd(this.queryKey),f=EM(),d={queryKey:h,pageParam:void 0,meta:this.meta};Object.defineProperty(d,"signal",{enumerable:!0,get:function(){if(f)return a.abortSignalConsumed=!0,f.signal}});var v=function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(d)):Promise.reject("Missing queryFn")},p={fetchOptions:i,options:this.options,queryKey:h,state:this.state,fetchFn:v,meta:this.meta};if((o=this.options.behavior)!=null&&o.onFetch){var g;(g=this.options.behavior)==null||g.onFetch(p)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((s=p.fetchOptions)==null?void 0:s.meta)){var m;this.dispatch({type:"fetch",meta:(m=p.fetchOptions)==null?void 0:m.meta})}return this.retryer=new RM({fn:p.fetchFn,abort:f==null||(l=f.abort)==null?void 0:l.bind(f),onSuccess:function(_){a.setData(_),a.cache.config.onSuccess==null||a.cache.config.onSuccess(_,a),a.cacheTime===0&&a.optionalRemove()},onError:function(_){av(_)&&_.silent||a.dispatch({type:"error",error:_}),av(_)||(a.cache.config.onError==null||a.cache.config.onError(_,a),ov().error(_)),a.cacheTime===0&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(n){var i=this;this.state=this.reducer(this.state,n),ke.batch(function(){i.observers.forEach(function(a){a.onQueryUpdate(n)}),i.cache.notify({query:i,type:"queryUpdated",action:n})})},t.getDefaultState=function(n){var i=typeof n.initialData=="function"?n.initialData():n.initialData,a=typeof n.initialData!="undefined",o=a?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0,s=typeof i!="undefined";return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o!=null?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:s?"success":"idle"}},t.reducer=function(n,i){var a,o;switch(i.type){case"failed":return ie({},n,{fetchFailureCount:n.fetchFailureCount+1});case"pause":return ie({},n,{isPaused:!0});case"continue":return ie({},n,{isPaused:!1});case"fetch":return ie({},n,{fetchFailureCount:0,fetchMeta:(a=i.meta)!=null?a:null,isFetching:!0,isPaused:!1},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return ie({},n,{data:i.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(o=i.dataUpdatedAt)!=null?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=i.error;return av(s)&&s.revert&&this.revertState?ie({},this.revertState):ie({},n,{error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return ie({},n,{isInvalidated:!0});case"setState":return ie({},n,i.state);default:return n}},r}(),vH=function(r){xs(t,r);function t(n){var i;return i=r.call(this)||this,i.config=n||{},i.queries=[],i.queriesMap={},i}var e=t.prototype;return e.build=function(i,a,o){var s,l=a.queryKey,u=(s=a.queryHash)!=null?s:h0(l,a),c=this.get(u);return c||(c=new dH({cache:this,queryKey:l,queryHash:u,options:i.defaultQueryOptions(a),state:o,defaultOptions:i.getQueryDefaults(l),meta:a.meta}),this.add(c)),c},e.add=function(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"queryAdded",query:i}))},e.remove=function(i){var a=this.queriesMap[i.queryHash];a&&(i.destroy(),this.queries=this.queries.filter(function(o){return o!==i}),a===i&&delete this.queriesMap[i.queryHash],this.notify({type:"queryRemoved",query:i}))},e.clear=function(){var i=this;ke.batch(function(){i.queries.forEach(function(a){i.remove(a)})})},e.get=function(i){return this.queriesMap[i]},e.getAll=function(){return this.queries},e.find=function(i,a){var o=po(i,a),s=o[0];return typeof s.exact=="undefined"&&(s.exact=!0),this.queries.find(function(l){return AM(s,l)})},e.findAll=function(i,a){var o=po(i,a),s=o[0];return Object.keys(s).length>0?this.queries.filter(function(l){return AM(s,l)}):this.queries},e.notify=function(i){var a=this;ke.batch(function(){a.listeners.forEach(function(o){o(i)})})},e.onFocus=function(){var i=this;ke.batch(function(){i.queries.forEach(function(a){a.onFocus()})})},e.onOnline=function(){var i=this;ke.batch(function(){i.queries.forEach(function(a){a.onOnline()})})},t}(hu),pH=function(){function r(e){this.options=ie({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||BM(),this.meta=e.meta}var t=r.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(i){return i!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(xr).catch(xr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,i,a=this.state.status==="loading",o=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),o.then(function(){return n.executeMutation()}).then(function(s){i=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(i,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(i,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(i,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:i}),i}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),ov().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,i;return this.retryer=new RM({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var i=this;this.state=gH(this.state,n),ke.batch(function(){i.observers.forEach(function(a){a.onMutationUpdate(n)}),i.mutationCache.notify(i)})},r}();function BM(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function gH(r,t){switch(t.type){case"failed":return ie({},r,{failureCount:r.failureCount+1});case"pause":return ie({},r,{isPaused:!0});case"continue":return ie({},r,{isPaused:!1});case"loading":return ie({},r,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return ie({},r,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return ie({},r,{data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"});case"setState":return ie({},r,t.state);default:return r}}var mH=function(r){xs(t,r);function t(n){var i;return i=r.call(this)||this,i.config=n||{},i.mutations=[],i.mutationId=0,i}var e=t.prototype;return e.build=function(i,a,o){var s=new pH({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(a),state:o,defaultOptions:a.mutationKey?i.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},e.add=function(i){this.mutations.push(i),this.notify(i)},e.remove=function(i){this.mutations=this.mutations.filter(function(a){return a!==i}),i.cancel(),this.notify(i)},e.clear=function(){var i=this;ke.batch(function(){i.mutations.forEach(function(a){i.remove(a)})})},e.getAll=function(){return this.mutations},e.find=function(i){return typeof i.exact=="undefined"&&(i.exact=!0),this.mutations.find(function(a){return LM(i,a)})},e.findAll=function(i){return this.mutations.filter(function(a){return LM(i,a)})},e.notify=function(i){var a=this;ke.batch(function(){a.listeners.forEach(function(o){o(i)})})},e.onFocus=function(){this.resumePausedMutations()},e.onOnline=function(){this.resumePausedMutations()},e.resumePausedMutations=function(){var i=this.mutations.filter(function(a){return a.state.isPaused});return ke.batch(function(){return i.reduce(function(a,o){return a.then(function(){return o.continue().catch(xr)})},Promise.resolve())})},t}(hu);function yH(){return{onFetch:function(t){t.fetchFn=function(){var e,n,i,a,o,s,l=(e=t.fetchOptions)==null||(n=e.meta)==null?void 0:n.refetchPage,u=(i=t.fetchOptions)==null||(a=i.meta)==null?void 0:a.fetchMore,c=u==null?void 0:u.pageParam,h=(u==null?void 0:u.direction)==="forward",f=(u==null?void 0:u.direction)==="backward",d=((o=t.state.data)==null?void 0:o.pages)||[],v=((s=t.state.data)==null?void 0:s.pageParams)||[],p=EM(),g=p==null?void 0:p.signal,m=v,y=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},b=function(O,E,k,B){return m=B?[E].concat(m):[].concat(m,[E]),B?[k].concat(O):[].concat(O,[k])},S=function(O,E,k,B){if(y)return Promise.reject("Cancelled");if(typeof k=="undefined"&&!E&&O.length)return Promise.resolve(O);var F={queryKey:t.queryKey,signal:g,pageParam:k,meta:t.meta},W=_(F),Z=Promise.resolve(W).then(function($){return b(O,k,$,B)});if(iv(W)){var Q=Z;Q.cancel=W.cancel}return Z},x;if(!d.length)x=S([]);else if(h){var w=typeof c!="undefined",C=w?c:zM(t.options,d);x=S(d,w,C)}else if(f){var M=typeof c!="undefined",D=M?c:_H(t.options,d);x=S(d,M,D,!0)}else(function(){m=[];var I=typeof t.options.getNextPageParam=="undefined",O=l&&d[0]?l(d[0],0,d):!0;x=O?S([],I,v[0]):Promise.resolve(b([],v[0],d[0]));for(var E=function(F){x=x.then(function(W){var Z=l&&d[F]?l(d[F],F,d):!0;if(Z){var Q=I?v[F]:zM(t.options,W);return S(W,I,Q)}return Promise.resolve(b(W,v[F],d[F]))})},k=1;k<d.length;k++)E(k)})();var A=x.then(function(I){return{pages:I,pageParams:m}}),P=A;return P.cancel=function(){y=!0,p==null||p.abort(),iv(x)&&x.cancel()},A}}}}function zM(r,t){return r.getNextPageParam==null?void 0:r.getNextPageParam(t[t.length-1],t)}function _H(r,t){return r.getPreviousPageParam==null?void 0:r.getPreviousPageParam(t[0],t)}var bH=function(){function r(e){e===void 0&&(e={}),this.queryCache=e.queryCache||new vH,this.mutationCache=e.mutationCache||new mH,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=r.prototype;return t.mount=function(){var n=this;this.unsubscribeFocus=Xc.subscribe(function(){Xc.isFocused()&&nv.isOnline()&&(n.mutationCache.onFocus(),n.queryCache.onFocus())}),this.unsubscribeOnline=nv.subscribe(function(){Xc.isFocused()&&nv.isOnline()&&(n.mutationCache.onOnline(),n.queryCache.onOnline())})},t.unmount=function(){var n,i;(n=this.unsubscribeFocus)==null||n.call(this),(i=this.unsubscribeOnline)==null||i.call(this)},t.isFetching=function(n,i){var a=po(n,i),o=a[0];return o.fetching=!0,this.queryCache.findAll(o).length},t.isMutating=function(n){return this.mutationCache.findAll(ie({},n,{fetching:!0})).length},t.getQueryData=function(n,i){var a;return(a=this.queryCache.find(n,i))==null?void 0:a.state.data},t.getQueriesData=function(n){return this.getQueryCache().findAll(n).map(function(i){var a=i.queryKey,o=i.state,s=o.data;return[a,s]})},t.setQueryData=function(n,i,a){var o=tv(n),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(i,a)},t.setQueriesData=function(n,i,a){var o=this;return ke.batch(function(){return o.getQueryCache().findAll(n).map(function(s){var l=s.queryKey;return[l,o.setQueryData(l,i,a)]})})},t.getQueryState=function(n,i){var a;return(a=this.queryCache.find(n,i))==null?void 0:a.state},t.removeQueries=function(n,i){var a=po(n,i),o=a[0],s=this.queryCache;ke.batch(function(){s.findAll(o).forEach(function(l){s.remove(l)})})},t.resetQueries=function(n,i,a){var o=this,s=po(n,i,a),l=s[0],u=s[1],c=this.queryCache,h=ie({},l,{active:!0});return ke.batch(function(){return c.findAll(l).forEach(function(f){f.reset()}),o.refetchQueries(h,u)})},t.cancelQueries=function(n,i,a){var o=this,s=po(n,i,a),l=s[0],u=s[1],c=u===void 0?{}:u;typeof c.revert=="undefined"&&(c.revert=!0);var h=ke.batch(function(){return o.queryCache.findAll(l).map(function(f){return f.cancel(c)})});return Promise.all(h).then(xr).catch(xr)},t.invalidateQueries=function(n,i,a){var o,s,l,u=this,c=po(n,i,a),h=c[0],f=c[1],d=ie({},h,{active:(o=(s=h.refetchActive)!=null?s:h.active)!=null?o:!0,inactive:(l=h.refetchInactive)!=null?l:!1});return ke.batch(function(){return u.queryCache.findAll(h).forEach(function(v){v.invalidate()}),u.refetchQueries(d,f)})},t.refetchQueries=function(n,i,a){var o=this,s=po(n,i,a),l=s[0],u=s[1],c=ke.batch(function(){return o.queryCache.findAll(l).map(function(f){return f.fetch(void 0,ie({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),h=Promise.all(c).then(xr);return u!=null&&u.throwOnError||(h=h.catch(xr)),h},t.fetchQuery=function(n,i,a){var o=tv(n,i,a),s=this.defaultQueryOptions(o);typeof s.retry=="undefined"&&(s.retry=!1);var l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)},t.prefetchQuery=function(n,i,a){return this.fetchQuery(n,i,a).then(xr).catch(xr)},t.fetchInfiniteQuery=function(n,i,a){var o=tv(n,i,a);return o.behavior=yH(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(n,i,a){return this.fetchInfiniteQuery(n,i,a).then(xr).catch(xr)},t.cancelMutations=function(){var n=this,i=ke.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(i).then(xr).catch(xr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,i){var a=this.queryDefaults.find(function(o){return Ss(n)===Ss(o.queryKey)});a?a.defaultOptions=i:this.queryDefaults.push({queryKey:n,defaultOptions:i})},t.getQueryDefaults=function(n){var i;return n?(i=this.queryDefaults.find(function(a){return ev(n,a.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(n,i){var a=this.mutationDefaults.find(function(o){return Ss(n)===Ss(o.mutationKey)});a?a.defaultOptions=i:this.mutationDefaults.push({mutationKey:n,defaultOptions:i})},t.getMutationDefaults=function(n){var i;return n?(i=this.mutationDefaults.find(function(a){return ev(n,a.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var i=ie({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=h0(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:ie({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},r}(),xH=function(r){xs(t,r);function t(n,i){var a;return a=r.call(this)||this,a.client=n,a.options=i,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(i),a}var e=t.prototype;return e.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},e.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),FM(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},e.onUnsubscribe=function(){this.listeners.length||this.destroy()},e.shouldFetchOnReconnect=function(){return d0(this.currentQuery,this.options,this.options.refetchOnReconnect)},e.shouldFetchOnWindowFocus=function(){return d0(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},e.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},e.setOptions=function(i,a){var o=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var l=this.hasListeners();l&&VM(this.currentQuery,s,this.options,o)&&this.executeFetch(),this.updateResult(a),l&&(this.currentQuery!==s||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();l&&(this.currentQuery!==s||this.options.enabled!==o.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},e.getOptimisticResult=function(i){var a=this.client.defaultQueryObserverOptions(i),o=this.client.getQueryCache().build(this.client,a);return this.createResult(o,a)},e.getCurrentResult=function(){return this.currentResult},e.trackResult=function(i,a){var o=this,s={},l=function(c){o.trackedProps.includes(c)||o.trackedProps.push(c)};return Object.keys(i).forEach(function(u){Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:function(){return l(u),i[u]}})}),(a.useErrorBoundary||a.suspense)&&l("error"),s},e.getNextResult=function(i){var a=this;return new Promise(function(o,s){var l=a.subscribe(function(u){u.isFetching||(l(),u.isError&&(i==null?void 0:i.throwOnError)?s(u.error):o(u))})})},e.getCurrentQuery=function(){return this.currentQuery},e.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},e.refetch=function(i){return this.fetch(ie({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},e.fetchOptimistic=function(i){var a=this,o=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,o);return s.fetch().then(function(){return a.createResult(s,o)})},e.fetch=function(i){var a=this;return this.executeFetch(i).then(function(){return a.updateResult(),a.currentResult})},e.executeFetch=function(i){this.updateQuery();var a=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(a=a.catch(xr)),a},e.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Qd||this.currentResult.isStale||!c0(this.options.staleTime))){var a=DM(this.currentResult.dataUpdatedAt,this.options.staleTime),o=a+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},o)}},e.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},e.updateRefetchInterval=function(i){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Qd||this.options.enabled===!1||!c0(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Xc.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},e.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},e.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},e.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},e.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},e.createResult=function(i,a){var o=this.currentQuery,s=this.options,l=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,h=i!==o,f=h?i.state:this.currentQueryInitialState,d=h?this.currentResult:this.previousQueryResult,v=i.state,p=v.dataUpdatedAt,g=v.error,m=v.errorUpdatedAt,y=v.isFetching,_=v.status,b=!1,S=!1,x;if(a.optimisticResults){var w=this.hasListeners(),C=!w&&FM(i,a),M=w&&VM(i,o,a,s);(C||M)&&(y=!0,p||(_="loading"))}if(a.keepPreviousData&&!v.dataUpdateCount&&(d==null?void 0:d.isSuccess)&&_!=="error")x=d.data,p=d.dataUpdatedAt,_=d.status,b=!0;else if(a.select&&typeof v.data!="undefined")if(l&&v.data===(u==null?void 0:u.data)&&a.select===this.selectFn)x=this.selectResult;else try{this.selectFn=a.select,x=a.select(v.data),a.structuralSharing!==!1&&(x=rv(l==null?void 0:l.data,x)),this.selectResult=x,this.selectError=null}catch(P){ov().error(P),this.selectError=P}else x=v.data;if(typeof a.placeholderData!="undefined"&&typeof x=="undefined"&&(_==="loading"||_==="idle")){var D;if((l==null?void 0:l.isPlaceholderData)&&a.placeholderData===(c==null?void 0:c.placeholderData))D=l.data;else if(D=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof D!="undefined")try{D=a.select(D),a.structuralSharing!==!1&&(D=rv(l==null?void 0:l.data,D)),this.selectError=null}catch(P){ov().error(P),this.selectError=P}typeof D!="undefined"&&(_="success",x=D,S=!0)}this.selectError&&(g=this.selectError,x=this.selectResult,m=Date.now(),_="error");var A={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:x,dataUpdatedAt:p,error:g,errorUpdatedAt:m,failureCount:v.fetchFailureCount,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>f.dataUpdateCount||v.errorUpdateCount>f.errorUpdateCount,isFetching:y,isRefetching:y&&_!=="loading",isLoadingError:_==="error"&&v.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:b,isRefetchError:_==="error"&&v.dataUpdatedAt!==0,isStale:v0(i,a),refetch:this.refetch,remove:this.remove};return A},e.shouldNotifyListeners=function(i,a){if(!a)return!0;var o=this.options,s=o.notifyOnChangeProps,l=o.notifyOnChangePropsExclusions;if(!s&&!l||s==="tracked"&&!this.trackedProps.length)return!0;var u=s==="tracked"?this.trackedProps:s;return Object.keys(i).some(function(c){var h=c,f=i[h]!==a[h],d=u==null?void 0:u.some(function(p){return p===c}),v=l==null?void 0:l.some(function(p){return p===c});return f&&!v&&(!u||d)})},e.updateResult=function(i){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!oH(this.currentResult,a)){var o={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(o.listeners=!0),this.notify(ie({},o,i))}},e.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var a=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),i.addObserver(this))}},e.onQueryUpdate=function(i){var a={};i.type==="success"?a.onSuccess=!0:i.type==="error"&&!av(i.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},e.notify=function(i){var a=this;ke.batch(function(){i.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):i.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),i.listeners&&a.listeners.forEach(function(o){o(a.currentResult)}),i.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(hu);function SH(r,t){return t.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&t.retryOnMount===!1)}function FM(r,t){return SH(r,t)||r.state.dataUpdatedAt>0&&d0(r,t,t.refetchOnMount)}function d0(r,t,e){if(t.enabled!==!1){var n=typeof e=="function"?e(r):e;return n==="always"||n!==!1&&v0(r,t)}return!1}function VM(r,t,e,n){return e.enabled!==!1&&(r!==t||n.enabled===!1)&&(!e.suspense||r.state.status!=="error")&&v0(r,e)}function v0(r,t){return r.isStaleByTime(t.staleTime)}var wH=function(r){xs(t,r);function t(n,i){var a;return a=r.call(this)||this,a.client=n,a.setOptions(i),a.bindMethods(),a.updateResult(),a}var e=t.prototype;return e.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},e.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},e.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},e.onMutationUpdate=function(i){this.updateResult();var a={listeners:!0};i.type==="success"?a.onSuccess=!0:i.type==="error"&&(a.onError=!0),this.notify(a)},e.getCurrentResult=function(){return this.currentResult},e.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},e.mutate=function(i,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,ie({},this.options,{variables:typeof i!="undefined"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},e.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:BM(),a=ie({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},e.notify=function(i){var a=this;ke.batch(function(){a.mutateOptions&&(i.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):i.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),i.listeners&&a.listeners.forEach(function(o){o(a.currentResult)})})},t}(hu),CH=Kd.default.unstable_batchedUpdates;ke.setBatchNotifyFunction(CH);var TH=console;fH(TH);var $M=lt.default.createContext(void 0),HM=lt.default.createContext(!1);function WM(r){return r&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=$M),window.ReactQueryClientContext):$M}var GM=function(){var t=lt.default.useContext(WM(lt.default.useContext(HM)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MH=function(t){var e=t.client,n=t.contextSharing,i=n===void 0?!1:n,a=t.children;lt.default.useEffect(function(){return e.mount(),function(){e.unmount()}},[e]);var o=WM(i);return lt.default.createElement(HM.Provider,{value:i},lt.default.createElement(o.Provider,{value:e},a))};function DH(){var r=!1;return{clearReset:function(){r=!1},reset:function(){r=!0},isReset:function(){return r}}}var AH=lt.default.createContext(DH()),LH=function(){return lt.default.useContext(AH)};function UM(r,t,e){return typeof t=="function"?t.apply(void 0,e):typeof t=="boolean"?t:!!r}function sv(r,t,e){var n=lt.default.useRef(!1),i=lt.default.useState(0),a=i[1],o=nH(r,t,e),s=GM(),l=lt.default.useRef();l.current?l.current.setOptions(o):l.current=new wH(s,o);var u=l.current.getCurrentResult();lt.default.useEffect(function(){n.current=!0;var h=l.current.subscribe(ke.batchCalls(function(){n.current&&a(function(f){return f+1})}));return function(){n.current=!1,h()}},[]);var c=lt.default.useCallback(function(h,f){l.current.mutate(h,f).catch(xr)},[]);if(u.error&&UM(void 0,l.current.options.useErrorBoundary,[u.error]))throw u.error;return ie({},u,{mutate:c,mutateAsync:u.mutate})}function PH(r,t){var e=lt.default.useRef(!1),n=lt.default.useState(0),i=n[1],a=GM(),o=LH(),s=a.defaultQueryObserverOptions(r);s.optimisticResults=!0,s.onError&&(s.onError=ke.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=ke.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=ke.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(o.isReset()||(s.retryOnMount=!1));var l=lt.default.useState(function(){return new t(a,s)}),u=l[0],c=u.getOptimisticResult(s);if(lt.default.useEffect(function(){e.current=!0,o.clearReset();var h=u.subscribe(ke.batchCalls(function(){e.current&&i(function(f){return f+1})}));return u.updateResult(),function(){e.current=!1,h()}},[o,u]),lt.default.useEffect(function(){u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&c.isLoading)throw u.fetchOptimistic(s).then(function(h){var f=h.data;s.onSuccess==null||s.onSuccess(f),s.onSettled==null||s.onSettled(f,null)}).catch(function(h){o.clearReset(),s.onError==null||s.onError(h),s.onSettled==null||s.onSettled(void 0,h)});if(c.isError&&!o.isReset()&&!c.isFetching&&UM(s.suspense,s.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=u.trackResult(c,s)),c}function go(r,t,e){var n=tv(r,t,e);return PH(n,xH)}var hn={container:"_container_gr5gv_1",static:"_static_gr5gv_387",fixed:"_fixed_gr5gv_1",absolute:"_absolute_gr5gv_1","left-2":"_left-2_gr5gv_1","top-1":"_top-1_gr5gv_1","mb-2":"_mb-2_gr5gv_1","mt-2":"_mt-2_gr5gv_1","mt-2.5":"_mt-2.5_gr5gv_1","mb-3":"_mb-3_gr5gv_1",flex:"_flex_gr5gv_1",table:"_table_gr5gv_1",grid:"_grid_gr5gv_1",hidden:"_hidden_gr5gv_1","h-screen":"_h-screen_gr5gv_1","h-full":"_h-full_gr5gv_1","h-80":"_h-80_gr5gv_1","w-screen":"_w-screen_gr5gv_1","w-full":"_w-full_gr5gv_1","w-[200px]":"_w-[200px]_gr5gv_1",transform:"_transform_gr5gv_1","flex-col":"_flex-col_gr5gv_1","items-center":"_items-center_gr5gv_1","justify-center":"_justify-center_gr5gv_1","gap-5":"_gap-5_gr5gv_1","divide-solid":"_divide-solid_gr5gv_1","overflow-y-auto":"_overflow-y-auto_gr5gv_1","overflow-x-hidden":"_overflow-x-hidden_gr5gv_1",border:"_border_gr5gv_1","border-2":"_border-2_gr5gv_1","p-4":"_p-4_gr5gv_1","p-2":"_p-2_gr5gv_1","text-center":"_text-center_gr5gv_1","text-lg":"_text-lg_gr5gv_1","text-6xl":"_text-6xl_gr5gv_1","text-sm":"_text-sm_gr5gv_1","text-xs":"_text-xs_gr5gv_1","text-blue-700":"_text-blue-700_gr5gv_1",shadow:"_shadow_gr5gv_1",filter:"_filter_gr5gv_347","!filter":"_!filter_gr5gv_1","embedDashboard-container":"_embedDashboard-container_gr5gv_307","embedDashboard-header-static":"_embedDashboard-header-static_gr5gv_315","embedDashboard-header-floating":"_embedDashboard-header-floating_gr5gv_323","embedDashboard-wrapper":"_embedDashboard-wrapper_gr5gv_331","alt-container":"_alt-container_gr5gv_339",floatingFilterButton:"_floatingFilterButton_gr5gv_355",floatingFilterButtonIcon:"_floatingFilterButtonIcon_gr5gv_363",floatingButton:"_floatingButton_gr5gv_371",floatingButtonIcon:"_floatingButtonIcon_gr5gv_379",staticContainer:"_staticContainer_gr5gv_387",floatingContainer:"_floatingContainer_gr5gv_395"},lv=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function IH(r){if(r.__esModule)return r;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:function(){return r[e]}})}),t}var p0={exports:{}},Zc={},Kc={exports:{}};(function(r,t){var e=200,n="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",v="[object GeneratorFunction]",p="[object Map]",g="[object Number]",m="[object Null]",y="[object Object]",_="[object Promise]",b="[object Proxy]",S="[object RegExp]",x="[object Set]",w="[object String]",C="[object Symbol]",M="[object Undefined]",D="[object WeakMap]",A="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",E="[object Int8Array]",k="[object Int16Array]",B="[object Int32Array]",F="[object Uint8Array]",W="[object Uint8ClampedArray]",Z="[object Uint16Array]",Q="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,U={};U[I]=U[O]=U[E]=U[k]=U[B]=U[F]=U[W]=U[Z]=U[Q]=!0,U[s]=U[l]=U[A]=U[c]=U[P]=U[h]=U[f]=U[d]=U[p]=U[g]=U[y]=U[S]=U[x]=U[w]=U[D]=!1;var et=typeof lv=="object"&&lv&&lv.Object===Object&&lv,nt=typeof self=="object"&&self&&self.Object===Object&&self,rt=et||nt||Function("return this")(),ft=t&&!t.nodeType&&t,dt=ft&&!0&&r&&!r.nodeType&&r,st=dt&&dt.exports===ft,gt=st&&et.process,It=function(){try{return gt&&gt.binding&&gt.binding("util")}catch{}}(),Dt=It&&It.isTypedArray;function z(N,G){for(var at=-1,Tt=N==null?0:N.length,Ee=0,te=[];++at<Tt;){var Ze=N[at];G(Ze,at,N)&&(te[Ee++]=Ze)}return te}function X(N,G){for(var at=-1,Tt=G.length,Ee=N.length;++at<Tt;)N[Ee+at]=G[at];return N}function q(N,G){for(var at=-1,Tt=N==null?0:N.length;++at<Tt;)if(G(N[at],at,N))return!0;return!1}function ut(N,G){for(var at=-1,Tt=Array(N);++at<N;)Tt[at]=G(at);return Tt}function ht(N){return function(G){return N(G)}}function it(N,G){return N.has(G)}function yt(N,G){return N==null?void 0:N[G]}function le(N){var G=-1,at=Array(N.size);return N.forEach(function(Tt,Ee){at[++G]=[Ee,Tt]}),at}function Xt(N,G){return function(at){return N(G(at))}}function iu(N){var G=-1,at=Array(N.size);return N.forEach(function(Tt){at[++G]=Tt}),at}var cn=Array.prototype,Hi=Function.prototype,wa=Object.prototype,Wi=rt["__core-js_shared__"],ms=Hi.toString,Pr=wa.hasOwnProperty,lo=function(){var N=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),au=wa.toString,qd=RegExp("^"+ms.call(Pr).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ou=st?rt.Buffer:void 0,uo=rt.Symbol,jr=rt.Uint8Array,$t=wa.propertyIsEnumerable,dr=cn.splice,_r=uo?uo.toStringTag:void 0,co=Object.getOwnPropertySymbols,xM=ou?ou.isBuffer:void 0,SM=Xt(Object.keys,Object),Yt=jc(rt,"DataView"),Pe=jc(rt,"Map"),Ir=jc(rt,"Promise"),ne=jc(rt,"Set"),Ve=jc(rt,"WeakMap"),ar=jc(Object,"create"),qr=uu(Yt),Jy=uu(Pe),t0=uu(Ir),e0=uu(ne),M1t=uu(Ve),$$=uo?uo.prototype:void 0,wM=$$?$$.valueOf:void 0;function su(N){var G=-1,at=N==null?0:N.length;for(this.clear();++G<at;){var Tt=N[G];this.set(Tt[0],Tt[1])}}function D1t(){this.__data__=ar?ar(null):{},this.size=0}function A1t(N){var G=this.has(N)&&delete this.__data__[N];return this.size-=G?1:0,G}function L1t(N){var G=this.__data__;if(ar){var at=G[N];return at===n?void 0:at}return Pr.call(G,N)?G[N]:void 0}function P1t(N){var G=this.__data__;return ar?G[N]!==void 0:Pr.call(G,N)}function I1t(N,G){var at=this.__data__;return this.size+=this.has(N)?0:1,at[N]=ar&&G===void 0?n:G,this}su.prototype.clear=D1t,su.prototype.delete=A1t,su.prototype.get=L1t,su.prototype.has=P1t,su.prototype.set=I1t;function ho(N){var G=-1,at=N==null?0:N.length;for(this.clear();++G<at;){var Tt=N[G];this.set(Tt[0],Tt[1])}}function O1t(){this.__data__=[],this.size=0}function E1t(N){var G=this.__data__,at=n0(G,N);if(at<0)return!1;var Tt=G.length-1;return at==Tt?G.pop():dr.call(G,at,1),--this.size,!0}function k1t(N){var G=this.__data__,at=n0(G,N);return at<0?void 0:G[at][1]}function R1t(N){return n0(this.__data__,N)>-1}function N1t(N,G){var at=this.__data__,Tt=n0(at,N);return Tt<0?(++this.size,at.push([N,G])):at[Tt][1]=G,this}ho.prototype.clear=O1t,ho.prototype.delete=E1t,ho.prototype.get=k1t,ho.prototype.has=R1t,ho.prototype.set=N1t;function lu(N){var G=-1,at=N==null?0:N.length;for(this.clear();++G<at;){var Tt=N[G];this.set(Tt[0],Tt[1])}}function B1t(){this.size=0,this.__data__={hash:new su,map:new(Pe||ho),string:new su}}function z1t(N){var G=i0(this,N).delete(N);return this.size-=G?1:0,G}function F1t(N){return i0(this,N).get(N)}function V1t(N){return i0(this,N).has(N)}function $1t(N,G){var at=i0(this,N),Tt=at.size;return at.set(N,G),this.size+=at.size==Tt?0:1,this}lu.prototype.clear=B1t,lu.prototype.delete=z1t,lu.prototype.get=F1t,lu.prototype.has=V1t,lu.prototype.set=$1t;function r0(N){var G=-1,at=N==null?0:N.length;for(this.__data__=new lu;++G<at;)this.add(N[G])}function H1t(N){return this.__data__.set(N,n),this}function W1t(N){return this.__data__.has(N)}r0.prototype.add=r0.prototype.push=H1t,r0.prototype.has=W1t;function ys(N){var G=this.__data__=new ho(N);this.size=G.size}function G1t(){this.__data__=new ho,this.size=0}function U1t(N){var G=this.__data__,at=G.delete(N);return this.size=G.size,at}function Y1t(N){return this.__data__.get(N)}function j1t(N){return this.__data__.has(N)}function q1t(N,G){var at=this.__data__;if(at instanceof ho){var Tt=at.__data__;if(!Pe||Tt.length<e-1)return Tt.push([N,G]),this.size=++at.size,this;at=this.__data__=new lu(Tt)}return at.set(N,G),this.size=at.size,this}ys.prototype.clear=G1t,ys.prototype.delete=U1t,ys.prototype.get=Y1t,ys.prototype.has=j1t,ys.prototype.set=q1t;function X1t(N,G){var at=a0(N),Tt=!at&&cxt(N),Ee=!at&&!Tt&&CM(N),te=!at&&!Tt&&!Ee&&Z$(N),Ze=at||Tt||Ee||te,br=Ze?ut(N.length,String):[],Or=br.length;for(var Ue in N)(G||Pr.call(N,Ue))&&!(Ze&&(Ue=="length"||Ee&&(Ue=="offset"||Ue=="parent")||te&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||axt(Ue,Or)))&&br.push(Ue);return br}function n0(N,G){for(var at=N.length;at--;)if(Y$(N[at][0],G))return at;return-1}function Z1t(N,G,at){var Tt=G(N);return a0(N)?Tt:X(Tt,at(N))}function Xd(N){return N==null?N===void 0?M:m:_r&&_r in Object(N)?nxt(N):uxt(N)}function H$(N){return Zd(N)&&Xd(N)==s}function W$(N,G,at,Tt,Ee){return N===G?!0:N==null||G==null||!Zd(N)&&!Zd(G)?N!==N&&G!==G:K1t(N,G,at,Tt,W$,Ee)}function K1t(N,G,at,Tt,Ee,te){var Ze=a0(N),br=a0(G),Or=Ze?l:_s(N),Ue=br?l:_s(G);Or=Or==s?y:Or,Ue=Ue==s?y:Ue;var Rn=Or==y,Gi=Ue==y,Xr=Or==Ue;if(Xr&&CM(N)){if(!CM(G))return!1;Ze=!0,Rn=!1}if(Xr&&!Rn)return te||(te=new ys),Ze||Z$(N)?G$(N,G,at,Tt,Ee,te):ext(N,G,Or,at,Tt,Ee,te);if(!(at&i)){var pi=Rn&&Pr.call(N,"__wrapped__"),gi=Gi&&Pr.call(G,"__wrapped__");if(pi||gi){var bs=pi?N.value():N,fo=gi?G.value():G;return te||(te=new ys),Ee(bs,fo,at,Tt,te)}}return Xr?(te||(te=new ys),rxt(N,G,at,Tt,Ee,te)):!1}function Q1t(N){if(!X$(N)||sxt(N))return!1;var G=j$(N)?qd:V;return G.test(uu(N))}function J1t(N){return Zd(N)&&q$(N.length)&&!!U[Xd(N)]}function txt(N){if(!lxt(N))return SM(N);var G=[];for(var at in Object(N))Pr.call(N,at)&&at!="constructor"&&G.push(at);return G}function G$(N,G,at,Tt,Ee,te){var Ze=at&i,br=N.length,Or=G.length;if(br!=Or&&!(Ze&&Or>br))return!1;var Ue=te.get(N);if(Ue&&te.get(G))return Ue==G;var Rn=-1,Gi=!0,Xr=at&a?new r0:void 0;for(te.set(N,G),te.set(G,N);++Rn<br;){var pi=N[Rn],gi=G[Rn];if(Tt)var bs=Ze?Tt(gi,pi,Rn,G,N,te):Tt(pi,gi,Rn,N,G,te);if(bs!==void 0){if(bs)continue;Gi=!1;break}if(Xr){if(!q(G,function(fo,cu){if(!it(Xr,cu)&&(pi===fo||Ee(pi,fo,at,Tt,te)))return Xr.push(cu)})){Gi=!1;break}}else if(!(pi===gi||Ee(pi,gi,at,Tt,te))){Gi=!1;break}}return te.delete(N),te.delete(G),Gi}function ext(N,G,at,Tt,Ee,te,Ze){switch(at){case P:if(N.byteLength!=G.byteLength||N.byteOffset!=G.byteOffset)return!1;N=N.buffer,G=G.buffer;case A:return!(N.byteLength!=G.byteLength||!te(new jr(N),new jr(G)));case c:case h:case g:return Y$(+N,+G);case f:return N.name==G.name&&N.message==G.message;case S:case w:return N==G+"";case p:var br=le;case x:var Or=Tt&i;if(br||(br=iu),N.size!=G.size&&!Or)return!1;var Ue=Ze.get(N);if(Ue)return Ue==G;Tt|=a,Ze.set(N,G);var Rn=G$(br(N),br(G),Tt,Ee,te,Ze);return Ze.delete(N),Rn;case C:if(wM)return wM.call(N)==wM.call(G)}return!1}function rxt(N,G,at,Tt,Ee,te){var Ze=at&i,br=U$(N),Or=br.length,Ue=U$(G),Rn=Ue.length;if(Or!=Rn&&!Ze)return!1;for(var Gi=Or;Gi--;){var Xr=br[Gi];if(!(Ze?Xr in G:Pr.call(G,Xr)))return!1}var pi=te.get(N);if(pi&&te.get(G))return pi==G;var gi=!0;te.set(N,G),te.set(G,N);for(var bs=Ze;++Gi<Or;){Xr=br[Gi];var fo=N[Xr],cu=G[Xr];if(Tt)var K$=Ze?Tt(cu,fo,Xr,G,N,te):Tt(fo,cu,Xr,N,G,te);if(!(K$===void 0?fo===cu||Ee(fo,cu,at,Tt,te):K$)){gi=!1;break}bs||(bs=Xr=="constructor")}if(gi&&!bs){var o0=N.constructor,s0=G.constructor;o0!=s0&&"constructor"in N&&"constructor"in G&&!(typeof o0=="function"&&o0 instanceof o0&&typeof s0=="function"&&s0 instanceof s0)&&(gi=!1)}return te.delete(N),te.delete(G),gi}function U$(N){return Z1t(N,dxt,ixt)}function i0(N,G){var at=N.__data__;return oxt(G)?at[typeof G=="string"?"string":"hash"]:at.map}function jc(N,G){var at=yt(N,G);return Q1t(at)?at:void 0}function nxt(N){var G=Pr.call(N,_r),at=N[_r];try{N[_r]=void 0;var Tt=!0}catch{}var Ee=au.call(N);return Tt&&(G?N[_r]=at:delete N[_r]),Ee}var ixt=co?function(N){return N==null?[]:(N=Object(N),z(co(N),function(G){return $t.call(N,G)}))}:vxt,_s=Xd;(Yt&&_s(new Yt(new ArrayBuffer(1)))!=P||Pe&&_s(new Pe)!=p||Ir&&_s(Ir.resolve())!=_||ne&&_s(new ne)!=x||Ve&&_s(new Ve)!=D)&&(_s=function(N){var G=Xd(N),at=G==y?N.constructor:void 0,Tt=at?uu(at):"";if(Tt)switch(Tt){case qr:return P;case Jy:return p;case t0:return _;case e0:return x;case M1t:return D}return G});function axt(N,G){return G=G==null?o:G,!!G&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<G}function oxt(N){var G=typeof N;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?N!=="__proto__":N===null}function sxt(N){return!!lo&&lo in N}function lxt(N){var G=N&&N.constructor,at=typeof G=="function"&&G.prototype||wa;return N===at}function uxt(N){return au.call(N)}function uu(N){if(N!=null){try{return ms.call(N)}catch{}try{return N+""}catch{}}return""}function Y$(N,G){return N===G||N!==N&&G!==G}var cxt=H$(function(){return arguments}())?H$:function(N){return Zd(N)&&Pr.call(N,"callee")&&!$t.call(N,"callee")},a0=Array.isArray;function hxt(N){return N!=null&&q$(N.length)&&!j$(N)}var CM=xM||pxt;function fxt(N,G){return W$(N,G)}function j$(N){if(!X$(N))return!1;var G=Xd(N);return G==d||G==v||G==u||G==b}function q$(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=o}function X$(N){var G=typeof N;return N!=null&&(G=="object"||G=="function")}function Zd(N){return N!=null&&typeof N=="object"}var Z$=Dt?ht(Dt):J1t;function dxt(N){return hxt(N)?X1t(N):txt(N)}function vxt(){return[]}function pxt(){return!1}r.exports=fxt})(Kc,Kc.exports);function YM(r){var t,e,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(e=YM(r[t]))&&(n&&(n+=" "),n+=e);else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function jM(){for(var r,t,e=0,n="";e<arguments.length;)(r=arguments[e++])&&(t=YM(r))&&(n&&(n+=" "),n+=t);return n}var OH=Object.freeze(Object.defineProperty({__proto__:null,clsx:jM,default:jM},Symbol.toStringTag,{value:"Module"})),uv=IH(OH),ae={},EH=function(t,e,n){return t===e?!0:t.className===e.className&&n(t.style,e.style)&&t.width===e.width&&t.autoSize===e.autoSize&&t.cols===e.cols&&t.draggableCancel===e.draggableCancel&&t.draggableHandle===e.draggableHandle&&n(t.verticalCompact,e.verticalCompact)&&n(t.compactType,e.compactType)&&n(t.layout,e.layout)&&n(t.margin,e.margin)&&n(t.containerPadding,e.containerPadding)&&t.rowHeight===e.rowHeight&&t.maxRows===e.maxRows&&t.isBounded===e.isBounded&&t.isDraggable===e.isDraggable&&t.isResizable===e.isResizable&&t.allowOverlap===e.allowOverlap&&t.preventCollision===e.preventCollision&&t.useCSSTransforms===e.useCSSTransforms&&t.transformScale===e.transformScale&&t.isDroppable===e.isDroppable&&n(t.resizeHandles,e.resizeHandles)&&n(t.resizeHandle,e.resizeHandle)&&t.onLayoutChange===e.onLayoutChange&&t.onDragStart===e.onDragStart&&t.onDrag===e.onDrag&&t.onDragStop===e.onDragStop&&t.onResizeStart===e.onResizeStart&&t.onResize===e.onResize&&t.onResizeStop===e.onResizeStop&&t.onDrop===e.onDrop&&n(t.droppingItem,e.droppingItem)&&n(t.innerRef,e.innerRef)};Object.defineProperty(ae,"__esModule",{value:!0}),ae.bottom=m0,ae.childrenEqual=BH,ae.cloneLayout=KM,ae.cloneLayoutItem=ws,ae.collides=cv,ae.compact=JM,ae.compactItem=tD,ae.compactType=YH,ae.correctBounds=eD,ae.fastPositionEqual=FH,ae.fastRGLPropsEqual=void 0,ae.getAllCollisions=rD,ae.getFirstCollision=fu,ae.getLayoutItem=_0,ae.getStatics=b0,ae.modifyLayout=QM,ae.moveElement=x0,ae.moveElementAwayFromCollision=S0,ae.noop=void 0,ae.perc=$H,ae.setTopLeft=WH,ae.setTransform=HH,ae.sortLayoutItems=w0,ae.sortLayoutItemsByColRow=iD,ae.sortLayoutItemsByRowCol=nD,ae.synchronizeLayoutWithChildren=GH,ae.validateLayout=UH,ae.withLayoutItem=NH;var kH=qM(Kc.exports),g0=qM(lt.default);function qM(r){return r&&r.__esModule?r:{default:r}}function XM(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,n)}return e}function ZM(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?XM(Object(e),!0).forEach(function(n){RH(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):XM(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function RH(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function m0(r){for(var t=0,e,n=0,i=r.length;n<i;n++)e=r[n].y+r[n].h,e>t&&(t=e);return t}function KM(r){for(var t=Array(r.length),e=0,n=r.length;e<n;e++)t[e]=ws(r[e]);return t}function QM(r,t){for(var e=Array(r.length),n=0,i=r.length;n<i;n++)t.i===r[n].i?e[n]=t:e[n]=r[n];return e}function NH(r,t,e){var n=_0(r,t);return n?(n=e(ws(n)),r=QM(r,n),[r,n]):[r,null]}function ws(r){return{w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minW:r.minW,maxW:r.maxW,minH:r.minH,maxH:r.maxH,moved:Boolean(r.moved),static:Boolean(r.static),isDraggable:r.isDraggable,isResizable:r.isResizable,resizeHandles:r.resizeHandles,isBounded:r.isBounded}}function BH(r,t){return(0,kH.default)(g0.default.Children.map(r,function(e){return e==null?void 0:e.key}),g0.default.Children.map(t,function(e){return e==null?void 0:e.key}))}var zH=EH;ae.fastRGLPropsEqual=zH;function FH(r,t){return r.left===t.left&&r.top===t.top&&r.width===t.width&&r.height===t.height}function cv(r,t){return!(r.i===t.i||r.x+r.w<=t.x||r.x>=t.x+t.w||r.y+r.h<=t.y||r.y>=t.y+t.h)}function JM(r,t,e){for(var n=b0(r),i=w0(r,t),a=Array(r.length),o=0,s=i.length;o<s;o++){var l=ws(i[o]);l.static||(l=tD(n,l,t,e,i),n.push(l)),a[r.indexOf(i[o])]=l,l.moved=!1}return a}var VH={x:"w",y:"h"};function y0(r,t,e,n){var i=VH[n];t[n]+=1;for(var a=r.map(function(l){return l.i}).indexOf(t.i),o=a+1;o<r.length;o++){var s=r[o];if(!s.static){if(s.y>t.y+t.h)break;cv(t,s)&&y0(r,s,e+t[i],n)}}t[n]=e}function tD(r,t,e,n,i){var a=e==="vertical",o=e==="horizontal";if(a)for(t.y=Math.min(m0(r),t.y);t.y>0&&!fu(r,t);)t.y--;else if(o)for(;t.x>0&&!fu(r,t);)t.x--;for(var s;s=fu(r,t);)o?y0(i,t,s.x+s.w,"x"):y0(i,t,s.y+s.h,"y"),o&&t.x+t.w>n&&(t.x=n-t.w,t.y++);return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function eD(r,t){for(var e=b0(r),n=0,i=r.length;n<i;n++){var a=r[n];if(a.x+a.w>t.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),!a.static)e.push(a);else for(;fu(e,a);)a.y++}return r}function _0(r,t){for(var e=0,n=r.length;e<n;e++)if(r[e].i===t)return r[e]}function fu(r,t){for(var e=0,n=r.length;e<n;e++)if(cv(r[e],t))return r[e]}function rD(r,t){return r.filter(function(e){return cv(e,t)})}function b0(r){return r.filter(function(t){return t.static})}function x0(r,t,e,n,i,a,o,s,l){if(t.static&&t.isDraggable!==!0||t.y===n&&t.x===e)return r;"Moving element ".concat(t.i," to [").concat(String(e),",").concat(String(n),"] from [").concat(t.x,",").concat(t.y,"]");var u=t.x,c=t.y;typeof e=="number"&&(t.x=e),typeof n=="number"&&(t.y=n),t.moved=!0;var h=w0(r,o),f=o==="vertical"&&typeof n=="number"?c>=n:o==="horizontal"&&typeof e=="number"?u>=e:!1;f&&(h=h.reverse());var d=rD(h,t),v=d.length>0;if(v&&l)return KM(r);if(v&&a)return"Collision prevented on ".concat(t.i,", reverting."),t.x=u,t.y=c,t.moved=!1,r;for(var p=0,g=d.length;p<g;p++){var m=d[p];"Resolving collision between ".concat(t.i," at [").concat(t.x,",").concat(t.y,"] and ").concat(m.i," at [").concat(m.x,",").concat(m.y,"]"),!m.moved&&(m.static?r=S0(r,m,t,i,o):r=S0(r,t,m,i,o))}return r}function S0(r,t,e,n,i,a){var o=i==="horizontal",s=i!=="horizontal",l=t.static;if(n){n=!1;var u={x:o?Math.max(t.x-e.w,0):e.x,y:s?Math.max(t.y-e.h,0):e.y,w:e.w,h:e.h,i:"-1"};if(!fu(r,u))return"Doing reverse collision on ".concat(e.i," up to [").concat(u.x,",").concat(u.y,"]."),x0(r,e,o?u.x:void 0,s?u.y:void 0,n,l,i)}return x0(r,e,o?e.x+1:void 0,s?e.y+1:void 0,n,l,i)}function $H(r){return r*100+"%"}function HH(r){var t=r.top,e=r.left,n=r.width,i=r.height,a="translate(".concat(e,"px,").concat(t,"px)");return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:"".concat(n,"px"),height:"".concat(i,"px"),position:"absolute"}}function WH(r){var t=r.top,e=r.left,n=r.width,i=r.height;return{top:"".concat(t,"px"),left:"".concat(e,"px"),width:"".concat(n,"px"),height:"".concat(i,"px"),position:"absolute"}}function w0(r,t){return t==="horizontal"?iD(r):t==="vertical"?nD(r):r}function nD(r){return r.slice(0).sort(function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?0:-1})}function iD(r){return r.slice(0).sort(function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:-1})}function GH(r,t,e,n,i){r=r||[];var a=[];g0.default.Children.forEach(t,function(s){if((s==null?void 0:s.key)!=null){var l=_0(r,String(s.key));if(l)a.push(ws(l));else{var u=s.props["data-grid"]||s.props._grid;u?a.push(ws(ZM(ZM({},u),{},{i:s.key}))):a.push(ws({w:1,h:1,x:0,y:m0(a),i:String(s.key)}))}}});var o=eD(a,{cols:e});return i?o:JM(o,n,e)}function UH(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout",e=["x","y","w","h"];if(!Array.isArray(r))throw new Error(t+" must be an array!");for(var n=0,i=r.length;n<i;n++)for(var a=r[n],o=0;o<e.length;o++)if(typeof a[e[o]]!="number")throw new Error("ReactGridLayout: "+t+"["+n+"]."+e[o]+" must be a number!")}function YH(r){var t=r||{},e=t.verticalCompact,n=t.compactType;return e===!1?null:n}function Ext(){}var jH=function(){};ae.noop=jH;var Ca={};Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.calcGridColWidth=hv,Ca.calcGridItemPosition=qH,Ca.calcGridItemWHPx=C0,Ca.calcWH=ZH,Ca.calcXY=XH,Ca.clamp=Qc;function hv(r){var t=r.margin,e=r.containerPadding,n=r.containerWidth,i=r.cols;return(n-t[0]*(i-1)-e[0]*2)/i}function C0(r,t,e){return Number.isFinite(r)?Math.round(t*r+Math.max(0,r-1)*e):r}function qH(r,t,e,n,i,a){var o=r.margin,s=r.containerPadding,l=r.rowHeight,u=hv(r),c={};return a&&a.resizing?(c.width=Math.round(a.resizing.width),c.height=Math.round(a.resizing.height)):(c.width=C0(n,u,o[0]),c.height=C0(i,l,o[1])),a&&a.dragging?(c.top=Math.round(a.dragging.top),c.left=Math.round(a.dragging.left)):(c.top=Math.round((l+o[1])*e+s[1]),c.left=Math.round((u+o[0])*t+s[0])),c}function XH(r,t,e,n,i){var a=r.margin,o=r.cols,s=r.rowHeight,l=r.maxRows,u=hv(r),c=Math.round((e-a[0])/(u+a[0])),h=Math.round((t-a[1])/(s+a[1]));return c=Qc(c,0,o-n),h=Qc(h,0,l-i),{x:c,y:h}}function ZH(r,t,e,n,i){var a=r.margin,o=r.maxRows,s=r.cols,l=r.rowHeight,u=hv(r),c=Math.round((t+a[0])/(u+a[0])),h=Math.round((e+a[1])/(l+a[1]));return c=Qc(c,0,s-n),h=Qc(h,0,o-i),{w:c,h}}function Qc(r,t,e){return Math.max(Math.min(r,e),t)}var fv={},Ta={exports:{}},KH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",QH=KH,JH=QH;function aD(){}function oD(){}oD.resetWarningCache=aD;var tW=function(){function r(n,i,a,o,s,l){if(l!==JH){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}r.isRequired=r;function t(){return r}var e={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:t,element:r,elementType:r,instanceOf:t,node:r,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:oD,resetWarningCache:aD};return e.PropTypes=e,e};Ta.exports=tW();var Jc={exports:{}},sD={},Ye={},Ui={};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.dontSetMe=aW,Ui.findInArray=eW,Ui.int=iW,Ui.isFunction=rW,Ui.isNum=nW;function eW(r,t){for(var e=0,n=r.length;e<n;e++)if(t.apply(t,[r[e],e,r]))return r[e]}function rW(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Function]"}function nW(r){return typeof r=="number"&&!isNaN(r)}function iW(r){return parseInt(r,10)}function aW(r,t,e){if(r[t])return new Error("Invalid prop ".concat(t," passed to ").concat(e," - do not set this, set it on the child."))}var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.browserPrefixToKey=uD,Cs.browserPrefixToStyle=oW,Cs.default=void 0,Cs.getPrefix=lD;var T0=["Moz","Webkit","O","ms"];function lD(){var r,t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var n=(r=window.document)===null||r===void 0||(t=r.documentElement)===null||t===void 0?void 0:t.style;if(!n||e in n)return"";for(var i=0;i<T0.length;i++)if(uD(e,T0[i])in n)return T0[i];return""}function uD(r,t){return t?"".concat(t).concat(sW(r)):r}function oW(r,t){return t?"-".concat(t.toLowerCase(),"-").concat(r):r}function sW(r){for(var t="",e=!0,n=0;n<r.length;n++)e?(t+=r[n].toUpperCase(),e=!1):r[n]==="-"?e=!0:t+=r[n];return t}var lW=lD();Cs.default=lW;function M0(r){return M0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M0(r)}Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.addClassName=gD,Ye.addEvent=hW,Ye.addUserSelectStyles=SW,Ye.createCSSTransform=yW,Ye.createSVGTransform=_W,Ye.getTouch=bW,Ye.getTouchIdentifier=xW,Ye.getTranslation=D0,Ye.innerHeight=pW,Ye.innerWidth=gW,Ye.matchesSelector=pD,Ye.matchesSelectorAndParentsTo=cW,Ye.offsetXYFromParent=mW,Ye.outerHeight=dW,Ye.outerWidth=vW,Ye.removeClassName=mD,Ye.removeEvent=fW,Ye.removeUserSelectStyles=wW;var Cn=Ui,cD=uW(Cs);function hD(r){if(typeof WeakMap!="function")return null;var t=new WeakMap,e=new WeakMap;return(hD=function(i){return i?e:t})(r)}function uW(r,t){if(!t&&r&&r.__esModule)return r;if(r===null||M0(r)!=="object"&&typeof r!="function")return{default:r};var e=hD(t);if(e&&e.has(r))return e.get(r);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)){var o=i?Object.getOwnPropertyDescriptor(r,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=r[a]}return n.default=r,e&&e.set(r,n),n}function fD(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,n)}return e}function dD(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(e),!0).forEach(function(n){vD(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):fD(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function vD(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var dv="";function pD(r,t){return dv||(dv=(0,Cn.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(e){return(0,Cn.isFunction)(r[e])})),(0,Cn.isFunction)(r[dv])?r[dv](t):!1}function cW(r,t,e){var n=r;do{if(pD(n,t))return!0;if(n===e)return!1;n=n.parentNode}while(n);return!1}function hW(r,t,e,n){if(!!r){var i=dD({capture:!0},n);r.addEventListener?r.addEventListener(t,e,i):r.attachEvent?r.attachEvent("on"+t,e):r["on"+t]=e}}function fW(r,t,e,n){if(!!r){var i=dD({capture:!0},n);r.removeEventListener?r.removeEventListener(t,e,i):r.detachEvent?r.detachEvent("on"+t,e):r["on"+t]=null}}function dW(r){var t=r.clientHeight,e=r.ownerDocument.defaultView.getComputedStyle(r);return t+=(0,Cn.int)(e.borderTopWidth),t+=(0,Cn.int)(e.borderBottomWidth),t}function vW(r){var t=r.clientWidth,e=r.ownerDocument.defaultView.getComputedStyle(r);return t+=(0,Cn.int)(e.borderLeftWidth),t+=(0,Cn.int)(e.borderRightWidth),t}function pW(r){var t=r.clientHeight,e=r.ownerDocument.defaultView.getComputedStyle(r);return t-=(0,Cn.int)(e.paddingTop),t-=(0,Cn.int)(e.paddingBottom),t}function gW(r){var t=r.clientWidth,e=r.ownerDocument.defaultView.getComputedStyle(r);return t-=(0,Cn.int)(e.paddingLeft),t-=(0,Cn.int)(e.paddingRight),t}function mW(r,t,e){var n=t===t.ownerDocument.body,i=n?{left:0,top:0}:t.getBoundingClientRect(),a=(r.clientX+t.scrollLeft-i.left)/e,o=(r.clientY+t.scrollTop-i.top)/e;return{x:a,y:o}}function yW(r,t){var e=D0(r,t,"px");return vD({},(0,cD.browserPrefixToKey)("transform",cD.default),e)}function _W(r,t){var e=D0(r,t,"");return e}function D0(r,t,e){var n=r.x,i=r.y,a="translate(".concat(n).concat(e,",").concat(i).concat(e,")");if(t){var o="".concat(typeof t.x=="string"?t.x:t.x+e),s="".concat(typeof t.y=="string"?t.y:t.y+e);a="translate(".concat(o,", ").concat(s,")")+a}return a}function bW(r,t){return r.targetTouches&&(0,Cn.findInArray)(r.targetTouches,function(e){return t===e.identifier})||r.changedTouches&&(0,Cn.findInArray)(r.changedTouches,function(e){return t===e.identifier})}function xW(r){if(r.targetTouches&&r.targetTouches[0])return r.targetTouches[0].identifier;if(r.changedTouches&&r.changedTouches[0])return r.changedTouches[0].identifier}function SW(r){if(!!r){var t=r.getElementById("react-draggable-style-el");t||(t=r.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1
+ (function(vo,R){typeof exports=="object"&&typeof module!="undefined"?R(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],R):(vo=typeof globalThis!="undefined"?globalThis:vo||self,R(vo.Databrain={},vo.React,vo.ReactDOM))})(this,function(vo,R,Q$){"use strict";function TM(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function J$(r){if(r&&r.__esModule)return r;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return r&&Object.keys(r).forEach(function(e){if(e!=="default"){var n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:function(){return r[e]}})}}),t.default=r,Object.freeze(t)}var l0=J$(R),lt=TM(R),Kd=TM(Q$);function u0(r,t){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},u0(r,t)}function xs(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,u0(r,t)}var tH=function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=[]),t.length!==e.length||t.some(function(n,i){return!Object.is(n,e[i])})},MM={error:null},eH=function(r){xs(t,r);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=r.call.apply(r,[this].concat(a))||this,n.state=MM,n.resetErrorBoundary=function(){for(var s,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];n.props.onReset==null||(s=n.props).onReset.apply(s,u),n.reset()},n}t.getDerivedStateFromError=function(i){return{error:i}};var e=t.prototype;return e.reset=function(){this.setState(MM)},e.componentDidCatch=function(i,a){var o,s;(o=(s=this.props).onError)==null||o.call(s,i,a)},e.componentDidUpdate=function(i,a){var o=this.state.error,s=this.props.resetKeys;if(o!==null&&a.error!==null&&tH(i.resetKeys,s)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,i.resetKeys,s),this.reset()}},e.render=function(){var i=this.state.error,a=this.props,o=a.fallbackRender,s=a.FallbackComponent,l=a.fallback;if(i!==null){var u={error:i,resetErrorBoundary:this.resetErrorBoundary};if(l0.isValidElement(l))return l;if(typeof o=="function")return o(u);if(s)return l0.createElement(s,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(l0.Component),hu=function(){function r(){this.listeners=[]}var t=r.prototype;return t.subscribe=function(n){var i=this,a=n||function(){};return this.listeners.push(a),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(o){return o!==a}),i.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},r}();function ie(){return ie=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},ie.apply(this,arguments)}var Qd=typeof window=="undefined";function xr(){}function rH(r,t){return typeof r=="function"?r(t):r}function c0(r){return typeof r=="number"&&r>=0&&r!==1/0}function Jd(r){return Array.isArray(r)?r:[r]}function DM(r,t){return Math.max(r+(t||0)-Date.now(),0)}function tv(r,t,e){return qc(r)?typeof t=="function"?ie({},e,{queryKey:r,queryFn:t}):ie({},t,{queryKey:r}):r}function nH(r,t,e){return qc(r)?typeof t=="function"?ie({},e,{mutationKey:r,mutationFn:t}):ie({},t,{mutationKey:r}):typeof r=="function"?ie({},t,{mutationFn:r}):ie({},r)}function po(r,t,e){return qc(r)?[ie({},t,{queryKey:r}),e]:[r||{},t]}function iH(r,t){if(r===!0&&t===!0||r==null&&t==null)return"all";if(r===!1&&t===!1)return"none";var e=r!=null?r:!t;return e?"active":"inactive"}function AM(r,t){var e=r.active,n=r.exact,i=r.fetching,a=r.inactive,o=r.predicate,s=r.queryKey,l=r.stale;if(qc(s)){if(n){if(t.queryHash!==h0(s,t.options))return!1}else if(!ev(t.queryKey,s))return!1}var u=iH(e,a);if(u==="none")return!1;if(u!=="all"){var c=t.isActive();if(u==="active"&&!c||u==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i=="boolean"&&t.isFetching()!==i||o&&!o(t))}function LM(r,t){var e=r.exact,n=r.fetching,i=r.predicate,a=r.mutationKey;if(qc(a)){if(!t.options.mutationKey)return!1;if(e){if(Ss(t.options.mutationKey)!==Ss(a))return!1}else if(!ev(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function h0(r,t){var e=(t==null?void 0:t.queryKeyHashFn)||Ss;return e(r)}function Ss(r){var t=Jd(r);return aH(t)}function aH(r){return JSON.stringify(r,function(t,e){return f0(e)?Object.keys(e).sort().reduce(function(n,i){return n[i]=e[i],n},{}):e})}function ev(r,t){return PM(Jd(r),Jd(t))}function PM(r,t){return r===t?!0:typeof r!=typeof t?!1:r&&t&&typeof r=="object"&&typeof t=="object"?!Object.keys(t).some(function(e){return!PM(r[e],t[e])}):!1}function rv(r,t){if(r===t)return r;var e=Array.isArray(r)&&Array.isArray(t);if(e||f0(r)&&f0(t)){for(var n=e?r.length:Object.keys(r).length,i=e?t:Object.keys(t),a=i.length,o=e?[]:{},s=0,l=0;l<a;l++){var u=e?l:i[l];o[u]=rv(r[u],t[u]),o[u]===r[u]&&s++}return n===a&&s===n?r:o}return t}function oH(r,t){if(r&&!t||t&&!r)return!1;for(var e in r)if(r[e]!==t[e])return!1;return!0}function f0(r){if(!IM(r))return!1;var t=r.constructor;if(typeof t=="undefined")return!0;var e=t.prototype;return!(!IM(e)||!e.hasOwnProperty("isPrototypeOf"))}function IM(r){return Object.prototype.toString.call(r)==="[object Object]"}function qc(r){return typeof r=="string"||Array.isArray(r)}function sH(r){return new Promise(function(t){setTimeout(t,r)})}function OM(r){Promise.resolve().then(r).catch(function(t){return setTimeout(function(){throw t})})}function EM(){if(typeof AbortController=="function")return new AbortController}var lH=function(r){xs(t,r);function t(){var n;return n=r.call(this)||this,n.setup=function(i){var a;if(!Qd&&((a=window)==null?void 0:a.addEventListener)){var o=function(){return i()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},n}var e=t.prototype;return e.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},e.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},e.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setFocused(s):o.onFocus()})},e.setFocused=function(i){this.focused=i,i&&this.onFocus()},e.onFocus=function(){this.listeners.forEach(function(i){i()})},e.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(hu),Xc=new lH,uH=function(r){xs(t,r);function t(){var n;return n=r.call(this)||this,n.setup=function(i){var a;if(!Qd&&((a=window)==null?void 0:a.addEventListener)){var o=function(){return i()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},n}var e=t.prototype;return e.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},e.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},e.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setOnline(s):o.onOnline()})},e.setOnline=function(i){this.online=i,i&&this.onOnline()},e.onOnline=function(){this.listeners.forEach(function(i){i()})},e.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine},t}(hu),nv=new uH;function cH(r){return Math.min(1e3*Math.pow(2,r),3e4)}function iv(r){return typeof(r==null?void 0:r.cancel)=="function"}var kM=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function av(r){return r instanceof kM}var RM=function(t){var e=this,n=!1,i,a,o,s;this.abort=t.abort,this.cancel=function(f){return i==null?void 0:i(f)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(f,d){o=f,s=d});var l=function(d){e.isResolved||(e.isResolved=!0,t.onSuccess==null||t.onSuccess(d),a==null||a(),o(d))},u=function(d){e.isResolved||(e.isResolved=!0,t.onError==null||t.onError(d),a==null||a(),s(d))},c=function(){return new Promise(function(d){a=d,e.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,e.isPaused=!1,t.onContinue==null||t.onContinue()})},h=function f(){if(!e.isResolved){var d;try{d=t.fn()}catch(v){d=Promise.reject(v)}i=function(p){if(!e.isResolved&&(u(new kM(p)),e.abort==null||e.abort(),iv(d)))try{d.cancel()}catch{}},e.isTransportCancelable=iv(d),Promise.resolve(d).then(l).catch(function(v){var p,g;if(!e.isResolved){var m=(p=t.retry)!=null?p:3,y=(g=t.retryDelay)!=null?g:cH,_=typeof y=="function"?y(e.failureCount,v):y,b=m===!0||typeof m=="number"&&e.failureCount<m||typeof m=="function"&&m(e.failureCount,v);if(n||!b){u(v);return}e.failureCount++,t.onFail==null||t.onFail(e.failureCount,v),sH(_).then(function(){if(!Xc.isFocused()||!nv.isOnline())return c()}).then(function(){n?u(v):f()})}})}};h()},hH=function(){function r(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=r.prototype;return t.batch=function(n){var i;this.transactions++;try{i=n()}finally{this.transactions--,this.transactions||this.flush()}return i},t.schedule=function(n){var i=this;this.transactions?this.queue.push(n):OM(function(){i.notifyFn(n)})},t.batchCalls=function(n){var i=this;return function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];i.schedule(function(){n.apply(void 0,o)})}},t.flush=function(){var n=this,i=this.queue;this.queue=[],i.length&&OM(function(){n.batchNotifyFn(function(){i.forEach(function(a){n.notifyFn(a)})})})},t.setNotifyFunction=function(n){this.notifyFn=n},t.setBatchNotifyFunction=function(n){this.batchNotifyFn=n},r}(),ke=new hH,NM=console;function ov(){return NM}function fH(r){NM=r}var dH=function(){function r(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=r.prototype;return t.setOptions=function(n){var i;this.options=ie({},this.defaultOptions,n),this.meta=n==null?void 0:n.meta,this.cacheTime=Math.max(this.cacheTime||0,(i=this.options.cacheTime)!=null?i:5*60*1e3)},t.setDefaultOptions=function(n){this.defaultOptions=n},t.scheduleGc=function(){var n=this;this.clearGcTimeout(),c0(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){n.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(n,i){var a,o,s=this.state.data,l=rH(n,s);return(a=(o=this.options).isDataEqual)!=null&&a.call(o,s,l)?l=s:this.options.structuralSharing!==!1&&(l=rv(s,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt}),l},t.setState=function(n,i){this.dispatch({type:"setState",state:n,setStateOptions:i})},t.cancel=function(n){var i,a=this.promise;return(i=this.retryer)==null||i.cancel(n),a?a.then(xr).catch(xr):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(n){return n.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(n){return n.getCurrentResult().isStale})},t.isStaleByTime=function(n){return n===void 0&&(n=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!DM(this.state.dataUpdatedAt,n)},t.onFocus=function(){var n,i=this.observers.find(function(a){return a.shouldFetchOnWindowFocus()});i&&i.refetch(),(n=this.retryer)==null||n.continue()},t.onOnline=function(){var n,i=this.observers.find(function(a){return a.shouldFetchOnReconnect()});i&&i.refetch(),(n=this.retryer)==null||n.continue()},t.addObserver=function(n){this.observers.indexOf(n)===-1&&(this.observers.push(n),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:n}))},t.removeObserver=function(n){this.observers.indexOf(n)!==-1&&(this.observers=this.observers.filter(function(i){return i!==n}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:n}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(n,i){var a=this,o,s,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(i==null?void 0:i.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var u;return(u=this.retryer)==null||u.continueRetry(),this.promise}}if(n&&this.setOptions(n),!this.options.queryFn){var c=this.observers.find(function(y){return y.options.queryFn});c&&this.setOptions(c.options)}var h=Jd(this.queryKey),f=EM(),d={queryKey:h,pageParam:void 0,meta:this.meta};Object.defineProperty(d,"signal",{enumerable:!0,get:function(){if(f)return a.abortSignalConsumed=!0,f.signal}});var v=function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(d)):Promise.reject("Missing queryFn")},p={fetchOptions:i,options:this.options,queryKey:h,state:this.state,fetchFn:v,meta:this.meta};if((o=this.options.behavior)!=null&&o.onFetch){var g;(g=this.options.behavior)==null||g.onFetch(p)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((s=p.fetchOptions)==null?void 0:s.meta)){var m;this.dispatch({type:"fetch",meta:(m=p.fetchOptions)==null?void 0:m.meta})}return this.retryer=new RM({fn:p.fetchFn,abort:f==null||(l=f.abort)==null?void 0:l.bind(f),onSuccess:function(_){a.setData(_),a.cache.config.onSuccess==null||a.cache.config.onSuccess(_,a),a.cacheTime===0&&a.optionalRemove()},onError:function(_){av(_)&&_.silent||a.dispatch({type:"error",error:_}),av(_)||(a.cache.config.onError==null||a.cache.config.onError(_,a),ov().error(_)),a.cacheTime===0&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(n){var i=this;this.state=this.reducer(this.state,n),ke.batch(function(){i.observers.forEach(function(a){a.onQueryUpdate(n)}),i.cache.notify({query:i,type:"queryUpdated",action:n})})},t.getDefaultState=function(n){var i=typeof n.initialData=="function"?n.initialData():n.initialData,a=typeof n.initialData!="undefined",o=a?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0,s=typeof i!="undefined";return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o!=null?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:s?"success":"idle"}},t.reducer=function(n,i){var a,o;switch(i.type){case"failed":return ie({},n,{fetchFailureCount:n.fetchFailureCount+1});case"pause":return ie({},n,{isPaused:!0});case"continue":return ie({},n,{isPaused:!1});case"fetch":return ie({},n,{fetchFailureCount:0,fetchMeta:(a=i.meta)!=null?a:null,isFetching:!0,isPaused:!1},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return ie({},n,{data:i.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(o=i.dataUpdatedAt)!=null?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=i.error;return av(s)&&s.revert&&this.revertState?ie({},this.revertState):ie({},n,{error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return ie({},n,{isInvalidated:!0});case"setState":return ie({},n,i.state);default:return n}},r}(),vH=function(r){xs(t,r);function t(n){var i;return i=r.call(this)||this,i.config=n||{},i.queries=[],i.queriesMap={},i}var e=t.prototype;return e.build=function(i,a,o){var s,l=a.queryKey,u=(s=a.queryHash)!=null?s:h0(l,a),c=this.get(u);return c||(c=new dH({cache:this,queryKey:l,queryHash:u,options:i.defaultQueryOptions(a),state:o,defaultOptions:i.getQueryDefaults(l),meta:a.meta}),this.add(c)),c},e.add=function(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"queryAdded",query:i}))},e.remove=function(i){var a=this.queriesMap[i.queryHash];a&&(i.destroy(),this.queries=this.queries.filter(function(o){return o!==i}),a===i&&delete this.queriesMap[i.queryHash],this.notify({type:"queryRemoved",query:i}))},e.clear=function(){var i=this;ke.batch(function(){i.queries.forEach(function(a){i.remove(a)})})},e.get=function(i){return this.queriesMap[i]},e.getAll=function(){return this.queries},e.find=function(i,a){var o=po(i,a),s=o[0];return typeof s.exact=="undefined"&&(s.exact=!0),this.queries.find(function(l){return AM(s,l)})},e.findAll=function(i,a){var o=po(i,a),s=o[0];return Object.keys(s).length>0?this.queries.filter(function(l){return AM(s,l)}):this.queries},e.notify=function(i){var a=this;ke.batch(function(){a.listeners.forEach(function(o){o(i)})})},e.onFocus=function(){var i=this;ke.batch(function(){i.queries.forEach(function(a){a.onFocus()})})},e.onOnline=function(){var i=this;ke.batch(function(){i.queries.forEach(function(a){a.onOnline()})})},t}(hu),pH=function(){function r(e){this.options=ie({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||BM(),this.meta=e.meta}var t=r.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(i){return i!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(xr).catch(xr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,i,a=this.state.status==="loading",o=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),o.then(function(){return n.executeMutation()}).then(function(s){i=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(i,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(i,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(i,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:i}),i}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),ov().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,i;return this.retryer=new RM({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var i=this;this.state=gH(this.state,n),ke.batch(function(){i.observers.forEach(function(a){a.onMutationUpdate(n)}),i.mutationCache.notify(i)})},r}();function BM(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function gH(r,t){switch(t.type){case"failed":return ie({},r,{failureCount:r.failureCount+1});case"pause":return ie({},r,{isPaused:!0});case"continue":return ie({},r,{isPaused:!1});case"loading":return ie({},r,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return ie({},r,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return ie({},r,{data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"});case"setState":return ie({},r,t.state);default:return r}}var mH=function(r){xs(t,r);function t(n){var i;return i=r.call(this)||this,i.config=n||{},i.mutations=[],i.mutationId=0,i}var e=t.prototype;return e.build=function(i,a,o){var s=new pH({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(a),state:o,defaultOptions:a.mutationKey?i.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},e.add=function(i){this.mutations.push(i),this.notify(i)},e.remove=function(i){this.mutations=this.mutations.filter(function(a){return a!==i}),i.cancel(),this.notify(i)},e.clear=function(){var i=this;ke.batch(function(){i.mutations.forEach(function(a){i.remove(a)})})},e.getAll=function(){return this.mutations},e.find=function(i){return typeof i.exact=="undefined"&&(i.exact=!0),this.mutations.find(function(a){return LM(i,a)})},e.findAll=function(i){return this.mutations.filter(function(a){return LM(i,a)})},e.notify=function(i){var a=this;ke.batch(function(){a.listeners.forEach(function(o){o(i)})})},e.onFocus=function(){this.resumePausedMutations()},e.onOnline=function(){this.resumePausedMutations()},e.resumePausedMutations=function(){var i=this.mutations.filter(function(a){return a.state.isPaused});return ke.batch(function(){return i.reduce(function(a,o){return a.then(function(){return o.continue().catch(xr)})},Promise.resolve())})},t}(hu);function yH(){return{onFetch:function(t){t.fetchFn=function(){var e,n,i,a,o,s,l=(e=t.fetchOptions)==null||(n=e.meta)==null?void 0:n.refetchPage,u=(i=t.fetchOptions)==null||(a=i.meta)==null?void 0:a.fetchMore,c=u==null?void 0:u.pageParam,h=(u==null?void 0:u.direction)==="forward",f=(u==null?void 0:u.direction)==="backward",d=((o=t.state.data)==null?void 0:o.pages)||[],v=((s=t.state.data)==null?void 0:s.pageParams)||[],p=EM(),g=p==null?void 0:p.signal,m=v,y=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},b=function(O,E,k,B){return m=B?[E].concat(m):[].concat(m,[E]),B?[k].concat(O):[].concat(O,[k])},S=function(O,E,k,B){if(y)return Promise.reject("Cancelled");if(typeof k=="undefined"&&!E&&O.length)return Promise.resolve(O);var F={queryKey:t.queryKey,signal:g,pageParam:k,meta:t.meta},W=_(F),Z=Promise.resolve(W).then(function($){return b(O,k,$,B)});if(iv(W)){var Q=Z;Q.cancel=W.cancel}return Z},x;if(!d.length)x=S([]);else if(h){var w=typeof c!="undefined",C=w?c:zM(t.options,d);x=S(d,w,C)}else if(f){var M=typeof c!="undefined",D=M?c:_H(t.options,d);x=S(d,M,D,!0)}else(function(){m=[];var I=typeof t.options.getNextPageParam=="undefined",O=l&&d[0]?l(d[0],0,d):!0;x=O?S([],I,v[0]):Promise.resolve(b([],v[0],d[0]));for(var E=function(F){x=x.then(function(W){var Z=l&&d[F]?l(d[F],F,d):!0;if(Z){var Q=I?v[F]:zM(t.options,W);return S(W,I,Q)}return Promise.resolve(b(W,v[F],d[F]))})},k=1;k<d.length;k++)E(k)})();var A=x.then(function(I){return{pages:I,pageParams:m}}),P=A;return P.cancel=function(){y=!0,p==null||p.abort(),iv(x)&&x.cancel()},A}}}}function zM(r,t){return r.getNextPageParam==null?void 0:r.getNextPageParam(t[t.length-1],t)}function _H(r,t){return r.getPreviousPageParam==null?void 0:r.getPreviousPageParam(t[0],t)}var bH=function(){function r(e){e===void 0&&(e={}),this.queryCache=e.queryCache||new vH,this.mutationCache=e.mutationCache||new mH,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=r.prototype;return t.mount=function(){var n=this;this.unsubscribeFocus=Xc.subscribe(function(){Xc.isFocused()&&nv.isOnline()&&(n.mutationCache.onFocus(),n.queryCache.onFocus())}),this.unsubscribeOnline=nv.subscribe(function(){Xc.isFocused()&&nv.isOnline()&&(n.mutationCache.onOnline(),n.queryCache.onOnline())})},t.unmount=function(){var n,i;(n=this.unsubscribeFocus)==null||n.call(this),(i=this.unsubscribeOnline)==null||i.call(this)},t.isFetching=function(n,i){var a=po(n,i),o=a[0];return o.fetching=!0,this.queryCache.findAll(o).length},t.isMutating=function(n){return this.mutationCache.findAll(ie({},n,{fetching:!0})).length},t.getQueryData=function(n,i){var a;return(a=this.queryCache.find(n,i))==null?void 0:a.state.data},t.getQueriesData=function(n){return this.getQueryCache().findAll(n).map(function(i){var a=i.queryKey,o=i.state,s=o.data;return[a,s]})},t.setQueryData=function(n,i,a){var o=tv(n),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(i,a)},t.setQueriesData=function(n,i,a){var o=this;return ke.batch(function(){return o.getQueryCache().findAll(n).map(function(s){var l=s.queryKey;return[l,o.setQueryData(l,i,a)]})})},t.getQueryState=function(n,i){var a;return(a=this.queryCache.find(n,i))==null?void 0:a.state},t.removeQueries=function(n,i){var a=po(n,i),o=a[0],s=this.queryCache;ke.batch(function(){s.findAll(o).forEach(function(l){s.remove(l)})})},t.resetQueries=function(n,i,a){var o=this,s=po(n,i,a),l=s[0],u=s[1],c=this.queryCache,h=ie({},l,{active:!0});return ke.batch(function(){return c.findAll(l).forEach(function(f){f.reset()}),o.refetchQueries(h,u)})},t.cancelQueries=function(n,i,a){var o=this,s=po(n,i,a),l=s[0],u=s[1],c=u===void 0?{}:u;typeof c.revert=="undefined"&&(c.revert=!0);var h=ke.batch(function(){return o.queryCache.findAll(l).map(function(f){return f.cancel(c)})});return Promise.all(h).then(xr).catch(xr)},t.invalidateQueries=function(n,i,a){var o,s,l,u=this,c=po(n,i,a),h=c[0],f=c[1],d=ie({},h,{active:(o=(s=h.refetchActive)!=null?s:h.active)!=null?o:!0,inactive:(l=h.refetchInactive)!=null?l:!1});return ke.batch(function(){return u.queryCache.findAll(h).forEach(function(v){v.invalidate()}),u.refetchQueries(d,f)})},t.refetchQueries=function(n,i,a){var o=this,s=po(n,i,a),l=s[0],u=s[1],c=ke.batch(function(){return o.queryCache.findAll(l).map(function(f){return f.fetch(void 0,ie({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),h=Promise.all(c).then(xr);return u!=null&&u.throwOnError||(h=h.catch(xr)),h},t.fetchQuery=function(n,i,a){var o=tv(n,i,a),s=this.defaultQueryOptions(o);typeof s.retry=="undefined"&&(s.retry=!1);var l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)},t.prefetchQuery=function(n,i,a){return this.fetchQuery(n,i,a).then(xr).catch(xr)},t.fetchInfiniteQuery=function(n,i,a){var o=tv(n,i,a);return o.behavior=yH(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(n,i,a){return this.fetchInfiniteQuery(n,i,a).then(xr).catch(xr)},t.cancelMutations=function(){var n=this,i=ke.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(i).then(xr).catch(xr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,i){var a=this.queryDefaults.find(function(o){return Ss(n)===Ss(o.queryKey)});a?a.defaultOptions=i:this.queryDefaults.push({queryKey:n,defaultOptions:i})},t.getQueryDefaults=function(n){var i;return n?(i=this.queryDefaults.find(function(a){return ev(n,a.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(n,i){var a=this.mutationDefaults.find(function(o){return Ss(n)===Ss(o.mutationKey)});a?a.defaultOptions=i:this.mutationDefaults.push({mutationKey:n,defaultOptions:i})},t.getMutationDefaults=function(n){var i;return n?(i=this.mutationDefaults.find(function(a){return ev(n,a.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var i=ie({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=h0(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:ie({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},r}(),xH=function(r){xs(t,r);function t(n,i){var a;return a=r.call(this)||this,a.client=n,a.options=i,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(i),a}var e=t.prototype;return e.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},e.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),FM(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},e.onUnsubscribe=function(){this.listeners.length||this.destroy()},e.shouldFetchOnReconnect=function(){return d0(this.currentQuery,this.options,this.options.refetchOnReconnect)},e.shouldFetchOnWindowFocus=function(){return d0(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},e.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},e.setOptions=function(i,a){var o=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var l=this.hasListeners();l&&VM(this.currentQuery,s,this.options,o)&&this.executeFetch(),this.updateResult(a),l&&(this.currentQuery!==s||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();l&&(this.currentQuery!==s||this.options.enabled!==o.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},e.getOptimisticResult=function(i){var a=this.client.defaultQueryObserverOptions(i),o=this.client.getQueryCache().build(this.client,a);return this.createResult(o,a)},e.getCurrentResult=function(){return this.currentResult},e.trackResult=function(i,a){var o=this,s={},l=function(c){o.trackedProps.includes(c)||o.trackedProps.push(c)};return Object.keys(i).forEach(function(u){Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:function(){return l(u),i[u]}})}),(a.useErrorBoundary||a.suspense)&&l("error"),s},e.getNextResult=function(i){var a=this;return new Promise(function(o,s){var l=a.subscribe(function(u){u.isFetching||(l(),u.isError&&(i==null?void 0:i.throwOnError)?s(u.error):o(u))})})},e.getCurrentQuery=function(){return this.currentQuery},e.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},e.refetch=function(i){return this.fetch(ie({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},e.fetchOptimistic=function(i){var a=this,o=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,o);return s.fetch().then(function(){return a.createResult(s,o)})},e.fetch=function(i){var a=this;return this.executeFetch(i).then(function(){return a.updateResult(),a.currentResult})},e.executeFetch=function(i){this.updateQuery();var a=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(a=a.catch(xr)),a},e.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Qd||this.currentResult.isStale||!c0(this.options.staleTime))){var a=DM(this.currentResult.dataUpdatedAt,this.options.staleTime),o=a+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},o)}},e.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},e.updateRefetchInterval=function(i){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Qd||this.options.enabled===!1||!c0(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Xc.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},e.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},e.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},e.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},e.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},e.createResult=function(i,a){var o=this.currentQuery,s=this.options,l=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,h=i!==o,f=h?i.state:this.currentQueryInitialState,d=h?this.currentResult:this.previousQueryResult,v=i.state,p=v.dataUpdatedAt,g=v.error,m=v.errorUpdatedAt,y=v.isFetching,_=v.status,b=!1,S=!1,x;if(a.optimisticResults){var w=this.hasListeners(),C=!w&&FM(i,a),M=w&&VM(i,o,a,s);(C||M)&&(y=!0,p||(_="loading"))}if(a.keepPreviousData&&!v.dataUpdateCount&&(d==null?void 0:d.isSuccess)&&_!=="error")x=d.data,p=d.dataUpdatedAt,_=d.status,b=!0;else if(a.select&&typeof v.data!="undefined")if(l&&v.data===(u==null?void 0:u.data)&&a.select===this.selectFn)x=this.selectResult;else try{this.selectFn=a.select,x=a.select(v.data),a.structuralSharing!==!1&&(x=rv(l==null?void 0:l.data,x)),this.selectResult=x,this.selectError=null}catch(P){ov().error(P),this.selectError=P}else x=v.data;if(typeof a.placeholderData!="undefined"&&typeof x=="undefined"&&(_==="loading"||_==="idle")){var D;if((l==null?void 0:l.isPlaceholderData)&&a.placeholderData===(c==null?void 0:c.placeholderData))D=l.data;else if(D=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof D!="undefined")try{D=a.select(D),a.structuralSharing!==!1&&(D=rv(l==null?void 0:l.data,D)),this.selectError=null}catch(P){ov().error(P),this.selectError=P}typeof D!="undefined"&&(_="success",x=D,S=!0)}this.selectError&&(g=this.selectError,x=this.selectResult,m=Date.now(),_="error");var A={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:x,dataUpdatedAt:p,error:g,errorUpdatedAt:m,failureCount:v.fetchFailureCount,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>f.dataUpdateCount||v.errorUpdateCount>f.errorUpdateCount,isFetching:y,isRefetching:y&&_!=="loading",isLoadingError:_==="error"&&v.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:b,isRefetchError:_==="error"&&v.dataUpdatedAt!==0,isStale:v0(i,a),refetch:this.refetch,remove:this.remove};return A},e.shouldNotifyListeners=function(i,a){if(!a)return!0;var o=this.options,s=o.notifyOnChangeProps,l=o.notifyOnChangePropsExclusions;if(!s&&!l||s==="tracked"&&!this.trackedProps.length)return!0;var u=s==="tracked"?this.trackedProps:s;return Object.keys(i).some(function(c){var h=c,f=i[h]!==a[h],d=u==null?void 0:u.some(function(p){return p===c}),v=l==null?void 0:l.some(function(p){return p===c});return f&&!v&&(!u||d)})},e.updateResult=function(i){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!oH(this.currentResult,a)){var o={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(o.listeners=!0),this.notify(ie({},o,i))}},e.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var a=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),i.addObserver(this))}},e.onQueryUpdate=function(i){var a={};i.type==="success"?a.onSuccess=!0:i.type==="error"&&!av(i.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},e.notify=function(i){var a=this;ke.batch(function(){i.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):i.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),i.listeners&&a.listeners.forEach(function(o){o(a.currentResult)}),i.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(hu);function SH(r,t){return t.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&t.retryOnMount===!1)}function FM(r,t){return SH(r,t)||r.state.dataUpdatedAt>0&&d0(r,t,t.refetchOnMount)}function d0(r,t,e){if(t.enabled!==!1){var n=typeof e=="function"?e(r):e;return n==="always"||n!==!1&&v0(r,t)}return!1}function VM(r,t,e,n){return e.enabled!==!1&&(r!==t||n.enabled===!1)&&(!e.suspense||r.state.status!=="error")&&v0(r,e)}function v0(r,t){return r.isStaleByTime(t.staleTime)}var wH=function(r){xs(t,r);function t(n,i){var a;return a=r.call(this)||this,a.client=n,a.setOptions(i),a.bindMethods(),a.updateResult(),a}var e=t.prototype;return e.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},e.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},e.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},e.onMutationUpdate=function(i){this.updateResult();var a={listeners:!0};i.type==="success"?a.onSuccess=!0:i.type==="error"&&(a.onError=!0),this.notify(a)},e.getCurrentResult=function(){return this.currentResult},e.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},e.mutate=function(i,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,ie({},this.options,{variables:typeof i!="undefined"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},e.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:BM(),a=ie({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},e.notify=function(i){var a=this;ke.batch(function(){a.mutateOptions&&(i.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):i.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),i.listeners&&a.listeners.forEach(function(o){o(a.currentResult)})})},t}(hu),CH=Kd.default.unstable_batchedUpdates;ke.setBatchNotifyFunction(CH);var TH=console;fH(TH);var $M=lt.default.createContext(void 0),HM=lt.default.createContext(!1);function WM(r){return r&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=$M),window.ReactQueryClientContext):$M}var GM=function(){var t=lt.default.useContext(WM(lt.default.useContext(HM)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MH=function(t){var e=t.client,n=t.contextSharing,i=n===void 0?!1:n,a=t.children;lt.default.useEffect(function(){return e.mount(),function(){e.unmount()}},[e]);var o=WM(i);return lt.default.createElement(HM.Provider,{value:i},lt.default.createElement(o.Provider,{value:e},a))};function DH(){var r=!1;return{clearReset:function(){r=!1},reset:function(){r=!0},isReset:function(){return r}}}var AH=lt.default.createContext(DH()),LH=function(){return lt.default.useContext(AH)};function UM(r,t,e){return typeof t=="function"?t.apply(void 0,e):typeof t=="boolean"?t:!!r}function sv(r,t,e){var n=lt.default.useRef(!1),i=lt.default.useState(0),a=i[1],o=nH(r,t,e),s=GM(),l=lt.default.useRef();l.current?l.current.setOptions(o):l.current=new wH(s,o);var u=l.current.getCurrentResult();lt.default.useEffect(function(){n.current=!0;var h=l.current.subscribe(ke.batchCalls(function(){n.current&&a(function(f){return f+1})}));return function(){n.current=!1,h()}},[]);var c=lt.default.useCallback(function(h,f){l.current.mutate(h,f).catch(xr)},[]);if(u.error&&UM(void 0,l.current.options.useErrorBoundary,[u.error]))throw u.error;return ie({},u,{mutate:c,mutateAsync:u.mutate})}function PH(r,t){var e=lt.default.useRef(!1),n=lt.default.useState(0),i=n[1],a=GM(),o=LH(),s=a.defaultQueryObserverOptions(r);s.optimisticResults=!0,s.onError&&(s.onError=ke.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=ke.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=ke.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(o.isReset()||(s.retryOnMount=!1));var l=lt.default.useState(function(){return new t(a,s)}),u=l[0],c=u.getOptimisticResult(s);if(lt.default.useEffect(function(){e.current=!0,o.clearReset();var h=u.subscribe(ke.batchCalls(function(){e.current&&i(function(f){return f+1})}));return u.updateResult(),function(){e.current=!1,h()}},[o,u]),lt.default.useEffect(function(){u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&c.isLoading)throw u.fetchOptimistic(s).then(function(h){var f=h.data;s.onSuccess==null||s.onSuccess(f),s.onSettled==null||s.onSettled(f,null)}).catch(function(h){o.clearReset(),s.onError==null||s.onError(h),s.onSettled==null||s.onSettled(void 0,h)});if(c.isError&&!o.isReset()&&!c.isFetching&&UM(s.suspense,s.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=u.trackResult(c,s)),c}function go(r,t,e){var n=tv(r,t,e);return PH(n,xH)}var hn={container:"_container_1hfou_1",static:"_static_1hfou_387",fixed:"_fixed_1hfou_1",absolute:"_absolute_1hfou_1","left-2":"_left-2_1hfou_1","top-1":"_top-1_1hfou_1","mb-2":"_mb-2_1hfou_1","mt-2":"_mt-2_1hfou_1","mt-2.5":"_mt-2.5_1hfou_1","mb-3":"_mb-3_1hfou_1",flex:"_flex_1hfou_1",table:"_table_1hfou_1",grid:"_grid_1hfou_1",hidden:"_hidden_1hfou_1","h-screen":"_h-screen_1hfou_1","h-full":"_h-full_1hfou_1","h-80":"_h-80_1hfou_1","w-screen":"_w-screen_1hfou_1","w-full":"_w-full_1hfou_1","w-[200px]":"_w-[200px]_1hfou_1",transform:"_transform_1hfou_1","flex-col":"_flex-col_1hfou_1","items-center":"_items-center_1hfou_1","justify-center":"_justify-center_1hfou_1","gap-5":"_gap-5_1hfou_1","divide-solid":"_divide-solid_1hfou_1","overflow-y-auto":"_overflow-y-auto_1hfou_1","overflow-x-hidden":"_overflow-x-hidden_1hfou_1",border:"_border_1hfou_1","border-2":"_border-2_1hfou_1","p-4":"_p-4_1hfou_1","p-2":"_p-2_1hfou_1","text-center":"_text-center_1hfou_1","text-lg":"_text-lg_1hfou_1","text-6xl":"_text-6xl_1hfou_1","text-sm":"_text-sm_1hfou_1","text-xs":"_text-xs_1hfou_1","text-blue-700":"_text-blue-700_1hfou_1",shadow:"_shadow_1hfou_1",filter:"_filter_1hfou_347","!filter":"_!filter_1hfou_1","embedDashboard-container":"_embedDashboard-container_1hfou_307","embedDashboard-header-static":"_embedDashboard-header-static_1hfou_315","embedDashboard-header-floating":"_embedDashboard-header-floating_1hfou_323","embedDashboard-wrapper":"_embedDashboard-wrapper_1hfou_331","alt-container":"_alt-container_1hfou_339",floatingFilterButton:"_floatingFilterButton_1hfou_355",floatingFilterButtonIcon:"_floatingFilterButtonIcon_1hfou_363",floatingButton:"_floatingButton_1hfou_371",floatingButtonIcon:"_floatingButtonIcon_1hfou_379",staticContainer:"_staticContainer_1hfou_387",floatingContainer:"_floatingContainer_1hfou_395"},lv=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function IH(r){if(r.__esModule)return r;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:function(){return r[e]}})}),t}var p0={exports:{}},Zc={},Kc={exports:{}};(function(r,t){var e=200,n="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",v="[object GeneratorFunction]",p="[object Map]",g="[object Number]",m="[object Null]",y="[object Object]",_="[object Promise]",b="[object Proxy]",S="[object RegExp]",x="[object Set]",w="[object String]",C="[object Symbol]",M="[object Undefined]",D="[object WeakMap]",A="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",E="[object Int8Array]",k="[object Int16Array]",B="[object Int32Array]",F="[object Uint8Array]",W="[object Uint8ClampedArray]",Z="[object Uint16Array]",Q="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,U={};U[I]=U[O]=U[E]=U[k]=U[B]=U[F]=U[W]=U[Z]=U[Q]=!0,U[s]=U[l]=U[A]=U[c]=U[P]=U[h]=U[f]=U[d]=U[p]=U[g]=U[y]=U[S]=U[x]=U[w]=U[D]=!1;var et=typeof lv=="object"&&lv&&lv.Object===Object&&lv,nt=typeof self=="object"&&self&&self.Object===Object&&self,rt=et||nt||Function("return this")(),ft=t&&!t.nodeType&&t,dt=ft&&!0&&r&&!r.nodeType&&r,st=dt&&dt.exports===ft,gt=st&&et.process,It=function(){try{return gt&&gt.binding&&gt.binding("util")}catch{}}(),Dt=It&&It.isTypedArray;function z(N,G){for(var at=-1,Tt=N==null?0:N.length,Ee=0,te=[];++at<Tt;){var Ze=N[at];G(Ze,at,N)&&(te[Ee++]=Ze)}return te}function X(N,G){for(var at=-1,Tt=G.length,Ee=N.length;++at<Tt;)N[Ee+at]=G[at];return N}function q(N,G){for(var at=-1,Tt=N==null?0:N.length;++at<Tt;)if(G(N[at],at,N))return!0;return!1}function ut(N,G){for(var at=-1,Tt=Array(N);++at<N;)Tt[at]=G(at);return Tt}function ht(N){return function(G){return N(G)}}function it(N,G){return N.has(G)}function yt(N,G){return N==null?void 0:N[G]}function le(N){var G=-1,at=Array(N.size);return N.forEach(function(Tt,Ee){at[++G]=[Ee,Tt]}),at}function Xt(N,G){return function(at){return N(G(at))}}function iu(N){var G=-1,at=Array(N.size);return N.forEach(function(Tt){at[++G]=Tt}),at}var cn=Array.prototype,Hi=Function.prototype,wa=Object.prototype,Wi=rt["__core-js_shared__"],ms=Hi.toString,Pr=wa.hasOwnProperty,lo=function(){var N=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),au=wa.toString,qd=RegExp("^"+ms.call(Pr).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ou=st?rt.Buffer:void 0,uo=rt.Symbol,jr=rt.Uint8Array,$t=wa.propertyIsEnumerable,dr=cn.splice,_r=uo?uo.toStringTag:void 0,co=Object.getOwnPropertySymbols,xM=ou?ou.isBuffer:void 0,SM=Xt(Object.keys,Object),Yt=jc(rt,"DataView"),Pe=jc(rt,"Map"),Ir=jc(rt,"Promise"),ne=jc(rt,"Set"),Ve=jc(rt,"WeakMap"),ar=jc(Object,"create"),qr=uu(Yt),Jy=uu(Pe),t0=uu(Ir),e0=uu(ne),M1t=uu(Ve),$$=uo?uo.prototype:void 0,wM=$$?$$.valueOf:void 0;function su(N){var G=-1,at=N==null?0:N.length;for(this.clear();++G<at;){var Tt=N[G];this.set(Tt[0],Tt[1])}}function D1t(){this.__data__=ar?ar(null):{},this.size=0}function A1t(N){var G=this.has(N)&&delete this.__data__[N];return this.size-=G?1:0,G}function L1t(N){var G=this.__data__;if(ar){var at=G[N];return at===n?void 0:at}return Pr.call(G,N)?G[N]:void 0}function P1t(N){var G=this.__data__;return ar?G[N]!==void 0:Pr.call(G,N)}function I1t(N,G){var at=this.__data__;return this.size+=this.has(N)?0:1,at[N]=ar&&G===void 0?n:G,this}su.prototype.clear=D1t,su.prototype.delete=A1t,su.prototype.get=L1t,su.prototype.has=P1t,su.prototype.set=I1t;function ho(N){var G=-1,at=N==null?0:N.length;for(this.clear();++G<at;){var Tt=N[G];this.set(Tt[0],Tt[1])}}function O1t(){this.__data__=[],this.size=0}function E1t(N){var G=this.__data__,at=n0(G,N);if(at<0)return!1;var Tt=G.length-1;return at==Tt?G.pop():dr.call(G,at,1),--this.size,!0}function k1t(N){var G=this.__data__,at=n0(G,N);return at<0?void 0:G[at][1]}function R1t(N){return n0(this.__data__,N)>-1}function N1t(N,G){var at=this.__data__,Tt=n0(at,N);return Tt<0?(++this.size,at.push([N,G])):at[Tt][1]=G,this}ho.prototype.clear=O1t,ho.prototype.delete=E1t,ho.prototype.get=k1t,ho.prototype.has=R1t,ho.prototype.set=N1t;function lu(N){var G=-1,at=N==null?0:N.length;for(this.clear();++G<at;){var Tt=N[G];this.set(Tt[0],Tt[1])}}function B1t(){this.size=0,this.__data__={hash:new su,map:new(Pe||ho),string:new su}}function z1t(N){var G=i0(this,N).delete(N);return this.size-=G?1:0,G}function F1t(N){return i0(this,N).get(N)}function V1t(N){return i0(this,N).has(N)}function $1t(N,G){var at=i0(this,N),Tt=at.size;return at.set(N,G),this.size+=at.size==Tt?0:1,this}lu.prototype.clear=B1t,lu.prototype.delete=z1t,lu.prototype.get=F1t,lu.prototype.has=V1t,lu.prototype.set=$1t;function r0(N){var G=-1,at=N==null?0:N.length;for(this.__data__=new lu;++G<at;)this.add(N[G])}function H1t(N){return this.__data__.set(N,n),this}function W1t(N){return this.__data__.has(N)}r0.prototype.add=r0.prototype.push=H1t,r0.prototype.has=W1t;function ys(N){var G=this.__data__=new ho(N);this.size=G.size}function G1t(){this.__data__=new ho,this.size=0}function U1t(N){var G=this.__data__,at=G.delete(N);return this.size=G.size,at}function Y1t(N){return this.__data__.get(N)}function j1t(N){return this.__data__.has(N)}function q1t(N,G){var at=this.__data__;if(at instanceof ho){var Tt=at.__data__;if(!Pe||Tt.length<e-1)return Tt.push([N,G]),this.size=++at.size,this;at=this.__data__=new lu(Tt)}return at.set(N,G),this.size=at.size,this}ys.prototype.clear=G1t,ys.prototype.delete=U1t,ys.prototype.get=Y1t,ys.prototype.has=j1t,ys.prototype.set=q1t;function X1t(N,G){var at=a0(N),Tt=!at&&cxt(N),Ee=!at&&!Tt&&CM(N),te=!at&&!Tt&&!Ee&&Z$(N),Ze=at||Tt||Ee||te,br=Ze?ut(N.length,String):[],Or=br.length;for(var Ue in N)(G||Pr.call(N,Ue))&&!(Ze&&(Ue=="length"||Ee&&(Ue=="offset"||Ue=="parent")||te&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||axt(Ue,Or)))&&br.push(Ue);return br}function n0(N,G){for(var at=N.length;at--;)if(Y$(N[at][0],G))return at;return-1}function Z1t(N,G,at){var Tt=G(N);return a0(N)?Tt:X(Tt,at(N))}function Xd(N){return N==null?N===void 0?M:m:_r&&_r in Object(N)?nxt(N):uxt(N)}function H$(N){return Zd(N)&&Xd(N)==s}function W$(N,G,at,Tt,Ee){return N===G?!0:N==null||G==null||!Zd(N)&&!Zd(G)?N!==N&&G!==G:K1t(N,G,at,Tt,W$,Ee)}function K1t(N,G,at,Tt,Ee,te){var Ze=a0(N),br=a0(G),Or=Ze?l:_s(N),Ue=br?l:_s(G);Or=Or==s?y:Or,Ue=Ue==s?y:Ue;var Rn=Or==y,Gi=Ue==y,Xr=Or==Ue;if(Xr&&CM(N)){if(!CM(G))return!1;Ze=!0,Rn=!1}if(Xr&&!Rn)return te||(te=new ys),Ze||Z$(N)?G$(N,G,at,Tt,Ee,te):ext(N,G,Or,at,Tt,Ee,te);if(!(at&i)){var pi=Rn&&Pr.call(N,"__wrapped__"),gi=Gi&&Pr.call(G,"__wrapped__");if(pi||gi){var bs=pi?N.value():N,fo=gi?G.value():G;return te||(te=new ys),Ee(bs,fo,at,Tt,te)}}return Xr?(te||(te=new ys),rxt(N,G,at,Tt,Ee,te)):!1}function Q1t(N){if(!X$(N)||sxt(N))return!1;var G=j$(N)?qd:V;return G.test(uu(N))}function J1t(N){return Zd(N)&&q$(N.length)&&!!U[Xd(N)]}function txt(N){if(!lxt(N))return SM(N);var G=[];for(var at in Object(N))Pr.call(N,at)&&at!="constructor"&&G.push(at);return G}function G$(N,G,at,Tt,Ee,te){var Ze=at&i,br=N.length,Or=G.length;if(br!=Or&&!(Ze&&Or>br))return!1;var Ue=te.get(N);if(Ue&&te.get(G))return Ue==G;var Rn=-1,Gi=!0,Xr=at&a?new r0:void 0;for(te.set(N,G),te.set(G,N);++Rn<br;){var pi=N[Rn],gi=G[Rn];if(Tt)var bs=Ze?Tt(gi,pi,Rn,G,N,te):Tt(pi,gi,Rn,N,G,te);if(bs!==void 0){if(bs)continue;Gi=!1;break}if(Xr){if(!q(G,function(fo,cu){if(!it(Xr,cu)&&(pi===fo||Ee(pi,fo,at,Tt,te)))return Xr.push(cu)})){Gi=!1;break}}else if(!(pi===gi||Ee(pi,gi,at,Tt,te))){Gi=!1;break}}return te.delete(N),te.delete(G),Gi}function ext(N,G,at,Tt,Ee,te,Ze){switch(at){case P:if(N.byteLength!=G.byteLength||N.byteOffset!=G.byteOffset)return!1;N=N.buffer,G=G.buffer;case A:return!(N.byteLength!=G.byteLength||!te(new jr(N),new jr(G)));case c:case h:case g:return Y$(+N,+G);case f:return N.name==G.name&&N.message==G.message;case S:case w:return N==G+"";case p:var br=le;case x:var Or=Tt&i;if(br||(br=iu),N.size!=G.size&&!Or)return!1;var Ue=Ze.get(N);if(Ue)return Ue==G;Tt|=a,Ze.set(N,G);var Rn=G$(br(N),br(G),Tt,Ee,te,Ze);return Ze.delete(N),Rn;case C:if(wM)return wM.call(N)==wM.call(G)}return!1}function rxt(N,G,at,Tt,Ee,te){var Ze=at&i,br=U$(N),Or=br.length,Ue=U$(G),Rn=Ue.length;if(Or!=Rn&&!Ze)return!1;for(var Gi=Or;Gi--;){var Xr=br[Gi];if(!(Ze?Xr in G:Pr.call(G,Xr)))return!1}var pi=te.get(N);if(pi&&te.get(G))return pi==G;var gi=!0;te.set(N,G),te.set(G,N);for(var bs=Ze;++Gi<Or;){Xr=br[Gi];var fo=N[Xr],cu=G[Xr];if(Tt)var K$=Ze?Tt(cu,fo,Xr,G,N,te):Tt(fo,cu,Xr,N,G,te);if(!(K$===void 0?fo===cu||Ee(fo,cu,at,Tt,te):K$)){gi=!1;break}bs||(bs=Xr=="constructor")}if(gi&&!bs){var o0=N.constructor,s0=G.constructor;o0!=s0&&"constructor"in N&&"constructor"in G&&!(typeof o0=="function"&&o0 instanceof o0&&typeof s0=="function"&&s0 instanceof s0)&&(gi=!1)}return te.delete(N),te.delete(G),gi}function U$(N){return Z1t(N,dxt,ixt)}function i0(N,G){var at=N.__data__;return oxt(G)?at[typeof G=="string"?"string":"hash"]:at.map}function jc(N,G){var at=yt(N,G);return Q1t(at)?at:void 0}function nxt(N){var G=Pr.call(N,_r),at=N[_r];try{N[_r]=void 0;var Tt=!0}catch{}var Ee=au.call(N);return Tt&&(G?N[_r]=at:delete N[_r]),Ee}var ixt=co?function(N){return N==null?[]:(N=Object(N),z(co(N),function(G){return $t.call(N,G)}))}:vxt,_s=Xd;(Yt&&_s(new Yt(new ArrayBuffer(1)))!=P||Pe&&_s(new Pe)!=p||Ir&&_s(Ir.resolve())!=_||ne&&_s(new ne)!=x||Ve&&_s(new Ve)!=D)&&(_s=function(N){var G=Xd(N),at=G==y?N.constructor:void 0,Tt=at?uu(at):"";if(Tt)switch(Tt){case qr:return P;case Jy:return p;case t0:return _;case e0:return x;case M1t:return D}return G});function axt(N,G){return G=G==null?o:G,!!G&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<G}function oxt(N){var G=typeof N;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?N!=="__proto__":N===null}function sxt(N){return!!lo&&lo in N}function lxt(N){var G=N&&N.constructor,at=typeof G=="function"&&G.prototype||wa;return N===at}function uxt(N){return au.call(N)}function uu(N){if(N!=null){try{return ms.call(N)}catch{}try{return N+""}catch{}}return""}function Y$(N,G){return N===G||N!==N&&G!==G}var cxt=H$(function(){return arguments}())?H$:function(N){return Zd(N)&&Pr.call(N,"callee")&&!$t.call(N,"callee")},a0=Array.isArray;function hxt(N){return N!=null&&q$(N.length)&&!j$(N)}var CM=xM||pxt;function fxt(N,G){return W$(N,G)}function j$(N){if(!X$(N))return!1;var G=Xd(N);return G==d||G==v||G==u||G==b}function q$(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=o}function X$(N){var G=typeof N;return N!=null&&(G=="object"||G=="function")}function Zd(N){return N!=null&&typeof N=="object"}var Z$=Dt?ht(Dt):J1t;function dxt(N){return hxt(N)?X1t(N):txt(N)}function vxt(){return[]}function pxt(){return!1}r.exports=fxt})(Kc,Kc.exports);function YM(r){var t,e,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(e=YM(r[t]))&&(n&&(n+=" "),n+=e);else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function jM(){for(var r,t,e=0,n="";e<arguments.length;)(r=arguments[e++])&&(t=YM(r))&&(n&&(n+=" "),n+=t);return n}var OH=Object.freeze(Object.defineProperty({__proto__:null,clsx:jM,default:jM},Symbol.toStringTag,{value:"Module"})),uv=IH(OH),ae={},EH=function(t,e,n){return t===e?!0:t.className===e.className&&n(t.style,e.style)&&t.width===e.width&&t.autoSize===e.autoSize&&t.cols===e.cols&&t.draggableCancel===e.draggableCancel&&t.draggableHandle===e.draggableHandle&&n(t.verticalCompact,e.verticalCompact)&&n(t.compactType,e.compactType)&&n(t.layout,e.layout)&&n(t.margin,e.margin)&&n(t.containerPadding,e.containerPadding)&&t.rowHeight===e.rowHeight&&t.maxRows===e.maxRows&&t.isBounded===e.isBounded&&t.isDraggable===e.isDraggable&&t.isResizable===e.isResizable&&t.allowOverlap===e.allowOverlap&&t.preventCollision===e.preventCollision&&t.useCSSTransforms===e.useCSSTransforms&&t.transformScale===e.transformScale&&t.isDroppable===e.isDroppable&&n(t.resizeHandles,e.resizeHandles)&&n(t.resizeHandle,e.resizeHandle)&&t.onLayoutChange===e.onLayoutChange&&t.onDragStart===e.onDragStart&&t.onDrag===e.onDrag&&t.onDragStop===e.onDragStop&&t.onResizeStart===e.onResizeStart&&t.onResize===e.onResize&&t.onResizeStop===e.onResizeStop&&t.onDrop===e.onDrop&&n(t.droppingItem,e.droppingItem)&&n(t.innerRef,e.innerRef)};Object.defineProperty(ae,"__esModule",{value:!0}),ae.bottom=m0,ae.childrenEqual=BH,ae.cloneLayout=KM,ae.cloneLayoutItem=ws,ae.collides=cv,ae.compact=JM,ae.compactItem=tD,ae.compactType=YH,ae.correctBounds=eD,ae.fastPositionEqual=FH,ae.fastRGLPropsEqual=void 0,ae.getAllCollisions=rD,ae.getFirstCollision=fu,ae.getLayoutItem=_0,ae.getStatics=b0,ae.modifyLayout=QM,ae.moveElement=x0,ae.moveElementAwayFromCollision=S0,ae.noop=void 0,ae.perc=$H,ae.setTopLeft=WH,ae.setTransform=HH,ae.sortLayoutItems=w0,ae.sortLayoutItemsByColRow=iD,ae.sortLayoutItemsByRowCol=nD,ae.synchronizeLayoutWithChildren=GH,ae.validateLayout=UH,ae.withLayoutItem=NH;var kH=qM(Kc.exports),g0=qM(lt.default);function qM(r){return r&&r.__esModule?r:{default:r}}function XM(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,n)}return e}function ZM(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?XM(Object(e),!0).forEach(function(n){RH(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):XM(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function RH(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function m0(r){for(var t=0,e,n=0,i=r.length;n<i;n++)e=r[n].y+r[n].h,e>t&&(t=e);return t}function KM(r){for(var t=Array(r.length),e=0,n=r.length;e<n;e++)t[e]=ws(r[e]);return t}function QM(r,t){for(var e=Array(r.length),n=0,i=r.length;n<i;n++)t.i===r[n].i?e[n]=t:e[n]=r[n];return e}function NH(r,t,e){var n=_0(r,t);return n?(n=e(ws(n)),r=QM(r,n),[r,n]):[r,null]}function ws(r){return{w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minW:r.minW,maxW:r.maxW,minH:r.minH,maxH:r.maxH,moved:Boolean(r.moved),static:Boolean(r.static),isDraggable:r.isDraggable,isResizable:r.isResizable,resizeHandles:r.resizeHandles,isBounded:r.isBounded}}function BH(r,t){return(0,kH.default)(g0.default.Children.map(r,function(e){return e==null?void 0:e.key}),g0.default.Children.map(t,function(e){return e==null?void 0:e.key}))}var zH=EH;ae.fastRGLPropsEqual=zH;function FH(r,t){return r.left===t.left&&r.top===t.top&&r.width===t.width&&r.height===t.height}function cv(r,t){return!(r.i===t.i||r.x+r.w<=t.x||r.x>=t.x+t.w||r.y+r.h<=t.y||r.y>=t.y+t.h)}function JM(r,t,e){for(var n=b0(r),i=w0(r,t),a=Array(r.length),o=0,s=i.length;o<s;o++){var l=ws(i[o]);l.static||(l=tD(n,l,t,e,i),n.push(l)),a[r.indexOf(i[o])]=l,l.moved=!1}return a}var VH={x:"w",y:"h"};function y0(r,t,e,n){var i=VH[n];t[n]+=1;for(var a=r.map(function(l){return l.i}).indexOf(t.i),o=a+1;o<r.length;o++){var s=r[o];if(!s.static){if(s.y>t.y+t.h)break;cv(t,s)&&y0(r,s,e+t[i],n)}}t[n]=e}function tD(r,t,e,n,i){var a=e==="vertical",o=e==="horizontal";if(a)for(t.y=Math.min(m0(r),t.y);t.y>0&&!fu(r,t);)t.y--;else if(o)for(;t.x>0&&!fu(r,t);)t.x--;for(var s;s=fu(r,t);)o?y0(i,t,s.x+s.w,"x"):y0(i,t,s.y+s.h,"y"),o&&t.x+t.w>n&&(t.x=n-t.w,t.y++);return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function eD(r,t){for(var e=b0(r),n=0,i=r.length;n<i;n++){var a=r[n];if(a.x+a.w>t.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),!a.static)e.push(a);else for(;fu(e,a);)a.y++}return r}function _0(r,t){for(var e=0,n=r.length;e<n;e++)if(r[e].i===t)return r[e]}function fu(r,t){for(var e=0,n=r.length;e<n;e++)if(cv(r[e],t))return r[e]}function rD(r,t){return r.filter(function(e){return cv(e,t)})}function b0(r){return r.filter(function(t){return t.static})}function x0(r,t,e,n,i,a,o,s,l){if(t.static&&t.isDraggable!==!0||t.y===n&&t.x===e)return r;"Moving element ".concat(t.i," to [").concat(String(e),",").concat(String(n),"] from [").concat(t.x,",").concat(t.y,"]");var u=t.x,c=t.y;typeof e=="number"&&(t.x=e),typeof n=="number"&&(t.y=n),t.moved=!0;var h=w0(r,o),f=o==="vertical"&&typeof n=="number"?c>=n:o==="horizontal"&&typeof e=="number"?u>=e:!1;f&&(h=h.reverse());var d=rD(h,t),v=d.length>0;if(v&&l)return KM(r);if(v&&a)return"Collision prevented on ".concat(t.i,", reverting."),t.x=u,t.y=c,t.moved=!1,r;for(var p=0,g=d.length;p<g;p++){var m=d[p];"Resolving collision between ".concat(t.i," at [").concat(t.x,",").concat(t.y,"] and ").concat(m.i," at [").concat(m.x,",").concat(m.y,"]"),!m.moved&&(m.static?r=S0(r,m,t,i,o):r=S0(r,t,m,i,o))}return r}function S0(r,t,e,n,i,a){var o=i==="horizontal",s=i!=="horizontal",l=t.static;if(n){n=!1;var u={x:o?Math.max(t.x-e.w,0):e.x,y:s?Math.max(t.y-e.h,0):e.y,w:e.w,h:e.h,i:"-1"};if(!fu(r,u))return"Doing reverse collision on ".concat(e.i," up to [").concat(u.x,",").concat(u.y,"]."),x0(r,e,o?u.x:void 0,s?u.y:void 0,n,l,i)}return x0(r,e,o?e.x+1:void 0,s?e.y+1:void 0,n,l,i)}function $H(r){return r*100+"%"}function HH(r){var t=r.top,e=r.left,n=r.width,i=r.height,a="translate(".concat(e,"px,").concat(t,"px)");return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:"".concat(n,"px"),height:"".concat(i,"px"),position:"absolute"}}function WH(r){var t=r.top,e=r.left,n=r.width,i=r.height;return{top:"".concat(t,"px"),left:"".concat(e,"px"),width:"".concat(n,"px"),height:"".concat(i,"px"),position:"absolute"}}function w0(r,t){return t==="horizontal"?iD(r):t==="vertical"?nD(r):r}function nD(r){return r.slice(0).sort(function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?0:-1})}function iD(r){return r.slice(0).sort(function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:-1})}function GH(r,t,e,n,i){r=r||[];var a=[];g0.default.Children.forEach(t,function(s){if((s==null?void 0:s.key)!=null){var l=_0(r,String(s.key));if(l)a.push(ws(l));else{var u=s.props["data-grid"]||s.props._grid;u?a.push(ws(ZM(ZM({},u),{},{i:s.key}))):a.push(ws({w:1,h:1,x:0,y:m0(a),i:String(s.key)}))}}});var o=eD(a,{cols:e});return i?o:JM(o,n,e)}function UH(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout",e=["x","y","w","h"];if(!Array.isArray(r))throw new Error(t+" must be an array!");for(var n=0,i=r.length;n<i;n++)for(var a=r[n],o=0;o<e.length;o++)if(typeof a[e[o]]!="number")throw new Error("ReactGridLayout: "+t+"["+n+"]."+e[o]+" must be a number!")}function YH(r){var t=r||{},e=t.verticalCompact,n=t.compactType;return e===!1?null:n}function Ext(){}var jH=function(){};ae.noop=jH;var Ca={};Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.calcGridColWidth=hv,Ca.calcGridItemPosition=qH,Ca.calcGridItemWHPx=C0,Ca.calcWH=ZH,Ca.calcXY=XH,Ca.clamp=Qc;function hv(r){var t=r.margin,e=r.containerPadding,n=r.containerWidth,i=r.cols;return(n-t[0]*(i-1)-e[0]*2)/i}function C0(r,t,e){return Number.isFinite(r)?Math.round(t*r+Math.max(0,r-1)*e):r}function qH(r,t,e,n,i,a){var o=r.margin,s=r.containerPadding,l=r.rowHeight,u=hv(r),c={};return a&&a.resizing?(c.width=Math.round(a.resizing.width),c.height=Math.round(a.resizing.height)):(c.width=C0(n,u,o[0]),c.height=C0(i,l,o[1])),a&&a.dragging?(c.top=Math.round(a.dragging.top),c.left=Math.round(a.dragging.left)):(c.top=Math.round((l+o[1])*e+s[1]),c.left=Math.round((u+o[0])*t+s[0])),c}function XH(r,t,e,n,i){var a=r.margin,o=r.cols,s=r.rowHeight,l=r.maxRows,u=hv(r),c=Math.round((e-a[0])/(u+a[0])),h=Math.round((t-a[1])/(s+a[1]));return c=Qc(c,0,o-n),h=Qc(h,0,l-i),{x:c,y:h}}function ZH(r,t,e,n,i){var a=r.margin,o=r.maxRows,s=r.cols,l=r.rowHeight,u=hv(r),c=Math.round((t+a[0])/(u+a[0])),h=Math.round((e+a[1])/(l+a[1]));return c=Qc(c,0,s-n),h=Qc(h,0,o-i),{w:c,h}}function Qc(r,t,e){return Math.max(Math.min(r,e),t)}var fv={},Ta={exports:{}},KH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",QH=KH,JH=QH;function aD(){}function oD(){}oD.resetWarningCache=aD;var tW=function(){function r(n,i,a,o,s,l){if(l!==JH){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}r.isRequired=r;function t(){return r}var e={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:t,element:r,elementType:r,instanceOf:t,node:r,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:oD,resetWarningCache:aD};return e.PropTypes=e,e};Ta.exports=tW();var Jc={exports:{}},sD={},Ye={},Ui={};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.dontSetMe=aW,Ui.findInArray=eW,Ui.int=iW,Ui.isFunction=rW,Ui.isNum=nW;function eW(r,t){for(var e=0,n=r.length;e<n;e++)if(t.apply(t,[r[e],e,r]))return r[e]}function rW(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Function]"}function nW(r){return typeof r=="number"&&!isNaN(r)}function iW(r){return parseInt(r,10)}function aW(r,t,e){if(r[t])return new Error("Invalid prop ".concat(t," passed to ").concat(e," - do not set this, set it on the child."))}var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.browserPrefixToKey=uD,Cs.browserPrefixToStyle=oW,Cs.default=void 0,Cs.getPrefix=lD;var T0=["Moz","Webkit","O","ms"];function lD(){var r,t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var n=(r=window.document)===null||r===void 0||(t=r.documentElement)===null||t===void 0?void 0:t.style;if(!n||e in n)return"";for(var i=0;i<T0.length;i++)if(uD(e,T0[i])in n)return T0[i];return""}function uD(r,t){return t?"".concat(t).concat(sW(r)):r}function oW(r,t){return t?"-".concat(t.toLowerCase(),"-").concat(r):r}function sW(r){for(var t="",e=!0,n=0;n<r.length;n++)e?(t+=r[n].toUpperCase(),e=!1):r[n]==="-"?e=!0:t+=r[n];return t}var lW=lD();Cs.default=lW;function M0(r){return M0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M0(r)}Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.addClassName=gD,Ye.addEvent=hW,Ye.addUserSelectStyles=SW,Ye.createCSSTransform=yW,Ye.createSVGTransform=_W,Ye.getTouch=bW,Ye.getTouchIdentifier=xW,Ye.getTranslation=D0,Ye.innerHeight=pW,Ye.innerWidth=gW,Ye.matchesSelector=pD,Ye.matchesSelectorAndParentsTo=cW,Ye.offsetXYFromParent=mW,Ye.outerHeight=dW,Ye.outerWidth=vW,Ye.removeClassName=mD,Ye.removeEvent=fW,Ye.removeUserSelectStyles=wW;var Cn=Ui,cD=uW(Cs);function hD(r){if(typeof WeakMap!="function")return null;var t=new WeakMap,e=new WeakMap;return(hD=function(i){return i?e:t})(r)}function uW(r,t){if(!t&&r&&r.__esModule)return r;if(r===null||M0(r)!=="object"&&typeof r!="function")return{default:r};var e=hD(t);if(e&&e.has(r))return e.get(r);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)){var o=i?Object.getOwnPropertyDescriptor(r,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=r[a]}return n.default=r,e&&e.set(r,n),n}function fD(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,n)}return e}function dD(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(e),!0).forEach(function(n){vD(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):fD(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function vD(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var dv="";function pD(r,t){return dv||(dv=(0,Cn.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(e){return(0,Cn.isFunction)(r[e])})),(0,Cn.isFunction)(r[dv])?r[dv](t):!1}function cW(r,t,e){var n=r;do{if(pD(n,t))return!0;if(n===e)return!1;n=n.parentNode}while(n);return!1}function hW(r,t,e,n){if(!!r){var i=dD({capture:!0},n);r.addEventListener?r.addEventListener(t,e,i):r.attachEvent?r.attachEvent("on"+t,e):r["on"+t]=e}}function fW(r,t,e,n){if(!!r){var i=dD({capture:!0},n);r.removeEventListener?r.removeEventListener(t,e,i):r.detachEvent?r.detachEvent("on"+t,e):r["on"+t]=null}}function dW(r){var t=r.clientHeight,e=r.ownerDocument.defaultView.getComputedStyle(r);return t+=(0,Cn.int)(e.borderTopWidth),t+=(0,Cn.int)(e.borderBottomWidth),t}function vW(r){var t=r.clientWidth,e=r.ownerDocument.defaultView.getComputedStyle(r);return t+=(0,Cn.int)(e.borderLeftWidth),t+=(0,Cn.int)(e.borderRightWidth),t}function pW(r){var t=r.clientHeight,e=r.ownerDocument.defaultView.getComputedStyle(r);return t-=(0,Cn.int)(e.paddingTop),t-=(0,Cn.int)(e.paddingBottom),t}function gW(r){var t=r.clientWidth,e=r.ownerDocument.defaultView.getComputedStyle(r);return t-=(0,Cn.int)(e.paddingLeft),t-=(0,Cn.int)(e.paddingRight),t}function mW(r,t,e){var n=t===t.ownerDocument.body,i=n?{left:0,top:0}:t.getBoundingClientRect(),a=(r.clientX+t.scrollLeft-i.left)/e,o=(r.clientY+t.scrollTop-i.top)/e;return{x:a,y:o}}function yW(r,t){var e=D0(r,t,"px");return vD({},(0,cD.browserPrefixToKey)("transform",cD.default),e)}function _W(r,t){var e=D0(r,t,"");return e}function D0(r,t,e){var n=r.x,i=r.y,a="translate(".concat(n).concat(e,",").concat(i).concat(e,")");if(t){var o="".concat(typeof t.x=="string"?t.x:t.x+e),s="".concat(typeof t.y=="string"?t.y:t.y+e);a="translate(".concat(o,", ").concat(s,")")+a}return a}function bW(r,t){return r.targetTouches&&(0,Cn.findInArray)(r.targetTouches,function(e){return t===e.identifier})||r.changedTouches&&(0,Cn.findInArray)(r.changedTouches,function(e){return t===e.identifier})}function xW(r){if(r.targetTouches&&r.targetTouches[0])return r.targetTouches[0].identifier;if(r.changedTouches&&r.changedTouches[0])return r.changedTouches[0].identifier}function SW(r){if(!!r){var t=r.getElementById("react-draggable-style-el");t||(t=r.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
2
2
  `,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
3
3
  `,r.getElementsByTagName("head")[0].appendChild(t)),r.body&&gD(r.body,"react-draggable-transparent-selection")}}function wW(r){if(!!r)try{if(r.body&&mD(r.body,"react-draggable-transparent-selection"),r.selection)r.selection.empty();else{var t=(r.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function gD(r,t){r.classList?r.classList.add(t):r.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(r.className+=" ".concat(t))}function mD(r,t){r.classList?r.classList.remove(t):r.className=r.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.canDragX=MW,Yi.canDragY=DW,Yi.createCoreData=LW,Yi.createDraggableData=PW,Yi.getBoundPosition=CW,Yi.getControlPosition=AW,Yi.snapToGrid=TW;var Tn=Ui,du=Ye;function CW(r,t,e){if(!r.props.bounds)return[t,e];var n=r.props.bounds;n=typeof n=="string"?n:IW(n);var i=A0(r);if(typeof n=="string"){var a=i.ownerDocument,o=a.defaultView,s;if(n==="parent"?s=i.parentNode:s=a.querySelector(n),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+n+'" could not find an element.');var l=s,u=o.getComputedStyle(i),c=o.getComputedStyle(l);n={left:-i.offsetLeft+(0,Tn.int)(c.paddingLeft)+(0,Tn.int)(u.marginLeft),top:-i.offsetTop+(0,Tn.int)(c.paddingTop)+(0,Tn.int)(u.marginTop),right:(0,du.innerWidth)(l)-(0,du.outerWidth)(i)-i.offsetLeft+(0,Tn.int)(c.paddingRight)-(0,Tn.int)(u.marginRight),bottom:(0,du.innerHeight)(l)-(0,du.outerHeight)(i)-i.offsetTop+(0,Tn.int)(c.paddingBottom)-(0,Tn.int)(u.marginBottom)}}return(0,Tn.isNum)(n.right)&&(t=Math.min(t,n.right)),(0,Tn.isNum)(n.bottom)&&(e=Math.min(e,n.bottom)),(0,Tn.isNum)(n.left)&&(t=Math.max(t,n.left)),(0,Tn.isNum)(n.top)&&(e=Math.max(e,n.top)),[t,e]}function TW(r,t,e){var n=Math.round(t/r[0])*r[0],i=Math.round(e/r[1])*r[1];return[n,i]}function MW(r){return r.props.axis==="both"||r.props.axis==="x"}function DW(r){return r.props.axis==="both"||r.props.axis==="y"}function AW(r,t,e){var n=typeof t=="number"?(0,du.getTouch)(r,t):null;if(typeof t=="number"&&!n)return null;var i=A0(e),a=e.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,du.offsetXYFromParent)(n||r,a,e.props.scale)}function LW(r,t,e){var n=r.state,i=!(0,Tn.isNum)(n.lastX),a=A0(r);return i?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:e,x:t,y:e}:{node:a,deltaX:t-n.lastX,deltaY:e-n.lastY,lastX:n.lastX,lastY:n.lastY,x:t,y:e}}function PW(r,t){var e=r.props.scale;return{node:t.node,x:r.state.x+t.deltaX/e,y:r.state.y+t.deltaY/e,deltaX:t.deltaX/e,deltaY:t.deltaY/e,lastX:r.state.x,lastY:r.state.y}}function IW(r){return{left:r.left,top:r.top,right:r.right,bottom:r.bottom}}function A0(r){var t=r.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var vv={},pv={};Object.defineProperty(pv,"__esModule",{value:!0}),pv.default=OW;function OW(){}function gv(r){return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gv(r)}Object.defineProperty(vv,"__esModule",{value:!0}),vv.default=void 0;var L0=kW(lt.default),Mn=I0(Ta.exports),EW=I0(Kd.default),Er=Ye,mo=Yi,P0=Ui,th=I0(pv);function I0(r){return r&&r.__esModule?r:{default:r}}function yD(r){if(typeof WeakMap!="function")return null;var t=new WeakMap,e=new WeakMap;return(yD=function(i){return i?e:t})(r)}function kW(r,t){if(!t&&r&&r.__esModule)return r;if(r===null||gv(r)!=="object"&&typeof r!="function")return{default:r};var e=yD(t);if(e&&e.has(r))return e.get(r);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)){var o=i?Object.getOwnPropertyDescriptor(r,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=r[a]}return n.default=r,e&&e.set(r,n),n}function _D(r,t){return zW(r)||BW(r,t)||NW(r,t)||RW()}function RW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NW(r,t){if(!!r){if(typeof r=="string")return bD(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return bD(r,t)}}function bD(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function BW(r,t){var e=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,o,s;try{for(e=e.call(r);!(i=(o=e.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw s}}return n}}function zW(r){if(Array.isArray(r))return r}function FW(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function xD(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function VW(r,t,e){return t&&xD(r.prototype,t),e&&xD(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function $W(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&O0(r,t)}function O0(r,t){return O0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},O0(r,t)}function HW(r){var t=GW();return function(){var n=mv(r),i;if(t){var a=mv(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return WW(this,i)}}function WW(r,t){if(t&&(gv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kr(r)}function kr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function GW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mv(r){return mv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mv(r)}function Nn(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var mi={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},yo=mi.mouse,yv=function(r){$W(e,r);var t=HW(e);function e(){var n;FW(this,e);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),Nn(kr(n),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),Nn(kr(n),"mounted",!1),Nn(kr(n),"handleDragStart",function(s){if(n.props.onMouseDown(s),!n.props.allowAnyClick&&typeof s.button=="number"&&s.button!==0)return!1;var l=n.findDOMNode();if(!l||!l.ownerDocument||!l.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var u=l.ownerDocument;if(!(n.props.disabled||!(s.target instanceof u.defaultView.Node)||n.props.handle&&!(0,Er.matchesSelectorAndParentsTo)(s.target,n.props.handle,l)||n.props.cancel&&(0,Er.matchesSelectorAndParentsTo)(s.target,n.props.cancel,l))){s.type==="touchstart"&&s.preventDefault();var c=(0,Er.getTouchIdentifier)(s);n.setState({touchIdentifier:c});var h=(0,mo.getControlPosition)(s,c,kr(n));if(h!=null){var f=h.x,d=h.y,v=(0,mo.createCoreData)(kr(n),f,d);(0,th.default)("DraggableCore: handleDragStart: %j",v),(0,th.default)("calling",n.props.onStart);var p=n.props.onStart(s,v);p===!1||n.mounted===!1||(n.props.enableUserSelectHack&&(0,Er.addUserSelectStyles)(u),n.setState({dragging:!0,lastX:f,lastY:d}),(0,Er.addEvent)(u,yo.move,n.handleDrag),(0,Er.addEvent)(u,yo.stop,n.handleDragStop))}}}),Nn(kr(n),"handleDrag",function(s){var l=(0,mo.getControlPosition)(s,n.state.touchIdentifier,kr(n));if(l!=null){var u=l.x,c=l.y;if(Array.isArray(n.props.grid)){var h=u-n.state.lastX,f=c-n.state.lastY,d=(0,mo.snapToGrid)(n.props.grid,h,f),v=_D(d,2);if(h=v[0],f=v[1],!h&&!f)return;u=n.state.lastX+h,c=n.state.lastY+f}var p=(0,mo.createCoreData)(kr(n),u,c);(0,th.default)("DraggableCore: handleDrag: %j",p);var g=n.props.onDrag(s,p);if(g===!1||n.mounted===!1){try{n.handleDragStop(new MouseEvent("mouseup"))}catch{var m=document.createEvent("MouseEvents");m.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.handleDragStop(m)}return}n.setState({lastX:u,lastY:c})}}),Nn(kr(n),"handleDragStop",function(s){if(!!n.state.dragging){var l=(0,mo.getControlPosition)(s,n.state.touchIdentifier,kr(n));if(l!=null){var u=l.x,c=l.y;if(Array.isArray(n.props.grid)){var h=u-n.state.lastX||0,f=c-n.state.lastY||0,d=(0,mo.snapToGrid)(n.props.grid,h,f),v=_D(d,2);h=v[0],f=v[1],u=n.state.lastX+h,c=n.state.lastY+f}var p=(0,mo.createCoreData)(kr(n),u,c),g=n.props.onStop(s,p);if(g===!1||n.mounted===!1)return!1;var m=n.findDOMNode();m&&n.props.enableUserSelectHack&&(0,Er.removeUserSelectStyles)(m.ownerDocument),(0,th.default)("DraggableCore: handleDragStop: %j",p),n.setState({dragging:!1,lastX:NaN,lastY:NaN}),m&&((0,th.default)("DraggableCore: Removing handlers"),(0,Er.removeEvent)(m.ownerDocument,yo.move,n.handleDrag),(0,Er.removeEvent)(m.ownerDocument,yo.stop,n.handleDragStop))}}}),Nn(kr(n),"onMouseDown",function(s){return yo=mi.mouse,n.handleDragStart(s)}),Nn(kr(n),"onMouseUp",function(s){return yo=mi.mouse,n.handleDragStop(s)}),Nn(kr(n),"onTouchStart",function(s){return yo=mi.touch,n.handleDragStart(s)}),Nn(kr(n),"onTouchEnd",function(s){return yo=mi.touch,n.handleDragStop(s)}),n}return VW(e,[{key:"componentDidMount",value:function(){this.mounted=!0;var i=this.findDOMNode();i&&(0,Er.addEvent)(i,mi.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.findDOMNode();if(i){var a=i.ownerDocument;(0,Er.removeEvent)(a,mi.mouse.move,this.handleDrag),(0,Er.removeEvent)(a,mi.touch.move,this.handleDrag),(0,Er.removeEvent)(a,mi.mouse.stop,this.handleDragStop),(0,Er.removeEvent)(a,mi.touch.stop,this.handleDragStop),(0,Er.removeEvent)(i,mi.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Er.removeUserSelectStyles)(a)}}},{key:"findDOMNode",value:function(){var i,a,o;return(i=this.props)!==null&&i!==void 0&&i.nodeRef?(a=this.props)===null||a===void 0||(o=a.nodeRef)===null||o===void 0?void 0:o.current:EW.default.findDOMNode(this)}},{key:"render",value:function(){return L0.cloneElement(L0.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),e}(L0.Component);vv.default=yv,Nn(yv,"displayName","DraggableCore"),Nn(yv,"propTypes",{allowAnyClick:Mn.default.bool,disabled:Mn.default.bool,enableUserSelectHack:Mn.default.bool,offsetParent:function(t,e){if(t[e]&&t[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Mn.default.arrayOf(Mn.default.number),handle:Mn.default.string,cancel:Mn.default.string,nodeRef:Mn.default.object,onStart:Mn.default.func,onDrag:Mn.default.func,onStop:Mn.default.func,onMouseDown:Mn.default.func,scale:Mn.default.number,className:P0.dontSetMe,style:P0.dontSetMe,transform:P0.dontSetMe}),Nn(yv,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(r){function t($){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},t($)}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),r.default=void 0;var e=v(lt.default),n=f(Ta.exports),i=f(Kd.default),a=f(uv),o=Ye,s=Yi,l=Ui,u=f(vv),c=f(pv),h=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function f($){return $&&$.__esModule?$:{default:$}}function d($){if(typeof WeakMap!="function")return null;var V=new WeakMap,Y=new WeakMap;return(d=function(et){return et?Y:V})($)}function v($,V){if(!V&&$&&$.__esModule)return $;if($===null||t($)!=="object"&&typeof $!="function")return{default:$};var Y=d(V);if(Y&&Y.has($))return Y.get($);var U={},et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var nt in $)if(nt!=="default"&&Object.prototype.hasOwnProperty.call($,nt)){var rt=et?Object.getOwnPropertyDescriptor($,nt):null;rt&&(rt.get||rt.set)?Object.defineProperty(U,nt,rt):U[nt]=$[nt]}return U.default=$,Y&&Y.set($,U),U}function p(){return p=Object.assign||function($){for(var V=1;V<arguments.length;V++){var Y=arguments[V];for(var U in Y)Object.prototype.hasOwnProperty.call(Y,U)&&($[U]=Y[U])}return $},p.apply(this,arguments)}function g($,V){if($==null)return{};var Y=m($,V),U,et;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols($);for(et=0;et<nt.length;et++)U=nt[et],!(V.indexOf(U)>=0)&&(!Object.prototype.propertyIsEnumerable.call($,U)||(Y[U]=$[U]))}return Y}function m($,V){if($==null)return{};var Y={},U=Object.keys($),et,nt;for(nt=0;nt<U.length;nt++)et=U[nt],!(V.indexOf(et)>=0)&&(Y[et]=$[et]);return Y}function y($,V){var Y=Object.keys($);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols($);V&&(U=U.filter(function(et){return Object.getOwnPropertyDescriptor($,et).enumerable})),Y.push.apply(Y,U)}return Y}function _($){for(var V=1;V<arguments.length;V++){var Y=arguments[V]!=null?arguments[V]:{};V%2?y(Object(Y),!0).forEach(function(U){Z($,U,Y[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(Y)):y(Object(Y)).forEach(function(U){Object.defineProperty($,U,Object.getOwnPropertyDescriptor(Y,U))})}return $}function b($,V){return M($)||C($,V)||x($,V)||S()}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.