@queuedash/ui 3.12.1 → 3.14.0
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/main.js +14 -14
- package/dist/main.mjs +5581 -5428
- package/dist/src/App.d.ts +2 -1
- package/dist/src/App.d.ts.map +1 -1
- package/dist/src/components/JobModal.d.ts.map +1 -1
- package/dist/styles.css +9 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Au=e=>{throw TypeError(e)};var
|
|
1
|
+
"use strict";var Au=e=>{throw TypeError(e)};var Wa=(e,t,n)=>t.has(e)||Au("Cannot "+n);var C=(e,t,n)=>(Wa(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?Au("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(Wa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(Wa(e,t,"access private method"),n);var ui=(e,t,n,r)=>({set _(o){V(e,t,o,n)},get _(){return C(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),Br=require("react-dom");function Ng(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Ng(d);function cf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var df={exports:{}},ya={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Dg=Symbol.for("react.transitional.element"),_g=Symbol.for("react.fragment");function ff(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:Dg,type:e,key:r,ref:t!==void 0?t:null,props:n}}xa.Fragment=_g;xa.jsx=ff;xa.jsxs=ff;df.exports=xa;var y=df.exports,Xn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fg={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},nn,Al,Xd,Lg=(Xd=class{constructor(){G(this,nn,Fg);G(this,Al,!1)}setTimeoutProvider(e){B(this,nn,e)}setTimeout(e,t){return C(this,nn).setTimeout(e,t)}clearTimeout(e){C(this,nn).clearTimeout(e)}setInterval(e,t){return C(this,nn).setInterval(e,t)}clearInterval(e){C(this,nn).clearInterval(e)}},nn=new WeakMap,Al=new WeakMap,Xd),Fn=new Lg;function Ig(e){setTimeout(e,0)}var Un=typeof window>"u"||"Deno"in globalThis;function Le(){}function Ng(e,t){return typeof e=="function"?e(t):e}function _s(e){return typeof e=="number"&&e>=0&&e!==1/0}function hf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gn(e,t){return typeof e=="function"?e(t):e}function ct(e,t){return typeof e=="function"?e(t):e}function Ku(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Kl(a,t.options))return!1}else if(!Po(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function Bu(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(yn(t.options.mutationKey)!==yn(i))return!1}else if(!Po(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Kl(e,t){return((t==null?void 0:t.queryKeyHashFn)||yn)(e)}function yn(e){return JSON.stringify(e,(t,n)=>Fs(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Po(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Po(e[n],t[n])):!1}var jg=Object.prototype.hasOwnProperty;function Bl(e,t){if(e===t)return e;const n=Hu(e)&&Hu(t);if(!n&&!(Fs(e)&&Fs(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,s=n?new Array(a):{};let l=0;for(let u=0;u<a;u++){const h=n?u:i[u],c=e[h],p=t[h];if(c===p){s[h]=c,(n?u<o:jg.call(e,h))&&l++;continue}if(c===null||p===null||typeof c!="object"||typeof p!="object"){s[h]=p;continue}const f=Bl(c,p);s[h]=f,f===c&&l++}return o===a&&l===o?e:s}function Ro(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Hu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fs(e){if(!Vu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Vu(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Vu(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ag(e){return new Promise(t=>{Fn.setTimeout(t,e)})}function Ls(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Bl(e,t):t}function Kg(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Bg(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var tt=Symbol();function pf(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function gf(e,t){return typeof e=="function"?e(...t):!!e}var In,rn,Cr,Zd,Hg=(Zd=class extends Xn{constructor(){super();G(this,In);G(this,rn);G(this,Cr);B(this,Cr,t=>{if(!Un&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,rn)||this.setEventListener(C(this,Cr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,rn))==null||t.call(this),B(this,rn,void 0))}setEventListener(t){var n;B(this,Cr,t),(n=C(this,rn))==null||n.call(this),B(this,rn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,In)!==t&&(B(this,In,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,In)=="boolean"?C(this,In):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},In=new WeakMap,rn=new WeakMap,Cr=new WeakMap,Zd),Hl=new Hg;function Is(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var Vg=Ig;function zg(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=Vg;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var be=zg(),$r,on,Sr,Jd,Ug=(Jd=class extends Xn{constructor(){super();G(this,$r,!0);G(this,on);G(this,Sr);B(this,Sr,t=>{if(!Un&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,on)||this.setEventListener(C(this,Sr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,on))==null||t.call(this),B(this,on,void 0))}setEventListener(t){var n;B(this,Sr,t),(n=C(this,on))==null||n.call(this),B(this,on,t(this.setOnline.bind(this)))}setOnline(t){C(this,$r)!==t&&(B(this,$r,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,$r)}},$r=new WeakMap,on=new WeakMap,Sr=new WeakMap,Jd),Vi=new Ug;function qg(e){return Math.min(1e3*2**e,3e4)}function mf(e){return(e??"online")==="online"?Vi.isOnline():!0}var Ns=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vf(e){let t=!1,n=0,r;const o=Is(),i=()=>o.status!=="pending",a=m=>{var v;if(!i()){const b=new Ns(m);p(b),(v=e.onCancel)==null||v.call(e,b)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>Hl.isFocused()&&(e.networkMode==="always"||Vi.isOnline())&&e.canRun(),h=()=>mf(e.networkMode)&&e.canRun(),c=m=>{i()||(r==null||r(),o.resolve(m))},p=m=>{i()||(r==null||r(),o.reject(m))},f=()=>new Promise(m=>{var v;r=b=>{(i()||u())&&m(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;r=void 0,i()||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(i())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(b){m=Promise.reject(b)}Promise.resolve(m).then(c).catch(b=>{var E;if(i())return;const x=e.retry??(Un?0:3),w=e.retryDelay??qg,$=typeof w=="function"?w(n,b):w,k=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!k){p(b);return}n++,(E=e.onFail)==null||E.call(e,n,b),Ag($).then(()=>u()?void 0:f()).then(()=>{t?p(b):g()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r==null||r(),o),cancelRetry:s,continueRetry:l,canStart:h,start:()=>(h()?g():f().then(g),o)}}var Nn,ef,bf=(ef=class{constructor(){G(this,Nn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_s(this.gcTime)&&B(this,Nn,Fn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Un?1/0:5*60*1e3))}clearGcTimeout(){C(this,Nn)&&(Fn.clearTimeout(C(this,Nn)),B(this,Nn,void 0))}},Nn=new WeakMap,ef),jn,Er,lt,An,Re,Ko,Kn,yt,Kt,tf,Wg=(tf=class extends bf{constructor(t){super();G(this,yt);G(this,jn);G(this,Er);G(this,lt);G(this,An);G(this,Re);G(this,Ko);G(this,Kn);B(this,Kn,!1),B(this,Ko,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,An,t.client),B(this,lt,C(this,An).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,jn,Uu(this.options)),this.state=t.state??C(this,jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Re))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,Ko),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Uu(this.options);n.data!==void 0&&(this.setState(zu(n.data,n.dataUpdatedAt)),B(this,jn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,lt).remove(this)}setData(t,n){const r=Ls(this.state.data,t,this.options);return X(this,yt,Kt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){X(this,yt,Kt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,Re))==null?void 0:r.promise;return(o=C(this,Re))==null||o.cancel(t),n?n.then(Le).catch(Le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,jn))}isActive(){return this.observers.some(t=>ct(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!hf(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Re))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Re))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,lt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Re)&&(C(this,Kn)?C(this,Re).cancel({revert:!0}):C(this,Re).cancelRetry()),this.scheduleGc()),C(this,lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,yt,Kt).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,h,c,p,f,g,m,v,b,x,w;if(this.state.fetchStatus!=="idle"&&((l=C(this,Re))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Re))return C(this,Re).continueRetry(),C(this,Re).promise}if(t&&this.setOptions(t),!this.options.queryFn){const $=this.observers.find(k=>k.options.queryFn);$&&this.setOptions($.options)}const r=new AbortController,o=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>(B(this,Kn,!0),r.signal)})},i=()=>{const $=pf(this.options,n),E=(()=>{const R={client:C(this,An),queryKey:this.queryKey,meta:this.meta};return o(R),R})();return B(this,Kn,!1),this.options.persister?this.options.persister($,E,this):$(E)},s=(()=>{const $={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,An),state:this.state,fetchFn:i};return o($),$})();(u=this.options.behavior)==null||u.onFetch(s,this),B(this,Er,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=s.fetchOptions)==null?void 0:h.meta))&&X(this,yt,Kt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),B(this,Re,vf({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:$=>{$ instanceof Ns&&$.revert&&this.setState({...C(this,Er),fetchStatus:"idle"}),r.abort()},onFail:($,k)=>{X(this,yt,Kt).call(this,{type:"failed",failureCount:$,error:k})},onPause:()=>{X(this,yt,Kt).call(this,{type:"pause"})},onContinue:()=>{X(this,yt,Kt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const $=await C(this,Re).start();if($===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData($),(f=(p=C(this,lt).config).onSuccess)==null||f.call(p,$,this),(m=(g=C(this,lt).config).onSettled)==null||m.call(g,$,this.state.error,this),$}catch($){if($ instanceof Ns){if($.silent)return C(this,Re).promise;if($.revert){if(this.state.data===void 0)throw $;return this.state.data}}throw X(this,yt,Kt).call(this,{type:"error",error:$}),(b=(v=C(this,lt).config).onError)==null||b.call(v,$,this),(w=(x=C(this,lt).config).onSettled)==null||w.call(x,this.state.data,$,this),$}finally{this.scheduleGc()}}},jn=new WeakMap,Er=new WeakMap,lt=new WeakMap,An=new WeakMap,Re=new WeakMap,Ko=new WeakMap,Kn=new WeakMap,yt=new WeakSet,Kt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yf(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...zu(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return B(this,Er,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,lt).notify({query:this,type:"updated",action:t})})},tf);function yf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Uu(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ve,re,Bo,Ie,Bn,Pr,Ht,an,Ho,Rr,kr,Hn,Vn,sn,Mr,ue,ho,js,As,Ks,Bs,Hs,Vs,zs,xf,nf,Go=(nf=class extends Xn{constructor(t,n){super();G(this,ue);G(this,Ve);G(this,re);G(this,Bo);G(this,Ie);G(this,Bn);G(this,Pr);G(this,Ht);G(this,an);G(this,Ho);G(this,Rr);G(this,kr);G(this,Hn);G(this,Vn);G(this,sn);G(this,Mr,new Set);this.options=n,B(this,Ve,t),B(this,an,null),B(this,Ht,Is()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,re).addObserver(this),qu(C(this,re),this.options)?X(this,ue,ho).call(this):this.updateResult(),X(this,ue,Bs).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Us(C(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Us(C(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,ue,Hs).call(this),X(this,ue,Vs).call(this),C(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,re);if(this.options=C(this,Ve).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ct(this.options.enabled,C(this,re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,ue,zs).call(this),C(this,re).setOptions(this.options),n._defaulted&&!Ro(this.options,n)&&C(this,Ve).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,re),observer:this});const o=this.hasListeners();o&&Wu(C(this,re),r,this.options,n)&&X(this,ue,ho).call(this),this.updateResult(),o&&(C(this,re)!==r||ct(this.options.enabled,C(this,re))!==ct(n.enabled,C(this,re))||gn(this.options.staleTime,C(this,re))!==gn(n.staleTime,C(this,re)))&&X(this,ue,js).call(this);const i=X(this,ue,As).call(this);o&&(C(this,re)!==r||ct(this.options.enabled,C(this,re))!==ct(n.enabled,C(this,re))||i!==C(this,sn))&&X(this,ue,Ks).call(this,i)}getOptimisticResult(t){const n=C(this,Ve).getQueryCache().build(C(this,Ve),t),r=this.createResult(n,t);return Qg(this,r)&&(B(this,Ie,r),B(this,Pr,this.options),B(this,Bn,C(this,re).state)),r}getCurrentResult(){return C(this,Ie)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Ht).status==="pending"&&C(this,Ht).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,Mr).add(t)}getCurrentQuery(){return C(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Ve).defaultQueryOptions(t),r=C(this,Ve).getQueryCache().build(C(this,Ve),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,ue,ho).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ie)))}createResult(t,n){var _;const r=C(this,re),o=this.options,i=C(this,Ie),a=C(this,Bn),s=C(this,Pr),u=t!==r?t.state:C(this,Bo),{state:h}=t;let c={...h},p=!1,f;if(n._optimisticResults){const D=this.hasListeners(),P=!D&&qu(t,n),I=D&&Wu(t,r,n,o);(P||I)&&(c={...c,...yf(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:g,errorUpdatedAt:m,status:v}=c;f=c.data;let b=!1;if(n.placeholderData!==void 0&&f===void 0&&v==="pending"){let D;i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(D=i.data,b=!0):D=typeof n.placeholderData=="function"?n.placeholderData((_=C(this,kr))==null?void 0:_.state.data,C(this,kr)):n.placeholderData,D!==void 0&&(v="success",f=Ls(i==null?void 0:i.data,D,n),p=!0)}if(n.select&&f!==void 0&&!b)if(i&&f===(a==null?void 0:a.data)&&n.select===C(this,Ho))f=C(this,Rr);else try{B(this,Ho,n.select),f=n.select(f),f=Ls(i==null?void 0:i.data,f,n),B(this,Rr,f),B(this,an,null)}catch(D){B(this,an,D)}C(this,an)&&(g=C(this,an),f=C(this,Rr),m=Date.now(),v="error");const x=c.fetchStatus==="fetching",w=v==="pending",$=v==="error",k=w&&x,E=f!==void 0,M={status:v,fetchStatus:c.fetchStatus,isPending:w,isSuccess:v==="success",isError:$,isInitialLoading:k,isLoading:k,data:f,dataUpdatedAt:c.dataUpdatedAt,error:g,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:$&&!E,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:$&&E,isStale:Vl(t,n),refetch:this.refetch,promise:C(this,Ht),isEnabled:ct(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const D=N=>{M.status==="error"?N.reject(M.error):M.data!==void 0&&N.resolve(M.data)},P=()=>{const N=B(this,Ht,M.promise=Is());D(N)},I=C(this,Ht);switch(I.status){case"pending":t.queryHash===r.queryHash&&D(I);break;case"fulfilled":(M.status==="error"||M.data!==I.value)&&P();break;case"rejected":(M.status!=="error"||M.error!==I.reason)&&P();break}}return M}updateResult(){const t=C(this,Ie),n=this.createResult(C(this,re),this.options);if(B(this,Bn,C(this,re).state),B(this,Pr,this.options),C(this,Bn).data!==void 0&&B(this,kr,C(this,re)),Ro(n,t))return;B(this,Ie,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!C(this,Mr).size)return!0;const a=new Set(i??C(this,Mr));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ie)).some(s=>{const l=s;return C(this,Ie)[l]!==t[l]&&a.has(l)})};X(this,ue,xf).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,ue,Bs).call(this)}},Ve=new WeakMap,re=new WeakMap,Bo=new WeakMap,Ie=new WeakMap,Bn=new WeakMap,Pr=new WeakMap,Ht=new WeakMap,an=new WeakMap,Ho=new WeakMap,Rr=new WeakMap,kr=new WeakMap,Hn=new WeakMap,Vn=new WeakMap,sn=new WeakMap,Mr=new WeakMap,ue=new WeakSet,ho=function(t){X(this,ue,zs).call(this);let n=C(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Le)),n},js=function(){X(this,ue,Hs).call(this);const t=gn(this.options.staleTime,C(this,re));if(Un||C(this,Ie).isStale||!_s(t))return;const r=hf(C(this,Ie).dataUpdatedAt,t)+1;B(this,Hn,Fn.setTimeout(()=>{C(this,Ie).isStale||this.updateResult()},r))},As=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,re)):this.options.refetchInterval)??!1},Ks=function(t){X(this,ue,Vs).call(this),B(this,sn,t),!(Un||ct(this.options.enabled,C(this,re))===!1||!_s(C(this,sn))||C(this,sn)===0)&&B(this,Vn,Fn.setInterval(()=>{(this.options.refetchIntervalInBackground||Hl.isFocused())&&X(this,ue,ho).call(this)},C(this,sn)))},Bs=function(){X(this,ue,js).call(this),X(this,ue,Ks).call(this,X(this,ue,As).call(this))},Hs=function(){C(this,Hn)&&(Fn.clearTimeout(C(this,Hn)),B(this,Hn,void 0))},Vs=function(){C(this,Vn)&&(Fn.clearInterval(C(this,Vn)),B(this,Vn,void 0))},zs=function(){const t=C(this,Ve).getQueryCache().build(C(this,Ve),this.options);if(t===C(this,re))return;const n=C(this,re);B(this,re,t),B(this,Bo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},xf=function(t){be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ie))}),C(this,Ve).getQueryCache().notify({query:C(this,re),type:"observerResultsUpdated"})})},nf);function Gg(e,t){return ct(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function qu(e,t){return Gg(e,t)||e.state.data!==void 0&&Us(e,t,t.refetchOnMount)}function Us(e,t,n){if(ct(t.enabled,e)!==!1&&gn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Vl(e,t)}return!1}function Wu(e,t,n,r){return(e!==t||ct(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Vl(e,n)}function Vl(e,t){return ct(t.enabled,e)!==!1&&e.isStaleByTime(gn(t.staleTime,e))}function Qg(e,t){return!Ro(e.getCurrentResult(),t)}function zi(e){return{onFetch:(t,n)=>{var h,c,p,f,g;const r=t.options,o=(p=(c=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:c.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],a=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},b=pf(t.options,t.fetchOptions),x=async(w,$,k)=>{if(m)return Promise.reject();if($==null&&w.pages.length)return Promise.resolve(w);const R=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:$,direction:k?"backward":"forward",meta:t.options.meta};return v(P),P})(),M=await b(R),{maxPages:_}=t.options,D=k?Bg:Kg;return{pages:D(w.pages,M,_),pageParams:D(w.pageParams,$,_)}};if(o&&i.length){const w=o==="backward",$=w?wf:qs,k={pages:i,pageParams:a},E=$(r,k);s=await x(k,E,w)}else{const w=e??i.length;do{const $=l===0?a[0]??r.initialPageParam:qs(r,s);if(l>0&&$==null)break;s=await x(s,$),l++}while(l<w)}return s};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function qs(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wf(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function Yg(e,t){return t?qs(e,t)!=null:!1}function Xg(e,t){return!t||!e.getPreviousPageParam?!1:wf(e,t)!=null}var Cf=class extends Go{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:zi()})}getOptimisticResult(e){return e.behavior=zi(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var g,m;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:i,isError:a,isRefetchError:s}=r,l=(m=(g=n.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:m.direction,u=a&&l==="forward",h=o&&l==="forward",c=a&&l==="backward",p=o&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Yg(t,n.data),hasPreviousPage:Xg(t,n.data),isFetchNextPageError:u,isFetchingNextPage:h,isFetchPreviousPageError:c,isFetchingPreviousPage:p,isRefetchError:s&&!u&&!c,isRefetching:i&&!h&&!p}}},Vo,Tt,Ne,zn,Dt,en,rf,Zg=(rf=class extends bf{constructor(t){super();G(this,Dt);G(this,Vo);G(this,Tt);G(this,Ne);G(this,zn);B(this,Vo,t.client),this.mutationId=t.mutationId,B(this,Ne,t.mutationCache),B(this,Tt,[]),this.state=t.state||$f(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,Tt).includes(t)||(C(this,Tt).push(t),this.clearGcTimeout(),C(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Tt,C(this,Tt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Tt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ne).remove(this))}continue(){var t;return((t=C(this,zn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,s,l,u,h,c,p,f,g,m,v,b,x,w,$,k,E,R,M,_;const n=()=>{X(this,Dt,en).call(this,{type:"continue"})},r={client:C(this,Vo),meta:this.options.meta,mutationKey:this.options.mutationKey};B(this,zn,vf({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(D,P)=>{X(this,Dt,en).call(this,{type:"failed",failureCount:D,error:P})},onPause:()=>{X(this,Dt,en).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ne).canRun(this)}));const o=this.state.status==="pending",i=!C(this,zn).canStart();try{if(o)n();else{X(this,Dt,en).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(a=C(this,Ne).config).onMutate)==null?void 0:s.call(a,t,this,r));const P=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));P!==this.state.context&&X(this,Dt,en).call(this,{type:"pending",context:P,variables:t,isPaused:i})}const D=await C(this,zn).start();return await((c=(h=C(this,Ne).config).onSuccess)==null?void 0:c.call(h,D,t,this.state.context,this,r)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,D,t,this.state.context,r)),await((m=(g=C(this,Ne).config).onSettled)==null?void 0:m.call(g,D,null,this.state.variables,this.state.context,this,r)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,D,null,t,this.state.context,r)),X(this,Dt,en).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(x=C(this,Ne).config).onError)==null?void 0:w.call(x,D,t,this.state.context,this,r)),await((k=($=this.options).onError)==null?void 0:k.call($,D,t,this.state.context,r)),await((R=(E=C(this,Ne).config).onSettled)==null?void 0:R.call(E,void 0,D,this.state.variables,this.state.context,this,r)),await((_=(M=this.options).onSettled)==null?void 0:_.call(M,void 0,D,t,this.state.context,r)),D}finally{X(this,Dt,en).call(this,{type:"error",error:D})}}finally{C(this,Ne).runNext(this)}}},Vo=new WeakMap,Tt=new WeakMap,Ne=new WeakMap,zn=new WeakMap,Dt=new WeakSet,en=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),be.batch(()=>{C(this,Tt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ne).notify({mutation:this,type:"updated",action:t})})},rf);function $f(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vt,xt,zo,of,Jg=(of=class extends Xn{constructor(t={}){super();G(this,Vt);G(this,xt);G(this,zo);this.config=t,B(this,Vt,new Set),B(this,xt,new Map),B(this,zo,0)}build(t,n,r){const o=new Zg({client:t,mutationCache:this,mutationId:++ui(this,zo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,Vt).add(t);const n=ci(t);if(typeof n=="string"){const r=C(this,xt).get(n);r?r.push(t):C(this,xt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,Vt).delete(t)){const n=ci(t);if(typeof n=="string"){const r=C(this,xt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,xt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ci(t);if(typeof n=="string"){const r=C(this,xt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ci(t);if(typeof n=="string"){const o=(r=C(this,xt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){be.batch(()=>{C(this,Vt).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Vt).clear(),C(this,xt).clear()})}getAll(){return Array.from(C(this,Vt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Bu(n,r))}findAll(t={}){return this.getAll().filter(n=>Bu(t,n))}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Le))))}},Vt=new WeakMap,xt=new WeakMap,zo=new WeakMap,of);function ci(e){var t;return(t=e.options.scope)==null?void 0:t.id}var zt,ln,ze,Ut,Wt,Li,Ws,af,em=(af=class extends Xn{constructor(n,r){super();G(this,Wt);G(this,zt);G(this,ln);G(this,ze);G(this,Ut);B(this,zt,n),this.setOptions(r),this.bindMethods(),X(this,Wt,Li).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=C(this,zt).defaultMutationOptions(n),Ro(this.options,r)||C(this,zt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,ze),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&yn(r.mutationKey)!==yn(this.options.mutationKey)?this.reset():((o=C(this,ze))==null?void 0:o.state.status)==="pending"&&C(this,ze).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,ze))==null||n.removeObserver(this)}onMutationUpdate(n){X(this,Wt,Li).call(this),X(this,Wt,Ws).call(this,n)}getCurrentResult(){return C(this,ln)}reset(){var n;(n=C(this,ze))==null||n.removeObserver(this),B(this,ze,void 0),X(this,Wt,Li).call(this),X(this,Wt,Ws).call(this)}mutate(n,r){var o;return B(this,Ut,r),(o=C(this,ze))==null||o.removeObserver(this),B(this,ze,C(this,zt).getMutationCache().build(C(this,zt),this.options)),C(this,ze).addObserver(this),C(this,ze).execute(n)}},zt=new WeakMap,ln=new WeakMap,ze=new WeakMap,Ut=new WeakMap,Wt=new WeakSet,Li=function(){var r;const n=((r=C(this,ze))==null?void 0:r.state)??$f();B(this,ln,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Ws=function(n){be.batch(()=>{var r,o,i,a,s,l,u,h;if(C(this,Ut)&&this.hasListeners()){const c=C(this,ln).variables,p=C(this,ln).context,f={client:C(this,zt),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((o=(r=C(this,Ut)).onSuccess)==null||o.call(r,n.data,c,p,f),(a=(i=C(this,Ut)).onSettled)==null||a.call(i,n.data,null,c,p,f)):(n==null?void 0:n.type)==="error"&&((l=(s=C(this,Ut)).onError)==null||l.call(s,n.error,c,p,f),(h=(u=C(this,Ut)).onSettled)==null||h.call(u,void 0,n.error,c,p,f))}this.listeners.forEach(c=>{c(C(this,ln))})})},af);function Gu(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function tm(e,t,n){const r=e.slice(0);return r[t]=n,r}var Or,Je,Tr,Dr,ut,un,Uo,qo,Wo,De,Gs,Qs,Ys,Xs,Zs,sf,nm=(sf=class extends Xn{constructor(t,n,r){super();G(this,De);G(this,Or);G(this,Je);G(this,Tr);G(this,Dr);G(this,ut);G(this,un);G(this,Uo);G(this,qo);G(this,Wo,[]);B(this,Or,t),B(this,Dr,r),B(this,Tr,[]),B(this,ut,[]),B(this,Je,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&C(this,ut).forEach(t=>{t.subscribe(n=>{X(this,De,Xs).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,C(this,ut).forEach(t=>{t.destroy()})}setQueries(t,n){B(this,Tr,t),B(this,Dr,n),be.batch(()=>{const r=C(this,ut),o=X(this,De,Ys).call(this,C(this,Tr));B(this,Wo,o),o.forEach(c=>c.observer.setOptions(c.defaultedQueryOptions));const i=o.map(c=>c.observer),a=i.map(c=>c.getCurrentResult()),s=r.length!==i.length,l=i.some((c,p)=>c!==r[p]),u=s||l,h=u?!0:a.some((c,p)=>{const f=C(this,Je)[p];return!f||!Ro(c,f)});!u&&!h||(u&&B(this,ut,i),B(this,Je,a),this.hasListeners()&&(u&&(Gu(r,i).forEach(c=>{c.destroy()}),Gu(i,r).forEach(c=>{c.subscribe(p=>{X(this,De,Xs).call(this,c,p)})})),X(this,De,Zs).call(this)))})}getCurrentResult(){return C(this,Je)}getQueries(){return C(this,ut).map(t=>t.getCurrentQuery())}getObservers(){return C(this,ut)}getOptimisticResult(t,n){const r=X(this,De,Ys).call(this,t),o=r.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions));return[o,i=>X(this,De,Qs).call(this,i??o,n),()=>X(this,De,Gs).call(this,o,r)]}},Or=new WeakMap,Je=new WeakMap,Tr=new WeakMap,Dr=new WeakMap,ut=new WeakMap,un=new WeakMap,Uo=new WeakMap,qo=new WeakMap,Wo=new WeakMap,De=new WeakSet,Gs=function(t,n){return n.map((r,o)=>{const i=t[o];return r.defaultedQueryOptions.notifyOnChangeProps?i:r.observer.trackResult(i,a=>{n.forEach(s=>{s.observer.trackProp(a)})})})},Qs=function(t,n){return n?((!C(this,un)||C(this,Je)!==C(this,qo)||n!==C(this,Uo))&&(B(this,Uo,n),B(this,qo,C(this,Je)),B(this,un,Bl(C(this,un),n(t)))),C(this,un)):t},Ys=function(t){const n=new Map;C(this,ut).forEach(o=>{const i=o.options.queryHash;if(!i)return;const a=n.get(i);a?a.push(o):n.set(i,[o])});const r=[];return t.forEach(o=>{var l;const i=C(this,Or).defaultQueryOptions(o),s=((l=n.get(i.queryHash))==null?void 0:l.shift())??new Go(C(this,Or),i);r.push({defaultedQueryOptions:i,observer:s})}),r},Xs=function(t,n){const r=C(this,ut).indexOf(t);r!==-1&&(B(this,Je,tm(C(this,Je),r,n)),X(this,De,Zs).call(this))},Zs=function(){var t;if(this.hasListeners()){const n=C(this,un),r=X(this,De,Gs).call(this,C(this,Je),C(this,Wo)),o=X(this,De,Qs).call(this,r,(t=C(this,Dr))==null?void 0:t.combine);n!==o&&be.batch(()=>{this.listeners.forEach(i=>{i(C(this,Je))})})}},sf),_t,lf,rm=(lf=class extends Xn{constructor(t={}){super();G(this,_t);this.config=t,B(this,_t,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Kl(o,n);let a=this.get(i);return a||(a=new Wg({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){C(this,_t).has(t.queryHash)||(C(this,_t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,_t).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,_t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,_t).get(t)}getAll(){return[...C(this,_t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ku(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ku(t,r)):n}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_t=new WeakMap,lf),ve,cn,dn,_r,Fr,fn,Lr,Ir,uf,om=(uf=class{constructor(e={}){G(this,ve);G(this,cn);G(this,dn);G(this,_r);G(this,Fr);G(this,fn);G(this,Lr);G(this,Ir);B(this,ve,e.queryCache||new rm),B(this,cn,e.mutationCache||new Jg),B(this,dn,e.defaultOptions||{}),B(this,_r,new Map),B(this,Fr,new Map),B(this,fn,0)}mount(){ui(this,fn)._++,C(this,fn)===1&&(B(this,Lr,Hl.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onFocus())})),B(this,Ir,Vi.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onOnline())})))}unmount(){var e,t;ui(this,fn)._--,C(this,fn)===0&&((e=C(this,Lr))==null||e.call(this),B(this,Lr,void 0),(t=C(this,Ir))==null||t.call(this),B(this,Ir,void 0))}isFetching(e){return C(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,cn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ve).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,ve).get(r.queryHash),i=o==null?void 0:o.state.data,a=Ng(t,i);if(a!==void 0)return C(this,ve).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return be.batch(()=>C(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ve);be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ve);return be.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=be.batch(()=>C(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Le).catch(Le)}invalidateQueries(e,t={}){return be.batch(()=>(C(this,ve).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=be.batch(()=>C(this,ve).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Le)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Le)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ve).build(this,t);return n.isStaleByTime(gn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Le).catch(Le)}fetchInfiniteQuery(e){return e.behavior=zi(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Le).catch(Le)}ensureInfiniteQueryData(e){return e.behavior=zi(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vi.isOnline()?C(this,cn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ve)}getMutationCache(){return C(this,cn)}getDefaultOptions(){return C(this,dn)}setDefaultOptions(e){B(this,dn,e)}setQueryDefaults(e,t){C(this,_r).set(yn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,_r).values()],n={};return t.forEach(r=>{Po(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Fr).set(yn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Fr).values()],n={};return t.forEach(r=>{Po(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,dn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Kl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===tt&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,dn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ve).clear(),C(this,cn).clear()}},ve=new WeakMap,cn=new WeakMap,dn=new WeakMap,_r=new WeakMap,Fr=new WeakMap,fn=new WeakMap,Lr=new WeakMap,Ir=new WeakMap,uf),Sf=S.createContext(void 0),Qo=e=>{const t=S.useContext(Sf);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},im=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Sf.Provider,{value:e,children:t})),Ef=S.createContext(!1),Pf=()=>S.useContext(Ef);Ef.Provider;function am(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var sm=S.createContext(am()),Rf=()=>S.useContext(sm),kf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Mf=e=>{S.useEffect(()=>{e.clearReset()},[e])},Of=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||gf(n,[e.error,r])),zl=(e,t)=>t.state.data===void 0,Tf=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Df=(e,t)=>e.isLoading&&e.isFetching&&!t,Js=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ui=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _f({queries:e,...t},n){const r=Qo(n),o=Pf(),i=Rf(),a=S.useMemo(()=>e.map(m=>{const v=r.defaultQueryOptions(m);return v._optimisticResults=o?"isRestoring":"optimistic",v}),[e,r,o]);a.forEach(m=>{Tf(m),kf(m,i)}),Mf(i);const[s]=S.useState(()=>new nm(r,a,t)),[l,u,h]=s.getOptimisticResult(a,t.combine),c=!o&&t.subscribed!==!1;S.useSyncExternalStore(S.useCallback(m=>c?s.subscribe(be.batchCalls(m)):Le,[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),S.useEffect(()=>{s.setQueries(a,t)},[a,t,s]);const f=l.some((m,v)=>Js(a[v],m))?l.flatMap((m,v)=>{const b=a[v];if(b){const x=new Go(r,b);if(Js(b,m))return Ui(b,x,i);Df(m,o)&&Ui(b,x,i)}return[]}):[];if(f.length>0)throw Promise.all(f);const g=l.find((m,v)=>{const b=a[v];return b&&Of({result:m,errorResetBoundary:i,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(g!=null&&g.error)throw g.error;return u(h())}function wa(e,t,n){var c,p,f,g,m;const r=Pf(),o=Rf(),i=Qo(n),a=i.defaultQueryOptions(e);(p=(c=i.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||p.call(c,a),a._optimisticResults=r?"isRestoring":"optimistic",Tf(a),kf(a,o),Mf(o);const s=!i.getQueryCache().get(a.queryHash),[l]=S.useState(()=>new t(i,a)),u=l.getOptimisticResult(a),h=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(v=>{const b=h?l.subscribe(be.batchCalls(v)):Le;return l.updateResult(),b},[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),S.useEffect(()=>{l.setOptions(a)},[a,l]),Js(a,u))throw Ui(a,l,o);if(Of({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((g=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||g.call(f,a,u),a.experimental_prefetchInRender&&!Un&&Df(u,r)){const v=s?Ui(a,l,o):(m=i.getQueryCache().get(a.queryHash))==null?void 0:m.promise;v==null||v.catch(Le).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function lm(e,t){return wa(e,Go,t)}function um(e,t){return wa({...e,enabled:!0,suspense:!0,throwOnError:zl,placeholderData:void 0},Go,t)}function cm(e,t){return wa({...e,enabled:!0,suspense:!0,throwOnError:zl},Cf,t)}function dm(e,t){return _f({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:zl,enabled:!0,placeholderData:void 0}))},t)}function fm(e,t){const n=Qo(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function hm(e,t){const n=Qo(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function pm(e,t){const n=Qo(t),[r]=S.useState(()=>new em(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const o=S.useSyncExternalStore(S.useCallback(a=>r.subscribe(be.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=S.useCallback((a,s)=>{r.mutate(a,s).catch(Le)},[r]);if(o.error&&gf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function gm(e,t){return wa(e,Cf,t)}var mm=Object.create,Ff=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,Lf=Object.getOwnPropertyNames,bm=Object.getPrototypeOf,ym=Object.prototype.hasOwnProperty,Lt=(e,t)=>function(){return t||(0,e[Lf(e)[0]])((t={exports:{}}).exports,t),t.exports},xm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Lf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!ym.call(e,s)&&s!==n&&Ff(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=vm(t,s))||r.enumerable});return e},we=(e,t,n)=>(n=e!=null?mm(bm(e)):{},xm(Ff(n,"default",{value:e,enumerable:!0}),e)),If=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),wm=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=If().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Cm=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=If().default,r=wm();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zn=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Cm();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),St=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Zn();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function Ca(e){const t={subscribe(n){let r=null,o=!1,i=!1,a=!1;function s(){if(r===null){a=!0;return}i||(i=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(l){var u;o||(u=n.next)===null||u===void 0||u.call(n,l)},error(l){var u;o||(o=!0,(u=n.error)===null||u===void 0||u.call(n,l),s())},complete(){var l;o||(o=!0,(l=n.complete)===null||l===void 0||l.call(n),s())}}),a&&s(),{unsubscribe:s}},pipe(...n){return n.reduce($m,t)}};return t}function $m(e,t){return t(e)}function Sm(e){const t=new AbortController;return new Promise((r,o)=>{let i=!1;function a(){i||(i=!0,s.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const s=e.subscribe({next(l){i=!0,r(l),a()},error(l){o(l)},complete(){t.abort(),a()}})})}function Em(e){return t=>{let n=0,r=null;const o=[];function i(){r||(r=t.subscribe({next(s){for(const u of o){var l;(l=u.next)===null||l===void 0||l.call(u,s)}},error(s){for(const u of o){var l;(l=u.error)===null||l===void 0||l.call(u,s)}},complete(){for(const l of o){var s;(s=l.complete)===null||s===void 0||s.call(l)}}}))}function a(){if(n===0&&r){const s=r;r=null,s.unsubscribe()}}return Ca(s=>(n++,o.push(s),i(),{unsubscribe(){n--,a();const l=o.findIndex(u=>u===s);l>-1&&o.splice(l,1)}}))}}function Pm(e){let t=e;const n=[],r=a=>{t!==void 0&&a.next(t),n.push(a)},o=a=>{n.splice(n.indexOf(a),1)},i=Ca(a=>(r(a),()=>{o(a)}));return i.next=a=>{if(t!==a){t=a;for(const s of n)s.next(a)}},i.get=()=>t,i}function Rm(e){return Ca(t=>{function n(o=0,i=e.op){const a=e.links[o];if(!a)throw new Error("No more links to execute - did you forget to add an ending link?");return a({op:i,next(l){return n(o+1,l)}})}return n().subscribe(t)})}function qn(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const km=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Nf(e){return km&&qn(e)&&Symbol.asyncIterator in e}var Mm=Object.create,jf=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Af=Object.getOwnPropertyNames,Tm=Object.getPrototypeOf,Dm=Object.prototype.hasOwnProperty,Yo=(e,t)=>function(){return t||(0,e[Af(e)[0]])((t={exports:{}}).exports,t),t.exports},_m=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Af(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Dm.call(e,s)&&s!==n&&jf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Om(t,s))||r.enumerable});return e},$a=(e,t,n)=>(n=e!=null?Mm(Tm(e)):{},_m(jf(n,"default",{value:e,enumerable:!0}),e));const Kf=()=>{},Qu=e=>{Object.freeze&&Object.freeze(e)};function Bf(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Kf,{get(i,a){if(!(typeof a!="string"||a==="then"))return Bf(e,[...t,a],n)},apply(i,a,s){const l=t[t.length-1];let u={args:s,path:t};return l==="call"?u={args:s.length>=2?[s[1]]:[],path:t.slice(0,-1)}:l==="apply"&&(u={args:s.length>=2?s[1]:[],path:t.slice(0,-1)}),Qu(u.args),Qu(u.path),e(u)}})),n[o]}const Sa=e=>Bf(e,[],Object.create(null)),Ul=e=>new Proxy(Kf,{get(t,n){if(n!=="then")return e(n)}});var Hf=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Fm=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Hf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Lm=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Hf().default,r=Fm();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vf=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Lm();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ql=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Vf();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});$a(ql());$a(Vf());var di=$a(ql());function Im(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,di.default)((0,di.default)({},e),{},{error:r})}}return{ok:!0,result:(0,di.default)((0,di.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Qa=class extends Error{constructor(){super("Unable to transform response from server")}};function Nm(e,t){let n;try{n=Im(e,t)}catch{throw new Qa}if(!n.ok&&(!qn(n.error.error)||typeof n.error.error.code!="number"))throw new Qa;if(n.ok&&!qn(n.result))throw new Qa;return n}$a(ql());var fi=we(Zn()),ar=we(St());function jm(e){return e instanceof qi}function Am(e){return qn(e)&&qn(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Km(e,t){return typeof e=="string"?e:qn(e)&&typeof e.message=="string"?e.message:t}var qi=class Ii extends Error{constructor(t,n){var r,o;const i=n==null?void 0:n.cause;super(t,{cause:i}),(0,fi.default)(this,"cause",void 0),(0,fi.default)(this,"shape",void 0),(0,fi.default)(this,"data",void 0),(0,fi.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=i,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(o=n.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Ii.prototype)}static from(t,n={}){const r=t;return jm(r)?(n.meta&&(r.meta=(0,ar.default)((0,ar.default)({},r.meta),n.meta)),r):Am(r)?new Ii(r.error.message,(0,ar.default)((0,ar.default)({},n),{},{result:r})):new Ii(Km(r,"Unknown error"),(0,ar.default)((0,ar.default)({},n),{},{cause:r}))}};function Bm(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const Yu=e=>typeof e=="function";function Hm(e){if(e)return e;if(typeof window<"u"&&Yu(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Yu(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var bo=we(St());function Vm(e){return{url:e.url.toString(),fetch:e.fetch,transformer:Bm(e.transformer),methodOverride:e.methodOverride}}function zm(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const Um={query:"GET",mutation:"POST",subscription:"PATCH"};function zf(e){return"input"in e?e.transformer.input.serialize(e.input):zm(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Uf=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=zf(e);i!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return o.length&&(r+="?"+o.join("&")),r},qm=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=zf(e);return t!==void 0?JSON.stringify(t):void 0},Wm=e=>Xm((0,bo.default)((0,bo.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Uf,getBody:qm}));var Gm=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const Qm=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new Gm};async function Ym(e){var t;Qm(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:Um[e.type],i=await(async()=>{const s=await e.headers();return Symbol.iterator in s?Object.fromEntries(s):s})(),a=(0,bo.default)((0,bo.default)((0,bo.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return Hm(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:a})}async function Xm(e){const t={},n=await Ym(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}we(St());const Xu=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Zu(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function o(s){const l=[[]];let u=0;for(;;){const p=s[u];if(!p)break;const f=l[l.length-1];if(p.aborted){var h;(h=p.reject)===null||h===void 0||h.call(p,new Error("Aborted")),u++;continue}if(e.validate(f.concat(p).map(m=>m.key))){f.push(p),u++;continue}if(f.length===0){var c;(c=p.reject)===null||c===void 0||c.call(p,new Error("Input is too big for a single dispatch")),u++;continue}l.push([])}return l}function i(){const s=o(t);r();for(const l of s){if(!l.length)continue;const u={items:l};for(const c of l)c.batch=u;e.fetch(u.items.map(c=>c.key)).then(async c=>{await Promise.all(c.map(async(f,g)=>{const m=u.items[g];try{var v;const x=await Promise.resolve(f);(v=m.resolve)===null||v===void 0||v.call(m,x)}catch(x){var b;(b=m.reject)===null||b===void 0||b.call(m,x)}m.batch=null,m.reject=null,m.resolve=null}));for(const f of u.items){var p;(p=f.reject)===null||p===void 0||p.call(f,new Error("Missing result")),f.batch=null}}).catch(c=>{for(const f of u.items){var p;(p=f.reject)===null||p===void 0||p.call(f,c),f.batch=null}})}}function a(s){var l;const u={aborted:!1,key:s,batch:null,resolve:Xu,reject:Xu},h=new Promise((c,p)=>{var f;u.reject=p,u.resolve=c,(f=t)!==null&&f!==void 0||(t=[]),t.push(u)});return(l=n)!==null&&l!==void 0||(n=setTimeout(i)),h}return{load:a}}function Zm(...e){const t=new AbortController,n=e.length;let r=0;const o=()=>{++r===n&&t.abort()};for(const i of e)i!=null&&i.aborted?o():i==null||i.addEventListener("abort",o,{once:!0});return t.signal}var hi=we(St());function Jm(e){var t,n;const r=Vm(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const a=h=>({validate(c){if(o===1/0&&i===1/0)return!0;if(c.length>i)return!1;const p=c.map(m=>m.path).join(","),f=c.map(m=>m.input);return Uf((0,hi.default)((0,hi.default)({},r),{},{type:h,path:p,inputs:f,signal:null})).length<=o},async fetch(c){const p=c.map(x=>x.path).join(","),f=c.map(x=>x.input),g=Zm(...c.map(x=>x.signal)),m=await Wm((0,hi.default)((0,hi.default)({},r),{},{path:p,inputs:f,type:h,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:g}));return(Array.isArray(m.json)?m.json:c.map(()=>m.json)).map(x=>({meta:m.meta,json:x}))}}),s=Zu(a("query")),l=Zu(a("mutation")),u={query:s,mutation:l};return({op:h})=>Ca(c=>{/* istanbul ignore if -- @preserve */if(h.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=u[h.type].load(h);let g;return f.then(m=>{g=m;const v=Nm(m.json,r.transformer.output);if(!v.ok){c.error(qi.from(v.error,{meta:m.meta}));return}c.next({context:m.meta,result:v.result}),c.complete()}).catch(m=>{c.error(qi.from(m,{meta:g==null?void 0:g.meta}))}),()=>{}})}}we(St());const qf=(e,...t)=>typeof e=="function"?e(...t):e;we(Zn());function ev(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function tv(e){const t=await qf(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function nv(e){const t={method:"connectionParams",data:await qf(e)};return JSON.stringify(t)}we(Zn());var Dn=we(Zn());function rv(e){const{promise:t,resolve:n,reject:r}=ev();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function ov(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function i(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}function a(){clearTimeout(r),i()}function s(){clearTimeout(o),a()}e.addEventListener("open",i),e.addEventListener("message",({data:l})=>{clearTimeout(r),i(),l==="PONG"&&s()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var iv=class el{constructor(t){var n;if((0,Dn.default)(this,"id",++el.connectCount),(0,Dn.default)(this,"WebSocketPonyfill",void 0),(0,Dn.default)(this,"urlOptions",void 0),(0,Dn.default)(this,"keepAliveOpts",void 0),(0,Dn.default)(this,"wsObservable",Pm(null)),(0,Dn.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++el.connectCount;const n=tv(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&ov(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await rv(r),t.urlOptions.connectionParams&&r.send(await nv(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Dn.default)(iv,"connectCount",0);we(Zn());we(St());var Ya=we(Zn()),Ju=we(St()),Ea=class{constructor(e){(0,Ya.default)(this,"links",void 0),(0,Ya.default)(this,"runtime",void 0),(0,Ya.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return Rm({links:this.links,op:(0,Ju.default)((0,Ju.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(Em())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await Sm(n)).result.data}catch(n){throw qi.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(o){switch(o.result.type){case"state":{var i;(i=n.onConnectionStateChange)===null||i===void 0||i.call(n,o.result);break}case"started":{var a;(a=n.onStarted)===null||a===void 0||a.call(n,{context:o.context});break}case"stopped":{var s;(s=n.onStopped)===null||s===void 0||s.call(n);break}case"data":case void 0:{var l;(l=n.onData)===null||l===void 0||l.call(n,o.result.data);break}}},error(o){var i;(i=n.onError)===null||i===void 0||i.call(n,o)},complete(){var o;(o=n.onComplete)===null||o===void 0||o.call(n)}})}};const Wf=Symbol.for("trpc_untypedClient"),av={query:"query",mutate:"mutation",subscribe:"subscription"},sv=e=>av[e];function Gf(e){const t=Sa(({path:n,args:r})=>{const o=[...n],i=sv(o.pop()),a=o.join(".");return e[i](a,...r)});return Ul(n=>n===Wf?e:t[n])}function lv(e){const t=new Ea(e);return Gf(t)}function Wl(e){return e[Wf]}we(St());we(St());var uv=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var i,a,s,l=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);l--;){if(a&&(i=o[a])!=null)return i.call(o);if(s&&(i=o[s])!=null)return new r(i.call(o));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function i(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(l){return{value:l,done:s}})}return r=function(s){this.s=s,this.n=s.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(s){var l=this.s.return;return l===void 0?Promise.resolve({value:s,done:!0}):i(l.apply(this.s,arguments))},throw:function(s){var l=this.s.return;return l===void 0?Promise.reject(s):i(l.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});we(uv());we(St());var cv=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(s,l){var u=Error();return u.name="SuppressedError",u.error=s,u.suppressed=l,u},o={},i=[];function a(s,l){if(l!=null){if(Object(l)!==l)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(s)var u=l[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=l[Symbol.dispose||Symbol.for("Symbol.dispose")],s))var h=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");h&&(u=function(){try{h.call(l)}catch(p){return Promise.reject(p)}}),i.push({v:l,d:u,a:s})}else s&&i.push({d:l,a:s});return l}return{e:o,u:a.bind(null,!1),a:a.bind(null,!0),d:function(){var l,u=this.e,h=0;function c(){for(;l=i.pop();)try{if(!l.a&&h===1)return h=0,i.push(l),Promise.resolve().then(c);if(l.d){var f=l.d.call(l.v);if(l.a)return h|=2,Promise.resolve(f).then(c,p)}else h|=1}catch(g){return p(g)}if(h===1)return u!==o?Promise.reject(u):Promise.resolve();if(u!==o)throw u}function p(f){return u=u!==o?new r(f,u):f,c()}return c()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Qf=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,o){this.v=r,this.k=o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),dv=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Qf();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),fv=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Qf();function r(i){return function(){return new o(i.apply(this,arguments))}}function o(i){var a,s;function l(h,c){try{var p=i[h](c),f=p.value,g=f instanceof n;Promise.resolve(g?f.v:f).then(function(m){if(g){var v=h==="return"?"return":"next";if(!f.k||m.done)return l(v,m);m=i[v](m).value}u(p.done?"return":"normal",m)},function(m){l("throw",m)})}catch(m){u("throw",m)}}function u(h,c){switch(h){case"return":a.resolve({value:c,done:!0});break;case"throw":a.reject(c);break;default:a.resolve({value:c,done:!1})}(a=a.next)?l(a.key,a.arg):s=null}this._invoke=function(h,c){return new Promise(function(p,f){var g={key:h,arg:c,resolve:p,reject:f,next:null};s?s=s.next=g:(a=s=g,l(h,c))})},typeof i.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(i){return this._invoke("next",i)},o.prototype.throw=function(i){return this._invoke("throw",i)},o.prototype.return=function(i){return this._invoke("return",i)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});we(cv());we(dv());we(fv());we(St());var Nr=function(){return Nr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Nr.apply(this,arguments)};function hv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function pv(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(h){try{u(r.next(h))}catch(c){a(c)}}function l(h){try{u(r.throw(h))}catch(c){a(c)}}function u(h){h.done?i(h.value):o(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function gv(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(h){u=[6,h],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ke(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var mv=Object.create,Yf=Object.defineProperty,vv=Object.getOwnPropertyDescriptor,Xf=Object.getOwnPropertyNames,bv=Object.getPrototypeOf,yv=Object.prototype.hasOwnProperty,$n=(e,t)=>function(){return t||(0,e[Xf(e)[0]])((t={exports:{}}).exports,t),t.exports},xv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Xf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!yv.call(e,s)&&s!==n&&Yf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=vv(t,s))||r.enumerable});return e},Jn=(e,t,n)=>(n=e!=null?mv(bv(e)):{},xv(t||!e||!e.__esModule?Yf(n,"default",{value:e,enumerable:!0}):n,e)),wv=$n({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,o){if(r==null)return{};var i={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(o.includes(a))continue;i[a]=r[a]}return i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Cv=$n({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=wv();function r(o,i){if(o==null)return{};var a,s,l=n(o,i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(s=0;s<u.length;s++)a=u[s],i.includes(a)||{}.propertyIsEnumerable.call(o,a)&&(l[a]=o[a])}return l}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zf=$n({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),$v=$n({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Zf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Sv=$n({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Zf().default,r=$v();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ev=$n({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Sv();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Xo=$n({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Ev();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Pv=Jn(Cv(),1),ec=Jn(Xo(),1);const Rv=["cursor","direction"];function Ot(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&qn(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:i}=t,a=(0,Pv.default)(t,Rv);return[r,{input:a,type:"infinite"}]}return[r,(0,ec.default)((0,ec.default)({},typeof t<"u"&&t!==tt&&{input:t}),n&&n!=="any"&&{type:n})]}function Ni(e){return Ot(e,void 0,"any")}function kv(e){return Sa(({path:t,args:n})=>{var r;const o=[...t],i=o.pop();if(i==="useMutation")return e[i](o,...n);if(i==="_def")return{path:o};const[a,...s]=n,l=(r=s[0])!==null&&r!==void 0?r:{};return e[i](o,a,l)})}var Xa;const Mv=["client","ssrContext","ssrState","abortOnUnmount"],Ov=(Xa=S.createContext)===null||Xa===void 0?void 0:Xa.call(S,null),Tv=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Dv(e){return Sa(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],i=o.shift(),a=Tv(r),s=Ot(n,i,a);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,s,o[0]),queryOptions:()=>e.queryOptions(n,s,...o),fetch:()=>e.fetchQuery(s,...o),fetchInfinite:()=>e.fetchInfiniteQuery(s,o[0]),prefetch:()=>e.prefetchQuery(s,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(s,o[0]),ensureData:()=>e.ensureQueryData(s,...o),invalidate:()=>e.invalidateQueries(s,...o),reset:()=>e.resetQueries(s,...o),refetch:()=>e.refetchQueries(s,...o),cancel:()=>e.cancelQuery(s,...o),setData:()=>{e.setQueryData(s,o[0],o[1])},setQueriesData:()=>e.setQueriesData(s,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(s,o[0],o[1])},getData:()=>e.getQueryData(s),getInfiniteData:()=>e.getInfiniteQueryData(s),setMutationDefaults:()=>e.setMutationDefaults(Ni(n),i),getMutationDefaults:()=>e.getMutationDefaults(Ni(n)),isMutating:()=>e.isMutating({mutationKey:Ni(n)})}[r]()})}function _v(e){const t=Gf(e.client),n=Dv(e);return Ul(r=>{const o=r;return o==="client"?t:Mv.includes(o)?e[o]:n[r]})}var Fv=Jn(Xo(),1);function tc(e){const t=e instanceof Ea?e:Wl(e);return Sa(n=>{const r=n.path,o=r.join("."),[i,a]=n.args;return(0,Fv.default)({queryKey:Ot(r,i,"query"),queryFn:()=>t.query(o,i,a==null?void 0:a.trpc)},a)})}var Za=Jn(Xo(),1);function je(e,t,n){var r;const o=e[0];let i=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var a;i=(0,Za.default)((0,Za.default)((0,Za.default)({},(a=i)!==null&&a!==void 0?a:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),i,t==null?void 0:t.trpc]}var Lv=$n({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var i,a,s,l=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);l--;){if(a&&(i=o[a])!=null)return i.call(o);if(s&&(i=o[s])!=null)return new r(i.call(o));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function i(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(l){return{value:l,done:s}})}return r=function(s){this.s=s,this.n=s.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(s){var l=this.s.return;return l===void 0?Promise.resolve({value:s,done:!0}):i(l.apply(this.s,arguments))},throw:function(s){var l=this.s.return;return l===void 0?Promise.reject(s):i(l.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Iv=Jn(Lv(),1);function tl(e){return{path:e.path.join(".")}}function no(e){const t=tl(e);return S.useMemo(()=>t,[t])}async function Jf(e,t,n){const o=t.getQueryCache().build(t,{queryKey:n});o.setState({data:[],status:"success"});const i=[];var a=!1,s=!1,l;try{for(var u=(0,Iv.default)(e),h;a=!(h=await u.next()).done;a=!1){const c=h.value;i.push(c),o.setState({data:[...i]})}}catch(c){s=!0,l=c}finally{try{a&&u.return!=null&&await u.return()}finally{if(s)throw l}}return i}var ae=Jn(Xo(),1);function Nv(e){const{client:t,queryClient:n}=e,r=t instanceof Ea?t:Wl(t);return{infiniteQueryOptions:(o,i,a)=>{var s,l;const u=((s=i[1])===null||s===void 0?void 0:s.input)===tt,h=async c=>{var p;const f=(0,ae.default)((0,ae.default)({},a),{},{trpc:(0,ae.default)((0,ae.default)({},a==null?void 0:a.trpc),!(a==null||(p=a.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:c.signal}:{signal:null})});return await r.query(...je(i,f,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,ae.default)((0,ae.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:i,queryFn:u?tt:h,initialPageParam:(l=a==null?void 0:a.initialCursor)!==null&&l!==void 0?l:null}),{trpc:tl({path:o})})},queryOptions:(o,i,a)=>{var s;const l=((s=i[1])===null||s===void 0?void 0:s.input)===tt,u=async h=>{var c;const p=(0,ae.default)((0,ae.default)({},a),{},{trpc:(0,ae.default)((0,ae.default)({},a==null?void 0:a.trpc),!(a==null||(c=a.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:h.signal}:{signal:null})}),f=await r.query(...je(i,p));return Nf(f)?Jf(f,n,i):f};return Object.assign((0,ae.default)((0,ae.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:i,queryFn:l?tt:u}),{trpc:tl({path:o})})},fetchQuery:(o,i)=>n.fetchQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...je(o,i))})),fetchInfiniteQuery:(o,i)=>{var a;return n.fetchInfiniteQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:({pageParam:s,direction:l})=>r.query(...je(o,i,{pageParam:s,direction:l})),initialPageParam:(a=i==null?void 0:i.initialCursor)!==null&&a!==void 0?a:null}))},prefetchQuery:(o,i)=>n.prefetchQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...je(o,i))})),prefetchInfiniteQuery:(o,i)=>{var a;return n.prefetchInfiniteQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:({pageParam:s,direction:l})=>r.query(...je(o,i,{pageParam:s,direction:l})),initialPageParam:(a=i==null?void 0:i.initialCursor)!==null&&a!==void 0?a:null}))},ensureQueryData:(o,i)=>n.ensureQueryData((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...je(o,i))})),invalidateQueries:(o,i,a)=>n.invalidateQueries((0,ae.default)((0,ae.default)({},i),{},{queryKey:o}),a),resetQueries:(o,i,a)=>n.resetQueries((0,ae.default)((0,ae.default)({},i),{},{queryKey:o}),a),refetchQueries:(o,i,a)=>n.refetchQueries((0,ae.default)((0,ae.default)({},i),{},{queryKey:o}),a),cancelQuery:(o,i)=>n.cancelQueries({queryKey:o},i),setQueryData:(o,i,a)=>n.setQueryData(o,i,a),setQueriesData:(o,i,a,s)=>n.setQueriesData((0,ae.default)((0,ae.default)({},i),{},{queryKey:o}),a,s),getQueryData:o=>n.getQueryData(o),setInfiniteQueryData:(o,i,a)=>n.setQueryData(o,i,a),getInfiniteQueryData:o=>n.getQueryData(o),setMutationDefaults:(o,i)=>{const a=o[0],s=l=>r.mutation(...je([a,{input:l}],e));return n.setMutationDefaults(o,typeof i=="function"?i({canonicalMutationFn:s}):i)},getMutationDefaults:o=>n.getMutationDefaults(o),isMutating:o=>n.isMutating((0,ae.default)((0,ae.default)({},o),{},{exact:!0}))}}var U=Jn(Xo());const nc=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function jv(e){var t,n,r;const o=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:E=>E.originalFn(),i=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:Ov,a=lv,s=E=>{var R;const{abortOnUnmount:M=!1,queryClient:_,ssrContext:D}=E,[P,I]=S.useState((R=E.ssrState)!==null&&R!==void 0?R:!1),N=E.client instanceof Ea?E.client:Wl(E.client),F=S.useMemo(()=>Nv({client:N,queryClient:_}),[N,_]),j=S.useMemo(()=>(0,U.default)({abortOnUnmount:M,queryClient:_,client:N,ssrContext:D??null,ssrState:P},F),[M,N,F,_,D,P]);return S.useEffect(()=>{I(O=>O?"mounted":!1)},[]),y.jsx(i.Provider,{value:j,children:E.children})};function l(){const E=S.useContext(i);if(!E)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return E}function u(E,R){var M;const{queryClient:_,ssrState:D}=l();return D&&D!=="mounted"&&((M=_.getQueryCache().find({queryKey:E}))===null||M===void 0?void 0:M.state.status)==="error"?(0,U.default)({retryOnMount:!1},R):R}function h(E,R,M){var _,D,P,I,N;const F=l(),{abortOnUnmount:j,client:O,ssrState:T,queryClient:A,prefetchQuery:K}=F,L=Ot(E,R,"query"),H=A.getQueryDefaults(L),z=R===tt;typeof window>"u"&&T==="prepass"&&(M==null||(_=M.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((D=M==null?void 0:M.enabled)!==null&&D!==void 0?D:H==null?void 0:H.enabled)!==!1&&!z&&!A.getQueryCache().find({queryKey:L})&&K(L,M);const V=u(L,(0,U.default)((0,U.default)({},H),M)),W=(P=(I=M==null||(N=M.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&I!==void 0?I:e==null?void 0:e.abortOnUnmount)!==null&&P!==void 0?P:j,q=lm((0,U.default)((0,U.default)({},V),{},{queryKey:L,queryFn:z?R:async ne=>{const pe=(0,U.default)((0,U.default)({},V),{},{trpc:(0,U.default)((0,U.default)({},V==null?void 0:V.trpc),W?{signal:ne.signal}:{signal:null})}),ee=await O.query(...je(L,pe));return Nf(ee)?Jf(ee,A,L):ee}}),A);return q.trpc=no({path:E}),q}function c(E,R,M){var _,D,P;const I=l(),N=Ot(E,R,"query"),F=R===tt,j=(_=(D=M==null||(P=M.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&D!==void 0?D:e==null?void 0:e.abortOnUnmount)!==null&&_!==void 0?_:I.abortOnUnmount;fm((0,U.default)((0,U.default)({},M),{},{queryKey:N,queryFn:F?R:O=>{const T={trpc:(0,U.default)((0,U.default)({},M==null?void 0:M.trpc),j?{signal:O.signal}:{})};return I.client.query(...je(N,T))}}))}function p(E,R,M){var _,D,P;const I=l(),N=Ot(E,R,"query"),F=(_=(D=M==null||(P=M.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&D!==void 0?D:e==null?void 0:e.abortOnUnmount)!==null&&_!==void 0?_:I.abortOnUnmount,j=um((0,U.default)((0,U.default)({},M),{},{queryKey:N,queryFn:O=>{const T=(0,U.default)((0,U.default)({},M),{},{trpc:(0,U.default)((0,U.default)({},M==null?void 0:M.trpc),F?{signal:O.signal}:{signal:null})});return I.client.query(...je(N,T))}}),I.queryClient);return j.trpc=no({path:E}),[j.data,j]}function f(E,R){const{client:M,queryClient:_}=l(),D=Ni(E),P=_.defaultMutationOptions(_.getMutationDefaults(D)),I=pm((0,U.default)((0,U.default)({},R),{},{mutationKey:D,mutationFn:N=>M.mutation(...je([E,{input:N}],R)),onSuccess(...N){var F,j;return o({originalFn:()=>{var T,A,K;return(T=R==null||(A=R.onSuccess)===null||A===void 0?void 0:A.call(R,...N))!==null&&T!==void 0?T:P==null||(K=P.onSuccess)===null||K===void 0?void 0:K.call(P,...N)},queryClient:_,meta:(F=(j=R==null?void 0:R.meta)!==null&&j!==void 0?j:P==null?void 0:P.meta)!==null&&F!==void 0?F:{}})}}),_);return I.trpc=no({path:E}),I}const g={data:void 0,error:null,status:"idle"},m={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function v(E,R,M){var _;const D=(_=M==null?void 0:M.enabled)!==null&&_!==void 0?_:R!==tt,P=yn(Ot(E,R,"any")),{client:I}=l(),N=S.useRef(M);S.useEffect(()=>{N.current=M});const[F]=S.useState(new Set([])),j=S.useCallback(z=>{F.add(z)},[F]),O=S.useRef(null),T=S.useCallback(z=>{const V=K.current,W=K.current=z(V);let q=!1;for(const ne of F)if(V[ne]!==W[ne]){q=!0;break}q&&H(nc(W,j))},[j,F]),A=S.useCallback(()=>{var z;if((z=O.current)===null||z===void 0||z.unsubscribe(),!D){T(()=>(0,U.default)((0,U.default)({},g),{},{reset:A}));return}T(()=>(0,U.default)((0,U.default)({},m),{},{reset:A}));const V=I.subscription(E.join("."),R??void 0,{onStarted:()=>{var W,q;(W=(q=N.current).onStarted)===null||W===void 0||W.call(q),T(ne=>(0,U.default)((0,U.default)({},ne),{},{status:"pending",error:null}))},onData:W=>{var q,ne;(q=(ne=N.current).onData)===null||q===void 0||q.call(ne,W),T(pe=>(0,U.default)((0,U.default)({},pe),{},{status:"pending",data:W,error:null}))},onError:W=>{var q,ne;(q=(ne=N.current).onError)===null||q===void 0||q.call(ne,W),T(pe=>(0,U.default)((0,U.default)({},pe),{},{status:"error",error:W}))},onConnectionStateChange:W=>{T(q=>{switch(W.state){case"idle":return(0,U.default)((0,U.default)({},q),{},{status:W.state,error:null,data:void 0});case"connecting":return(0,U.default)((0,U.default)({},q),{},{error:W.error,status:W.state});case"pending":return q}})},onComplete:()=>{var W,q;(W=(q=N.current).onComplete)===null||W===void 0||W.call(q),T(ne=>(0,U.default)((0,U.default)({},ne),{},{status:"idle",error:null,data:void 0}))}});O.current=V},[I,P,D,T]);S.useEffect(()=>(A(),()=>{var z;(z=O.current)===null||z===void 0||z.unsubscribe()}),[A]);const K=S.useRef(D?(0,U.default)((0,U.default)({},m),{},{reset:A}):(0,U.default)((0,U.default)({},g),{},{reset:A})),[L,H]=S.useState(nc(K.current,j));return L}function b(E,R,M){var _,D,P,I,N;const{client:F,ssrState:j,prefetchInfiniteQuery:O,queryClient:T,abortOnUnmount:A}=l(),K=Ot(E,R,"infinite"),L=T.getQueryDefaults(K),H=R===tt;typeof window>"u"&&j==="prepass"&&(M==null||(_=M.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((D=M==null?void 0:M.enabled)!==null&&D!==void 0?D:L==null?void 0:L.enabled)!==!1&&!H&&!T.getQueryCache().find({queryKey:K})&&O(K,(0,U.default)((0,U.default)({},L),M));const z=u(K,(0,U.default)((0,U.default)({},L),M)),V=(P=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&P!==void 0?P:A,W=gm((0,U.default)((0,U.default)({},z),{},{initialPageParam:(N=M.initialCursor)!==null&&N!==void 0?N:null,persister:M.persister,queryKey:K,queryFn:H?R:q=>{var ne;const pe=(0,U.default)((0,U.default)({},z),{},{trpc:(0,U.default)((0,U.default)({},z==null?void 0:z.trpc),V?{signal:q.signal}:{signal:null})});return F.query(...je(K,pe,{pageParam:(ne=q.pageParam)!==null&&ne!==void 0?ne:M.initialCursor,direction:q.direction}))}}),T);return W.trpc=no({path:E}),W}function x(E,R,M){var _,D,P;const I=l(),N=Ot(E,R,"infinite"),F=I.queryClient.getQueryDefaults(N),j=R===tt,O=u(N,(0,U.default)((0,U.default)({},F),M)),T=(_=M==null||(D=M.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&_!==void 0?_:I.abortOnUnmount;hm((0,U.default)((0,U.default)({},M),{},{initialPageParam:(P=M.initialCursor)!==null&&P!==void 0?P:null,queryKey:N,queryFn:j?R:A=>{var K;const L=(0,U.default)((0,U.default)({},O),{},{trpc:(0,U.default)((0,U.default)({},O==null?void 0:O.trpc),T?{signal:A.signal}:{})});return I.client.query(...je(N,L,{pageParam:(K=A.pageParam)!==null&&K!==void 0?K:M.initialCursor,direction:A.direction}))}}))}function w(E,R,M){var _,D,P;const I=l(),N=Ot(E,R,"infinite"),F=I.queryClient.getQueryDefaults(N),j=u(N,(0,U.default)((0,U.default)({},F),M)),O=(_=M==null||(D=M.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&_!==void 0?_:I.abortOnUnmount,T=cm((0,U.default)((0,U.default)({},M),{},{initialPageParam:(P=M.initialCursor)!==null&&P!==void 0?P:null,queryKey:N,queryFn:A=>{var K;const L=(0,U.default)((0,U.default)({},j),{},{trpc:(0,U.default)((0,U.default)({},j==null?void 0:j.trpc),O?{signal:A.signal}:{})});return I.client.query(...je(N,L,{pageParam:(K=A.pageParam)!==null&&K!==void 0?K:M.initialCursor,direction:A.direction}))}}),I.queryClient);return T.trpc=no({path:E}),[T.data,T]}return{Provider:s,createClient:a,useContext:l,useUtils:l,useQuery:h,usePrefetchQuery:c,useSuspenseQuery:p,useQueries:(E,R)=>{const{ssrState:M,queryClient:_,prefetchQuery:D,client:P}=l(),I=tc(P),N=E(I);if(typeof window>"u"&&M==="prepass")for(const j of N){var F;const O=j;((F=O.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!_.getQueryCache().find({queryKey:O.queryKey})&&D(O.queryKey,O)}return _f({queries:N.map(j=>(0,U.default)((0,U.default)({},j),{},{queryKey:j.queryKey})),combine:R==null?void 0:R.combine},_)},useSuspenseQueries:E=>{const{queryClient:R,client:M}=l(),_=tc(M),D=E(_),P=dm({queries:D.map(I=>(0,U.default)((0,U.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},R);return[P.map(I=>I.data),P]},useMutation:f,useSubscription:v,useInfiniteQuery:b,usePrefetchInfiniteQuery:x,useSuspenseInfiniteQuery:w}}function Av(e){const t=kv(e);return Ul(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return S.useMemo(()=>_v(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Kv(e){const t=jv(e);return Av(t)}var le=Kv({overrides:{useMutation:{onSuccess:function(e){return pv(this,void 0,void 0,function(){return gv(this,function(t){switch(t.label){case 0:return[4,e.originalFn()];case 1:return t.sent(),[4,e.queryClient.invalidateQueries()];case 2:return t.sent(),[2]}})})}}}});/**
|
|
10
|
-
* react-router v7.
|
|
9
|
+
*/var Ag=Symbol.for("react.transitional.element"),Kg=Symbol.for("react.fragment");function ff(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:Ag,type:e,key:r,ref:t!==void 0?t:null,props:n}}ya.Fragment=Kg;ya.jsx=ff;ya.jsxs=ff;df.exports=ya;var y=df.exports,Wn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Bg={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Jt,Kl,Xd,Hg=(Xd=class{constructor(){G(this,Jt,Bg);G(this,Kl,!1)}setTimeoutProvider(e){V(this,Jt,e)}setTimeout(e,t){return C(this,Jt).setTimeout(e,t)}clearTimeout(e){C(this,Jt).clearTimeout(e)}setInterval(e,t){return C(this,Jt).setInterval(e,t)}clearInterval(e){C(this,Jt).clearInterval(e)}},Jt=new WeakMap,Kl=new WeakMap,Xd),Tn=new Hg;function Vg(e){setTimeout(e,0)}var Hn=typeof window>"u"||"Deno"in globalThis;function Ie(){}function zg(e,t){return typeof e=="function"?e(t):e}function Ls(e){return typeof e=="number"&&e>=0&&e!==1/0}function hf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hn(e,t){return typeof e=="function"?e(t):e}function ut(e,t){return typeof e=="function"?e(t):e}function Ku(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Bl(a,t.options))return!1}else if(!So(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function Bu(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(vn(t.options.mutationKey)!==vn(i))return!1}else if(!So(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Bl(e,t){return((t==null?void 0:t.queryKeyHashFn)||vn)(e)}function vn(e){return JSON.stringify(e,(t,n)=>Fs(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function So(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>So(e[n],t[n])):!1}var Ug=Object.prototype.hasOwnProperty;function Hl(e,t){if(e===t)return e;const n=Hu(e)&&Hu(t);if(!n&&!(Fs(e)&&Fs(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,s=n?new Array(a):{};let l=0;for(let u=0;u<a;u++){const h=n?u:i[u],c=e[h],p=t[h];if(c===p){s[h]=c,(n?u<o:Ug.call(e,h))&&l++;continue}if(c===null||p===null||typeof c!="object"||typeof p!="object"){s[h]=p;continue}const f=Hl(c,p);s[h]=f,f===c&&l++}return o===a&&l===o?e:s}function Eo(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Hu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fs(e){if(!Vu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Vu(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Vu(e){return Object.prototype.toString.call(e)==="[object Object]"}function qg(e){return new Promise(t=>{Tn.setTimeout(t,e)})}function Is(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Hl(e,t):t}function Wg(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Gg(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var et=Symbol();function pf(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===et?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function gf(e,t){return typeof e=="function"?e(...t):!!e}var _n,en,br,Zd,Qg=(Zd=class extends Wn{constructor(){super();G(this,_n);G(this,en);G(this,br);V(this,br,t=>{if(!Hn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,en)||this.setEventListener(C(this,br))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,en))==null||t.call(this),V(this,en,void 0))}setEventListener(t){var n;V(this,br,t),(n=C(this,en))==null||n.call(this),V(this,en,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,_n)!==t&&(V(this,_n,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,_n)=="boolean"?C(this,_n):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_n=new WeakMap,en=new WeakMap,br=new WeakMap,Zd),Vl=new Qg;function js(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var Yg=Vg;function Xg(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=Yg;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var be=Xg(),yr,tn,xr,Jd,Zg=(Jd=class extends Wn{constructor(){super();G(this,yr,!0);G(this,tn);G(this,xr);V(this,xr,t=>{if(!Hn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,tn)||this.setEventListener(C(this,xr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,tn))==null||t.call(this),V(this,tn,void 0))}setEventListener(t){var n;V(this,xr,t),(n=C(this,tn))==null||n.call(this),V(this,tn,t(this.setOnline.bind(this)))}setOnline(t){C(this,yr)!==t&&(V(this,yr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,yr)}},yr=new WeakMap,tn=new WeakMap,xr=new WeakMap,Jd),Vi=new Zg;function Jg(e){return Math.min(1e3*2**e,3e4)}function mf(e){return(e??"online")==="online"?Vi.isOnline():!0}var Ns=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vf(e){let t=!1,n=0,r;const o=js(),i=()=>o.status!=="pending",a=m=>{var v;if(!i()){const b=new Ns(m);p(b),(v=e.onCancel)==null||v.call(e,b)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>Vl.isFocused()&&(e.networkMode==="always"||Vi.isOnline())&&e.canRun(),h=()=>mf(e.networkMode)&&e.canRun(),c=m=>{i()||(r==null||r(),o.resolve(m))},p=m=>{i()||(r==null||r(),o.reject(m))},f=()=>new Promise(m=>{var v;r=b=>{(i()||u())&&m(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;r=void 0,i()||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(i())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(b){m=Promise.reject(b)}Promise.resolve(m).then(c).catch(b=>{var P;if(i())return;const x=e.retry??(Hn?0:3),w=e.retryDelay??Jg,S=typeof w=="function"?w(n,b):w,k=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!k){p(b);return}n++,(P=e.onFail)==null||P.call(e,n,b),qg(S).then(()=>u()?void 0:f()).then(()=>{t?p(b):g()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r==null||r(),o),cancelRetry:s,continueRetry:l,canStart:h,start:()=>(h()?g():f().then(g),o)}}var Ln,ef,bf=(ef=class{constructor(){G(this,Ln)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ls(this.gcTime)&&V(this,Ln,Tn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hn?1/0:5*60*1e3))}clearGcTimeout(){C(this,Ln)&&(Tn.clearTimeout(C(this,Ln)),V(this,Ln,void 0))}},Ln=new WeakMap,ef),Fn,wr,st,In,Re,Ao,jn,yt,It,tf,em=(tf=class extends bf{constructor(t){super();G(this,yt);G(this,Fn);G(this,wr);G(this,st);G(this,In);G(this,Re);G(this,Ao);G(this,jn);V(this,jn,!1),V(this,Ao,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,In,t.client),V(this,st,C(this,In).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,Fn,Uu(this.options)),this.state=t.state??C(this,Fn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Re))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,Ao),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Uu(this.options);n.data!==void 0&&(this.setState(zu(n.data,n.dataUpdatedAt)),V(this,Fn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,st).remove(this)}setData(t,n){const r=Is(this.state.data,t,this.options);return X(this,yt,It).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){X(this,yt,It).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,Re))==null?void 0:r.promise;return(o=C(this,Re))==null||o.cancel(t),n?n.then(Ie).catch(Ie):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Fn))}isActive(){return this.observers.some(t=>ut(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===et||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>hn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!hf(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Re))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Re))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,st).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Re)&&(C(this,jn)?C(this,Re).cancel({revert:!0}):C(this,Re).cancelRetry()),this.scheduleGc()),C(this,st).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,yt,It).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,h,c,p,f,g,m,v,b,x,w;if(this.state.fetchStatus!=="idle"&&((l=C(this,Re))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Re))return C(this,Re).continueRetry(),C(this,Re).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(k=>k.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(V(this,jn,!0),r.signal)})},i=()=>{const S=pf(this.options,n),P=(()=>{const R={client:C(this,In),queryKey:this.queryKey,meta:this.meta};return o(R),R})();return V(this,jn,!1),this.options.persister?this.options.persister(S,P,this):S(P)},s=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,In),state:this.state,fetchFn:i};return o(S),S})();(u=this.options.behavior)==null||u.onFetch(s,this),V(this,wr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=s.fetchOptions)==null?void 0:h.meta))&&X(this,yt,It).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),V(this,Re,vf({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:S=>{S instanceof Ns&&S.revert&&this.setState({...C(this,wr),fetchStatus:"idle"}),r.abort()},onFail:(S,k)=>{X(this,yt,It).call(this,{type:"failed",failureCount:S,error:k})},onPause:()=>{X(this,yt,It).call(this,{type:"pause"})},onContinue:()=>{X(this,yt,It).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const S=await C(this,Re).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(f=(p=C(this,st).config).onSuccess)==null||f.call(p,S,this),(m=(g=C(this,st).config).onSettled)==null||m.call(g,S,this.state.error,this),S}catch(S){if(S instanceof Ns){if(S.silent)return C(this,Re).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw X(this,yt,It).call(this,{type:"error",error:S}),(b=(v=C(this,st).config).onError)==null||b.call(v,S,this),(w=(x=C(this,st).config).onSettled)==null||w.call(x,this.state.data,S,this),S}finally{this.scheduleGc()}}},Fn=new WeakMap,wr=new WeakMap,st=new WeakMap,In=new WeakMap,Re=new WeakMap,Ao=new WeakMap,jn=new WeakMap,yt=new WeakSet,It=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yf(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...zu(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return V(this,wr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,st).notify({query:this,type:"updated",action:t})})},tf);function yf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Uu(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ve,re,Ko,Ne,Nn,Cr,Nt,nn,Bo,$r,Sr,An,Kn,rn,Er,ce,uo,As,Ks,Bs,Hs,Vs,zs,Us,xf,nf,Wo=(nf=class extends Wn{constructor(t,n){super();G(this,ce);G(this,Ve);G(this,re);G(this,Ko);G(this,Ne);G(this,Nn);G(this,Cr);G(this,Nt);G(this,nn);G(this,Bo);G(this,$r);G(this,Sr);G(this,An);G(this,Kn);G(this,rn);G(this,Er,new Set);this.options=n,V(this,Ve,t),V(this,nn,null),V(this,Nt,js()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,re).addObserver(this),qu(C(this,re),this.options)?X(this,ce,uo).call(this):this.updateResult(),X(this,ce,Hs).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qs(C(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qs(C(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,ce,Vs).call(this),X(this,ce,zs).call(this),C(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,re);if(this.options=C(this,Ve).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ut(this.options.enabled,C(this,re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,ce,Us).call(this),C(this,re).setOptions(this.options),n._defaulted&&!Eo(this.options,n)&&C(this,Ve).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,re),observer:this});const o=this.hasListeners();o&&Wu(C(this,re),r,this.options,n)&&X(this,ce,uo).call(this),this.updateResult(),o&&(C(this,re)!==r||ut(this.options.enabled,C(this,re))!==ut(n.enabled,C(this,re))||hn(this.options.staleTime,C(this,re))!==hn(n.staleTime,C(this,re)))&&X(this,ce,As).call(this);const i=X(this,ce,Ks).call(this);o&&(C(this,re)!==r||ut(this.options.enabled,C(this,re))!==ut(n.enabled,C(this,re))||i!==C(this,rn))&&X(this,ce,Bs).call(this,i)}getOptimisticResult(t){const n=C(this,Ve).getQueryCache().build(C(this,Ve),t),r=this.createResult(n,t);return nm(this,r)&&(V(this,Ne,r),V(this,Cr,this.options),V(this,Nn,C(this,re).state)),r}getCurrentResult(){return C(this,Ne)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Nt).status==="pending"&&C(this,Nt).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,Er).add(t)}getCurrentQuery(){return C(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Ve).defaultQueryOptions(t),r=C(this,Ve).getQueryCache().build(C(this,Ve),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,ce,uo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ne)))}createResult(t,n){var _;const r=C(this,re),o=this.options,i=C(this,Ne),a=C(this,Nn),s=C(this,Cr),u=t!==r?t.state:C(this,Ko),{state:h}=t;let c={...h},p=!1,f;if(n._optimisticResults){const D=this.hasListeners(),j=!D&&qu(t,n),K=D&&Wu(t,r,n,o);(j||K)&&(c={...c,...yf(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:g,errorUpdatedAt:m,status:v}=c;f=c.data;let b=!1;if(n.placeholderData!==void 0&&f===void 0&&v==="pending"){let D;i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(D=i.data,b=!0):D=typeof n.placeholderData=="function"?n.placeholderData((_=C(this,Sr))==null?void 0:_.state.data,C(this,Sr)):n.placeholderData,D!==void 0&&(v="success",f=Is(i==null?void 0:i.data,D,n),p=!0)}if(n.select&&f!==void 0&&!b)if(i&&f===(a==null?void 0:a.data)&&n.select===C(this,Bo))f=C(this,$r);else try{V(this,Bo,n.select),f=n.select(f),f=Is(i==null?void 0:i.data,f,n),V(this,$r,f),V(this,nn,null)}catch(D){V(this,nn,D)}C(this,nn)&&(g=C(this,nn),f=C(this,$r),m=Date.now(),v="error");const x=c.fetchStatus==="fetching",w=v==="pending",S=v==="error",k=w&&x,P=f!==void 0,M={status:v,fetchStatus:c.fetchStatus,isPending:w,isSuccess:v==="success",isError:S,isInitialLoading:k,isLoading:k,data:f,dataUpdatedAt:c.dataUpdatedAt,error:g,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:S&&!P,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&P,isStale:zl(t,n),refetch:this.refetch,promise:C(this,Nt),isEnabled:ut(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const D=I=>{M.status==="error"?I.reject(M.error):M.data!==void 0&&I.resolve(M.data)},j=()=>{const I=V(this,Nt,M.promise=js());D(I)},K=C(this,Nt);switch(K.status){case"pending":t.queryHash===r.queryHash&&D(K);break;case"fulfilled":(M.status==="error"||M.data!==K.value)&&j();break;case"rejected":(M.status!=="error"||M.error!==K.reason)&&j();break}}return M}updateResult(){const t=C(this,Ne),n=this.createResult(C(this,re),this.options);if(V(this,Nn,C(this,re).state),V(this,Cr,this.options),C(this,Nn).data!==void 0&&V(this,Sr,C(this,re)),Eo(n,t))return;V(this,Ne,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!C(this,Er).size)return!0;const a=new Set(i??C(this,Er));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ne)).some(s=>{const l=s;return C(this,Ne)[l]!==t[l]&&a.has(l)})};X(this,ce,xf).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,ce,Hs).call(this)}},Ve=new WeakMap,re=new WeakMap,Ko=new WeakMap,Ne=new WeakMap,Nn=new WeakMap,Cr=new WeakMap,Nt=new WeakMap,nn=new WeakMap,Bo=new WeakMap,$r=new WeakMap,Sr=new WeakMap,An=new WeakMap,Kn=new WeakMap,rn=new WeakMap,Er=new WeakMap,ce=new WeakSet,uo=function(t){X(this,ce,Us).call(this);let n=C(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ie)),n},As=function(){X(this,ce,Vs).call(this);const t=hn(this.options.staleTime,C(this,re));if(Hn||C(this,Ne).isStale||!Ls(t))return;const r=hf(C(this,Ne).dataUpdatedAt,t)+1;V(this,An,Tn.setTimeout(()=>{C(this,Ne).isStale||this.updateResult()},r))},Ks=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,re)):this.options.refetchInterval)??!1},Bs=function(t){X(this,ce,zs).call(this),V(this,rn,t),!(Hn||ut(this.options.enabled,C(this,re))===!1||!Ls(C(this,rn))||C(this,rn)===0)&&V(this,Kn,Tn.setInterval(()=>{(this.options.refetchIntervalInBackground||Vl.isFocused())&&X(this,ce,uo).call(this)},C(this,rn)))},Hs=function(){X(this,ce,As).call(this),X(this,ce,Bs).call(this,X(this,ce,Ks).call(this))},Vs=function(){C(this,An)&&(Tn.clearTimeout(C(this,An)),V(this,An,void 0))},zs=function(){C(this,Kn)&&(Tn.clearInterval(C(this,Kn)),V(this,Kn,void 0))},Us=function(){const t=C(this,Ve).getQueryCache().build(C(this,Ve),this.options);if(t===C(this,re))return;const n=C(this,re);V(this,re,t),V(this,Ko,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},xf=function(t){be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ne))}),C(this,Ve).getQueryCache().notify({query:C(this,re),type:"observerResultsUpdated"})})},nf);function tm(e,t){return ut(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function qu(e,t){return tm(e,t)||e.state.data!==void 0&&qs(e,t,t.refetchOnMount)}function qs(e,t,n){if(ut(t.enabled,e)!==!1&&hn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&zl(e,t)}return!1}function Wu(e,t,n,r){return(e!==t||ut(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&zl(e,n)}function zl(e,t){return ut(t.enabled,e)!==!1&&e.isStaleByTime(hn(t.staleTime,e))}function nm(e,t){return!Eo(e.getCurrentResult(),t)}function zi(e){return{onFetch:(t,n)=>{var h,c,p,f,g;const r=t.options,o=(p=(c=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:c.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],a=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},b=pf(t.options,t.fetchOptions),x=async(w,S,k)=>{if(m)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const R=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return v(j),j})(),M=await b(R),{maxPages:_}=t.options,D=k?Gg:Wg;return{pages:D(w.pages,M,_),pageParams:D(w.pageParams,S,_)}};if(o&&i.length){const w=o==="backward",S=w?wf:Ws,k={pages:i,pageParams:a},P=S(r,k);s=await x(k,P,w)}else{const w=e??i.length;do{const S=l===0?a[0]??r.initialPageParam:Ws(r,s);if(l>0&&S==null)break;s=await x(s,S),l++}while(l<w)}return s};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ws(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wf(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function rm(e,t){return t?Ws(e,t)!=null:!1}function om(e,t){return!t||!e.getPreviousPageParam?!1:wf(e,t)!=null}var Cf=class extends Wo{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:zi()})}getOptimisticResult(e){return e.behavior=zi(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var g,m;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:i,isError:a,isRefetchError:s}=r,l=(m=(g=n.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:m.direction,u=a&&l==="forward",h=o&&l==="forward",c=a&&l==="backward",p=o&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:rm(t,n.data),hasPreviousPage:om(t,n.data),isFetchNextPageError:u,isFetchingNextPage:h,isFetchPreviousPageError:c,isFetchingPreviousPage:p,isRefetchError:s&&!u&&!c,isRefetching:i&&!h&&!p}}},Ho,Mt,Ae,Bn,Ot,Xt,rf,im=(rf=class extends bf{constructor(t){super();G(this,Ot);G(this,Ho);G(this,Mt);G(this,Ae);G(this,Bn);V(this,Ho,t.client),this.mutationId=t.mutationId,V(this,Ae,t.mutationCache),V(this,Mt,[]),this.state=t.state||$f(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,Mt).includes(t)||(C(this,Mt).push(t),this.clearGcTimeout(),C(this,Ae).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,Mt,C(this,Mt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ae).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Mt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ae).remove(this))}continue(){var t;return((t=C(this,Bn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,s,l,u,h,c,p,f,g,m,v,b,x,w,S,k,P,R,M,_;const n=()=>{X(this,Ot,Xt).call(this,{type:"continue"})},r={client:C(this,Ho),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,Bn,vf({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(D,j)=>{X(this,Ot,Xt).call(this,{type:"failed",failureCount:D,error:j})},onPause:()=>{X(this,Ot,Xt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ae).canRun(this)}));const o=this.state.status==="pending",i=!C(this,Bn).canStart();try{if(o)n();else{X(this,Ot,Xt).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(a=C(this,Ae).config).onMutate)==null?void 0:s.call(a,t,this,r));const j=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));j!==this.state.context&&X(this,Ot,Xt).call(this,{type:"pending",context:j,variables:t,isPaused:i})}const D=await C(this,Bn).start();return await((c=(h=C(this,Ae).config).onSuccess)==null?void 0:c.call(h,D,t,this.state.context,this,r)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,D,t,this.state.context,r)),await((m=(g=C(this,Ae).config).onSettled)==null?void 0:m.call(g,D,null,this.state.variables,this.state.context,this,r)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,D,null,t,this.state.context,r)),X(this,Ot,Xt).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(x=C(this,Ae).config).onError)==null?void 0:w.call(x,D,t,this.state.context,this,r)),await((k=(S=this.options).onError)==null?void 0:k.call(S,D,t,this.state.context,r)),await((R=(P=C(this,Ae).config).onSettled)==null?void 0:R.call(P,void 0,D,this.state.variables,this.state.context,this,r)),await((_=(M=this.options).onSettled)==null?void 0:_.call(M,void 0,D,t,this.state.context,r)),D}finally{X(this,Ot,Xt).call(this,{type:"error",error:D})}}finally{C(this,Ae).runNext(this)}}},Ho=new WeakMap,Mt=new WeakMap,Ae=new WeakMap,Bn=new WeakMap,Ot=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),be.batch(()=>{C(this,Mt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ae).notify({mutation:this,type:"updated",action:t})})},rf);function $f(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var At,xt,Vo,of,am=(of=class extends Wn{constructor(t={}){super();G(this,At);G(this,xt);G(this,Vo);this.config=t,V(this,At,new Set),V(this,xt,new Map),V(this,Vo,0)}build(t,n,r){const o=new im({client:t,mutationCache:this,mutationId:++ui(this,Vo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,At).add(t);const n=ci(t);if(typeof n=="string"){const r=C(this,xt).get(n);r?r.push(t):C(this,xt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,At).delete(t)){const n=ci(t);if(typeof n=="string"){const r=C(this,xt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,xt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ci(t);if(typeof n=="string"){const r=C(this,xt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ci(t);if(typeof n=="string"){const o=(r=C(this,xt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){be.batch(()=>{C(this,At).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,At).clear(),C(this,xt).clear()})}getAll(){return Array.from(C(this,At))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Bu(n,r))}findAll(t={}){return this.getAll().filter(n=>Bu(t,n))}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ie))))}},At=new WeakMap,xt=new WeakMap,Vo=new WeakMap,of);function ci(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Kt,on,ze,Bt,Vt,Fi,Gs,af,sm=(af=class extends Wn{constructor(n,r){super();G(this,Vt);G(this,Kt);G(this,on);G(this,ze);G(this,Bt);V(this,Kt,n),this.setOptions(r),this.bindMethods(),X(this,Vt,Fi).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=C(this,Kt).defaultMutationOptions(n),Eo(this.options,r)||C(this,Kt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,ze),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&vn(r.mutationKey)!==vn(this.options.mutationKey)?this.reset():((o=C(this,ze))==null?void 0:o.state.status)==="pending"&&C(this,ze).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,ze))==null||n.removeObserver(this)}onMutationUpdate(n){X(this,Vt,Fi).call(this),X(this,Vt,Gs).call(this,n)}getCurrentResult(){return C(this,on)}reset(){var n;(n=C(this,ze))==null||n.removeObserver(this),V(this,ze,void 0),X(this,Vt,Fi).call(this),X(this,Vt,Gs).call(this)}mutate(n,r){var o;return V(this,Bt,r),(o=C(this,ze))==null||o.removeObserver(this),V(this,ze,C(this,Kt).getMutationCache().build(C(this,Kt),this.options)),C(this,ze).addObserver(this),C(this,ze).execute(n)}},Kt=new WeakMap,on=new WeakMap,ze=new WeakMap,Bt=new WeakMap,Vt=new WeakSet,Fi=function(){var r;const n=((r=C(this,ze))==null?void 0:r.state)??$f();V(this,on,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Gs=function(n){be.batch(()=>{var r,o,i,a,s,l,u,h;if(C(this,Bt)&&this.hasListeners()){const c=C(this,on).variables,p=C(this,on).context,f={client:C(this,Kt),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((o=(r=C(this,Bt)).onSuccess)==null||o.call(r,n.data,c,p,f),(a=(i=C(this,Bt)).onSettled)==null||a.call(i,n.data,null,c,p,f)):(n==null?void 0:n.type)==="error"&&((l=(s=C(this,Bt)).onError)==null||l.call(s,n.error,c,p,f),(h=(u=C(this,Bt)).onSettled)==null||h.call(u,void 0,n.error,c,p,f))}this.listeners.forEach(c=>{c(C(this,on))})})},af);function Gu(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function lm(e,t,n){const r=e.slice(0);return r[t]=n,r}var Pr,Ze,Rr,kr,lt,an,zo,Uo,qo,De,Qs,Ys,Xs,Zs,Js,sf,um=(sf=class extends Wn{constructor(t,n,r){super();G(this,De);G(this,Pr);G(this,Ze);G(this,Rr);G(this,kr);G(this,lt);G(this,an);G(this,zo);G(this,Uo);G(this,qo,[]);V(this,Pr,t),V(this,kr,r),V(this,Rr,[]),V(this,lt,[]),V(this,Ze,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&C(this,lt).forEach(t=>{t.subscribe(n=>{X(this,De,Zs).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,C(this,lt).forEach(t=>{t.destroy()})}setQueries(t,n){V(this,Rr,t),V(this,kr,n),be.batch(()=>{const r=C(this,lt),o=X(this,De,Xs).call(this,C(this,Rr));V(this,qo,o),o.forEach(c=>c.observer.setOptions(c.defaultedQueryOptions));const i=o.map(c=>c.observer),a=i.map(c=>c.getCurrentResult()),s=r.length!==i.length,l=i.some((c,p)=>c!==r[p]),u=s||l,h=u?!0:a.some((c,p)=>{const f=C(this,Ze)[p];return!f||!Eo(c,f)});!u&&!h||(u&&V(this,lt,i),V(this,Ze,a),this.hasListeners()&&(u&&(Gu(r,i).forEach(c=>{c.destroy()}),Gu(i,r).forEach(c=>{c.subscribe(p=>{X(this,De,Zs).call(this,c,p)})})),X(this,De,Js).call(this)))})}getCurrentResult(){return C(this,Ze)}getQueries(){return C(this,lt).map(t=>t.getCurrentQuery())}getObservers(){return C(this,lt)}getOptimisticResult(t,n){const r=X(this,De,Xs).call(this,t),o=r.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions));return[o,i=>X(this,De,Ys).call(this,i??o,n),()=>X(this,De,Qs).call(this,o,r)]}},Pr=new WeakMap,Ze=new WeakMap,Rr=new WeakMap,kr=new WeakMap,lt=new WeakMap,an=new WeakMap,zo=new WeakMap,Uo=new WeakMap,qo=new WeakMap,De=new WeakSet,Qs=function(t,n){return n.map((r,o)=>{const i=t[o];return r.defaultedQueryOptions.notifyOnChangeProps?i:r.observer.trackResult(i,a=>{n.forEach(s=>{s.observer.trackProp(a)})})})},Ys=function(t,n){return n?((!C(this,an)||C(this,Ze)!==C(this,Uo)||n!==C(this,zo))&&(V(this,zo,n),V(this,Uo,C(this,Ze)),V(this,an,Hl(C(this,an),n(t)))),C(this,an)):t},Xs=function(t){const n=new Map;C(this,lt).forEach(o=>{const i=o.options.queryHash;if(!i)return;const a=n.get(i);a?a.push(o):n.set(i,[o])});const r=[];return t.forEach(o=>{var l;const i=C(this,Pr).defaultQueryOptions(o),s=((l=n.get(i.queryHash))==null?void 0:l.shift())??new Wo(C(this,Pr),i);r.push({defaultedQueryOptions:i,observer:s})}),r},Zs=function(t,n){const r=C(this,lt).indexOf(t);r!==-1&&(V(this,Ze,lm(C(this,Ze),r,n)),X(this,De,Js).call(this))},Js=function(){var t;if(this.hasListeners()){const n=C(this,an),r=X(this,De,Qs).call(this,C(this,Ze),C(this,qo)),o=X(this,De,Ys).call(this,r,(t=C(this,kr))==null?void 0:t.combine);n!==o&&be.batch(()=>{this.listeners.forEach(i=>{i(C(this,Ze))})})}},sf),Tt,lf,cm=(lf=class extends Wn{constructor(t={}){super();G(this,Tt);this.config=t,V(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Bl(o,n);let a=this.get(i);return a||(a=new em({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){C(this,Tt).has(t.queryHash)||(C(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Tt).get(t)}getAll(){return[...C(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ku(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ku(t,r)):n}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,lf),ve,sn,ln,Mr,Or,un,Tr,Dr,uf,dm=(uf=class{constructor(e={}){G(this,ve);G(this,sn);G(this,ln);G(this,Mr);G(this,Or);G(this,un);G(this,Tr);G(this,Dr);V(this,ve,e.queryCache||new cm),V(this,sn,e.mutationCache||new am),V(this,ln,e.defaultOptions||{}),V(this,Mr,new Map),V(this,Or,new Map),V(this,un,0)}mount(){ui(this,un)._++,C(this,un)===1&&(V(this,Tr,Vl.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onFocus())})),V(this,Dr,Vi.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onOnline())})))}unmount(){var e,t;ui(this,un)._--,C(this,un)===0&&((e=C(this,Tr))==null||e.call(this),V(this,Tr,void 0),(t=C(this,Dr))==null||t.call(this),V(this,Dr,void 0))}isFetching(e){return C(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,sn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ve).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,ve).get(r.queryHash),i=o==null?void 0:o.state.data,a=zg(t,i);if(a!==void 0)return C(this,ve).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return be.batch(()=>C(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ve);be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ve);return be.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=be.batch(()=>C(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ie).catch(Ie)}invalidateQueries(e,t={}){return be.batch(()=>(C(this,ve).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=be.batch(()=>C(this,ve).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ie)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ie)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ve).build(this,t);return n.isStaleByTime(hn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ie).catch(Ie)}fetchInfiniteQuery(e){return e.behavior=zi(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ie).catch(Ie)}ensureInfiniteQueryData(e){return e.behavior=zi(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vi.isOnline()?C(this,sn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ve)}getMutationCache(){return C(this,sn)}getDefaultOptions(){return C(this,ln)}setDefaultOptions(e){V(this,ln,e)}setQueryDefaults(e,t){C(this,Mr).set(vn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Mr).values()],n={};return t.forEach(r=>{So(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Or).set(vn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Or).values()],n={};return t.forEach(r=>{So(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,ln).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===et&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,ln).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ve).clear(),C(this,sn).clear()}},ve=new WeakMap,sn=new WeakMap,ln=new WeakMap,Mr=new WeakMap,Or=new WeakMap,un=new WeakMap,Tr=new WeakMap,Dr=new WeakMap,uf),Sf=E.createContext(void 0),Go=e=>{const t=E.useContext(Sf);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fm=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Sf.Provider,{value:e,children:t})),Ef=E.createContext(!1),Pf=()=>E.useContext(Ef);Ef.Provider;function hm(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var pm=E.createContext(hm()),Rf=()=>E.useContext(pm),kf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Mf=e=>{E.useEffect(()=>{e.clearReset()},[e])},Of=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||gf(n,[e.error,r])),Ul=(e,t)=>t.state.data===void 0,Tf=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Df=(e,t)=>e.isLoading&&e.isFetching&&!t,el=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ui=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _f({queries:e,...t},n){const r=Go(n),o=Pf(),i=Rf(),a=E.useMemo(()=>e.map(m=>{const v=r.defaultQueryOptions(m);return v._optimisticResults=o?"isRestoring":"optimistic",v}),[e,r,o]);a.forEach(m=>{Tf(m),kf(m,i)}),Mf(i);const[s]=E.useState(()=>new um(r,a,t)),[l,u,h]=s.getOptimisticResult(a,t.combine),c=!o&&t.subscribed!==!1;E.useSyncExternalStore(E.useCallback(m=>c?s.subscribe(be.batchCalls(m)):Ie,[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),E.useEffect(()=>{s.setQueries(a,t)},[a,t,s]);const f=l.some((m,v)=>el(a[v],m))?l.flatMap((m,v)=>{const b=a[v];if(b){const x=new Wo(r,b);if(el(b,m))return Ui(b,x,i);Df(m,o)&&Ui(b,x,i)}return[]}):[];if(f.length>0)throw Promise.all(f);const g=l.find((m,v)=>{const b=a[v];return b&&Of({result:m,errorResetBoundary:i,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(g!=null&&g.error)throw g.error;return u(h())}function xa(e,t,n){var c,p,f,g,m;const r=Pf(),o=Rf(),i=Go(n),a=i.defaultQueryOptions(e);(p=(c=i.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||p.call(c,a),a._optimisticResults=r?"isRestoring":"optimistic",Tf(a),kf(a,o),Mf(o);const s=!i.getQueryCache().get(a.queryHash),[l]=E.useState(()=>new t(i,a)),u=l.getOptimisticResult(a),h=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(v=>{const b=h?l.subscribe(be.batchCalls(v)):Ie;return l.updateResult(),b},[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),E.useEffect(()=>{l.setOptions(a)},[a,l]),el(a,u))throw Ui(a,l,o);if(Of({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((g=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||g.call(f,a,u),a.experimental_prefetchInRender&&!Hn&&Df(u,r)){const v=s?Ui(a,l,o):(m=i.getQueryCache().get(a.queryHash))==null?void 0:m.promise;v==null||v.catch(Ie).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function gm(e,t){return xa(e,Wo,t)}function mm(e,t){return xa({...e,enabled:!0,suspense:!0,throwOnError:Ul,placeholderData:void 0},Wo,t)}function vm(e,t){return xa({...e,enabled:!0,suspense:!0,throwOnError:Ul},Cf,t)}function bm(e,t){return _f({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Ul,enabled:!0,placeholderData:void 0}))},t)}function ym(e,t){const n=Go(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function xm(e,t){const n=Go(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function wm(e,t){const n=Go(t),[r]=E.useState(()=>new sm(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const o=E.useSyncExternalStore(E.useCallback(a=>r.subscribe(be.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=E.useCallback((a,s)=>{r.mutate(a,s).catch(Ie)},[r]);if(o.error&&gf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function Cm(e,t){return xa(e,Cf,t)}var $m=Object.create,Lf=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Ff=Object.getOwnPropertyNames,Em=Object.getPrototypeOf,Pm=Object.prototype.hasOwnProperty,Dt=(e,t)=>function(){return t||(0,e[Ff(e)[0]])((t={exports:{}}).exports,t),t.exports},Rm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Ff(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Pm.call(e,s)&&s!==n&&Lf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Sm(t,s))||r.enumerable});return e},Ce=(e,t,n)=>(n=e!=null?$m(Em(e)):{},Rm(Lf(n,"default",{value:e,enumerable:!0}),e)),If=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),km=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=If().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Mm=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=If().default,r=km();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gn=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Mm();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),St=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Gn();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function wa(e){const t={subscribe(n){let r=null,o=!1,i=!1,a=!1;function s(){if(r===null){a=!0;return}i||(i=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(l){var u;o||(u=n.next)===null||u===void 0||u.call(n,l)},error(l){var u;o||(o=!0,(u=n.error)===null||u===void 0||u.call(n,l),s())},complete(){var l;o||(o=!0,(l=n.complete)===null||l===void 0||l.call(n),s())}}),a&&s(),{unsubscribe:s}},pipe(...n){return n.reduce(Om,t)}};return t}function Om(e,t){return t(e)}function Tm(e){const t=new AbortController;return new Promise((r,o)=>{let i=!1;function a(){i||(i=!0,s.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const s=e.subscribe({next(l){i=!0,r(l),a()},error(l){o(l)},complete(){t.abort(),a()}})})}function Dm(e){return t=>{let n=0,r=null;const o=[];function i(){r||(r=t.subscribe({next(s){for(const u of o){var l;(l=u.next)===null||l===void 0||l.call(u,s)}},error(s){for(const u of o){var l;(l=u.error)===null||l===void 0||l.call(u,s)}},complete(){for(const l of o){var s;(s=l.complete)===null||s===void 0||s.call(l)}}}))}function a(){if(n===0&&r){const s=r;r=null,s.unsubscribe()}}return wa(s=>(n++,o.push(s),i(),{unsubscribe(){n--,a();const l=o.findIndex(u=>u===s);l>-1&&o.splice(l,1)}}))}}function _m(e){let t=e;const n=[],r=a=>{t!==void 0&&a.next(t),n.push(a)},o=a=>{n.splice(n.indexOf(a),1)},i=wa(a=>(r(a),()=>{o(a)}));return i.next=a=>{if(t!==a){t=a;for(const s of n)s.next(a)}},i.get=()=>t,i}function Lm(e){return wa(t=>{function n(o=0,i=e.op){const a=e.links[o];if(!a)throw new Error("No more links to execute - did you forget to add an ending link?");return a({op:i,next(l){return n(o+1,l)}})}return n().subscribe(t)})}function Vn(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const Fm=typeof Symbol=="function"&&!!Symbol.asyncIterator;function jf(e){return Fm&&Vn(e)&&Symbol.asyncIterator in e}var Im=Object.create,Nf=Object.defineProperty,jm=Object.getOwnPropertyDescriptor,Af=Object.getOwnPropertyNames,Nm=Object.getPrototypeOf,Am=Object.prototype.hasOwnProperty,Qo=(e,t)=>function(){return t||(0,e[Af(e)[0]])((t={exports:{}}).exports,t),t.exports},Km=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Af(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Am.call(e,s)&&s!==n&&Nf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=jm(t,s))||r.enumerable});return e},Ca=(e,t,n)=>(n=e!=null?Im(Nm(e)):{},Km(Nf(n,"default",{value:e,enumerable:!0}),e));const Kf=()=>{},Qu=e=>{Object.freeze&&Object.freeze(e)};function Bf(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Kf,{get(i,a){if(!(typeof a!="string"||a==="then"))return Bf(e,[...t,a],n)},apply(i,a,s){const l=t[t.length-1];let u={args:s,path:t};return l==="call"?u={args:s.length>=2?[s[1]]:[],path:t.slice(0,-1)}:l==="apply"&&(u={args:s.length>=2?s[1]:[],path:t.slice(0,-1)}),Qu(u.args),Qu(u.path),e(u)}})),n[o]}const $a=e=>Bf(e,[],Object.create(null)),ql=e=>new Proxy(Kf,{get(t,n){if(n!=="then")return e(n)}});var Hf=Qo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bm=Qo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Hf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Hm=Qo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Hf().default,r=Bm();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vf=Qo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Hm();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wl=Qo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Vf();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});Ca(Wl());Ca(Vf());var di=Ca(Wl());function Vm(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,di.default)((0,di.default)({},e),{},{error:r})}}return{ok:!0,result:(0,di.default)((0,di.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Ga=class extends Error{constructor(){super("Unable to transform response from server")}};function zm(e,t){let n;try{n=Vm(e,t)}catch{throw new Ga}if(!n.ok&&(!Vn(n.error.error)||typeof n.error.error.code!="number"))throw new Ga;if(n.ok&&!Vn(n.result))throw new Ga;return n}Ca(Wl());var fi=Ce(Gn()),rr=Ce(St());function Um(e){return e instanceof qi}function qm(e){return Vn(e)&&Vn(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Wm(e,t){return typeof e=="string"?e:Vn(e)&&typeof e.message=="string"?e.message:t}var qi=class Ii extends Error{constructor(t,n){var r,o;const i=n==null?void 0:n.cause;super(t,{cause:i}),(0,fi.default)(this,"cause",void 0),(0,fi.default)(this,"shape",void 0),(0,fi.default)(this,"data",void 0),(0,fi.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=i,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(o=n.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Ii.prototype)}static from(t,n={}){const r=t;return Um(r)?(n.meta&&(r.meta=(0,rr.default)((0,rr.default)({},r.meta),n.meta)),r):qm(r)?new Ii(r.error.message,(0,rr.default)((0,rr.default)({},n),{},{result:r})):new Ii(Wm(r,"Unknown error"),(0,rr.default)((0,rr.default)({},n),{},{cause:r}))}};function Gm(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const Yu=e=>typeof e=="function";function Qm(e){if(e)return e;if(typeof window<"u"&&Yu(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Yu(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var go=Ce(St());function Ym(e){return{url:e.url.toString(),fetch:e.fetch,transformer:Gm(e.transformer),methodOverride:e.methodOverride}}function Xm(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const Zm={query:"GET",mutation:"POST",subscription:"PATCH"};function zf(e){return"input"in e?e.transformer.input.serialize(e.input):Xm(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Uf=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=zf(e);i!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return o.length&&(r+="?"+o.join("&")),r},Jm=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=zf(e);return t!==void 0?JSON.stringify(t):void 0},ev=e=>ov((0,go.default)((0,go.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Uf,getBody:Jm}));var tv=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const nv=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new tv};async function rv(e){var t;nv(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:Zm[e.type],i=await(async()=>{const s=await e.headers();return Symbol.iterator in s?Object.fromEntries(s):s})(),a=(0,go.default)((0,go.default)((0,go.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return Qm(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:a})}async function ov(e){const t={},n=await rv(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Ce(St());const Xu=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Zu(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function o(s){const l=[[]];let u=0;for(;;){const p=s[u];if(!p)break;const f=l[l.length-1];if(p.aborted){var h;(h=p.reject)===null||h===void 0||h.call(p,new Error("Aborted")),u++;continue}if(e.validate(f.concat(p).map(m=>m.key))){f.push(p),u++;continue}if(f.length===0){var c;(c=p.reject)===null||c===void 0||c.call(p,new Error("Input is too big for a single dispatch")),u++;continue}l.push([])}return l}function i(){const s=o(t);r();for(const l of s){if(!l.length)continue;const u={items:l};for(const c of l)c.batch=u;e.fetch(u.items.map(c=>c.key)).then(async c=>{await Promise.all(c.map(async(f,g)=>{const m=u.items[g];try{var v;const x=await Promise.resolve(f);(v=m.resolve)===null||v===void 0||v.call(m,x)}catch(x){var b;(b=m.reject)===null||b===void 0||b.call(m,x)}m.batch=null,m.reject=null,m.resolve=null}));for(const f of u.items){var p;(p=f.reject)===null||p===void 0||p.call(f,new Error("Missing result")),f.batch=null}}).catch(c=>{for(const f of u.items){var p;(p=f.reject)===null||p===void 0||p.call(f,c),f.batch=null}})}}function a(s){var l;const u={aborted:!1,key:s,batch:null,resolve:Xu,reject:Xu},h=new Promise((c,p)=>{var f;u.reject=p,u.resolve=c,(f=t)!==null&&f!==void 0||(t=[]),t.push(u)});return(l=n)!==null&&l!==void 0||(n=setTimeout(i)),h}return{load:a}}function iv(...e){const t=new AbortController,n=e.length;let r=0;const o=()=>{++r===n&&t.abort()};for(const i of e)i!=null&&i.aborted?o():i==null||i.addEventListener("abort",o,{once:!0});return t.signal}var hi=Ce(St());function av(e){var t,n;const r=Ym(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const a=h=>({validate(c){if(o===1/0&&i===1/0)return!0;if(c.length>i)return!1;const p=c.map(m=>m.path).join(","),f=c.map(m=>m.input);return Uf((0,hi.default)((0,hi.default)({},r),{},{type:h,path:p,inputs:f,signal:null})).length<=o},async fetch(c){const p=c.map(x=>x.path).join(","),f=c.map(x=>x.input),g=iv(...c.map(x=>x.signal)),m=await ev((0,hi.default)((0,hi.default)({},r),{},{path:p,inputs:f,type:h,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:g}));return(Array.isArray(m.json)?m.json:c.map(()=>m.json)).map(x=>({meta:m.meta,json:x}))}}),s=Zu(a("query")),l=Zu(a("mutation")),u={query:s,mutation:l};return({op:h})=>wa(c=>{/* istanbul ignore if -- @preserve */if(h.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=u[h.type].load(h);let g;return f.then(m=>{g=m;const v=zm(m.json,r.transformer.output);if(!v.ok){c.error(qi.from(v.error,{meta:m.meta}));return}c.next({context:m.meta,result:v.result}),c.complete()}).catch(m=>{c.error(qi.from(m,{meta:g==null?void 0:g.meta}))}),()=>{}})}}Ce(St());const qf=(e,...t)=>typeof e=="function"?e(...t):e;Ce(Gn());function sv(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function lv(e){const t=await qf(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function uv(e){const t={method:"connectionParams",data:await qf(e)};return JSON.stringify(t)}Ce(Gn());var Mn=Ce(Gn());function cv(e){const{promise:t,resolve:n,reject:r}=sv();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function dv(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function i(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}function a(){clearTimeout(r),i()}function s(){clearTimeout(o),a()}e.addEventListener("open",i),e.addEventListener("message",({data:l})=>{clearTimeout(r),i(),l==="PONG"&&s()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var fv=class tl{constructor(t){var n;if((0,Mn.default)(this,"id",++tl.connectCount),(0,Mn.default)(this,"WebSocketPonyfill",void 0),(0,Mn.default)(this,"urlOptions",void 0),(0,Mn.default)(this,"keepAliveOpts",void 0),(0,Mn.default)(this,"wsObservable",_m(null)),(0,Mn.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++tl.connectCount;const n=lv(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&dv(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await cv(r),t.urlOptions.connectionParams&&r.send(await uv(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Mn.default)(fv,"connectCount",0);Ce(Gn());Ce(St());var Qa=Ce(Gn()),Ju=Ce(St()),Sa=class{constructor(e){(0,Qa.default)(this,"links",void 0),(0,Qa.default)(this,"runtime",void 0),(0,Qa.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return Lm({links:this.links,op:(0,Ju.default)((0,Ju.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(Dm())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await Tm(n)).result.data}catch(n){throw qi.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(o){switch(o.result.type){case"state":{var i;(i=n.onConnectionStateChange)===null||i===void 0||i.call(n,o.result);break}case"started":{var a;(a=n.onStarted)===null||a===void 0||a.call(n,{context:o.context});break}case"stopped":{var s;(s=n.onStopped)===null||s===void 0||s.call(n);break}case"data":case void 0:{var l;(l=n.onData)===null||l===void 0||l.call(n,o.result.data);break}}},error(o){var i;(i=n.onError)===null||i===void 0||i.call(n,o)},complete(){var o;(o=n.onComplete)===null||o===void 0||o.call(n)}})}};const Wf=Symbol.for("trpc_untypedClient"),hv={query:"query",mutate:"mutation",subscribe:"subscription"},pv=e=>hv[e];function Gf(e){const t=$a(({path:n,args:r})=>{const o=[...n],i=pv(o.pop()),a=o.join(".");return e[i](a,...r)});return ql(n=>n===Wf?e:t[n])}function gv(e){const t=new Sa(e);return Gf(t)}function Gl(e){return e[Wf]}Ce(St());Ce(St());var mv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var i,a,s,l=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);l--;){if(a&&(i=o[a])!=null)return i.call(o);if(s&&(i=o[s])!=null)return new r(i.call(o));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function i(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(l){return{value:l,done:s}})}return r=function(s){this.s=s,this.n=s.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(s){var l=this.s.return;return l===void 0?Promise.resolve({value:s,done:!0}):i(l.apply(this.s,arguments))},throw:function(s){var l=this.s.return;return l===void 0?Promise.reject(s):i(l.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Ce(mv());Ce(St());var vv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(s,l){var u=Error();return u.name="SuppressedError",u.error=s,u.suppressed=l,u},o={},i=[];function a(s,l){if(l!=null){if(Object(l)!==l)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(s)var u=l[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=l[Symbol.dispose||Symbol.for("Symbol.dispose")],s))var h=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");h&&(u=function(){try{h.call(l)}catch(p){return Promise.reject(p)}}),i.push({v:l,d:u,a:s})}else s&&i.push({d:l,a:s});return l}return{e:o,u:a.bind(null,!1),a:a.bind(null,!0),d:function(){var l,u=this.e,h=0;function c(){for(;l=i.pop();)try{if(!l.a&&h===1)return h=0,i.push(l),Promise.resolve().then(c);if(l.d){var f=l.d.call(l.v);if(l.a)return h|=2,Promise.resolve(f).then(c,p)}else h|=1}catch(g){return p(g)}if(h===1)return u!==o?Promise.reject(u):Promise.resolve();if(u!==o)throw u}function p(f){return u=u!==o?new r(f,u):f,c()}return c()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Qf=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,o){this.v=r,this.k=o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),bv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Qf();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),yv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Qf();function r(i){return function(){return new o(i.apply(this,arguments))}}function o(i){var a,s;function l(h,c){try{var p=i[h](c),f=p.value,g=f instanceof n;Promise.resolve(g?f.v:f).then(function(m){if(g){var v=h==="return"?"return":"next";if(!f.k||m.done)return l(v,m);m=i[v](m).value}u(p.done?"return":"normal",m)},function(m){l("throw",m)})}catch(m){u("throw",m)}}function u(h,c){switch(h){case"return":a.resolve({value:c,done:!0});break;case"throw":a.reject(c);break;default:a.resolve({value:c,done:!1})}(a=a.next)?l(a.key,a.arg):s=null}this._invoke=function(h,c){return new Promise(function(p,f){var g={key:h,arg:c,resolve:p,reject:f,next:null};s?s=s.next=g:(a=s=g,l(h,c))})},typeof i.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(i){return this._invoke("next",i)},o.prototype.throw=function(i){return this._invoke("throw",i)},o.prototype.return=function(i){return this._invoke("return",i)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Ce(vv());Ce(bv());Ce(yv());Ce(St());var _r=function(){return _r=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_r.apply(this,arguments)};function xv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wv(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(h){try{u(r.next(h))}catch(c){a(c)}}function l(h){try{u(r.throw(h))}catch(c){a(c)}}function u(h){h.done?i(h.value):o(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Cv(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(h){u=[6,h],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Be(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var $v=Object.create,Yf=Object.defineProperty,Sv=Object.getOwnPropertyDescriptor,Xf=Object.getOwnPropertyNames,Ev=Object.getPrototypeOf,Pv=Object.prototype.hasOwnProperty,wn=(e,t)=>function(){return t||(0,e[Xf(e)[0]])((t={exports:{}}).exports,t),t.exports},Rv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Xf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Pv.call(e,s)&&s!==n&&Yf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Sv(t,s))||r.enumerable});return e},Qn=(e,t,n)=>(n=e!=null?$v(Ev(e)):{},Rv(t||!e||!e.__esModule?Yf(n,"default",{value:e,enumerable:!0}):n,e)),kv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,o){if(r==null)return{};var i={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(o.includes(a))continue;i[a]=r[a]}return i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Mv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=kv();function r(o,i){if(o==null)return{};var a,s,l=n(o,i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(s=0;s<u.length;s++)a=u[s],i.includes(a)||{}.propertyIsEnumerable.call(o,a)&&(l[a]=o[a])}return l}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zf=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ov=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Zf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Tv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Zf().default,r=Ov();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Dv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Tv();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yo=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Dv();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),_v=Qn(Mv(),1),ec=Qn(Yo(),1);const Lv=["cursor","direction"];function kt(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&Vn(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:i}=t,a=(0,_v.default)(t,Lv);return[r,{input:a,type:"infinite"}]}return[r,(0,ec.default)((0,ec.default)({},typeof t<"u"&&t!==et&&{input:t}),n&&n!=="any"&&{type:n})]}function ji(e){return kt(e,void 0,"any")}function Fv(e){return $a(({path:t,args:n})=>{var r;const o=[...t],i=o.pop();if(i==="useMutation")return e[i](o,...n);if(i==="_def")return{path:o};const[a,...s]=n,l=(r=s[0])!==null&&r!==void 0?r:{};return e[i](o,a,l)})}var Ya;const Iv=["client","ssrContext","ssrState","abortOnUnmount"],jv=(Ya=E.createContext)===null||Ya===void 0?void 0:Ya.call(E,null),Nv=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Av(e){return $a(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],i=o.shift(),a=Nv(r),s=kt(n,i,a);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,s,o[0]),queryOptions:()=>e.queryOptions(n,s,...o),fetch:()=>e.fetchQuery(s,...o),fetchInfinite:()=>e.fetchInfiniteQuery(s,o[0]),prefetch:()=>e.prefetchQuery(s,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(s,o[0]),ensureData:()=>e.ensureQueryData(s,...o),invalidate:()=>e.invalidateQueries(s,...o),reset:()=>e.resetQueries(s,...o),refetch:()=>e.refetchQueries(s,...o),cancel:()=>e.cancelQuery(s,...o),setData:()=>{e.setQueryData(s,o[0],o[1])},setQueriesData:()=>e.setQueriesData(s,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(s,o[0],o[1])},getData:()=>e.getQueryData(s),getInfiniteData:()=>e.getInfiniteQueryData(s),setMutationDefaults:()=>e.setMutationDefaults(ji(n),i),getMutationDefaults:()=>e.getMutationDefaults(ji(n)),isMutating:()=>e.isMutating({mutationKey:ji(n)})}[r]()})}function Kv(e){const t=Gf(e.client),n=Av(e);return ql(r=>{const o=r;return o==="client"?t:Iv.includes(o)?e[o]:n[r]})}var Bv=Qn(Yo(),1);function tc(e){const t=e instanceof Sa?e:Gl(e);return $a(n=>{const r=n.path,o=r.join("."),[i,a]=n.args;return(0,Bv.default)({queryKey:kt(r,i,"query"),queryFn:()=>t.query(o,i,a==null?void 0:a.trpc)},a)})}var Xa=Qn(Yo(),1);function Ke(e,t,n){var r;const o=e[0];let i=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var a;i=(0,Xa.default)((0,Xa.default)((0,Xa.default)({},(a=i)!==null&&a!==void 0?a:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),i,t==null?void 0:t.trpc]}var Hv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var i,a,s,l=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);l--;){if(a&&(i=o[a])!=null)return i.call(o);if(s&&(i=o[s])!=null)return new r(i.call(o));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function i(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(l){return{value:l,done:s}})}return r=function(s){this.s=s,this.n=s.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(s){var l=this.s.return;return l===void 0?Promise.resolve({value:s,done:!0}):i(l.apply(this.s,arguments))},throw:function(s){var l=this.s.return;return l===void 0?Promise.reject(s):i(l.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vv=Qn(Hv(),1);function nl(e){return{path:e.path.join(".")}}function Jr(e){const t=nl(e);return E.useMemo(()=>t,[t])}async function Jf(e,t,n){const o=t.getQueryCache().build(t,{queryKey:n});o.setState({data:[],status:"success"});const i=[];var a=!1,s=!1,l;try{for(var u=(0,Vv.default)(e),h;a=!(h=await u.next()).done;a=!1){const c=h.value;i.push(c),o.setState({data:[...i]})}}catch(c){s=!0,l=c}finally{try{a&&u.return!=null&&await u.return()}finally{if(s)throw l}}return i}var se=Qn(Yo(),1);function zv(e){const{client:t,queryClient:n}=e,r=t instanceof Sa?t:Gl(t);return{infiniteQueryOptions:(o,i,a)=>{var s,l;const u=((s=i[1])===null||s===void 0?void 0:s.input)===et,h=async c=>{var p;const f=(0,se.default)((0,se.default)({},a),{},{trpc:(0,se.default)((0,se.default)({},a==null?void 0:a.trpc),!(a==null||(p=a.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:c.signal}:{signal:null})});return await r.query(...Ke(i,f,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,se.default)((0,se.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:i,queryFn:u?et:h,initialPageParam:(l=a==null?void 0:a.initialCursor)!==null&&l!==void 0?l:null}),{trpc:nl({path:o})})},queryOptions:(o,i,a)=>{var s;const l=((s=i[1])===null||s===void 0?void 0:s.input)===et,u=async h=>{var c;const p=(0,se.default)((0,se.default)({},a),{},{trpc:(0,se.default)((0,se.default)({},a==null?void 0:a.trpc),!(a==null||(c=a.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:h.signal}:{signal:null})}),f=await r.query(...Ke(i,p));return jf(f)?Jf(f,n,i):f};return Object.assign((0,se.default)((0,se.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:i,queryFn:l?et:u}),{trpc:nl({path:o})})},fetchQuery:(o,i)=>n.fetchQuery((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Ke(o,i))})),fetchInfiniteQuery:(o,i)=>{var a;return n.fetchInfiniteQuery((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:({pageParam:s,direction:l})=>r.query(...Ke(o,i,{pageParam:s,direction:l})),initialPageParam:(a=i==null?void 0:i.initialCursor)!==null&&a!==void 0?a:null}))},prefetchQuery:(o,i)=>n.prefetchQuery((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Ke(o,i))})),prefetchInfiniteQuery:(o,i)=>{var a;return n.prefetchInfiniteQuery((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:({pageParam:s,direction:l})=>r.query(...Ke(o,i,{pageParam:s,direction:l})),initialPageParam:(a=i==null?void 0:i.initialCursor)!==null&&a!==void 0?a:null}))},ensureQueryData:(o,i)=>n.ensureQueryData((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Ke(o,i))})),invalidateQueries:(o,i,a)=>n.invalidateQueries((0,se.default)((0,se.default)({},i),{},{queryKey:o}),a),resetQueries:(o,i,a)=>n.resetQueries((0,se.default)((0,se.default)({},i),{},{queryKey:o}),a),refetchQueries:(o,i,a)=>n.refetchQueries((0,se.default)((0,se.default)({},i),{},{queryKey:o}),a),cancelQuery:(o,i)=>n.cancelQueries({queryKey:o},i),setQueryData:(o,i,a)=>n.setQueryData(o,i,a),setQueriesData:(o,i,a,s)=>n.setQueriesData((0,se.default)((0,se.default)({},i),{},{queryKey:o}),a,s),getQueryData:o=>n.getQueryData(o),setInfiniteQueryData:(o,i,a)=>n.setQueryData(o,i,a),getInfiniteQueryData:o=>n.getQueryData(o),setMutationDefaults:(o,i)=>{const a=o[0],s=l=>r.mutation(...Ke([a,{input:l}],e));return n.setMutationDefaults(o,typeof i=="function"?i({canonicalMutationFn:s}):i)},getMutationDefaults:o=>n.getMutationDefaults(o),isMutating:o=>n.isMutating((0,se.default)((0,se.default)({},o),{},{exact:!0}))}}var q=Qn(Yo());const nc=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function Uv(e){var t,n,r;const o=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:P=>P.originalFn(),i=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:jv,a=gv,s=P=>{var R;const{abortOnUnmount:M=!1,queryClient:_,ssrContext:D}=P,[j,K]=E.useState((R=P.ssrState)!==null&&R!==void 0?R:!1),I=P.client instanceof Sa?P.client:Gl(P.client),z=E.useMemo(()=>zv({client:I,queryClient:_}),[I,_]),O=E.useMemo(()=>(0,q.default)({abortOnUnmount:M,queryClient:_,client:I,ssrContext:D??null,ssrState:j},z),[M,I,z,_,D,j]);return E.useEffect(()=>{K(L=>L?"mounted":!1)},[]),y.jsx(i.Provider,{value:O,children:P.children})};function l(){const P=E.useContext(i);if(!P)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return P}function u(P,R){var M;const{queryClient:_,ssrState:D}=l();return D&&D!=="mounted"&&((M=_.getQueryCache().find({queryKey:P}))===null||M===void 0?void 0:M.state.status)==="error"?(0,q.default)({retryOnMount:!1},R):R}function h(P,R,M){var _,D,j,K,I;const z=l(),{abortOnUnmount:O,client:L,ssrState:B,queryClient:U,prefetchQuery:W}=z,$=kt(P,R,"query"),F=U.getQueryDefaults($),T=R===et;typeof window>"u"&&B==="prepass"&&(M==null||(_=M.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((D=M==null?void 0:M.enabled)!==null&&D!==void 0?D:F==null?void 0:F.enabled)!==!1&&!T&&!U.getQueryCache().find({queryKey:$})&&W($,M);const N=u($,(0,q.default)((0,q.default)({},F),M)),H=(j=(K=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&K!==void 0?K:e==null?void 0:e.abortOnUnmount)!==null&&j!==void 0?j:O,A=gm((0,q.default)((0,q.default)({},N),{},{queryKey:$,queryFn:T?R:async Z=>{const he=(0,q.default)((0,q.default)({},N),{},{trpc:(0,q.default)((0,q.default)({},N==null?void 0:N.trpc),H?{signal:Z.signal}:{signal:null})}),te=await L.query(...Ke($,he));return jf(te)?Jf(te,U,$):te}}),U);return A.trpc=Jr({path:P}),A}function c(P,R,M){var _,D,j;const K=l(),I=kt(P,R,"query"),z=R===et,O=(_=(D=M==null||(j=M.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&D!==void 0?D:e==null?void 0:e.abortOnUnmount)!==null&&_!==void 0?_:K.abortOnUnmount;ym((0,q.default)((0,q.default)({},M),{},{queryKey:I,queryFn:z?R:L=>{const B={trpc:(0,q.default)((0,q.default)({},M==null?void 0:M.trpc),O?{signal:L.signal}:{})};return K.client.query(...Ke(I,B))}}))}function p(P,R,M){var _,D,j;const K=l(),I=kt(P,R,"query"),z=(_=(D=M==null||(j=M.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&D!==void 0?D:e==null?void 0:e.abortOnUnmount)!==null&&_!==void 0?_:K.abortOnUnmount,O=mm((0,q.default)((0,q.default)({},M),{},{queryKey:I,queryFn:L=>{const B=(0,q.default)((0,q.default)({},M),{},{trpc:(0,q.default)((0,q.default)({},M==null?void 0:M.trpc),z?{signal:L.signal}:{signal:null})});return K.client.query(...Ke(I,B))}}),K.queryClient);return O.trpc=Jr({path:P}),[O.data,O]}function f(P,R){const{client:M,queryClient:_}=l(),D=ji(P),j=_.defaultMutationOptions(_.getMutationDefaults(D)),K=wm((0,q.default)((0,q.default)({},R),{},{mutationKey:D,mutationFn:I=>M.mutation(...Ke([P,{input:I}],R)),onSuccess(...I){var z,O;return o({originalFn:()=>{var B,U,W;return(B=R==null||(U=R.onSuccess)===null||U===void 0?void 0:U.call(R,...I))!==null&&B!==void 0?B:j==null||(W=j.onSuccess)===null||W===void 0?void 0:W.call(j,...I)},queryClient:_,meta:(z=(O=R==null?void 0:R.meta)!==null&&O!==void 0?O:j==null?void 0:j.meta)!==null&&z!==void 0?z:{}})}}),_);return K.trpc=Jr({path:P}),K}const g={data:void 0,error:null,status:"idle"},m={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function v(P,R,M){var _;const D=(_=M==null?void 0:M.enabled)!==null&&_!==void 0?_:R!==et,j=vn(kt(P,R,"any")),{client:K}=l(),I=E.useRef(M);E.useEffect(()=>{I.current=M});const[z]=E.useState(new Set([])),O=E.useCallback(T=>{z.add(T)},[z]),L=E.useRef(null),B=E.useCallback(T=>{const N=W.current,H=W.current=T(N);let A=!1;for(const Z of z)if(N[Z]!==H[Z]){A=!0;break}A&&F(nc(H,O))},[O,z]),U=E.useCallback(()=>{var T;if((T=L.current)===null||T===void 0||T.unsubscribe(),!D){B(()=>(0,q.default)((0,q.default)({},g),{},{reset:U}));return}B(()=>(0,q.default)((0,q.default)({},m),{},{reset:U}));const N=K.subscription(P.join("."),R??void 0,{onStarted:()=>{var H,A;(H=(A=I.current).onStarted)===null||H===void 0||H.call(A),B(Z=>(0,q.default)((0,q.default)({},Z),{},{status:"pending",error:null}))},onData:H=>{var A,Z;(A=(Z=I.current).onData)===null||A===void 0||A.call(Z,H),B(he=>(0,q.default)((0,q.default)({},he),{},{status:"pending",data:H,error:null}))},onError:H=>{var A,Z;(A=(Z=I.current).onError)===null||A===void 0||A.call(Z,H),B(he=>(0,q.default)((0,q.default)({},he),{},{status:"error",error:H}))},onConnectionStateChange:H=>{B(A=>{switch(H.state){case"idle":return(0,q.default)((0,q.default)({},A),{},{status:H.state,error:null,data:void 0});case"connecting":return(0,q.default)((0,q.default)({},A),{},{error:H.error,status:H.state});case"pending":return A}})},onComplete:()=>{var H,A;(H=(A=I.current).onComplete)===null||H===void 0||H.call(A),B(Z=>(0,q.default)((0,q.default)({},Z),{},{status:"idle",error:null,data:void 0}))}});L.current=N},[K,j,D,B]);E.useEffect(()=>(U(),()=>{var T;(T=L.current)===null||T===void 0||T.unsubscribe()}),[U]);const W=E.useRef(D?(0,q.default)((0,q.default)({},m),{},{reset:U}):(0,q.default)((0,q.default)({},g),{},{reset:U})),[$,F]=E.useState(nc(W.current,O));return $}function b(P,R,M){var _,D,j,K,I;const{client:z,ssrState:O,prefetchInfiniteQuery:L,queryClient:B,abortOnUnmount:U}=l(),W=kt(P,R,"infinite"),$=B.getQueryDefaults(W),F=R===et;typeof window>"u"&&O==="prepass"&&(M==null||(_=M.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((D=M==null?void 0:M.enabled)!==null&&D!==void 0?D:$==null?void 0:$.enabled)!==!1&&!F&&!B.getQueryCache().find({queryKey:W})&&L(W,(0,q.default)((0,q.default)({},$),M));const T=u(W,(0,q.default)((0,q.default)({},$),M)),N=(j=M==null||(K=M.trpc)===null||K===void 0?void 0:K.abortOnUnmount)!==null&&j!==void 0?j:U,H=Cm((0,q.default)((0,q.default)({},T),{},{initialPageParam:(I=M.initialCursor)!==null&&I!==void 0?I:null,persister:M.persister,queryKey:W,queryFn:F?R:A=>{var Z;const he=(0,q.default)((0,q.default)({},T),{},{trpc:(0,q.default)((0,q.default)({},T==null?void 0:T.trpc),N?{signal:A.signal}:{signal:null})});return z.query(...Ke(W,he,{pageParam:(Z=A.pageParam)!==null&&Z!==void 0?Z:M.initialCursor,direction:A.direction}))}}),B);return H.trpc=Jr({path:P}),H}function x(P,R,M){var _,D,j;const K=l(),I=kt(P,R,"infinite"),z=K.queryClient.getQueryDefaults(I),O=R===et,L=u(I,(0,q.default)((0,q.default)({},z),M)),B=(_=M==null||(D=M.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&_!==void 0?_:K.abortOnUnmount;xm((0,q.default)((0,q.default)({},M),{},{initialPageParam:(j=M.initialCursor)!==null&&j!==void 0?j:null,queryKey:I,queryFn:O?R:U=>{var W;const $=(0,q.default)((0,q.default)({},L),{},{trpc:(0,q.default)((0,q.default)({},L==null?void 0:L.trpc),B?{signal:U.signal}:{})});return K.client.query(...Ke(I,$,{pageParam:(W=U.pageParam)!==null&&W!==void 0?W:M.initialCursor,direction:U.direction}))}}))}function w(P,R,M){var _,D,j;const K=l(),I=kt(P,R,"infinite"),z=K.queryClient.getQueryDefaults(I),O=u(I,(0,q.default)((0,q.default)({},z),M)),L=(_=M==null||(D=M.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&_!==void 0?_:K.abortOnUnmount,B=vm((0,q.default)((0,q.default)({},M),{},{initialPageParam:(j=M.initialCursor)!==null&&j!==void 0?j:null,queryKey:I,queryFn:U=>{var W;const $=(0,q.default)((0,q.default)({},O),{},{trpc:(0,q.default)((0,q.default)({},O==null?void 0:O.trpc),L?{signal:U.signal}:{})});return K.client.query(...Ke(I,$,{pageParam:(W=U.pageParam)!==null&&W!==void 0?W:M.initialCursor,direction:U.direction}))}}),K.queryClient);return B.trpc=Jr({path:P}),[B.data,B]}return{Provider:s,createClient:a,useContext:l,useUtils:l,useQuery:h,usePrefetchQuery:c,useSuspenseQuery:p,useQueries:(P,R)=>{const{ssrState:M,queryClient:_,prefetchQuery:D,client:j}=l(),K=tc(j),I=P(K);if(typeof window>"u"&&M==="prepass")for(const O of I){var z;const L=O;((z=L.trpc)===null||z===void 0?void 0:z.ssr)!==!1&&!_.getQueryCache().find({queryKey:L.queryKey})&&D(L.queryKey,L)}return _f({queries:I.map(O=>(0,q.default)((0,q.default)({},O),{},{queryKey:O.queryKey})),combine:R==null?void 0:R.combine},_)},useSuspenseQueries:P=>{const{queryClient:R,client:M}=l(),_=tc(M),D=P(_),j=bm({queries:D.map(K=>(0,q.default)((0,q.default)({},K),{},{queryFn:K.queryFn,queryKey:K.queryKey}))},R);return[j.map(K=>K.data),j]},useMutation:f,useSubscription:v,useInfiniteQuery:b,usePrefetchInfiniteQuery:x,useSuspenseInfiniteQuery:w}}function qv(e){const t=Fv(e);return ql(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return E.useMemo(()=>Kv(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Wv(e){const t=Uv(e);return qv(t)}var ue=Wv({overrides:{useMutation:{onSuccess:function(e){return wv(this,void 0,void 0,function(){return Cv(this,function(t){switch(t.label){case 0:return[4,e.originalFn()];case 1:return t.sent(),[4,e.queryClient.invalidateQueries()];case 2:return t.sent(),[2]}})})}}}});/**
|
|
10
|
+
* react-router v7.11.0
|
|
11
11
|
*
|
|
12
12
|
* Copyright (c) Remix Software Inc.
|
|
13
13
|
*
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
* LICENSE.md file in the root directory of this source tree.
|
|
16
16
|
*
|
|
17
17
|
* @license MIT
|
|
18
|
-
*/var rc="popstate";function Bv(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return nl("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:ko(o)}return Vv(t,n,null,e)}function ge(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ft(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Hv(){return Math.random().toString(36).substring(2,10)}function oc(e,t){return{usr:e.state,key:e.key,idx:t}}function nl(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?qr(t):t,state:n,key:t&&t.key||r||Hv()}}function ko({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function qr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Vv(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,u=h();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function h(){return(a.state||{idx:null}).idx}function c(){s="POP";let v=h(),b=v==null?null:v-u;u=v,l&&l({action:s,location:m.location,delta:b})}function p(v,b){s="PUSH";let x=nl(m.location,v,b);u=h()+1;let w=oc(x,u),$=m.createHref(x);try{a.pushState(w,"",$)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign($)}i&&l&&l({action:s,location:m.location,delta:1})}function f(v,b){s="REPLACE";let x=nl(m.location,v,b);u=h();let w=oc(x,u),$=m.createHref(x);a.replaceState(w,"",$),i&&l&&l({action:s,location:m.location,delta:0})}function g(v){return zv(v)}let m={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(rc,c),l=v,()=>{o.removeEventListener(rc,c),l=null}},createHref(v){return t(o,v)},createURL:g,encodeLocation(v){let b=g(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:f,go(v){return a.go(v)}};return m}function zv(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ge(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ko(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function e0(e,t,n="/"){return Uv(e,t,n,!1)}function Uv(e,t,n,r){let o=typeof t=="string"?qr(t):t,i=Gt(o.pathname||"/",n);if(i==null)return null;let a=t0(e);qv(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=rb(i);s=tb(a[l],u,r)}return s}function t0(e,t=[],n=[],r="",o=!1){let i=(a,s,l=o,u)=>{let h={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&l)return;ge(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let c=qt([r,h.relativePath]),p=n.concat(h);a.children&&a.children.length>0&&(ge(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),t0(a.children,t,p,c,l)),!(a.path==null&&!a.index)&&t.push({path:c,score:Jv(c,a.index),routesMeta:p})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,s);else for(let u of n0(a.path))i(a,s,!0,u)}),t}function n0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=n0(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function qv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:eb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Wv=/^:[\w-]+$/,Gv=3,Qv=2,Yv=1,Xv=10,Zv=-2,ic=e=>e==="*";function Jv(e,t){let n=e.split("/"),r=n.length;return n.some(ic)&&(r+=Zv),t&&(r+=Qv),n.filter(o=>!ic(o)).reduce((o,i)=>o+(Wv.test(i)?Gv:i===""?Yv:Xv),r)}function eb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function tb(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,h=i==="/"?t:t.slice(i.length)||"/",c=Wi({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},h),p=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Wi({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:qt([i,c.pathname]),pathnameBase:lb(qt([i,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(i=qt([i,c.pathnameBase]))}return a}function Wi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nb(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:h,isOptional:c},p)=>{if(h==="*"){let g=s[p]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const f=s[p];return c&&!f?u[h]=void 0:u[h]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function nb(e,t=!1,n=!0){ft(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function rb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ft(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Gt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var ob=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ib=e=>ob.test(e);function ab(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?qr(e):e,i;if(n)if(ib(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),ft(!1,`Pathnames cannot have embedded double slashes - normalizing ${a} -> ${n}`)}n.startsWith("/")?i=ac(n.substring(1),"/"):i=ac(n,t)}else i=t;return{pathname:i,search:ub(r),hash:cb(o)}}function ac(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ja(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function sb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function r0(e){let t=sb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function o0(e,t,n,r=!1){let o;typeof e=="string"?o=qr(e):(o={...e},ge(!o.pathname||!o.pathname.includes("?"),Ja("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Ja("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Ja("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),c-=1;o.pathname=p.join("/")}s=c>=0?t[c]:"/"}let l=ab(o,s),u=a&&a!=="/"&&a.endsWith("/"),h=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||h)&&(l.pathname+="/"),l}var qt=e=>e.join("/").replace(/\/\/+/g,"/"),lb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ub=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function db(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var i0=["POST","PUT","PATCH","DELETE"];new Set(i0);var fb=["GET",...i0];new Set(fb);var Wr=S.createContext(null);Wr.displayName="DataRouter";var Pa=S.createContext(null);Pa.displayName="DataRouterState";S.createContext(!1);var a0=S.createContext({isTransitioning:!1});a0.displayName="ViewTransition";var hb=S.createContext(new Map);hb.displayName="Fetchers";var pb=S.createContext(null);pb.displayName="Await";var It=S.createContext(null);It.displayName="Navigation";var Zo=S.createContext(null);Zo.displayName="Location";var Nt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Nt.displayName="Route";var Gl=S.createContext(null);Gl.displayName="RouteError";function gb(e,{relative:t}={}){ge(Jo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(It),{hash:o,pathname:i,search:a}=ei(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:qt([n,i])),r.createHref({pathname:s,search:a,hash:o})}function Jo(){return S.useContext(Zo)!=null}function Sn(){return ge(Jo(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Zo).location}var s0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function l0(e){S.useContext(It).static||S.useLayoutEffect(e)}function u0(){let{isDataRoute:e}=S.useContext(Nt);return e?Mb():mb()}function mb(){ge(Jo(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Wr),{basename:t,navigator:n}=S.useContext(It),{matches:r}=S.useContext(Nt),{pathname:o}=Sn(),i=JSON.stringify(r0(r)),a=S.useRef(!1);return l0(()=>{a.current=!0}),S.useCallback((l,u={})=>{if(ft(a.current,s0),!a.current)return;if(typeof l=="number"){n.go(l);return}let h=o0(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:qt([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,i,o,e])}S.createContext(null);function vb(){let{matches:e}=S.useContext(Nt),t=e[e.length-1];return t?t.params:{}}function ei(e,{relative:t}={}){let{matches:n}=S.useContext(Nt),{pathname:r}=Sn(),o=JSON.stringify(r0(n));return S.useMemo(()=>o0(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function bb(e,t){return c0(e,t)}function c0(e,t,n,r,o){var x;ge(Jo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(It),{matches:a}=S.useContext(Nt),s=a[a.length-1],l=s?s.params:{},u=s?s.pathname:"/",h=s?s.pathnameBase:"/",c=s&&s.route;{let w=c&&c.path||"";d0(u,!c||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
18
|
+
*/var rc="popstate";function Gv(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return rl("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Po(o)}return Yv(t,n,null,e)}function ge(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ft(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Qv(){return Math.random().toString(36).substring(2,10)}function oc(e,t){return{usr:e.state,key:e.key,idx:t}}function rl(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Hr(t):t,state:n,key:t&&t.key||r||Qv()}}function Po({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Hr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Yv(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,u=h();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function h(){return(a.state||{idx:null}).idx}function c(){s="POP";let v=h(),b=v==null?null:v-u;u=v,l&&l({action:s,location:m.location,delta:b})}function p(v,b){s="PUSH";let x=rl(m.location,v,b);u=h()+1;let w=oc(x,u),S=m.createHref(x);try{a.pushState(w,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(S)}i&&l&&l({action:s,location:m.location,delta:1})}function f(v,b){s="REPLACE";let x=rl(m.location,v,b);u=h();let w=oc(x,u),S=m.createHref(x);a.replaceState(w,"",S),i&&l&&l({action:s,location:m.location,delta:0})}function g(v){return Xv(v)}let m={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(rc,c),l=v,()=>{o.removeEventListener(rc,c),l=null}},createHref(v){return t(o,v)},createURL:g,encodeLocation(v){let b=g(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:f,go(v){return a.go(v)}};return m}function Xv(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ge(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Po(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function e0(e,t,n="/"){return Zv(e,t,n,!1)}function Zv(e,t,n,r){let o=typeof t=="string"?Hr(t):t,i=zt(o.pathname||"/",n);if(i==null)return null;let a=t0(e);Jv(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=cb(i);s=lb(a[l],u,r)}return s}function t0(e,t=[],n=[],r="",o=!1){let i=(a,s,l=o,u)=>{let h={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&l)return;ge(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let c=Ht([r,h.relativePath]),p=n.concat(h);a.children&&a.children.length>0&&(ge(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),t0(a.children,t,p,c,l)),!(a.path==null&&!a.index)&&t.push({path:c,score:ab(c,a.index),routesMeta:p})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,s);else for(let u of n0(a.path))i(a,s,!0,u)}),t}function n0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=n0(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Jv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var eb=/^:[\w-]+$/,tb=3,nb=2,rb=1,ob=10,ib=-2,ic=e=>e==="*";function ab(e,t){let n=e.split("/"),r=n.length;return n.some(ic)&&(r+=ib),t&&(r+=nb),n.filter(o=>!ic(o)).reduce((o,i)=>o+(eb.test(i)?tb:i===""?rb:ob),r)}function sb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function lb(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,h=i==="/"?t:t.slice(i.length)||"/",c=Wi({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},h),p=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Wi({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:Ht([i,c.pathname]),pathnameBase:pb(Ht([i,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(i=Ht([i,c.pathnameBase]))}return a}function Wi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ub(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:h,isOptional:c},p)=>{if(h==="*"){let g=s[p]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const f=s[p];return c&&!f?u[h]=void 0:u[h]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function ub(e,t=!1,n=!0){ft(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function cb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ft(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var r0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,db=e=>r0.test(e);function fb(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Hr(e):e,i;if(n)if(db(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),ft(!1,`Pathnames cannot have embedded double slashes - normalizing ${a} -> ${n}`)}n.startsWith("/")?i=ac(n.substring(1),"/"):i=ac(n,t)}else i=t;return{pathname:i,search:gb(r),hash:mb(o)}}function ac(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Za(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function hb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function o0(e){let t=hb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function i0(e,t,n,r=!1){let o;typeof e=="string"?o=Hr(e):(o={...e},ge(!o.pathname||!o.pathname.includes("?"),Za("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Za("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Za("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),c-=1;o.pathname=p.join("/")}s=c>=0?t[c]:"/"}let l=fb(o,s),u=a&&a!=="/"&&a.endsWith("/"),h=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||h)&&(l.pathname+="/"),l}var Ht=e=>e.join("/").replace(/\/\/+/g,"/"),pb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,vb=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function bb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function yb(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var a0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s0(e,t){let n=e;if(typeof n!="string"||!r0.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(a0)try{let i=new URL(window.location.href),a=n.startsWith("//")?new URL(i.protocol+n):new URL(n),s=zt(a.pathname,t);a.origin===i.origin&&s!=null?n=s+a.search+a.hash:o=!0}catch{ft(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var l0=["POST","PUT","PATCH","DELETE"];new Set(l0);var xb=["GET",...l0];new Set(xb);var Vr=E.createContext(null);Vr.displayName="DataRouter";var Ea=E.createContext(null);Ea.displayName="DataRouterState";var wb=E.createContext(!1),u0=E.createContext({isTransitioning:!1});u0.displayName="ViewTransition";var Cb=E.createContext(new Map);Cb.displayName="Fetchers";var $b=E.createContext(null);$b.displayName="Await";var pt=E.createContext(null);pt.displayName="Navigation";var Xo=E.createContext(null);Xo.displayName="Location";var _t=E.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var Ql=E.createContext(null);Ql.displayName="RouteError";var c0="REACT_ROUTER_ERROR",Sb="REDIRECT",Eb="ROUTE_ERROR_RESPONSE";function Pb(e){if(e.startsWith(`${c0}:${Sb}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Rb(e){if(e.startsWith(`${c0}:${Eb}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new vb(t.status,t.statusText,t.data)}catch{}}function kb(e,{relative:t}={}){ge(Zo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(pt),{hash:o,pathname:i,search:a}=Jo(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:Ht([n,i])),r.createHref({pathname:s,search:a,hash:o})}function Zo(){return E.useContext(Xo)!=null}function Cn(){return ge(Zo(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Xo).location}var d0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function f0(e){E.useContext(pt).static||E.useLayoutEffect(e)}function h0(){let{isDataRoute:e}=E.useContext(_t);return e?Hb():Mb()}function Mb(){ge(Zo(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Vr),{basename:t,navigator:n}=E.useContext(pt),{matches:r}=E.useContext(_t),{pathname:o}=Cn(),i=JSON.stringify(o0(r)),a=E.useRef(!1);return f0(()=>{a.current=!0}),E.useCallback((l,u={})=>{if(ft(a.current,d0),!a.current)return;if(typeof l=="number"){n.go(l);return}let h=i0(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ht([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,i,o,e])}E.createContext(null);function Ob(){let{matches:e}=E.useContext(_t),t=e[e.length-1];return t?t.params:{}}function Jo(e,{relative:t}={}){let{matches:n}=E.useContext(_t),{pathname:r}=Cn(),o=JSON.stringify(o0(n));return E.useMemo(()=>i0(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Tb(e,t){return p0(e,t)}function p0(e,t,n,r,o){var x;ge(Zo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=E.useContext(pt),{matches:a}=E.useContext(_t),s=a[a.length-1],l=s?s.params:{},u=s?s.pathname:"/",h=s?s.pathnameBase:"/",c=s&&s.route;{let w=c&&c.path||"";m0(u,!c||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
19
19
|
|
|
20
|
-
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let p=Sn(),f;if(t){let w=typeof t=="string"?qr(t):t;ge(h==="/"||((x=w.pathname)==null?void 0:x.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${w.pathname}" was given in the \`location\` prop.`),f=w}else f=p;let g=f.pathname||"/",m=g;if(h!=="/"){let w=h.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=e0(e,{pathname:m});ft(c||v!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),ft(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=$b(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:qt([h,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?h:qt([h,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?S.createElement(Zo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},b):b}function yb(){let e=kb(),t=db(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:i},"ErrorBoundary")," or"," ",S.createElement("code",{style:i},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,a)}var xb=S.createElement(yb,null),wb=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?S.createElement(Nt.Provider,{value:this.props.routeContext},S.createElement(Gl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cb({routeContext:e,match:t,children:n}){let r=S.useContext(Wr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Nt.Provider,{value:e},n)}function $b(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let h=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);ge(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,l=-1;if(n)for(let h=0;h<i.length;h++){let c=i[h];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=h),c.route.id){let{loaderData:p,errors:f}=n,g=c.route.loader&&!p.hasOwnProperty(c.route.id)&&(!f||f[c.route.id]===void 0);if(c.route.lazy||g){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}let u=n&&r?(h,c)=>{var p,f;r(h,{location:n.location,params:((f=(p=n.matches)==null?void 0:p[0])==null?void 0:f.params)??{},errorInfo:c})}:void 0;return i.reduceRight((h,c,p)=>{let f,g=!1,m=null,v=null;n&&(f=a&&c.route.id?a[c.route.id]:void 0,m=c.route.errorElement||xb,s&&(l<0&&p===0?(d0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,v=null):l===p&&(g=!0,v=c.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,p+1)),x=()=>{let w;return f?w=m:g?w=v:c.route.Component?w=S.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=h,S.createElement(Cb,{match:c,routeContext:{outlet:h,matches:b,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?S.createElement(wb,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):x()},null)}function Ql(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sb(e){let t=S.useContext(Wr);return ge(t,Ql(e)),t}function Eb(e){let t=S.useContext(Pa);return ge(t,Ql(e)),t}function Pb(e){let t=S.useContext(Nt);return ge(t,Ql(e)),t}function Yl(e){let t=Pb(e),n=t.matches[t.matches.length-1];return ge(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Rb(){return Yl("useRouteId")}function kb(){var r;let e=S.useContext(Gl),t=Eb("useRouteError"),n=Yl("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Mb(){let{router:e}=Sb("useNavigate"),t=Yl("useNavigate"),n=S.useRef(!1);return l0(()=>{n.current=!0}),S.useCallback(async(o,i={})=>{ft(n.current,s0),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var sc={};function d0(e,t,n){!t&&!sc[e]&&(sc[e]=!0,ft(!1,n))}S.memo(Ob);function Ob({routes:e,future:t,state:n,unstable_onError:r}){return c0(e,void 0,n,r,t)}function rl(e){ge(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Tb({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){ge(!Jo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=S.useMemo(()=>({basename:a,navigator:o,static:i,future:{}}),[a,o,i]);typeof n=="string"&&(n=qr(n));let{pathname:l="/",search:u="",hash:h="",state:c=null,key:p="default"}=n,f=S.useMemo(()=>{let g=Gt(l,a);return g==null?null:{location:{pathname:g,search:u,hash:h,state:c,key:p},navigationType:r}},[a,l,u,h,c,p,r]);return ft(f!=null,`<Router basename="${a}"> is not able to match the URL "${l}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`),f==null?null:S.createElement(It.Provider,{value:s},S.createElement(Zo.Provider,{children:t,value:f}))}function Db({children:e,location:t}){return bb(ol(e),t)}function ol(e,t=[]){let n=[];return S.Children.forEach(e,(r,o)=>{if(!S.isValidElement(r))return;let i=[...t,o];if(r.type===S.Fragment){n.push.apply(n,ol(r.props.children,i));return}ge(r.type===rl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ge(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ol(r.props.children,i)),n.push(a)}),n}var ji="get",Ai="application/x-www-form-urlencoded";function Ra(e){return e!=null&&typeof e.tagName=="string"}function _b(e){return Ra(e)&&e.tagName.toLowerCase()==="button"}function Fb(e){return Ra(e)&&e.tagName.toLowerCase()==="form"}function Lb(e){return Ra(e)&&e.tagName.toLowerCase()==="input"}function Ib(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Nb(e,t){return e.button===0&&(!t||t==="_self")&&!Ib(e)}function il(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function jb(e,t){let n=il(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}var pi=null;function Ab(){if(pi===null)try{new FormData(document.createElement("form"),0),pi=!1}catch{pi=!0}return pi}var Kb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function es(e){return e!=null&&!Kb.has(e)?(ft(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ai}"`),null):e}function Bb(e,t){let n,r,o,i,a;if(Fb(e)){let s=e.getAttribute("action");r=s?Gt(s,t):null,n=e.getAttribute("method")||ji,o=es(e.getAttribute("enctype"))||Ai,i=new FormData(e)}else if(_b(e)||Lb(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?Gt(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||ji,o=es(e.getAttribute("formenctype"))||es(s.getAttribute("enctype"))||Ai,i=new FormData(s,e),!Ab()){let{name:u,type:h,value:c}=e;if(h==="image"){let p=u?`${u}.`:"";i.append(`${p}x`,"0"),i.append(`${p}y`,"0")}else u&&i.append(u,c)}}else{if(Ra(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ji,r=null,o=Ai,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Xl(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Hb(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Gt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Vb(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function zb(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ub(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await Vb(i,n);return a.links?a.links():[]}return[]}));return Qb(r.flat(1).filter(zb).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function lc(e,t,n,r,o,i){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var h;return n[u].pathname!==l.pathname||((h=n[u].route.path)==null?void 0:h.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>a(l,u)||s(l,u)):i==="data"?t.filter((l,u)=>{var c;let h=r.routes[l.route.id];if(!h||!h.hasLoader)return!1;if(a(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function qb(e,t,{includeHydrateFallback:n}={}){return Wb(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Wb(e){return[...new Set(e)]}function Gb(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Qb(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(Gb(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function f0(){let e=S.useContext(Wr);return Xl(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Yb(){let e=S.useContext(Pa);return Xl(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Zl=S.createContext(void 0);Zl.displayName="FrameworkContext";function h0(){let e=S.useContext(Zl);return Xl(e,"You must render this element inside a <HydratedRouter> element"),e}function Xb(e,t){let n=S.useContext(Zl),[r,o]=S.useState(!1),[i,a]=S.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:h,onTouchStart:c}=t,p=S.useRef(null);S.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=b=>{b.forEach(x=>{a(x.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return p.current&&v.observe(p.current),()=>{v.disconnect()}}},[e]),S.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let f=()=>{o(!0)},g=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,p,{}]:[i,p,{onFocus:ro(s,f),onBlur:ro(l,g),onMouseEnter:ro(u,f),onMouseLeave:ro(h,g),onTouchStart:ro(c,f)}]:[!1,p,{}]}function ro(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Zb({page:e,...t}){let{router:n}=f0(),r=S.useMemo(()=>e0(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(e2,{page:e,matches:r,...t}):null}function Jb(e){let{manifest:t,routeModules:n}=h0(),[r,o]=S.useState([]);return S.useEffect(()=>{let i=!1;return Ub(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function e2({page:e,matches:t,...n}){let r=Sn(),{manifest:o,routeModules:i}=h0(),{basename:a}=f0(),{loaderData:s,matches:l}=Yb(),u=S.useMemo(()=>lc(e,t,l,o,r,"data"),[e,t,l,o,r]),h=S.useMemo(()=>lc(e,t,l,o,r,"assets"),[e,t,l,o,r]),c=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,m=!1;if(t.forEach(b=>{var w;let x=o.routes[b.route.id];!x||!x.hasLoader||(!u.some($=>$.route.id===b.route.id)&&b.route.id in s&&((w=i[b.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?m=!0:g.add(b.route.id))}),g.size===0)return[];let v=Hb(e,a,"data");return m&&g.size>0&&v.searchParams.set("_routes",t.filter(b=>g.has(b.route.id)).map(b=>b.route.id).join(",")),[v.pathname+v.search]},[a,s,r,o,u,t,e,i]),p=S.useMemo(()=>qb(h,o),[h,o]),f=Jb(h);return S.createElement(S.Fragment,null,c.map(g=>S.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>S.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),f.map(({key:g,link:m})=>S.createElement("link",{key:g,nonce:n.nonce,...m})))}function t2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var p0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{p0&&(window.__reactRouterVersion="7.9.6")}catch{}function n2({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=Bv({window:n,v5Compat:!0}));let o=r.current,[i,a]=S.useState({action:o.action,location:o.location}),s=S.useCallback(l=>{S.startTransition(()=>a(l))},[a]);return S.useLayoutEffect(()=>o.listen(s),[o,s]),S.createElement(Tb,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var g0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ka=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:h,viewTransition:c,...p},f){let{basename:g}=S.useContext(It),m=typeof u=="string"&&g0.test(u),v,b=!1;if(typeof u=="string"&&m&&(v=u,p0))try{let _=new URL(window.location.href),D=u.startsWith("//")?new URL(_.protocol+u):new URL(u),P=Gt(D.pathname,g);D.origin===_.origin&&P!=null?u=P+D.search+D.hash:b=!0}catch{ft(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=gb(u,{relative:o}),[w,$,k]=Xb(r,p),E=i2(u,{replace:a,state:s,target:l,preventScrollReset:h,relative:o,viewTransition:c});function R(_){t&&t(_),_.defaultPrevented||E(_)}let M=S.createElement("a",{...p,...k,href:v||x,onClick:b||i?t:R,ref:t2(f,$),target:l,"data-discover":!m&&n==="render"?"true":void 0});return w&&!m?S.createElement(S.Fragment,null,M,S.createElement(Zb,{page:x})):M});ka.displayName="Link";var m0=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...u},h){let c=ei(a,{relative:u.relative}),p=Sn(),f=S.useContext(Pa),{navigator:g,basename:m}=S.useContext(It),v=f!=null&&d2(c)&&s===!0,b=g.encodeLocation?g.encodeLocation(c).pathname:c.pathname,x=p.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(x=x.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=Gt(w,m)||w);const $=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let k=x===b||!o&&x.startsWith(b)&&x.charAt($)==="/",E=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),R={isActive:k,isPending:E,isTransitioning:v},M=k?t:void 0,_;typeof r=="function"?_=r(R):_=[r,k?"active":null,E?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D=typeof i=="function"?i(R):i;return S.createElement(ka,{...u,"aria-current":M,className:_,ref:h,style:D,to:a,viewTransition:s},typeof l=="function"?l(R):l)});m0.displayName="NavLink";var r2=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=ji,action:s,onSubmit:l,relative:u,preventScrollReset:h,viewTransition:c,...p},f)=>{let g=u2(),m=c2(s,{relative:u}),v=a.toLowerCase()==="get"?"get":"post",b=typeof s=="string"&&g0.test(s),x=w=>{if(l&&l(w),w.defaultPrevented)return;w.preventDefault();let $=w.nativeEvent.submitter,k=($==null?void 0:$.getAttribute("formmethod"))||a;g($||w.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:o,state:i,relative:u,preventScrollReset:h,viewTransition:c})};return S.createElement("form",{ref:f,method:v,action:m,onSubmit:r?l:x,...p,"data-discover":!b&&e==="render"?"true":void 0})});r2.displayName="Form";function o2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v0(e){let t=S.useContext(Wr);return ge(t,o2(e)),t}function i2(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a}={}){let s=u0(),l=Sn(),u=ei(e,{relative:i});return S.useCallback(h=>{if(Nb(h,t)){h.preventDefault();let c=n!==void 0?n:ko(l)===ko(u);s(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:a})}},[l,s,u,n,r,t,e,o,i,a])}function a2(e){ft(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(il(e)),n=S.useRef(!1),r=Sn(),o=S.useMemo(()=>jb(r.search,n.current?null:t.current),[r.search]),i=u0(),a=S.useCallback((s,l)=>{const u=il(typeof s=="function"?s(new URLSearchParams(o)):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}var s2=0,l2=()=>`__${String(++s2)}__`;function u2(){let{router:e}=v0("useSubmit"),{basename:t}=S.useContext(It),n=Rb();return S.useCallback(async(r,o={})=>{let{action:i,method:a,encType:s,formData:l,body:u}=Bb(r,t);if(o.navigate===!1){let h=o.fetcherKey||l2();await e.fetch(h,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function c2(e,{relative:t}={}){let{basename:n}=S.useContext(It),r=S.useContext(Nt);ge(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ei(e||".",{relative:t})},a=Sn();if(e==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(h=>h==="")){s.delete("index"),l.filter(c=>c).forEach(c=>s.append("index",c));let h=s.toString();i.search=h?`?${h}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:qt([n,i.pathname])),ko(i)}function d2(e,{relative:t}={}){let n=S.useContext(a0);ge(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=v0("useViewTransitionState"),o=ei(e,{relative:t});if(!n.isTransitioning)return!1;let i=Gt(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Gt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Wi(o.pathname,a)!=null||Wi(o.pathname,i)!=null}var Mo=function(e){var t=e.className;return y.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function fe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var f2=["color"],h2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,f2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),p2=["color"],g2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,p2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),m2=["color"],v2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,m2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),b2=["color"],b0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,b2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),y2=["color"],x2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,y2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),w2=["color"],jr=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,w2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),C2=["color"],Jl=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,C2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),$2=["color"],y0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,$2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),S2=["color"],E2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,S2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2.8 1L2.74967 0.99997C2.52122 0.999752 2.32429 0.999564 2.14983 1.04145C1.60136 1.17312 1.17312 1.60136 1.04145 2.14983C0.999564 2.32429 0.999752 2.52122 0.99997 2.74967L1 2.8V5.2L0.99997 5.25033C0.999752 5.47878 0.999564 5.67572 1.04145 5.85017C1.17312 6.39864 1.60136 6.82688 2.14983 6.95856C2.32429 7.00044 2.52122 7.00025 2.74967 7.00003L2.8 7H5.2L5.25033 7.00003C5.47878 7.00025 5.67572 7.00044 5.85017 6.95856C6.39864 6.82688 6.82688 6.39864 6.95856 5.85017C7.00044 5.67572 7.00025 5.47878 7.00003 5.25033L7 5.2V2.8L7.00003 2.74967C7.00025 2.52122 7.00044 2.32429 6.95856 2.14983C6.82688 1.60136 6.39864 1.17312 5.85017 1.04145C5.67572 0.999564 5.47878 0.999752 5.25033 0.99997L5.2 1H2.8ZM2.38328 2.01382C2.42632 2.00348 2.49222 2 2.8 2H5.2C5.50779 2 5.57369 2.00348 5.61672 2.01382C5.79955 2.05771 5.94229 2.20045 5.98619 2.38328C5.99652 2.42632 6 2.49222 6 2.8V5.2C6 5.50779 5.99652 5.57369 5.98619 5.61672C5.94229 5.79955 5.79955 5.94229 5.61672 5.98619C5.57369 5.99652 5.50779 6 5.2 6H2.8C2.49222 6 2.42632 5.99652 2.38328 5.98619C2.20045 5.94229 2.05771 5.79955 2.01382 5.61672C2.00348 5.57369 2 5.50779 2 5.2V2.8C2 2.49222 2.00348 2.42632 2.01382 2.38328C2.05771 2.20045 2.20045 2.05771 2.38328 2.01382ZM9.8 1L9.74967 0.99997C9.52122 0.999752 9.32429 0.999564 9.14983 1.04145C8.60136 1.17312 8.17312 1.60136 8.04145 2.14983C7.99956 2.32429 7.99975 2.52122 7.99997 2.74967L8 2.8V5.2L7.99997 5.25033C7.99975 5.47878 7.99956 5.67572 8.04145 5.85017C8.17312 6.39864 8.60136 6.82688 9.14983 6.95856C9.32429 7.00044 9.52122 7.00025 9.74967 7.00003L9.8 7H12.2L12.2503 7.00003C12.4788 7.00025 12.6757 7.00044 12.8502 6.95856C13.3986 6.82688 13.8269 6.39864 13.9586 5.85017C14.0004 5.67572 14.0003 5.47878 14 5.25033L14 5.2V2.8L14 2.74967C14.0003 2.52122 14.0004 2.32429 13.9586 2.14983C13.8269 1.60136 13.3986 1.17312 12.8502 1.04145C12.6757 0.999564 12.4788 0.999752 12.2503 0.99997L12.2 1H9.8ZM9.38328 2.01382C9.42632 2.00348 9.49222 2 9.8 2H12.2C12.5078 2 12.5737 2.00348 12.6167 2.01382C12.7995 2.05771 12.9423 2.20045 12.9862 2.38328C12.9965 2.42632 13 2.49222 13 2.8V5.2C13 5.50779 12.9965 5.57369 12.9862 5.61672C12.9423 5.79955 12.7995 5.94229 12.6167 5.98619C12.5737 5.99652 12.5078 6 12.2 6H9.8C9.49222 6 9.42632 5.99652 9.38328 5.98619C9.20045 5.94229 9.05771 5.79955 9.01382 5.61672C9.00348 5.57369 9 5.50779 9 5.2V2.8C9 2.49222 9.00348 2.42632 9.01382 2.38328C9.05771 2.20045 9.20045 2.05771 9.38328 2.01382ZM2.74967 7.99997L2.8 8H5.2L5.25033 7.99997C5.47878 7.99975 5.67572 7.99956 5.85017 8.04145C6.39864 8.17312 6.82688 8.60136 6.95856 9.14983C7.00044 9.32429 7.00025 9.52122 7.00003 9.74967L7 9.8V12.2L7.00003 12.2503C7.00025 12.4788 7.00044 12.6757 6.95856 12.8502C6.82688 13.3986 6.39864 13.8269 5.85017 13.9586C5.67572 14.0004 5.47878 14.0003 5.25033 14L5.2 14H2.8L2.74967 14C2.52122 14.0003 2.32429 14.0004 2.14983 13.9586C1.60136 13.8269 1.17312 13.3986 1.04145 12.8502C0.999564 12.6757 0.999752 12.4788 0.99997 12.2503L1 12.2V9.8L0.99997 9.74967C0.999752 9.52122 0.999564 9.32429 1.04145 9.14983C1.17312 8.60136 1.60136 8.17312 2.14983 8.04145C2.32429 7.99956 2.52122 7.99975 2.74967 7.99997ZM2.8 9C2.49222 9 2.42632 9.00348 2.38328 9.01382C2.20045 9.05771 2.05771 9.20045 2.01382 9.38328C2.00348 9.42632 2 9.49222 2 9.8V12.2C2 12.5078 2.00348 12.5737 2.01382 12.6167C2.05771 12.7995 2.20045 12.9423 2.38328 12.9862C2.42632 12.9965 2.49222 13 2.8 13H5.2C5.50779 13 5.57369 12.9965 5.61672 12.9862C5.79955 12.9423 5.94229 12.7995 5.98619 12.6167C5.99652 12.5737 6 12.5078 6 12.2V9.8C6 9.49222 5.99652 9.42632 5.98619 9.38328C5.94229 9.20045 5.79955 9.05771 5.61672 9.01382C5.57369 9.00348 5.50779 9 5.2 9H2.8ZM9.8 8L9.74967 7.99997C9.52122 7.99975 9.32429 7.99956 9.14983 8.04145C8.60136 8.17312 8.17312 8.60136 8.04145 9.14983C7.99956 9.32429 7.99975 9.52122 7.99997 9.74967L8 9.8V12.2L7.99997 12.2503C7.99975 12.4788 7.99956 12.6757 8.04145 12.8502C8.17312 13.3986 8.60136 13.8269 9.14983 13.9586C9.32429 14.0004 9.52122 14.0003 9.74967 14L9.8 14H12.2L12.2503 14C12.4788 14.0003 12.6757 14.0004 12.8502 13.9586C13.3986 13.8269 13.8269 13.3986 13.9586 12.8502C14.0004 12.6757 14.0003 12.4788 14 12.2503L14 12.2V9.8L14 9.74967C14.0003 9.52122 14.0004 9.32429 13.9586 9.14983C13.8269 8.60136 13.3986 8.17312 12.8502 8.04145C12.6757 7.99956 12.4788 7.99975 12.2503 7.99997L12.2 8H9.8ZM9.38328 9.01382C9.42632 9.00348 9.49222 9 9.8 9H12.2C12.5078 9 12.5737 9.00348 12.6167 9.01382C12.7995 9.05771 12.9423 9.20045 12.9862 9.38328C12.9965 9.42632 13 9.49222 13 9.8V12.2C13 12.5078 12.9965 12.5737 12.9862 12.6167C12.9423 12.7995 12.7995 12.9423 12.6167 12.9862C12.5737 12.9965 12.5078 13 12.2 13H9.8C9.49222 13 9.42632 12.9965 9.38328 12.9862C9.20045 12.9423 9.05771 12.7995 9.01382 12.6167C9.00348 12.5737 9 12.5078 9 12.2V9.8C9 9.49222 9.00348 9.42632 9.01382 9.38328C9.05771 9.20045 9.20045 9.05771 9.38328 9.01382Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),P2=["color"],R2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,P2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M1 3.25C1 3.11193 1.11193 3 1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25ZM1.25 2C0.559643 2 0 2.55964 0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25ZM9.01091 12H5.98909L5.79222 13.05H9.20778L9.01091 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),k2=["color"],M2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,k2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),O2=["color"],al=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,O2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),T2=["color"],D2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,T2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_2=["color"],F2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,_2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),L2=["color"],I2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,L2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),N2=["color"],j2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,N2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M12.3536 13.3536C12.1583 13.5488 11.8417 13.5488 11.6465 13.3536L6.39645 8.10355C6.36478 8.07188 6.33824 8.03702 6.31685 8H5.00002C4.78719 8 4.59769 7.86528 4.52777 7.66426L2.12777 0.764277C2.05268 0.548387 2.13355 0.309061 2.3242 0.182972C2.51486 0.0568819 2.76674 0.0761337 2.93602 0.229734L8.336 5.12972C8.44044 5.22449 8.50001 5.35897 8.50001 5.5V5.81684C8.53702 5.83824 8.57189 5.86478 8.60356 5.89645L13.8536 11.1464C14.0488 11.3417 14.0488 11.6583 13.8536 11.8536L12.3536 13.3536ZM8.25 6.95711L7.45711 7.75L12 12.2929L12.7929 11.5L8.25 6.95711ZM3.71669 2.28845L5.35549 7H6.2929L7.50001 5.79289V5.72146L3.71669 2.28845Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),A2=["color"],K2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,A2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),B2=["color"],H2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,B2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),V2=["color"],z2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,V2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),U2=["color"],q2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,U2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),W2=["color"],x0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,W2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),G2=["color"],w0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,G2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Q2=["color"],uc=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,Q2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Y2=["color"],C0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,Y2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),X2=["color"],Z2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,X2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 9.1488 1.47969 10.657 2.4767 11.8162L1.64647 12.6464C1.45121 12.8417 1.45121 13.1583 1.64647 13.3535C1.84173 13.5488 2.15832 13.5488 2.35358 13.3535L3.18383 12.5233C4.34302 13.5202 5.8511 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 5.85107 13.5202 4.34298 12.5233 3.1838L13.3536 2.35355C13.5488 2.15829 13.5488 1.8417 13.3536 1.64644C13.1583 1.45118 12.8417 1.45118 12.6465 1.64644L11.8162 2.47667C10.657 1.47966 9.14883 0.877045 7.49991 0.877045ZM11.1423 3.15065C10.1568 2.32449 8.88644 1.82704 7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 8.88641 2.32452 10.1568 3.15069 11.1422L11.1423 3.15065ZM3.85781 11.8493C4.84322 12.6753 6.11348 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 6.11345 12.6754 4.84319 11.8493 3.85778L3.85781 11.8493Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),J2=["color"],eu=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,J2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),e5=["color"],t5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,e5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),n5=["color"],r5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,n5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M0.900024 7.50002C0.900024 3.85495 3.85495 0.900024 7.50002 0.900024C11.1451 0.900024 14.1 3.85495 14.1 7.50002C14.1 11.1451 11.1451 14.1 7.50002 14.1C3.85495 14.1 0.900024 11.1451 0.900024 7.50002ZM7.50002 1.80002C4.35201 1.80002 1.80002 4.35201 1.80002 7.50002C1.80002 10.648 4.35201 13.2 7.50002 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.35201 10.648 1.80002 7.50002 1.80002ZM3.07504 7.50002C3.07504 5.05617 5.05618 3.07502 7.50004 3.07502C9.94388 3.07502 11.925 5.05617 11.925 7.50002C11.925 9.94386 9.94388 11.925 7.50004 11.925C5.05618 11.925 3.07504 9.94386 3.07504 7.50002ZM7.50004 3.92502C5.52562 3.92502 3.92504 5.52561 3.92504 7.50002C3.92504 9.47442 5.52563 11.075 7.50004 11.075C9.47444 11.075 11.075 9.47442 11.075 7.50002C11.075 5.52561 9.47444 3.92502 7.50004 3.92502ZM7.50004 5.25002C6.2574 5.25002 5.25004 6.25739 5.25004 7.50002C5.25004 8.74266 6.2574 9.75002 7.50004 9.75002C8.74267 9.75002 9.75004 8.74266 9.75004 7.50002C9.75004 6.25738 8.74267 5.25002 7.50004 5.25002ZM6.05004 7.50002C6.05004 6.69921 6.69923 6.05002 7.50004 6.05002C8.30084 6.05002 8.95004 6.69921 8.95004 7.50002C8.95004 8.30083 8.30084 8.95002 7.50004 8.95002C6.69923 8.95002 6.05004 8.30083 6.05004 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),o5=["color"],Gr=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,o5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);const $0=d.createContext({}),cc=d.createContext(null),i5=d.createContext(null),de=typeof document<"u"?d.useLayoutEffect:()=>{};var ts;const a5=(ts=d.useInsertionEffect)!==null&&ts!==void 0?ts:de;function Ae(e){const t=d.useRef(null);return a5(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function s5(e){let[t,n]=d.useState(e),r=d.useRef(null),o=Ae(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});de(()=>{r.current&&o()});let i=Ae(a=>{r.current=a(t),o()});return[t,i]}const S0={prefix:String(Math.round(Math.random()*1e10)),current:0},E0=d.createContext(S0),l5=d.createContext(!1);let ns=new WeakMap;function u5(e=!1){let t=d.useContext(E0),n=d.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=ns.get(i);a==null?ns.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,ns.delete(i))}n.current=++t.current}return n.current}function c5(e){let t=d.useContext(E0),n=u5(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function d5(e){let t=d.useId(),[n]=d.useState(En()),r=n?"react-aria":`react-aria${S0.prefix}`;return e||`${r}-${t}`}const f5=typeof d.useId=="function"?d5:c5;function h5(){return!1}function p5(){return!0}function g5(e){return()=>{}}function En(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(g5,h5,p5):d.useContext(l5)}let m5=!!(typeof window<"u"&&window.document&&window.document.createElement),br=new Map,po;typeof FinalizationRegistry<"u"&&(po=new FinalizationRegistry(e=>{br.delete(e)}));function it(e){let[t,n]=d.useState(e),r=d.useRef(null),o=f5(t),i=d.useRef(null);if(po&&po.register(i,o),m5){const a=br.get(o);a&&!a.includes(r)?a.push(r):br.set(o,[r])}return de(()=>{let a=o;return()=>{po&&po.unregister(i),br.delete(a)}},[o]),d.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),o}function v5(e,t){if(e===t)return e;let n=br.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=br.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Ki(e=[]){let t=it(),[n,r]=s5(t),o=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return de(o,[t,o,...e]),n}function Qr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const se=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},dt=e=>e&&"window"in e&&e.window===e?e:se(e).defaultView||window;function b5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function y5(e){return b5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let x5=!1;function Ma(){return x5}function Ue(e,t){if(!Ma())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:y5(n)?n=n.host:n=n.parentNode}return!1}const Me=(e=document)=>{var t;if(!Ma())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function xe(e){return Ma()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class w5{get currentNode(){return this._currentNode}set currentNode(t){if(!Ue(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=r,s=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=o,this._currentSetFor.add(s),r=o=a.host}else r=r.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Ue(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(a);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const i=n.shadowRoot;if(i){const a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function C5(e,t,n,r){return Ma()?new w5(e,t,n,r):e.createTreeWalker(t,n,r)}function P0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=P0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ar(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=P0(e))&&(r&&(r+=" "),r+=t);return r}function oe(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Qr(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Ar(i,a):o==="id"&&i&&a?t.id=v5(i,a):t[o]=a!==void 0?a:i}}return t}function R0(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=dc(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():dc(e[i],null)})}}}function dc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const $5=new Set(["id"]),S5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),E5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),P5=new Set(["dir","lang","hidden","inert","translate"]),fc=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),R5=/^(data-.*)$/;function Se(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:a}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&($5.has(l)||n&&S5.has(l)||r&&E5.has(l)||o&&P5.has(l)||i&&fc.has(l)||l.endsWith("Capture")&&fc.has(l.slice(0,-7))||a!=null&&a.has(l)||R5.test(l))&&(s[l]=e[l]);return s}function $t(e){if(k5())e.focus({preventScroll:!0});else{let t=M5(e);e.focus(),O5(t)}}let gi=null;function k5(){if(gi==null){gi=!1;try{document.createElement("div").focus({get preventScroll(){return gi=!0,!0}})}catch{}}return gi}function M5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function O5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Oa(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function tu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Yt(e){let t=null;return()=>(t==null&&(t=e()),t)}const Wn=Yt(function(){return tu(/^Mac/i)}),T5=Yt(function(){return tu(/^iPhone/i)}),k0=Yt(function(){return tu(/^iPad/i)||Wn()&&navigator.maxTouchPoints>1}),Ta=Yt(function(){return T5()||k0()}),D5=Yt(function(){return Wn()||Ta()}),M0=Yt(function(){return Oa(/AppleWebKit/i)&&!nu()}),nu=Yt(function(){return Oa(/Chrome/i)}),ru=Yt(function(){return Oa(/Android/i)}),_5=Yt(function(){return Oa(/Firefox/i)}),F5=d.createContext({isNative:!0,open:N5,useHref:e=>e});function Da(){return d.useContext(F5)}function L5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Gn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;_5()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Wn()?i=!0:a=!0);let u=M0()&&Wn()&&!k0()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Gn.isOpening=n,$t(e),e.dispatchEvent(u),Gn.isOpening=!1}Gn.isOpening=!1;function I5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function N5(e,t){I5(e,n=>Gn(n,t))}function j5(e){let t=Da();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function A5(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&L5(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let tn=new Map,sl=new Set;function hc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=tn.get(r.target);o||(o=new Set,tn.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=tn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),tn.delete(r.target)),tn.size===0)){for(let i of sl)i();sl.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?hc():document.addEventListener("DOMContentLoaded",hc));function K5(){for(const[e]of tn)"isConnected"in e&&!e.isConnected&&tn.delete(e)}function O0(e){requestAnimationFrame(()=>{K5(),tn.size===0?e():sl.add(e)})}function _a(){let e=d.useRef(new Map),t=d.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),n=d.useCallback((o,i,a,s)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,u,s),e.current.delete(a)},[]),r=d.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return d.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function T0(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=it(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Yr(e){const t=d.useRef(null),n=d.useRef(void 0),r=d.useCallback(o=>{if(typeof e=="function"){const i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return d.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}function pc(e,t){const n=d.useRef(!0),r=d.useRef(null);de(()=>(n.current=!0,()=>{n.current=!1}),[]),de(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function B5(){return typeof window.ResizeObserver<"u"}function Gi(e){const{ref:t,box:n,onResize:r}=e;d.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(B5()){const i=new window.ResizeObserver(a=>{a.length&&r()});return i.observe(o,{box:n}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function ou(e,t){de(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Qn(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function D0(e,t){let n=e;for(Qn(n,t)&&(n=n.parentElement);n&&!Qn(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function H5(e,t){const n=[];for(;e&&e!==document.documentElement;)Qn(e,t)&&n.push(e),e=e.parentElement;return n}function dr(e){return Wn()?e.metaKey:e.ctrlKey}const V5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yo(e){return e instanceof HTMLInputElement&&!V5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let We=typeof document<"u"&&window.visualViewport;function z5(){let e=En(),[t,n]=d.useState(()=>e?{width:0,height:0}:gc());return d.useEffect(()=>{let r=()=>{We&&We.scale>1||n(a=>{let s=gc();return s.width===a.width&&s.height===a.height?a:s})},o,i=a=>{We&&We.scale>1||yo(a.target)&&(o=requestAnimationFrame(()=>{(!document.activeElement||!yo(document.activeElement))&&n(s=>{let l={width:window.innerWidth,height:window.innerHeight};return l.width===s.width&&l.height===s.height?s:l})}))};return window.addEventListener("blur",i,!0),We?We.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(o),window.removeEventListener("blur",i,!0),We?We.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function gc(){return{width:We?We.width*We.scale:window.innerWidth,height:We?We.height*We.scale:window.innerHeight}}let U5=0;const rs=new Map;function q5(e){let[t,n]=d.useState();return de(()=>{if(!e)return;let r=rs.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${U5++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},rs.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),rs.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function mi(e,t,n,r){let o=Ae(n),i=n==null;d.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function _0(e,t){let n=mc(e,t,"left"),r=mc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:h,scrollPaddingRight:c,scrollPaddingBottom:p,scrollPaddingLeft:f}=getComputedStyle(e),{scrollMarginTop:g,scrollMarginRight:m,scrollMarginBottom:v,scrollMarginLeft:b}=getComputedStyle(t),x=a+parseInt(u,10),w=s+parseInt(l,10),$=x+e.clientWidth,k=w+e.clientHeight,E=parseInt(h,10)||0,R=parseInt(p,10)||0,M=parseInt(c,10)||0,_=parseInt(f,10)||0,D=parseInt(g,10)||0,P=parseInt(v,10)||0,I=parseInt(m,10)||0,N=parseInt(b,10)||0,F=n-N,j=n+o+I,O=r-D,T=r+i+P,A=a+parseInt(u,10)+_,K=$-M,L=s+parseInt(l,10)+E,H=k-R;(F>A||j<K)&&(F<=a+_?a=F-parseInt(u,10)-_:j>$-M&&(a+=j-$+M)),(O>L||T<H)&&(O<=w+E?s=O-parseInt(l,10)-E:T>k-R&&(s+=T-k+R)),e.scrollTo({left:a,top:s})}function mc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function vc(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(a).overflow==="hidden")&&!nu()){var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:c}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(u-c)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let l=H5(e);for(let u of l)_0(u,e)}}}function F0(e){return e.pointerType===""&&e.isTrusted?!0:ru()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function W5(e){return!ru()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const G5="react-aria-clear-focus",Q5="react-aria-focus";function Fa(e,t=!0){let[n,r]=d.useState(!0),o=n&&t;return de(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),L0(e,o,d.useCallback(()=>r(!1),[])),o}function Qi(e,t){let[n,r]=d.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let o=n==="exiting";return L0(e,o,d.useCallback(()=>{r(i=>i==="exiting"?"closed":i)},[])),o}function L0(e,t,n){de(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let o=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{o||Ur.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[e,t,n])}const Y5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function X5(e){const t=dt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Z5(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function iu(e,t){return Y5?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&X5(e)&&Z5(e,t)&&(!e.parentElement||iu(e.parentElement,e))}const au=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],J5=au.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";au.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ey=au.join(':not([hidden]):not([tabindex="-1"]),');function I0(e){return e.matches(J5)&&iu(e)&&!N0(e)}function ty(e){return e.matches(ey)&&iu(e)&&!N0(e)}function N0(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function ti(e,t,n){let[r,o]=d.useState(e||t),i=d.useRef(e!==void 0),a=e!==void 0;d.useEffect(()=>{i.current,i.current=a},[a]);let s=a?e:r,l=d.useCallback((u,...h)=>{let c=(p,...f)=>{n&&(Object.is(s,p)||n(p,...f)),a||(s=p)};typeof u=="function"?o((f,...g)=>{let m=u(a?s:f,...g);return c(m,...h),a?f:m}):(a||o(u),c(u,...h))},[a,s,n]);return[s,l]}function Oo(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Yi=Symbol("default");function Pn({values:e,children:t}){for(let[n,r]of e)t=d.createElement(n.Provider,{value:r},t);return t}function pt(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return d.useMemo(()=>{let l,u,h;return typeof t=="function"?l=t({...s,defaultClassName:o}):l=t,typeof n=="function"?u=n({...s,defaultStyle:a||{}}):u=n,typeof r=="function"?h=r({...s,defaultChildren:i}):r==null?h=i:h=r,{className:l??o,style:u||a?{...a,...u}:void 0,children:h??i,"data-rac":""}},[t,n,r,o,i,a,s])}function j0(e,t){let n=d.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Yi;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function gt(e,t,n){let r=j0(n,e.slot)||{},{ref:o,...i}=r,a=Yr(d.useMemo(()=>R0(t,o),[t,o])),s=oe(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=l=>{let u=typeof i.style=="function"?i.style(l):i.style,h={...l.defaultStyle,...u},c=typeof e.style=="function"?e.style({...l,defaultStyle:h}):e.style;return{...h,...c}}:s.style={...i.style,...e.style}),[s,a]}function A0(e=!0){let[t,n]=d.useState(e),r=d.useRef(!1),o=d.useCallback(i=>{r.current=!0,n(!!i)},[]);return de(()=>{r.current||n(!1)},[]),[o,t]}const K0=7e3;let Rt=null;function bc(e,t="assertive",n=K0){Rt?Rt.announce(e,t,n):(Rt=new ny,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Rt.announce(e,t,n):setTimeout(()=>{Rt!=null&&Rt.isAttached()&&(Rt==null||Rt.announce(e,t,n))},100))}class ny{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=K0){var o,i;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(i=this.politeLog)===null||i===void 0||i.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Ft={top:"top",bottom:"top",left:"left",right:"left"},Xi={top:"bottom",bottom:"top",left:"right",right:"left"},ry={top:"left",left:"top"},ll={top:"height",left:"width"},B0={width:"totalWidth",height:"totalHeight"},vi={};let Pe=typeof document<"u"?window.visualViewport:null;function yc(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={};var l;let u=((l=Pe==null?void 0:Pe.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;r=g.clientWidth,o=g.clientHeight;var h;t=(h=Pe==null?void 0:Pe.width)!==null&&h!==void 0?h:r;var c;n=(c=Pe==null?void 0:Pe.height)!==null&&c!==void 0?c:o,s.top=g.scrollTop||e.scrollTop,s.left=g.scrollLeft||e.scrollLeft,Pe&&(i=Pe.offsetTop,a=Pe.offsetLeft)}else({width:t,height:n,top:i,left:a}=yr(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;if(M0()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){s.top=0,s.left=0;var p;i=(p=Pe==null?void 0:Pe.pageTop)!==null&&p!==void 0?p:0;var f;a=(f=Pe==null?void 0:Pe.pageLeft)!==null&&f!==void 0?f:0}return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function oy(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function xc(e,t,n,r,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,u=r[ll[e]],h=r.scroll[Ft[e]]+i,c=u+r.scroll[Ft[e]]-i,p=t-l+a[e]-r[Ft[e]],f=t-l+n+a[e]-r[Ft[e]];return p<h?h-p:f>c?Math.max(c-f,h-p):0}function iy(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function wc(e){if(vi[e])return vi[e];let[t,n]=e.split(" "),r=Ft[t]||"right",o=ry[r];Ft[n]||(n="center");let i=ll[r],a=ll[o];return vi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},vi[e]}function os(e,t,n,r,o,i,a,s,l,u){let{placement:h,crossPlacement:c,axis:p,crossAxis:f,size:g,crossSize:m}=r,v={};var b;v[f]=(b=e[f])!==null&&b!==void 0?b:0;var x,w,$,k;c==="center"?v[f]+=(((x=e[m])!==null&&x!==void 0?x:0)-((w=n[m])!==null&&w!==void 0?w:0))/2:c!==f&&(v[f]+=(($=e[m])!==null&&$!==void 0?$:0)-((k=n[m])!==null&&k!==void 0?k:0)),v[f]+=i;const E=e[f]-n[m]+l+u,R=e[f]+e[m]-l-u;if(v[f]=Oo(v[f],E,R),h===p){const M=s?a[g]:t[B0[g]];v[Xi[p]]=Math.floor(M-e[p]+o)}else v[p]=Math.floor(e[p]+e[g]+o);return v}function ay(e,t,n,r,o,i,a,s){const l=r?n.height:t[B0.height];var u;let h=e.top!=null?n.top+e.top:n.top+(l-((u=e.bottom)!==null&&u!==void 0?u:0)-a);var c,p,f,g,m,v;let b=s!=="top"?Math.max(0,t.height+t.top+((c=t.scroll.top)!==null&&c!==void 0?c:0)-h-(((p=o.top)!==null&&p!==void 0?p:0)+((f=o.bottom)!==null&&f!==void 0?f:0)+i)):Math.max(0,h+a-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+i));return Math.min(t.height-i*2,b)}function Cc(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;var u,h;if(a===s)return Math.max(0,n[s]-e[s]-((u=e.scroll[s])!==null&&u!==void 0?u:0)+t[s]-((h=r[s])!==null&&h!==void 0?h:0)-r[Xi[s]]-o);var c;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-((c=r[s])!==null&&c!==void 0?c:0)-r[Xi[s]]-o)}function sy(e,t,n,r,o,i,a,s,l,u,h,c,p,f,g,m){let v=wc(e),{size:b,crossAxis:x,crossSize:w,placement:$,crossPlacement:k}=v,E=os(t,s,n,v,h,c,u,p,g,m),R=h,M=Cc(s,u,t,o,i+h,v);if(a&&r[b]>M){let pe=wc(`${Xi[$]} ${k}`),ee=os(t,s,n,pe,h,c,u,p,g,m);Cc(s,u,t,o,i+h,pe)>M&&(v=pe,E=ee,R=h)}let _="bottom";v.axis==="top"?v.placement==="top"?_="top":v.placement==="bottom"&&(_="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?_="bottom":v.crossPlacement==="bottom"&&(_="top"));let D=xc(x,E[x],n[w],s,l,i,u);E[x]+=D;let P=ay(E,s,u,p,o,i,n.height,_);f&&f<P&&(P=f),n.height=Math.min(n.height,P),E=os(t,s,n,v,R,c,u,p,g,m),D=xc(x,E[x],n[w],s,l,i,u),E[x]+=D;let I={},N=t[x]-E[x]-o[Ft[x]],F=N+.5*t[w];const j=g/2+m;var O,T,A,K;const L=Ft[x]==="left"?((O=o.left)!==null&&O!==void 0?O:0)+((T=o.right)!==null&&T!==void 0?T:0):((A=o.top)!==null&&A!==void 0?A:0)+((K=o.bottom)!==null&&K!==void 0?K:0),H=n[w]-L-g/2-m,z=t[x]+g/2-(E[x]+o[Ft[x]]),V=t[x]+t[w]-g/2-(E[x]+o[Ft[x]]),W=Oo(F,z,V);I[x]=Oo(W,j,H),{placement:$,crossPlacement:k}=v,g?N=I[x]:k==="right"?N+=t[w]:k==="center"&&(N+=t[w]/2);let q=$==="left"||$==="top"?n[b]:0,ne={x:$==="top"||$==="bottom"?N:q,y:$==="left"||$==="right"?N:q};return{position:E,maxHeight:P,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:$,triggerAnchorPoint:ne}}function ly(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:u,maxHeight:h,arrowSize:c=0,arrowBoundaryOffset:p=0}=e,f=r instanceof HTMLElement?uy(r):document.documentElement,g=f===document.documentElement;const m=window.getComputedStyle(f).position;let v=!!m&&m!=="static",b=g?yr(n,!1):$c(n,f,!1);if(!g){let{marginTop:I,marginLeft:N}=window.getComputedStyle(n);b.top+=parseInt(I,10)||0,b.left+=parseInt(N,10)||0}let x=yr(r,!0),w=iy(r);var $,k;x.width+=(($=w.left)!==null&&$!==void 0?$:0)+((k=w.right)!==null&&k!==void 0?k:0);var E,R;x.height+=((E=w.top)!==null&&E!==void 0?E:0)+((R=w.bottom)!==null&&R!==void 0?R:0);let M=oy(o),_=yc(s),D=yc(f),P=s.tagName==="BODY"?yr(f,!1):$c(f,s,!1);return f.tagName==="HTML"&&s.tagName==="BODY"&&(D.scroll.top=0,D.scroll.left=0),sy(t,b,x,M,w,i,a,_,D,P,l,u,v,h,c,p)}function su(e,t){let{top:n,left:r,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:n,left:r,width:o,height:i}}function yr(e,t){let{top:n,left:r,width:o,height:i}=su(e,t),{scrollTop:a,scrollLeft:s,clientTop:l,clientLeft:u}=document.documentElement;return{top:n+a-l,left:r+s-u,width:o,height:i}}function $c(e,t,n){let r=window.getComputedStyle(e),o;if(r.position==="fixed")o=su(e,n);else{o=yr(e,n);let i=yr(t,n),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function uy(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Sc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Sc(t);)t=t.parentElement;return t||document.documentElement}function Sc(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const H0=new WeakMap;function cy(e){let{triggerRef:t,isOpen:n,onClose:r}=e;d.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=r||H0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const dy=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),fy=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function hy(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return dy.has(n.script)}let t=e.split("-")[0];return fy.has(t)}const py=Symbol.for("react-aria.i18n.locale");function V0(){let e=typeof window<"u"&&window[py]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:hy(e)?"rtl":"ltr"}}let ul=V0(),go=new Set;function Ec(){ul=V0();for(let e of go)e(ul)}function gy(){let e=En(),[t,n]=d.useState(ul);return d.useEffect(()=>(go.size===0&&window.addEventListener("languagechange",Ec),go.add(n),()=>{go.delete(n),go.size===0&&window.removeEventListener("languagechange",Ec)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const my=d.createContext(null);function er(){let e=gy();return d.useContext(my)||e}const vy=Symbol.for("react-aria.i18n.locale"),by=Symbol.for("react-aria.i18n.strings");let sr;class La{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=yy(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[vy];if(sr===void 0){let o=window[by];if(!o)return null;sr={};for(let i in o)sr[i]=new La({[n]:o[i]},n)}let r=sr==null?void 0:sr[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function yy(e,t,n="en-US"){if(t[e])return t[e];let r=xy(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function xy(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Pc=new Map,Rc=new Map;class wy{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=Pc.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),Pc.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Rc.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Rc.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const kc=new WeakMap;function Cy(e){let t=kc.get(e);return t||(t=new La(e),kc.set(e,t)),t}function $y(e,t){return t&&La.getGlobalDictionaryForPackage(t)||Cy(e)}function z0(e,t){let{locale:n}=er(),r=$y(e,t);return d.useMemo(()=>new wy(n,r),[n,r])}function Sy(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ey(e,t,n){Sy(e,t),t.set(e,n)}let is=new Map,cl=!1;try{cl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Zi=!1;try{Zi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const U0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Py{format(t){let n="";if(!cl&&this.options.signDisplay!=null?n=ky(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Zi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=U0[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!cl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Zi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=Ry(t,n),this.options=n}}function Ry(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Zi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=U0[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(is.has(o))return is.get(o);let i=new Intl.NumberFormat(e,t);return is.set(o,i),i}function ky(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}function My(e={}){let{locale:t}=er();return d.useMemo(()=>new Py(t,e),[t,e])}let as=new Map;function Oy(e){let{locale:t}=er(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(as.has(n))return as.get(n);let r=new Intl.Collator(t,e);return as.set(n,r),r}let ye=typeof document<"u"?window.visualViewport:null;function q0(e){let{direction:t}=er(),{arrowSize:n,targetRef:r,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:s="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:c=0,crossOffset:p=0,shouldUpdatePosition:f=!0,isOpen:g=!0,onClose:m,maxHeight:v,arrowBoundaryOffset:b=0}=e,[x,w]=d.useState(null),$=[f,s,o.current,r.current,i==null?void 0:i.current,a.current,l,u,h,c,p,g,t,v,b,n],k=d.useRef(ye==null?void 0:ye.scale);d.useEffect(()=>{g&&(k.current=ye==null?void 0:ye.scale)},[g]);let E=d.useCallback(()=>{if(f===!1||!g||!o.current||!r.current||!h||(ye==null?void 0:ye.scale)!==k.current)return;let I=null;if(a.current&&a.current.contains(document.activeElement)){var N;let L=(N=document.activeElement)===null||N===void 0?void 0:N.getBoundingClientRect(),H=a.current.getBoundingClientRect();var F;if(I={type:"top",offset:((F=L==null?void 0:L.top)!==null&&F!==void 0?F:0)-H.top},I.offset>H.height/2){I.type="bottom";var j;I.offset=((j=L==null?void 0:L.bottom)!==null&&j!==void 0?j:0)-H.bottom}}let O=o.current;if(!v&&o.current){var T;O.style.top="0px",O.style.bottom="";var A;O.style.maxHeight=((A=(T=window.visualViewport)===null||T===void 0?void 0:T.height)!==null&&A!==void 0?A:window.innerHeight)+"px"}let K=ly({placement:Dy(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:a.current||o.current,padding:l,shouldFlip:u,boundaryElement:h,offset:c,crossOffset:p,maxHeight:v,arrowSize:n??(i!=null&&i.current?su(i.current,!0).width:0),arrowBoundaryOffset:b});if(K.position){if(O.style.top="",O.style.bottom="",O.style.left="",O.style.right="",Object.keys(K.position).forEach(L=>O.style[L]=K.position[L]+"px"),O.style.maxHeight=K.maxHeight!=null?K.maxHeight+"px":"",I&&document.activeElement&&a.current){let L=document.activeElement.getBoundingClientRect(),H=a.current.getBoundingClientRect(),z=L[I.type]-H[I.type];a.current.scrollTop+=z-I.offset}w(K)}},$);de(E,$),Ty(E),Gi({ref:o,onResize:E}),Gi({ref:r,onResize:E});let R=d.useRef(!1);de(()=>{let I,N=()=>{R.current=!0,clearTimeout(I),I=setTimeout(()=>{R.current=!1},500),E()},F=()=>{R.current&&N()};return ye==null||ye.addEventListener("resize",N),ye==null||ye.addEventListener("scroll",F),()=>{ye==null||ye.removeEventListener("resize",N),ye==null||ye.removeEventListener("scroll",F)}},[E]);let M=d.useCallback(()=>{R.current||m==null||m()},[m,R]);cy({triggerRef:r,isOpen:g,onClose:m&&M});var _,D,P;return{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x==null?void 0:x.position,maxHeight:(_=x==null?void 0:x.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(D=x==null?void 0:x.placement)!==null&&D!==void 0?D:null,triggerAnchorPoint:(P=x==null?void 0:x.triggerAnchorPoint)!==null&&P!==void 0?P:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function Ty(e){de(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Dy(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function lu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function W0(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function G0(e){let t=d.useRef({isFocused:!1,observer:null});de(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ae(r=>{e==null||e(r)});return d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let s=lu(a);n(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Ji=!1;function _y(e){for(;e&&!I0(e);)e=e.parentElement;let t=dt(e),n=t.document.activeElement;if(!n||n===e)return;Ji=!0;let r=!1,o=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},i=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,$t(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,$t(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),Ji=!1,r=!1},u=requestAnimationFrame(l);return l}let gr="default",dl="",Bi=new WeakMap;function Fy(e){if(Ta()){if(gr==="default"){const t=se(e);dl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}gr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Bi.set(e,e.style[t]),e.style[t]="none"}}function Mc(e){if(Ta()){if(gr!=="disabled")return;gr="restoring",setTimeout(()=>{O0(()=>{if(gr==="restoring"){const t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=dl||""),dl="",gr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Bi.has(e)){let t=Bi.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Bi.delete(e)}}const To=d.createContext({register:()=>{}});To.displayName="PressResponderContext";function Ly(e,t){return t.get?t.get.call(e):t.value}function Q0(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Iy(e,t){var n=Q0(e,t,"get");return Ly(e,n)}function Ny(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Oc(e,t,n){var r=Q0(e,t,"set");return Ny(e,r,n),n}function jy(e){let t=d.useContext(To);if(t){let{register:n,...r}=t;e=oe(r,e),n()}return ou(t,e.ref),e}var bi=new WeakMap;class yi{continuePropagation(){Oc(this,bi,!1)}get shouldStopPropagation(){return Iy(this,bi)}constructor(t,n,r,o){Ey(this,bi,{writable:!0,value:void 0}),Oc(this,bi,!0);var i;let a=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:r.currentTarget;const s=a==null?void 0:a.getBoundingClientRect();let l,u=0,h,c=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,c=r.clientY),s&&(h!=null&&c!=null?(l=h-s.left,u=c-s.top):(l=s.width/2,u=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const Tc=Symbol("linkClicked"),Dc="react-aria-pressable-style",_c="data-react-aria-pressable";function Ia(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:c,ref:p,...f}=jy(e),[g,m]=d.useState(!1),v=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:x}=_a(),w=Ae((P,I)=>{let N=v.current;if(s||N.didFirePressStart)return!1;let F=!0;if(N.isTriggeringEvent=!0,r){let j=new yi("pressstart",I,P);r(j),F=j.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,m(!0),F}),$=Ae((P,I,N=!0)=>{let F=v.current;if(!F.didFirePressStart)return!1;F.didFirePressStart=!1,F.isTriggeringEvent=!0;let j=!0;if(o){let O=new yi("pressend",I,P);o(O),j=O.shouldStopPropagation}if(n&&n(!1),m(!1),t&&N&&!s){let O=new yi("press",I,P);t(O),j&&(j=O.shouldStopPropagation)}return F.isTriggeringEvent=!1,j}),k=Ae((P,I)=>{let N=v.current;if(s)return!1;if(i){N.isTriggeringEvent=!0;let F=new yi("pressup",I,P);return i(F),N.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=Ae(P=>{let I=v.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&$(Mn(I.target,P),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,x(),c||Mc(I.target);for(let N of I.disposables)N();I.disposables=[]}}),R=Ae(P=>{h&&E(P)}),M=Ae(P=>{s||a==null||a(P)}),_=Ae((P,I)=>{if(!s&&a){let N=new MouseEvent("click",P);W0(N,I),a(lu(N))}}),D=d.useMemo(()=>{let P=v.current,I={onKeyDown(F){if(ss(F.nativeEvent,F.currentTarget)&&Ue(F.currentTarget,xe(F.nativeEvent))){var j;Fc(xe(F.nativeEvent),F.key)&&F.preventDefault();let O=!0;if(!P.isPressed&&!F.repeat){P.target=F.currentTarget,P.isPressed=!0,P.pointerType="keyboard",O=w(F,"keyboard");let T=F.currentTarget,A=K=>{ss(K,T)&&!K.repeat&&Ue(T,xe(K))&&P.target&&k(Mn(P.target,K),"keyboard")};b(se(F.currentTarget),"keyup",Qr(A,N),!0)}O&&F.stopPropagation(),F.metaKey&&Wn()&&((j=P.metaKeyEvents)===null||j===void 0||j.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(P.metaKeyEvents=new Map)},onClick(F){if(!(F&&!Ue(F.currentTarget,xe(F.nativeEvent)))&&F&&F.button===0&&!P.isTriggeringEvent&&!Gn.isOpening){let j=!0;if(s&&F.preventDefault(),!P.ignoreEmulatedMouseEvents&&!P.isPressed&&(P.pointerType==="virtual"||F0(F.nativeEvent))){let O=w(F,"virtual"),T=k(F,"virtual"),A=$(F,"virtual");M(F),j=O&&T&&A}else if(P.isPressed&&P.pointerType!=="keyboard"){let O=P.pointerType||F.nativeEvent.pointerType||"virtual",T=k(Mn(F.currentTarget,F),O),A=$(Mn(F.currentTarget,F),O,!0);j=T&&A,P.isOverTarget=!1,M(F),E(F)}P.ignoreEmulatedMouseEvents=!1,j&&F.stopPropagation()}}},N=F=>{var j;if(P.isPressed&&P.target&&ss(F,P.target)){var O;Fc(xe(F),F.key)&&F.preventDefault();let A=xe(F),K=Ue(P.target,xe(F));$(Mn(P.target,F),"keyboard",K),K&&_(F,P.target),x(),F.key!=="Enter"&&uu(P.target)&&Ue(P.target,A)&&!F[Tc]&&(F[Tc]=!0,Gn(P.target,F,!1)),P.isPressed=!1,(O=P.metaKeyEvents)===null||O===void 0||O.delete(F.key)}else if(F.key==="Meta"&&(!((j=P.metaKeyEvents)===null||j===void 0)&&j.size)){var T;let A=P.metaKeyEvents;P.metaKeyEvents=void 0;for(let K of A.values())(T=P.target)===null||T===void 0||T.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){I.onPointerDown=O=>{if(O.button!==0||!Ue(O.currentTarget,xe(O.nativeEvent)))return;if(W5(O.nativeEvent)){P.pointerType="virtual";return}P.pointerType=O.pointerType;let T=!0;if(!P.isPressed){P.isPressed=!0,P.isOverTarget=!0,P.activePointerId=O.pointerId,P.target=O.currentTarget,c||Fy(P.target),T=w(O,P.pointerType);let A=xe(O.nativeEvent);"releasePointerCapture"in A&&A.releasePointerCapture(O.pointerId),b(se(O.currentTarget),"pointerup",F,!1),b(se(O.currentTarget),"pointercancel",j,!1)}T&&O.stopPropagation()},I.onMouseDown=O=>{if(Ue(O.currentTarget,xe(O.nativeEvent))&&O.button===0){if(u){let T=_y(O.target);T&&P.disposables.push(T)}O.stopPropagation()}},I.onPointerUp=O=>{!Ue(O.currentTarget,xe(O.nativeEvent))||P.pointerType==="virtual"||O.button===0&&!P.isPressed&&k(O,P.pointerType||O.pointerType)},I.onPointerEnter=O=>{O.pointerId===P.activePointerId&&P.target&&!P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!0,w(Mn(P.target,O),P.pointerType))},I.onPointerLeave=O=>{O.pointerId===P.activePointerId&&P.target&&P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!1,$(Mn(P.target,O),P.pointerType,!1),R(O))};let F=O=>{if(O.pointerId===P.activePointerId&&P.isPressed&&O.button===0&&P.target){if(Ue(P.target,xe(O))&&P.pointerType!=null){let T=!1,A=setTimeout(()=>{P.isPressed&&P.target instanceof HTMLElement&&(T?E(O):($t(P.target),P.target.click()))},80);b(O.currentTarget,"click",()=>T=!0,!0),P.disposables.push(()=>clearTimeout(A))}else E(O);P.isOverTarget=!1}},j=O=>{E(O)};I.onDragStart=O=>{Ue(O.currentTarget,xe(O.nativeEvent))&&E(O)}}return I},[b,s,u,x,c,E,R,$,w,k,M,_]);return d.useEffect(()=>{if(!p)return;const P=se(p.current);if(!P||!P.head||P.getElementById(Dc))return;const I=P.createElement("style");I.id=Dc,I.textContent=`
|
|
20
|
+
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let p=Cn(),f;if(t){let w=typeof t=="string"?Hr(t):t;ge(h==="/"||((x=w.pathname)==null?void 0:x.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${w.pathname}" was given in the \`location\` prop.`),f=w}else f=p;let g=f.pathname||"/",m=g;if(h!=="/"){let w=h.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=e0(e,{pathname:m});ft(c||v!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),ft(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Ib(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Ht([h,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?h:Ht([h,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?E.createElement(Xo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},b):b}function Db(){let e=Bb(),t=bb(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:i},"ErrorBoundary")," or"," ",E.createElement("code",{style:i},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,a)}var _b=E.createElement(Db,null),g0=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Rb(e.digest);n&&(e=n)}let t=e!==void 0?E.createElement(_t.Provider,{value:this.props.routeContext},E.createElement(Ql.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?E.createElement(Lb,{error:e},t):t}};g0.contextType=wb;var Ja=new WeakMap;function Lb({children:e,error:t}){let{basename:n}=E.useContext(pt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Pb(t.digest);if(r){let o=Ja.get(t);if(o)throw o;let i=s0(r.location,n);if(a0&&!Ja.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Ja.set(t,a),a}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Fb({routeContext:e,match:t,children:n}){let r=E.useContext(Vr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(_t.Provider,{value:e},n)}function Ib(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let h=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);ge(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,l=-1;if(n)for(let h=0;h<i.length;h++){let c=i[h];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=h),c.route.id){let{loaderData:p,errors:f}=n,g=c.route.loader&&!p.hasOwnProperty(c.route.id)&&(!f||f[c.route.id]===void 0);if(c.route.lazy||g){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}let u=n&&r?(h,c)=>{var p,f;r(h,{location:n.location,params:((f=(p=n.matches)==null?void 0:p[0])==null?void 0:f.params)??{},unstable_pattern:yb(n.matches),errorInfo:c})}:void 0;return i.reduceRight((h,c,p)=>{let f,g=!1,m=null,v=null;n&&(f=a&&c.route.id?a[c.route.id]:void 0,m=c.route.errorElement||_b,s&&(l<0&&p===0?(m0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,v=null):l===p&&(g=!0,v=c.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,p+1)),x=()=>{let w;return f?w=m:g?w=v:c.route.Component?w=E.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=h,E.createElement(Fb,{match:c,routeContext:{outlet:h,matches:b,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?E.createElement(g0,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):x()},null)}function Yl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jb(e){let t=E.useContext(Vr);return ge(t,Yl(e)),t}function Nb(e){let t=E.useContext(Ea);return ge(t,Yl(e)),t}function Ab(e){let t=E.useContext(_t);return ge(t,Yl(e)),t}function Xl(e){let t=Ab(e),n=t.matches[t.matches.length-1];return ge(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Kb(){return Xl("useRouteId")}function Bb(){var r;let e=E.useContext(Ql),t=Nb("useRouteError"),n=Xl("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Hb(){let{router:e}=jb("useNavigate"),t=Xl("useNavigate"),n=E.useRef(!1);return f0(()=>{n.current=!0}),E.useCallback(async(o,i={})=>{ft(n.current,d0),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var sc={};function m0(e,t,n){!t&&!sc[e]&&(sc[e]=!0,ft(!1,n))}E.memo(Vb);function Vb({routes:e,future:t,state:n,onError:r}){return p0(e,void 0,n,r,t)}function ol(e){ge(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function zb({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:a}){ge(!Zo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:s,navigator:o,static:i,unstable_useTransitions:a,future:{}}),[s,o,i,a]);typeof n=="string"&&(n=Hr(n));let{pathname:u="/",search:h="",hash:c="",state:p=null,key:f="default"}=n,g=E.useMemo(()=>{let m=zt(u,s);return m==null?null:{location:{pathname:m,search:h,hash:c,state:p,key:f},navigationType:r}},[s,u,h,c,p,f,r]);return ft(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${h}${c}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:E.createElement(pt.Provider,{value:l},E.createElement(Xo.Provider,{children:t,value:g}))}function Ub({children:e,location:t}){return Tb(il(e),t)}function il(e,t=[]){let n=[];return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let i=[...t,o];if(r.type===E.Fragment){n.push.apply(n,il(r.props.children,i));return}ge(r.type===ol,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ge(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=il(r.props.children,i)),n.push(a)}),n}var Ni="get",Ai="application/x-www-form-urlencoded";function Pa(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function qb(e){return Pa(e)&&e.tagName.toLowerCase()==="button"}function Wb(e){return Pa(e)&&e.tagName.toLowerCase()==="form"}function Gb(e){return Pa(e)&&e.tagName.toLowerCase()==="input"}function Qb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Yb(e,t){return e.button===0&&(!t||t==="_self")&&!Qb(e)}function al(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Xb(e,t){let n=al(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}var pi=null;function Zb(){if(pi===null)try{new FormData(document.createElement("form"),0),pi=!1}catch{pi=!0}return pi}var Jb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function es(e){return e!=null&&!Jb.has(e)?(ft(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ai}"`),null):e}function e2(e,t){let n,r,o,i,a;if(Wb(e)){let s=e.getAttribute("action");r=s?zt(s,t):null,n=e.getAttribute("method")||Ni,o=es(e.getAttribute("enctype"))||Ai,i=new FormData(e)}else if(qb(e)||Gb(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?zt(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Ni,o=es(e.getAttribute("formenctype"))||es(s.getAttribute("enctype"))||Ai,i=new FormData(s,e),!Zb()){let{name:u,type:h,value:c}=e;if(h==="image"){let p=u?`${u}.`:"";i.append(`${p}x`,"0"),i.append(`${p}y`,"0")}else u&&i.append(u,c)}}else{if(Pa(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ni,r=null,o=Ai,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Zl(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function t2(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&zt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function n2(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r2(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function o2(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await n2(i,n);return a.links?a.links():[]}return[]}));return l2(r.flat(1).filter(r2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function lc(e,t,n,r,o,i){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var h;return n[u].pathname!==l.pathname||((h=n[u].route.path)==null?void 0:h.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>a(l,u)||s(l,u)):i==="data"?t.filter((l,u)=>{var c;let h=r.routes[l.route.id];if(!h||!h.hasLoader)return!1;if(a(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function i2(e,t,{includeHydrateFallback:n}={}){return a2(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function a2(e){return[...new Set(e)]}function s2(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function l2(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(s2(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function v0(){let e=E.useContext(Vr);return Zl(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function u2(){let e=E.useContext(Ea);return Zl(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Jl=E.createContext(void 0);Jl.displayName="FrameworkContext";function b0(){let e=E.useContext(Jl);return Zl(e,"You must render this element inside a <HydratedRouter> element"),e}function c2(e,t){let n=E.useContext(Jl),[r,o]=E.useState(!1),[i,a]=E.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:h,onTouchStart:c}=t,p=E.useRef(null);E.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=b=>{b.forEach(x=>{a(x.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return p.current&&v.observe(p.current),()=>{v.disconnect()}}},[e]),E.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let f=()=>{o(!0)},g=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,p,{}]:[i,p,{onFocus:eo(s,f),onBlur:eo(l,g),onMouseEnter:eo(u,f),onMouseLeave:eo(h,g),onTouchStart:eo(c,f)}]:[!1,p,{}]}function eo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function d2({page:e,...t}){let{router:n}=v0(),r=E.useMemo(()=>e0(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(h2,{page:e,matches:r,...t}):null}function f2(e){let{manifest:t,routeModules:n}=b0(),[r,o]=E.useState([]);return E.useEffect(()=>{let i=!1;return o2(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function h2({page:e,matches:t,...n}){let r=Cn(),{manifest:o,routeModules:i}=b0(),{basename:a}=v0(),{loaderData:s,matches:l}=u2(),u=E.useMemo(()=>lc(e,t,l,o,r,"data"),[e,t,l,o,r]),h=E.useMemo(()=>lc(e,t,l,o,r,"assets"),[e,t,l,o,r]),c=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,m=!1;if(t.forEach(b=>{var w;let x=o.routes[b.route.id];!x||!x.hasLoader||(!u.some(S=>S.route.id===b.route.id)&&b.route.id in s&&((w=i[b.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?m=!0:g.add(b.route.id))}),g.size===0)return[];let v=t2(e,a,"data");return m&&g.size>0&&v.searchParams.set("_routes",t.filter(b=>g.has(b.route.id)).map(b=>b.route.id).join(",")),[v.pathname+v.search]},[a,s,r,o,u,t,e,i]),p=E.useMemo(()=>i2(h,o),[h,o]),f=f2(h);return E.createElement(E.Fragment,null,c.map(g=>E.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>E.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),f.map(({key:g,link:m})=>E.createElement("link",{key:g,nonce:n.nonce,...m})))}function p2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var g2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g2&&(window.__reactRouterVersion="7.11.0")}catch{}function m2({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=E.useRef();o.current==null&&(o.current=Gv({window:r,v5Compat:!0}));let i=o.current,[a,s]=E.useState({action:i.action,location:i.location}),l=E.useCallback(u=>{n===!1?s(u):E.startTransition(()=>s(u))},[n]);return E.useLayoutEffect(()=>i.listen(l),[i,l]),E.createElement(zb,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var y0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ra=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p,...f},g){let{basename:m,unstable_useTransitions:v}=E.useContext(pt),b=typeof u=="string"&&y0.test(u),x=s0(u,m);u=x.to;let w=kb(u,{relative:o}),[S,k,P]=c2(r,f),R=y2(u,{replace:a,state:s,target:l,preventScrollReset:h,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v});function M(D){t&&t(D),D.defaultPrevented||R(D)}let _=E.createElement("a",{...f,...P,href:x.absoluteURL||w,onClick:x.isExternal||i?t:M,ref:p2(g,k),target:l,"data-discover":!b&&n==="render"?"true":void 0});return S&&!b?E.createElement(E.Fragment,null,_,E.createElement(d2,{page:w})):_});Ra.displayName="Link";var x0=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...u},h){let c=Jo(a,{relative:u.relative}),p=Cn(),f=E.useContext(Ea),{navigator:g,basename:m}=E.useContext(pt),v=f!=null&&E2(c)&&s===!0,b=g.encodeLocation?g.encodeLocation(c).pathname:c.pathname,x=p.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(x=x.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=zt(w,m)||w);const S=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let k=x===b||!o&&x.startsWith(b)&&x.charAt(S)==="/",P=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),R={isActive:k,isPending:P,isTransitioning:v},M=k?t:void 0,_;typeof r=="function"?_=r(R):_=[r,k?"active":null,P?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D=typeof i=="function"?i(R):i;return E.createElement(Ra,{...u,"aria-current":M,className:_,ref:h,style:D,to:a,viewTransition:s},typeof l=="function"?l(R):l)});x0.displayName="NavLink";var v2=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=Ni,action:s,onSubmit:l,relative:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p,...f},g)=>{let{unstable_useTransitions:m}=E.useContext(pt),v=$2(),b=S2(s,{relative:u}),x=a.toLowerCase()==="get"?"get":"post",w=typeof s=="string"&&y0.test(s),S=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let P=k.nativeEvent.submitter,R=(P==null?void 0:P.getAttribute("formmethod"))||a,M=()=>v(P||k.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:o,state:i,relative:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p});m&&n!==!1?E.startTransition(()=>M()):M()};return E.createElement("form",{ref:g,method:x,action:b,onSubmit:r?l:S,...f,"data-discover":!w&&e==="render"?"true":void 0})});v2.displayName="Form";function b2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function w0(e){let t=E.useContext(Vr);return ge(t,b2(e)),t}function y2(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=h0(),h=Cn(),c=Jo(e,{relative:i});return E.useCallback(p=>{if(Yb(p,t)){p.preventDefault();let f=n!==void 0?n:Po(h)===Po(c),g=()=>u(e,{replace:f,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s});l?E.startTransition(()=>g()):g()}},[h,u,c,n,r,t,e,o,i,a,s,l])}function x2(e){ft(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(al(e)),n=E.useRef(!1),r=Cn(),o=E.useMemo(()=>Xb(r.search,n.current?null:t.current),[r.search]),i=h0(),a=E.useCallback((s,l)=>{const u=al(typeof s=="function"?s(new URLSearchParams(o)):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}var w2=0,C2=()=>`__${String(++w2)}__`;function $2(){let{router:e}=w0("useSubmit"),{basename:t}=E.useContext(pt),n=Kb(),r=e.fetch,o=e.navigate;return E.useCallback(async(i,a={})=>{let{action:s,method:l,encType:u,formData:h,body:c}=e2(i,t);if(a.navigate===!1){let p=a.fetcherKey||C2();await r(p,n,a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:c,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:c,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function S2(e,{relative:t}={}){let{basename:n}=E.useContext(pt),r=E.useContext(_t);ge(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Jo(e||".",{relative:t})},a=Cn();if(e==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(h=>h==="")){s.delete("index"),l.filter(c=>c).forEach(c=>s.append("index",c));let h=s.toString();i.search=h?`?${h}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Ht([n,i.pathname])),Po(i)}function E2(e,{relative:t}={}){let n=E.useContext(u0);ge(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=w0("useViewTransitionState"),o=Jo(e,{relative:t});if(!n.isTransitioning)return!1;let i=zt(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=zt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Wi(o.pathname,a)!=null||Wi(o.pathname,i)!=null}var Ro=function(e){var t=e.className;return y.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function fe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var P2=["color"],R2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,P2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),k2=["color"],M2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,k2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),O2=["color"],T2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,O2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),D2=["color"],C0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,D2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_2=["color"],L2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,_2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),F2=["color"],Lr=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,F2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),I2=["color"],eu=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,I2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),j2=["color"],$0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,j2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),N2=["color"],A2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,N2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2.8 1L2.74967 0.99997C2.52122 0.999752 2.32429 0.999564 2.14983 1.04145C1.60136 1.17312 1.17312 1.60136 1.04145 2.14983C0.999564 2.32429 0.999752 2.52122 0.99997 2.74967L1 2.8V5.2L0.99997 5.25033C0.999752 5.47878 0.999564 5.67572 1.04145 5.85017C1.17312 6.39864 1.60136 6.82688 2.14983 6.95856C2.32429 7.00044 2.52122 7.00025 2.74967 7.00003L2.8 7H5.2L5.25033 7.00003C5.47878 7.00025 5.67572 7.00044 5.85017 6.95856C6.39864 6.82688 6.82688 6.39864 6.95856 5.85017C7.00044 5.67572 7.00025 5.47878 7.00003 5.25033L7 5.2V2.8L7.00003 2.74967C7.00025 2.52122 7.00044 2.32429 6.95856 2.14983C6.82688 1.60136 6.39864 1.17312 5.85017 1.04145C5.67572 0.999564 5.47878 0.999752 5.25033 0.99997L5.2 1H2.8ZM2.38328 2.01382C2.42632 2.00348 2.49222 2 2.8 2H5.2C5.50779 2 5.57369 2.00348 5.61672 2.01382C5.79955 2.05771 5.94229 2.20045 5.98619 2.38328C5.99652 2.42632 6 2.49222 6 2.8V5.2C6 5.50779 5.99652 5.57369 5.98619 5.61672C5.94229 5.79955 5.79955 5.94229 5.61672 5.98619C5.57369 5.99652 5.50779 6 5.2 6H2.8C2.49222 6 2.42632 5.99652 2.38328 5.98619C2.20045 5.94229 2.05771 5.79955 2.01382 5.61672C2.00348 5.57369 2 5.50779 2 5.2V2.8C2 2.49222 2.00348 2.42632 2.01382 2.38328C2.05771 2.20045 2.20045 2.05771 2.38328 2.01382ZM9.8 1L9.74967 0.99997C9.52122 0.999752 9.32429 0.999564 9.14983 1.04145C8.60136 1.17312 8.17312 1.60136 8.04145 2.14983C7.99956 2.32429 7.99975 2.52122 7.99997 2.74967L8 2.8V5.2L7.99997 5.25033C7.99975 5.47878 7.99956 5.67572 8.04145 5.85017C8.17312 6.39864 8.60136 6.82688 9.14983 6.95856C9.32429 7.00044 9.52122 7.00025 9.74967 7.00003L9.8 7H12.2L12.2503 7.00003C12.4788 7.00025 12.6757 7.00044 12.8502 6.95856C13.3986 6.82688 13.8269 6.39864 13.9586 5.85017C14.0004 5.67572 14.0003 5.47878 14 5.25033L14 5.2V2.8L14 2.74967C14.0003 2.52122 14.0004 2.32429 13.9586 2.14983C13.8269 1.60136 13.3986 1.17312 12.8502 1.04145C12.6757 0.999564 12.4788 0.999752 12.2503 0.99997L12.2 1H9.8ZM9.38328 2.01382C9.42632 2.00348 9.49222 2 9.8 2H12.2C12.5078 2 12.5737 2.00348 12.6167 2.01382C12.7995 2.05771 12.9423 2.20045 12.9862 2.38328C12.9965 2.42632 13 2.49222 13 2.8V5.2C13 5.50779 12.9965 5.57369 12.9862 5.61672C12.9423 5.79955 12.7995 5.94229 12.6167 5.98619C12.5737 5.99652 12.5078 6 12.2 6H9.8C9.49222 6 9.42632 5.99652 9.38328 5.98619C9.20045 5.94229 9.05771 5.79955 9.01382 5.61672C9.00348 5.57369 9 5.50779 9 5.2V2.8C9 2.49222 9.00348 2.42632 9.01382 2.38328C9.05771 2.20045 9.20045 2.05771 9.38328 2.01382ZM2.74967 7.99997L2.8 8H5.2L5.25033 7.99997C5.47878 7.99975 5.67572 7.99956 5.85017 8.04145C6.39864 8.17312 6.82688 8.60136 6.95856 9.14983C7.00044 9.32429 7.00025 9.52122 7.00003 9.74967L7 9.8V12.2L7.00003 12.2503C7.00025 12.4788 7.00044 12.6757 6.95856 12.8502C6.82688 13.3986 6.39864 13.8269 5.85017 13.9586C5.67572 14.0004 5.47878 14.0003 5.25033 14L5.2 14H2.8L2.74967 14C2.52122 14.0003 2.32429 14.0004 2.14983 13.9586C1.60136 13.8269 1.17312 13.3986 1.04145 12.8502C0.999564 12.6757 0.999752 12.4788 0.99997 12.2503L1 12.2V9.8L0.99997 9.74967C0.999752 9.52122 0.999564 9.32429 1.04145 9.14983C1.17312 8.60136 1.60136 8.17312 2.14983 8.04145C2.32429 7.99956 2.52122 7.99975 2.74967 7.99997ZM2.8 9C2.49222 9 2.42632 9.00348 2.38328 9.01382C2.20045 9.05771 2.05771 9.20045 2.01382 9.38328C2.00348 9.42632 2 9.49222 2 9.8V12.2C2 12.5078 2.00348 12.5737 2.01382 12.6167C2.05771 12.7995 2.20045 12.9423 2.38328 12.9862C2.42632 12.9965 2.49222 13 2.8 13H5.2C5.50779 13 5.57369 12.9965 5.61672 12.9862C5.79955 12.9423 5.94229 12.7995 5.98619 12.6167C5.99652 12.5737 6 12.5078 6 12.2V9.8C6 9.49222 5.99652 9.42632 5.98619 9.38328C5.94229 9.20045 5.79955 9.05771 5.61672 9.01382C5.57369 9.00348 5.50779 9 5.2 9H2.8ZM9.8 8L9.74967 7.99997C9.52122 7.99975 9.32429 7.99956 9.14983 8.04145C8.60136 8.17312 8.17312 8.60136 8.04145 9.14983C7.99956 9.32429 7.99975 9.52122 7.99997 9.74967L8 9.8V12.2L7.99997 12.2503C7.99975 12.4788 7.99956 12.6757 8.04145 12.8502C8.17312 13.3986 8.60136 13.8269 9.14983 13.9586C9.32429 14.0004 9.52122 14.0003 9.74967 14L9.8 14H12.2L12.2503 14C12.4788 14.0003 12.6757 14.0004 12.8502 13.9586C13.3986 13.8269 13.8269 13.3986 13.9586 12.8502C14.0004 12.6757 14.0003 12.4788 14 12.2503L14 12.2V9.8L14 9.74967C14.0003 9.52122 14.0004 9.32429 13.9586 9.14983C13.8269 8.60136 13.3986 8.17312 12.8502 8.04145C12.6757 7.99956 12.4788 7.99975 12.2503 7.99997L12.2 8H9.8ZM9.38328 9.01382C9.42632 9.00348 9.49222 9 9.8 9H12.2C12.5078 9 12.5737 9.00348 12.6167 9.01382C12.7995 9.05771 12.9423 9.20045 12.9862 9.38328C12.9965 9.42632 13 9.49222 13 9.8V12.2C13 12.5078 12.9965 12.5737 12.9862 12.6167C12.9423 12.7995 12.7995 12.9423 12.6167 12.9862C12.5737 12.9965 12.5078 13 12.2 13H9.8C9.49222 13 9.42632 12.9965 9.38328 12.9862C9.20045 12.9423 9.05771 12.7995 9.01382 12.6167C9.00348 12.5737 9 12.5078 9 12.2V9.8C9 9.49222 9.00348 9.42632 9.01382 9.38328C9.05771 9.20045 9.20045 9.05771 9.38328 9.01382Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),K2=["color"],B2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,K2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M1 3.25C1 3.11193 1.11193 3 1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25ZM1.25 2C0.559643 2 0 2.55964 0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25ZM9.01091 12H5.98909L5.79222 13.05H9.20778L9.01091 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),H2=["color"],V2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,H2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),z2=["color"],sl=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,z2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),U2=["color"],q2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,U2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),W2=["color"],G2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,W2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Q2=["color"],Y2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,Q2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),X2=["color"],Z2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,X2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M12.3536 13.3536C12.1583 13.5488 11.8417 13.5488 11.6465 13.3536L6.39645 8.10355C6.36478 8.07188 6.33824 8.03702 6.31685 8H5.00002C4.78719 8 4.59769 7.86528 4.52777 7.66426L2.12777 0.764277C2.05268 0.548387 2.13355 0.309061 2.3242 0.182972C2.51486 0.0568819 2.76674 0.0761337 2.93602 0.229734L8.336 5.12972C8.44044 5.22449 8.50001 5.35897 8.50001 5.5V5.81684C8.53702 5.83824 8.57189 5.86478 8.60356 5.89645L13.8536 11.1464C14.0488 11.3417 14.0488 11.6583 13.8536 11.8536L12.3536 13.3536ZM8.25 6.95711L7.45711 7.75L12 12.2929L12.7929 11.5L8.25 6.95711ZM3.71669 2.28845L5.35549 7H6.2929L7.50001 5.79289V5.72146L3.71669 2.28845Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),J2=["color"],e5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,J2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),t5=["color"],n5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,t5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),r5=["color"],o5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,r5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),i5=["color"],a5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,i5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),s5=["color"],S0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,s5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),l5=["color"],E0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,l5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),u5=["color"],uc=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,u5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),c5=["color"],P0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,c5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),d5=["color"],f5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,d5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 9.1488 1.47969 10.657 2.4767 11.8162L1.64647 12.6464C1.45121 12.8417 1.45121 13.1583 1.64647 13.3535C1.84173 13.5488 2.15832 13.5488 2.35358 13.3535L3.18383 12.5233C4.34302 13.5202 5.8511 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 5.85107 13.5202 4.34298 12.5233 3.1838L13.3536 2.35355C13.5488 2.15829 13.5488 1.8417 13.3536 1.64644C13.1583 1.45118 12.8417 1.45118 12.6465 1.64644L11.8162 2.47667C10.657 1.47966 9.14883 0.877045 7.49991 0.877045ZM11.1423 3.15065C10.1568 2.32449 8.88644 1.82704 7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 8.88641 2.32452 10.1568 3.15069 11.1422L11.1423 3.15065ZM3.85781 11.8493C4.84322 12.6753 6.11348 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 6.11345 12.6754 4.84319 11.8493 3.85778L3.85781 11.8493Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],tu=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,h5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),p5=["color"],g5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,p5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),m5=["color"],v5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,m5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M0.900024 7.50002C0.900024 3.85495 3.85495 0.900024 7.50002 0.900024C11.1451 0.900024 14.1 3.85495 14.1 7.50002C14.1 11.1451 11.1451 14.1 7.50002 14.1C3.85495 14.1 0.900024 11.1451 0.900024 7.50002ZM7.50002 1.80002C4.35201 1.80002 1.80002 4.35201 1.80002 7.50002C1.80002 10.648 4.35201 13.2 7.50002 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.35201 10.648 1.80002 7.50002 1.80002ZM3.07504 7.50002C3.07504 5.05617 5.05618 3.07502 7.50004 3.07502C9.94388 3.07502 11.925 5.05617 11.925 7.50002C11.925 9.94386 9.94388 11.925 7.50004 11.925C5.05618 11.925 3.07504 9.94386 3.07504 7.50002ZM7.50004 3.92502C5.52562 3.92502 3.92504 5.52561 3.92504 7.50002C3.92504 9.47442 5.52563 11.075 7.50004 11.075C9.47444 11.075 11.075 9.47442 11.075 7.50002C11.075 5.52561 9.47444 3.92502 7.50004 3.92502ZM7.50004 5.25002C6.2574 5.25002 5.25004 6.25739 5.25004 7.50002C5.25004 8.74266 6.2574 9.75002 7.50004 9.75002C8.74267 9.75002 9.75004 8.74266 9.75004 7.50002C9.75004 6.25738 8.74267 5.25002 7.50004 5.25002ZM6.05004 7.50002C6.05004 6.69921 6.69923 6.05002 7.50004 6.05002C8.30084 6.05002 8.95004 6.69921 8.95004 7.50002C8.95004 8.30083 8.30084 8.95002 7.50004 8.95002C6.69923 8.95002 6.05004 8.30083 6.05004 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),b5=["color"],zr=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,b5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);const R0=d.createContext({}),cc=d.createContext(null),y5=d.createContext(null),le=typeof document<"u"?d.useLayoutEffect:()=>{};function x5(e){let[t,n]=d.useState(e),r=d.useRef(t),o=d.useRef(null),i=d.useRef(()=>{if(!o.current)return;let s=o.current.next();if(s.done){o.current=null;return}r.current===s.value?i.current():n(s.value)});le(()=>{r.current=t,o.current&&i.current()});let a=d.useCallback(s=>{o.current=s(r.current),i.current()},[i]);return[t,a]}const k0={prefix:String(Math.round(Math.random()*1e10)),current:0},M0=d.createContext(k0),w5=d.createContext(!1);let ts=new WeakMap;function C5(e=!1){let t=d.useContext(M0),n=d.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=ts.get(i);a==null?ts.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,ts.delete(i))}n.current=++t.current}return n.current}function $5(e){let t=d.useContext(M0),n=C5(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function S5(e){let t=d.useId(),[n]=d.useState($n()),r=n?"react-aria":`react-aria${k0.prefix}`;return e||`${r}-${t}`}const E5=typeof d.useId=="function"?S5:$5;function P5(){return!1}function R5(){return!0}function k5(e){return()=>{}}function $n(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(k5,P5,R5):d.useContext(w5)}let M5=!!(typeof window<"u"&&window.document&&window.document.createElement),gr=new Map,co;typeof FinalizationRegistry<"u"&&(co=new FinalizationRegistry(e=>{gr.delete(e)}));function ot(e){let[t,n]=d.useState(e),r=d.useRef(null),o=E5(t),i=d.useRef(null);if(co&&co.register(i,o),M5){const a=gr.get(o);a&&!a.includes(r)?a.push(r):gr.set(o,[r])}return le(()=>{let a=o;return()=>{co&&co.unregister(i),gr.delete(a)}},[o]),d.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),o}function O5(e,t){if(e===t)return e;let n=gr.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=gr.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Ki(e=[]){let t=ot(),[n,r]=x5(t),o=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return le(o,[t,o,...e]),n}function Ur(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const oe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},dt=e=>e&&"window"in e&&e.window===e?e:oe(e).defaultView||window;function T5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function D5(e){return T5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let _5=!1;function ka(){return _5}function Ue(e,t){if(!ka())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:D5(n)?n=n.host:n=n.parentNode}return!1}const Me=(e=document)=>{var t;if(!ka())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function we(e){return ka()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class L5{get currentNode(){return this._currentNode}set currentNode(t){if(!Ue(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=r,s=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=o,this._currentSetFor.add(s),r=o=a.host}else r=r.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Ue(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(a);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const i=n.shadowRoot;if(i){const a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function F5(e,t,n,r){return ka()?new L5(e,t,n,r):e.createTreeWalker(t,n,r)}function O0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=O0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=O0(e))&&(r&&(r+=" "),r+=t);return r}function ie(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ur(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Fr(i,a):o==="id"&&i&&a?t.id=O5(i,a):t[o]=a!==void 0?a:i}}return t}function T0(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=dc(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():dc(e[i],null)})}}}function dc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const I5=new Set(["id"]),j5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),N5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),A5=new Set(["dir","lang","hidden","inert","translate"]),fc=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),K5=/^(data-.*)$/;function Ee(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:a}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(I5.has(l)||n&&j5.has(l)||r&&N5.has(l)||o&&A5.has(l)||i&&(fc.has(l)||l.endsWith("Capture")&&fc.has(l.slice(0,-7)))||a!=null&&a.has(l)||K5.test(l))&&(s[l]=e[l]);return s}function $t(e){if(B5())e.focus({preventScroll:!0});else{let t=H5(e);e.focus(),V5(t)}}let gi=null;function B5(){if(gi==null){gi=!1;try{document.createElement("div").focus({get preventScroll(){return gi=!0,!0}})}catch{}}return gi}function H5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function V5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ma(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function nu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Wt(e){let t=null;return()=>(t==null&&(t=e()),t)}const zn=Wt(function(){return nu(/^Mac/i)}),z5=Wt(function(){return nu(/^iPhone/i)}),D0=Wt(function(){return nu(/^iPad/i)||zn()&&navigator.maxTouchPoints>1}),Oa=Wt(function(){return z5()||D0()}),U5=Wt(function(){return zn()||Oa()}),_0=Wt(function(){return Ma(/AppleWebKit/i)&&!L0()}),L0=Wt(function(){return Ma(/Chrome/i)}),ru=Wt(function(){return Ma(/Android/i)}),q5=Wt(function(){return Ma(/Firefox/i)}),W5=d.createContext({isNative:!0,open:Y5,useHref:e=>e});function Ta(){return d.useContext(W5)}function G5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Ut(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;q5()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(zn()?i=!0:a=!0);let u=_0()&&zn()&&!D0()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ut.isOpening=n,$t(e),e.dispatchEvent(u),Ut.isOpening=!1}Ut.isOpening=!1;function Q5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Y5(e,t){Q5(e,n=>Ut(n,t))}function X5(e){let t=Ta();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function Z5(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&G5(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let Zt=new Map,ll=new Set;function hc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Zt.get(r.target);o||(o=new Set,Zt.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Zt.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Zt.delete(r.target)),Zt.size===0)){for(let i of ll)i();ll.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?hc():document.addEventListener("DOMContentLoaded",hc));function J5(){for(const[e]of Zt)"isConnected"in e&&!e.isConnected&&Zt.delete(e)}function F0(e){requestAnimationFrame(()=>{J5(),Zt.size===0?e():ll.add(e)})}function Da(){let e=d.useRef(new Map),t=d.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),n=d.useCallback((o,i,a,s)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,u,s),e.current.delete(a)},[]),r=d.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return d.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function I0(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=ot(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function qr(e){const t=d.useRef(null),n=d.useRef(void 0),r=d.useCallback(o=>{if(typeof e=="function"){const i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return d.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}var ns;const ey=(ns=d.useInsertionEffect)!==null&&ns!==void 0?ns:le;function cn(e){const t=d.useRef(null);return ey(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function pc(e,t){const n=d.useRef(!0),r=d.useRef(null);le(()=>(n.current=!0,()=>{n.current=!1}),[]),le(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function ty(){return typeof window.ResizeObserver<"u"}function Gi(e){const{ref:t,box:n,onResize:r}=e;let o=cn(r);d.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(ty()){const a=new window.ResizeObserver(s=>{s.length&&o()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}function ou(e,t){le(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Un(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function j0(e,t){let n=e;for(Un(n,t)&&(n=n.parentElement);n&&!Un(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ny(e,t){const n=[];for(;e&&e!==document.documentElement;)Un(e,t)&&n.push(e),e=e.parentElement;return n}function lr(e){return zn()?e.metaKey:e.ctrlKey}const ry=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mo(e){return e instanceof HTMLInputElement&&!ry.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let We=typeof document<"u"&&window.visualViewport;function oy(){let e=$n(),[t,n]=d.useState(()=>e?{width:0,height:0}:gc());return d.useEffect(()=>{let r=()=>{We&&We.scale>1||n(a=>{let s=gc();return s.width===a.width&&s.height===a.height?a:s})},o,i=a=>{We&&We.scale>1||mo(a.target)&&(o=requestAnimationFrame(()=>{(!document.activeElement||!mo(document.activeElement))&&n(s=>{let l={width:window.innerWidth,height:window.innerHeight};return l.width===s.width&&l.height===s.height?s:l})}))};return window.addEventListener("blur",i,!0),We?We.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(o),window.removeEventListener("blur",i,!0),We?We.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function gc(){return{width:We?We.width*We.scale:window.innerWidth,height:We?We.height*We.scale:window.innerHeight}}let iy=0;const rs=new Map;function ay(e){let[t,n]=d.useState();return le(()=>{if(!e)return;let r=rs.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${iy++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},rs.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),rs.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function mi(e,t,n,r){let o=cn(n),i=n==null;d.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i])}function N0(e,t){let n=mc(e,t,"left"),r=mc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:h,scrollPaddingRight:c,scrollPaddingBottom:p,scrollPaddingLeft:f}=getComputedStyle(e),g=a+parseInt(u,10),m=s+parseInt(l,10),v=g+e.clientWidth,b=m+e.clientHeight,x=parseInt(h,10)||0,w=parseInt(p,10)||0,S=parseInt(c,10)||0,k=parseInt(f,10)||0;n<=a+k?a=n-parseInt(u,10)-k:n+o>v-S&&(a+=n+o-v+S),r<=m+x?s=r-parseInt(l,10)-x:r+i>b-w&&(s+=r+i-b+w),e.scrollLeft=a,e.scrollTop=s}function mc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function vc(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,s=window.getComputedStyle(a).overflow==="hidden";if(s){let l=ny(e);s||l.push(a);for(let u of l)N0(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:c}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(u-c)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function A0(e){return e.pointerType===""&&e.isTrusted?!0:ru()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function sy(e){return!ru()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const ly="react-aria-clear-focus",uy="react-aria-focus";function _a(e,t=!0){let[n,r]=d.useState(!0),o=n&&t;return le(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),K0(e,o,d.useCallback(()=>r(!1),[])),o}function Qi(e,t){let[n,r]=d.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let o=n==="exiting";return K0(e,o,d.useCallback(()=>{r(i=>i==="exiting"?"closed":i)},[])),o}function K0(e,t,n){le(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let o=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{o||Br.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[e,t,n])}const cy=typeof Element<"u"&&"checkVisibility"in Element.prototype;function dy(e){const t=dt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function fy(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function iu(e,t){return cy?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&dy(e)&&fy(e,t)&&(!e.parentElement||iu(e.parentElement,e))}const au=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],hy=au.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";au.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const py=au.join(':not([hidden]):not([tabindex="-1"]),');function B0(e){return e.matches(hy)&&iu(e)&&!V0(e)}function H0(e){return e.matches(py)&&iu(e)&&!V0(e)}function V0(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var os;const gy=typeof document<"u"?(os=d.useInsertionEffect)!==null&&os!==void 0?os:d.useLayoutEffect:()=>{};function ei(e,t,n){let[r,o]=d.useState(e||t),i=d.useRef(r),a=d.useRef(e!==void 0),s=e!==void 0;d.useEffect(()=>{a.current,a.current=s},[s]);let l=s?e:r;gy(()=>{i.current=l});let[,u]=d.useReducer(()=>({}),{}),h=d.useCallback((c,...p)=>{let f=typeof c=="function"?c(i.current):c;Object.is(i.current,f)||(i.current=f,o(f),u(),n==null||n(f,...p))},[n]);return[l,h]}function ko(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Yi=Symbol("default");function Sn({values:e,children:t}){for(let[n,r]of e)t=d.createElement(n.Provider,{value:r},t);return t}function gt(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return d.useMemo(()=>{let l,u,h;return typeof t=="function"?l=t({...s,defaultClassName:o}):l=t,typeof n=="function"?u=n({...s,defaultStyle:a||{}}):u=n,typeof r=="function"?h=r({...s,defaultChildren:i}):r==null?h=i:h=r,{className:l??o,style:u||a?{...a,...u}:void 0,children:h??i,"data-rac":""}},[t,n,r,o,i,a,s])}function z0(e,t){let n=d.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Yi;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function mt(e,t,n){let r=z0(n,e.slot)||{},{ref:o,...i}=r,a=qr(d.useMemo(()=>T0(t,o),[t,o])),s=ie(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=l=>{let u=typeof i.style=="function"?i.style(l):i.style,h={...l.defaultStyle,...u},c=typeof e.style=="function"?e.style({...l,defaultStyle:h}):e.style;return{...h,...c}}:s.style={...i.style,...e.style}),[s,a]}function U0(e=!0){let[t,n]=d.useState(e),r=d.useRef(!1),o=d.useCallback(i=>{r.current=!0,n(!!i)},[]);return le(()=>{r.current||n(!1)},[]),[o,t]}const q0=7e3;let Et=null;function bc(e,t="assertive",n=q0){Et?Et.announce(e,t,n):(Et=new my,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Et.announce(e,t,n):setTimeout(()=>{Et!=null&&Et.isAttached()&&(Et==null||Et.announce(e,t,n))},100))}class my{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=q0){var o,i;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(i=this.politeLog)===null||i===void 0||i.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const ct={top:"top",bottom:"top",left:"left",right:"left"},Xi={top:"bottom",bottom:"top",left:"right",right:"left"},vy={top:"left",left:"top"},ul={top:"height",left:"width"},W0={width:"totalWidth",height:"totalHeight"},vi={};let by=()=>typeof document<"u"?window.visualViewport:null;function yc(e,t){let n=0,r=0,o=0,i=0,a=0,s=0,l={};var u;let h=((u=t==null?void 0:t.scale)!==null&&u!==void 0?u:1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let m=document.documentElement;o=m.clientWidth,i=m.clientHeight;var c;n=(c=t==null?void 0:t.width)!==null&&c!==void 0?c:o;var p;r=(p=t==null?void 0:t.height)!==null&&p!==void 0?p:i,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft,t&&(a=t.offsetTop,s=t.offsetLeft)}else({width:n,height:r,top:a,left:s}=Mo(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,o=n,i=r;if(_0()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){l.top=0,l.left=0;var f;a=(f=t==null?void 0:t.pageTop)!==null&&f!==void 0?f:0;var g;s=(g=t==null?void 0:t.pageLeft)!==null&&g!==void 0?g:0}return{width:n,height:r,totalWidth:o,totalHeight:i,scroll:l,top:a,left:s}}function yy(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function xc(e,t,n,r,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,u=r[ul[e]],h=a[e]+r.scroll[ct[e]]+i,c=a[e]+r.scroll[ct[e]]+u-i,p=t-l+r.scroll[ct[e]]+a[e]-r[ct[e]],f=t-l+n+r.scroll[ct[e]]+a[e]-r[ct[e]];return p<h?h-p:f>c?Math.max(c-f,h-p):0}function xy(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function wc(e){if(vi[e])return vi[e];let[t,n]=e.split(" "),r=ct[t]||"right",o=vy[r];ct[n]||(n="center");let i=ul[r],a=ul[o];return vi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},vi[e]}function is(e,t,n,r,o,i,a,s,l,u,h){let{placement:c,crossPlacement:p,axis:f,crossAxis:g,size:m,crossSize:v}=r,b={};var x;b[g]=(x=e[g])!==null&&x!==void 0?x:0;var w,S,k,P;p==="center"?b[g]+=(((w=e[v])!==null&&w!==void 0?w:0)-((S=n[v])!==null&&S!==void 0?S:0))/2:p!==g&&(b[g]+=((k=e[v])!==null&&k!==void 0?k:0)-((P=n[v])!==null&&P!==void 0?P:0)),b[g]+=i;const R=e[g]-n[v]+l+u,M=e[g]+e[v]-l-u;if(b[g]=ko(b[g],R,M),c===f){let _=s?h[m]:h[W0[m]];b[Xi[f]]=Math.floor(_-e[f]+o)}else b[f]=Math.floor(e[f]+e[m]+o);return b}function wy(e,t,n,r,o,i,a,s,l,u,h){var c,p;let f=(e.top!=null?e.top:l[W0.height]-((c=e.bottom)!==null&&c!==void 0?c:0)-a)-((p=l.scroll.top)!==null&&p!==void 0?p:0),g=u?n.top:0;var m,v,b;let x={top:Math.max(t.top+g,((m=h==null?void 0:h.offsetTop)!==null&&m!==void 0?m:t.top)+g),bottom:Math.min(t.top+t.height+g,((v=h==null?void 0:h.offsetTop)!==null&&v!==void 0?v:0)+((b=h==null?void 0:h.height)!==null&&b!==void 0?b:0))};var w,S,k,P;return s!=="top"?Math.max(0,x.bottom-f-(((w=o.top)!==null&&w!==void 0?w:0)+((S=o.bottom)!==null&&S!==void 0?S:0)+i)):Math.max(0,f+a-x.top-(((k=o.top)!==null&&k!==void 0?k:0)+((P=o.bottom)!==null&&P!==void 0?P:0)+i))}function Cc(e,t,n,r,o,i,a,s){let{placement:l,axis:u,size:h}=i;var c,p;if(l===u)return Math.max(0,n[u]-((c=a.scroll[u])!==null&&c!==void 0?c:0)-(e[u]+(s?t[u]:0))-((p=r[u])!==null&&p!==void 0?p:0)-r[Xi[u]]-o);var f,g;return Math.max(0,e[h]+e[u]+(s?t[u]:0)-n[u]-n[h]+((f=a.scroll[u])!==null&&f!==void 0?f:0)-((g=r[u])!==null&&g!==void 0?g:0)-r[Xi[u]]-o)}function Cy(e,t,n,r,o,i,a,s,l,u,h,c,p,f,g,m,v,b){let x=wc(e),{size:w,crossAxis:S,crossSize:k,placement:P,crossPlacement:R}=x,M=is(t,s,n,x,h,c,u,p,g,m,l),_=h,D=Cc(s,u,t,o,i+h,x,l,v);if(a&&n[w]>D){let ye=wc(`${Xi[P]} ${R}`),Q=is(t,s,n,ye,h,c,u,p,g,m,l);Cc(s,u,t,o,i+h,ye,l,v)>D&&(x=ye,M=Q,_=h)}let j="bottom";x.axis==="top"?x.placement==="top"?j="top":x.placement==="bottom"&&(j="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?j="bottom":x.crossPlacement==="bottom"&&(j="top"));let K=xc(S,M[S],n[k],s,l,i,u);M[S]+=K;let I=wy(M,s,u,p,o,i,n.height,j,l,v,b);f&&f<I&&(I=f),n.height=Math.min(n.height,I),M=is(t,s,n,x,_,c,u,p,g,m,l),K=xc(S,M[S],n[k],s,l,i,u),M[S]+=K;let z={},O=t[S]-M[S]-o[ct[S]],L=O+.5*t[k];const B=g/2+m;var U,W,$,F;const T=ct[S]==="left"?((U=o.left)!==null&&U!==void 0?U:0)+((W=o.right)!==null&&W!==void 0?W:0):(($=o.top)!==null&&$!==void 0?$:0)+((F=o.bottom)!==null&&F!==void 0?F:0),N=n[k]-T-g/2-m,H=t[S]+g/2-(M[S]+o[ct[S]]),A=t[S]+t[k]-g/2-(M[S]+o[ct[S]]),Z=ko(L,H,A);z[S]=ko(Z,B,N),{placement:P,crossPlacement:R}=x,g?O=z[S]:R==="right"?O+=t[k]:R==="center"&&(O+=t[k]/2);let he=P==="left"||P==="top"?n[w]:0,te={x:P==="top"||P==="bottom"?O:he,y:P==="left"||P==="right"?O:he};return{position:M,maxHeight:I,arrowOffsetLeft:z.left,arrowOffsetTop:z.top,placement:P,triggerAnchorPoint:te}}function $y(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:u,maxHeight:h,arrowSize:c=0,arrowBoundaryOffset:p=0}=e,f=by(),g=r instanceof HTMLElement?Sy(r):document.documentElement,m=g===document.documentElement;const v=window.getComputedStyle(g).position;let b=!!v&&v!=="static",x=m?Mo(n,!1):$c(n,g,!1);if(!m){let{marginTop:z,marginLeft:O}=window.getComputedStyle(n);x.top+=parseInt(z,10)||0,x.left+=parseInt(O,10)||0}let w=Mo(r,!0),S=xy(r);var k,P;w.width+=((k=S.left)!==null&&k!==void 0?k:0)+((P=S.right)!==null&&P!==void 0?P:0);var R,M;w.height+=((R=S.top)!==null&&R!==void 0?R:0)+((M=S.bottom)!==null&&M!==void 0?M:0);let _=yy(o),D=yc(s,f),j=yc(g,f),K=$c(s,g,!1),I=s.contains(g);return Cy(t,x,w,_,S,i,a,D,j,K,l,u,b,h,c,p,I,f)}function su(e,t){let{top:n,left:r,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:n,left:r,width:o,height:i}}function Mo(e,t){let{top:n,left:r,width:o,height:i}=su(e,t),{scrollTop:a,scrollLeft:s,clientTop:l,clientLeft:u}=document.documentElement;return{top:n+a-l,left:r+s-u,width:o,height:i}}function $c(e,t,n){let r=window.getComputedStyle(e),o;if(r.position==="fixed")o=su(e,n);else{o=Mo(e,n);let i=Mo(t,n),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function Sy(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Sc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Sc(t);)t=t.parentElement;return t||document.documentElement}function Sc(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const G0=new WeakMap;function Ey(e){let{triggerRef:t,isOpen:n,onClose:r}=e;d.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=r||G0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const Py=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ry=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ky(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Py.has(n.script)}let t=e.split("-")[0];return Ry.has(t)}const Q0=Symbol.for("react-aria.i18n.locale");function Y0(){let e=typeof window<"u"&&window[Q0]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ky(e)?"rtl":"ltr"}}let cl=Y0(),fo=new Set;function Ec(){cl=Y0();for(let e of fo)e(cl)}function My(){let e=$n(),[t,n]=d.useState(cl);return d.useEffect(()=>(fo.size===0&&window.addEventListener("languagechange",Ec),fo.add(n),()=>{fo.delete(n),fo.size===0&&window.removeEventListener("languagechange",Ec)}),[]),e?{locale:typeof window<"u"&&window[Q0]||"en-US",direction:"ltr"}:t}const Oy=d.createContext(null);function Yn(){let e=My();return d.useContext(Oy)||e}const Ty=Symbol.for("react-aria.i18n.locale"),Dy=Symbol.for("react-aria.i18n.strings");let or;class La{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=_y(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Ty];if(or===void 0){let o=window[Dy];if(!o)return null;or={};for(let i in o)or[i]=new La({[n]:o[i]},n)}let r=or==null?void 0:or[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function _y(e,t,n="en-US"){if(t[e])return t[e];let r=Ly(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function Ly(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Pc=new Map,Rc=new Map;class Fy{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=Pc.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),Pc.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Rc.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Rc.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const kc=new WeakMap;function Iy(e){let t=kc.get(e);return t||(t=new La(e),kc.set(e,t)),t}function jy(e,t){return t&&La.getGlobalDictionaryForPackage(t)||Iy(e)}function X0(e,t){let{locale:n}=Yn(),r=jy(e,t);return d.useMemo(()=>new Fy(n,r),[n,r])}function Ny(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ay(e,t,n){Ny(e,t),t.set(e,n)}let as=new Map,dl=!1;try{dl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Zi=!1;try{Zi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Z0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Ky{format(t){let n="";if(!dl&&this.options.signDisplay!=null?n=Hy(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Zi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=Z0[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!dl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Zi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=By(t,n),this.options=n}}function By(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Zi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Z0[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(as.has(o))return as.get(o);let i=new Intl.NumberFormat(e,t);return as.set(o,i),i}function Hy(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}function Vy(e={}){let{locale:t}=Yn();return d.useMemo(()=>new Ky(t,e),[t,e])}let ss=new Map;function zy(e){let{locale:t}=Yn(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ss.has(n))return ss.get(n);let r=new Intl.Collator(t,e);return ss.set(n,r),r}let xe=typeof document<"u"?window.visualViewport:null;function J0(e){let{direction:t}=Yn(),{arrowSize:n,targetRef:r,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:s="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:c=0,crossOffset:p=0,shouldUpdatePosition:f=!0,isOpen:g=!0,onClose:m,maxHeight:v,arrowBoundaryOffset:b=0}=e,[x,w]=d.useState(null),S=[f,s,o.current,r.current,i==null?void 0:i.current,a.current,l,u,h,c,p,g,t,v,b,n],k=d.useRef(xe==null?void 0:xe.scale);d.useEffect(()=>{g&&(k.current=xe==null?void 0:xe.scale)},[g]);let P=d.useCallback(()=>{if(f===!1||!g||!o.current||!r.current||!h||(xe==null?void 0:xe.scale)!==k.current)return;let K=null;if(a.current&&a.current.contains(document.activeElement)){var I;let $=(I=document.activeElement)===null||I===void 0?void 0:I.getBoundingClientRect(),F=a.current.getBoundingClientRect();var z;if(K={type:"top",offset:((z=$==null?void 0:$.top)!==null&&z!==void 0?z:0)-F.top},K.offset>F.height/2){K.type="bottom";var O;K.offset=((O=$==null?void 0:$.bottom)!==null&&O!==void 0?O:0)-F.bottom}}let L=o.current;if(!v&&o.current){var B;L.style.top="0px",L.style.bottom="";var U;L.style.maxHeight=((U=(B=window.visualViewport)===null||B===void 0?void 0:B.height)!==null&&U!==void 0?U:window.innerHeight)+"px"}let W=$y({placement:qy(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:a.current||o.current,padding:l,shouldFlip:u,boundaryElement:h,offset:c,crossOffset:p,maxHeight:v,arrowSize:n??(i!=null&&i.current?su(i.current,!0).width:0),arrowBoundaryOffset:b});if(W.position){if(L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(W.position).forEach($=>L.style[$]=W.position[$]+"px"),L.style.maxHeight=W.maxHeight!=null?W.maxHeight+"px":"",K&&document.activeElement&&a.current){let $=document.activeElement.getBoundingClientRect(),F=a.current.getBoundingClientRect(),T=$[K.type]-F[K.type];a.current.scrollTop+=T-K.offset}w(W)}},S);le(P,S),Uy(P),Gi({ref:o,onResize:P}),Gi({ref:r,onResize:P});let R=d.useRef(!1);le(()=>{let K,I=()=>{R.current=!0,clearTimeout(K),K=setTimeout(()=>{R.current=!1},500),P()},z=()=>{R.current&&I()};return xe==null||xe.addEventListener("resize",I),xe==null||xe.addEventListener("scroll",z),()=>{xe==null||xe.removeEventListener("resize",I),xe==null||xe.removeEventListener("scroll",z)}},[P]);let M=d.useCallback(()=>{R.current||m==null||m()},[m,R]);Ey({triggerRef:r,isOpen:g,onClose:m&&M});var _,D,j;return{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x==null?void 0:x.position,maxHeight:(_=x==null?void 0:x.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(D=x==null?void 0:x.placement)!==null&&D!==void 0?D:null,triggerAnchorPoint:(j=x==null?void 0:x.triggerAnchorPoint)!==null&&j!==void 0?j:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:P}}function Uy(e){le(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function qy(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function lu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function eh(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function th(e){let t=d.useRef({isFocused:!1,observer:null});return le(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{if(t.current.isFocused=!1,r.disabled){let a=lu(i);e==null||e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let a=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Ji=!1;function Wy(e){for(;e&&!B0(e);)e=e.parentElement;let t=dt(e),n=t.document.activeElement;if(!n||n===e)return;Ji=!0;let r=!1,o=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},i=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,$t(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,$t(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),Ji=!1,r=!1},u=requestAnimationFrame(l);return l}let fr="default",fl="",Bi=new WeakMap;function Gy(e){if(Oa()){if(fr==="default"){const t=oe(e);fl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Bi.set(e,e.style[t]),e.style[t]="none"}}function Mc(e){if(Oa()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{F0(()=>{if(fr==="restoring"){const t=oe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=fl||""),fl="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Bi.has(e)){let t=Bi.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Bi.delete(e)}}const Oo=d.createContext({register:()=>{}});Oo.displayName="PressResponderContext";function Qy(e,t){return t.get?t.get.call(e):t.value}function nh(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Yy(e,t){var n=nh(e,t,"get");return Qy(e,n)}function Xy(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Oc(e,t,n){var r=nh(e,t,"set");return Xy(e,r,n),n}function Zy(e){let t=d.useContext(Oo);if(t){let{register:n,...r}=t;e=ie(r,e),n()}return ou(t,e.ref),e}var bi=new WeakMap;class yi{continuePropagation(){Oc(this,bi,!1)}get shouldStopPropagation(){return Yy(this,bi)}constructor(t,n,r,o){Ay(this,bi,{writable:!0,value:void 0}),Oc(this,bi,!0);var i;let a=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:r.currentTarget;const s=a==null?void 0:a.getBoundingClientRect();let l,u=0,h,c=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,c=r.clientY),s&&(h!=null&&c!=null?(l=h-s.left,u=c-s.top):(l=s.width/2,u=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const Tc=Symbol("linkClicked"),Dc="react-aria-pressable-style",_c="data-react-aria-pressable";function Fa(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:c,ref:p,...f}=Zy(e),[g,m]=d.useState(!1),v=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:x,removeGlobalListener:w}=Da(),S=d.useCallback(($,F)=>{let T=v.current;if(s||T.didFirePressStart)return!1;let N=!0;if(T.isTriggeringEvent=!0,r){let H=new yi("pressstart",F,$);r(H),N=H.shouldStopPropagation}return n&&n(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,m(!0),N},[s,r,n]),k=d.useCallback(($,F,T=!0)=>{let N=v.current;if(!N.didFirePressStart)return!1;N.didFirePressStart=!1,N.isTriggeringEvent=!0;let H=!0;if(o){let A=new yi("pressend",F,$);o(A),H=A.shouldStopPropagation}if(n&&n(!1),m(!1),t&&T&&!s){let A=new yi("press",F,$);t(A),H&&(H=A.shouldStopPropagation)}return N.isTriggeringEvent=!1,H},[s,o,n,t]),P=cn(k),R=d.useCallback(($,F)=>{let T=v.current;if(s)return!1;if(i){T.isTriggeringEvent=!0;let N=new yi("pressup",F,$);return i(N),T.isTriggeringEvent=!1,N.shouldStopPropagation}return!0},[s,i]),M=cn(R),_=d.useCallback($=>{let F=v.current;if(F.isPressed&&F.target){F.didFirePressStart&&F.pointerType!=null&&k(Pn(F.target,$),F.pointerType,!1),F.isPressed=!1,U(null),F.isOverTarget=!1,F.activePointerId=null,F.pointerType=null,x(),c||Mc(F.target);for(let T of F.disposables)T();F.disposables=[]}},[c,x,k]),D=cn(_),j=d.useCallback($=>{h&&_($)},[h,_]),K=d.useCallback($=>{s||a==null||a($)},[s,a]),I=d.useCallback(($,F)=>{if(!s&&a){let T=new MouseEvent("click",$);eh(T,F),a(lu(T))}},[s,a]),z=cn(I),[O,L]=d.useState(!1);le(()=>{let $=v.current;if(O){let F=A=>{var Z;if($.isPressed&&$.target&&ls(A,$.target)){var he;Lc(we(A),A.key)&&A.preventDefault();let ye=we(A),Q=Ue($.target,we(A));P(Pn($.target,A),"keyboard",Q),Q&&z(A,$.target),x(),A.key!=="Enter"&&uu($.target)&&Ue($.target,ye)&&!A[Tc]&&(A[Tc]=!0,Ut($.target,A,!1)),$.isPressed=!1,L(!1),(he=$.metaKeyEvents)===null||he===void 0||he.delete(A.key)}else if(A.key==="Meta"&&(!((Z=$.metaKeyEvents)===null||Z===void 0)&&Z.size)){var te;let ye=$.metaKeyEvents;$.metaKeyEvents=void 0;for(let Q of ye.values())(te=$.target)===null||te===void 0||te.dispatchEvent(new KeyboardEvent("keyup",Q))}},T=$.target,H=Ur(A=>{T&&ls(A,T)&&!A.repeat&&Ue(T,we(A))&&$.target&&M(Pn($.target,A),"keyboard")},F);return b(oe($.target),"keyup",H,!0),()=>{w(oe($.target),"keyup",H,!0)}}},[O,b,x,w]);let[B,U]=d.useState(null);le(()=>{let $=v.current;if(B==="pointer"){let F=N=>{if(N.pointerId===$.activePointerId&&$.isPressed&&N.button===0&&$.target){if(Ue($.target,we(N))&&$.pointerType!=null){let H=!1,A=setTimeout(()=>{$.isPressed&&$.target instanceof HTMLElement&&(H?D(N):($t($.target),$.target.click()))},80);b(N.currentTarget,"click",()=>H=!0,!0),$.disposables.push(()=>clearTimeout(A))}else D(N);$.isOverTarget=!1}},T=N=>{D(N)};return b(oe($.target),"pointerup",F,!1),b(oe($.target),"pointercancel",T,!1),()=>{w(oe($.target),"pointerup",F,!1),w(oe($.target),"pointercancel",T,!1)}}},[B,b,w]);let W=d.useMemo(()=>{let $=v.current,F={onKeyDown(T){if(ls(T.nativeEvent,T.currentTarget)&&Ue(T.currentTarget,we(T.nativeEvent))){var N;Lc(we(T.nativeEvent),T.key)&&T.preventDefault();let H=!0;!$.isPressed&&!T.repeat&&($.target=T.currentTarget,$.isPressed=!0,L(!0),$.pointerType="keyboard",H=S(T,"keyboard")),H&&T.stopPropagation(),T.metaKey&&zn()&&((N=$.metaKeyEvents)===null||N===void 0||N.set(T.key,T.nativeEvent))}else T.key==="Meta"&&($.metaKeyEvents=new Map)},onClick(T){if(!(T&&!Ue(T.currentTarget,we(T.nativeEvent)))&&T&&T.button===0&&!$.isTriggeringEvent&&!Ut.isOpening){let N=!0;if(s&&T.preventDefault(),!$.ignoreEmulatedMouseEvents&&!$.isPressed&&($.pointerType==="virtual"||A0(T.nativeEvent))){let H=S(T,"virtual"),A=R(T,"virtual"),Z=k(T,"virtual");K(T),N=H&&A&&Z}else if($.isPressed&&$.pointerType!=="keyboard"){let H=$.pointerType||T.nativeEvent.pointerType||"virtual",A=R(Pn(T.currentTarget,T),H),Z=k(Pn(T.currentTarget,T),H,!0);N=A&&Z,$.isOverTarget=!1,K(T),_(T)}$.ignoreEmulatedMouseEvents=!1,N&&T.stopPropagation()}}};return typeof PointerEvent<"u"&&(F.onPointerDown=T=>{if(T.button!==0||!Ue(T.currentTarget,we(T.nativeEvent)))return;if(sy(T.nativeEvent)){$.pointerType="virtual";return}$.pointerType=T.pointerType;let N=!0;if(!$.isPressed){$.isPressed=!0,U("pointer"),$.isOverTarget=!0,$.activePointerId=T.pointerId,$.target=T.currentTarget,c||Gy($.target),N=S(T,$.pointerType);let H=we(T.nativeEvent);"releasePointerCapture"in H&&H.releasePointerCapture(T.pointerId)}N&&T.stopPropagation()},F.onMouseDown=T=>{if(Ue(T.currentTarget,we(T.nativeEvent))&&T.button===0){if(u){let N=Wy(T.target);N&&$.disposables.push(N)}T.stopPropagation()}},F.onPointerUp=T=>{!Ue(T.currentTarget,we(T.nativeEvent))||$.pointerType==="virtual"||T.button===0&&!$.isPressed&&R(T,$.pointerType||T.pointerType)},F.onPointerEnter=T=>{T.pointerId===$.activePointerId&&$.target&&!$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!0,S(Pn($.target,T),$.pointerType))},F.onPointerLeave=T=>{T.pointerId===$.activePointerId&&$.target&&$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!1,k(Pn($.target,T),$.pointerType,!1),j(T))},F.onDragStart=T=>{Ue(T.currentTarget,we(T.nativeEvent))&&_(T)}),F},[s,u,x,c,_,j,k,S,R,K,I]);return d.useEffect(()=>{if(!p)return;const $=oe(p.current);if(!$||!$.head||$.getElementById(Dc))return;const F=$.createElement("style");F.id=Dc,F.textContent=`
|
|
21
21
|
@layer {
|
|
22
22
|
[${_c}] {
|
|
23
23
|
touch-action: pan-x pan-y pinch-zoom;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`.trim(),P.head.prepend(I)},[p]),d.useEffect(()=>{let P=v.current;return()=>{var I;c||Mc((I=P.target)!==null&&I!==void 0?I:void 0);for(let N of P.disposables)N();P.disposables=[]}},[c]),{isPressed:l||g,pressProps:oe(f,D,{[_c]:!0})}}function uu(e){return e.tagName==="A"&&e.hasAttribute("href")}function ss(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof dt(o).HTMLInputElement&&!Y0(o,n)||o instanceof dt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&uu(o))&&n!=="Enter")}function Mn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Ay(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!uu(e)}function Fc(e,t){return e instanceof HTMLInputElement?!Y0(e,t):Ay(e)}const Ky=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Y0(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Ky.has(e.type)}let Xr=null,fl=new Set,xo=new Map,Yn=!1,hl=!1;const By={Tab:!0,Escape:!0};function cu(e,t){for(let n of fl)n(e,t)}function Hy(e){return!(e.metaKey||!Wn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ea(e){Yn=!0,Hy(e)&&(Xr="keyboard",cu("keyboard",e))}function xr(e){Xr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Yn=!0,cu("pointer",e))}function X0(e){F0(e)&&(Yn=!0,Xr="virtual")}function Z0(e){e.target===window||e.target===document||Ji||!e.isTrusted||(!Yn&&!hl&&(Xr="virtual",cu("virtual",e)),Yn=!1,hl=!1)}function J0(){Ji||(Yn=!1,hl=!0)}function pl(e){if(typeof window>"u"||typeof document>"u"||xo.get(dt(e)))return;const t=dt(e),n=se(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Yn=!0,r.apply(this,arguments)},n.addEventListener("keydown",ea,!0),n.addEventListener("keyup",ea,!0),n.addEventListener("click",X0,!0),t.addEventListener("focus",Z0,!0),t.addEventListener("blur",J0,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",xr,!0),n.addEventListener("pointermove",xr,!0),n.addEventListener("pointerup",xr,!0)),t.addEventListener("beforeunload",()=>{eh(e)},{once:!0}),xo.set(t,{focus:r})}const eh=(e,t)=>{const n=dt(e),r=se(e);t&&r.removeEventListener("DOMContentLoaded",t),xo.has(n)&&(n.HTMLElement.prototype.focus=xo.get(n).focus,r.removeEventListener("keydown",ea,!0),r.removeEventListener("keyup",ea,!0),r.removeEventListener("click",X0,!0),n.removeEventListener("focus",Z0,!0),n.removeEventListener("blur",J0,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",xr,!0),r.removeEventListener("pointermove",xr,!0),r.removeEventListener("pointerup",xr,!0)),xo.delete(n))};function Vy(e){const t=se(e);let n;return t.readyState!=="loading"?pl(e):(n=()=>{pl(e)},t.addEventListener("DOMContentLoaded",n)),()=>eh(e,n)}typeof document<"u"&&Vy();function Do(){return Xr!=="pointer"}function _o(){return Xr}const zy=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Uy(e,t,n){let r=se(n==null?void 0:n.target);const o=typeof window<"u"?dt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?dt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?dt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?dt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!zy.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!By[n.key])}function qy(e,t,n){pl(),d.useEffect(()=>{let r=(o,i)=>{Uy(!!(n!=null&&n.isTextInput),o,i)&&e(Do())};return fl.add(r),()=>{fl.delete(r)}},t)}function xn(e){const t=se(e),n=Me(t);if(_o()==="virtual"){let r=n;O0(()=>{Me(t)===r&&e.isConnected&&$t(e)})}else $t(e)}function du(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=G0(i),s=d.useCallback(l=>{const u=se(l.target),h=u?Me(u):Me();l.target===l.currentTarget&&h===xe(l.nativeEvent)&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}function Lc(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function th(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Lc(e.onKeyDown),onKeyUp:Lc(e.onKeyUp)}}}let ta=d.createContext(null);function Wy(e){let t=d.useContext(ta)||{};ou(t,e);let{ref:n,...r}=t;return r}const Gy=d.forwardRef(function(t,n){let{children:r,...o}=t,i=Yr(n),a={...o,ref:i};return d.createElement(ta.Provider,{value:a},r)});function nh(e,t){let{focusProps:n}=du(e),{keyboardProps:r}=th(e),o=oe(n,r),i=Wy(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);d.useEffect(()=>{s.current&&t.current&&xn(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:oe({...o,tabIndex:l},a)}}const rh=d.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(To);n=Yr(n||(o==null?void 0:o.ref));let i=oe(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return ou(o,n),d.useEffect(()=>{r.current||(r.current=!0)},[]),d.createElement(To.Provider,{value:i},e)});function Qy({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(To.Provider,{value:t},e)}function fu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=_a(),l=d.useCallback(c=>{c.currentTarget.contains(c.target)&&i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(c),o&&o(!1))},[n,o,i,s]),u=G0(l),h=d.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const p=se(c.target),f=Me(p);if(!i.current.isFocusWithin&&f===xe(c.nativeEvent)){r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,u(c);let g=c.currentTarget;a(p,"focus",m=>{if(i.current.isFocusWithin&&!Ue(g,m.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:m.target});W0(v,g);let b=lu(v);l(b)}},{capture:!0})}},[r,o,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let gl=!1,xi=0;function Yy(){gl=!0,setTimeout(()=>{gl=!1},50)}function Ic(e){e.pointerType==="touch"&&Yy()}function Xy(){if(!(typeof document>"u"))return xi===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ic),xi++,()=>{xi--,!(xi>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ic)}}function Zr(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(Xy,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=_a(),{hoverProps:h,triggerHoverEnd:c}=d.useMemo(()=>{let p=(m,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!m.currentTarget.contains(m.target))return;s.isHovered=!0;let b=m.currentTarget;s.target=b,l(se(m.target),"pointerover",x=>{s.isHovered&&s.target&&!Ue(s.target,x.target)&&f(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),n&&n(!0),a(!0)},f=(m,v)=>{let b=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!b)&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:b,pointerType:v}),n&&n(!1),a(!1))},g={};return typeof PointerEvent<"u"&&(g.onPointerEnter=m=>{gl&&m.pointerType==="mouse"||p(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&f(m,m.pointerType)}),{hoverProps:g,triggerHoverEnd:f}},[t,n,r,o,s,l,u]);return d.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:h,isHovered:i}}function Zy(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ae(l=>{n&&Nc(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Ae(l=>{n&&n(l)});d.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,h=se(u);if(typeof PointerEvent<"u"){let c=p=>{l.isPointerDown&&Nc(p,t)&&s(p),l.isPointerDown=!1};return h.addEventListener("pointerdown",a,!0),h.addEventListener("click",c,!0),()=>{h.removeEventListener("pointerdown",a,!0),h.removeEventListener("click",c,!0)}}},[t,r,a,s])}function Nc(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Jy=500;function oh(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Jy,accessibilityDescription:a}=e;const s=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=_a(),{pressProps:h}=Ia({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),se(p.target).activeElement!==p.target&&$t(p.target),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let f=g=>{g.preventDefault()};l(p.target,"contextmenu",f,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",f)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),c=q5(o&&!t?a:void 0);return{longPressProps:oe(h,c)}}const jc=d.createContext(null),ml="react-aria-focus-scope-restore";let he=null;function ih(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=d.useRef(null),a=d.useRef(null),s=d.useRef([]),{parentNode:l}=d.useContext(jc)||{},u=d.useMemo(()=>new bl({scopeRef:s}),[s]);de(()=>{let p=l||Ce.root;if(Ce.getTreeNode(p.scopeRef)&&he&&!na(he,p.scopeRef)){let f=Ce.getTreeNode(he);f&&(p=f)}p.addChild(u),Ce.addNode(u)},[u,l]),de(()=>{let p=Ce.getTreeNode(s);p&&(p.contain=!!n)},[n]),de(()=>{var p;let f=(p=i.current)===null||p===void 0?void 0:p.nextSibling,g=[],m=v=>v.stopPropagation();for(;f&&f!==a.current;)g.push(f),f.addEventListener(ml,m),f=f.nextSibling;return s.current=g,()=>{for(let v of g)v.removeEventListener(ml,m)}},[t]),i9(s,r,n),n9(s,n),a9(s,r,n),o9(s,o),d.useEffect(()=>{const p=Me(se(s.current?s.current[0]:void 0));let f=null;if(ht(p,s.current)){for(let g of Ce.traverse())g.scopeRef&&ht(p,g.scopeRef.current)&&(f=g);f===Ce.getTreeNode(s)&&(he=f.scopeRef)}},[s]),de(()=>()=>{var p,f,g;let m=(g=(f=Ce.getTreeNode(s))===null||f===void 0||(p=f.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&g!==void 0?g:null;(s===he||na(s,he))&&(!m||Ce.getTreeNode(m))&&(he=m),Ce.removeTreeNode(s)},[s]);let h=d.useMemo(()=>e9(s),[]),c=d.useMemo(()=>({focusManager:h,parentNode:u}),[u,h]);return d.createElement(jc.Provider,{value:c},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function e9(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Me(se((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[0].previousElementSibling,h=Ln(n),c=rt(h,{tabbable:o,accept:a},n);c.currentNode=ht(l,n)?l:u;let p=c.nextNode();return!p&&i&&(c.currentNode=u,p=c.nextNode()),p&&Ge(p,!0),p},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Me(se((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[n.length-1].nextElementSibling,h=Ln(n),c=rt(h,{tabbable:o,accept:a},n);c.currentNode=ht(l,n)?l:u;let p=c.previousNode();return!p&&i&&(c.currentNode=u,p=c.previousNode()),p&&Ge(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Ln(n),a=rt(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&Ge(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Ln(n),a=rt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&Ge(s,!0),s}}}function Ln(e){return e[0].parentElement}function mo(e){let t=Ce.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function t9(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...se(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var n,r;let i=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function n9(e,t){let n=d.useRef(void 0),r=d.useRef(void 0);de(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=se(o?o[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!mo(e)||u.isComposing)return;let h=Me(i),c=e.current;if(!c||!ht(h,c))return;let p=Ln(c),f=rt(p,{tabbable:!0},c);if(!h)return;f.currentNode=h;let g=u.shiftKey?f.previousNode():f.nextNode();g||(f.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,g=u.shiftKey?f.previousNode():f.nextNode()),u.preventDefault(),g&&Ge(g,!0)},s=u=>{(!he||na(he,e))&&ht(xe(u),e.current)?(he=e,n.current=xe(u)):mo(e)&&!hn(xe(u),e)?n.current?n.current.focus():he&&he.current&&vl(he.current):mo(e)&&(n.current=xe(u))},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=_o(),c=(h==="virtual"||h===null)&&ru()&&nu(),p=Me(i);if(!c&&p&&mo(e)&&!hn(p,e)){he=e;let g=xe(u);if(g&&g.isConnected){var f;n.current=g,(f=n.current)===null||f===void 0||f.focus()}else he.current&&vl(he.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),de(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function ah(e){return hn(e)}function ht(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function hn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ce.traverse(Ce.getTreeNode(t)))if(n&&ht(e,n.current))return!0;return!1}function r9(e){return hn(e,he)}function na(e,t){var n;let r=(n=Ce.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ge(e,t=!1){if(e!=null&&!t)try{xn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function sh(e,t=!0){let n=e[0].previousElementSibling,r=Ln(e),o=rt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=Ln(e),o=rt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function vl(e,t=!0){Ge(sh(e,t))}function o9(e,t){const n=d.useRef(t);d.useEffect(()=>{if(n.current){he=e;const r=se(e.current?e.current[0]:void 0);!ht(Me(r),he.current)&&e.current&&vl(e.current)}n.current=!1},[e])}function i9(e,t,n){de(()=>{if(t||n)return;let r=e.current;const o=se(r?r[0]:void 0);let i=a=>{let s=xe(a);ht(s,e.current)?he=e:ah(s)||(he=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Ac(e){let t=Ce.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function a9(e,t,n){const r=d.useRef(typeof document<"u"?Me(se(e.current?e.current[0]:void 0)):null);de(()=>{let o=e.current;const i=se(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!he||na(he,e))&&ht(Me(i),e.current)&&(he=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),de(()=>{const o=se(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!mo(e)||a.isComposing)return;let s=o.activeElement;if(!hn(s,e)||!Ac(e))return;let l=Ce.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,h=rt(o.body,{tabbable:!0});h.currentNode=s;let c=a.shiftKey?h.previousNode():h.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,l.nodeToRestore=void 0),(!c||!hn(c,e))&&u){h.currentNode=u;do c=a.shiftKey?h.previousNode():h.nextNode();while(hn(c,e));a.preventDefault(),a.stopPropagation(),c?Ge(c,!0):ah(u)?Ge(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),de(()=>{const o=se(e.current?e.current[0]:void 0);if(!t)return;let i=Ce.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=Ce.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,u=Me(o);if(t&&l&&(u&&hn(u,e)||u===o.body&&Ac(e))){let h=Ce.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=h.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Kc(c.nodeToRestore);return}c=c.parent}for(c=h.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ce.getTreeNode(c.scopeRef)){let p=sh(c.scopeRef.current,!0);Kc(p);return}c=c.parent}}})}}}},[e,t])}function Kc(e){e.dispatchEvent(new CustomEvent(ml,{bubbles:!0,cancelable:!0}))&&Ge(e)}function rt(e,t,n){let r=t!=null&&t.tabbable?ty:I0,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=se(o),a=C5(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!t9(s)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ht(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function s9(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(se(r)),u=rt(r,{tabbable:i,accept:s});r.contains(l)&&(u.currentNode=l);let h=u.nextNode();return!h&&a&&(u.currentNode=r,h=u.nextNode()),h&&Ge(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(se(r)),u=rt(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;else{let c=ls(u);return c&&Ge(c,!0),c??null}let h=u.previousNode();if(!h&&a){u.currentNode=r;let c=ls(u);if(!c)return null;h=c}return h&&Ge(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=rt(r,{tabbable:o,accept:i}).nextNode();return s&&Ge(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=rt(r,{tabbable:o,accept:i}),s=ls(a);return s&&Ge(s,!0),s??null}}}function ls(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class hu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new bl({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ht(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new hu;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new bl({scopeRef:null}),this.fastMap.set(null,this.root)}}class bl{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ce=new hu;function lh(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||Do()}),[i,a]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),h=d.useCallback(f=>{o.current.isFocused=f,a(f),u()},[u]);qy(f=>{o.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:c}=du({isDisabled:r,onFocusChange:h}),{focusWithinProps:p}=fu({isDisabled:!r,onFocusWithinChange:h});return{isFocused:i,isFocusVisible:s,focusProps:r?p:c}}function uh(e){let t=u9(se(e));t!==e&&(t&&l9(t,e),e&&ch(e,t))}function l9(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ch(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function u9(e){let t=Me(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const kt=[];function dh(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>{if(o&&!kt.includes(t))return kt.push(t),()=>{let g=kt.indexOf(t);g>=0&&kt.splice(g,1)}},[o,t]);let l=()=>{kt[kt.length-1]===t&&n&&n()},u=g=>{(!s||s(g.target))&&kt[kt.length-1]===t&&(g.stopPropagation(),g.preventDefault())},h=g=>{(!s||s(g.target))&&(kt[kt.length-1]===t&&(g.stopPropagation(),g.preventDefault()),l())},c=g=>{g.key==="Escape"&&!a&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),l())};Zy({ref:t,onInteractOutside:i&&o?h:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=fu({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||r9(g.relatedTarget)||(!s||s(g.relatedTarget))&&(n==null||n())}}),f=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:c,...p},underlayProps:{onPointerDown:f}}}function fh(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&H0.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=it();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const wo=typeof document<"u"&&window.visualViewport;let wi=0,us;function hh(e={}){let{isDisabled:t}=e;de(()=>{if(!t)return wi++,wi===1&&(Ta()?us=d9():us=c9()),()=>{wi--,wi===0&&us()}},[t])}function c9(){let e=window.innerWidth-document.documentElement.clientWidth;return Qr(e>0&&("scrollbarGutter"in document.documentElement.style?cs(document.documentElement,"scrollbarGutter","stable"):cs(document.documentElement,"paddingRight",`${e}px`)),cs(document.documentElement,"overflow","hidden"))}function d9(){let e,t=!1,n=l=>{let u=l.target;e=Qn(u)?u:D0(u,!0),t=!1;let h=u.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
26
|
+
`.trim(),$.head.prepend(F)},[p]),d.useEffect(()=>{let $=v.current;return()=>{var F;c||Mc((F=$.target)!==null&&F!==void 0?F:void 0);for(let T of $.disposables)T();$.disposables=[]}},[c]),{isPressed:l||g,pressProps:ie(f,W,{[_c]:!0})}}function uu(e){return e.tagName==="A"&&e.hasAttribute("href")}function ls(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof dt(o).HTMLInputElement&&!rh(o,n)||o instanceof dt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&uu(o))&&n!=="Enter")}function Pn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Jy(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!uu(e)}function Lc(e,t){return e instanceof HTMLInputElement?!rh(e,t):Jy(e)}const e9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function rh(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":e9.has(e.type)}let Wr=null,hl=new Set,vo=new Map,qn=!1,pl=!1;const t9={Tab:!0,Escape:!0};function cu(e,t){for(let n of hl)n(e,t)}function n9(e){return!(e.metaKey||!zn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ea(e){qn=!0,!Ut.isOpening&&n9(e)&&(Wr="keyboard",cu("keyboard",e))}function mr(e){Wr="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(qn=!0,cu("pointer",e))}function oh(e){!Ut.isOpening&&A0(e)&&(qn=!0,Wr="virtual")}function ih(e){e.target===window||e.target===document||Ji||!e.isTrusted||(!qn&&!pl&&(Wr="virtual",cu("virtual",e)),qn=!1,pl=!1)}function ah(){Ji||(qn=!1,pl=!0)}function gl(e){if(typeof window>"u"||typeof document>"u"||vo.get(dt(e)))return;const t=dt(e),n=oe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){qn=!0,r.apply(this,arguments)},n.addEventListener("keydown",ea,!0),n.addEventListener("keyup",ea,!0),n.addEventListener("click",oh,!0),t.addEventListener("focus",ih,!0),t.addEventListener("blur",ah,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",mr,!0),n.addEventListener("pointermove",mr,!0),n.addEventListener("pointerup",mr,!0)),t.addEventListener("beforeunload",()=>{sh(e)},{once:!0}),vo.set(t,{focus:r})}const sh=(e,t)=>{const n=dt(e),r=oe(e);t&&r.removeEventListener("DOMContentLoaded",t),vo.has(n)&&(n.HTMLElement.prototype.focus=vo.get(n).focus,r.removeEventListener("keydown",ea,!0),r.removeEventListener("keyup",ea,!0),r.removeEventListener("click",oh,!0),n.removeEventListener("focus",ih,!0),n.removeEventListener("blur",ah,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",mr,!0),r.removeEventListener("pointermove",mr,!0),r.removeEventListener("pointerup",mr,!0)),vo.delete(n))};function r9(e){const t=oe(e);let n;return t.readyState!=="loading"?gl(e):(n=()=>{gl(e)},t.addEventListener("DOMContentLoaded",n)),()=>sh(e,n)}typeof document<"u"&&r9();function To(){return Wr!=="pointer"}function Do(){return Wr}const o9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function i9(e,t,n){let r=oe(n==null?void 0:n.target);const o=typeof window<"u"?dt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?dt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?dt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?dt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!o9.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!t9[n.key])}function a9(e,t,n){gl(),d.useEffect(()=>{let r=(o,i)=>{i9(!!(n!=null&&n.isTextInput),o,i)&&e(To())};return hl.add(r),()=>{hl.delete(r)}},t)}function bn(e){const t=oe(e);if(Do()==="virtual"){let n=Me(t);F0(()=>{const r=Me(t);(r===n||r===t.body)&&e.isConnected&&$t(e)})}else $t(e)}function du(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=th(i),s=d.useCallback(l=>{const u=oe(l.target),h=u?Me(u):Me();l.target===l.currentTarget&&h===we(l.nativeEvent)&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}function Fc(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function lh(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Fc(e.onKeyDown),onKeyUp:Fc(e.onKeyUp)}}}let ta=d.createContext(null);function s9(e){let t=d.useContext(ta)||{};ou(t,e);let{ref:n,...r}=t;return r}const l9=d.forwardRef(function(t,n){let{children:r,...o}=t,i=qr(n),a={...o,ref:i};return d.createElement(ta.Provider,{value:a},r)});function uh(e,t){let{focusProps:n}=du(e),{keyboardProps:r}=lh(e),o=ie(n,r),i=s9(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);d.useEffect(()=>{s.current&&t.current&&bn(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:ie({...o,tabIndex:l},a)}}const ch=d.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(Oo);n=qr(n||(o==null?void 0:o.ref));let i=ie(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return ou(o,n),d.useEffect(()=>{r.current||(r.current=!0)},[]),d.createElement(Oo.Provider,{value:i},e)});function u9({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(Oo.Provider,{value:t},e)}function fu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=Da(),l=d.useCallback(c=>{c.currentTarget.contains(c.target)&&i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(c),o&&o(!1))},[n,o,i,s]),u=th(l),h=d.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const p=oe(c.target),f=Me(p);if(!i.current.isFocusWithin&&f===we(c.nativeEvent)){r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,u(c);let g=c.currentTarget;a(p,"focus",m=>{if(i.current.isFocusWithin&&!Ue(g,m.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:m.target});eh(v,g);let b=lu(v);l(b)}},{capture:!0})}},[r,o,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let ml=!1,xi=0;function c9(){ml=!0,setTimeout(()=>{ml=!1},50)}function Ic(e){e.pointerType==="touch"&&c9()}function d9(){if(!(typeof document>"u"))return xi===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ic),xi++,()=>{xi--,!(xi>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ic)}}function Gr(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(d9,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=Da(),{hoverProps:h,triggerHoverEnd:c}=d.useMemo(()=>{let p=(m,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!m.currentTarget.contains(m.target))return;s.isHovered=!0;let b=m.currentTarget;s.target=b,l(oe(m.target),"pointerover",x=>{s.isHovered&&s.target&&!Ue(s.target,x.target)&&f(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),n&&n(!0),a(!0)},f=(m,v)=>{let b=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!b)&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:b,pointerType:v}),n&&n(!1),a(!1))},g={};return typeof PointerEvent<"u"&&(g.onPointerEnter=m=>{ml&&m.pointerType==="mouse"||p(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&f(m,m.pointerType)}),{hoverProps:g,triggerHoverEnd:f}},[t,n,r,o,s,l,u]);return d.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:h,isHovered:i}}function f9(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=cn(l=>{n&&jc(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=cn(l=>{n&&n(l)});d.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,h=oe(u);if(typeof PointerEvent<"u"){let c=p=>{l.isPointerDown&&jc(p,t)&&s(p),l.isPointerDown=!1};return h.addEventListener("pointerdown",a,!0),h.addEventListener("click",c,!0),()=>{h.removeEventListener("pointerdown",a,!0),h.removeEventListener("click",c,!0)}}},[t,r])}function jc(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const h9=500;function dh(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=h9,accessibilityDescription:a}=e;const s=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=Da(),{pressProps:h}=Fa({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),oe(p.target).activeElement!==p.target&&$t(p.target),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let f=g=>{g.preventDefault()};l(p.target,"contextmenu",f,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",f)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),c=ay(o&&!t?a:void 0);return{longPressProps:ie(h,c)}}const Nc=d.createContext(null),vl="react-aria-focus-scope-restore";let pe=null;function fh(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=d.useRef(null),a=d.useRef(null),s=d.useRef([]),{parentNode:l}=d.useContext(Nc)||{},u=d.useMemo(()=>new yl({scopeRef:s}),[s]);le(()=>{let p=l||$e.root;if($e.getTreeNode(p.scopeRef)&&pe&&!na(pe,p.scopeRef)){let f=$e.getTreeNode(pe);f&&(p=f)}p.addChild(u),$e.addNode(u)},[u,l]),le(()=>{let p=$e.getTreeNode(s);p&&(p.contain=!!n)},[n]),le(()=>{var p;let f=(p=i.current)===null||p===void 0?void 0:p.nextSibling,g=[],m=v=>v.stopPropagation();for(;f&&f!==a.current;)g.push(f),f.addEventListener(vl,m),f=f.nextSibling;return s.current=g,()=>{for(let v of g)v.removeEventListener(vl,m)}},[t]),y9(s,r,n),m9(s,n),x9(s,r,n),b9(s,o),d.useEffect(()=>{const p=Me(oe(s.current?s.current[0]:void 0));let f=null;if(ht(p,s.current)){for(let g of $e.traverse())g.scopeRef&&ht(p,g.scopeRef.current)&&(f=g);f===$e.getTreeNode(s)&&(pe=f.scopeRef)}},[s]),le(()=>()=>{var p,f,g;let m=(g=(f=$e.getTreeNode(s))===null||f===void 0||(p=f.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&g!==void 0?g:null;(s===pe||na(s,pe))&&(!m||$e.getTreeNode(m))&&(pe=m),$e.removeTreeNode(s)},[s]);let h=d.useMemo(()=>p9(s),[]),c=d.useMemo(()=>({focusManager:h,parentNode:u}),[u,h]);return d.createElement(Nc.Provider,{value:c},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function p9(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Me(oe((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[0].previousElementSibling,h=Dn(n),c=nt(h,{tabbable:o,accept:a},n);c.currentNode=ht(l,n)?l:u;let p=c.nextNode();return!p&&i&&(c.currentNode=u,p=c.nextNode()),p&&Ge(p,!0),p},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Me(oe((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[n.length-1].nextElementSibling,h=Dn(n),c=nt(h,{tabbable:o,accept:a},n);c.currentNode=ht(l,n)?l:u;let p=c.previousNode();return!p&&i&&(c.currentNode=u,p=c.previousNode()),p&&Ge(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Dn(n),a=nt(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&Ge(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Dn(n),a=nt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&Ge(s,!0),s}}}function Dn(e){return e[0].parentElement}function ho(e){let t=$e.getTreeNode(pe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function g9(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...oe(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var n,r;let i=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function m9(e,t){let n=d.useRef(void 0),r=d.useRef(void 0);le(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=oe(o?o[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!ho(e)||u.isComposing)return;let h=Me(i),c=e.current;if(!c||!ht(h,c))return;let p=Dn(c),f=nt(p,{tabbable:!0},c);if(!h)return;f.currentNode=h;let g=u.shiftKey?f.previousNode():f.nextNode();g||(f.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,g=u.shiftKey?f.previousNode():f.nextNode()),u.preventDefault(),g&&Ge(g,!0)},s=u=>{(!pe||na(pe,e))&&ht(we(u),e.current)?(pe=e,n.current=we(u)):ho(e)&&!dn(we(u),e)?n.current?n.current.focus():pe&&pe.current&&bl(pe.current):ho(e)&&(n.current=we(u))},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Do(),c=(h==="virtual"||h===null)&&ru()&&L0(),p=Me(i);if(!c&&p&&ho(e)&&!dn(p,e)){pe=e;let g=we(u);if(g&&g.isConnected){var f;n.current=g,(f=n.current)===null||f===void 0||f.focus()}else pe.current&&bl(pe.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),le(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function hh(e){return dn(e)}function ht(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function dn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of $e.traverse($e.getTreeNode(t)))if(n&&ht(e,n.current))return!0;return!1}function v9(e){return dn(e,pe)}function na(e,t){var n;let r=(n=$e.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ge(e,t=!1){if(e!=null&&!t)try{bn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ph(e,t=!0){let n=e[0].previousElementSibling,r=Dn(e),o=nt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=Dn(e),o=nt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function bl(e,t=!0){Ge(ph(e,t))}function b9(e,t){const n=d.useRef(t);d.useEffect(()=>{if(n.current){pe=e;const r=oe(e.current?e.current[0]:void 0);!ht(Me(r),pe.current)&&e.current&&bl(e.current)}n.current=!1},[e])}function y9(e,t,n){le(()=>{if(t||n)return;let r=e.current;const o=oe(r?r[0]:void 0);let i=a=>{let s=we(a);ht(s,e.current)?pe=e:hh(s)||(pe=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Ac(e){let t=$e.getTreeNode(pe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function x9(e,t,n){const r=d.useRef(typeof document<"u"?Me(oe(e.current?e.current[0]:void 0)):null);le(()=>{let o=e.current;const i=oe(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!pe||na(pe,e))&&ht(Me(i),e.current)&&(pe=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),le(()=>{const o=oe(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!ho(e)||a.isComposing)return;let s=o.activeElement;if(!dn(s,e)||!Ac(e))return;let l=$e.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,h=nt(o.body,{tabbable:!0});h.currentNode=s;let c=a.shiftKey?h.previousNode():h.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,l.nodeToRestore=void 0),(!c||!dn(c,e))&&u){h.currentNode=u;do c=a.shiftKey?h.previousNode():h.nextNode();while(dn(c,e));a.preventDefault(),a.stopPropagation(),c?Ge(c,!0):hh(u)?Ge(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),le(()=>{const o=oe(e.current?e.current[0]:void 0);if(!t)return;let i=$e.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=$e.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,u=Me(o);if(t&&l&&(u&&dn(u,e)||u===o.body&&Ac(e))){let h=$e.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=h.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Kc(c.nodeToRestore);return}c=c.parent}for(c=h.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&$e.getTreeNode(c.scopeRef)){let p=ph(c.scopeRef.current,!0);Kc(p);return}c=c.parent}}})}}}},[e,t])}function Kc(e){e.dispatchEvent(new CustomEvent(vl,{bubbles:!0,cancelable:!0}))&&Ge(e)}function nt(e,t,n){let r=t!=null&&t.tabbable?H0:B0,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=oe(o),a=F5(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!g9(s)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ht(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function w9(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(oe(r)),u=nt(r,{tabbable:i,accept:s});r.contains(l)&&(u.currentNode=l);let h=u.nextNode();return!h&&a&&(u.currentNode=r,h=u.nextNode()),h&&Ge(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(oe(r)),u=nt(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;else{let c=us(u);return c&&Ge(c,!0),c??null}let h=u.previousNode();if(!h&&a){u.currentNode=r;let c=us(u);if(!c)return null;h=c}return h&&Ge(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=nt(r,{tabbable:o,accept:i}).nextNode();return s&&Ge(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=nt(r,{tabbable:o,accept:i}),s=us(a);return s&&Ge(s,!0),s??null}}}function us(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class hu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new yl({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ht(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new hu;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new yl({scopeRef:null}),this.fastMap.set(null,this.root)}}class yl{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let $e=new hu;function gh(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||To()}),[i,a]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),h=d.useCallback(f=>{o.current.isFocused=f,a(f),u()},[u]);a9(f=>{o.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:c}=du({isDisabled:r,onFocusChange:h}),{focusWithinProps:p}=fu({isDisabled:!r,onFocusWithinChange:h});return{isFocused:i,isFocusVisible:s,focusProps:r?p:c}}function mh(e){let t=$9(oe(e));t!==e&&(t&&C9(t,e),e&&vh(e,t))}function C9(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function vh(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function $9(e){let t=Me(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const Pt=[];function bh(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>{if(o&&!Pt.includes(t))return Pt.push(t),()=>{let g=Pt.indexOf(t);g>=0&&Pt.splice(g,1)}},[o,t]);let l=()=>{Pt[Pt.length-1]===t&&n&&n()},u=g=>{(!s||s(g.target))&&Pt[Pt.length-1]===t&&(g.stopPropagation(),g.preventDefault())},h=g=>{(!s||s(g.target))&&(Pt[Pt.length-1]===t&&(g.stopPropagation(),g.preventDefault()),l())},c=g=>{g.key==="Escape"&&!a&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),l())};f9({ref:t,onInteractOutside:i&&o?h:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=fu({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||v9(g.relatedTarget)||(!s||s(g.relatedTarget))&&(n==null||n())}}),f=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:c,...p},underlayProps:{onPointerDown:f}}}function yh(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&G0.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=ot();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const bo=typeof document<"u"&&window.visualViewport;let wi=0,cs;function xh(e={}){let{isDisabled:t}=e;le(()=>{if(!t)return wi++,wi===1&&(Oa()?cs=E9():cs=S9()),()=>{wi--,wi===0&&cs()}},[t])}function S9(){let e=window.innerWidth-document.documentElement.clientWidth;return Ur(e>0&&("scrollbarGutter"in document.documentElement.style?ds(document.documentElement,"scrollbarGutter","stable"):ds(document.documentElement,"paddingRight",`${e}px`)),ds(document.documentElement,"overflow","hidden"))}function E9(){let e,t=!1,n=l=>{let u=l.target;e=Un(u)?u:j0(u,!0),t=!1;let h=u.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
27
27
|
@layer {
|
|
28
28
|
* {
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
30
|
}
|
|
31
|
-
}`.trim(),document.head.prepend(r);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},i=l=>{let u=l.target,h=l.relatedTarget;if(h&&yo(h))h.focus({preventScroll:!0}),Bc(h,yo(u));else if(!h){var c;let p=(c=u.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");p==null||p.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let u=document.activeElement!=null&&yo(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&Bc(this,u)};let s=Qr(ds(document,"touchstart",n,{passive:!1,capture:!0}),ds(document,"touchmove",o,{passive:!1,capture:!0}),ds(document,"blur",i,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=a}}function cs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ds(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Bc(e,t){t||!wo?Hc(e):wo.addEventListener("resize",()=>Hc(e),{once:!0})}function Hc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=D0(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+n.clientHeight){let a=o.bottom;wo&&(a=Math.min(a,wo.offsetTop+wo.height));let s=i.top-o.top-((a-o.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const f9=d.createContext({});function ph(){var e;return(e=d.useContext(f9))!==null&&e!==void 0?e:{}}const yl=d.createContext(null);function h9(e){let{children:t}=e,n=d.useContext(yl),[r,o]=d.useState(0),i=d.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return d.createElement(yl.Provider,{value:i},t)}function p9(){let e=d.useContext(yl);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function g9(e){let{modalProviderProps:t}=p9();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function m9(e){return d.createElement(h9,null,d.createElement(g9,e))}function v9(e){let t=En(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=ph();if(!e.portalContainer&&o&&(n=o()),d.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=d.createElement(m9,r);return Ur.createPortal(i,n)}var gh={};gh={dismiss:"تجاهل"};var mh={};mh={dismiss:"Отхвърляне"};var vh={};vh={dismiss:"Odstranit"};var bh={};bh={dismiss:"Luk"};var yh={};yh={dismiss:"Schließen"};var xh={};xh={dismiss:"Απόρριψη"};var wh={};wh={dismiss:"Dismiss"};var Ch={};Ch={dismiss:"Descartar"};var $h={};$h={dismiss:"Lõpeta"};var Sh={};Sh={dismiss:"Hylkää"};var Eh={};Eh={dismiss:"Rejeter"};var Ph={};Ph={dismiss:"התעלם"};var Rh={};Rh={dismiss:"Odbaci"};var kh={};kh={dismiss:"Elutasítás"};var Mh={};Mh={dismiss:"Ignora"};var Oh={};Oh={dismiss:"閉じる"};var Th={};Th={dismiss:"무시"};var Dh={};Dh={dismiss:"Atmesti"};var _h={};_h={dismiss:"Nerādīt"};var Fh={};Fh={dismiss:"Lukk"};var Lh={};Lh={dismiss:"Negeren"};var Ih={};Ih={dismiss:"Zignoruj"};var Nh={};Nh={dismiss:"Descartar"};var jh={};jh={dismiss:"Dispensar"};var Ah={};Ah={dismiss:"Revocare"};var Kh={};Kh={dismiss:"Пропустить"};var Bh={};Bh={dismiss:"Zrušiť"};var Hh={};Hh={dismiss:"Opusti"};var Vh={};Vh={dismiss:"Odbaci"};var zh={};zh={dismiss:"Avvisa"};var Uh={};Uh={dismiss:"Kapat"};var qh={};qh={dismiss:"Скасувати"};var Wh={};Wh={dismiss:"取消"};var Gh={};Gh={dismiss:"關閉"};var Qh={};Qh={"ar-AE":gh,"bg-BG":mh,"cs-CZ":vh,"da-DK":bh,"de-DE":yh,"el-GR":xh,"en-US":wh,"es-ES":Ch,"et-EE":$h,"fi-FI":Sh,"fr-FR":Eh,"he-IL":Ph,"hr-HR":Rh,"hu-HU":kh,"it-IT":Mh,"ja-JP":Oh,"ko-KR":Th,"lt-LT":Dh,"lv-LV":_h,"nb-NO":Fh,"nl-NL":Lh,"pl-PL":Ih,"pt-BR":Nh,"pt-PT":jh,"ro-RO":Ah,"ru-RU":Kh,"sk-SK":Bh,"sl-SI":Hh,"sr-SP":Vh,"sv-SE":zh,"tr-TR":Uh,"uk-UA":qh,"zh-CN":Wh,"zh-TW":Gh};const Vc={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function b9(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:i}=fu({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>r?t:t?{...Vc,...t}:Vc,[r]);return{visuallyHiddenProps:{...i,style:a}}}function y9(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=b9(e);return d.createElement(n,oe(i,a),t)}function x9(e){return e&&e.__esModule?e.default:e}function xl(e){let{onDismiss:t,...n}=e,r=z0(x9(Qh),"@react-aria/overlays"),o=T0(n,r.format("dismiss")),i=()=>{t&&t()};return d.createElement(y9,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const w9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let oo=new WeakMap,He=[];function Yh(e,t){let n=dt(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var o;let i=(o=r==null?void 0:r.root)!==null&&o!==void 0?o:document.body,a=(r==null?void 0:r.shouldUseInert)&&w9,s=new Set(e),l=new Set,u=m=>a&&m instanceof n.HTMLElement?m.inert:m.getAttribute("aria-hidden")==="true",h=(m,v)=>{a&&m instanceof n.HTMLElement?m.inert=v:v?m.setAttribute("aria-hidden","true"):(m.removeAttribute("aria-hidden"),m instanceof n.HTMLElement&&(m.inert=!1))},c=m=>{for(let w of m.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(w);let v=w=>{if(l.has(w)||s.has(w)||w.parentElement&&l.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let $ of s)if(w.contains($))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),x=v(m);if(x===NodeFilter.FILTER_ACCEPT&&p(m),x!==NodeFilter.FILTER_REJECT){let w=b.nextNode();for(;w!=null;)p(w),w=b.nextNode()}},p=m=>{var v;let b=(v=oo.get(m))!==null&&v!==void 0?v:0;u(m)&&b===0||(b===0&&h(m,!0),l.add(m),oo.set(m,b+1))};He.length&&He[He.length-1].disconnect(),c(i);let f=new MutationObserver(m=>{for(let v of m)if(v.type==="childList"&&![...s,...l].some(b=>b.contains(v.target)))for(let b of v.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?s.add(b):b instanceof Element&&c(b)});f.observe(i,{childList:!0,subtree:!0});let g={visibleNodes:s,hiddenNodes:l,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return He.push(g),()=>{f.disconnect();for(let m of l){let v=oo.get(m);v!=null&&(v===1?(h(m,!1),oo.delete(m)):oo.set(m,v-1))}g===He[He.length-1]?(He.pop(),He.length&&He[He.length-1].observe()):He.splice(He.indexOf(g),1)}}function C9(e){let t=He[He.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function $9(e,t){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...l}=e,u=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:c}=dh({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},o??r),{overlayProps:p,arrowProps:f,placement:g,triggerAnchorPoint:m}=q0({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return hh({isDisabled:i||!t.isOpen}),d.useEffect(()=>{if(t.isOpen&&r.current){var v,b;return i?C9((v=o==null?void 0:o.current)!==null&&v!==void 0?v:r.current):Yh([(b=o==null?void 0:o.current)!==null&&b!==void 0?b:r.current],{shouldUseInert:!0})}},[i,t.isOpen,r,o]),{popoverProps:oe(h,p),arrowProps:f,underlayProps:c,placement:g,triggerAnchorPoint:m}}const Xh=d.createContext(null);function wl(e){let t=En(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=d.useState(!1),a=d.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=ph();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=d.createElement(ih,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!r},l)),l=d.createElement(Xh.Provider,{value:a},d.createElement(Qy,null,l)),Ur.createPortal(l,n)}function Zh(){let e=d.useContext(Xh),t=e==null?void 0:e.setContain;de(()=>{t==null||t(!0)},[t])}function S9(e,t,n){let{overlayProps:r,underlayProps:o}=dh({...e,isOpen:t.isOpen,onClose:t.close},n);return hh({isDisabled:!t.isOpen}),Zh(),d.useEffect(()=>{if(t.isOpen&&n.current)return Yh([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:oe(r),underlayProps:o}}function E9(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=it(t);let a=it(),s={};n&&(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0});let l=T0({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function Cl(e){return D5()?e.altKey:e.ctrlKey}function Hi(e,t){var n,r;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(o)}const Jh=new WeakMap;function P9(e){let t=it();return Jh.set(e,t),t}function R9(e){return Jh.get(e)}const k9=1e3;function M9(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:void 0}).current,i=a=>{let s=O9(a.key);if(!(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&s===" ")){if(s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},k9)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function O9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function T9(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:c,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:g=r,linkBehavior:m="action"}=e,{direction:v}=er(),b=Da(),x=T=>{var A;if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!(!((A=r.current)===null||A===void 0)&&A.contains(T.target)))return;const K=(Y,mt)=>{if(Y!=null){if(t.isLink(Y)&&m==="selection"&&u&&!Cl(T)){Ur.flushSync(()=>{t.setFocusedKey(Y,mt)});let Qe=Hi(r,Y),Rn=t.getItemProps(Y);Qe&&b.open(Qe,T,Rn.href,Rn.routerOptions);return}if(t.setFocusedKey(Y,mt),t.isLink(Y)&&m==="override")return;T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!Cl(T)&&t.replaceSelection(Y)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var L,H,z;let Y=t.focusedKey!=null?(L=n.getKeyBelow)===null||L===void 0?void 0:L.call(n,t.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);Y==null&&i&&(Y=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y))}break;case"ArrowUp":if(n.getKeyAbove){var V,W,q;let Y=t.focusedKey!=null?(V=n.getKeyAbove)===null||V===void 0?void 0:V.call(n,t.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n);Y==null&&i&&(Y=(q=n.getLastKey)===null||q===void 0?void 0:q.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,pe,ee;let Y=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;Y==null&&i&&(Y=v==="rtl"?(pe=n.getFirstKey)===null||pe===void 0?void 0:pe.call(n,t.focusedKey):(ee=n.getLastKey)===null||ee===void 0?void 0:ee.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Be,Et,Pt;let Y=t.focusedKey!=null?(Be=n.getKeyRightOf)===null||Be===void 0?void 0:Be.call(n,t.focusedKey):null;Y==null&&i&&(Y=v==="rtl"?(Et=n.getLastKey)===null||Et===void 0?void 0:Et.call(n,t.focusedKey):(Pt=n.getFirstKey)===null||Pt===void 0?void 0:Pt.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&T.shiftKey)return;T.preventDefault();let Y=n.getFirstKey(t.focusedKey,dr(T));t.setFocusedKey(Y),Y!=null&&(dr(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&T.shiftKey)return;T.preventDefault();let Y=n.getLastKey(t.focusedKey,dr(T));t.setFocusedKey(Y),Y!=null&&(dr(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Y=n.getKeyPageBelow(t.focusedKey);Y!=null&&(T.preventDefault(),K(Y))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Y=n.getKeyPageAbove(t.focusedKey);Y!=null&&(T.preventDefault(),K(Y))}break;case"a":dr(T)&&t.selectionMode==="multiple"&&s!==!0&&(T.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(T.shiftKey)r.current.focus();else{let Y=rt(r.current,{tabbable:!0}),mt,Qe;do Qe=Y.lastChild(),Qe&&(mt=Qe);while(Qe);mt&&!mt.contains(document.activeElement)&&$t(mt)}break}}},w=d.useRef({top:0,left:0});mi(g,"scroll",f?void 0:()=>{var T,A,K,L;w.current={top:(K=(T=g.current)===null||T===void 0?void 0:T.scrollTop)!==null&&K!==void 0?K:0,left:(L=(A=g.current)===null||A===void 0?void 0:A.scrollLeft)!==null&&L!==void 0?L:0}});let $=T=>{if(t.isFocused){T.currentTarget.contains(T.target)||t.setFocused(!1);return}if(T.currentTarget.contains(T.target)){if(t.setFocused(!0),t.focusedKey==null){var A,K;let z=W=>{W!=null&&(t.setFocusedKey(W),u&&!t.isSelected(W)&&t.replaceSelection(W))},V=T.relatedTarget;var L,H;V&&T.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?z((L=t.lastSelectedKey)!==null&&L!==void 0?L:(A=n.getLastKey)===null||A===void 0?void 0:A.call(n)):z((H=t.firstSelectedKey)!==null&&H!==void 0?H:(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n))}else!f&&g.current&&(g.current.scrollTop=w.current.top,g.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&g.current){let z=Hi(r,t.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!c&&$t(z),_o()==="keyboard"&&vc(z,{containingElement:r.current}))}}},k=T=>{T.currentTarget.contains(T.relatedTarget)||t.setFocused(!1)},E=d.useRef(!1);mi(r,Q5,c?T=>{let{detail:A}=T;T.stopPropagation(),t.setFocused(!0),(A==null?void 0:A.focusStrategy)==="first"&&(E.current=!0)}:void 0);let R=Ae(()=>{var T,A;let K=(A=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&A!==void 0?A:null;if(K==null){let L=Me();uh(r.current),ch(L,null),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(K),E.current=!1});pc(()=>{E.current&&R()},[t.collection,R]);let M=Ae(()=>{t.collection.size>0&&(E.current=!1)});pc(()=>{M()},[t.focusedKey,M]),mi(r,G5,c?T=>{var A;T.stopPropagation(),t.setFocused(!1),!((A=T.detail)===null||A===void 0)&&A.clearFocusKey&&t.setFocusedKey(null)}:void 0);const _=d.useRef(o),D=d.useRef(!1);d.useEffect(()=>{if(_.current){var T,A;let H=null;var K;o==="first"&&(H=(K=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&K!==void 0?K:null);var L;o==="last"&&(H=(L=(A=n.getLastKey)===null||A===void 0?void 0:A.call(n))!==null&&L!==void 0?L:null);let z=t.selectedKeys;if(z.size){for(let V of z)if(t.canSelectItem(V)){H=V;break}}t.setFocused(!0),t.setFocusedKey(H),H==null&&!c&&r.current&&xn(r.current),t.collection.size>0&&(_.current=!1,D.current=!0)}});let P=d.useRef(t.focusedKey),I=d.useRef(null);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==P.current||D.current)&&g.current&&r.current){let T=_o(),A=Hi(r,t.focusedKey);if(!(A instanceof HTMLElement))return;(T==="keyboard"||D.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{g.current&&(_0(g.current,A),T!=="virtual"&&vc(A,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&P.current!=null&&r.current&&xn(r.current),P.current=t.focusedKey,D.current=!1}),d.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),mi(r,"react-aria-focus-scope-restore",T=>{T.preventDefault(),t.setFocused(!0)});let N={onKeyDown:x,onFocus:$,onBlur:k,onMouseDown(T){g.current===T.target&&T.preventDefault()}},{typeSelectProps:F}=M9({keyboardDelegate:n,selectionManager:t});h||(N=oe(F,N));let j;c||(j=t.focusedKey==null?0:-1);let O=P9(t.collection);return{collectionProps:oe(N,{tabIndex:j,"data-collection":O})}}function D9(e){let{id:t,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:u,allowsDifferentPressOrigin:h,linkBehavior:c="action"}=e,p=Da();t=it(t);let f=L=>{if(L.pointerType==="keyboard"&&Cl(L))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(c==="selection"&&o.current){let H=n.getItemProps(r);p.open(o.current,L,H.href,H.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(c==="override"||c==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):L&&L.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||L&&(dr(L)||L.pointerType==="touch"||L.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?uh(o.current):s?s():document.activeElement!==o.current&&o.current&&xn(o.current))},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let g={};!a&&!l?g={tabIndex:r===n.focusedKey?0:-1,onFocus(L){L.target===o.current&&n.setFocusedKey(r)}}:l&&(g.onMouseDown=L=>{L.preventDefault()});let m=n.isLink(r)&&c==="override",v=u&&e.UNSTABLE_itemBehavior==="action",b=n.isLink(r)&&c!=="selection"&&c!=="none",x=!l&&n.canSelectItem(r)&&!m&&!v,w=(u||b)&&!l,$=w&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),k=w&&x&&n.selectionBehavior==="replace",E=$||k,R=d.useRef(null),M=E&&x,_=d.useRef(!1),D=d.useRef(!1),P=n.getItemProps(r),I=L=>{if(u){var H;u(),(H=o.current)===null||H===void 0||H.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&p.open(o.current,L,P.href,P.routerOptions)},N={ref:o};if(i?(N.onPressStart=L=>{R.current=L.pointerType,_.current=M,L.pointerType==="keyboard"&&(!E||Uc())&&f(L)},h?(N.onPressUp=$?void 0:L=>{L.pointerType==="mouse"&&x&&f(L)},N.onPress=$?I:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&x&&f(L)}):N.onPress=L=>{if($||k&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!zc())return;I(L)}else L.pointerType!=="keyboard"&&x&&f(L)}):(N.onPressStart=L=>{R.current=L.pointerType,_.current=M,D.current=$,x&&(L.pointerType==="mouse"&&!$||L.pointerType==="keyboard"&&(!w||Uc()))&&f(L)},N.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&E&&zc()||L.pointerType==="mouse"&&D.current)&&(E?I(L):x&&f(L))}),g["data-collection"]=R9(n.collection),g["data-key"]=r,N.preventFocusOnPress=a,a&&(N=oe(N,{onPressStart(L){L.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(L){L.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),P)for(let L of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])P[L]&&(N[L]=Qr(N[L],P[L]));let{pressProps:F,isPressed:j}=Ia(N),O=k?L=>{R.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),I(L))}:void 0,{longPressProps:T}=oh({isDisabled:!M,onLongPress(L){L.pointerType==="touch"&&(f(L),n.setSelectionBehavior("toggle"))}}),A=L=>{R.current==="touch"&&_.current&&L.preventDefault()},K=c!=="none"&&n.isLink(r)?L=>{Gn.isOpening||L.preventDefault()}:void 0;return{itemProps:oe(g,x||$||a&&!l?F:{},M?T:{},{onDoubleClick:O,onDragStartCapture:A,onClick:K,id:t},a?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:j,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:E}}function zc(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Uc(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class qc{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Hi(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left-n.clientLeft+n.scrollLeft,y:i.top-o.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,o,i;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(o=t==null?void 0:t.clientWidth)!==null&&o!==void 0?o:0,height:(i=t==null?void 0:t.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class _9{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let o=this.collection.getItem(r);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(a,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Qn(n))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Qn(n))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new qc(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new qc(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function F9(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=Oy({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=d.useMemo(()=>i||new _9({collection:n,disabledKeys:r,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,n,r,o,s,l]),{collectionProps:h}=T9({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:h}}class L9{build(t,n){return this.context=n,Wc(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(d.isValidElement(n)&&n.type===d.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];d.Children.forEach(n,a=>{a&&o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(d.isValidElement(t.element)&&t.element.type===d.Fragment){let v=[];d.Children.forEach(t.element.props.children,x=>{v.push(x)});var i;let b=(i=t.index)!==null&&i!==void 0?i:0;for(const x of v)yield*this.getFullNode({element:x,index:b++},n,r,o);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let v=this.cache.get(t.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=t.index,v.parentKey=o?o.key:null,yield v;return}a=n.renderer(t.value)}if(d.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let $=a.type;throw new Error(`Unknown element <${$}> in collection.`)}let b=v.getCollectionNode(a.props,this.context);var s;let x=(s=t.index)!==null&&s!==void 0?s:0,w=b.next();for(;!w.done&&w.value;){let $=w.value;t.index=x;var l;let k=(l=$.key)!==null&&l!==void 0?l:null;k==null&&(k=$.element?null:this.getKey(a,t,n,r));let R=[...this.getFullNode({...$,key:k,index:x,wrapper:I9(t.wrapper,$.wrapper)},this.getChildState(n,$),r?`${r}${a.key}`:a.key,o)];for(let M of R){var u,h;M.value=(h=(u=$.value)!==null&&u!==void 0?u:t.value)!==null&&h!==void 0?h:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${fs(M.type)}> in <${fs((c=o==null?void 0:o.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${fs(t.type)}> is supported.`);x++,yield M}w=b.next(R)}return}if(t.key==null||t.type==null)return;let p=this;var f,g;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(f=t.value)!==null&&f!==void 0?f:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(g=t.textValue)!==null&&g!==void 0?g:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Wc(function*(){if(!t.hasChildNodes||!t.childNodes)return;let v=0;for(let b of t.childNodes()){b.key!=null&&(b.key=`${m.key}${b.key}`);let x=p.getFullNode({...b,index:v},p.getChildState(n,b),m.key,m);for(let w of x)v++,yield w}})};yield m}constructor(){this.cache=new WeakMap}}function Wc(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function I9(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function fs(e){return e[0].toUpperCase()+e.slice(1)}function N9(e,t,n){let r=d.useMemo(()=>new L9,[]),{children:o,items:i,collection:a}=e;return d.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function ep(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function j9(e){return A9(e)}function A9(e,t){for(let n of e)return n}function hs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Gc(e,t),t],o=[...Gc(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Gc(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Qc=new WeakMap;function K9(e){let t=Qc.get(e);if(t!=null)return t;let n=0,r=o=>{for(let i of o)i.type==="section"?r(ep(i,e)):i.type==="item"&&n++};return r(e),Qc.set(e,n),n}var tp={};tp={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var np={};np={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var rp={};rp={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var op={};op={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var ip={};ip={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var ap={};ap={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var sp={};sp={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var lp={};lp={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var up={};up={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var cp={};cp={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var dp={};dp={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var fp={};fp={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var hp={};hp={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var pp={};pp={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var gp={};gp={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var mp={};mp={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var vp={};vp={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var bp={};bp={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var yp={};yp={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var xp={};xp={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var wp={};wp={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Cp={};Cp={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var $p={};$p={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Sp={};Sp={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Ep={};Ep={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Pp={};Pp={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Rp={};Rp={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var kp={};kp={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Mp={};Mp={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Op={};Op={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Tp={};Tp={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Dp={};Dp={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var _p={};_p={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Fp={};Fp={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Lp={};Lp={"ar-AE":tp,"bg-BG":np,"cs-CZ":rp,"da-DK":op,"de-DE":ip,"el-GR":ap,"en-US":sp,"es-ES":lp,"et-EE":up,"fi-FI":cp,"fr-FR":dp,"he-IL":fp,"hr-HR":hp,"hu-HU":pp,"it-IT":gp,"ja-JP":mp,"ko-KR":vp,"lt-LT":bp,"lv-LV":yp,"nb-NO":xp,"nl-NL":wp,"pl-PL":Cp,"pt-BR":$p,"pt-PT":Sp,"ro-RO":Ep,"ru-RU":Pp,"sk-SK":Rp,"sl-SI":kp,"sr-SP":Mp,"sv-SE":Op,"tr-TR":Tp,"uk-UA":Dp,"zh-CN":_p,"zh-TW":Fp};function B9(e){return e&&e.__esModule?e.default:e}function H9(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=it(),{triggerProps:s,overlayProps:l}=fh({type:r},t,n),u=f=>{if(!o&&!(i==="longPress"&&!f.altKey)&&n&&n.current)switch(f.key){case"Enter":case" ":if(i==="longPress"||f.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),t.toggle("last");break;default:"continuePropagation"in f&&f.continuePropagation()}},h=z0(B9(Lp),"@react-aria/menu"),{longPressProps:c}=oh({isDisabled:o||i!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(f){f.pointerType!=="touch"&&f.pointerType!=="keyboard"&&!o&&($t(f.target),t.open(f.pointerType==="virtual"?"first":null))},onPress(f){f.pointerType==="touch"&&!o&&($t(f.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:c,id:a,onKeyDown:u},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Ip=new WeakMap;function V9(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let s=Se(e,{labelable:!0}),{listProps:l}=F9({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Ip.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:oe(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:u=>{var h;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((h=l.onKeyDown)===null||h===void 0||h.call(l,u))}})}}function z9(e,t,n){let{id:r,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:u,onPress:h,onPressChange:c,onPressEnd:p,onClick:f,onHoverStart:g,onHoverChange:m,onHoverEnd:v,onKeyDown:b,onKeyUp:x,onFocus:w,onFocusChange:$,onBlur:k,selectionManager:E=t.selectionManager}=e,R=!!s,M=R&&e["aria-expanded"]==="true";var _;let D=(_=e.isDisabled)!==null&&_!==void 0?_:E.isDisabled(o);var P;let I=(P=e.isSelected)!==null&&P!==void 0?P:E.isSelected(o),N=Ip.get(t),F=t.collection.getItem(o),j=e.onClose||N.onClose,O=Da(),T=()=>{var ie;if(!R&&(!(F==null||(ie=F.props)===null||ie===void 0)&&ie.onAction?F.props.onAction():e.onAction&&e.onAction(o),N.onAction)){let Xt=N.onAction;Xt(o)}},A="menuitem";R||(E.selectionMode==="single"?A="menuitemradio":E.selectionMode==="multiple"&&(A="menuitemcheckbox"));let K=Ki(),L=Ki(),H=Ki(),z={id:r,"aria-disabled":D||void 0,role:A,"aria-label":e["aria-label"],"aria-labelledby":K,"aria-describedby":[L,H].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};E.selectionMode!=="none"&&!R&&(z["aria-checked"]=I),a&&(z["aria-posinset"]=F==null?void 0:F.index,z["aria-setsize"]=K9(t.collection));let V=d.useRef(!1),W=ie=>{c==null||c(ie),V.current=ie},q=d.useRef(null),ne=ie=>{ie.pointerType!=="keyboard"&&(q.current={pointerType:ie.pointerType}),ie.pointerType==="mouse"&&(V.current||ie.target.click()),u==null||u(ie)},pe=ie=>{var Xt,Ye;f==null||f(ie),T(),A5(ie,O,F.props.href,F==null?void 0:F.props.routerOptions);let to=((Xt=q.current)===null||Xt===void 0?void 0:Xt.pointerType)==="keyboard"?((Ye=q.current)===null||Ye===void 0?void 0:Ye.key)==="Enter"||E.selectionMode==="none"||E.isLink(o):E.selectionMode!=="multiple"||E.isLink(o);to=i??to,j&&!R&&to&&j(),q.current=null},{itemProps:ee,isFocused:Be}=D9({id:r,selectionManager:E,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:N.shouldUseVirtualFocus}),{pressProps:Et,isPressed:Pt}=Ia({onPressStart:l,onPress:h,onPressUp:ne,onPressChange:W,onPressEnd:p,isDisabled:D}),{hoverProps:Y}=Zr({isDisabled:D,onHoverStart(ie){!Do()&&!(M&&s)&&(E.setFocused(!0),E.setFocusedKey(o)),g==null||g(ie)},onHoverChange:m,onHoverEnd:v}),{keyboardProps:mt}=th({onKeyDown:ie=>{if(ie.repeat){ie.continuePropagation();return}switch(ie.key){case" ":q.current={pointerType:"keyboard",key:" "},ie.target.click();break;case"Enter":q.current={pointerType:"keyboard",key:"Enter"},ie.target.tagName!=="A"&&ie.target.click();break;default:R||ie.continuePropagation(),b==null||b(ie);break}},onKeyUp:x}),{focusProps:Qe}=du({onBlur:k,onFocus:w,onFocusChange:$}),Rn=Se(F==null?void 0:F.props);delete Rn.id;let ii=j5(F==null?void 0:F.props);return{menuItemProps:{...z,...oe(Rn,ii,R?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,Et,Y,mt,Qe,N.shouldUseVirtualFocus||R?{onMouseDown:ie=>ie.preventDefault()}:void 0,D?void 0:{onClick:pe}),tabIndex:ee.tabIndex!=null&&M&&!N.shouldUseVirtualFocus?-1:ee.tabIndex},labelProps:{id:K},descriptionProps:{id:L},keyboardShortcutProps:{id:H},isFocused:Be,isFocusVisible:Be&&E.isFocused&&Do()&&!M,isSelected:I,isPressed:Pt,isDisabled:D}}function U9(e){let{heading:t,"aria-label":n}=e,r=it();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class Jr{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let o=this.clone();return n.addDescendants(o,t),o}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class Np extends Jr{filter(t,n,r){let[o,i]=Ap(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}}class q9 extends Jr{}q9.type="header";class W9 extends Jr{}W9.type="loader";class jp extends Np{filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}}jp.type="item";class G9 extends Np{filter(t,n,r){let o=super.filter(t,n,r);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}}G9.type="section";class Q9{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let o of r)this.addDescendants(o,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,o]=Ap(this,n,this.firstKey,t);return n==null||n.commit(r,o),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Ap(e,t,n,r){if(n==null)return[null,null];let o=null,i=null,a=e.getItem(n);for(;a!=null;){let u=a.filter(e,t,r);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var s,l;return[(s=o==null?void 0:o.key)!==null&&s!==void 0?s:null,(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null]}class Kp{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class wr extends Kp{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof wr?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,o,i,a,s,l;let u=this.nextVisibleSibling,h=this.getMutableNode();if(h!=null){h.index=this.index,h.level=this.level;var c;h.parentKey=this.parentNode instanceof wr&&(c=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var p;h.prevKey=(p=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&p!==void 0?p:null;var f;h.nextKey=(f=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&f!==void 0?f:null,h.hasChildNodes=!!this.firstChild;var g;h.firstChildKey=(g=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&g!==void 0?g:null;var m;if(h.lastChildKey=(m=(l=this.lastVisibleChild)===null||l===void 0||(s=l.node)===null||s===void 0?void 0:s.key)!==null&&m!==void 0?m:null,(h.colSpan!=null||h.colIndex!=null)&&u){var v,b;let x=((v=h.colIndex)!==null&&v!==void 0?v:h.index)+((b=h.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&x!==u.node.colIndex){let w=u.getMutableNode();w.colIndex=x}}}}setProps(t,n,r,o,i){let a,{value:s,textValue:l,id:u,...h}=t;if(this.node==null?(a=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),h.ref=n,a.props=h,a.rendered=o,a.render=i,a.value=s,a.textValue=l||(typeof h.children=="string"?h.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(a.colSpan=h.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,s=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),s&&t.ownerDocument.markDirty(s),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class Y9 extends Kp{get isConnected(){return!0}createElement(t){return new wr(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof wr&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof wr?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var t,n,r,o,i,a;this.nextCollection.commit((i=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&i!==void 0?i:null,(a=(o=this.lastVisibleChild)===null||o===void 0||(r=o.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function Bp(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=d.useMemo(()=>new WeakMap,i);return d.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let h of n){let c=a.get(h);if(!c){c=t(h);var s,l;let p=(l=(s=c.props.id)!==null&&s!==void 0?s:h.key)!==null&&l!==void 0?l:h.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),c=d.cloneElement(c,o?{key:p,id:p,value:h}:{key:p}),a.set(h,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,a,r,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const ra=d.createContext(!1);function X9(e){if(d.useContext(ra))return d.createElement(d.Fragment,null,e.children);let n=d.createElement(ra.Provider,{value:!0},e.children);return d.createElement("template",{"data-react-aria-hidden":!0},n)}function Z9(e){let t=(n,r)=>d.useContext(ra)?null:e(n,r);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function J9(){return d.useContext(ra)}var Hp={exports:{}},Vp={};/**
|
|
31
|
+
}`.trim(),document.head.prepend(r);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},i=l=>{let u=l.target,h=l.relatedTarget;if(h&&mo(h))h.focus({preventScroll:!0}),Bc(h,mo(u));else if(!h){var c;let p=(c=u.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");p==null||p.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let u=document.activeElement!=null&&mo(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&Bc(this,u)};let s=Ur(fs(document,"touchstart",n,{passive:!1,capture:!0}),fs(document,"touchmove",o,{passive:!1,capture:!0}),fs(document,"blur",i,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=a}}function ds(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function fs(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Bc(e,t){t||!bo?Hc(e):bo.addEventListener("resize",()=>Hc(e),{once:!0})}function Hc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=j0(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+n.clientHeight){let a=o.bottom;bo&&(a=Math.min(a,bo.offsetTop+bo.height));let s=i.top-o.top-((a-o.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const P9=d.createContext({});function wh(){var e;return(e=d.useContext(P9))!==null&&e!==void 0?e:{}}const xl=d.createContext(null);function R9(e){let{children:t}=e,n=d.useContext(xl),[r,o]=d.useState(0),i=d.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return d.createElement(xl.Provider,{value:i},t)}function k9(){let e=d.useContext(xl);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function M9(e){let{modalProviderProps:t}=k9();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function O9(e){return d.createElement(R9,null,d.createElement(M9,e))}function T9(e){let t=$n(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=wh();if(!e.portalContainer&&o&&(n=o()),d.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=d.createElement(O9,r);return Br.createPortal(i,n)}var Ch={};Ch={dismiss:"تجاهل"};var $h={};$h={dismiss:"Отхвърляне"};var Sh={};Sh={dismiss:"Odstranit"};var Eh={};Eh={dismiss:"Luk"};var Ph={};Ph={dismiss:"Schließen"};var Rh={};Rh={dismiss:"Απόρριψη"};var kh={};kh={dismiss:"Dismiss"};var Mh={};Mh={dismiss:"Descartar"};var Oh={};Oh={dismiss:"Lõpeta"};var Th={};Th={dismiss:"Hylkää"};var Dh={};Dh={dismiss:"Rejeter"};var _h={};_h={dismiss:"התעלם"};var Lh={};Lh={dismiss:"Odbaci"};var Fh={};Fh={dismiss:"Elutasítás"};var Ih={};Ih={dismiss:"Ignora"};var jh={};jh={dismiss:"閉じる"};var Nh={};Nh={dismiss:"무시"};var Ah={};Ah={dismiss:"Atmesti"};var Kh={};Kh={dismiss:"Nerādīt"};var Bh={};Bh={dismiss:"Lukk"};var Hh={};Hh={dismiss:"Negeren"};var Vh={};Vh={dismiss:"Zignoruj"};var zh={};zh={dismiss:"Descartar"};var Uh={};Uh={dismiss:"Dispensar"};var qh={};qh={dismiss:"Revocare"};var Wh={};Wh={dismiss:"Пропустить"};var Gh={};Gh={dismiss:"Zrušiť"};var Qh={};Qh={dismiss:"Opusti"};var Yh={};Yh={dismiss:"Odbaci"};var Xh={};Xh={dismiss:"Avvisa"};var Zh={};Zh={dismiss:"Kapat"};var Jh={};Jh={dismiss:"Скасувати"};var ep={};ep={dismiss:"取消"};var tp={};tp={dismiss:"關閉"};var np={};np={"ar-AE":Ch,"bg-BG":$h,"cs-CZ":Sh,"da-DK":Eh,"de-DE":Ph,"el-GR":Rh,"en-US":kh,"es-ES":Mh,"et-EE":Oh,"fi-FI":Th,"fr-FR":Dh,"he-IL":_h,"hr-HR":Lh,"hu-HU":Fh,"it-IT":Ih,"ja-JP":jh,"ko-KR":Nh,"lt-LT":Ah,"lv-LV":Kh,"nb-NO":Bh,"nl-NL":Hh,"pl-PL":Vh,"pt-BR":zh,"pt-PT":Uh,"ro-RO":qh,"ru-RU":Wh,"sk-SK":Gh,"sl-SI":Qh,"sr-SP":Yh,"sv-SE":Xh,"tr-TR":Zh,"uk-UA":Jh,"zh-CN":ep,"zh-TW":tp};const Vc={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function D9(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:i}=fu({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>r?t:t?{...Vc,...t}:Vc,[r]);return{visuallyHiddenProps:{...i,style:a}}}function _9(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=D9(e);return d.createElement(n,ie(i,a),t)}function L9(e){return e&&e.__esModule?e.default:e}function wl(e){let{onDismiss:t,...n}=e,r=X0(L9(np),"@react-aria/overlays"),o=I0(n,r.format("dismiss")),i=()=>{t&&t()};return d.createElement(_9,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const F9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let to=new WeakMap,He=[];function rp(e,t){let n=dt(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var o;let i=(o=r==null?void 0:r.root)!==null&&o!==void 0?o:document.body,a=(r==null?void 0:r.shouldUseInert)&&F9,s=new Set(e),l=new Set,u=m=>a&&m instanceof n.HTMLElement?m.inert:m.getAttribute("aria-hidden")==="true",h=(m,v)=>{a&&m instanceof n.HTMLElement?m.inert=v:v?m.setAttribute("aria-hidden","true"):(m.removeAttribute("aria-hidden"),m instanceof n.HTMLElement&&(m.inert=!1))},c=m=>{for(let w of m.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(w);let v=w=>{if(l.has(w)||s.has(w)||w.parentElement&&l.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let S of s)if(w.contains(S))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),x=v(m);if(x===NodeFilter.FILTER_ACCEPT&&p(m),x!==NodeFilter.FILTER_REJECT){let w=b.nextNode();for(;w!=null;)p(w),w=b.nextNode()}},p=m=>{var v;let b=(v=to.get(m))!==null&&v!==void 0?v:0;u(m)&&b===0||(b===0&&h(m,!0),l.add(m),to.set(m,b+1))};He.length&&He[He.length-1].disconnect(),c(i);let f=new MutationObserver(m=>{for(let v of m)if(v.type==="childList"&&![...s,...l].some(b=>b.contains(v.target)))for(let b of v.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?s.add(b):b instanceof Element&&c(b)});f.observe(i,{childList:!0,subtree:!0});let g={visibleNodes:s,hiddenNodes:l,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return He.push(g),()=>{f.disconnect();for(let m of l){let v=to.get(m);v!=null&&(v===1?(h(m,!1),to.delete(m)):to.set(m,v-1))}g===He[He.length-1]?(He.pop(),He.length&&He[He.length-1].observe()):He.splice(He.indexOf(g),1)}}function I9(e){let t=He[He.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function j9(e,t){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...l}=e,u=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:c}=bh({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},o??r),{overlayProps:p,arrowProps:f,placement:g,triggerAnchorPoint:m}=J0({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return xh({isDisabled:i||!t.isOpen}),d.useEffect(()=>{if(t.isOpen&&r.current){var v,b;return i?I9((v=o==null?void 0:o.current)!==null&&v!==void 0?v:r.current):rp([(b=o==null?void 0:o.current)!==null&&b!==void 0?b:r.current],{shouldUseInert:!0})}},[i,t.isOpen,r,o]),{popoverProps:ie(h,p),arrowProps:f,underlayProps:c,placement:g,triggerAnchorPoint:m}}const op=d.createContext(null);function Cl(e){let t=$n(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=d.useState(!1),a=d.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=wh();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=d.createElement(fh,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!r},l)),l=d.createElement(op.Provider,{value:a},d.createElement(u9,null,l)),Br.createPortal(l,n)}function ip(){let e=d.useContext(op),t=e==null?void 0:e.setContain;le(()=>{t==null||t(!0)},[t])}function N9(e,t,n){let{overlayProps:r,underlayProps:o}=bh({...e,isOpen:t.isOpen,onClose:t.close},n);return xh({isDisabled:!t.isOpen}),ip(),d.useEffect(()=>{if(t.isOpen&&n.current)return rp([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:ie(r),underlayProps:o}}function A9(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=ot(t);let a=ot(),s={};n&&(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0});let l=I0({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function $l(e){return U5()?e.altKey:e.ctrlKey}function Hi(e,t){var n,r;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(o)}const ap=new WeakMap;function K9(e){let t=ot();return ap.set(e,t),t}function B9(e){return ap.get(e)}const H9=1e3;function V9(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:void 0}).current,i=a=>{let s=z9(a.key);if(!(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&s===" ")){if(s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},H9)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function z9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function U9(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:c,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:g=r,linkBehavior:m="action"}=e,{direction:v}=Yn(),b=Ta(),x=O=>{var L;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((L=r.current)===null||L===void 0)&&L.contains(O.target)))return;const B=(Q,je)=>{if(Q!=null){if(t.isLink(Q)&&m==="selection"&&u&&!$l(O)){Br.flushSync(()=>{t.setFocusedKey(Q,je)});let _e=Hi(r,Q),Jn=t.getItemProps(Q);_e&&b.open(_e,O,Jn.href,Jn.routerOptions);return}if(t.setFocusedKey(Q,je),t.isLink(Q)&&m==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Q):u&&!$l(O)&&t.replaceSelection(Q)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var U,W,$;let Q=t.focusedKey!=null?(U=n.getKeyBelow)===null||U===void 0?void 0:U.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);Q==null&&i&&(Q=($=n.getFirstKey)===null||$===void 0?void 0:$.call(n,t.focusedKey)),Q!=null&&(O.preventDefault(),B(Q))}break;case"ArrowUp":if(n.getKeyAbove){var F,T,N;let Q=t.focusedKey!=null?(F=n.getKeyAbove)===null||F===void 0?void 0:F.call(n,t.focusedKey):(T=n.getLastKey)===null||T===void 0?void 0:T.call(n);Q==null&&i&&(Q=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),Q!=null&&(O.preventDefault(),B(Q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var H,A,Z;let Q=t.focusedKey!=null?(H=n.getKeyLeftOf)===null||H===void 0?void 0:H.call(n,t.focusedKey):null;Q==null&&i&&(Q=v==="rtl"?(A=n.getFirstKey)===null||A===void 0?void 0:A.call(n,t.focusedKey):(Z=n.getLastKey)===null||Z===void 0?void 0:Z.call(n,t.focusedKey)),Q!=null&&(O.preventDefault(),B(Q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var he,te,ye;let Q=t.focusedKey!=null?(he=n.getKeyRightOf)===null||he===void 0?void 0:he.call(n,t.focusedKey):null;Q==null&&i&&(Q=v==="rtl"?(te=n.getLastKey)===null||te===void 0?void 0:te.call(n,t.focusedKey):(ye=n.getFirstKey)===null||ye===void 0?void 0:ye.call(n,t.focusedKey)),Q!=null&&(O.preventDefault(),B(Q,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Q=n.getFirstKey(t.focusedKey,lr(O));t.setFocusedKey(Q),Q!=null&&(lr(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Q):u&&t.replaceSelection(Q))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Q=n.getLastKey(t.focusedKey,lr(O));t.setFocusedKey(Q),Q!=null&&(lr(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Q):u&&t.replaceSelection(Q))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Q=n.getKeyPageBelow(t.focusedKey);Q!=null&&(O.preventDefault(),B(Q))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Q=n.getKeyPageAbove(t.focusedKey);Q!=null&&(O.preventDefault(),B(Q))}break;case"a":lr(O)&&t.selectionMode==="multiple"&&s!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(O.shiftKey)r.current.focus();else{let Q=nt(r.current,{tabbable:!0}),je,_e;do _e=Q.lastChild(),_e&&(je=_e);while(_e);je&&(!je.contains(document.activeElement)||document.activeElement&&!H0(document.activeElement))&&$t(je)}break}}},w=d.useRef({top:0,left:0});mi(g,"scroll",f?void 0:()=>{var O,L,B,U;w.current={top:(B=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&B!==void 0?B:0,left:(U=(L=g.current)===null||L===void 0?void 0:L.scrollLeft)!==null&&U!==void 0?U:0}});let S=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var L,B;let $=T=>{T!=null&&(t.setFocusedKey(T),u&&!t.isSelected(T)&&t.replaceSelection(T))},F=O.relatedTarget;var U,W;F&&O.currentTarget.compareDocumentPosition(F)&Node.DOCUMENT_POSITION_FOLLOWING?$((U=t.lastSelectedKey)!==null&&U!==void 0?U:(L=n.getLastKey)===null||L===void 0?void 0:L.call(n)):$((W=t.firstSelectedKey)!==null&&W!==void 0?W:(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n))}else!f&&g.current&&(g.current.scrollTop=w.current.top,g.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&g.current){let $=Hi(r,t.focusedKey);$ instanceof HTMLElement&&(!$.contains(document.activeElement)&&!c&&$t($),Do()==="keyboard"&&vc($,{containingElement:r.current}))}}},k=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)},P=d.useRef(!1);mi(r,uy,c?O=>{let{detail:L}=O;O.stopPropagation(),t.setFocused(!0),(L==null?void 0:L.focusStrategy)==="first"&&(P.current=!0)}:void 0),pc(()=>{if(P.current){var O,L;let B=(L=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&L!==void 0?L:null;if(B==null){let U=Me();mh(r.current),vh(U,null),t.collection.size>0&&(P.current=!1)}else t.setFocusedKey(B),P.current=!1}},[t.collection]),pc(()=>{t.collection.size>0&&(P.current=!1)},[t.focusedKey]),mi(r,ly,c?O=>{var L;O.stopPropagation(),t.setFocused(!1),!((L=O.detail)===null||L===void 0)&&L.clearFocusKey&&t.setFocusedKey(null)}:void 0);const R=d.useRef(o),M=d.useRef(!1);d.useEffect(()=>{if(R.current){var O,L;let W=null;var B;o==="first"&&(W=(B=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&B!==void 0?B:null);var U;o==="last"&&(W=(U=(L=n.getLastKey)===null||L===void 0?void 0:L.call(n))!==null&&U!==void 0?U:null);let $=t.selectedKeys;if($.size){for(let F of $)if(t.canSelectItem(F)){W=F;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!c&&r.current&&bn(r.current),t.collection.size>0&&(R.current=!1,M.current=!0)}});let _=d.useRef(t.focusedKey),D=d.useRef(null);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||M.current)&&g.current&&r.current){let O=Do(),L=Hi(r,t.focusedKey);if(!(L instanceof HTMLElement))return;(O==="keyboard"||M.current)&&(D.current&&cancelAnimationFrame(D.current),D.current=requestAnimationFrame(()=>{g.current&&(N0(g.current,L),O!=="virtual"&&vc(L,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&_.current!=null&&r.current&&bn(r.current),_.current=t.focusedKey,M.current=!1}),d.useEffect(()=>()=>{D.current&&cancelAnimationFrame(D.current)},[]),mi(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let j={onKeyDown:x,onFocus:S,onBlur:k,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:K}=V9({keyboardDelegate:n,selectionManager:t});h||(j=ie(K,j));let I;c||(I=t.focusedKey==null?0:-1);let z=K9(t.collection);return{collectionProps:ie(j,{tabIndex:I,"data-collection":z})}}function q9(e){let{id:t,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:u,allowsDifferentPressOrigin:h,linkBehavior:c="action"}=e,p=Ta();t=ot(t);let f=$=>{if($.pointerType==="keyboard"&&$l($))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(c==="selection"&&o.current){let F=n.getItemProps(r);p.open(o.current,$,F.href,F.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(c==="override"||c==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):$&&$.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||$&&(lr($)||$.pointerType==="touch"||$.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?mh(o.current):s?s():document.activeElement!==o.current&&o.current&&bn(o.current))},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let g={};!a&&!l?g={tabIndex:r===n.focusedKey?0:-1,onFocus($){$.target===o.current&&n.setFocusedKey(r)}}:l&&(g.onMouseDown=$=>{$.preventDefault()});let m=n.isLink(r)&&c==="override",v=u&&e.UNSTABLE_itemBehavior==="action",b=n.isLink(r)&&c!=="selection"&&c!=="none",x=!l&&n.canSelectItem(r)&&!m&&!v,w=(u||b)&&!l,S=w&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),k=w&&x&&n.selectionBehavior==="replace",P=S||k,R=d.useRef(null),M=P&&x,_=d.useRef(!1),D=d.useRef(!1),j=n.getItemProps(r),K=$=>{if(u){var F;u(),(F=o.current)===null||F===void 0||F.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&p.open(o.current,$,j.href,j.routerOptions)},I={ref:o};if(i?(I.onPressStart=$=>{R.current=$.pointerType,_.current=M,$.pointerType==="keyboard"&&(!P||Uc())&&f($)},h?(I.onPressUp=S?void 0:$=>{$.pointerType==="mouse"&&x&&f($)},I.onPress=S?K:$=>{$.pointerType!=="keyboard"&&$.pointerType!=="mouse"&&x&&f($)}):I.onPress=$=>{if(S||k&&$.pointerType!=="mouse"){if($.pointerType==="keyboard"&&!zc())return;K($)}else $.pointerType!=="keyboard"&&x&&f($)}):(I.onPressStart=$=>{R.current=$.pointerType,_.current=M,D.current=S,x&&($.pointerType==="mouse"&&!S||$.pointerType==="keyboard"&&(!w||Uc()))&&f($)},I.onPress=$=>{($.pointerType==="touch"||$.pointerType==="pen"||$.pointerType==="virtual"||$.pointerType==="keyboard"&&P&&zc()||$.pointerType==="mouse"&&D.current)&&(P?K($):x&&f($))}),g["data-collection"]=B9(n.collection),g["data-key"]=r,I.preventFocusOnPress=a,a&&(I=ie(I,{onPressStart($){$.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress($){$.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),j)for(let $ of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])j[$]&&(I[$]=Ur(I[$],j[$]));let{pressProps:z,isPressed:O}=Fa(I),L=k?$=>{R.current==="mouse"&&($.stopPropagation(),$.preventDefault(),K($))}:void 0,{longPressProps:B}=dh({isDisabled:!M,onLongPress($){$.pointerType==="touch"&&(f($),n.setSelectionBehavior("toggle"))}}),U=$=>{R.current==="touch"&&_.current&&$.preventDefault()},W=c!=="none"&&n.isLink(r)?$=>{Ut.isOpening||$.preventDefault()}:void 0;return{itemProps:ie(g,x||S||a&&!l?z:{},M?B:{},{onDoubleClick:L,onDragStartCapture:U,onClick:W,id:t},a?{onMouseDown:$=>$.preventDefault()}:void 0),isPressed:O,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:P}}function zc(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Uc(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class qc{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Hi(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left-n.clientLeft+n.scrollLeft,y:i.top-o.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,o,i;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(o=t==null?void 0:t.clientWidth)!==null&&o!==void 0?o:0,height:(i=t==null?void 0:t.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class W9{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let o=this.collection.getItem(r);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(a,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Un(n))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Un(n))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new qc(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new qc(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function G9(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=zy({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=d.useMemo(()=>i||new W9({collection:n,disabledKeys:r,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,n,r,o,s,l]),{collectionProps:h}=U9({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:h}}class Q9{build(t,n){return this.context=n,Wc(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(d.isValidElement(n)&&n.type===d.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];d.Children.forEach(n,a=>{a&&o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(d.isValidElement(t.element)&&t.element.type===d.Fragment){let v=[];d.Children.forEach(t.element.props.children,x=>{v.push(x)});var i;let b=(i=t.index)!==null&&i!==void 0?i:0;for(const x of v)yield*this.getFullNode({element:x,index:b++},n,r,o);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let v=this.cache.get(t.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=t.index,v.parentKey=o?o.key:null,yield v;return}a=n.renderer(t.value)}if(d.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let S=a.type;throw new Error(`Unknown element <${S}> in collection.`)}let b=v.getCollectionNode(a.props,this.context);var s;let x=(s=t.index)!==null&&s!==void 0?s:0,w=b.next();for(;!w.done&&w.value;){let S=w.value;t.index=x;var l;let k=(l=S.key)!==null&&l!==void 0?l:null;k==null&&(k=S.element?null:this.getKey(a,t,n,r));let R=[...this.getFullNode({...S,key:k,index:x,wrapper:Y9(t.wrapper,S.wrapper)},this.getChildState(n,S),r?`${r}${a.key}`:a.key,o)];for(let M of R){var u,h;M.value=(h=(u=S.value)!==null&&u!==void 0?u:t.value)!==null&&h!==void 0?h:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${hs(M.type)}> in <${hs((c=o==null?void 0:o.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${hs(t.type)}> is supported.`);x++,yield M}w=b.next(R)}return}if(t.key==null||t.type==null)return;let p=this;var f,g;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(f=t.value)!==null&&f!==void 0?f:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(g=t.textValue)!==null&&g!==void 0?g:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Wc(function*(){if(!t.hasChildNodes||!t.childNodes)return;let v=0;for(let b of t.childNodes()){b.key!=null&&(b.key=`${m.key}${b.key}`);let x=p.getFullNode({...b,index:v},p.getChildState(n,b),m.key,m);for(let w of x)v++,yield w}})};yield m}constructor(){this.cache=new WeakMap}}function Wc(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Y9(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function hs(e){return e[0].toUpperCase()+e.slice(1)}function X9(e,t,n){let r=d.useMemo(()=>new Q9,[]),{children:o,items:i,collection:a}=e;return d.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function sp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Z9(e){return J9(e)}function J9(e,t){for(let n of e)return n}function ps(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Gc(e,t),t],o=[...Gc(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Gc(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Qc=new WeakMap;function e4(e){let t=Qc.get(e);if(t!=null)return t;let n=0,r=o=>{for(let i of o)i.type==="section"?r(sp(i,e)):i.type==="item"&&n++};return r(e),Qc.set(e,n),n}var lp={};lp={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var up={};up={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var cp={};cp={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var dp={};dp={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var fp={};fp={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var hp={};hp={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var pp={};pp={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var gp={};gp={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var mp={};mp={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var vp={};vp={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var bp={};bp={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var yp={};yp={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var xp={};xp={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var wp={};wp={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Cp={};Cp={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var $p={};$p={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Sp={};Sp={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Ep={};Ep={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Pp={};Pp={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Rp={};Rp={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var kp={};kp={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Mp={};Mp={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Op={};Op={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Tp={};Tp={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Dp={};Dp={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var _p={};_p={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Lp={};Lp={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Fp={};Fp={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Ip={};Ip={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var jp={};jp={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Np={};Np={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Ap={};Ap={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Kp={};Kp={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Bp={};Bp={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Hp={};Hp={"ar-AE":lp,"bg-BG":up,"cs-CZ":cp,"da-DK":dp,"de-DE":fp,"el-GR":hp,"en-US":pp,"es-ES":gp,"et-EE":mp,"fi-FI":vp,"fr-FR":bp,"he-IL":yp,"hr-HR":xp,"hu-HU":wp,"it-IT":Cp,"ja-JP":$p,"ko-KR":Sp,"lt-LT":Ep,"lv-LV":Pp,"nb-NO":Rp,"nl-NL":kp,"pl-PL":Mp,"pt-BR":Op,"pt-PT":Tp,"ro-RO":Dp,"ru-RU":_p,"sk-SK":Lp,"sl-SI":Fp,"sr-SP":Ip,"sv-SE":jp,"tr-TR":Np,"uk-UA":Ap,"zh-CN":Kp,"zh-TW":Bp};function t4(e){return e&&e.__esModule?e.default:e}function n4(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=ot(),{triggerProps:s,overlayProps:l}=yh({type:r},t,n),u=f=>{if(!o&&!(i==="longPress"&&!f.altKey)&&n&&n.current)switch(f.key){case"Enter":case" ":if(i==="longPress"||f.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),t.toggle("last");break;default:"continuePropagation"in f&&f.continuePropagation()}},h=X0(t4(Hp),"@react-aria/menu"),{longPressProps:c}=dh({isDisabled:o||i!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(f){f.pointerType!=="touch"&&f.pointerType!=="keyboard"&&!o&&($t(f.target),t.open(f.pointerType==="virtual"?"first":null))},onPress(f){f.pointerType==="touch"&&!o&&($t(f.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:c,id:a,onKeyDown:u},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Vp=new WeakMap;function r4(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let s=Ee(e,{labelable:!0}),{listProps:l}=G9({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Vp.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ie(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:u=>{var h;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((h=l.onKeyDown)===null||h===void 0||h.call(l,u))}})}}function o4(e,t,n){let{id:r,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:u,onPress:h,onPressChange:c,onPressEnd:p,onClick:f,onHoverStart:g,onHoverChange:m,onHoverEnd:v,onKeyDown:b,onKeyUp:x,onFocus:w,onFocusChange:S,onBlur:k,selectionManager:P=t.selectionManager}=e,R=!!s,M=R&&e["aria-expanded"]==="true";var _;let D=(_=e.isDisabled)!==null&&_!==void 0?_:P.isDisabled(o);var j;let K=(j=e.isSelected)!==null&&j!==void 0?j:P.isSelected(o),I=Vp.get(t),z=t.collection.getItem(o),O=e.onClose||I.onClose,L=Ta(),B=()=>{var ae;if(!R&&(!(z==null||(ae=z.props)===null||ae===void 0)&&ae.onAction?z.props.onAction():e.onAction&&e.onAction(o),I.onAction)){let Gt=I.onAction;Gt(o)}},U="menuitem";R||(P.selectionMode==="single"?U="menuitemradio":P.selectionMode==="multiple"&&(U="menuitemcheckbox"));let W=Ki(),$=Ki(),F=Ki(),T={id:r,"aria-disabled":D||void 0,role:U,"aria-label":e["aria-label"],"aria-labelledby":W,"aria-describedby":[$,F].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};P.selectionMode!=="none"&&!R&&(T["aria-checked"]=K),a&&(T["aria-posinset"]=z==null?void 0:z.index,T["aria-setsize"]=e4(t.collection));let N=d.useRef(!1),H=ae=>{c==null||c(ae),N.current=ae},A=d.useRef(null),Z=ae=>{ae.pointerType!=="keyboard"&&(A.current={pointerType:ae.pointerType}),ae.pointerType==="mouse"&&(N.current||ae.target.click()),u==null||u(ae)},he=ae=>{var Gt,Qe;f==null||f(ae),B(),Z5(ae,L,z.props.href,z==null?void 0:z.props.routerOptions);let Zr=((Gt=A.current)===null||Gt===void 0?void 0:Gt.pointerType)==="keyboard"?((Qe=A.current)===null||Qe===void 0?void 0:Qe.key)==="Enter"||P.selectionMode==="none"||P.isLink(o):P.selectionMode!=="multiple"||P.isLink(o);Zr=i??Zr,O&&!R&&Zr&&O(),A.current=null},{itemProps:te,isFocused:ye}=q9({id:r,selectionManager:P,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:Q,isPressed:je}=Fa({onPressStart:l,onPress:h,onPressUp:Z,onPressChange:H,onPressEnd:p,isDisabled:D}),{hoverProps:_e}=Gr({isDisabled:D,onHoverStart(ae){!To()&&!(M&&s)&&(P.setFocused(!0),P.setFocusedKey(o)),g==null||g(ae)},onHoverChange:m,onHoverEnd:v}),{keyboardProps:Jn}=lh({onKeyDown:ae=>{if(ae.repeat){ae.continuePropagation();return}switch(ae.key){case" ":A.current={pointerType:"keyboard",key:" "},ae.target.click();break;case"Enter":A.current={pointerType:"keyboard",key:"Enter"},ae.target.tagName!=="A"&&ae.target.click();break;default:R||ae.continuePropagation(),b==null||b(ae);break}},onKeyUp:x}),{focusProps:Xr}=du({onBlur:k,onFocus:w,onFocusChange:S}),oi=Ee(z==null?void 0:z.props);delete oi.id;let ii=X5(z==null?void 0:z.props);return{menuItemProps:{...T,...ie(oi,ii,R?{onFocus:te.onFocus,"data-collection":te["data-collection"],"data-key":te["data-key"]}:te,Q,_e,Jn,Xr,I.shouldUseVirtualFocus||R?{onMouseDown:ae=>ae.preventDefault()}:void 0,D?void 0:{onClick:he}),tabIndex:te.tabIndex!=null&&M&&!I.shouldUseVirtualFocus?-1:te.tabIndex},labelProps:{id:W},descriptionProps:{id:$},keyboardShortcutProps:{id:F},isFocused:ye,isFocusVisible:ye&&P.isFocused&&To()&&!M,isSelected:K,isPressed:je,isDisabled:D}}function i4(e){let{heading:t,"aria-label":n}=e,r=ot();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class Qr{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let o=this.clone();return n.addDescendants(o,t),o}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class zp extends Qr{filter(t,n,r){let[o,i]=qp(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}}class a4 extends Qr{}a4.type="header";class s4 extends Qr{}s4.type="loader";class Up extends zp{filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}}Up.type="item";class l4 extends zp{filter(t,n,r){let o=super.filter(t,n,r);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}}l4.type="section";class u4{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let o of r)this.addDescendants(o,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,o]=qp(this,n,this.firstKey,t);return n==null||n.commit(r,o),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function qp(e,t,n,r){if(n==null)return[null,null];let o=null,i=null,a=e.getItem(n);for(;a!=null;){let u=a.filter(e,t,r);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var s,l;return[(s=o==null?void 0:o.key)!==null&&s!==void 0?s:null,(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null]}class Wp{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class vr extends Wp{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof vr?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,o,i,a,s,l;let u=this.nextVisibleSibling,h=this.getMutableNode();if(h!=null){h.index=this.index,h.level=this.level;var c;h.parentKey=this.parentNode instanceof vr&&(c=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var p;h.prevKey=(p=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&p!==void 0?p:null;var f;h.nextKey=(f=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&f!==void 0?f:null,h.hasChildNodes=!!this.firstChild;var g;h.firstChildKey=(g=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&g!==void 0?g:null;var m;if(h.lastChildKey=(m=(l=this.lastVisibleChild)===null||l===void 0||(s=l.node)===null||s===void 0?void 0:s.key)!==null&&m!==void 0?m:null,(h.colSpan!=null||h.colIndex!=null)&&u){var v,b;let x=((v=h.colIndex)!==null&&v!==void 0?v:h.index)+((b=h.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&x!==u.node.colIndex){let w=u.getMutableNode();w.colIndex=x}}}}setProps(t,n,r,o,i){let a,{value:s,textValue:l,id:u,...h}=t;if(this.node==null?(a=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),h.ref=n,a.props=h,a.rendered=o,a.render=i,a.value=s,t["aria-label"]&&(a["aria-label"]=t["aria-label"]),a.textValue=l||(typeof h.children=="string"?h.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(a.colSpan=h.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,s=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),s&&t.ownerDocument.markDirty(s),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class c4 extends Wp{get isConnected(){return!0}createElement(t){return new vr(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof vr&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof vr?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var t,n,r,o,i,a;this.nextCollection.commit((i=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&i!==void 0?i:null,(a=(o=this.lastVisibleChild)===null||o===void 0||(r=o.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function Gp(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=d.useMemo(()=>new WeakMap,i);return d.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let h of n){let c=a.get(h);if(!c){c=t(h);var s,l;let p=(l=(s=c.props.id)!==null&&s!==void 0?s:h.key)!==null&&l!==void 0?l:h.id;if(p==null)throw new Error("Could not determine key for item");r!=null&&(p=r+":"+p),c=d.cloneElement(c,o?{key:p,id:p,value:h}:{key:p}),a.set(h,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,a,r,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const ra=d.createContext(!1);function d4(e){if(d.useContext(ra))return d.createElement(d.Fragment,null,e.children);let n=d.createElement(ra.Provider,{value:!0},e.children);return d.createElement("template",{"data-react-aria-hidden":!0},n)}function f4(e){let t=(n,r)=>d.useContext(ra)?null:e(n,r);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function h4(){return d.useContext(ra)}var Qp={exports:{}},Yp={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* use-sync-external-store-shim.production.js
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var Kr=d;function e4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var t4=typeof Object.is=="function"?Object.is:e4,n4=Kr.useState,r4=Kr.useEffect,o4=Kr.useLayoutEffect,i4=Kr.useDebugValue;function a4(e,t){var n=t(),r=n4({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return o4(function(){o.value=n,o.getSnapshot=t,ps(o)&&i({inst:o})},[e,n,t]),r4(function(){return ps(o)&&i({inst:o}),e(function(){ps(o)&&i({inst:o})})},[e]),i4(n),n}function ps(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!t4(e,n)}catch{return!0}}function s4(e,t){return t()}var l4=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s4:a4;Vp.useSyncExternalStore=Kr.useSyncExternalStore!==void 0?Kr.useSyncExternalStore:l4;Hp.exports=Vp;var u4=Hp.exports;const zp=d.createContext(!1),Fo=d.createContext(null);function c4(e){if(d.useContext(Fo))return e.content;let{collection:n,document:r}=p4(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(X9,null,d.createElement(Fo.Provider,{value:r},e.content)),d.createElement(d4,{render:e.children,collection:n}))}function d4({collection:e,render:t}){return t(e)}function f4(e,t,n){let r=En(),o=d.useRef(r);o.current=r;let i=d.useCallback(()=>o.current?n():t(),[t,n]);return u4.useSyncExternalStore(e,i)}const h4=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:f4;function p4(e){let[t]=d.useState(()=>new Y9((e==null?void 0:e())||new Q9)),n=d.useCallback(a=>t.subscribe(a),[t]),r=d.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:h4(n,r,o),document:t}}const $l=d.createContext(null);function g4(e){var t;return t=class extends Jr{},t.type=e,t}function m4(e,t,n,r,o,i){typeof e=="string"&&(e=g4(e));let a=d.useCallback(l=>{l==null||l.setProps(t,n,e,r,i)},[t,n,r,i,e]),s=d.useContext($l);if(s){let l=s.ownerDocument.nodesByProps.get(t);return l||(l=s.ownerDocument.createElement(e.type),l.setProps(t,n,e,r,i),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,l)),o?d.createElement($l.Provider,{value:l},o):null}return d.createElement(e.type,{ref:a},o)}function v4(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=d.forwardRef((o,i)=>{let a=d.useContext(ta);if(!d.useContext(zp)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return m4(e,o,i,"children"in o?o.children:null,null,l=>d.createElement(ta.Provider,{value:a},d.createElement(n,{node:l})))});return r.displayName=t.name,r}function b4(e){return Bp({...e,addIdAndValue:!0})}const Yc=d.createContext(null);function y4(e){let t=d.useContext(Yc),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),o=b4({...e,idScope:r,dependencies:n});return d.useContext(Fo)&&(o=d.createElement(x4,null,o)),t=d.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),d.createElement(Yc.Provider,{value:t},o)}function x4({children:e}){let t=d.useContext(Fo),n=d.useMemo(()=>d.createElement(Fo.Provider,{value:null},d.createElement(zp.Provider,{value:!0},e)),[e]);return En()?d.createElement($l.Provider,{value:t},n):Ur.createPortal(n,t)}const w4=d.createContext(null),C4={CollectionRoot({collection:e,renderDropIndicator:t}){return Xc(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Xc(e,t,n)}};function Xc(e,t,n){return Bp({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let o=r.render(r);return!n||r.type!=="item"?o:d.createElement(d.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,$4(e,r,n))}})}function $4(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let s=[];if(a==null){let l=t;for(;l&&(!i||l.parentKey!==i.parentKey&&i.level<l.level);){let u=n({type:"item",key:l.key,dropPosition:"after"});d.isValidElement(u)&&s.push(d.cloneElement(u,{key:`${l.key}-after`})),l=l.parentKey!=null?e.getItem(l.parentKey):null}}return s}const Up=d.createContext(C4);function S4(e){return d.useMemo(()=>e!=null?new Set([e]):null,[e])}function qp(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:h,onClick:c,href:p,target:f,rel:g,type:m="button"}=e,v;n==="button"?v={type:m,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:b,isPressed:x}=Ia({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:w}=nh(e,t);h&&(w.tabIndex=r?-1:w.tabIndex);let $=oe(w,b,Se(e,{labelable:!0}));return{isPressed:x,buttonProps:oe(v,$,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Wp(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=qp({...e,onPress:Qr(t.toggle,e.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:oe(i,{"aria-pressed":r})}}function E4(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=d.useState(!1);de(()=>{var g;a(!!(t.current&&(!((g=t.current.parentElement)===null||g===void 0)&&g.closest('[role="toolbar"]'))))});const{direction:s}=er(),l=s==="rtl"&&o==="horizontal";let u=s9(t);const h=g=>{if(g.currentTarget.contains(g.target)){if(o==="horizontal"&&g.key==="ArrowRight"||o==="vertical"&&g.key==="ArrowDown")l?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&g.key==="ArrowLeft"||o==="vertical"&&g.key==="ArrowUp")l?u.focusNext():u.focusPrevious();else if(g.key==="Tab"){g.stopPropagation(),c.current=document.activeElement,g.shiftKey?u.focusFirst():u.focusLast();return}else return;g.stopPropagation(),g.preventDefault()}},c=d.useRef(null),p=g=>{!g.currentTarget.contains(g.relatedTarget)&&!c.current&&(c.current=g.target)},f=g=>{var m;if(c.current&&!g.currentTarget.contains(g.relatedTarget)&&(!((m=t.current)===null||m===void 0)&&m.contains(g.target))){var v;(v=c.current)===null||v===void 0||v.focus(),c.current=null}};return{toolbarProps:{...Se(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:i?void 0:h,onFocusCapture:i?void 0:f,onBlurCapture:i?void 0:p}}}function P4(e,t,n){let{isDisabled:r}=e,{toolbarProps:o}=E4(e,n);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function R4(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(l){t.setSelected(e.id,l)},toggle(){t.toggleKey(e.id)}},{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}=Wp({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=r.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}}function k4(e={}){let{isReadOnly:t}=e,[n,r]=ti(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=d.useState(n);function i(l){t||r(l)}function a(){t||r(!n)}var s;return{isSelected:n,defaultSelected:(s=e.defaultSelected)!==null&&s!==void 0?s:o,setSelected:i,toggle:a}}function M4(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[o,i]=ti(d.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),d.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:o,setSelectedKeys:i,toggleKey(a){let s;t==="multiple"?(s=new Set(o),s.has(a)&&(!n||s.size>1)?s.delete(a):s.add(a)):s=new Set(o.has(a)&&!n?[]:[a]),i(s)},setSelected(a,s){s!==o.has(a)&&this.toggleKey(a)}}}function O4(e,t){let{role:n="dialog"}=e,r=Ki();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){xn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),xn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Zh(),{dialogProps:{...Se(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function T4(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=Se(e,{labelable:!0}),{labelProps:l,fieldProps:u}=E9({...e,labelElementType:"span"});t=Oo(t,n,r);let h=(t-n)/(r-n),c=My(a);if(!i&&!o){let p=a.style==="percent"?h:t;o=c.format(p)}return{progressBarProps:oe(s,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function D4(e){let{progressBarProps:t,labelProps:n}=T4(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function _4(e,t){let n=Se(e,{labelable:!0}),{hoverProps:r}=Zr({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:oe(n,r,{role:"tooltip"})}}function F4(e,t,n){let{isDisabled:r,trigger:o}=e,i=it(),a=d.useRef(!1),s=d.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},u=b=>{!a.current&&!s.current&&t.close(b)};d.useEffect(()=>{let b=x=>{n&&n.current&&x.key==="Escape"&&(x.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[n,t]);let h=()=>{o!=="focus"&&(_o()==="pointer"?a.current=!0:a.current=!1,l())},c=()=>{o!=="focus"&&(s.current=!1,a.current=!1,u())},p=()=>{s.current=!1,a.current=!1,u(!0)},f=()=>{Do()&&(s.current=!0,l())},g=()=>{s.current=!1,a.current=!1,u(!0)},{hoverProps:m}=Zr({isDisabled:r,onHoverStart:h,onHoverEnd:c}),{focusableProps:v}=nh({isDisabled:r,onFocus:f,onBlur:g},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...oe(v,m,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:i}}}const L4=d.createContext({}),I4=d.createContext(null),Gp=d.createContext({}),pu=Z9(function(t,n){[t,n]=gt(t,n,Gp);let r=t,{isPending:o}=r,{buttonProps:i,isPressed:a}=qp(t,n);i=N4(i,o);let{focusProps:s,isFocused:l,isFocusVisible:u}=lh(t),{hoverProps:h,isHovered:c}=Zr({...t,isDisabled:t.isDisabled||o}),p={isHovered:c,isPressed:(r.isPressed||a)&&!o,isFocused:l,isFocusVisible:u,isDisabled:t.isDisabled||!1,isPending:o??!1},f=pt({...t,values:p,defaultClassName:"react-aria-Button"}),g=it(i.id),m=it(),v=i["aria-labelledby"];o&&(v?v=`${v} ${m}`:i["aria-label"]&&(v=`${g} ${m}`));let b=d.useRef(o);d.useEffect(()=>{let w={"aria-labelledby":v||g};(!b.current&&l&&o||b.current&&l&&!o)&&bc(w,"assertive"),b.current=o},[o,l,v,g]);let x=Se(t,{global:!0});return delete x.onClick,d.createElement("button",{...oe(x,f,i,s,h),type:i.type==="submit"&&o?"button":i.type,id:g,ref:n,"aria-labelledby":v,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},d.createElement(I4.Provider,{value:{id:m}},f.children))});function N4(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const j4=d.createContext({});class wt extends Set{constructor(t,n,r){super(t),t instanceof wt?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function A4(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Qp(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=d.useRef(!1),[,s]=d.useState(!1),l=d.useRef(null),u=d.useRef(null),[,h]=d.useState(null),c=d.useMemo(()=>Zc(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>Zc(e.defaultSelectedKeys,new wt),[e.defaultSelectedKeys]),[f,g]=ti(c,p,e.onSelectionChange),m=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=d.useState(o);o==="replace"&&v==="toggle"&&typeof f=="object"&&f.size===0&&b("replace");let x=d.useRef(o);return d.useEffect(()=>{o!==x.current&&(b(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(w){a.current=w,s(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,$="first"){l.current=w,u.current=$,h(w)},selectedKeys:f,setSelectedKeys(w){(r||!A4(w,f))&&g(w)},disabledKeys:m,disabledBehavior:i}}function Zc(e,t){return e?e==="all"?"all":new wt(e):t}class Na{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&hs(this.collection,o,t)<0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&hs(this.collection,o,t)>0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new wt([n],n,n);else{let a=this.state.selectedKeys;var o;let s=(o=a.anchorKey)!==null&&o!==void 0?o:n;r=new wt(a,s,n);var i;for(let l of this.getKeyRange(s,(i=a.currentKey)!==null&&i!==void 0?i:n))r.delete(l);for(let l of this.getKeyRange(n,s))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?hs(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===n)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new wt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new wt([n],n,n):new wt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new wt;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var o;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((i=(o=j9(ep(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new wt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Na(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function ja(e){let[t,n]=ti(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),o=d.useCallback(()=>{n(!1)},[n]),i=d.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function gu(e){let t=ja(e),[n,r]=d.useState(null),[o,i]=d.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,h)=>{i(c=>h>c.length?c:[...c.slice(0,h),u])},closeSubmenu:(u,h)=>{i(c=>c[h]===u?c.slice(0,h):c)}}}const K4=1500,Jc=500;let On={},B4=0,io=!1,jt=null,Tn=null;function Yp(e={}){let{delay:t=K4,closeDelay:n=Jc}=e,{isOpen:r,open:o,close:i}=ja(e),a=d.useMemo(()=>`${++B4}`,[]),s=d.useRef(null),l=d.useRef(i),u=()=>{On[a]=p},h=()=>{for(let g in On)g!==a&&(On[g](!0),delete On[g])},c=()=>{s.current&&clearTimeout(s.current),s.current=null,h(),u(),io=!0,o(),jt&&(clearTimeout(jt),jt=null),Tn&&(clearTimeout(Tn),Tn=null)},p=g=>{g||n<=0?(s.current&&clearTimeout(s.current),s.current=null,l.current()):s.current||(s.current=setTimeout(()=>{s.current=null,l.current()},n)),jt&&(clearTimeout(jt),jt=null),io&&(Tn&&clearTimeout(Tn),Tn=setTimeout(()=>{delete On[a],Tn=null,io=!1},Math.max(Jc,n)))},f=()=>{h(),u(),!r&&!jt&&!io?jt=setTimeout(()=>{jt=null,io=!0,c()},t):r||c()};return d.useEffect(()=>{l.current=i},[i]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current),On[a]&&delete On[a]},[a]),{isOpen:r,open:g=>{!g&&t>0&&!s.current?f():c()},close:p}}class H4{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||n.has(s.key)))for(let l of s.childNodes)r(l)};for(let s of t)r(s);let o=null,i=0;for(let[s,l]of this.keyMap)o?(o.nextKey=s,l.prevKey=o.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),o=l,o.nextKey=void 0;var a;this.lastKey=(a=o==null?void 0:o.key)!==null&&a!==void 0?a:null}}function V4(e){let{onExpandedChange:t}=e,[n,r]=ti(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Qp(e),i=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=N9(e,d.useCallback(l=>new H4(l,{expandedKeys:n}),[n]),null);return d.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:i,toggleKey:l=>{r(z4(n,l))},setExpandedKeys:r,selectionManager:new Na(a,o)}}function z4(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const U4=d.createContext({}),q4=d.createContext(null);function Xp(e){let t=d.useRef({});return d.createElement(q4.Provider,{value:t},e.children)}const Zp=d.createContext({isSelected:!1}),W4=d.createContext({});class G4 extends Jr{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let o=this.clone();return n.addDescendants(o,t),o}return null}}G4.type="separator";const Jp=d.createContext({placement:"bottom"}),mu=d.createContext(null),ed=d.createContext(null),Q4=d.forwardRef(function(t,n){[t,n]=gt(t,n,mu);let r=d.useContext(tr),o=ja(t),i=t.isOpen!=null||t.defaultOpen!=null||!r?o:r,a=Qi(n,i.isOpen)||t.isExiting||!1,s=J9(),{direction:l}=er();if(s){let u=t.children;return typeof u=="function"&&(u=u({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,u)}return i&&!i.isOpen&&!a?null:d.createElement(Y4,{...t,triggerRef:t.triggerRef,state:i,popoverRef:n,isExiting:a,dir:l})});function Y4({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){let i=d.useRef(null),a=d.useRef(null),s=d.useContext(ed),l=s&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:h,underlayProps:c,arrowProps:p,placement:f,triggerAnchorPoint:g}=$9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:l?s:a},e),m=o.popoverRef,v=Fa(m,!!f)||o.isEntering||!1,b=pt({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:f,isEntering:v,isExiting:t}}),x=!o.isNonModal||o.trigger==="SubmenuTrigger",[w,$]=d.useState(!1);de(()=>{m.current&&$(x&&!m.current.querySelector("[role=dialog]"))},[m,x]),d.useEffect(()=>{w&&o.trigger!=="SubmenuTrigger"&&m.current&&!m.current.contains(document.activeElement)&&xn(m.current)},[w,m,o.trigger]);let k=d.useMemo(()=>{let _=b.children;if(r)for(let D of r)_=d.createElement(D.Provider,{value:null},_);return _},[b.children,r]),E={...h.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...b.style},R=d.createElement("div",{...oe(Se(o,{global:!0}),h),...b,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:m,slot:o.slot||void 0,style:E,dir:o.dir,"data-trigger":o.trigger,"data-placement":f,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&d.createElement(xl,{onDismiss:e.close}),d.createElement(Jp.Provider,{value:{...p,placement:f,ref:i}},k),d.createElement(xl,{onDismiss:e.close}));if(!l)return d.createElement(wl,{...o,shouldContainFocus:w,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&d.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),d.createElement("div",{ref:a,style:{display:"contents"}},d.createElement(ed.Provider,{value:a},R)));var M;return d.createElement(wl,{...o,shouldContainFocus:w,isExiting:t,portalContainer:(M=n??(s==null?void 0:s.current))!==null&&M!==void 0?M:void 0},R)}const X4=d.createContext({}),e1=d.createContext(null),vu=d.createContext(null),oa=d.createContext(null),ia=d.createContext(null);function Z4(e){let t=gu(e),n=d.useRef(null),{menuTriggerProps:r,menuProps:o}=H9({...e,type:"menu"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);Gi({ref:n,onResize:s});let l=d.useRef(null);return d.createElement(Pn,{values:[[e1,{...o,ref:l}],[tr,t],[oa,t],[mu,{trigger:"MenuTrigger",triggerRef:n,scrollRef:l,placement:"bottom start",style:{"--trigger-width":i},"aria-labelledby":o["aria-labelledby"]}]]},d.createElement(rh,{...r,ref:n,isPressed:t.isOpen},e.children))}const J4=d.createContext(null);class e3 extends Jr{filter(t,n,r){let o=t.getItem(this.firstChildKey);if(o&&r(o.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}}e3.type="submenutrigger";const t3=d.forwardRef(function(t,n){return[t,n]=gt(t,n,e1),d.createElement(c4,{content:d.createElement(y4,t)},r=>d.createElement(n3,{props:t,collection:r,menuRef:n}))});function n3({props:e,collection:t,menuRef:n}){[e,n]=gt(e,n,cc);let{filter:r,...o}=e,i=d.useMemo(()=>r?t.filter(r):t,[t,r]),a=V4({...e,collection:i,children:void 0}),s=d.useContext(oa),{isVirtualized:l,CollectionRoot:u}=d.useContext(Up),{menuProps:h}=V9({...e,isVirtualized:l,onClose:e.onClose||(s==null?void 0:s.close)},a,n),c=pt({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=d.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let f=Se(e,{global:!0});return d.createElement(ih,null,d.createElement("div",{...oe(f,c,h),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},d.createElement(Pn,{values:[[vu,a],[W4,{elementType:"div"}],[w4,{name:"MenuSection",render:o3}],[J4,{parentMenuRef:n,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[Sl,null],[cc,null],[i5,null],[ia,a.selectionManager],[oa,s??gu({})]]},d.createElement(Xp,null,d.createElement(u,{collection:a.collection,persistedKeys:S4(a.selectionManager.focusedKey),scrollRef:n}))),p))}class r3 extends Na{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,n){super(t.collection,n),this.parent=t}}function o3(e,t,n,r="react-aria-MenuSection"){var o,i;let a=d.useContext(vu),{CollectionBranch:s}=d.useContext(Up),[l,u]=A0();var h;let{headingProps:c,groupProps:p}=U9({heading:u,"aria-label":(h=n.props["aria-label"])!==null&&h!==void 0?h:void 0}),f=pt({defaultClassName:r,className:(o=n.props)===null||o===void 0?void 0:o.className,style:(i=n.props)===null||i===void 0?void 0:i.style,values:{}}),g=d.useContext(ia),m=Qp(e),v=e.selectionMode!=null?new r3(g,m):g,b=Se(e,{global:!0});return delete b.id,d.createElement("section",{...oe(b,f,p),ref:t},d.createElement(Pn,{values:[[U4,{...c,ref:l}],[ia,v]]},d.createElement(s,{collection:a.collection,parent:n})))}const Sl=d.createContext(null),i3=v4(jp,function(t,n,r){var o;[t,n]=gt(t,n,Sl);let i=(o=j0(Sl))===null||o===void 0?void 0:o.id,a=d.useContext(vu),s=Yr(n),l=d.useContext(ia),{menuItemProps:u,labelProps:h,descriptionProps:c,keyboardShortcutProps:p,...f}=z9({...t,id:i,key:r.key,selectionManager:l},a,s),{hoverProps:g,isHovered:m}=Zr({isDisabled:f.isDisabled}),v=pt({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),b=t.href?"a":"div",x=Se(t,{global:!0});return delete x.id,delete x.onClick,d.createElement(b,{...oe(x,v,u,g),ref:s,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},d.createElement(Pn,{values:[[j4,{slots:{[Yi]:h,label:h,description:c}}],[X4,p],[Zp,{isSelected:f.isSelected}]]},v.children))}),t1=d.createContext(null),tr=d.createContext(null);function n1(e){let t=gu(e),n=d.useRef(null),{triggerProps:r,overlayProps:o}=fh({type:"dialog"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);return Gi({ref:n,onResize:s}),r.id=it(),o["aria-labelledby"]=r.id,d.createElement(Pn,{values:[[tr,t],[oa,t],[t1,o],[mu,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},d.createElement(rh,{...r,ref:n,isPressed:t.isOpen},e.children))}const Aa=d.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=gt(t,n,t1);let{dialogProps:o,titleProps:i}=O4({...t,"aria-labelledby":r},n),a=d.useContext(tr);!o["aria-label"]&&!o["aria-labelledby"]&&t["aria-labelledby"]&&(o["aria-labelledby"]=t["aria-labelledby"]);let s=pt({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}}),l=Se(t,{global:!0});return d.createElement("section",{...oe(l,s,o),ref:n,slot:t.slot||void 0},d.createElement(Pn,{values:[[$0,{slots:{[Yi]:{},title:{...i,level:2}}}],[Gp,{slots:{[Yi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))}),Ka=d.forwardRef(function(t,n){[t,n]=gt(t,n,$0);let{children:r,level:o=3,className:i,...a}=t,s=`h${o}`;return d.createElement(s,{...a,ref:n,className:i??"react-aria-Heading"},r)}),a3=d.createContext(null),s3=d.forwardRef(function(t,n){[t,n]=gt(t,n,a3);let{value:r=0,minValue:o=0,maxValue:i=100}=t;r=Oo(r,o,i);let[a,s]=A0(!t["aria-label"]&&!t["aria-labelledby"]),{meterProps:l,labelProps:u}=D4({...t,label:s}),h=(r-o)/(i-o)*100,c=pt({...t,defaultClassName:"react-aria-Meter",values:{percentage:h,valueText:l["aria-valuetext"]}}),p=Se(t,{global:!0});return d.createElement("div",{...oe(p,c,l),ref:n,slot:t.slot||void 0},d.createElement(L4.Provider,{value:{...u,ref:a,elementType:"span"}},c.children))}),l3=d.createContext(null),bu=d.createContext(null),Ba=d.forwardRef(function(t,n){if(d.useContext(bu))return d.createElement(td,{...t,modalRef:n},t.children);let{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,children:u,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f,...g}=t;return d.createElement(c3,{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f},d.createElement(td,{...g,modalRef:n},u))});function u3(e,t){[e,t]=gt(e,t,l3);let n=d.useContext(tr),r=ja(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Yr(t),a=d.useRef(null),s=Qi(i,o.isOpen),l=Qi(a,o.isOpen),u=s||l||e.isExiting||!1,h=En();return!o.isOpen&&!u||h?null:d.createElement(d3,{...e,state:o,isExiting:u,overlayRef:i,modalRef:a})}const c3=d.forwardRef(u3);function d3({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=S9(t,r,n),a=Fa(t.overlayRef)||t.isEntering||!1,s=pt({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=z5(),u;if(typeof document<"u"){let c=Qn(document.body)?document.body:document.scrollingElement||document.documentElement,p=c.getBoundingClientRect().height%1;u=c.scrollHeight-p}let h={...s.style,"--visual-viewport-height":l.height+"px","--page-height":u!==void 0?u+"px":void 0};return d.createElement(wl,{isExiting:t.isExiting,portalContainer:e},d.createElement("div",{...oe(Se(t,{global:!0}),i),...s,style:h,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},d.createElement(Pn,{values:[[bu,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[tr,r]]},s.children)))}function td(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(bu),i=d.useContext(tr),a=d.useMemo(()=>R0(e.modalRef,n),[e.modalRef,n]),s=Yr(a),l=Fa(s),u=pt({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return d.createElement("div",{...oe(Se(e,{global:!0}),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&d.createElement(xl,{onDismiss:i.close}),u.children)}const f3=d.createContext({}),r1=d.createContext(null),h3=d.forwardRef(function(t,n){[t,n]=gt(t,n,f3);let r=M4(t),{groupProps:o}=P4(t,r,n),i=pt({...t,values:{isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"}),a=Se(t,{global:!0});return d.createElement("div",{...oe(a,i,o),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},d.createElement(r1.Provider,{value:r},d.createElement(Xp,null,i.children)))}),p3=d.createContext({}),g3=d.forwardRef(function(t,n){[t,n]=gt(t,n,p3);let r=d.useContext(r1),o=k4(r&&t.id!=null?{isSelected:r.selectedKeys.has(t.id),onChange(v){r.setSelected(t.id,v)}}:t),{buttonProps:i,isPressed:a,isSelected:s,isDisabled:l}=r&&t.id!=null?R4({...t,id:t.id},r,n):Wp({...t,id:t.id!=null?String(t.id):void 0},o,n),{focusProps:u,isFocused:h,isFocusVisible:c}=lh(t),{hoverProps:p,isHovered:f}=Zr(t),g=pt({...t,id:void 0,values:{isHovered:f,isPressed:a,isFocused:h,isSelected:o.isSelected,isFocusVisible:c,isDisabled:l,state:o},defaultClassName:"react-aria-ToggleButton"}),m=Se(t,{global:!0});return delete m.id,delete m.onClick,d.createElement("button",{...oe(m,g,i,u,p),ref:n,slot:t.slot||void 0,"data-focused":h||void 0,"data-disabled":l||void 0,"data-pressed":a||void 0,"data-selected":s||void 0,"data-hovered":f||void 0,"data-focus-visible":c||void 0},d.createElement(Zp.Provider,{value:{isSelected:s}},g.children))}),yu=d.createContext(null),o1=d.createContext(null);function m3(e){let t=Yp(e),n=d.useRef(null),{triggerProps:r,tooltipProps:o}=F4(e,t,n);return d.createElement(Pn,{values:[[yu,t],[o1,{...o,triggerRef:n}]]},d.createElement(Gy,{...r,ref:n},e.children))}const v3=d.forwardRef(function({UNSTABLE_portalContainer:t,...n},r){[n,r]=gt(n,r,o1);let o=d.useContext(yu),i=Yp(n),a=n.isOpen!=null||n.defaultOpen!=null||!o?i:o,s=Qi(r,a.isOpen)||n.isExiting||!1;return!a.isOpen&&!s?null:d.createElement(v9,{portalContainer:t},d.createElement(b3,{...n,tooltipRef:r,isExiting:s}))});function b3(e){let t=d.useContext(yu),n=d.useRef(null),{overlayProps:r,arrowProps:o,placement:i,triggerAnchorPoint:a}=q0({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=Fa(e.tooltipRef,!!i)||e.isEntering||!1,l=pt({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:s,isExiting:e.isExiting,state:t}});e=oe(e,r);let{tooltipProps:u}=_4(e,t),h=Se(e,{global:!0});return d.createElement("div",{...oe(h,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0,...l.style},"data-placement":i??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},d.createElement(Jp.Provider,{value:{...o,placement:i,ref:n}},l.children))}function y3(e,t){var n=d.useState(function(){if(typeof window>"u")return t;try{for(var a=window.localStorage.getItem(e),s=a?JSON.parse(a):t,l=0,u=Object.entries(t);l<u.length;l++){var h=u[l][0];if(typeof s[h]>"u")throw new Error("Missing key in local storage")}return s}catch(c){return console.log(c),t}}),r=n[0],o=n[1],i=function(a){try{var s=a instanceof Function?a(r):a;o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch(l){console.log(l)}};return[r,i]}var x3=function(){var e=y3("user-preferences",{theme:"system"}),t=e[0],n=e[1];return y.jsx(h3,{className:"flex h-7 space-x-0.5 rounded-md bg-slate-100 p-0.5 dark:bg-slate-700",defaultSelectedKeys:["system"],"aria-label":"Theme",selectedKeys:[t.theme],onSelectionChange:function(r){r.has("system")?n({theme:"system"}):r.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):r.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return y.jsx(R2,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return y.jsx(t5,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return y.jsx(q2,{})},ariaLabel:"Dark theme"}].map(function(r){return y.jsx(g3,{className:"flex aspect-square h-full items-center justify-center rounded-md text-slate-900 transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 data-[selected=true]:bg-slate-200 data-[selected=true]:shadow-sm dark:text-slate-50 dark:hover:bg-slate-500 dark:data-[selected=true]:bg-slate-500",id:r.value,"aria-label":r.ariaLabel,children:r.icon()},r.value)})})},El=function(e){var t=e.message;return y.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4 dark:bg-red-950/50",children:y.jsx("div",{className:"flex flex-col justify-center",children:y.jsx("p",{className:"text-sm text-red-900 dark:text-red-200",children:t})})})},nd=function(e){var t=e.to,n=e.label,r=e.icon;return y.jsxs(m0,{to:t,className:function(o){var i=o.isActive;return"relative -ml-px backdrop-blur-50 flex w-full items-center space-x-2 rounded-md pl-4 py-1 transition duration-150 ease-in-out ".concat(i?"bg-slate-100/90 font-medium text-slate-900 dark:bg-slate-900 dark:text-brand-300":"text-slate-500 dark:text-slate-400 border-slate-100 hover:bg-slate-50 dark:hover:bg-slate-900 hover:border-slate-300 hover:text-slate-900 dark:border-slate-700 dark:hover:border-slate-600 dark:hover:text-slate-100")},children:[r,y.jsx("span",{className:"block truncate",children:n})]})},i1=function(e){var t=e.children,n=le.queue.list.useQuery(),r=n.data,o=n.isLoading,i=n.isError;return y.jsxs("div",{className:"grid xl:grid-cols-[auto,1fr]",children:[y.jsx("div",{className:"hidden w-64 xl:block",children:y.jsxs("div",{className:"sticky top-0 isolate flex h-full max-h-screen min-h-screen flex-col justify-between overflow-hidden border-r border-brand-50 px-4 pb-4 pt-8 shadow-sm dark:border-slate-700 dark:bg-black",children:[y.jsxs("svg",{viewBox:"0 0 1108 632","aria-hidden":"true",className:"absolute left-[calc(50%-24rem)] top-10 -z-10 w-[69.25rem] max-w-none rotate-90 transform-gpu opacity-50 blur-3xl lg:top-[calc(50%-30rem)]",children:[y.jsx("path",{fill:"url(#175c433f-44f6-4d59-93f0-c5c51ad5566d)",fillOpacity:".2",d:"M235.233 402.609 57.541 321.573.83 631.05l234.404-228.441 320.018 145.945c-65.036-115.261-134.286-322.756 109.01-230.655C968.382 433.026 1031 651.247 1092.23 459.36c48.98-153.51-34.51-321.107-82.37-385.717L810.952 324.222 648.261.088 235.233 402.609Z"}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"175c433f-44f6-4d59-93f0-c5c51ad5566d",x1:"1220.59",x2:"-85.053",y1:"432.766",y2:"638.714",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#bbebff"}),y.jsx("stop",{offset:1,stopColor:"#ffffff"})]})})]}),y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex items-center space-x-2 text-slate-900 dark:text-brand-50",children:[y.jsx(Z2,{width:28,height:28}),y.jsx("p",{className:"text-lg font-semibold",children:"QueueDash"})]}),y.jsxs("div",{className:"w-full space-y-4",children:[y.jsx(nd,{label:"Overview",icon:y.jsx(E2,{className:"mb-0.5",height:16,width:16}),to:"../"}),y.jsx("div",{className:"h-px w-full bg-slate-100 dark:bg-slate-700"}),y.jsx("div",{className:"w-full space-y-1",children:o?Ke([],new Array(10),!0).map(function(a,s){return y.jsx(Mo,{className:"h-8 w-full"},s)}):i?y.jsx(El,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(a){return y.jsx(nd,{to:"../".concat(a.name),label:a.displayName},a.name)})})]})]}),y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("a",{href:"https://github.com/alexbudure/queuedash",target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-md bg-slate-100 text-slate-900 shadow-sm transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 dark:bg-slate-600 dark:text-slate-50 dark:hover:bg-slate-500",children:y.jsx(I2,{})}),y.jsx(x3,{})]})]})}),y.jsx("div",{className:"bg-white px-4 py-3 dark:bg-[#121212] lg:px-10 lg:py-8",children:y.jsx("div",{className:"max-w-screen-xl",children:t})})]})};/**
|
|
39
|
+
*/var Ir=d;function p4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var g4=typeof Object.is=="function"?Object.is:p4,m4=Ir.useState,v4=Ir.useEffect,b4=Ir.useLayoutEffect,y4=Ir.useDebugValue;function x4(e,t){var n=t(),r=m4({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return b4(function(){o.value=n,o.getSnapshot=t,gs(o)&&i({inst:o})},[e,n,t]),v4(function(){return gs(o)&&i({inst:o}),e(function(){gs(o)&&i({inst:o})})},[e]),y4(n),n}function gs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!g4(e,n)}catch{return!0}}function w4(e,t){return t()}var C4=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?w4:x4;Yp.useSyncExternalStore=Ir.useSyncExternalStore!==void 0?Ir.useSyncExternalStore:C4;Qp.exports=Yp;var $4=Qp.exports;const Xp=d.createContext(!1),_o=d.createContext(null);function S4(e){if(d.useContext(_o))return e.content;let{collection:n,document:r}=k4(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(d4,null,d.createElement(_o.Provider,{value:r},e.content)),d.createElement(E4,{render:e.children,collection:n}))}function E4({collection:e,render:t}){return t(e)}function P4(e,t,n){let r=$n(),o=d.useRef(r);o.current=r;let i=d.useCallback(()=>o.current?n():t(),[t,n]);return $4.useSyncExternalStore(e,i)}const R4=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:P4;function k4(e){let[t]=d.useState(()=>new c4((e==null?void 0:e())||new u4)),n=d.useCallback(a=>t.subscribe(a),[t]),r=d.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:R4(n,r,o),document:t}}const Sl=d.createContext(null);function M4(e){var t;return t=class extends Qr{},t.type=e,t}function O4(e,t,n,r,o,i){typeof e=="string"&&(e=M4(e));let a=d.useCallback(l=>{l==null||l.setProps(t,n,e,r,i)},[t,n,r,i,e]),s=d.useContext(Sl);if(s){let l=s.ownerDocument.nodesByProps.get(t);return l||(l=s.ownerDocument.createElement(e.type),l.setProps(t,n,e,r,i),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,l)),o?d.createElement(Sl.Provider,{value:l},o):null}return d.createElement(e.type,{ref:a},o)}function T4(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=d.forwardRef((o,i)=>{let a=d.useContext(ta);if(!d.useContext(Xp)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return O4(e,o,i,"children"in o?o.children:null,null,l=>d.createElement(ta.Provider,{value:a},d.createElement(n,{node:l})))});return r.displayName=t.name,r}function D4(e){return Gp({...e,addIdAndValue:!0})}const Yc=d.createContext(null);function _4(e){let t=d.useContext(Yc),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies);var r;let o=(r=e.idScope)!==null&&r!==void 0?r:t==null?void 0:t.idScope,i=D4({...e,idScope:o,dependencies:n});return d.useContext(_o)&&(i=d.createElement(L4,null,i)),t=d.useMemo(()=>({dependencies:n,idScope:o}),[o,...n]),d.createElement(Yc.Provider,{value:t},i)}function L4({children:e}){let t=d.useContext(_o),n=d.useMemo(()=>d.createElement(_o.Provider,{value:null},d.createElement(Xp.Provider,{value:!0},e)),[e]);return $n()?d.createElement(Sl.Provider,{value:t},n):Br.createPortal(n,t)}const F4=d.createContext(null),I4={CollectionRoot({collection:e,renderDropIndicator:t}){return Xc(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Xc(e,t,n)}};function Xc(e,t,n){return Gp({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let o=r.render(r);return!n||r.type!=="item"?o:d.createElement(d.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,j4(e,r,n))}})}function j4(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let s=[];if(a==null){let l=t;for(;(l==null?void 0:l.type)==="item"&&(!i||l.parentKey!==i.parentKey&&i.level<l.level);){let u=n({type:"item",key:l.key,dropPosition:"after"});d.isValidElement(u)&&s.push(d.cloneElement(u,{key:`${l.key}-after`})),l=l.parentKey!=null?e.getItem(l.parentKey):null}}return s}const Zp=d.createContext(I4);function N4(e){return d.useMemo(()=>e!=null?new Set([e]):null,[e])}function Jp(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:h,onClick:c,href:p,target:f,rel:g,type:m="button"}=e,v;n==="button"?v={type:m,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:b,isPressed:x}=Fa({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:w}=uh(e,t);h&&(w.tabIndex=r?-1:w.tabIndex);let S=ie(w,b,Ee(e,{labelable:!0}));return{isPressed:x,buttonProps:ie(v,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function e1(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=Jp({...e,onPress:Ur(t.toggle,e.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:ie(i,{"aria-pressed":r})}}function A4(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=d.useState(!1);le(()=>{var g;a(!!(t.current&&(!((g=t.current.parentElement)===null||g===void 0)&&g.closest('[role="toolbar"]'))))});const{direction:s}=Yn(),l=s==="rtl"&&o==="horizontal";let u=w9(t);const h=g=>{if(g.currentTarget.contains(g.target)){if(o==="horizontal"&&g.key==="ArrowRight"||o==="vertical"&&g.key==="ArrowDown")l?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&g.key==="ArrowLeft"||o==="vertical"&&g.key==="ArrowUp")l?u.focusNext():u.focusPrevious();else if(g.key==="Tab"){g.stopPropagation(),c.current=document.activeElement,g.shiftKey?u.focusFirst():u.focusLast();return}else return;g.stopPropagation(),g.preventDefault()}},c=d.useRef(null),p=g=>{!g.currentTarget.contains(g.relatedTarget)&&!c.current&&(c.current=g.target)},f=g=>{var m;if(c.current&&!g.currentTarget.contains(g.relatedTarget)&&(!((m=t.current)===null||m===void 0)&&m.contains(g.target))){var v;(v=c.current)===null||v===void 0||v.focus(),c.current=null}};return{toolbarProps:{...Ee(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:i?void 0:h,onFocusCapture:i?void 0:f,onBlurCapture:i?void 0:p}}}function K4(e,t,n){let{isDisabled:r}=e,{toolbarProps:o}=A4(e,n);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function B4(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(l){t.setSelected(e.id,l)},toggle(){t.toggleKey(e.id)}},{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}=e1({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=r.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}}function H4(e={}){let{isReadOnly:t}=e,[n,r]=ei(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=d.useState(n);function i(l){t||r(l)}function a(){t||r(!n)}var s;return{isSelected:n,defaultSelected:(s=e.defaultSelected)!==null&&s!==void 0?s:o,setSelected:i,toggle:a}}function V4(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[o,i]=ei(d.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),d.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:o,setSelectedKeys:i,toggleKey(a){let s;t==="multiple"?(s=new Set(o),s.has(a)&&(!n||s.size>1)?s.delete(a):s.add(a)):s=new Set(o.has(a)&&!n?[]:[a]),i(s)},setSelected(a,s){s!==o.has(a)&&this.toggleKey(a)}}}function z4(e,t){let{role:n="dialog"}=e,r=Ki();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){bn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),bn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),ip(),{dialogProps:{...Ee(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function U4(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=Ee(e,{labelable:!0}),{labelProps:l,fieldProps:u}=A9({...e,labelElementType:"span"});t=ko(t,n,r);let h=(t-n)/(r-n),c=Vy(a);if(!i&&!o){let p=a.style==="percent"?h:t;o=c.format(p)}return{progressBarProps:ie(s,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function q4(e){let{progressBarProps:t,labelProps:n}=U4(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function W4(e,t){let n=Ee(e,{labelable:!0}),{hoverProps:r}=Gr({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:ie(n,r,{role:"tooltip"})}}function G4(e,t,n){let{isDisabled:r,trigger:o,shouldCloseOnPress:i=!0}=e,a=ot(),s=d.useRef(!1),l=d.useRef(!1),u=()=>{(s.current||l.current)&&t.open(l.current)},h=x=>{!s.current&&!l.current&&t.close(x)};d.useEffect(()=>{let x=w=>{n&&n.current&&w.key==="Escape"&&(w.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",x,!0),()=>{document.removeEventListener("keydown",x,!0)}},[n,t]);let c=()=>{o!=="focus"&&(Do()==="pointer"?s.current=!0:s.current=!1,u())},p=()=>{o!=="focus"&&(l.current=!1,s.current=!1,h())},f=()=>{i&&(l.current=!1,s.current=!1,h(!0))},g=()=>{To()&&(l.current=!0,u())},m=()=>{l.current=!1,s.current=!1,h(!0)},{hoverProps:v}=Gr({isDisabled:r,onHoverStart:c,onHoverEnd:p}),{focusableProps:b}=uh({isDisabled:r,onFocus:g,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...ie(b,v,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:a}}}const Q4=d.createContext({}),Y4=d.createContext(null),t1=d.createContext({}),pu=f4(function(t,n){[t,n]=mt(t,n,t1);let r=t,{isPending:o}=r,{buttonProps:i,isPressed:a}=Jp(t,n);i=X4(i,o);let{focusProps:s,isFocused:l,isFocusVisible:u}=gh(t),{hoverProps:h,isHovered:c}=Gr({...t,isDisabled:t.isDisabled||o}),p={isHovered:c,isPressed:(r.isPressed||a)&&!o,isFocused:l,isFocusVisible:u,isDisabled:t.isDisabled||!1,isPending:o??!1},f=gt({...t,values:p,defaultClassName:"react-aria-Button"}),g=ot(i.id),m=ot(),v=i["aria-labelledby"];o&&(v?v=`${v} ${m}`:i["aria-label"]&&(v=`${g} ${m}`));let b=d.useRef(o);d.useEffect(()=>{let w={"aria-labelledby":v||g};(!b.current&&l&&o||b.current&&l&&!o)&&bc(w,"assertive"),b.current=o},[o,l,v,g]);let x=Ee(t,{global:!0});return delete x.onClick,d.createElement("button",{...ie(x,f,i,s,h),type:i.type==="submit"&&o?"button":i.type,id:g,ref:n,"aria-labelledby":v,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},d.createElement(Y4.Provider,{value:{id:m}},f.children))});function X4(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const Z4=d.createContext({});class wt extends Set{constructor(t,n,r){super(t),t instanceof wt?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function J4(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function n1(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=d.useRef(!1),[,s]=d.useState(!1),l=d.useRef(null),u=d.useRef(null),[,h]=d.useState(null),c=d.useMemo(()=>Zc(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>Zc(e.defaultSelectedKeys,new wt),[e.defaultSelectedKeys]),[f,g]=ei(c,p,e.onSelectionChange),m=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=d.useState(o);o==="replace"&&v==="toggle"&&typeof f=="object"&&f.size===0&&b("replace");let x=d.useRef(o);return d.useEffect(()=>{o!==x.current&&(b(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(w){a.current=w,s(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,S="first"){l.current=w,u.current=S,h(w)},selectedKeys:f,setSelectedKeys(w){(r||!J4(w,f))&&g(w)},disabledKeys:m,disabledBehavior:i}}function Zc(e,t){return e?e==="all"?"all":new wt(e):t}class Ia{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&ps(this.collection,o,t)<0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&ps(this.collection,o,t)>0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new wt([n],n,n);else{let a=this.state.selectedKeys;var o;let s=(o=a.anchorKey)!==null&&o!==void 0?o:n;r=new wt(a,s,n);var i;for(let l of this.getKeyRange(s,(i=a.currentKey)!==null&&i!==void 0?i:n))r.delete(l);for(let l of this.getKeyRange(n,s))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?ps(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===n)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new wt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new wt([n],n,n):new wt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new wt;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var o;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((i=(o=Z9(sp(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new wt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Ia(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function ja(e){let[t,n]=ei(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),o=d.useCallback(()=>{n(!1)},[n]),i=d.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function gu(e){let t=ja(e),[n,r]=d.useState(null),[o,i]=d.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,h)=>{i(c=>h>c.length?c:[...c.slice(0,h),u])},closeSubmenu:(u,h)=>{i(c=>c[h]===u?c.slice(0,h):c)}}}const e3=1500,Jc=500;let Rn={},t3=0,no=!1,Lt=null,kn=null;function r1(e={}){let{delay:t=e3,closeDelay:n=Jc}=e,{isOpen:r,open:o,close:i}=ja(e),a=d.useMemo(()=>`${++t3}`,[]),s=d.useRef(null),l=d.useRef(i),u=()=>{Rn[a]=p},h=()=>{for(let g in Rn)g!==a&&(Rn[g](!0),delete Rn[g])},c=()=>{s.current&&clearTimeout(s.current),s.current=null,h(),u(),no=!0,o(),Lt&&(clearTimeout(Lt),Lt=null),kn&&(clearTimeout(kn),kn=null)},p=g=>{g||n<=0?(s.current&&clearTimeout(s.current),s.current=null,l.current()):s.current||(s.current=setTimeout(()=>{s.current=null,l.current()},n)),Lt&&(clearTimeout(Lt),Lt=null),no&&(kn&&clearTimeout(kn),kn=setTimeout(()=>{delete Rn[a],kn=null,no=!1},Math.max(Jc,n)))},f=()=>{h(),u(),!r&&!Lt&&!no?Lt=setTimeout(()=>{Lt=null,no=!0,c()},t):r||c()};return d.useEffect(()=>{l.current=i},[i]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current),Rn[a]&&delete Rn[a]},[a]),{isOpen:r,open:g=>{!g&&t>0&&!s.current?f():c()},close:p}}class n3{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||n.has(s.key)))for(let l of s.childNodes)r(l)};for(let s of t)r(s);let o=null,i=0;for(let[s,l]of this.keyMap)o?(o.nextKey=s,l.prevKey=o.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),o=l,o.nextKey=void 0;var a;this.lastKey=(a=o==null?void 0:o.key)!==null&&a!==void 0?a:null}}function r3(e){let{onExpandedChange:t}=e,[n,r]=ei(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=n1(e),i=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=X9(e,d.useCallback(l=>new n3(l,{expandedKeys:n}),[n]),null);return d.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:i,toggleKey:l=>{r(o3(n,l))},setExpandedKeys:r,selectionManager:new Ia(a,o)}}function o3(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const i3=d.createContext({}),a3=d.createContext(null);function o1(e){let t=d.useRef({});return d.createElement(a3.Provider,{value:t},e.children)}const i1=d.createContext({isSelected:!1}),s3=d.createContext({});class l3 extends Qr{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let o=this.clone();return n.addDescendants(o,t),o}return null}}l3.type="separator";const a1=d.createContext({placement:"bottom"}),mu=d.createContext(null),ed=d.createContext(null),u3=d.forwardRef(function(t,n){[t,n]=mt(t,n,mu);let r=d.useContext(Xn),o=ja(t),i=t.isOpen!=null||t.defaultOpen!=null||!r?o:r,a=Qi(n,i.isOpen)||t.isExiting||!1,s=h4(),{direction:l}=Yn();if(s){let u=t.children;return typeof u=="function"&&(u=u({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,u)}return i&&!i.isOpen&&!a?null:d.createElement(c3,{...t,triggerRef:t.triggerRef,state:i,popoverRef:n,isExiting:a,dir:l})});function c3({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){let i=d.useRef(null),a=d.useRef(null),s=d.useContext(ed),l=s&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:h,underlayProps:c,arrowProps:p,placement:f,triggerAnchorPoint:g}=j9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:l?s:a},e),m=o.popoverRef,v=_a(m,!!f)||o.isEntering||!1,b=gt({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:f,isEntering:v,isExiting:t}}),x=!o.isNonModal||o.trigger==="SubmenuTrigger",[w,S]=d.useState(!1);le(()=>{m.current&&S(x&&!m.current.querySelector("[role=dialog]"))},[m,x]),d.useEffect(()=>{w&&o.trigger!=="SubmenuTrigger"&&m.current&&!m.current.contains(document.activeElement)&&bn(m.current)},[w,m,o.trigger]);let k=d.useMemo(()=>{let _=b.children;if(r)for(let D of r)_=d.createElement(D.Provider,{value:null},_);return _},[b.children,r]),P={...h.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...b.style},R=d.createElement("div",{...ie(Ee(o,{global:!0}),h),...b,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:m,slot:o.slot||void 0,style:P,dir:o.dir,"data-trigger":o.trigger,"data-placement":f,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&d.createElement(wl,{onDismiss:e.close}),d.createElement(a1.Provider,{value:{...p,placement:f,ref:i}},k),d.createElement(wl,{onDismiss:e.close}));if(!l)return d.createElement(Cl,{...o,shouldContainFocus:w,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&d.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),d.createElement("div",{ref:a,style:{display:"contents"}},d.createElement(ed.Provider,{value:a},R)));var M;return d.createElement(Cl,{...o,shouldContainFocus:w,isExiting:t,portalContainer:(M=n??(s==null?void 0:s.current))!==null&&M!==void 0?M:void 0},R)}const d3=d.createContext({}),s1=d.createContext(null),vu=d.createContext(null),oa=d.createContext(null),ia=d.createContext(null);function f3(e){let t=gu(e),n=d.useRef(null),{menuTriggerProps:r,menuProps:o}=n4({...e,type:"menu"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);Gi({ref:n,onResize:s});let l=d.useRef(null);return d.createElement(Sn,{values:[[s1,{...o,ref:l}],[Xn,t],[oa,t],[mu,{trigger:"MenuTrigger",triggerRef:n,scrollRef:l,placement:"bottom start",style:{"--trigger-width":i},"aria-labelledby":o["aria-labelledby"]}]]},d.createElement(ch,{...r,ref:n,isPressed:t.isOpen},e.children))}const h3=d.createContext(null);class p3 extends Qr{filter(t,n,r){let o=t.getItem(this.firstChildKey);if(o&&r(o.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}}p3.type="submenutrigger";const g3=d.forwardRef(function(t,n){return[t,n]=mt(t,n,s1),d.createElement(S4,{content:d.createElement(_4,t)},r=>d.createElement(m3,{props:t,collection:r,menuRef:n}))});function m3({props:e,collection:t,menuRef:n}){[e,n]=mt(e,n,cc);let{filter:r,...o}=e,i=d.useMemo(()=>r?t.filter(r):t,[t,r]),a=r3({...e,collection:i,children:void 0}),s=d.useContext(oa),{isVirtualized:l,CollectionRoot:u}=d.useContext(Zp),{menuProps:h}=r4({...e,isVirtualized:l,onClose:e.onClose||(s==null?void 0:s.close)},a,n),c=gt({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=d.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let f=Ee(e,{global:!0});return d.createElement(fh,null,d.createElement("div",{...ie(f,c,h),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},d.createElement(Sn,{values:[[vu,a],[s3,{elementType:"div"}],[F4,{name:"MenuSection",render:b3}],[h3,{parentMenuRef:n,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[El,null],[cc,null],[y5,null],[ia,a.selectionManager],[oa,s??gu({})]]},d.createElement(o1,null,d.createElement(u,{collection:a.collection,persistedKeys:N4(a.selectionManager.focusedKey),scrollRef:n}))),p))}class v3 extends Ia{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,n){super(t.collection,n),this.parent=t}}function b3(e,t,n,r="react-aria-MenuSection"){var o,i;let a=d.useContext(vu),{CollectionBranch:s}=d.useContext(Zp),[l,u]=U0();var h;let{headingProps:c,groupProps:p}=i4({heading:u,"aria-label":(h=n.props["aria-label"])!==null&&h!==void 0?h:void 0}),f=gt({defaultClassName:r,className:(o=n.props)===null||o===void 0?void 0:o.className,style:(i=n.props)===null||i===void 0?void 0:i.style,values:{}}),g=d.useContext(ia),m=n1(e),v=e.selectionMode!=null?new v3(g,m):g,b=Ee(e,{global:!0});return delete b.id,d.createElement("section",{...ie(b,f,p),ref:t},d.createElement(Sn,{values:[[i3,{...c,ref:l}],[ia,v]]},d.createElement(s,{collection:a.collection,parent:n})))}const El=d.createContext(null),y3=T4(Up,function(t,n,r){var o;[t,n]=mt(t,n,El);let i=(o=z0(El))===null||o===void 0?void 0:o.id,a=d.useContext(vu),s=qr(n),l=d.useContext(ia),{menuItemProps:u,labelProps:h,descriptionProps:c,keyboardShortcutProps:p,...f}=o4({...t,id:i,key:r.key,selectionManager:l},a,s),{hoverProps:g,isHovered:m}=Gr({isDisabled:f.isDisabled}),v=gt({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),b=t.href?"a":"div",x=Ee(t,{global:!0});return delete x.id,delete x.onClick,d.createElement(b,{...ie(x,v,u,g),ref:s,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},d.createElement(Sn,{values:[[Z4,{slots:{[Yi]:h,label:h,description:c}}],[d3,p],[i1,{isSelected:f.isSelected}]]},v.children))}),l1=d.createContext(null),Xn=d.createContext(null);function u1(e){let t=gu(e),n=d.useRef(null),{triggerProps:r,overlayProps:o}=yh({type:"dialog"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);return Gi({ref:n,onResize:s}),r.id=ot(),o["aria-labelledby"]=r.id,d.createElement(Sn,{values:[[Xn,t],[oa,t],[l1,o],[mu,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},d.createElement(ch,{...r,ref:n,isPressed:t.isOpen},e.children))}const Na=d.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=mt(t,n,l1);let{dialogProps:o,titleProps:i}=z4({...t,"aria-labelledby":r},n),a=d.useContext(Xn);!o["aria-label"]&&!o["aria-labelledby"]&&t["aria-labelledby"]&&(o["aria-labelledby"]=t["aria-labelledby"]);let s=gt({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}}),l=Ee(t,{global:!0});return d.createElement("section",{...ie(l,s,o),ref:n,slot:t.slot||void 0},d.createElement(Sn,{values:[[R0,{slots:{[Yi]:{},title:{...i,level:2}}}],[t1,{slots:{[Yi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))}),Aa=d.forwardRef(function(t,n){[t,n]=mt(t,n,R0);let{children:r,level:o=3,className:i,...a}=t,s=`h${o}`;return d.createElement(s,{...a,ref:n,className:i??"react-aria-Heading"},r)}),x3=d.createContext(null),w3=d.forwardRef(function(t,n){[t,n]=mt(t,n,x3);let{value:r=0,minValue:o=0,maxValue:i=100}=t;r=ko(r,o,i);let[a,s]=U0(!t["aria-label"]&&!t["aria-labelledby"]),{meterProps:l,labelProps:u}=q4({...t,label:s}),h=(r-o)/(i-o)*100,c=gt({...t,defaultClassName:"react-aria-Meter",values:{percentage:h,valueText:l["aria-valuetext"]}}),p=Ee(t,{global:!0});return d.createElement("div",{...ie(p,c,l),ref:n,slot:t.slot||void 0},d.createElement(Q4.Provider,{value:{...u,ref:a,elementType:"span"}},c.children))}),C3=d.createContext(null),bu=d.createContext(null),Ka=d.forwardRef(function(t,n){if(d.useContext(bu))return d.createElement(td,{...t,modalRef:n},t.children);let{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,children:u,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f,...g}=t;return d.createElement(S3,{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f},d.createElement(td,{...g,modalRef:n},u))});function $3(e,t){[e,t]=mt(e,t,C3);let n=d.useContext(Xn),r=ja(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=qr(t),a=d.useRef(null),s=Qi(i,o.isOpen),l=Qi(a,o.isOpen),u=s||l||e.isExiting||!1,h=$n();return!o.isOpen&&!u||h?null:d.createElement(E3,{...e,state:o,isExiting:u,overlayRef:i,modalRef:a})}const S3=d.forwardRef($3);function E3({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=N9(t,r,n),a=_a(t.overlayRef)||t.isEntering||!1,s=gt({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=oy(),u;if(typeof document<"u"){let c=Un(document.body)?document.body:document.scrollingElement||document.documentElement,p=c.getBoundingClientRect().height%1;u=c.scrollHeight-p}let h={...s.style,"--visual-viewport-height":l.height+"px","--page-height":u!==void 0?u+"px":void 0};return d.createElement(Cl,{isExiting:t.isExiting,portalContainer:e},d.createElement("div",{...ie(Ee(t,{global:!0}),i),...s,style:h,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},d.createElement(Sn,{values:[[bu,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Xn,r]]},s.children)))}function td(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(bu),i=d.useContext(Xn),a=d.useMemo(()=>T0(e.modalRef,n),[e.modalRef,n]),s=qr(a),l=_a(s),u=gt({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return d.createElement("div",{...ie(Ee(e,{global:!0}),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&d.createElement(wl,{onDismiss:i.close}),u.children)}const P3=d.createContext({}),c1=d.createContext(null),R3=d.forwardRef(function(t,n){[t,n]=mt(t,n,P3);let r=V4(t),{groupProps:o}=K4(t,r,n),i=gt({...t,values:{orientation:t.orientation||"horizontal",isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"}),a=Ee(t,{global:!0});return d.createElement("div",{...ie(a,i,o),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},d.createElement(c1.Provider,{value:r},d.createElement(o1,null,i.children)))}),k3=d.createContext({}),M3=d.forwardRef(function(t,n){[t,n]=mt(t,n,k3);let r=d.useContext(c1),o=H4(r&&t.id!=null?{isSelected:r.selectedKeys.has(t.id),onChange(v){r.setSelected(t.id,v)}}:t),{buttonProps:i,isPressed:a,isSelected:s,isDisabled:l}=r&&t.id!=null?B4({...t,id:t.id},r,n):e1({...t,id:t.id!=null?String(t.id):void 0},o,n),{focusProps:u,isFocused:h,isFocusVisible:c}=gh(t),{hoverProps:p,isHovered:f}=Gr(t),g=gt({...t,id:void 0,values:{isHovered:f,isPressed:a,isFocused:h,isSelected:o.isSelected,isFocusVisible:c,isDisabled:l,state:o},defaultClassName:"react-aria-ToggleButton"}),m=Ee(t,{global:!0});return delete m.id,delete m.onClick,d.createElement("button",{...ie(m,g,i,u,p),ref:n,slot:t.slot||void 0,"data-focused":h||void 0,"data-disabled":l||void 0,"data-pressed":a||void 0,"data-selected":s||void 0,"data-hovered":f||void 0,"data-focus-visible":c||void 0},d.createElement(i1.Provider,{value:{isSelected:s}},g.children))}),yu=d.createContext(null),d1=d.createContext(null);function O3(e){let t=r1(e),n=d.useRef(null),{triggerProps:r,tooltipProps:o}=G4(e,t,n);return d.createElement(Sn,{values:[[yu,t],[d1,{...o,triggerRef:n}]]},d.createElement(l9,{...r,ref:n},e.children))}const T3=d.forwardRef(function({UNSTABLE_portalContainer:t,...n},r){[n,r]=mt(n,r,d1);let o=d.useContext(yu),i=r1(n),a=n.isOpen!=null||n.defaultOpen!=null||!o?i:o,s=Qi(r,a.isOpen)||n.isExiting||!1;return!a.isOpen&&!s?null:d.createElement(T9,{portalContainer:t},d.createElement(D3,{...n,tooltipRef:r,isExiting:s}))});function D3(e){let t=d.useContext(yu),n=d.useRef(null),{overlayProps:r,arrowProps:o,placement:i,triggerAnchorPoint:a}=J0({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=_a(e.tooltipRef,!!i)||e.isEntering||!1,l=gt({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:s,isExiting:e.isExiting,state:t}});e=ie(e,r);let{tooltipProps:u}=W4(e,t),h=Ee(e,{global:!0});return d.createElement("div",{...ie(h,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0,...l.style},"data-placement":i??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},d.createElement(a1.Provider,{value:{...o,placement:i,ref:n}},l.children))}function _3(e,t){var n=d.useState(function(){if(typeof window>"u")return t;try{for(var a=window.localStorage.getItem(e),s=a?JSON.parse(a):t,l=0,u=Object.entries(t);l<u.length;l++){var h=u[l][0];if(typeof s[h]>"u")throw new Error("Missing key in local storage")}return s}catch(c){return console.log(c),t}}),r=n[0],o=n[1],i=function(a){try{var s=a instanceof Function?a(r):a;o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch(l){console.log(l)}};return[r,i]}var L3=function(){var e=_3("user-preferences",{theme:"system"}),t=e[0],n=e[1];return y.jsx(R3,{className:"flex h-7 space-x-0.5 rounded-md bg-slate-100 p-0.5 dark:bg-slate-700",defaultSelectedKeys:["system"],"aria-label":"Theme",selectedKeys:[t.theme],onSelectionChange:function(r){r.has("system")?n({theme:"system"}):r.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):r.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return y.jsx(B2,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return y.jsx(g5,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return y.jsx(a5,{})},ariaLabel:"Dark theme"}].map(function(r){return y.jsx(M3,{className:"flex aspect-square h-full items-center justify-center rounded-md text-slate-900 transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 data-[selected=true]:bg-slate-200 data-[selected=true]:shadow-sm dark:text-slate-50 dark:hover:bg-slate-500 dark:data-[selected=true]:bg-slate-500",id:r.value,"aria-label":r.ariaLabel,children:r.icon()},r.value)})})},Pl=function(e){var t=e.message;return y.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4 dark:bg-red-950/50",children:y.jsx("div",{className:"flex flex-col justify-center",children:y.jsx("p",{className:"text-sm text-red-900 dark:text-red-200",children:t})})})},nd=function(e){var t=e.to,n=e.label,r=e.icon;return y.jsxs(x0,{to:t,className:function(o){var i=o.isActive;return"relative -ml-px backdrop-blur-50 flex w-full items-center space-x-2 rounded-md pl-4 py-1 transition duration-150 ease-in-out ".concat(i?"bg-slate-100/90 font-medium text-slate-900 dark:bg-slate-900 dark:text-brand-300":"text-slate-500 dark:text-slate-400 border-slate-100 hover:bg-slate-50 dark:hover:bg-slate-900 hover:border-slate-300 hover:text-slate-900 dark:border-slate-700 dark:hover:border-slate-600 dark:hover:text-slate-100")},children:[r,y.jsx("span",{className:"block truncate",children:n})]})},f1=function(e){var t=e.children,n=ue.queue.list.useQuery(),r=n.data,o=n.isLoading,i=n.isError;return y.jsxs("div",{className:"grid xl:grid-cols-[auto,1fr]",children:[y.jsx("div",{className:"hidden w-64 xl:block",children:y.jsxs("div",{className:"sticky top-0 isolate flex h-full max-h-screen min-h-screen flex-col justify-between overflow-hidden border-r border-brand-50 px-4 pb-4 pt-8 shadow-sm dark:border-slate-700 dark:bg-black",children:[y.jsxs("svg",{viewBox:"0 0 1108 632","aria-hidden":"true",className:"absolute left-[calc(50%-24rem)] top-10 -z-10 w-[69.25rem] max-w-none rotate-90 transform-gpu opacity-50 blur-3xl lg:top-[calc(50%-30rem)]",children:[y.jsx("path",{fill:"url(#175c433f-44f6-4d59-93f0-c5c51ad5566d)",fillOpacity:".2",d:"M235.233 402.609 57.541 321.573.83 631.05l234.404-228.441 320.018 145.945c-65.036-115.261-134.286-322.756 109.01-230.655C968.382 433.026 1031 651.247 1092.23 459.36c48.98-153.51-34.51-321.107-82.37-385.717L810.952 324.222 648.261.088 235.233 402.609Z"}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"175c433f-44f6-4d59-93f0-c5c51ad5566d",x1:"1220.59",x2:"-85.053",y1:"432.766",y2:"638.714",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#bbebff"}),y.jsx("stop",{offset:1,stopColor:"#ffffff"})]})})]}),y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex items-center space-x-2 text-slate-900 dark:text-brand-50",children:[y.jsx(f5,{width:28,height:28}),y.jsx("p",{className:"text-lg font-semibold",children:"QueueDash"})]}),y.jsxs("div",{className:"w-full space-y-4",children:[y.jsx(nd,{label:"Overview",icon:y.jsx(A2,{className:"mb-0.5",height:16,width:16}),to:"../"}),y.jsx("div",{className:"h-px w-full bg-slate-100 dark:bg-slate-700"}),y.jsx("div",{className:"w-full space-y-1",children:o?Be([],new Array(10),!0).map(function(a,s){return y.jsx(Ro,{className:"h-8 w-full"},s)}):i?y.jsx(Pl,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(a){return y.jsx(nd,{to:"../".concat(a.name),label:a.displayName},a.name)})})]})]}),y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("a",{href:"https://github.com/alexbudure/queuedash",target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-md bg-slate-100 text-slate-900 shadow-sm transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 dark:bg-slate-600 dark:text-slate-50 dark:hover:bg-slate-500",children:y.jsx(Y2,{})}),y.jsx(L3,{})]})]})}),y.jsx("div",{className:"bg-white px-4 py-3 dark:bg-[#121212] lg:px-10 lg:py-8",children:y.jsx("div",{className:"max-w-screen-xl",children:t})})]})};/**
|
|
40
40
|
* table-core
|
|
41
41
|
*
|
|
42
42
|
* Copyright (c) TanStack
|
|
@@ -45,10 +45,10 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
45
45
|
* LICENSE.md file in the root directory of this source tree.
|
|
46
46
|
*
|
|
47
47
|
* @license MIT
|
|
48
|
-
*/function
|
|
48
|
+
*/function h1(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function fn(e,t){return typeof e=="function"?e(t):e}function it(e,t){return n=>{t.setState(r=>({...r,[e]:fn(n,r[e])}))}}function Ba(e){return e instanceof Function}function F3(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function I3(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const a=t(i);a!=null&&a.length&&r(a)})};return r(e),n}function J(e,t,n){let r=[],o;return i=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(i);if(!(s.length!==r.length||s.some((h,c)=>r[c]!==h)))return o;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),o=t(...s),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const h=Math.round((Date.now()-a)*100)/100,c=Math.round((Date.now()-u)*100)/100,p=c/16,f=(g,m)=>{for(g=String(g);g.length<m;)g=" "+g;return g};console.info(`%c⏱ ${f(c,5)} /${f(h,5)} ms`,`
|
|
49
49
|
font-size: .6rem;
|
|
50
50
|
font-weight: bold;
|
|
51
|
-
color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function J(e,t,n,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[t]},key:!1,onChange:r}}function $3(e,t,n,r){const o=()=>{var a;return(a=i.getValue())!=null?a:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:Z(()=>[e,n,t,i],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),J(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,n,t,e)},{}),i}function S3(e,t,n,r){var o,i;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(o=(i=s.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof s.header=="string"?s.header:void 0,h;if(s.accessorFn?h=s.accessorFn:l&&(l.includes(".")?h=p=>{let f=p;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m]}return f}:h=p=>p[s.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:h,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:Z(()=>[!0],()=>{var p;return[c,...(p=c.columns)==null?void 0:p.flatMap(f=>f.getFlatColumns())]},J(e.options,"debugColumns")),getLeafColumns:Z(()=>[e._getOrderColumnsFn()],p=>{var f;if((f=c.columns)!=null&&f.length){let g=c.columns.flatMap(m=>m.getLeafColumns());return p(g)}return[c]},J(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(c,e);return c}const Fe="debugHeaders";function rd(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(i),a},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(i,e)}),i}const E3={createTable:e=>{e.getHeaderGroups=Z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=(i=r==null?void 0:r.map(c=>n.find(p=>p.id===c)).filter(Boolean))!=null?i:[],l=(a=o==null?void 0:o.map(c=>n.find(p=>p.id===c)).filter(Boolean))!=null?a:[],u=n.filter(c=>!(r!=null&&r.includes(c.id))&&!(o!=null&&o.includes(c.id)));return Ci(t,[...s,...u,...l],e)},J(e.options,Fe)),e.getCenterHeaderGroups=Z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),Ci(t,n,e,"center")),J(e.options,Fe)),e.getLeftHeaderGroups=Z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return Ci(t,i,e,"left")},J(e.options,Fe)),e.getRightHeaderGroups=Z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return Ci(t,i,e,"right")},J(e.options,Fe)),e.getFooterGroups=Z(()=>[e.getHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getLeftFooterGroups=Z(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getCenterFooterGroups=Z(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getRightFooterGroups=Z(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getFlatHeaders=Z(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getLeftFlatHeaders=Z(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getCenterFlatHeaders=Z(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getRightFlatHeaders=Z(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getCenterLeafHeaders=Z(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getLeftLeafHeaders=Z(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getRightLeafHeaders=Z(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getLeafHeaders=Z(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,a,s,l,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(h=>h.getLeafHeaders()).flat()},J(e.options,Fe))}};function Ci(e,t,n,r){var o,i;let a=0;const s=function(p,f){f===void 0&&(f=1),a=Math.max(a,f),p.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(p,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];p.forEach(v=>{const b=[...m].reverse()[0],x=v.column.depth===g.depth;let w,$=!1;if(x&&v.column.parent?w=v.column.parent:(w=v.column,$=!0),b&&(b==null?void 0:b.column)===w)b.subHeaders.push(v);else{const k=rd(n,w,{id:[r,f,w.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:$,placeholderId:$?`${m.filter(E=>E.column===w).length}`:void 0,depth:f,index:m.length});k.subHeaders.push(v),m.push(k)}g.headers.push(v),v.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},h=t.map((p,f)=>rd(n,p,{depth:a,index:f}));u(h,a-1),l.reverse();const c=p=>p.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,v=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],c(g.subHeaders).forEach(w=>{let{colSpan:$,rowSpan:k}=w;m+=$,b.push(k)})):m=1;const x=Math.min(...b);return v=v+x,g.colSpan=m,g.rowSpan=v,{colSpan:m,rowSpan:v}});return c((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const P3=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>C3(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const h=u.getParentRow();if(!h)break;l.push(h),u=h}return l.reverse()},getAllCells:Z(()=>[e.getAllLeafColumns()],l=>l.map(u=>$3(e,s,u,u.id)),J(e.options,"debugRows")),_getAllCellsByColumnId:Z(()=>[s.getAllCells()],l=>l.reduce((u,h)=>(u[h.column.id]=h,u),{}),J(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},R3={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},s1=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};s1.autoRemove=e=>Ct(e);const l1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};l1.autoRemove=e=>Ct(e);const u1=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};u1.autoRemove=e=>Ct(e);const c1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};c1.autoRemove=e=>Ct(e);const d1=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});d1.autoRemove=e=>Ct(e)||!(e!=null&&e.length);const f1=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});f1.autoRemove=e=>Ct(e)||!(e!=null&&e.length);const h1=(e,t,n)=>e.getValue(t)===n;h1.autoRemove=e=>Ct(e);const p1=(e,t,n)=>e.getValue(t)==n;p1.autoRemove=e=>Ct(e);const xu=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};xu.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(o)?1/0:o;if(i>a){const s=i;i=a,a=s}return[i,a]};xu.autoRemove=e=>Ct(e)||Ct(e[0])&&Ct(e[1]);const Bt={includesString:s1,includesStringSensitive:l1,equalsString:u1,arrIncludes:c1,arrIncludesAll:d1,arrIncludesSome:f1,equals:h1,weakEquals:p1,inNumberRange:xu};function Ct(e){return e==null||e===""}const k3={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:at("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Bt.includesString:typeof r=="number"?Bt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Bt.equals:Array.isArray(r)?Bt.arrIncludes:Bt.weakEquals},e.getFilterFn=()=>{var n,r;return Ha(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Bt[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(h=>h.id===e.id),a=pn(n,i?i.value:void 0);if(od(o,a,e)){var s;return(s=r==null?void 0:r.filter(h=>h.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(i){var u;return(u=r==null?void 0:r.map(h=>h.id===e.id?l:h))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=pn(t,o))==null?void 0:i.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(od(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function od(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const M3=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),O3=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},T3=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},D3=(e,t,n)=>{let r,o;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r===void 0?a>=a&&(r=o=a):(r>a&&(r=a),o<a&&(o=a)))}),[r,o]},_3=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},F3=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!w3(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,a)=>i-a);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},L3=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),I3=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,N3=(e,t)=>t.length,gs={sum:M3,min:O3,max:T3,extent:D3,mean:_3,median:F3,unique:L3,uniqueCount:I3,count:N3},j3={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:at("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return gs.sum;if(Object.prototype.toString.call(r)==="[object Date]")return gs.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Ha(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:gs[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function A3(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(a=>a.id===i)).filter(Boolean),...r]}const K3={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:at("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Z(n=>[Co(t,n)],n=>n.findIndex(r=>r.id===e.id),J(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=Co(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Co(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Z(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const a=[...t],s=[...o];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(h=>h.id===l);u>-1&&i.push(s.splice(u,1)[0])}i=[...i,...s]}return A3(i,n,r)},J(e.options,"debugTable"))}},ms=()=>({left:[],right:[]}),B3={getInitialState:e=>({columnPinning:ms(),...e}),getDefaultOptions:e=>({onColumnPinningChange:at("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,a;if(n==="right"){var s,l;return{left:((s=o==null?void 0:o.left)!=null?s:[]).filter(c=>!(r!=null&&r.includes(c))),right:[...((l=o==null?void 0:o.right)!=null?l:[]).filter(c=>!(r!=null&&r.includes(c))),...r]}}if(n==="left"){var u,h;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(c=>!(r!=null&&r.includes(c))),...r],right:((h=o==null?void 0:o.right)!=null?h:[]).filter(c=>!(r!=null&&r.includes(c)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(c=>!(r!=null&&r.includes(c))),right:((a=o==null?void 0:o.right)!=null?a:[]).filter(c=>!(r!=null&&r.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,a;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Z(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(a=>!i.includes(a.column.id))},J(t.options,"debugRows")),e.getLeftVisibleCells=Z(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),J(t.options,"debugRows")),e.getRightVisibleCells=Z(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),J(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?ms():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:ms())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),J(e.options,"debugColumns")),e.getRightLeafColumns=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),J(e.options,"debugColumns")),e.getCenterLeafColumns=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},J(e.options,"debugColumns"))}};function H3(e){return e||(typeof document<"u"?document:null)}const $i={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},vs=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),V3={getDefaultColumnDef:()=>$i,getInitialState:e=>({columnSizing:{},columnSizingInfo:vs(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:at("columnSizing",e),onColumnSizingInfoChange:at("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:$i.minSize,(r=i??e.columnDef.size)!=null?r:$i.size),(o=e.columnDef.maxSize)!=null?o:$i.maxSize)},e.getStart=Z(n=>[n,Co(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),J(t.options,"debugColumns")),e.getAfter=Z(n=>[n,Co(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),J(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),bs(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=bs(i)?Math.round(i.touches[0].clientX):i.clientX,u={},h=(b,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(w=>{var $,k;const E=t.options.columnResizeDirection==="rtl"?-1:1,R=(x-(($=w==null?void 0:w.startOffset)!=null?$:0))*E,M=Math.max(R/((k=w==null?void 0:w.startSize)!=null?k:0),-.999999);return w.columnSizingStart.forEach(_=>{let[D,P]=_;u[D]=Math.round(Math.max(P+P*M,0)*100)/100}),{...w,deltaOffset:R,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(w=>({...w,...u})))},c=b=>h("move",b),p=b=>{h("end",b),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=H3(n),g={moveHandler:b=>c(b.clientX),upHandler:b=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),p(b.clientX)}},m={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),c(b.touches[0].clientX),!1),upHandler:b=>{var x;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),p((x=b.touches[0])==null?void 0:x.clientX)}},v=z3()?{passive:!1}:!1;bs(i)?(f==null||f.addEventListener("touchmove",m.moveHandler,v),f==null||f.addEventListener("touchend",m.upHandler,v)):(f==null||f.addEventListener("mousemove",g.moveHandler,v),f==null||f.addEventListener("mouseup",g.upHandler,v)),t.setColumnSizingInfo(b=>({...b,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?vs():(n=e.initialState.columnSizingInfo)!=null?n:vs())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let Si=null;function z3(){if(typeof Si=="boolean")return Si;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Si=e,Si}function bs(e){return e.type==="touchstart"}const U3={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:at("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Z(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),J(t.options,"debugRows")),e.getVisibleCells=Z(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],J(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>Z(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),J(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Co(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const q3={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},W3={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:at("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Bt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Ha(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Bt[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},G3={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:at("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const a=i.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(o=n)!=null?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Pl=0,Rl=10,ys=()=>({pageIndex:Pl,pageSize:Rl}),Q3={getInitialState:e=>({...e,pagination:{...ys(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:at("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>pn(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?ys():(o=e.initialState.pagination)!=null?o:ys())},e.setPageIndex=r=>{e.setPagination(o=>{let i=pn(r,o.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,a)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Pl:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Pl)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Rl:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Rl)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,pn(r,o.pageSize)),a=o.pageSize*o.pageIndex,s=Math.floor(a/i);return{...o,pageIndex:s,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let a=pn(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=Z(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},J(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},xs=()=>({top:[],bottom:[]}),Y3={getInitialState:e=>({rowPinning:xs(),...e}),getDefaultOptions:e=>({onRowPinningChange:at("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=o?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(l=>{var u,h;if(n==="bottom"){var c,p;return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=i==null?void 0:i.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?xs():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:xs())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=Z(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),J(e.options,"debugRows")),e.getBottomRows=Z(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),J(e.options,"debugRows")),e.getCenterRows=Z(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},J(e.options,"debugRows"))}},X3={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:at("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{kl(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?ws(e,n):{rows:[],flatRows:[],rowsById:{}},J(e.options,"debugTable")),e.getFilteredSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?ws(e,n):{rows:[],flatRows:[],rowsById:{}},J(e.options,"debugTable")),e.getGroupedSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?ws(e,n):{rows:[],flatRows:[],rowsById:{}},J(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return kl(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return wu(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ml(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ml(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},kl=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=a.subRows)!=null&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>kl(e,s.id,n,r,o))};function ws(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(a,s){return a.map(l=>{var u;const h=wu(l,n);if(h&&(r.push(l),o[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),h)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function wu(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ml(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(a=>{if(!(i&&!o)&&(a.getCanSelect()&&(wu(a,t)?i=!0:o=!1),a.subRows&&a.subRows.length)){const s=Ml(a,t);s==="all"?i=!0:(s==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Ol=/([0-9]+)/gm,Z3=(e,t,n)=>g1(wn(e.getValue(n)).toLowerCase(),wn(t.getValue(n)).toLowerCase()),J3=(e,t,n)=>g1(wn(e.getValue(n)),wn(t.getValue(n))),e8=(e,t,n)=>Cu(wn(e.getValue(n)).toLowerCase(),wn(t.getValue(n)).toLowerCase()),t8=(e,t,n)=>Cu(wn(e.getValue(n)),wn(t.getValue(n))),n8=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},r8=(e,t,n)=>Cu(e.getValue(n),t.getValue(n));function Cu(e,t){return e===t?0:e>t?1:-1}function wn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function g1(e,t){const n=e.split(Ol).filter(Boolean),r=t.split(Ol).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),a=parseInt(o,10),s=parseInt(i,10),l=[a,s].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const ao={alphanumeric:Z3,alphanumericCaseSensitive:J3,text:e8,textCaseSensitive:t8,datetime:n8,basic:r8},o8={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:at("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return ao.datetime;if(typeof i=="string"&&(r=!0,i.split(Ol).length>1))return ao.alphanumeric}return r?ao.text:ao.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Ha(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:ao[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(f=>f.id===e.id),l=a==null?void 0:a.findIndex(f=>f.id===e.id);let u=[],h,c=i?n:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?h="toggle":h="add":a!=null&&a.length&&l!==a.length-1?h="replace":s?h="toggle":h="replace",h==="toggle"&&(i||o||(h="remove")),h==="add"){var p;u=[...a,{id:e.id,desc:c}],u.splice(0,u.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else h==="toggle"?u=a.map(f=>f.id===e.id?{...f,desc:c}:f):h==="remove"?u=a.filter(f=>f.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},i8=[E3,U3,K3,B3,R3,k3,q3,W3,o8,j3,G3,Q3,Y3,X3,V3];function a8(e){var t,n;const r=[...i8,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((p,f)=>Object.assign(p,f.getDefaultOptions==null?void 0:f.getDefaultOptions(o)),{}),a=p=>o.options.mergeOptions?o.options.mergeOptions(i,p):{...i,...p};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(p=>{var f;l=(f=p.getInitialState==null?void 0:p.getInitialState(l))!=null?f:l});const u=[];let h=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:p=>{u.push(p),h||(h=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();h=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{o.setState(o.initialState)},setOptions:p=>{const f=pn(p,o.options);o.options=a(f)},getState:()=>o.options.state,setState:p=>{o.options.onStateChange==null||o.options.onStateChange(p)},_getRowId:(p,f,g)=>{var m;return(m=o.options.getRowId==null?void 0:o.options.getRowId(p,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(p,f)=>{let g=(f?o.getPrePaginationRowModel():o.getRowModel()).rowsById[p];if(!g&&(g=o.getCoreRowModel().rowsById[p],!g))throw new Error;return g},_getDefaultColumnDef:Z(()=>[o.options.defaultColumn],p=>{var f;return p=(f=p)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,v;return(m=(v=g.renderValue())==null||v.toString==null?void 0:v.toString())!=null?m:null},...o._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...p}},J(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Z(()=>[o._getColumnDefs()],p=>{const f=function(g,m,v){return v===void 0&&(v=0),g.map(b=>{const x=S3(o,b,v,m),w=b;return x.columns=w.columns?f(w.columns,x,v+1):[],x})};return f(p)},J(e,"debugColumns")),getAllFlatColumns:Z(()=>[o.getAllColumns()],p=>p.flatMap(f=>f.getFlatColumns()),J(e,"debugColumns")),_getAllFlatColumnsById:Z(()=>[o.getAllFlatColumns()],p=>p.reduce((f,g)=>(f[g.id]=g,f),{}),J(e,"debugColumns")),getAllLeafColumns:Z(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(p,f)=>{let g=p.flatMap(m=>m.getLeafColumns());return f(g)},J(e,"debugColumns")),getColumn:p=>o._getAllFlatColumnsById()[p]};Object.assign(o,c);for(let p=0;p<o._features.length;p++){const f=o._features[p];f==null||f.createTable==null||f.createTable(o)}return o}function m1(){return e=>Z(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,a){i===void 0&&(i=0);const s=[];for(let u=0;u<o.length;u++){const h=P3(e,e._getRowId(o[u],u,a),o[u],u,i,void 0,a==null?void 0:a.id);if(n.flatRows.push(h),n.rowsById[h.id]=h,s.push(h),e.options.getSubRows){var l;h.originalSubRows=e.options.getSubRows(o[u],u),(l=h.originalSubRows)!=null&&l.length&&(h.subRows=r(h.originalSubRows,i+1,h))}}return s};return n.rows=r(t),n},J(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
51
|
+
color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function ee(e,t,n,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[t]},key:!1,onChange:r}}function j3(e,t,n,r){const o=()=>{var a;return(a=i.getValue())!=null?a:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:J(()=>[e,n,t,i],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),ee(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,n,t,e)},{}),i}function N3(e,t,n,r){var o,i;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(o=(i=s.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof s.header=="string"?s.header:void 0,h;if(s.accessorFn?h=s.accessorFn:l&&(l.includes(".")?h=p=>{let f=p;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m]}return f}:h=p=>p[s.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:h,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:J(()=>[!0],()=>{var p;return[c,...(p=c.columns)==null?void 0:p.flatMap(f=>f.getFlatColumns())]},ee(e.options,"debugColumns")),getLeafColumns:J(()=>[e._getOrderColumnsFn()],p=>{var f;if((f=c.columns)!=null&&f.length){let g=c.columns.flatMap(m=>m.getLeafColumns());return p(g)}return[c]},ee(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(c,e);return c}const Fe="debugHeaders";function rd(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(i),a},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(i,e)}),i}const A3={createTable:e=>{e.getHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=(i=r==null?void 0:r.map(c=>n.find(p=>p.id===c)).filter(Boolean))!=null?i:[],l=(a=o==null?void 0:o.map(c=>n.find(p=>p.id===c)).filter(Boolean))!=null?a:[],u=n.filter(c=>!(r!=null&&r.includes(c.id))&&!(o!=null&&o.includes(c.id)));return Ci(t,[...s,...u,...l],e)},ee(e.options,Fe)),e.getCenterHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),Ci(t,n,e,"center")),ee(e.options,Fe)),e.getLeftHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return Ci(t,i,e,"left")},ee(e.options,Fe)),e.getRightHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return Ci(t,i,e,"right")},ee(e.options,Fe)),e.getFooterGroups=J(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ee(e.options,Fe)),e.getLeftFooterGroups=J(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ee(e.options,Fe)),e.getCenterFooterGroups=J(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ee(e.options,Fe)),e.getRightFooterGroups=J(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ee(e.options,Fe)),e.getFlatHeaders=J(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Fe)),e.getLeftFlatHeaders=J(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Fe)),e.getCenterFlatHeaders=J(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Fe)),e.getRightFlatHeaders=J(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Fe)),e.getCenterLeafHeaders=J(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Fe)),e.getLeftLeafHeaders=J(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Fe)),e.getRightLeafHeaders=J(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Fe)),e.getLeafHeaders=J(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,a,s,l,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(h=>h.getLeafHeaders()).flat()},ee(e.options,Fe))}};function Ci(e,t,n,r){var o,i;let a=0;const s=function(p,f){f===void 0&&(f=1),a=Math.max(a,f),p.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(p,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];p.forEach(v=>{const b=[...m].reverse()[0],x=v.column.depth===g.depth;let w,S=!1;if(x&&v.column.parent?w=v.column.parent:(w=v.column,S=!0),b&&(b==null?void 0:b.column)===w)b.subHeaders.push(v);else{const k=rd(n,w,{id:[r,f,w.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${m.filter(P=>P.column===w).length}`:void 0,depth:f,index:m.length});k.subHeaders.push(v),m.push(k)}g.headers.push(v),v.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},h=t.map((p,f)=>rd(n,p,{depth:a,index:f}));u(h,a-1),l.reverse();const c=p=>p.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,v=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],c(g.subHeaders).forEach(w=>{let{colSpan:S,rowSpan:k}=w;m+=S,b.push(k)})):m=1;const x=Math.min(...b);return v=v+x,g.colSpan=m,g.rowSpan=v,{colSpan:m,rowSpan:v}});return c((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const K3=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>I3(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const h=u.getParentRow();if(!h)break;l.push(h),u=h}return l.reverse()},getAllCells:J(()=>[e.getAllLeafColumns()],l=>l.map(u=>j3(e,s,u,u.id)),ee(e.options,"debugRows")),_getAllCellsByColumnId:J(()=>[s.getAllCells()],l=>l.reduce((u,h)=>(u[h.column.id]=h,u),{}),ee(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},B3={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},p1=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};p1.autoRemove=e=>Ct(e);const g1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};g1.autoRemove=e=>Ct(e);const m1=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};m1.autoRemove=e=>Ct(e);const v1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};v1.autoRemove=e=>Ct(e);const b1=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});b1.autoRemove=e=>Ct(e)||!(e!=null&&e.length);const y1=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});y1.autoRemove=e=>Ct(e)||!(e!=null&&e.length);const x1=(e,t,n)=>e.getValue(t)===n;x1.autoRemove=e=>Ct(e);const w1=(e,t,n)=>e.getValue(t)==n;w1.autoRemove=e=>Ct(e);const xu=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};xu.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(o)?1/0:o;if(i>a){const s=i;i=a,a=s}return[i,a]};xu.autoRemove=e=>Ct(e)||Ct(e[0])&&Ct(e[1]);const jt={includesString:p1,includesStringSensitive:g1,equalsString:m1,arrIncludes:v1,arrIncludesAll:b1,arrIncludesSome:y1,equals:x1,weakEquals:w1,inNumberRange:xu};function Ct(e){return e==null||e===""}const H3={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:it("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?jt.includesString:typeof r=="number"?jt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?jt.equals:Array.isArray(r)?jt.arrIncludes:jt.weakEquals},e.getFilterFn=()=>{var n,r;return Ba(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:jt[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(h=>h.id===e.id),a=fn(n,i?i.value:void 0);if(od(o,a,e)){var s;return(s=r==null?void 0:r.filter(h=>h.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(i){var u;return(u=r==null?void 0:r.map(h=>h.id===e.id?l:h))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=fn(t,o))==null?void 0:i.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(od(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function od(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const V3=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),z3=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},U3=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},q3=(e,t,n)=>{let r,o;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r===void 0?a>=a&&(r=o=a):(r>a&&(r=a),o<a&&(o=a)))}),[r,o]},W3=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},G3=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!F3(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,a)=>i-a);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},Q3=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Y3=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,X3=(e,t)=>t.length,ms={sum:V3,min:z3,max:U3,extent:q3,mean:W3,median:G3,unique:Q3,uniqueCount:Y3,count:X3},Z3={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:it("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return ms.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ms.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Ba(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:ms[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function J3(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(a=>a.id===i)).filter(Boolean),...r]}const e8={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:it("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=J(n=>[yo(t,n)],n=>n.findIndex(r=>r.id===e.id),ee(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=yo(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=yo(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=J(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const a=[...t],s=[...o];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(h=>h.id===l);u>-1&&i.push(s.splice(u,1)[0])}i=[...i,...s]}return J3(i,n,r)},ee(e.options,"debugTable"))}},vs=()=>({left:[],right:[]}),t8={getInitialState:e=>({columnPinning:vs(),...e}),getDefaultOptions:e=>({onColumnPinningChange:it("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,a;if(n==="right"){var s,l;return{left:((s=o==null?void 0:o.left)!=null?s:[]).filter(c=>!(r!=null&&r.includes(c))),right:[...((l=o==null?void 0:o.right)!=null?l:[]).filter(c=>!(r!=null&&r.includes(c))),...r]}}if(n==="left"){var u,h;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(c=>!(r!=null&&r.includes(c))),...r],right:((h=o==null?void 0:o.right)!=null?h:[]).filter(c=>!(r!=null&&r.includes(c)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(c=>!(r!=null&&r.includes(c))),right:((a=o==null?void 0:o.right)!=null?a:[]).filter(c=>!(r!=null&&r.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,a;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(a=>!i.includes(a.column.id))},ee(t.options,"debugRows")),e.getLeftVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),ee(t.options,"debugRows")),e.getRightVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),ee(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?vs():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:vs())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),ee(e.options,"debugColumns")),e.getRightLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),ee(e.options,"debugColumns")),e.getCenterLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},ee(e.options,"debugColumns"))}};function n8(e){return e||(typeof document<"u"?document:null)}const $i={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},bs=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),r8={getDefaultColumnDef:()=>$i,getInitialState:e=>({columnSizing:{},columnSizingInfo:bs(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:it("columnSizing",e),onColumnSizingInfoChange:it("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:$i.minSize,(r=i??e.columnDef.size)!=null?r:$i.size),(o=e.columnDef.maxSize)!=null?o:$i.maxSize)},e.getStart=J(n=>[n,yo(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),ee(t.options,"debugColumns")),e.getAfter=J(n=>[n,yo(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),ee(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),ys(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=ys(i)?Math.round(i.touches[0].clientX):i.clientX,u={},h=(b,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(w=>{var S,k;const P=t.options.columnResizeDirection==="rtl"?-1:1,R=(x-((S=w==null?void 0:w.startOffset)!=null?S:0))*P,M=Math.max(R/((k=w==null?void 0:w.startSize)!=null?k:0),-.999999);return w.columnSizingStart.forEach(_=>{let[D,j]=_;u[D]=Math.round(Math.max(j+j*M,0)*100)/100}),{...w,deltaOffset:R,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(w=>({...w,...u})))},c=b=>h("move",b),p=b=>{h("end",b),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n8(n),g={moveHandler:b=>c(b.clientX),upHandler:b=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),p(b.clientX)}},m={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),c(b.touches[0].clientX),!1),upHandler:b=>{var x;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),p((x=b.touches[0])==null?void 0:x.clientX)}},v=o8()?{passive:!1}:!1;ys(i)?(f==null||f.addEventListener("touchmove",m.moveHandler,v),f==null||f.addEventListener("touchend",m.upHandler,v)):(f==null||f.addEventListener("mousemove",g.moveHandler,v),f==null||f.addEventListener("mouseup",g.upHandler,v)),t.setColumnSizingInfo(b=>({...b,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?bs():(n=e.initialState.columnSizingInfo)!=null?n:bs())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let Si=null;function o8(){if(typeof Si=="boolean")return Si;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Si=e,Si}function ys(e){return e.type==="touchstart"}const i8={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:it("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=J(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),ee(t.options,"debugRows")),e.getVisibleCells=J(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],ee(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>J(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),ee(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function yo(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const a8={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},s8={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:it("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>jt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Ba(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:jt[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},l8={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:it("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const a=i.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(o=n)!=null?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Rl=0,kl=10,xs=()=>({pageIndex:Rl,pageSize:kl}),u8={getInitialState:e=>({...e,pagination:{...xs(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:it("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>fn(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?xs():(o=e.initialState.pagination)!=null?o:xs())},e.setPageIndex=r=>{e.setPagination(o=>{let i=fn(r,o.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,a)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Rl:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Rl)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?kl:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:kl)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,fn(r,o.pageSize)),a=o.pageSize*o.pageIndex,s=Math.floor(a/i);return{...o,pageIndex:s,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let a=fn(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=J(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},ee(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},ws=()=>({top:[],bottom:[]}),c8={getInitialState:e=>({rowPinning:ws(),...e}),getDefaultOptions:e=>({onRowPinningChange:it("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=o?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(l=>{var u,h;if(n==="bottom"){var c,p;return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=i==null?void 0:i.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?ws():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:ws())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),ee(e.options,"debugRows")),e.getBottomRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),ee(e.options,"debugRows")),e.getCenterRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},ee(e.options,"debugRows"))}},d8={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:it("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Ml(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=J(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Cs(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getFilteredSelectedRowModel=J(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Cs(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getGroupedSelectedRowModel=J(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Cs(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return Ml(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return wu(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ol(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ol(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Ml=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=a.subRows)!=null&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>Ml(e,s.id,n,r,o))};function Cs(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(a,s){return a.map(l=>{var u;const h=wu(l,n);if(h&&(r.push(l),o[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),h)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function wu(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ol(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(a=>{if(!(i&&!o)&&(a.getCanSelect()&&(wu(a,t)?i=!0:o=!1),a.subRows&&a.subRows.length)){const s=Ol(a,t);s==="all"?i=!0:(s==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Tl=/([0-9]+)/gm,f8=(e,t,n)=>C1(yn(e.getValue(n)).toLowerCase(),yn(t.getValue(n)).toLowerCase()),h8=(e,t,n)=>C1(yn(e.getValue(n)),yn(t.getValue(n))),p8=(e,t,n)=>Cu(yn(e.getValue(n)).toLowerCase(),yn(t.getValue(n)).toLowerCase()),g8=(e,t,n)=>Cu(yn(e.getValue(n)),yn(t.getValue(n))),m8=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},v8=(e,t,n)=>Cu(e.getValue(n),t.getValue(n));function Cu(e,t){return e===t?0:e>t?1:-1}function yn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function C1(e,t){const n=e.split(Tl).filter(Boolean),r=t.split(Tl).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),a=parseInt(o,10),s=parseInt(i,10),l=[a,s].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const ro={alphanumeric:f8,alphanumericCaseSensitive:h8,text:p8,textCaseSensitive:g8,datetime:m8,basic:v8},b8={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:it("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return ro.datetime;if(typeof i=="string"&&(r=!0,i.split(Tl).length>1))return ro.alphanumeric}return r?ro.text:ro.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Ba(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:ro[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(f=>f.id===e.id),l=a==null?void 0:a.findIndex(f=>f.id===e.id);let u=[],h,c=i?n:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?h="toggle":h="add":a!=null&&a.length&&l!==a.length-1?h="replace":s?h="toggle":h="replace",h==="toggle"&&(i||o||(h="remove")),h==="add"){var p;u=[...a,{id:e.id,desc:c}],u.splice(0,u.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else h==="toggle"?u=a.map(f=>f.id===e.id?{...f,desc:c}:f):h==="remove"?u=a.filter(f=>f.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},y8=[A3,i8,e8,t8,B3,H3,a8,s8,b8,Z3,l8,u8,c8,d8,r8];function x8(e){var t,n;const r=[...y8,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((p,f)=>Object.assign(p,f.getDefaultOptions==null?void 0:f.getDefaultOptions(o)),{}),a=p=>o.options.mergeOptions?o.options.mergeOptions(i,p):{...i,...p};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(p=>{var f;l=(f=p.getInitialState==null?void 0:p.getInitialState(l))!=null?f:l});const u=[];let h=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:p=>{u.push(p),h||(h=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();h=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{o.setState(o.initialState)},setOptions:p=>{const f=fn(p,o.options);o.options=a(f)},getState:()=>o.options.state,setState:p=>{o.options.onStateChange==null||o.options.onStateChange(p)},_getRowId:(p,f,g)=>{var m;return(m=o.options.getRowId==null?void 0:o.options.getRowId(p,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(p,f)=>{let g=(f?o.getPrePaginationRowModel():o.getRowModel()).rowsById[p];if(!g&&(g=o.getCoreRowModel().rowsById[p],!g))throw new Error;return g},_getDefaultColumnDef:J(()=>[o.options.defaultColumn],p=>{var f;return p=(f=p)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,v;return(m=(v=g.renderValue())==null||v.toString==null?void 0:v.toString())!=null?m:null},...o._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...p}},ee(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:J(()=>[o._getColumnDefs()],p=>{const f=function(g,m,v){return v===void 0&&(v=0),g.map(b=>{const x=N3(o,b,v,m),w=b;return x.columns=w.columns?f(w.columns,x,v+1):[],x})};return f(p)},ee(e,"debugColumns")),getAllFlatColumns:J(()=>[o.getAllColumns()],p=>p.flatMap(f=>f.getFlatColumns()),ee(e,"debugColumns")),_getAllFlatColumnsById:J(()=>[o.getAllFlatColumns()],p=>p.reduce((f,g)=>(f[g.id]=g,f),{}),ee(e,"debugColumns")),getAllLeafColumns:J(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(p,f)=>{let g=p.flatMap(m=>m.getLeafColumns());return f(g)},ee(e,"debugColumns")),getColumn:p=>o._getAllFlatColumnsById()[p]};Object.assign(o,c);for(let p=0;p<o._features.length;p++){const f=o._features[p];f==null||f.createTable==null||f.createTable(o)}return o}function $1(){return e=>J(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,a){i===void 0&&(i=0);const s=[];for(let u=0;u<o.length;u++){const h=K3(e,e._getRowId(o[u],u,a),o[u],u,i,void 0,a==null?void 0:a.id);if(n.flatRows.push(h),n.rowsById[h.id]=h,s.push(h),e.options.getSubRows){var l;h.originalSubRows=e.options.getSubRows(o[u],u),(l=h.originalSubRows)!=null&&l.length&&(h.subRows=r(h.originalSubRows,i+1,h))}}return s};return n.rows=r(t),n},ee(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
52
52
|
* react-table
|
|
53
53
|
*
|
|
54
54
|
* Copyright (c) TanStack
|
|
@@ -57,10 +57,10 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
57
57
|
* LICENSE.md file in the root directory of this source tree.
|
|
58
58
|
*
|
|
59
59
|
* @license MIT
|
|
60
|
-
*/function aa(e,t){return e?s8(e)?S.createElement(e,t):e:null}function s8(e){return l8(e)||typeof e=="function"||u8(e)}function l8(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function u8(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function v1(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=S.useState(()=>({current:a8(t)})),[r,o]=S.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),n.current}const b1=6048e5,c8=864e5,id=6e4,ad=525600,mr=43200,sa=1440,sd=Symbol.for("constructDateFrom");function Qt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&sd in e?e[sd](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return Qt(t||e,e)}let d8={};function eo(){return d8}function Lo(e,t){var s,l,u,h;const n=eo(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,o=Oe(e,t==null?void 0:t.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function la(e,t){return Lo(e,{...t,weekStartsOn:1})}function y1(e,t){const n=Oe(e,t==null?void 0:t.in),r=n.getFullYear(),o=Qt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=la(o),a=Qt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=la(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Br(e){const t=Oe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ni(e,...t){const n=Qt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function ld(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function f8(e,t,n){const[r,o]=ni(n==null?void 0:n.in,e,t),i=ld(r),a=ld(o),s=+i-Br(i),l=+a-Br(a);return Math.round((s-l)/c8)}function h8(e,t){const n=y1(e,t),r=Qt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),la(r)}function $o(e,t){const n=+Oe(e)-+Oe(t);return n<0?-1:n>0?1:n}function p8(e){return Qt(e,Date.now())}function g8(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function m8(e){return!(!g8(e)&&typeof e!="number"||isNaN(+Oe(e)))}function v8(e,t,n){const[r,o]=ni(n==null?void 0:n.in,e,t),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function x1(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function b8(e,t){return+Oe(e)-+Oe(t)}function y8(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function x8(e,t){const n=Oe(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function w8(e,t){const n=Oe(e,t==null?void 0:t.in);return+y8(n,t)==+x8(n,t)}function C8(e,t,n){const[r,o,i]=ni(n==null?void 0:n.in,e,e,t),a=$o(o,i),s=Math.abs(v8(o,i));if(s<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*s);let l=$o(o,i)===-a;w8(r)&&s===1&&$o(r,i)===1&&(l=!1);const u=a*(s-+l);return u===0?0:u}function $8(e,t,n){const r=b8(e,t)/1e3;return x1(n==null?void 0:n.roundingMethod)(r)}function S8(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const E8={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},P8=(e,t,n)=>{let r;const o=E8[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Cs(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const R8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},k8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},M8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},O8={date:Cs({formats:R8,defaultWidth:"full"}),time:Cs({formats:k8,defaultWidth:"full"}),dateTime:Cs({formats:M8,defaultWidth:"full"})},T8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},D8=(e,t,n,r)=>T8[e];function so(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const _8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},F8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},L8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},I8={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},N8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},j8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},A8=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},K8={ordinalNumber:A8,era:so({values:_8,defaultWidth:"wide"}),quarter:so({values:F8,defaultWidth:"wide",argumentCallback:e=>e-1}),month:so({values:L8,defaultWidth:"wide"}),day:so({values:I8,defaultWidth:"wide"}),dayPeriod:so({values:N8,defaultWidth:"wide",formattingValues:j8,defaultFormattingWidth:"wide"})};function lo(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?H8(s,c=>c.test(a)):B8(s,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(a.length);return{value:u,rest:h}}}function B8(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function H8(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function V8(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}const z8=/^(\d+)(th|st|nd|rd)?/i,U8=/\d+/i,q8={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},W8={any:[/^b/i,/^(a|c)/i]},G8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Q8={any:[/1/i,/2/i,/3/i,/4/i]},Y8={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},X8={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Z8={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},J8={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},e7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},t7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},n7={ordinalNumber:V8({matchPattern:z8,parsePattern:U8,valueCallback:e=>parseInt(e,10)}),era:lo({matchPatterns:q8,defaultMatchWidth:"wide",parsePatterns:W8,defaultParseWidth:"any"}),quarter:lo({matchPatterns:G8,defaultMatchWidth:"wide",parsePatterns:Q8,defaultParseWidth:"any",valueCallback:e=>e+1}),month:lo({matchPatterns:Y8,defaultMatchWidth:"wide",parsePatterns:X8,defaultParseWidth:"any"}),day:lo({matchPatterns:Z8,defaultMatchWidth:"wide",parsePatterns:J8,defaultParseWidth:"any"}),dayPeriod:lo({matchPatterns:e7,defaultMatchWidth:"any",parsePatterns:t7,defaultParseWidth:"any"})},$u={code:"en-US",formatDistance:P8,formatLong:O8,formatRelative:D8,localize:K8,match:n7,options:{weekStartsOn:0,firstWeekContainsDate:1}};function r7(e,t){const n=Oe(e,t==null?void 0:t.in);return f8(n,S8(n))+1}function o7(e,t){const n=Oe(e,t==null?void 0:t.in),r=+la(n)-+h8(n);return Math.round(r/b1)+1}function w1(e,t){var h,c,p,f;const n=Oe(e,t==null?void 0:t.in),r=n.getFullYear(),o=eo(),i=(t==null?void 0:t.firstWeekContainsDate)??((c=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((f=(p=o.locale)==null?void 0:p.options)==null?void 0:f.firstWeekContainsDate)??1,a=Qt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=Lo(a,t),l=Qt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Lo(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function i7(e,t){var s,l,u,h;const n=eo(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,o=w1(e,t),i=Qt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Lo(i,t)}function a7(e,t){const n=Oe(e,t==null?void 0:t.in),r=+Lo(n,t)-+i7(n,t);return Math.round(r/b1)+1}function ce(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Jt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ce(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ce(n+1,2)},d(e,t){return ce(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ce(e.getHours()%12||12,t.length)},H(e,t){return ce(e.getHours(),t.length)},m(e,t){return ce(e.getMinutes(),t.length)},s(e,t){return ce(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ce(o,t.length)}},lr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ud={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Jt.y(e,t)},Y:function(e,t,n,r){const o=w1(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return ce(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):ce(i,t.length)},R:function(e,t){const n=y1(e);return ce(n,t.length)},u:function(e,t){const n=e.getFullYear();return ce(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Jt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=a7(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ce(o,t.length)},I:function(e,t,n){const r=o7(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ce(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Jt.d(e,t)},D:function(e,t,n){const r=r7(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ce(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ce(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ce(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return ce(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=lr.noon:r===0?o=lr.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=lr.evening:r>=12?o=lr.afternoon:r>=4?o=lr.morning:o=lr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Jt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Jt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Jt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Jt.s(e,t)},S:function(e,t){return Jt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dd(r);case"XXXX":case"XX":return _n(r);case"XXXXX":case"XXX":default:return _n(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return dd(r);case"xxxx":case"xx":return _n(r);case"xxxxx":case"xxx":default:return _n(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cd(r,":");case"OOOO":default:return"GMT"+_n(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cd(r,":");case"zzzz":default:return"GMT"+_n(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ce(r,t.length)},T:function(e,t,n){return ce(+e,t.length)}};function cd(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+ce(i,2)}function dd(e,t){return e%60===0?(e>0?"-":"+")+ce(Math.abs(e)/60,2):_n(e,t)}function _n(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ce(Math.trunc(r/60),2),i=ce(r%60,2);return n+o+t+i}const fd=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},C1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},s7=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return fd(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",fd(r,t)).replace("{{time}}",C1(o,t))},l7={p:C1,P:s7},u7=/^D+$/,c7=/^Y+$/,d7=["D","DD","YY","YYYY"];function f7(e){return u7.test(e)}function h7(e){return c7.test(e)}function p7(e,t,n){const r=g7(e,t,n);if(console.warn(r),d7.includes(e))throw new RangeError(r)}function g7(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const m7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b7=/^'([^]*?)'?$/,y7=/''/g,x7=/[a-zA-Z]/;function $1(e,t,n){var h,c,p,f;const r=eo(),o=r.locale??$u,i=r.firstWeekContainsDate??((c=(h=r.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??1,a=r.weekStartsOn??((f=(p=r.locale)==null?void 0:p.options)==null?void 0:f.weekStartsOn)??0,s=Oe(e,n==null?void 0:n.in);if(!m8(s))throw new RangeError("Invalid time value");let l=t.match(v7).map(g=>{const m=g[0];if(m==="p"||m==="P"){const v=l7[m];return v(g,o.formatLong)}return g}).join("").match(m7).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:w7(g)};if(ud[m])return{isToken:!0,value:g};if(m.match(x7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(g=>{if(!g.isToken)return g.value;const m=g.value;(h7(m)||f7(m))&&p7(m,t,String(e));const v=ud[m[0]];return v(s,m,o.localize,u)}).join("")}function w7(e){const t=e.match(b7);return t?t[1].replace(y7,"'"):e}function C7(e,t,n){const r=eo(),o=(n==null?void 0:n.locale)??r.locale??$u,i=2520,a=$o(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[l,u]=ni(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),h=$8(u,l),c=(Br(u)-Br(l))/1e3,p=Math.round((h-c)/60);let f;if(p<2)return p===0?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",p,s);if(p<45)return o.formatDistance("xMinutes",p,s);if(p<90)return o.formatDistance("aboutXHours",1,s);if(p<sa){const g=Math.round(p/60);return o.formatDistance("aboutXHours",g,s)}else{if(p<i)return o.formatDistance("xDays",1,s);if(p<mr){const g=Math.round(p/sa);return o.formatDistance("xDays",g,s)}else if(p<mr*2)return f=Math.round(p/mr),o.formatDistance("aboutXMonths",f,s)}if(f=C8(u,l),f<12){const g=Math.round(p/mr);return o.formatDistance("xMonths",g,s)}else{const g=f%12,m=Math.trunc(f/12);return g<3?o.formatDistance("aboutXYears",m,s):g<9?o.formatDistance("overXYears",m,s):o.formatDistance("almostXYears",m+1,s)}}function $7(e,t,n){const r=eo(),o=(n==null?void 0:n.locale)??r.locale??$u,i=$o(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i}),[s,l]=ni(n==null?void 0:n.in,...i>0?[t,e]:[e,t]),u=x1((n==null?void 0:n.roundingMethod)??"round"),h=l.getTime()-s.getTime(),c=h/id,p=Br(l)-Br(s),f=(h-p)/id,g=n==null?void 0:n.unit;let m;if(g?m=g:c<1?m="second":c<60?m="minute":c<sa?m="hour":f<mr?m="day":f<ad?m="month":m="year",m==="second"){const v=u(h/1e3);return o.formatDistance("xSeconds",v,a)}else if(m==="minute"){const v=u(c);return o.formatDistance("xMinutes",v,a)}else if(m==="hour"){const v=u(c/60);return o.formatDistance("xHours",v,a)}else if(m==="day"){const v=u(f/sa);return o.formatDistance("xDays",v,a)}else if(m==="month"){const v=u(f/mr);return v===12&&g!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",v,a)}else{const v=u(f/ad);return o.formatDistance("xYears",v,a)}}function S1(e,t){return C7(e,p8(e),t)}var Tl=new Map,Ei=new WeakMap,hd=0,S7=void 0;function E7(e){return e?(Ei.has(e)||(hd+=1,Ei.set(e,hd.toString())),Ei.get(e)):"0"}function P7(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?E7(e.root):e[t]}`).toString()}function R7(e){const t=P7(e);let n=Tl.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(s=>{var l;const u=s.isIntersecting&&o.some(h=>s.intersectionRatio>=h);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=u),(l=r.get(s.target))==null||l.forEach(h=>{h(u,s)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Tl.set(t,n)}return n}function k7(e,t,n={},r=S7){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:a}=R7(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),Tl.delete(o))}}function M7({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:u}={}){var h;const[c,p]=S.useState(null),f=S.useRef(u),[g,m]=S.useState({inView:!!s,entry:void 0});f.current=u,S.useEffect(()=>{if(a||!c)return;let w;return w=k7(c,($,k)=>{m({inView:$,entry:k}),f.current&&f.current($,k),k.isIntersecting&&i&&w&&(w(),w=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,l,t]);const v=(h=g.entry)==null?void 0:h.target,b=S.useRef(void 0);!c&&v&&!i&&!a&&b.current!==v&&(b.current=v,m({inView:!!s,entry:void 0}));const x=[p,g.inView,g.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}var E1=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,o=e.onClick,i=e.layoutVariant;return y.jsx("div",{onClick:function(a){return o(a)},"aria-label":"button",className:"group grid w-full cursor-pointer p-2 transition-colors duration-150 active:bg-slate-50/25 dark:active:bg-slate-800/25 ".concat(t?"border-b border-slate-200 dark:border-slate-700":""," ").concat(i==="job"?"grid-cols-[auto,350px,576px,1fr]":"grid-cols-[auto,350px,1fr,1fr]"," ").concat(r?"bg-slate-200/50 dark:bg-slate-800/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},Dl=30,Io=2e3,_l=2,P1=function(){return y.jsxs("div",{children:[y.jsx("div",{className:"rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800",children:y.jsx("span",{className:"opacity-0",children:"Placeholder"})}),Ke([],new Array(Dl),!0).map(function(e,t){return y.jsx("div",{className:Ar("p-2",Dl!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:y.jsx(Mo,{className:"h-6 w-full"})},t)})]})};function pd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function R1(...e){return t=>{let n=!1;const r=e.map(o=>{const i=pd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():pd(e[o],null)}}}}function Su(...e){return S.useCallback(R1(...e),e)}function O7(e,t=[]){let n=[];function r(i,a){const s=S.createContext(a),l=n.length;n=[...n,a];const u=c=>{var b;const{scope:p,children:f,...g}=c,m=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,v=S.useMemo(()=>g,Object.values(g));return y.jsx(m.Provider,{value:v,children:f})};u.displayName=i+"Provider";function h(c,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,g=S.useContext(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,h]}const o=()=>{const i=n.map(a=>S.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,T7(o,...t)]}function T7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function gd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ua=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},D7=S[" useInsertionEffect ".trim().toString()]||ua;function _7({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=F7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const h=S.useRef(e!==void 0);S.useEffect(()=>{const c=h.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,r])}const u=S.useCallback(h=>{var c;if(s){const p=L7(h)?h(e):h;p!==e&&((c=a.current)==null||c.call(a,p))}else i(h)},[s,e,i,a]);return[l,u]}function F7({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),i=S.useRef(t);return D7(()=>{i.current=t},[t]),S.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function L7(e){return typeof e=="function"}function I7(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function N7(e){const[t,n]=S.useState(void 0);return ua(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function j7(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var k1=e=>{const{present:t,children:n}=e,r=A7(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),i=Su(r.ref,K7(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:i}):null};k1.displayName="Presence";function A7(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),i=S.useRef("none"),a=e?"mounted":"unmounted",[s,l]=j7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const u=Pi(r.current);i.current=s==="mounted"?u:"none"},[s]),ua(()=>{const u=r.current,h=o.current;if(h!==e){const p=i.current,f=Pi(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(h&&p!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ua(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,c=f=>{const m=Pi(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&m&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=f=>{f.target===t&&(i.current=Pi(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{h.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Pi(e){return(e==null?void 0:e.animationName)||"none"}function K7(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function B7(e){const t=H7(e),n=S.forwardRef((r,o)=>{const{children:i,...a}=r,s=S.Children.toArray(i),l=s.find(z7);if(l){const u=l.props.children,h=s.map(c=>c===l?S.Children.count(u)>1?S.Children.only(null):S.isValidElement(u)?u.props.children:null:c);return y.jsx(t,{...a,ref:o,children:S.isValidElement(u)?S.cloneElement(u,void 0,h):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function H7(e){const t=S.forwardRef((n,r)=>{const{children:o,...i}=n;if(S.isValidElement(o)){const a=q7(o),s=U7(i,o.props);return o.type!==S.Fragment&&(s.ref=r?R1(r,a):a),S.cloneElement(o,s)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var V7=Symbol("radix.slottable");function z7(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===V7}function U7(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function q7(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var W7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Eu=W7.reduce((e,t)=>{const n=B7(`Primitive.${t}`),r=S.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Va="Checkbox",[G7]=O7(Va),[Q7,Pu]=G7(Va);function Y7(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:u,value:h="on",internal_do_not_use_render:c}=e,[p,f]=_7({prop:n,defaultProp:o??!1,onChange:l,caller:Va}),[g,m]=S.useState(null),[v,b]=S.useState(null),x=S.useRef(!1),w=g?!!a||!!g.closest("form"):!0,$={checked:p,disabled:i,setChecked:f,control:g,setControl:m,name:s,form:a,value:h,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:mn(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:b};return y.jsx(Q7,{scope:t,...$,children:X7(c)?c($):r})}var M1="CheckboxTrigger",O1=S.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:u,setControl:h,setChecked:c,hasConsumerStoppedPropagationRef:p,isFormControl:f,bubbleInput:g}=Pu(M1,e),m=Su(o,h),v=S.useRef(l);return S.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const x=()=>c(v.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,c]),y.jsx(Eu.button,{type:"button",role:"checkbox","aria-checked":mn(l)?"mixed":l,"aria-required":u,"data-state":I1(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:m,onKeyDown:gd(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:gd(n,b=>{c(x=>mn(x)?!0:!x),g&&f&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});O1.displayName=M1;var T1=S.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:u,form:h,...c}=e;return y.jsx(Y7,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:u,name:r,form:h,value:l,internal_do_not_use_render:({isFormControl:p})=>y.jsxs(y.Fragment,{children:[y.jsx(O1,{...c,ref:t,__scopeCheckbox:n}),p&&y.jsx(L1,{__scopeCheckbox:n})]})})});T1.displayName=Va;var D1="CheckboxIndicator",_1=S.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Pu(D1,n);return y.jsx(k1,{present:r||mn(i.checked)||i.checked===!0,children:y.jsx(Eu.span,{"data-state":I1(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});_1.displayName=D1;var F1="CheckboxBubbleInput",L1=S.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:u,value:h,form:c,bubbleInput:p,setBubbleInput:f}=Pu(F1,e),g=Su(n,f),m=I7(i),v=N7(r);S.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(w,"checked").set,E=!o.current;if(m!==i&&k){const R=new Event("click",{bubbles:E});x.indeterminate=mn(i),k.call(x,mn(i)?!1:i),x.dispatchEvent(R)}},[p,m,i,o]);const b=S.useRef(mn(i)?!1:i);return y.jsx(Eu.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:s,disabled:l,name:u,value:h,form:c,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L1.displayName=F1;function X7(e){return typeof e=="function"}function mn(e){return e==="indeterminate"}function I1(e){return mn(e)?"indeterminate":e?"checked":"unchecked"}var ca=function(e){var t=e.className,n=hv(e,["className"]);return y.jsx(T1,{className:Ar("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100 dark:border-slate-600 dark:hover:border-slate-400 dark:hover:bg-slate-800":!n.checked,"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600":n.checked===!0,"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100 dark:border-slate-400 dark:text-slate-400 dark:hover:border-slate-300 dark:hover:bg-slate-800":n.checked==="indeterminate"}),onClick:function(r){return r.stopPropagation()},...n,children:y.jsxs(_1,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&y.jsx(M2,{height:12,width:12}),n.checked===!0&&y.jsx(v2,{height:12,width:12})]})})},uo=function(e){var t=e.label,n=e.icon;return y.jsxs("div",{className:"flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-slate-100 px-2 py-0.5 text-sm text-slate-900 transition duration-150 ease-in-out dark:bg-slate-800 dark:text-slate-300",children:[n,y.jsx("span",{children:t})]})},Ru=function(e){var t=e.children,n=e.message;return y.jsxs(m3,{children:[y.jsx(pu,{children:t}),y.jsx(v3,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md dark:bg-slate-800 dark:text-slate-100",children:n})]})},N1={exports:{}},j1={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},A1={exports:{}},Z7=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},J7=Z7,ex=Array.prototype.concat,tx=Array.prototype.slice,md=A1.exports=function(t){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];J7(i)?n=ex.call(n,tx.call(i)):n.push(i)}return n};md.wrap=function(e){return function(){return e(md(arguments))}};var nx=A1.exports,So=j1,ri=nx,K1=Object.hasOwnProperty,B1=Object.create(null);for(var $s in So)K1.call(So,$s)&&(B1[So[$s]]=$s);var ot=N1.exports={to:{},get:{}};ot.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=ot.get.hsl(e),r="hsl";break;case"hwb":n=ot.get.hwb(e),r="hwb";break;default:n=ot.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};ot.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^(\w+)$/,a=[0,0,0,1],s,l,u;if(s=e.match(n)){for(u=s[2],s=s[1],l=0;l<3;l++){var h=l*2;a[l]=parseInt(s.slice(h,h+2),16)}u&&(a[3]=parseInt(u,16)/255)}else if(s=e.match(t)){for(s=s[1],u=s[3],l=0;l<3;l++)a[l]=parseInt(s[l]+s[l],16);u&&(a[3]=parseInt(u+u,16)/255)}else if(s=e.match(r)){for(l=0;l<3;l++)a[l]=parseInt(s[l+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(o)){for(l=0;l<3;l++)a[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(i))?s[1]==="transparent"?[0,0,0,0]:K1.call(So,s[1])?(a=So[s[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=vn(a[l],0,255);return a[3]=vn(a[3],0,1),a};ot.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,i=vn(parseFloat(n[2]),0,100),a=vn(parseFloat(n[3]),0,100),s=vn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};ot.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,i=vn(parseFloat(n[2]),0,100),a=vn(parseFloat(n[3]),0,100),s=vn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};ot.to.hex=function(){var e=ri(arguments);return"#"+Ri(e[0])+Ri(e[1])+Ri(e[2])+(e[3]<1?Ri(Math.round(e[3]*255)):"")};ot.to.rgb=function(){var e=ri(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};ot.to.rgb.percent=function(){var e=ri(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};ot.to.hsl=function(){var e=ri(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};ot.to.hwb=function(){var e=ri(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};ot.to.keyword=function(e){return B1[e.slice(0,3)]};function vn(e,t,n){return Math.min(Math.max(t,e),n)}function Ri(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var rx=N1.exports;const No=j1,H1={};for(const e of Object.keys(No))H1[No[e]]=e;const Q={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var V1=Q;for(const e of Object.keys(Q)){if(!("channels"in Q[e]))throw new Error("missing channels property: "+e);if(!("labels"in Q[e]))throw new Error("missing channel labels property: "+e);if(Q[e].labels.length!==Q[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Q[e];delete Q[e].channels,delete Q[e].labels,Object.defineProperty(Q[e],"channels",{value:t}),Object.defineProperty(Q[e],"labels",{value:n})}Q.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(o+i)/2;return i===o?l=0:u<=.5?l=a/(i+o):l=a/(2-i-o),[s,l*100,u*100]};Q.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),h=u-Math.min(a,s,l),c=function(p){return(u-p)/6/h+1/2};return h===0?(o=0,i=0):(i=h/u,t=c(a),n=c(s),r=c(l),a===u?o=r-n:s===u?o=1/3+t-r:l===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,u*100]};Q.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Q.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]};Q.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[i*100,a*100,s*100,o*100]};function ox(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Q.rgb.keyword=function(e){const t=H1[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(No)){const i=No[o],a=ox(e,i);a<n&&(n=a,r=o)}return r};Q.keyword.rgb=function(e){return No[e]};Q.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,i=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[o*100,i*100,a*100]};Q.rgb.lab=function(e){const t=Q.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const i=116*r-16,a=500*(n-r),s=200*(r-o);return[i,a,s]};Q.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(n===0)return a=r*255,[a,a,a];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,l=[0,0,0];for(let u=0;u<3;u++)i=t+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?a=s+(o-s)*6*i:2*i<1?a=o:3*i<2?a=s+(o-s)*(2/3-i)*6:a=s,l[u]=a*255;return l};Q.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;const a=(r+n)/2,s=r===0?2*o/(i+o):2*n/(r+n);return[t,s*100,a*100]};Q.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};Q.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,i*100,a*100]};Q.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,a&1&&(i=1-i);const l=n+i*(s-n);let u,h,c;switch(a){default:case 6:case 0:u=s,h=l,c=n;break;case 1:u=l,h=s,c=n;break;case 2:u=n,h=s,c=l;break;case 3:u=n,h=l,c=s;break;case 4:u=l,h=n,c=s;break;case 5:u=s,h=n,c=l;break}return[u*255,h*255,c*255]};Q.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),a=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[i*255,a*255,s*255]};Q.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=t*3.2406+n*-1.5372+r*-.4986,i=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]};Q.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,i=500*(t-n),a=200*(n-r);return[o,i,a]};Q.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,i,a;i=(t+16)/116,o=n/500+i,a=i-r/200;const s=i**3,l=o**3,u=a**3;return i=s>.008856?s:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o*=95.047,i*=100,a*=108.883,[o,i,a]};Q.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const a=Math.sqrt(n*n+r*r);return[t,a,o]};Q.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),a=n*Math.sin(o);return[t,i,a]};Q.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?Q.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(a+=60),a};Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])};Q.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Q.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]};Q.ansi256.rgb=function(e){if(e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};Q.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Q.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,i=r>>8&255,a=r&255;return[o,i,a]};Q.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return a<1?s=i/(1-a):s=0,a<=0?l=0:o===t?l=(n-r)/a%6:o===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};Q.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};Q.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};Q.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};Q.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};Q.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};Q.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Q.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]};Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Q.gray.hsl=function(e){return[0,0,e[0]]};Q.gray.hsv=Q.gray.hsl;Q.gray.hwb=function(e){return[0,100,e[0]]};Q.gray.cmyk=function(e){return[0,0,0,e[0]]};Q.gray.lab=function(e){return[e[0],0,0]};Q.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};Q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const da=V1;function ix(){const e={},t=Object.keys(da);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function ax(e){const t=ix(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),o=Object.keys(da[r]);for(let i=o.length,a=0;a<i;a++){const s=o[a],l=t[s];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(s))}}return t}function sx(e,t){return function(n){return t(e(n))}}function lx(e,t){const n=[t[e].parent,e];let r=da[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=sx(da[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}var ux=function(e){const t=ax(e),n={},r=Object.keys(t);for(let o=r.length,i=0;i<o;i++){const a=r[i];t[a].parent!==null&&(n[a]=lx(a,t))}return n};const Fl=V1,cx=ux,fr={},dx=Object.keys(Fl);function fx(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function hx(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let i=o.length,a=0;a<i;a++)o[a]=Math.round(o[a]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}dx.forEach(e=>{fr[e]={},Object.defineProperty(fr[e],"channels",{value:Fl[e].channels}),Object.defineProperty(fr[e],"labels",{value:Fl[e].labels});const t=cx(e);Object.keys(t).forEach(r=>{const o=t[r];fr[e][r]=hx(o),fr[e][r].raw=fx(o)})});var px=fr;const hr=rx,nt=px,z1=["keyword","gray","hex"],Ll={};for(const e of Object.keys(nt))Ll[[...nt[e].labels].sort().join("")]=e;const fa={};function ke(e,t){if(!(this instanceof ke))return new ke(e,t);if(t&&t in z1&&(t=null),t&&!(t in nt))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ke)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=hr.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=nt[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=nt[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=Il(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const i=o.sort().join("");if(!(i in Ll))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Ll[i];const{labels:a}=nt[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=Il(s)}if(fa[this.model])for(r=nt[this.model].channels,n=0;n<r;n++){const o=fa[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ke.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in hr.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return hr.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return hr.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=nt[this.model],{labels:n}=nt[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new ke([...this.color.map(mx(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new ke([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:me("rgb",0,$e(255)),green:me("rgb",1,$e(255)),blue:me("rgb",2,$e(255)),hue:me(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:me("hsl",1,$e(100)),lightness:me("hsl",2,$e(100)),saturationv:me("hsv",1,$e(100)),value:me("hsv",2,$e(100)),chroma:me("hcg",1,$e(100)),gray:me("hcg",2,$e(100)),white:me("hwb",1,$e(100)),wblack:me("hwb",2,$e(100)),cyan:me("cmyk",0,$e(100)),magenta:me("cmyk",1,$e(100)),yellow:me("cmyk",2,$e(100)),black:me("cmyk",3,$e(100)),x:me("xyz",0,$e(95.047)),y:me("xyz",1,$e(100)),z:me("xyz",2,$e(108.833)),l:me("lab",0,$e(100)),a:me("lab",1),b:me("lab",2),keyword(e){return e!==void 0?new ke(e):nt[this.model].keyword(this.color)},hex(e){return e!==void 0?new ke(e):hr.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new ke(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),hr.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return ke.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return ke.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(nt)){if(z1.includes(e))continue;const{channels:t}=nt[e];ke.prototype[e]=function(...n){return this.model===e?new ke(this):n.length>0?new ke(n,e):new ke([...vx(nt[this.model][e].raw(this.color)),this.valpha],e)},ke[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=Il(n,t)),new ke(r,e)}}function gx(e,t){return Number(e.toFixed(t))}function mx(e){return function(t){return gx(t,e)}}function me(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(fa[r]||(fa[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function $e(e){return function(t){return Math.max(0,Math.min(e,t))}}function vx(e){return Array.isArray(e)?e:[e]}function Il(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var bx=ke;const vd=cf(bx);var yx=typeof global=="object"&&global&&global.Object===Object&&global,xx=typeof self=="object"&&self&&self.Object===Object&&self,nr=yx||xx||Function("return this")(),ha=nr.Symbol,U1=Object.prototype,wx=U1.hasOwnProperty,Cx=U1.toString,co=ha?ha.toStringTag:void 0;function $x(e){var t=wx.call(e,co),n=e[co];try{e[co]=void 0;var r=!0}catch{}var o=Cx.call(e);return r&&(t?e[co]=n:delete e[co]),o}var Sx=Object.prototype,Ex=Sx.toString;function Px(e){return Ex.call(e)}var Rx="[object Null]",kx="[object Undefined]",bd=ha?ha.toStringTag:void 0;function q1(e){return e==null?e===void 0?kx:Rx:bd&&bd in Object(e)?$x(e):Px(e)}function W1(e){return e!=null&&typeof e=="object"}var Mx="[object Symbol]";function Ox(e){return typeof e=="symbol"||W1(e)&&q1(e)==Mx}var Tx=Array.isArray,Dx=/\s/;function _x(e){for(var t=e.length;t--&&Dx.test(e.charAt(t)););return t}var Fx=/^\s+/;function Lx(e){return e&&e.slice(0,_x(e)+1).replace(Fx,"")}function Hr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yd=NaN,Ix=/^[-+]0x[0-9a-f]+$/i,Nx=/^0b[01]+$/i,jx=/^0o[0-7]+$/i,Ax=parseInt;function Kx(e){if(typeof e=="number")return e;if(Ox(e))return yd;if(Hr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Hr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lx(e);var n=Nx.test(e);return n||jx.test(e)?Ax(e.slice(2),n?2:8):Ix.test(e)?yd:+e}var xd=1/0,Bx=17976931348623157e292;function Hx(e){if(!e)return e===0?e:0;if(e=Kx(e),e===xd||e===-xd){var t=e<0?-1:1;return t*Bx}return e===e?e:0}function wd(e){var t=Hx(e),n=t%1;return t===t?n?t-n:t:0}function G1(e){return e}var Vx="[object AsyncFunction]",zx="[object Function]",Ux="[object GeneratorFunction]",qx="[object Proxy]";function Wx(e){if(!Hr(e))return!1;var t=q1(e);return t==zx||t==Ux||t==Vx||t==qx}var Ss=nr["__core-js_shared__"],Cd=function(){var e=/[^.]+$/.exec(Ss&&Ss.keys&&Ss.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Gx(e){return!!Cd&&Cd in e}var Qx=Function.prototype,Yx=Qx.toString;function Xx(e){if(e!=null){try{return Yx.call(e)}catch{}try{return e+""}catch{}}return""}var Zx=/[\\^$.*+?()[\]{}|]/g,Jx=/^\[object .+?Constructor\]$/,e6=Function.prototype,t6=Object.prototype,n6=e6.toString,r6=t6.hasOwnProperty,o6=RegExp("^"+n6.call(r6).replace(Zx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function i6(e){if(!Hr(e)||Gx(e))return!1;var t=Wx(e)?o6:Jx;return t.test(Xx(e))}function a6(e,t){return e==null?void 0:e[t]}function Q1(e,t){var n=a6(e,t);return i6(n)?n:void 0}var $d=Q1(nr,"WeakMap"),pa=$d&&new $d,Y1=pa?function(e,t){return pa.set(e,t),e}:G1,Sd=Object.create,ku=function(){function e(){}return function(t){if(!Hr(t))return{};if(Sd)return Sd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ku(e.prototype),r=e.apply(n,t);return Hr(r)?r:n}}var s6=1;function l6(e,t,n){var r=t&s6,o=jo(e);function i(){var a=this&&this!==nr&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function X1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var u6=Math.max;function Z1(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=u6(i-a,0),h=Array(l+u),c=!r;++s<l;)h[s]=t[s];for(;++o<a;)(c||o<i)&&(h[n[o]]=e[o]);for(;u--;)h[s++]=e[o++];return h}var c6=Math.max;function J1(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,h=c6(i-s,0),c=Array(h+u),p=!r;++o<h;)c[o]=e[o];for(var f=o;++l<u;)c[f+l]=t[l];for(;++a<s;)(p||o<i)&&(c[f+n[a]]=e[o++]);return c}function d6(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function Mu(){}var f6=4294967295;function Vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f6,this.__views__=[]}Vr.prototype=ku(Mu.prototype);Vr.prototype.constructor=Vr;function h6(){}var eg=pa?function(e){return pa.get(e)}:h6,Ed={},p6=Object.prototype,g6=p6.hasOwnProperty;function m6(e){for(var t=e.name+"",n=Ed[t],r=g6.call(Ed,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function zr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}zr.prototype=ku(Mu.prototype);zr.prototype.constructor=zr;function tg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function v6(e){if(e instanceof Vr)return e.clone();var t=new zr(e.__wrapped__,e.__chain__);return t.__actions__=tg(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var b6=Object.prototype,y6=b6.hasOwnProperty;function ga(e){if(W1(e)&&!Tx(e)&&!(e instanceof Vr)){if(e instanceof zr)return e;if(y6.call(e,"__wrapped__"))return v6(e)}return new zr(e)}ga.prototype=Mu.prototype;ga.prototype.constructor=ga;function x6(e){var t=m6(e),n=ga[t];if(typeof n!="function"||!(t in Vr.prototype))return!1;if(e===n)return!0;var r=eg(n);return!!r&&e===r[0]}var w6=800,C6=16,$6=Date.now;function ng(e){var t=0,n=0;return function(){var r=$6(),o=C6-(r-n);if(n=r,o>0){if(++t>=w6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var rg=ng(Y1),S6=/\{\n\/\* \[wrapped with (.+)\] \*/,E6=/,? & /;function P6(e){var t=e.match(S6);return t?t[1].split(E6):[]}var R6=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function k6(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(R6,`{
|
|
60
|
+
*/function aa(e,t){return e?w8(e)?E.createElement(e,t):e:null}function w8(e){return C8(e)||typeof e=="function"||$8(e)}function C8(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function $8(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function S1(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=E.useState(()=>({current:x8(t)})),[r,o]=E.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),n.current}const E1=6048e5,S8=864e5,id=6e4,ad=525600,hr=43200,sa=1440,sd=Symbol.for("constructDateFrom");function qt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&sd in e?e[sd](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return qt(t||e,e)}let E8={};function Yr(){return E8}function Lo(e,t){var s,l,u,h;const n=Yr(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,o=Oe(e,t==null?void 0:t.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function la(e,t){return Lo(e,{...t,weekStartsOn:1})}function P1(e,t){const n=Oe(e,t==null?void 0:t.in),r=n.getFullYear(),o=qt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=la(o),a=qt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=la(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function jr(e){const t=Oe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ti(e,...t){const n=qt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function ld(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function P8(e,t,n){const[r,o]=ti(n==null?void 0:n.in,e,t),i=ld(r),a=ld(o),s=+i-jr(i),l=+a-jr(a);return Math.round((s-l)/S8)}function R8(e,t){const n=P1(e,t),r=qt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),la(r)}function xo(e,t){const n=+Oe(e)-+Oe(t);return n<0?-1:n>0?1:n}function k8(e){return qt(e,Date.now())}function M8(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function O8(e){return!(!M8(e)&&typeof e!="number"||isNaN(+Oe(e)))}function T8(e,t,n){const[r,o]=ti(n==null?void 0:n.in,e,t),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function R1(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function D8(e,t){return+Oe(e)-+Oe(t)}function _8(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function L8(e,t){const n=Oe(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function F8(e,t){const n=Oe(e,t==null?void 0:t.in);return+_8(n,t)==+L8(n,t)}function I8(e,t,n){const[r,o,i]=ti(n==null?void 0:n.in,e,e,t),a=xo(o,i),s=Math.abs(T8(o,i));if(s<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*s);let l=xo(o,i)===-a;F8(r)&&s===1&&xo(r,i)===1&&(l=!1);const u=a*(s-+l);return u===0?0:u}function j8(e,t,n){const r=D8(e,t)/1e3;return R1(n==null?void 0:n.roundingMethod)(r)}function N8(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const A8={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},K8=(e,t,n)=>{let r;const o=A8[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function $s(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const B8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},H8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},V8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},z8={date:$s({formats:B8,defaultWidth:"full"}),time:$s({formats:H8,defaultWidth:"full"}),dateTime:$s({formats:V8,defaultWidth:"full"})},U8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},q8=(e,t,n,r)=>U8[e];function oo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const W8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},G8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Q8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Y8={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},X8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Z8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},J8=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},e7={ordinalNumber:J8,era:oo({values:W8,defaultWidth:"wide"}),quarter:oo({values:G8,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oo({values:Q8,defaultWidth:"wide"}),day:oo({values:Y8,defaultWidth:"wide"}),dayPeriod:oo({values:X8,defaultWidth:"wide",formattingValues:Z8,defaultFormattingWidth:"wide"})};function io(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?n7(s,c=>c.test(a)):t7(s,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(a.length);return{value:u,rest:h}}}function t7(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function n7(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function r7(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}const o7=/^(\d+)(th|st|nd|rd)?/i,i7=/\d+/i,a7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s7={any:[/^b/i,/^(a|c)/i]},l7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},u7={any:[/1/i,/2/i,/3/i,/4/i]},c7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},d7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},h7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},g7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},m7={ordinalNumber:r7({matchPattern:o7,parsePattern:i7,valueCallback:e=>parseInt(e,10)}),era:io({matchPatterns:a7,defaultMatchWidth:"wide",parsePatterns:s7,defaultParseWidth:"any"}),quarter:io({matchPatterns:l7,defaultMatchWidth:"wide",parsePatterns:u7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:io({matchPatterns:c7,defaultMatchWidth:"wide",parsePatterns:d7,defaultParseWidth:"any"}),day:io({matchPatterns:f7,defaultMatchWidth:"wide",parsePatterns:h7,defaultParseWidth:"any"}),dayPeriod:io({matchPatterns:p7,defaultMatchWidth:"any",parsePatterns:g7,defaultParseWidth:"any"})},$u={code:"en-US",formatDistance:K8,formatLong:z8,formatRelative:q8,localize:e7,match:m7,options:{weekStartsOn:0,firstWeekContainsDate:1}};function v7(e,t){const n=Oe(e,t==null?void 0:t.in);return P8(n,N8(n))+1}function b7(e,t){const n=Oe(e,t==null?void 0:t.in),r=+la(n)-+R8(n);return Math.round(r/E1)+1}function k1(e,t){var h,c,p,f;const n=Oe(e,t==null?void 0:t.in),r=n.getFullYear(),o=Yr(),i=(t==null?void 0:t.firstWeekContainsDate)??((c=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((f=(p=o.locale)==null?void 0:p.options)==null?void 0:f.firstWeekContainsDate)??1,a=qt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=Lo(a,t),l=qt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Lo(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function y7(e,t){var s,l,u,h;const n=Yr(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,o=k1(e,t),i=qt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Lo(i,t)}function x7(e,t){const n=Oe(e,t==null?void 0:t.in),r=+Lo(n,t)-+y7(n,t);return Math.round(r/E1)+1}function de(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Yt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return de(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):de(n+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return de(o,t.length)}},ir={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ud={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Yt.y(e,t)},Y:function(e,t,n,r){const o=k1(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return de(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):de(i,t.length)},R:function(e,t){const n=P1(e);return de(n,t.length)},u:function(e,t){const n=e.getFullYear();return de(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return de(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return de(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Yt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return de(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=x7(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):de(o,t.length)},I:function(e,t,n){const r=b7(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):de(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Yt.d(e,t)},D:function(e,t,n){const r=v7(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):de(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return de(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return de(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return de(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=ir.noon:r===0?o=ir.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=ir.evening:r>=12?o=ir.afternoon:r>=4?o=ir.morning:o=ir.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Yt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Yt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Yt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Yt.s(e,t)},S:function(e,t){return Yt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dd(r);case"XXXX":case"XX":return On(r);case"XXXXX":case"XXX":default:return On(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return dd(r);case"xxxx":case"xx":return On(r);case"xxxxx":case"xxx":default:return On(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cd(r,":");case"OOOO":default:return"GMT"+On(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cd(r,":");case"zzzz":default:return"GMT"+On(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return de(r,t.length)},T:function(e,t,n){return de(+e,t.length)}};function cd(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+de(i,2)}function dd(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):On(e,t)}function On(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=de(Math.trunc(r/60),2),i=de(r%60,2);return n+o+t+i}const fd=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},M1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},w7=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return fd(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",fd(r,t)).replace("{{time}}",M1(o,t))},C7={p:M1,P:w7},$7=/^D+$/,S7=/^Y+$/,E7=["D","DD","YY","YYYY"];function P7(e){return $7.test(e)}function R7(e){return S7.test(e)}function k7(e,t,n){const r=M7(e,t,n);if(console.warn(r),E7.includes(e))throw new RangeError(r)}function M7(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const O7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,D7=/^'([^]*?)'?$/,_7=/''/g,L7=/[a-zA-Z]/;function O1(e,t,n){var h,c,p,f;const r=Yr(),o=r.locale??$u,i=r.firstWeekContainsDate??((c=(h=r.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??1,a=r.weekStartsOn??((f=(p=r.locale)==null?void 0:p.options)==null?void 0:f.weekStartsOn)??0,s=Oe(e,n==null?void 0:n.in);if(!O8(s))throw new RangeError("Invalid time value");let l=t.match(T7).map(g=>{const m=g[0];if(m==="p"||m==="P"){const v=C7[m];return v(g,o.formatLong)}return g}).join("").match(O7).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:F7(g)};if(ud[m])return{isToken:!0,value:g};if(m.match(L7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(g=>{if(!g.isToken)return g.value;const m=g.value;(R7(m)||P7(m))&&k7(m,t,String(e));const v=ud[m[0]];return v(s,m,o.localize,u)}).join("")}function F7(e){const t=e.match(D7);return t?t[1].replace(_7,"'"):e}function I7(e,t,n){const r=Yr(),o=(n==null?void 0:n.locale)??r.locale??$u,i=2520,a=xo(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[l,u]=ti(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),h=j8(u,l),c=(jr(u)-jr(l))/1e3,p=Math.round((h-c)/60);let f;if(p<2)return p===0?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",p,s);if(p<45)return o.formatDistance("xMinutes",p,s);if(p<90)return o.formatDistance("aboutXHours",1,s);if(p<sa){const g=Math.round(p/60);return o.formatDistance("aboutXHours",g,s)}else{if(p<i)return o.formatDistance("xDays",1,s);if(p<hr){const g=Math.round(p/sa);return o.formatDistance("xDays",g,s)}else if(p<hr*2)return f=Math.round(p/hr),o.formatDistance("aboutXMonths",f,s)}if(f=I8(u,l),f<12){const g=Math.round(p/hr);return o.formatDistance("xMonths",g,s)}else{const g=f%12,m=Math.trunc(f/12);return g<3?o.formatDistance("aboutXYears",m,s):g<9?o.formatDistance("overXYears",m,s):o.formatDistance("almostXYears",m+1,s)}}function j7(e,t,n){const r=Yr(),o=(n==null?void 0:n.locale)??r.locale??$u,i=xo(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i}),[s,l]=ti(n==null?void 0:n.in,...i>0?[t,e]:[e,t]),u=R1((n==null?void 0:n.roundingMethod)??"round"),h=l.getTime()-s.getTime(),c=h/id,p=jr(l)-jr(s),f=(h-p)/id,g=n==null?void 0:n.unit;let m;if(g?m=g:c<1?m="second":c<60?m="minute":c<sa?m="hour":f<hr?m="day":f<ad?m="month":m="year",m==="second"){const v=u(h/1e3);return o.formatDistance("xSeconds",v,a)}else if(m==="minute"){const v=u(c);return o.formatDistance("xMinutes",v,a)}else if(m==="hour"){const v=u(c/60);return o.formatDistance("xHours",v,a)}else if(m==="day"){const v=u(f/sa);return o.formatDistance("xDays",v,a)}else if(m==="month"){const v=u(f/hr);return v===12&&g!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",v,a)}else{const v=u(f/ad);return o.formatDistance("xYears",v,a)}}function T1(e,t){return I7(e,k8(e),t)}var Dl=new Map,Ei=new WeakMap,hd=0,N7=void 0;function A7(e){return e?(Ei.has(e)||(hd+=1,Ei.set(e,hd.toString())),Ei.get(e)):"0"}function K7(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?A7(e.root):e[t]}`).toString()}function B7(e){const t=K7(e);let n=Dl.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(s=>{var l;const u=s.isIntersecting&&o.some(h=>s.intersectionRatio>=h);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=u),(l=r.get(s.target))==null||l.forEach(h=>{h(u,s)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Dl.set(t,n)}return n}function H7(e,t,n={},r=N7){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:a}=B7(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),Dl.delete(o))}}function V7({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:u}={}){var h;const[c,p]=E.useState(null),f=E.useRef(u),[g,m]=E.useState({inView:!!s,entry:void 0});f.current=u,E.useEffect(()=>{if(a||!c)return;let w;return w=H7(c,(S,k)=>{m({inView:S,entry:k}),f.current&&f.current(S,k),k.isIntersecting&&i&&w&&(w(),w=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,l,t]);const v=(h=g.entry)==null?void 0:h.target,b=E.useRef(void 0);!c&&v&&!i&&!a&&b.current!==v&&(b.current=v,m({inView:!!s,entry:void 0}));const x=[p,g.inView,g.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}var D1=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,o=e.onClick,i=e.layoutVariant;return y.jsx("div",{onClick:function(a){return o(a)},"aria-label":"button",className:"group grid w-full cursor-pointer p-2 transition-colors duration-150 active:bg-slate-50/25 dark:active:bg-slate-800/25 ".concat(t?"border-b border-slate-200 dark:border-slate-700":""," ").concat(i==="job"?"grid-cols-[auto,350px,576px,1fr]":"grid-cols-[auto,350px,1fr,1fr]"," ").concat(r?"bg-slate-200/50 dark:bg-slate-800/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},_l=30,Fo=2e3,Ll=2,_1=function(){return y.jsxs("div",{children:[y.jsx("div",{className:"rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800",children:y.jsx("span",{className:"opacity-0",children:"Placeholder"})}),Be([],new Array(_l),!0).map(function(e,t){return y.jsx("div",{className:Fr("p-2",_l!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:y.jsx(Ro,{className:"h-6 w-full"})},t)})]})};function pd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function L1(...e){return t=>{let n=!1;const r=e.map(o=>{const i=pd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():pd(e[o],null)}}}}function Su(...e){return E.useCallback(L1(...e),e)}function z7(e,t=[]){let n=[];function r(i,a){const s=E.createContext(a),l=n.length;n=[...n,a];const u=c=>{var b;const{scope:p,children:f,...g}=c,m=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,v=E.useMemo(()=>g,Object.values(g));return y.jsx(m.Provider,{value:v,children:f})};u.displayName=i+"Provider";function h(c,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,g=E.useContext(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,h]}const o=()=>{const i=n.map(a=>E.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,U7(o,...t)]}function U7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function gd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ua=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},q7=E[" useInsertionEffect ".trim().toString()]||ua;function W7({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=G7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const h=E.useRef(e!==void 0);E.useEffect(()=>{const c=h.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,r])}const u=E.useCallback(h=>{var c;if(s){const p=Q7(h)?h(e):h;p!==e&&((c=a.current)==null||c.call(a,p))}else i(h)},[s,e,i,a]);return[l,u]}function G7({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),o=E.useRef(n),i=E.useRef(t);return q7(()=>{i.current=t},[t]),E.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Q7(e){return typeof e=="function"}function Y7(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function X7(e){const[t,n]=E.useState(void 0);return ua(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Z7(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var F1=e=>{const{present:t,children:n}=e,r=J7(t),o=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),i=Su(r.ref,ex(o));return typeof n=="function"||r.isPresent?E.cloneElement(o,{ref:i}):null};F1.displayName="Presence";function J7(e){const[t,n]=E.useState(),r=E.useRef(null),o=E.useRef(e),i=E.useRef("none"),a=e?"mounted":"unmounted",[s,l]=Z7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Pi(r.current);i.current=s==="mounted"?u:"none"},[s]),ua(()=>{const u=r.current,h=o.current;if(h!==e){const p=i.current,f=Pi(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(h&&p!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ua(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,c=f=>{const m=Pi(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&m&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=f=>{f.target===t&&(i.current=Pi(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{h.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Pi(e){return(e==null?void 0:e.animationName)||"none"}function ex(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function tx(e){const t=nx(e),n=E.forwardRef((r,o)=>{const{children:i,...a}=r,s=E.Children.toArray(i),l=s.find(ox);if(l){const u=l.props.children,h=s.map(c=>c===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:c);return y.jsx(t,{...a,ref:o,children:E.isValidElement(u)?E.cloneElement(u,void 0,h):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function nx(e){const t=E.forwardRef((n,r)=>{const{children:o,...i}=n;if(E.isValidElement(o)){const a=ax(o),s=ix(i,o.props);return o.type!==E.Fragment&&(s.ref=r?L1(r,a):a),E.cloneElement(o,s)}return E.Children.count(o)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rx=Symbol("radix.slottable");function ox(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rx}function ix(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ax(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Eu=sx.reduce((e,t)=>{const n=tx(`Primitive.${t}`),r=E.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ha="Checkbox",[lx]=z7(Ha),[ux,Pu]=lx(Ha);function cx(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:u,value:h="on",internal_do_not_use_render:c}=e,[p,f]=W7({prop:n,defaultProp:o??!1,onChange:l,caller:Ha}),[g,m]=E.useState(null),[v,b]=E.useState(null),x=E.useRef(!1),w=g?!!a||!!g.closest("form"):!0,S={checked:p,disabled:i,setChecked:f,control:g,setControl:m,name:s,form:a,value:h,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:pn(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:b};return y.jsx(ux,{scope:t,...S,children:dx(c)?c(S):r})}var I1="CheckboxTrigger",j1=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:u,setControl:h,setChecked:c,hasConsumerStoppedPropagationRef:p,isFormControl:f,bubbleInput:g}=Pu(I1,e),m=Su(o,h),v=E.useRef(l);return E.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const x=()=>c(v.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,c]),y.jsx(Eu.button,{type:"button",role:"checkbox","aria-checked":pn(l)?"mixed":l,"aria-required":u,"data-state":V1(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:m,onKeyDown:gd(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:gd(n,b=>{c(x=>pn(x)?!0:!x),g&&f&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});j1.displayName=I1;var N1=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:u,form:h,...c}=e;return y.jsx(cx,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:u,name:r,form:h,value:l,internal_do_not_use_render:({isFormControl:p})=>y.jsxs(y.Fragment,{children:[y.jsx(j1,{...c,ref:t,__scopeCheckbox:n}),p&&y.jsx(H1,{__scopeCheckbox:n})]})})});N1.displayName=Ha;var A1="CheckboxIndicator",K1=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Pu(A1,n);return y.jsx(F1,{present:r||pn(i.checked)||i.checked===!0,children:y.jsx(Eu.span,{"data-state":V1(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});K1.displayName=A1;var B1="CheckboxBubbleInput",H1=E.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:u,value:h,form:c,bubbleInput:p,setBubbleInput:f}=Pu(B1,e),g=Su(n,f),m=Y7(i),v=X7(r);E.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(w,"checked").set,P=!o.current;if(m!==i&&k){const R=new Event("click",{bubbles:P});x.indeterminate=pn(i),k.call(x,pn(i)?!1:i),x.dispatchEvent(R)}},[p,m,i,o]);const b=E.useRef(pn(i)?!1:i);return y.jsx(Eu.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:s,disabled:l,name:u,value:h,form:c,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});H1.displayName=B1;function dx(e){return typeof e=="function"}function pn(e){return e==="indeterminate"}function V1(e){return pn(e)?"indeterminate":e?"checked":"unchecked"}var ca=function(e){var t=e.className,n=xv(e,["className"]);return y.jsx(N1,{className:Fr("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100 dark:border-slate-600 dark:hover:border-slate-400 dark:hover:bg-slate-800":!n.checked,"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600":n.checked===!0,"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100 dark:border-slate-400 dark:text-slate-400 dark:hover:border-slate-300 dark:hover:bg-slate-800":n.checked==="indeterminate"}),onClick:function(r){return r.stopPropagation()},...n,children:y.jsxs(K1,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&y.jsx(V2,{height:12,width:12}),n.checked===!0&&y.jsx(T2,{height:12,width:12})]})})},ao=function(e){var t=e.label,n=e.icon;return y.jsxs("div",{className:"flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-slate-100 px-2 py-0.5 text-sm text-slate-900 transition duration-150 ease-in-out dark:bg-slate-800 dark:text-slate-300",children:[n,y.jsx("span",{children:t})]})},Ru=function(e){var t=e.children,n=e.message;return y.jsxs(O3,{children:[y.jsx(pu,{children:t}),y.jsx(T3,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md dark:bg-slate-800 dark:text-slate-100",children:n})]})},z1={exports:{}},U1={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},q1={exports:{}},fx=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},hx=fx,px=Array.prototype.concat,gx=Array.prototype.slice,md=q1.exports=function(t){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];hx(i)?n=px.call(n,gx.call(i)):n.push(i)}return n};md.wrap=function(e){return function(){return e(md(arguments))}};var mx=q1.exports,wo=U1,ni=mx,W1=Object.hasOwnProperty,G1=Object.create(null);for(var Ss in wo)W1.call(wo,Ss)&&(G1[wo[Ss]]=Ss);var rt=z1.exports={to:{},get:{}};rt.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=rt.get.hsl(e),r="hsl";break;case"hwb":n=rt.get.hwb(e),r="hwb";break;default:n=rt.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};rt.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^(\w+)$/,a=[0,0,0,1],s,l,u;if(s=e.match(n)){for(u=s[2],s=s[1],l=0;l<3;l++){var h=l*2;a[l]=parseInt(s.slice(h,h+2),16)}u&&(a[3]=parseInt(u,16)/255)}else if(s=e.match(t)){for(s=s[1],u=s[3],l=0;l<3;l++)a[l]=parseInt(s[l]+s[l],16);u&&(a[3]=parseInt(u+u,16)/255)}else if(s=e.match(r)){for(l=0;l<3;l++)a[l]=parseInt(s[l+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(o)){for(l=0;l<3;l++)a[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(i))?s[1]==="transparent"?[0,0,0,0]:W1.call(wo,s[1])?(a=wo[s[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=gn(a[l],0,255);return a[3]=gn(a[3],0,1),a};rt.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,i=gn(parseFloat(n[2]),0,100),a=gn(parseFloat(n[3]),0,100),s=gn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};rt.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,i=gn(parseFloat(n[2]),0,100),a=gn(parseFloat(n[3]),0,100),s=gn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};rt.to.hex=function(){var e=ni(arguments);return"#"+Ri(e[0])+Ri(e[1])+Ri(e[2])+(e[3]<1?Ri(Math.round(e[3]*255)):"")};rt.to.rgb=function(){var e=ni(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};rt.to.rgb.percent=function(){var e=ni(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};rt.to.hsl=function(){var e=ni(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};rt.to.hwb=function(){var e=ni(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};rt.to.keyword=function(e){return G1[e.slice(0,3)]};function gn(e,t,n){return Math.min(Math.max(t,e),n)}function Ri(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var vx=z1.exports;const Io=U1,Q1={};for(const e of Object.keys(Io))Q1[Io[e]]=e;const Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Y1=Y;for(const e of Object.keys(Y)){if(!("channels"in Y[e]))throw new Error("missing channels property: "+e);if(!("labels"in Y[e]))throw new Error("missing channel labels property: "+e);if(Y[e].labels.length!==Y[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Y[e];delete Y[e].channels,delete Y[e].labels,Object.defineProperty(Y[e],"channels",{value:t}),Object.defineProperty(Y[e],"labels",{value:n})}Y.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(o+i)/2;return i===o?l=0:u<=.5?l=a/(i+o):l=a/(2-i-o),[s,l*100,u*100]};Y.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),h=u-Math.min(a,s,l),c=function(p){return(u-p)/6/h+1/2};return h===0?(o=0,i=0):(i=h/u,t=c(a),n=c(s),r=c(l),a===u?o=r-n:s===u?o=1/3+t-r:l===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,u*100]};Y.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Y.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]};Y.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[i*100,a*100,s*100,o*100]};function bx(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Y.rgb.keyword=function(e){const t=Q1[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(Io)){const i=Io[o],a=bx(e,i);a<n&&(n=a,r=o)}return r};Y.keyword.rgb=function(e){return Io[e]};Y.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,i=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[o*100,i*100,a*100]};Y.rgb.lab=function(e){const t=Y.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const i=116*r-16,a=500*(n-r),s=200*(r-o);return[i,a,s]};Y.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(n===0)return a=r*255,[a,a,a];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,l=[0,0,0];for(let u=0;u<3;u++)i=t+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?a=s+(o-s)*6*i:2*i<1?a=o:3*i<2?a=s+(o-s)*(2/3-i)*6:a=s,l[u]=a*255;return l};Y.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;const a=(r+n)/2,s=r===0?2*o/(i+o):2*n/(r+n);return[t,s*100,a*100]};Y.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};Y.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,i*100,a*100]};Y.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,a&1&&(i=1-i);const l=n+i*(s-n);let u,h,c;switch(a){default:case 6:case 0:u=s,h=l,c=n;break;case 1:u=l,h=s,c=n;break;case 2:u=n,h=s,c=l;break;case 3:u=n,h=l,c=s;break;case 4:u=l,h=n,c=s;break;case 5:u=s,h=n,c=l;break}return[u*255,h*255,c*255]};Y.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),a=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[i*255,a*255,s*255]};Y.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=t*3.2406+n*-1.5372+r*-.4986,i=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]};Y.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,i=500*(t-n),a=200*(n-r);return[o,i,a]};Y.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,i,a;i=(t+16)/116,o=n/500+i,a=i-r/200;const s=i**3,l=o**3,u=a**3;return i=s>.008856?s:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o*=95.047,i*=100,a*=108.883,[o,i,a]};Y.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const a=Math.sqrt(n*n+r*r);return[t,a,o]};Y.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),a=n*Math.sin(o);return[t,i,a]};Y.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?Y.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(a+=60),a};Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])};Y.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Y.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]};Y.ansi256.rgb=function(e){if(e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};Y.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,i=r>>8&255,a=r&255;return[o,i,a]};Y.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return a<1?s=i/(1-a):s=0,a<=0?l=0:o===t?l=(n-r)/a%6:o===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};Y.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};Y.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};Y.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};Y.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};Y.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};Y.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Y.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]};Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Y.gray.hsl=function(e){return[0,0,e[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(e){return[0,100,e[0]]};Y.gray.cmyk=function(e){return[0,0,0,e[0]]};Y.gray.lab=function(e){return[e[0],0,0]};Y.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};Y.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const da=Y1;function yx(){const e={},t=Object.keys(da);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function xx(e){const t=yx(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),o=Object.keys(da[r]);for(let i=o.length,a=0;a<i;a++){const s=o[a],l=t[s];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(s))}}return t}function wx(e,t){return function(n){return t(e(n))}}function Cx(e,t){const n=[t[e].parent,e];let r=da[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=wx(da[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}var $x=function(e){const t=xx(e),n={},r=Object.keys(t);for(let o=r.length,i=0;i<o;i++){const a=r[i];t[a].parent!==null&&(n[a]=Cx(a,t))}return n};const Fl=Y1,Sx=$x,ur={},Ex=Object.keys(Fl);function Px(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Rx(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let i=o.length,a=0;a<i;a++)o[a]=Math.round(o[a]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}Ex.forEach(e=>{ur[e]={},Object.defineProperty(ur[e],"channels",{value:Fl[e].channels}),Object.defineProperty(ur[e],"labels",{value:Fl[e].labels});const t=Sx(e);Object.keys(t).forEach(r=>{const o=t[r];ur[e][r]=Rx(o),ur[e][r].raw=Px(o)})});var kx=ur;const cr=vx,tt=kx,X1=["keyword","gray","hex"],Il={};for(const e of Object.keys(tt))Il[[...tt[e].labels].sort().join("")]=e;const fa={};function ke(e,t){if(!(this instanceof ke))return new ke(e,t);if(t&&t in X1&&(t=null),t&&!(t in tt))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ke)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=cr.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=tt[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=tt[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=jl(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const i=o.sort().join("");if(!(i in Il))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Il[i];const{labels:a}=tt[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=jl(s)}if(fa[this.model])for(r=tt[this.model].channels,n=0;n<r;n++){const o=fa[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ke.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in cr.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return cr.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return cr.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=tt[this.model],{labels:n}=tt[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new ke([...this.color.map(Ox(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new ke([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:me("rgb",0,Se(255)),green:me("rgb",1,Se(255)),blue:me("rgb",2,Se(255)),hue:me(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:me("hsl",1,Se(100)),lightness:me("hsl",2,Se(100)),saturationv:me("hsv",1,Se(100)),value:me("hsv",2,Se(100)),chroma:me("hcg",1,Se(100)),gray:me("hcg",2,Se(100)),white:me("hwb",1,Se(100)),wblack:me("hwb",2,Se(100)),cyan:me("cmyk",0,Se(100)),magenta:me("cmyk",1,Se(100)),yellow:me("cmyk",2,Se(100)),black:me("cmyk",3,Se(100)),x:me("xyz",0,Se(95.047)),y:me("xyz",1,Se(100)),z:me("xyz",2,Se(108.833)),l:me("lab",0,Se(100)),a:me("lab",1),b:me("lab",2),keyword(e){return e!==void 0?new ke(e):tt[this.model].keyword(this.color)},hex(e){return e!==void 0?new ke(e):cr.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new ke(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),cr.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return ke.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return ke.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(tt)){if(X1.includes(e))continue;const{channels:t}=tt[e];ke.prototype[e]=function(...n){return this.model===e?new ke(this):n.length>0?new ke(n,e):new ke([...Tx(tt[this.model][e].raw(this.color)),this.valpha],e)},ke[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=jl(n,t)),new ke(r,e)}}function Mx(e,t){return Number(e.toFixed(t))}function Ox(e){return function(t){return Mx(t,e)}}function me(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(fa[r]||(fa[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function Se(e){return function(t){return Math.max(0,Math.min(e,t))}}function Tx(e){return Array.isArray(e)?e:[e]}function jl(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var Dx=ke;const vd=cf(Dx);var _x=typeof global=="object"&&global&&global.Object===Object&&global,Lx=typeof self=="object"&&self&&self.Object===Object&&self,Zn=_x||Lx||Function("return this")(),ha=Zn.Symbol,Z1=Object.prototype,Fx=Z1.hasOwnProperty,Ix=Z1.toString,so=ha?ha.toStringTag:void 0;function jx(e){var t=Fx.call(e,so),n=e[so];try{e[so]=void 0;var r=!0}catch{}var o=Ix.call(e);return r&&(t?e[so]=n:delete e[so]),o}var Nx=Object.prototype,Ax=Nx.toString;function Kx(e){return Ax.call(e)}var Bx="[object Null]",Hx="[object Undefined]",bd=ha?ha.toStringTag:void 0;function J1(e){return e==null?e===void 0?Hx:Bx:bd&&bd in Object(e)?jx(e):Kx(e)}function eg(e){return e!=null&&typeof e=="object"}var Vx="[object Symbol]";function zx(e){return typeof e=="symbol"||eg(e)&&J1(e)==Vx}var Ux=Array.isArray,qx=/\s/;function Wx(e){for(var t=e.length;t--&&qx.test(e.charAt(t)););return t}var Gx=/^\s+/;function Qx(e){return e&&e.slice(0,Wx(e)+1).replace(Gx,"")}function Nr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yd=NaN,Yx=/^[-+]0x[0-9a-f]+$/i,Xx=/^0b[01]+$/i,Zx=/^0o[0-7]+$/i,Jx=parseInt;function e6(e){if(typeof e=="number")return e;if(zx(e))return yd;if(Nr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Qx(e);var n=Xx.test(e);return n||Zx.test(e)?Jx(e.slice(2),n?2:8):Yx.test(e)?yd:+e}var xd=1/0,t6=17976931348623157e292;function n6(e){if(!e)return e===0?e:0;if(e=e6(e),e===xd||e===-xd){var t=e<0?-1:1;return t*t6}return e===e?e:0}function wd(e){var t=n6(e),n=t%1;return t===t?n?t-n:t:0}function tg(e){return e}var r6="[object AsyncFunction]",o6="[object Function]",i6="[object GeneratorFunction]",a6="[object Proxy]";function s6(e){if(!Nr(e))return!1;var t=J1(e);return t==o6||t==i6||t==r6||t==a6}var Es=Zn["__core-js_shared__"],Cd=function(){var e=/[^.]+$/.exec(Es&&Es.keys&&Es.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l6(e){return!!Cd&&Cd in e}var u6=Function.prototype,c6=u6.toString;function d6(e){if(e!=null){try{return c6.call(e)}catch{}try{return e+""}catch{}}return""}var f6=/[\\^$.*+?()[\]{}|]/g,h6=/^\[object .+?Constructor\]$/,p6=Function.prototype,g6=Object.prototype,m6=p6.toString,v6=g6.hasOwnProperty,b6=RegExp("^"+m6.call(v6).replace(f6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y6(e){if(!Nr(e)||l6(e))return!1;var t=s6(e)?b6:h6;return t.test(d6(e))}function x6(e,t){return e==null?void 0:e[t]}function ng(e,t){var n=x6(e,t);return y6(n)?n:void 0}var $d=ng(Zn,"WeakMap"),pa=$d&&new $d,rg=pa?function(e,t){return pa.set(e,t),e}:tg,Sd=Object.create,ku=function(){function e(){}return function(t){if(!Nr(t))return{};if(Sd)return Sd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ku(e.prototype),r=e.apply(n,t);return Nr(r)?r:n}}var w6=1;function C6(e,t,n){var r=t&w6,o=jo(e);function i(){var a=this&&this!==Zn&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function og(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var $6=Math.max;function ig(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=$6(i-a,0),h=Array(l+u),c=!r;++s<l;)h[s]=t[s];for(;++o<a;)(c||o<i)&&(h[n[o]]=e[o]);for(;u--;)h[s++]=e[o++];return h}var S6=Math.max;function ag(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,h=S6(i-s,0),c=Array(h+u),p=!r;++o<h;)c[o]=e[o];for(var f=o;++l<u;)c[f+l]=t[l];for(;++a<s;)(p||o<i)&&(c[f+n[a]]=e[o++]);return c}function E6(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function Mu(){}var P6=4294967295;function Ar(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=P6,this.__views__=[]}Ar.prototype=ku(Mu.prototype);Ar.prototype.constructor=Ar;function R6(){}var sg=pa?function(e){return pa.get(e)}:R6,Ed={},k6=Object.prototype,M6=k6.hasOwnProperty;function O6(e){for(var t=e.name+"",n=Ed[t],r=M6.call(Ed,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function Kr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Kr.prototype=ku(Mu.prototype);Kr.prototype.constructor=Kr;function lg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function T6(e){if(e instanceof Ar)return e.clone();var t=new Kr(e.__wrapped__,e.__chain__);return t.__actions__=lg(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var D6=Object.prototype,_6=D6.hasOwnProperty;function ga(e){if(eg(e)&&!Ux(e)&&!(e instanceof Ar)){if(e instanceof Kr)return e;if(_6.call(e,"__wrapped__"))return T6(e)}return new Kr(e)}ga.prototype=Mu.prototype;ga.prototype.constructor=ga;function L6(e){var t=O6(e),n=ga[t];if(typeof n!="function"||!(t in Ar.prototype))return!1;if(e===n)return!0;var r=sg(n);return!!r&&e===r[0]}var F6=800,I6=16,j6=Date.now;function ug(e){var t=0,n=0;return function(){var r=j6(),o=I6-(r-n);if(n=r,o>0){if(++t>=F6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cg=ug(rg),N6=/\{\n\/\* \[wrapped with (.+)\] \*/,A6=/,? & /;function K6(e){var t=e.match(N6);return t?t[1].split(A6):[]}var B6=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function H6(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(B6,`{
|
|
61
61
|
/* [wrapped with `+t+`] */
|
|
62
|
-
`)}function M6(e){return function(){return e}}var Pd=function(){try{var e=Q1(Object,"defineProperty");return e({},"",{}),e}catch{}}(),O6=Pd?function(e,t){return Pd(e,"toString",{configurable:!0,enumerable:!1,value:M6(t),writable:!0})}:G1,T6=ng(O6);function D6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function _6(e,t,n,r){for(var o=e.length,i=n+-1;++i<o;)if(t(e[i],i,e))return i;return-1}function F6(e){return e!==e}function L6(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function I6(e,t,n){return t===t?L6(e,t,n):_6(e,F6,n)}function N6(e,t){var n=e==null?0:e.length;return!!n&&I6(e,t,0)>-1}var j6=1,A6=2,K6=8,B6=16,H6=32,V6=64,z6=128,U6=256,q6=512,W6=[["ary",z6],["bind",j6],["bindKey",A6],["curry",K6],["curryRight",B6],["flip",q6],["partial",H6],["partialRight",V6],["rearg",U6]];function G6(e,t){return D6(W6,function(n){var r="_."+n[0];t&n[1]&&!N6(e,r)&&e.push(r)}),e.sort()}function og(e,t,n){var r=t+"";return T6(e,k6(r,G6(P6(r),n)))}var Q6=4,Y6=8,Rd=32,kd=64;function ig(e,t,n,r,o,i,a,s,l,u){var h=t&Y6,c=h?a:void 0,p=h?void 0:a,f=h?i:void 0,g=h?void 0:i;t|=h?Rd:kd,t&=~(h?kd:Rd),t&Q6||(t&=-4);var m=[e,t,o,f,c,g,p,s,l,u],v=n.apply(void 0,m);return x6(e)&&rg(v,m),v.placeholder=r,og(v,e,t)}function ag(e){var t=e;return t.placeholder}var X6=9007199254740991,Z6=/^(?:0|[1-9]\d*)$/;function J6(e,t){var n=typeof e;return t=t??X6,!!t&&(n=="number"||n!="symbol"&&Z6.test(e))&&e>-1&&e%1==0&&e<t}var ew=Math.min;function tw(e,t){for(var n=e.length,r=ew(t.length,n),o=tg(e);r--;){var i=t[r];e[r]=J6(i,n)?o[i]:void 0}return e}var Md="__lodash_placeholder__";function ma(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===Md)&&(e[n]=Md,i[o++]=n)}return i}var nw=1,rw=2,ow=8,iw=16,aw=128,sw=512;function Ou(e,t,n,r,o,i,a,s,l,u){var h=t&aw,c=t&nw,p=t&rw,f=t&(ow|iw),g=t&sw,m=p?void 0:jo(e);function v(){for(var b=arguments.length,x=Array(b),w=b;w--;)x[w]=arguments[w];if(f)var $=ag(v),k=d6(x,$);if(r&&(x=Z1(x,r,o,f)),i&&(x=J1(x,i,a,f)),b-=k,f&&b<u){var E=ma(x,$);return ig(e,t,Ou,v.placeholder,n,x,E,s,l,u-b)}var R=c?n:this,M=p?R[e]:e;return b=x.length,s?x=tw(x,s):g&&b>1&&x.reverse(),h&&l<b&&(x.length=l),this&&this!==nr&&this instanceof v&&(M=m||jo(M)),M.apply(R,x)}return v}function lw(e,t,n){var r=jo(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=ag(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:ma(a,l);if(i-=u.length,i<n)return ig(e,t,Ou,o.placeholder,void 0,a,u,void 0,void 0,n-i);var h=this&&this!==nr&&this instanceof o?r:e;return X1(h,this,a)}return o}var uw=1;function cw(e,t,n,r){var o=t&uw,i=jo(e);function a(){for(var s=-1,l=arguments.length,u=-1,h=r.length,c=Array(h+l),p=this&&this!==nr&&this instanceof a?i:e;++u<h;)c[u]=r[u];for(;l--;)c[u++]=arguments[++s];return X1(p,o?n:this,c)}return a}var Od="__lodash_placeholder__",Es=1,dw=2,fw=4,Td=8,fo=128,Dd=256,hw=Math.min;function pw(e,t){var n=e[1],r=t[1],o=n|r,i=o<(Es|dw|fo),a=r==fo&&n==Td||r==fo&&n==Dd&&e[7].length<=t[8]||r==(fo|Dd)&&t[7].length<=t[8]&&n==Td;if(!(i||a))return e;r&Es&&(e[2]=t[2],o|=n&Es?0:fw);var s=t[3];if(s){var l=e[3];e[3]=l?Z1(l,s,t[4]):s,e[4]=l?ma(e[3],Od):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?J1(l,s,t[6]):s,e[6]=l?ma(e[5],Od):t[6]),s=t[7],s&&(e[7]=s),r&fo&&(e[8]=e[8]==null?t[8]:hw(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var gw="Expected a function",_d=1,mw=2,Fd=8,Ld=16,Id=32,vw=64,Nd=Math.max;function bw(e,t,n,r,o,i,a,s){var l=t&mw;if(!l&&typeof e!="function")throw new TypeError(gw);var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=a===void 0?a:Nd(wd(a),0),s=s===void 0?s:wd(s),u-=o?o.length:0,t&vw){var h=r,c=o;r=o=void 0}var p=l?void 0:eg(e),f=[e,t,n,r,o,h,c,i,a,s];if(p&&pw(f,p),e=f[0],t=f[1],n=f[2],r=f[3],o=f[4],s=f[9]=f[9]===void 0?l?0:e.length:Nd(f[9]-u,0),!s&&t&(Fd|Ld)&&(t&=-25),!t||t==_d)var g=l6(e,t,n);else t==Fd||t==Ld?g=lw(e,t,s):(t==Id||t==(_d|Id))&&!o.length?g=cw(e,t,n,r):g=Ou.apply(void 0,f);var m=p?Y1:rg;return og(m(g,f),e,t)}var yw=8;function va(e,t,n){t=n?void 0:t;var r=bw(e,yw,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=va.placeholder,r}va.placeholder={};function xw(e){const t=e[0],n=e[1],r=e[2];let o,i,a;return o=t*1+n*0+r*1.13983,i=t*1+n*-.39465+r*-.5806,a=t*1+n*2.02311+r*0,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]}function ww(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=t*.299+n*.587+r*.114,i=t*-.14713+n*-.28886+r*.436,a=t*.615+n*-.51499+r*-.10001;return[o,i,a]}const Cw={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},$w={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},Sw={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},Ew={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},Pw={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},Rw={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},kw={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},Mw={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},Ow={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},Tw={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},Dw={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},_w={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},Fw={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},Lw={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},Iw={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Nw={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},jw={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},Aw={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},Kw={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},Bw={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},Hw={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},Vw={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},zw={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},Uw={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},qw={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},Ww={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},Gw={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},Qw={scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},Yw={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},Xw={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},Zw={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},Jw={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},eC={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},tC={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},nC={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},rC={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},oC={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},iC={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},sg={threezerotwofour:Cw,apathy:$w,ashes:Sw,atelierDune:Ew,atelierForest:Pw,atelierHeath:Rw,atelierLakeside:kw,atelierSeaside:Mw,bespin:Ow,brewer:Tw,bright:Dw,chalk:_w,codeschool:Fw,colors:Lw,default:Iw,eighties:Nw,embers:jw,flat:Aw,google:Kw,grayscale:Bw,greenscreen:Hw,harmonic:Vw,hopscotch:zw,isotope:Uw,marrakesh:qw,mocha:Ww,monokai:Gw,nicinabox:Qw,ocean:Yw,paraiso:Xw,pop:Zw,railscasts:Jw,shapeshifter:eC,solarized:tC,summerfruit:nC,tomorrow:rC,tube:oC,twilight:iC},lg=sg.default,jd=Object.keys(lg),aC=e=>e<.25?1:e<.5?.9-e:1.1-e,sC=e=>{const t=vd(e),[n,r,o]=ww(t.array()),i=[aC(n),r,o],a=xw(i);return vd.rgb(a).hex()},ur=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),lC=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,r=typeof t;switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return ur({className:e,style:t});case"function":return(o,...i)=>ur({className:e})(t(o,...i))}break;case"object":switch(r){case"string":return ur({className:t,style:e});case"object":return{...t,...e};case"function":return(o,...i)=>ur({style:e})(t(o,...i))}break;case"function":switch(r){case"string":return(o,...i)=>e(ur(o)({className:t}),...i);case"object":return(o,...i)=>e(ur(o)({style:t}),...i);case"function":return(o,...i)=>e(t(o,...i),...i)}}},uC=(e,t)=>{const n=Object.keys(t);for(const r in e)n.indexOf(r)===-1&&n.push(r);return n.reduce((r,o)=>(r[o]=lC(e[o],t[o]),r),{})},cC=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const o=t.map(i=>e[i]).filter(Boolean).reduce((i,a)=>(typeof a=="string"?i.className=[i.className,a].filter(Boolean).join(" "):typeof a=="object"?i.style={...i.style,...a}:typeof a=="function"&&(i={...i,...a(i,...n)}),i),{className:"",style:{}});return o.className||delete o.className,Object.keys(o.style).length===0&&delete o.style,o},Nl=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?sC(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),dC=va((e,t={},n={},...r)=>{const{defaultBase16:o=lg,base16Themes:i=null}=t,a=fC(n,i);a&&(n={...a,...n});const s=jd.reduce((c,p)=>(c[p]=n[p]||o[p],c),{}),l=Object.keys(n).reduce((c,p)=>(jd.indexOf(p)===-1&&(c[p]=n[p]),c),{}),u=e(s),h=uC(l,u);return va(cC,2)(h,...r)},3),ug=e=>!!e.extend,fC=(e,t)=>{if(e&&ug(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=sg[n],r==="inverted"&&(e=Nl(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},hC=e=>typeof e=="string"?`${e}:inverted`:e&&ug(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:Nl(e.extend)}:e&&Nl(e);function pC(e){const t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&typeof e[Symbol.iterator]=="function"?"Iterable":t==="Custom"&&e.constructor!==Object&&e instanceof Object?"Object":t}function cg({styling:e,arrowStyle:t="single",expanded:n,nodeType:r,onClick:o}){return d.createElement("div",{...e("arrowContainer",t),onClick:o},d.createElement("div",{...e(["arrow","arrowSign"],r,n,t)},"▶",t==="double"&&d.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function gC(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function mC(e){return typeof e.set=="function"}function vC(e,t,n,r=0,o=1/0){let i;if(e==="Object"){let a=Object.getOwnPropertyNames(t);n&&a.sort(n===!0?void 0:n),a=a.slice(r,o+1),i={entries:a.map(s=>({key:s,value:t[s]}))}}else if(e==="Array")i={entries:t.slice(r,o+1).map((a,s)=>({key:s+r,value:a}))};else{let a=0;const s=[];let l=!0;const u=mC(t);for(const h of t){if(a>o){l=!1;break}r<=a&&(u&&Array.isArray(h)?typeof h[0]=="string"||typeof h[0]=="number"?s.push({key:h[0],value:h[1]}):s.push({key:`[entry ${a}]`,value:{"[key]":h[0],"[value]":h[1]}}):s.push({key:a,value:h})),a++}i={hasMore:!l,entries:s}}return i}function Ps(e,t,n){const r=[];for(;t-e>n*n;)n=n*n;for(let o=e;o<=t;o+=n)r.push({from:o,to:Math.min(t,o+n-1)});return r}function bC(e,t,n,r,o=0,i=1/0){const a=vC.bind(null,e,t,n);if(!r)return a().entries;const s=i<1/0,l=Math.min(i-o,gC(e,t));if(e!=="Iterable"){if(l<=r||r<7)return a(o,i).entries}else if(l<=r&&!s)return a(o,i).entries;let u;if(e==="Iterable"){const{hasMore:h,entries:c}=a(o,o+r-1);u=h?[...c,...Ps(o+r,o+2*r-1,r)]:c}else u=s?Ps(o,i,r):[...a(0,r-5).entries,...Ps(r-4,l-5,r),...a(l-4,l-1).entries];return u}function yC(e){const{styling:t,from:n,to:r,renderChildNodes:o,nodeType:i}=e,[a,s]=d.useState(!1),l=d.useCallback(()=>{s(!a)},[a]);return a?d.createElement("div",{...t("itemRange",a)},o(e,n,r)):d.createElement("div",{...t("itemRange",a),onClick:l},d.createElement(cg,{nodeType:i,styling:t,expanded:!1,onClick:l,arrowStyle:"double"}),`${n} ... ${r}`)}function xC(e){return e.to!==void 0}function dg(e,t,n){const{nodeType:r,data:o,collectionLimit:i,circularCache:a,keyPath:s,postprocessValue:l,sortObjectKeys:u}=e,h=[];return bC(r,o,u,i,t,n).forEach(c=>{if(xC(c))h.push(d.createElement(yC,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:dg}));else{const{key:p,value:f}=c,g=a.includes(f);h.push(d.createElement(fg,{...e,postprocessValue:l,collectionLimit:i,key:`Node--${p}`,keyPath:[p,...s],value:l(f),circularCache:[...a,f],isCircular:g,hideRoot:!1}))}}),h}function Tu(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:o,expandable:i,getItemString:a,hideRoot:s,isCircular:l,keyPath:u,labelRenderer:h,level:c=0,nodeType:p,nodeTypeIndicator:f,shouldExpandNodeInitially:g,styling:m}=e,[v,b]=d.useState(l?!1:g(u,o,c)),x=d.useCallback(()=>{i&&b(!v)},[i,v]),w=v||s&&c===0?dg({...e,circularCache:t,level:c+1}):null,$=d.createElement("span",{...m("nestedNodeItemType",v)},f),k=a(p,o,$,r(o,n),u),E=[u,p,v,i];return s?d.createElement("li",{...m("rootNode",...E)},d.createElement("ul",{...m("rootNodeChildren",...E)},w)):d.createElement("li",{...m("nestedNode",...E)},i&&d.createElement(cg,{styling:m,nodeType:p,expanded:v,onClick:x}),d.createElement("label",{...m(["label","nestedNodeLabel"],...E),onClick:x},h(...E)),d.createElement("span",{...m("nestedNodeItemString",...E),onClick:x},k),d.createElement("ul",{...m("nestedNodeChildren",...E)},w))}function wC(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function CC({data:e,...t}){return d.createElement(Tu,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:wC,expandable:Object.getOwnPropertyNames(e).length>0})}function $C(e){return`${e.length} ${e.length!==1?"items":"item"}`}function SC({data:e,...t}){return d.createElement(Tu,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:$C,expandable:e.length>0})}function EC(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const o of e){if(t&&n+1>t){r=!0;break}n+=1}return`${r?">":""}${n} ${n!==1?"entries":"entry"}`}function PC(e){return d.createElement(Tu,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:EC,expandable:!0})}function At({nodeType:e,styling:t,labelRenderer:n,keyPath:r,valueRenderer:o,value:i,valueGetter:a=s=>s}){return d.createElement("li",{...t("value",e,r)},d.createElement("label",{...t(["label","valueLabel"],e,r)},n(r,e,!1,!1)),d.createElement("span",{...t("valueText",e,r)},o(a(i),i,...r)))}function fg({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:o,valueRenderer:i,isCustomNode:a,...s}){const l=a(o)?"Custom":pC(o),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:l,styling:r,value:o,valueRenderer:i},h={...s,...u,data:o,isCustomNode:a};switch(l){case"Object":case"Error":case"WeakMap":case"WeakSet":return d.createElement(CC,{...h});case"Array":return d.createElement(SC,{...h});case"Iterable":case"Map":case"Set":return d.createElement(PC,{...h});case"String":return d.createElement(At,{...u,valueGetter:c=>`"${c}"`});case"Number":return d.createElement(At,{...u});case"Boolean":return d.createElement(At,{...u,valueGetter:c=>c?"true":"false"});case"Date":return d.createElement(At,{...u,valueGetter:c=>c.toISOString()});case"Null":return d.createElement(At,{...u,valueGetter:()=>"null"});case"Undefined":return d.createElement(At,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return d.createElement(At,{...u,valueGetter:c=>c.toString()});case"Custom":return d.createElement(At,{...u});default:return d.createElement(At,{...u,valueGetter:()=>`<${l}>`})}}const RC={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},kC=e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),MC=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),OC=e=>{const t=kC(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:n},r,o)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:o.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:n},r)=>({style:{...n,color:MC(t)[r]}}),itemRange:(n,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},r,o)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:o?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:o?"rotateZ(90deg)":"rotateZ(0deg)",transform:o?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},r)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:r==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},r,o,i,a)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:r.length>1?"0.875em":0,paddingLeft:a?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},r,o,i,a)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:a?"inherit":"text",MozUserSelect:a?"inherit":"text",cursor:a?"pointer":"default"}}),nestedNodeItemString:({style:n},r,o,i)=>({style:{...n,paddingLeft:"0.5em",cursor:"default",color:i?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:n},r,o)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:o?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},TC=dC(OC,{defaultBase16:RC}),Ad=e=>e,DC=(e,t,n)=>n===0,_C=(e,t,n,r)=>d.createElement("span",null,n," ",r),FC=([e])=>d.createElement("span",null,e,":"),LC=()=>!1;function ba({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:o=FC,valueRenderer:i=Ad,shouldExpandNodeInitially:a=DC,hideRoot:s=!1,getItemString:l=_C,postprocessValue:u=Ad,isCustomNode:h=LC,collectionLimit:c=50,sortObjectKeys:p=!1}){const f=d.useMemo(()=>TC(n?hC(t):t),[t,n]);return d.createElement("ul",{...f("tree")},d.createElement(fg,{keyPath:s?[]:r,value:u(e),isCustomNode:h,styling:f,labelRenderer:o,valueRenderer:i,shouldExpandNodeInitially:a,hideRoot:s,getItemString:l,postprocessValue:u,collectionLimit:c,sortObjectKeys:p}))}var za=function(e){var t=e.actions;return y.jsxs(Z4,{children:[y.jsx(pu,{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 radix-state-open:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700 dark:radix-state-open:bg-slate-700","aria-label":"Action menu",children:y.jsx(D2,{width:18,height:18})}),y.jsx(Q4,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-200 bg-white/95 p-1 shadow-lg backdrop-blur-md dark:border-slate-700 dark:bg-slate-800/95",offset:5,children:y.jsx(t3,{children:t.map(function(n){return y.jsxs(i3,{className:"flex cursor-default items-center space-x-1.5 rounded-md py-1.5 pl-1.5 pr-8 text-sm font-medium text-slate-900 outline-none transition duration-150 ease-in-out focus:bg-slate-100 dark:text-slate-100 dark:focus:bg-slate-700",onAction:n.onSelect,children:[n.icon,y.jsx("span",{children:n.label})]},n.label)})})})]})},IC=function(e){var t=e.job,n=e.queueName,r=e.queue,o=e.onRemove,i=le.job.retry.useMutation(),a=i.mutate,s=i.isSuccess,l=le.job.discard.useMutation(),u=l.mutate,h=l.isSuccess,c=le.job.rerun.useMutation(),p=c.mutate,f=c.isSuccess,g=le.job.remove.useMutation(),m=g.mutate,v=g.isSuccess;d.useEffect(function(){(s||h||f||v)&&(o==null||o())},[s,h,f,v,o]);var b={queueName:n,jobId:t.id},x=(r==null?void 0:r.supports.retry)!==!1,w=Ke(Ke(Ke([],t.failedReason&&x?[{label:"Retry",onSelect:function(){a(b)},icon:y.jsx(jr,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){p(b)},icon:y.jsx(jr,{})}]:[{label:"Discard",onSelect:function(){u(b)},icon:y.jsx(j2,{})}],!0),[{label:"Remove",onSelect:function(){m(b)},icon:y.jsx(Gr,{})}],!1);return y.jsx(za,{actions:w})},Cn=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,r=e.variant,o=r===void 0?"outline":r,i=e.size,a=i===void 0?"md":i,s=e.icon,l=e.label,u=e.isLoading,h=e.onClick,c=e.disabled;return y.jsxs("button",{onClick:h,disabled:u||c,className:Ar("flex items-center space-x-1 rounded-md border text-sm font-medium transition-colors duration-150",{"py-0.5":a==="sm","py-1":a==="md","py-1.5":a==="lg"},[a==="sm"&&s?"pl-1.5 pr-2.5":"px-2.5",a==="md"&&s?"pl-2 pr-3":"px-3",a==="lg"&&s?"pl-2.5 pr-4":"px-4"],{"cursor-not-allowed opacity-50":u||c,"border-yellow-900 text-yellow-900 hover:bg-yellow-50 focus:bg-yellow-50 dark:border-yellow-400 dark:text-yellow-400 dark:hover:bg-yellow-950/30 dark:focus:bg-yellow-950/30":n==="yellow"&&o==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50 dark:border-slate-400 dark:text-slate-300 dark:hover:bg-slate-800 dark:focus:bg-slate-800":n==="slate"&&o==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50 dark:border-red-400 dark:text-red-400 dark:hover:bg-red-950/30 dark:focus:bg-red-950/30":n==="red"&&o==="outline","border-yellow-800 bg-yellow-800 text-yellow-50 hover:border-yellow-900 hover:bg-yellow-900 focus:border-yellow-900 focus:bg-yellow-900 dark:border-yellow-600 dark:bg-yellow-600 dark:hover:border-yellow-500 dark:hover:bg-yellow-500 dark:focus:border-yellow-500 dark:focus:bg-yellow-500":n==="yellow"&&o==="filled","border-slate-800 bg-slate-800 text-slate-50 hover:border-slate-900 hover:bg-slate-900 focus:border-slate-900 focus:bg-slate-900 dark:border-slate-600 dark:bg-slate-600 dark:hover:border-slate-500 dark:hover:bg-slate-500 dark:focus:border-slate-500 dark:focus:bg-slate-500":n==="slate"&&o==="filled","border-red-800 bg-red-800 text-red-50 hover:border-red-900 hover:bg-red-900 focus:border-red-900 focus:bg-red-900 dark:border-red-600 dark:bg-red-600 dark:hover:border-red-500 dark:hover:bg-red-500 dark:focus:border-red-500 dark:focus:bg-red-500":n==="red"&&o==="filled"}),children:[u?y.jsx("div",{className:"flex w-4 justify-center",children:y.jsx(eu,{width:10,height:10,className:"animate-spin"})}):s?y.jsx("div",{className:"flex w-4 justify-center",children:s}):null,y.jsx("span",{children:l})]})},NC=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,o=le.queue.byName.useQuery({queueName:n}),i=le.job.retry.useMutation().mutate,a=le.job.logs.useQuery({jobId:t.id,queueName:n}).data;return y.jsx(Ba,{isOpen:!0,isDismissable:!0,onOpenChange:function(s){s||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Aa,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(s){var l,u,h=s.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),h()},children:y.jsx(Jl,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Ka,{className:"mb-1 flex items-center space-x-2",children:[y.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),y.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),y.jsx(IC,{queueName:n,job:t,queue:(l=o.data)!==null&&l!==void 0?l:void 0,onRemove:r})]}),y.jsxs("div",{children:[t.failedReason?y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Error"}),y.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t.failedReason}),y.jsx(Cn,{label:"Retry",size:"sm",icon:y.jsx(jr,{width:14}),onClick:function(){i({queueName:n,jobId:t.id}),r()}})]}):null,y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ba,{data:t.opts,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 pt-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Data"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ba,{data:t.data,theme:"monokai"})})]}),!((u=o.data)===null||u===void 0)&&u.supports.logs&&(a!=null&&a.length)?y.jsxs("div",{className:"mt-4 space-y-2 border-t border-t-slate-200 pt-4 dark:border-t-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Logs"}),y.jsx("div",{className:"space-y-1",children:a==null?void 0:a.map(function(c,p){return y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("div",{className:"h-4 w-1 rounded-sm bg-slate-300 dark:bg-slate-600"}),y.jsx("p",{className:"font-mono text-sm text-slate-900 dark:text-slate-100",children:c})]},p)})})]}):null]})]})}})})},ki=a1(),jC=[ki.display({id:"select",header:function(e){var t=e.table;return y.jsx(ca,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return y.jsx(ca,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),ki.accessor("name",{cell:function(e){return y.jsxs("div",{className:"flex w-full items-center space-x-2",children:[y.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name}),y.jsxs("span",{className:"max-w-[20%] shrink truncate text-sm text-slate-500 dark:text-slate-400",children:["#",e.cell.row.original.id]})]})},header:"Name"}),ki.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,r=t.processedAt,o=t.finishedAt,i=t.status,a=t.retriedAt;return y.jsxs("div",{className:"flex items-center space-x-3",children:[y.jsx(Rs,{date:new Date(n),variant:"added"}),i==="waiting"?y.jsx(Kd,{}):null,r?y.jsxs(y.Fragment,{children:[y.jsx(Bd,{date:new Date(r),baseDate:new Date(n)}),y.jsx(Rs,{date:new Date(r),variant:a?"retried":"processing"})]}):null,i==="active"?y.jsx(Kd,{}):null,o&&r?y.jsxs(y.Fragment,{children:[y.jsx(Bd,{date:new Date(o),baseDate:new Date(r)}),y.jsx(Rs,{date:new Date(o),variant:i==="failed"?"failed":"completed"})]}):null]})}}),ki.display({id:"options",header:"Options",cell:function(e){var t,n=e.row.original.opts;return y.jsxs("div",{className:"flex items-center space-x-2",children:[n.priority?y.jsx(uo,{icon:y.jsx(F2,{width:12,height:12}),label:n.priority}):null,n.attempts&&n.attempts>1?y.jsx(uo,{icon:y.jsx(jr,{width:12,height:12}),label:n.attempts}):null,n.lifo?y.jsx(uo,{icon:y.jsx(r5,{width:12,height:12}),label:"LIFO"}):null,n.delay?y.jsx(uo,{icon:y.jsx(K2,{width:12,height:12}),label:n.delay}):null,!((t=n.repeat)===null||t===void 0)&&t.count?y.jsx(uo,{icon:y.jsx(H2,{width:12,height:12}),label:n.repeat.count}):null]})}})],AC=function(e){var t=e.jobs,n=e.totalJobs,r=e.onBottomInView,o=e.isLoading,i=e.isFetchingNextPage,a=e.queueName,s=e.status,l=d.useState({}),u=l[0],h=l[1],c=M7({threshold:0,onChange:function(k){k&&r()}}).ref,p=v1({data:t,columns:jC,getCoreRowModel:m1(),state:{rowSelection:u},onRowSelectionChange:h}),f=t.length===0,g=t.length/(n||0)*100,m=d.useState(null),v=m[0],b=m[1],x=le.job.retry.useMutation().mutate,w=le.job.rerun.useMutation().mutate,$=le.job.bulkRemove.useMutation().mutate;return d.useEffect(function(){p.resetRowSelection()},[s]),y.jsxs("div",{children:[v?y.jsx(NC,{queueName:a,job:v,onDismiss:function(){return b(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:o?y.jsx(P1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(k,E){return y.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,576px,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:k.headers.map(function(R){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(E!==0?"pr-10":"pr-3"),children:R.isPlaceholder?null:aa(R.column.columnDef.header,R.getContext())},R.id)})},k.id)}),p.getRowModel().rows.map(function(k,E){return y.jsx(E1,{isLastRow:p.getRowModel().rows.length!==E+1,isSelected:k.getIsSelected(),onClick:function(){return b(k.original)},layoutVariant:"job",children:k.getVisibleCells().map(function(R,M){return y.jsx("div",{className:"flex h-full items-center ".concat(M!==0?"pr-10":"pr-3"),children:aa(R.column.columnDef.cell,R.getContext())},R.id)})},k.id)}),!o&&f?y.jsx("div",{className:"flex items-center justify-center py-10",children:y.jsx("p",{className:"text-slate-500 dark:text-slate-400",children:"No jobs found"})}):null]})}),!o&&f?null:y.jsx("div",{ref:c,className:"my-3 flex justify-center",children:y.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[y.jsxs("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:["You've viewed ",t.length," of ",n," jobs"]}),y.jsx(s3,{value:g,children:function(k){var E=k.percentage;return y.jsx(y.Fragment,{children:y.jsx("div",{style:{transform:"translateZ(0)"},className:"relative h-0.5 w-[144px] overflow-hidden rounded-sm bg-slate-200 dark:bg-slate-700",children:y.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-E,"%)")}})})})}}),i?y.jsx(eu,{className:"animate-spin text-slate-300 dark:text-slate-600"}):null]})}),p.getSelectedRowModel().rows.length>0?y.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:y.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[y.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[p.getSelectedRowModel().rows.length," selected"]}),s==="completed"||s==="failed"?y.jsx(Cn,{label:s==="failed"?"Retry":"Rerun",icon:y.jsx(jr,{}),size:"sm",onClick:function(){p.getSelectedRowModel().rows.forEach(function(k){s==="failed"?x({queueName:a,jobId:k.original.id}):w({queueName:a,jobId:k.original.id})}),p.resetRowSelection()}}):null,y.jsx(Cn,{label:"Delete",colorScheme:"red",icon:y.jsx(Gr,{}),size:"sm",onClick:function(){$({queueName:a,jobIds:p.getSelectedRowModel().rows.map(function(k){return k.original.id})}),p.resetRowSelection()}})]})}):null]})},Rs=function(e){var t=e.variant,n=e.date,r={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return y.jsx(Ru,{message:"".concat(r[t]," ").concat(S1(n)," ago"),children:y.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&y.jsx(C0,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900 dark:bg-cyan-950 dark:text-cyan-400"}),t==="processing"&&y.jsx(x2,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900 dark:bg-slate-800 dark:text-slate-300"}),t==="retried"&&y.jsx(jr,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900 dark:bg-amber-950 dark:text-amber-400"}),t==="completed"&&y.jsx(b0,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900 dark:bg-green-950 dark:text-green-400"}),t==="failed"&&y.jsx(y0,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900 dark:bg-red-950 dark:text-red-400"}),y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:$1(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Kd=function(){return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(al,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx(eu,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},Bd=function(e){var t=e.date,n=e.baseDate;return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(al,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:$7(t,n,{locale:{formatDistance:function(r,o){return r==="xSeconds"?"".concat(o,"s"):r==="xMinutes"?"".concat(o,"m"):r==="xHours"?"".concat(o,"h"):r==="xDays"?"".concat(o,"d"):r==="xMonths"?"".concat(o,"mo"):r==="xYears"?"".concat(o,"y"):""}}})}),y.jsx(al,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},KC=function(e){var t=e.title,n=e.description,r=e.action,o=e.children;return y.jsxs(n1,{children:[y.jsx(pu,{children:o}),y.jsx(Ba,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Aa,{role:"alertdialog",className:"fixed left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(i){var a=i.close;return y.jsxs(y.Fragment,{children:[y.jsx(Ka,{className:"mb-3 text-xl font-semibold text-slate-900 dark:text-slate-100",children:t}),y.jsx("p",{className:"mb-6 text-slate-600 dark:text-slate-400",children:n}),y.jsxs("div",{className:"flex justify-end space-x-3",children:[y.jsx(Cn,{onClick:a,label:"Cancel"}),r]})]})}})})]})};function BC(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const HC=e=>{switch(e){case"success":return UC;case"info":return WC;case"warning":return qC;case"error":return GC;default:return null}},VC=Array(12).fill(0),zC=({visible:e,className:t})=>d.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},d.createElement("div",{className:"sonner-spinner"},VC.map((n,r)=>d.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),UC=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),qC=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),WC=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),GC=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),QC=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},d.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),d.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),YC=()=>{const[e,t]=d.useState(document.hidden);return d.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let jl=1;class XC{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:jl++,a=this.toasts.find(l=>l.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,a;const s=o.then(async u=>{if(a=["resolve",u],d.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(JC(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...g})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...g})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:p,...g})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){i=!1;const h=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof h=="object"&&!d.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:c,...f})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,h)=>s.then(()=>a[0]==="reject"?h(a[1]):u(a[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||jl++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new XC,ZC=(e,t)=>{const n=(t==null?void 0:t.id)||jl++;return qe.addToast({title:e,...t,id:n}),n},JC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",e$=ZC,t$=()=>qe.toasts,n$=()=>qe.getActiveToasts(),pr=Object.assign(e$,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:t$,getToasts:n$});BC("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Mi(e){return e.label!==void 0}const r$=3,o$="24px",i$="16px",Hd=4e3,a$=356,s$=14,l$=45,u$=200;function Mt(...e){return e.filter(Boolean).join(" ")}function c$(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const d$=e=>{var t,n,r,o,i,a,s,l,u;const{invert:h,toast:c,unstyled:p,interacting:f,setHeights:g,visibleToasts:m,heights:v,index:b,toasts:x,expanded:w,removeToast:$,defaultRichColors:k,closeButton:E,style:R,cancelButtonStyle:M,actionButtonStyle:_,className:D="",descriptionClassName:P="",duration:I,position:N,gap:F,expandByDefault:j,classNames:O,icons:T,closeButtonAriaLabel:A="Close toast"}=e,[K,L]=d.useState(null),[H,z]=d.useState(null),[V,W]=d.useState(!1),[q,ne]=d.useState(!1),[pe,ee]=d.useState(!1),[Be,Et]=d.useState(!1),[Pt,Y]=d.useState(!1),[mt,Qe]=d.useState(0),[Rn,ii]=d.useState(0),ie=d.useRef(c.duration||I||Hd),Xt=d.useRef(null),Ye=d.useRef(null),to=b===0,Cg=b+1<=m,Xe=c.type,rr=c.dismissible!==!1,$g=c.className||"",Sg=c.descriptionClassName||"",ai=d.useMemo(()=>v.findIndex(te=>te.toastId===c.id)||0,[v,c.id]),Eg=d.useMemo(()=>{var te;return(te=c.closeButton)!=null?te:E},[c.closeButton,E]),Du=d.useMemo(()=>c.duration||I||Hd,[c.duration,I]),qa=d.useRef(0),or=d.useRef(0),_u=d.useRef(0),ir=d.useRef(null),[Pg,Rg]=N.split("-"),Fu=d.useMemo(()=>v.reduce((te,Ee,_e)=>_e>=ai?te:te+Ee.height,0),[v,ai]),Lu=YC(),kg=c.invert||h,Wa=Xe==="loading";or.current=d.useMemo(()=>ai*F+Fu,[ai,Fu]),d.useEffect(()=>{ie.current=Du},[Du]),d.useEffect(()=>{W(!0)},[]),d.useEffect(()=>{const te=Ye.current;if(te){const Ee=te.getBoundingClientRect().height;return ii(Ee),g(_e=>[{toastId:c.id,height:Ee,position:c.position},..._e]),()=>g(_e=>_e.filter(Ze=>Ze.toastId!==c.id))}},[g,c.id]),d.useLayoutEffect(()=>{if(!V)return;const te=Ye.current,Ee=te.style.height;te.style.height="auto";const _e=te.getBoundingClientRect().height;te.style.height=Ee,ii(_e),g(Ze=>Ze.find(Te=>Te.toastId===c.id)?Ze.map(Te=>Te.toastId===c.id?{...Te,height:_e}:Te):[{toastId:c.id,height:_e,position:c.position},...Ze])},[V,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Zt=d.useCallback(()=>{ne(!0),Qe(or.current),g(te=>te.filter(Ee=>Ee.toastId!==c.id)),setTimeout(()=>{$(c)},u$)},[c,$,g,or]);d.useEffect(()=>{if(c.promise&&Xe==="loading"||c.duration===1/0||c.type==="loading")return;let te;return w||f||Lu?(()=>{if(_u.current<qa.current){const Ze=new Date().getTime()-qa.current;ie.current=ie.current-Ze}_u.current=new Date().getTime()})():(()=>{ie.current!==1/0&&(qa.current=new Date().getTime(),te=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Zt()},ie.current))})(),()=>clearTimeout(te)},[w,f,c,Xe,Lu,Zt]),d.useEffect(()=>{c.delete&&(Zt(),c.onDismiss==null||c.onDismiss.call(c,c))},[Zt,c.delete]);function Mg(){var te;if(T!=null&&T.loading){var Ee;return d.createElement("div",{className:Mt(O==null?void 0:O.loader,c==null||(Ee=c.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":Xe==="loading"},T.loading)}return d.createElement(zC,{className:Mt(O==null?void 0:O.loader,c==null||(te=c.classNames)==null?void 0:te.loader),visible:Xe==="loading"})}const Og=c.icon||(T==null?void 0:T[Xe])||HC(Xe);var Iu,Nu;return d.createElement("li",{tabIndex:0,ref:Ye,className:Mt(D,$g,O==null?void 0:O.toast,c==null||(t=c.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Xe],c==null||(n=c.classNames)==null?void 0:n[Xe]),"data-sonner-toast":"","data-rich-colors":(Iu=c.richColors)!=null?Iu:k,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":V,"data-promise":!!c.promise,"data-swiped":Pt,"data-removed":q,"data-visible":Cg,"data-y-position":Pg,"data-x-position":Rg,"data-index":b,"data-front":to,"data-swiping":pe,"data-dismissible":rr,"data-type":Xe,"data-invert":kg,"data-swipe-out":Be,"data-swipe-direction":H,"data-expanded":!!(w||j&&V),"data-testid":c.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${q?mt:or.current}px`,"--initial-height":j?"auto":`${Rn}px`,...R,...c.style},onDragEnd:()=>{ee(!1),L(null),ir.current=null},onPointerDown:te=>{te.button!==2&&(Wa||!rr||(Xt.current=new Date,Qe(or.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(ee(!0),ir.current={x:te.clientX,y:te.clientY})))},onPointerUp:()=>{var te,Ee,_e;if(Be||!rr)return;ir.current=null;const Ze=Number(((te=Ye.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),si=Number(((Ee=Ye.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Te=new Date().getTime()-((_e=Xt.current)==null?void 0:_e.getTime()),st=K==="x"?Ze:si,li=Math.abs(st)/Te;if(Math.abs(st)>=l$||li>.11){Qe(or.current),c.onDismiss==null||c.onDismiss.call(c,c),z(K==="x"?Ze>0?"right":"left":si>0?"down":"up"),Zt(),Et(!0);return}else{var vt,bt;(vt=Ye.current)==null||vt.style.setProperty("--swipe-amount-x","0px"),(bt=Ye.current)==null||bt.style.setProperty("--swipe-amount-y","0px")}Y(!1),ee(!1),L(null)},onPointerMove:te=>{var Ee,_e,Ze;if(!ir.current||!rr||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;const Te=te.clientY-ir.current.y,st=te.clientX-ir.current.x;var li;const vt=(li=e.swipeDirections)!=null?li:c$(N);!K&&(Math.abs(st)>1||Math.abs(Te)>1)&&L(Math.abs(st)>Math.abs(Te)?"x":"y");let bt={x:0,y:0};const ju=kn=>1/(1.5+Math.abs(kn)/20);if(K==="y"){if(vt.includes("top")||vt.includes("bottom"))if(vt.includes("top")&&Te<0||vt.includes("bottom")&&Te>0)bt.y=Te;else{const kn=Te*ju(Te);bt.y=Math.abs(kn)<Math.abs(Te)?kn:Te}}else if(K==="x"&&(vt.includes("left")||vt.includes("right")))if(vt.includes("left")&&st<0||vt.includes("right")&&st>0)bt.x=st;else{const kn=st*ju(st);bt.x=Math.abs(kn)<Math.abs(st)?kn:st}(Math.abs(bt.x)>0||Math.abs(bt.y)>0)&&Y(!0),(_e=Ye.current)==null||_e.style.setProperty("--swipe-amount-x",`${bt.x}px`),(Ze=Ye.current)==null||Ze.style.setProperty("--swipe-amount-y",`${bt.y}px`)}},Eg&&!c.jsx&&Xe!=="loading"?d.createElement("button",{"aria-label":A,"data-disabled":Wa,"data-close-button":!0,onClick:Wa||!rr?()=>{}:()=>{Zt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Mt(O==null?void 0:O.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Nu=T==null?void 0:T.close)!=null?Nu:QC):null,(Xe||c.icon||c.promise)&&c.icon!==null&&((T==null?void 0:T[Xe])!==null||c.icon)?d.createElement("div",{"data-icon":"",className:Mt(O==null?void 0:O.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Mg():null,c.type!=="loading"?Og:null):null,d.createElement("div",{"data-content":"",className:Mt(O==null?void 0:O.content,c==null||(i=c.classNames)==null?void 0:i.content)},d.createElement("div",{"data-title":"",className:Mt(O==null?void 0:O.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?d.createElement("div",{"data-description":"",className:Mt(P,Sg,O==null?void 0:O.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),d.isValidElement(c.cancel)?c.cancel:c.cancel&&Mi(c.cancel)?d.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||M,onClick:te=>{Mi(c.cancel)&&rr&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,te),Zt())},className:Mt(O==null?void 0:O.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,d.isValidElement(c.action)?c.action:c.action&&Mi(c.action)?d.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||_,onClick:te=>{Mi(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,te),!te.defaultPrevented&&Zt())},className:Mt(O==null?void 0:O.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Vd(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function f$(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?i$:o$;function l(u){["top","right","bottom","left"].forEach(h=>{n[`${a}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const h$=d.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:h,mobileOffset:c,theme:p="light",richColors:f,duration:g,style:m,visibleToasts:v=r$,toastOptions:b,dir:x=Vd(),gap:w=s$,icons:$,containerAriaLabel:k="Notifications"}=t,[E,R]=d.useState([]),M=d.useMemo(()=>r?E.filter(V=>V.toasterId===r):E.filter(V=>!V.toasterId),[E,r]),_=d.useMemo(()=>Array.from(new Set([i].concat(M.filter(V=>V.position).map(V=>V.position)))),[M,i]),[D,P]=d.useState([]),[I,N]=d.useState(!1),[F,j]=d.useState(!1),[O,T]=d.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=d.useRef(null),K=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=d.useRef(null),H=d.useRef(!1),z=d.useCallback(V=>{R(W=>{var q;return(q=W.find(ne=>ne.id===V.id))!=null&&q.delete||qe.dismiss(V.id),W.filter(({id:ne})=>ne!==V.id)})},[]);return d.useEffect(()=>qe.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{R(W=>W.map(q=>q.id===V.id?{...q,delete:!0}:q))});return}setTimeout(()=>{Ur.flushSync(()=>{R(W=>{const q=W.findIndex(ne=>ne.id===V.id);return q!==-1?[...W.slice(0,q),{...W[q],...V},...W.slice(q+1)]:[V,...W]})})})}),[E]),d.useEffect(()=>{if(p!=="system"){T(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:W})=>{T(W?"dark":"light")})}catch{V.addListener(({matches:q})=>{try{T(q?"dark":"light")}catch(ne){console.error(ne)}})}},[p]),d.useEffect(()=>{E.length<=1&&N(!1)},[E]),d.useEffect(()=>{const V=W=>{var q;if(a.every(ee=>W[ee]||W.code===ee)){var pe;N(!0),(pe=A.current)==null||pe.focus()}W.code==="Escape"&&(document.activeElement===A.current||(q=A.current)!=null&&q.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[a]),d.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,H.current=!1)}},[A.current]),d.createElement("section",{ref:n,"aria-label":`${k} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((V,W)=>{var q;const[ne,pe]=V.split("-");return M.length?d.createElement("ol",{key:V,dir:x==="auto"?Vd():x,tabIndex:-1,ref:A,className:u,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ne,"data-x-position":pe,style:{"--front-toast-height":`${((q=D[0])==null?void 0:q.height)||0}px`,"--width":`${a$}px`,"--gap":`${w}px`,...m,...f$(h,c)},onBlur:ee=>{H.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(H.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||H.current||(H.current=!0,L.current=ee.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{F||N(!1)},onDragEnd:()=>N(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},M.filter(ee=>!ee.position&&W===0||ee.position===V).map((ee,Be)=>{var Et,Pt;return d.createElement(d$,{key:ee.id,icons:$,index:Be,toast:ee,defaultRichColors:f,duration:(Et=b==null?void 0:b.duration)!=null?Et:g,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:o,visibleToasts:v,closeButton:(Pt=b==null?void 0:b.closeButton)!=null?Pt:l,interacting:F,position:V,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,closeButtonAriaLabel:b==null?void 0:b.closeButtonAriaLabel,removeToast:z,toasts:M.filter(Y=>Y.position==ee.position),heights:D.filter(Y=>Y.position==ee.position),setHeights:P,expandByDefault:s,gap:w,expanded:I,swipeDirections:t.swipeDirections})})):null}))});var p$=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,o=e.queue,i=le.queue.clean.useMutation({onSuccess:function(){pr.success("All ".concat(r," jobs have been removed"))}}),a=i.mutate,s=i.status,l=Ke(Ke(Ke(Ke(Ke([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],o!=null&&o.supports.priorities?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),o!=null&&o.supports.flows?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"}],!1),o!=null&&o.supports.pause?[{name:"Paused",status:"paused"}]:[],!0);return y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"flex items-center space-x-3",children:l.map(function(u){var h=u.status===r;return y.jsxs(ka,{to:"?status=".concat(u.status),className:Ar("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out",{"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800":!h,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":h&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":h&&u.status==="failed","bg-cyan-50 text-cyan-900 dark:bg-cyan-900 dark:text-cyan-50":h&&u.status==="active","bg-purple-50 text-purple-900 dark:bg-purple-900 dark:text-purple-50":h&&u.status==="prioritized","bg-amber-50 text-amber-900 dark:bg-amber-900 dark:text-amber-50":h&&u.status==="waiting","bg-orange-50 text-orange-900 dark:bg-orange-900 dark:text-orange-50":h&&u.status==="waiting-children","bg-indigo-50 text-indigo-900 dark:bg-indigo-900 dark:text-indigo-50":h&&u.status==="delayed","bg-stone-50 text-stone-900 dark:bg-stone-900 dark:text-stone-50":h&&u.status==="paused"}),children:[y.jsx("span",{children:u.name}),o!=null&&o.counts[u.status]?y.jsx("span",{className:Ar("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50 dark:bg-slate-600 dark:text-slate-100":!h,"bg-green-600 text-green-50 dark:bg-green-700 dark:text-green-100":h&&u.status==="completed","bg-red-600 text-red-50 dark:bg-red-700 dark:text-red-100":h&&u.status==="failed","bg-cyan-600 text-cyan-50 dark:bg-cyan-700 dark:text-cyan-100":h&&u.status==="active","bg-purple-600 text-purple-50 dark:bg-purple-700 dark:text-purple-100":h&&u.status==="prioritized","bg-amber-600 text-amber-50 dark:bg-amber-700 dark:text-amber-100":h&&u.status==="waiting","bg-orange-600 text-orange-50 dark:bg-orange-700 dark:text-orange-100":h&&u.status==="waiting-children","bg-indigo-600 text-indigo-50 dark:bg-indigo-700 dark:text-indigo-100":h&&u.status==="delayed","bg-stone-600 text-stone-50 dark:bg-stone-700 dark:text-stone-100":h&&u.status==="paused"}),children:o.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"&&(o!=null&&o.supports.clean)?y.jsx(KC,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(r," jobs from the queue."),action:y.jsx(Cn,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return a({queueName:n,status:r})}}),children:y.jsx(Cn,{colorScheme:"yellow",icon:y.jsx(Gr,{}),label:"Clean all",size:"sm",isLoading:s==="pending"})}):null]})};function zd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g$(e){if(Array.isArray(e))return e}function m$(e,t,n){return(t=$$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(h){u=!0,o=h}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function b$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ud(Object(n),!0).forEach(function(r){
|
|
62
|
+
`)}function V6(e){return function(){return e}}var Pd=function(){try{var e=ng(Object,"defineProperty");return e({},"",{}),e}catch{}}(),z6=Pd?function(e,t){return Pd(e,"toString",{configurable:!0,enumerable:!1,value:V6(t),writable:!0})}:tg,U6=ug(z6);function q6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function W6(e,t,n,r){for(var o=e.length,i=n+-1;++i<o;)if(t(e[i],i,e))return i;return-1}function G6(e){return e!==e}function Q6(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function Y6(e,t,n){return t===t?Q6(e,t,n):W6(e,G6,n)}function X6(e,t){var n=e==null?0:e.length;return!!n&&Y6(e,t,0)>-1}var Z6=1,J6=2,ew=8,tw=16,nw=32,rw=64,ow=128,iw=256,aw=512,sw=[["ary",ow],["bind",Z6],["bindKey",J6],["curry",ew],["curryRight",tw],["flip",aw],["partial",nw],["partialRight",rw],["rearg",iw]];function lw(e,t){return q6(sw,function(n){var r="_."+n[0];t&n[1]&&!X6(e,r)&&e.push(r)}),e.sort()}function dg(e,t,n){var r=t+"";return U6(e,H6(r,lw(K6(r),n)))}var uw=4,cw=8,Rd=32,kd=64;function fg(e,t,n,r,o,i,a,s,l,u){var h=t&cw,c=h?a:void 0,p=h?void 0:a,f=h?i:void 0,g=h?void 0:i;t|=h?Rd:kd,t&=~(h?kd:Rd),t&uw||(t&=-4);var m=[e,t,o,f,c,g,p,s,l,u],v=n.apply(void 0,m);return L6(e)&&cg(v,m),v.placeholder=r,dg(v,e,t)}function hg(e){var t=e;return t.placeholder}var dw=9007199254740991,fw=/^(?:0|[1-9]\d*)$/;function hw(e,t){var n=typeof e;return t=t??dw,!!t&&(n=="number"||n!="symbol"&&fw.test(e))&&e>-1&&e%1==0&&e<t}var pw=Math.min;function gw(e,t){for(var n=e.length,r=pw(t.length,n),o=lg(e);r--;){var i=t[r];e[r]=hw(i,n)?o[i]:void 0}return e}var Md="__lodash_placeholder__";function ma(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===Md)&&(e[n]=Md,i[o++]=n)}return i}var mw=1,vw=2,bw=8,yw=16,xw=128,ww=512;function Ou(e,t,n,r,o,i,a,s,l,u){var h=t&xw,c=t&mw,p=t&vw,f=t&(bw|yw),g=t&ww,m=p?void 0:jo(e);function v(){for(var b=arguments.length,x=Array(b),w=b;w--;)x[w]=arguments[w];if(f)var S=hg(v),k=E6(x,S);if(r&&(x=ig(x,r,o,f)),i&&(x=ag(x,i,a,f)),b-=k,f&&b<u){var P=ma(x,S);return fg(e,t,Ou,v.placeholder,n,x,P,s,l,u-b)}var R=c?n:this,M=p?R[e]:e;return b=x.length,s?x=gw(x,s):g&&b>1&&x.reverse(),h&&l<b&&(x.length=l),this&&this!==Zn&&this instanceof v&&(M=m||jo(M)),M.apply(R,x)}return v}function Cw(e,t,n){var r=jo(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=hg(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:ma(a,l);if(i-=u.length,i<n)return fg(e,t,Ou,o.placeholder,void 0,a,u,void 0,void 0,n-i);var h=this&&this!==Zn&&this instanceof o?r:e;return og(h,this,a)}return o}var $w=1;function Sw(e,t,n,r){var o=t&$w,i=jo(e);function a(){for(var s=-1,l=arguments.length,u=-1,h=r.length,c=Array(h+l),p=this&&this!==Zn&&this instanceof a?i:e;++u<h;)c[u]=r[u];for(;l--;)c[u++]=arguments[++s];return og(p,o?n:this,c)}return a}var Od="__lodash_placeholder__",Ps=1,Ew=2,Pw=4,Td=8,lo=128,Dd=256,Rw=Math.min;function kw(e,t){var n=e[1],r=t[1],o=n|r,i=o<(Ps|Ew|lo),a=r==lo&&n==Td||r==lo&&n==Dd&&e[7].length<=t[8]||r==(lo|Dd)&&t[7].length<=t[8]&&n==Td;if(!(i||a))return e;r&Ps&&(e[2]=t[2],o|=n&Ps?0:Pw);var s=t[3];if(s){var l=e[3];e[3]=l?ig(l,s,t[4]):s,e[4]=l?ma(e[3],Od):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?ag(l,s,t[6]):s,e[6]=l?ma(e[5],Od):t[6]),s=t[7],s&&(e[7]=s),r&lo&&(e[8]=e[8]==null?t[8]:Rw(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var Mw="Expected a function",_d=1,Ow=2,Ld=8,Fd=16,Id=32,Tw=64,jd=Math.max;function Dw(e,t,n,r,o,i,a,s){var l=t&Ow;if(!l&&typeof e!="function")throw new TypeError(Mw);var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=a===void 0?a:jd(wd(a),0),s=s===void 0?s:wd(s),u-=o?o.length:0,t&Tw){var h=r,c=o;r=o=void 0}var p=l?void 0:sg(e),f=[e,t,n,r,o,h,c,i,a,s];if(p&&kw(f,p),e=f[0],t=f[1],n=f[2],r=f[3],o=f[4],s=f[9]=f[9]===void 0?l?0:e.length:jd(f[9]-u,0),!s&&t&(Ld|Fd)&&(t&=-25),!t||t==_d)var g=C6(e,t,n);else t==Ld||t==Fd?g=Cw(e,t,s):(t==Id||t==(_d|Id))&&!o.length?g=Sw(e,t,n,r):g=Ou.apply(void 0,f);var m=p?rg:cg;return dg(m(g,f),e,t)}var _w=8;function va(e,t,n){t=n?void 0:t;var r=Dw(e,_w,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=va.placeholder,r}va.placeholder={};function Lw(e){const t=e[0],n=e[1],r=e[2];let o,i,a;return o=t*1+n*0+r*1.13983,i=t*1+n*-.39465+r*-.5806,a=t*1+n*2.02311+r*0,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]}function Fw(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=t*.299+n*.587+r*.114,i=t*-.14713+n*-.28886+r*.436,a=t*.615+n*-.51499+r*-.10001;return[o,i,a]}const Iw={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},jw={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},Nw={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},Aw={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},Kw={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},Bw={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},Hw={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},Vw={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},zw={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},Uw={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},qw={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},Ww={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},Gw={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},Qw={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},Yw={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Xw={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},Zw={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},Jw={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},eC={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},tC={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},nC={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},rC={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},oC={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},iC={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},aC={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},sC={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},lC={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},uC={scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},cC={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},dC={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},fC={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},hC={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},pC={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},gC={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},mC={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},vC={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},bC={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},yC={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},pg={threezerotwofour:Iw,apathy:jw,ashes:Nw,atelierDune:Aw,atelierForest:Kw,atelierHeath:Bw,atelierLakeside:Hw,atelierSeaside:Vw,bespin:zw,brewer:Uw,bright:qw,chalk:Ww,codeschool:Gw,colors:Qw,default:Yw,eighties:Xw,embers:Zw,flat:Jw,google:eC,grayscale:tC,greenscreen:nC,harmonic:rC,hopscotch:oC,isotope:iC,marrakesh:aC,mocha:sC,monokai:lC,nicinabox:uC,ocean:cC,paraiso:dC,pop:fC,railscasts:hC,shapeshifter:pC,solarized:gC,summerfruit:mC,tomorrow:vC,tube:bC,twilight:yC},gg=pg.default,Nd=Object.keys(gg),xC=e=>e<.25?1:e<.5?.9-e:1.1-e,wC=e=>{const t=vd(e),[n,r,o]=Fw(t.array()),i=[xC(n),r,o],a=Lw(i);return vd.rgb(a).hex()},ar=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),CC=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,r=typeof t;switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return ar({className:e,style:t});case"function":return(o,...i)=>ar({className:e})(t(o,...i))}break;case"object":switch(r){case"string":return ar({className:t,style:e});case"object":return{...t,...e};case"function":return(o,...i)=>ar({style:e})(t(o,...i))}break;case"function":switch(r){case"string":return(o,...i)=>e(ar(o)({className:t}),...i);case"object":return(o,...i)=>e(ar(o)({style:t}),...i);case"function":return(o,...i)=>e(t(o,...i),...i)}}},$C=(e,t)=>{const n=Object.keys(t);for(const r in e)n.indexOf(r)===-1&&n.push(r);return n.reduce((r,o)=>(r[o]=CC(e[o],t[o]),r),{})},SC=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const o=t.map(i=>e[i]).filter(Boolean).reduce((i,a)=>(typeof a=="string"?i.className=[i.className,a].filter(Boolean).join(" "):typeof a=="object"?i.style={...i.style,...a}:typeof a=="function"&&(i={...i,...a(i,...n)}),i),{className:"",style:{}});return o.className||delete o.className,Object.keys(o.style).length===0&&delete o.style,o},Nl=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?wC(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),EC=va((e,t={},n={},...r)=>{const{defaultBase16:o=gg,base16Themes:i=null}=t,a=PC(n,i);a&&(n={...a,...n});const s=Nd.reduce((c,p)=>(c[p]=n[p]||o[p],c),{}),l=Object.keys(n).reduce((c,p)=>(Nd.indexOf(p)===-1&&(c[p]=n[p]),c),{}),u=e(s),h=$C(l,u);return va(SC,2)(h,...r)},3),mg=e=>!!e.extend,PC=(e,t)=>{if(e&&mg(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=pg[n],r==="inverted"&&(e=Nl(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},RC=e=>typeof e=="string"?`${e}:inverted`:e&&mg(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:Nl(e.extend)}:e&&Nl(e);function kC(e){const t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&typeof e[Symbol.iterator]=="function"?"Iterable":t==="Custom"&&e.constructor!==Object&&e instanceof Object?"Object":t}function vg({styling:e,arrowStyle:t="single",expanded:n,nodeType:r,onClick:o}){return d.createElement("div",{...e("arrowContainer",t),onClick:o},d.createElement("div",{...e(["arrow","arrowSign"],r,n,t)},"▶",t==="double"&&d.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function MC(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function OC(e){return typeof e.set=="function"}function TC(e,t,n,r=0,o=1/0){let i;if(e==="Object"){let a=Object.getOwnPropertyNames(t);n&&a.sort(n===!0?void 0:n),a=a.slice(r,o+1),i={entries:a.map(s=>({key:s,value:t[s]}))}}else if(e==="Array")i={entries:t.slice(r,o+1).map((a,s)=>({key:s+r,value:a}))};else{let a=0;const s=[];let l=!0;const u=OC(t);for(const h of t){if(a>o){l=!1;break}r<=a&&(u&&Array.isArray(h)?typeof h[0]=="string"||typeof h[0]=="number"?s.push({key:h[0],value:h[1]}):s.push({key:`[entry ${a}]`,value:{"[key]":h[0],"[value]":h[1]}}):s.push({key:a,value:h})),a++}i={hasMore:!l,entries:s}}return i}function Rs(e,t,n){const r=[];for(;t-e>n*n;)n=n*n;for(let o=e;o<=t;o+=n)r.push({from:o,to:Math.min(t,o+n-1)});return r}function DC(e,t,n,r,o=0,i=1/0){const a=TC.bind(null,e,t,n);if(!r)return a().entries;const s=i<1/0,l=Math.min(i-o,MC(e,t));if(e!=="Iterable"){if(l<=r||r<7)return a(o,i).entries}else if(l<=r&&!s)return a(o,i).entries;let u;if(e==="Iterable"){const{hasMore:h,entries:c}=a(o,o+r-1);u=h?[...c,...Rs(o+r,o+2*r-1,r)]:c}else u=s?Rs(o,i,r):[...a(0,r-5).entries,...Rs(r-4,l-5,r),...a(l-4,l-1).entries];return u}function _C(e){const{styling:t,from:n,to:r,renderChildNodes:o,nodeType:i}=e,[a,s]=d.useState(!1),l=d.useCallback(()=>{s(!a)},[a]);return a?d.createElement("div",{...t("itemRange",a)},o(e,n,r)):d.createElement("div",{...t("itemRange",a),onClick:l},d.createElement(vg,{nodeType:i,styling:t,expanded:!1,onClick:l,arrowStyle:"double"}),`${n} ... ${r}`)}function LC(e){return e.to!==void 0}function bg(e,t,n){const{nodeType:r,data:o,collectionLimit:i,circularCache:a,keyPath:s,postprocessValue:l,sortObjectKeys:u}=e,h=[];return DC(r,o,u,i,t,n).forEach(c=>{if(LC(c))h.push(d.createElement(_C,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:bg}));else{const{key:p,value:f}=c,g=a.includes(f);h.push(d.createElement(yg,{...e,postprocessValue:l,collectionLimit:i,key:`Node--${p}`,keyPath:[p,...s],value:l(f),circularCache:[...a,f],isCircular:g,hideRoot:!1}))}}),h}function Tu(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:o,expandable:i,getItemString:a,hideRoot:s,isCircular:l,keyPath:u,labelRenderer:h,level:c=0,nodeType:p,nodeTypeIndicator:f,shouldExpandNodeInitially:g,styling:m}=e,[v,b]=d.useState(l?!1:g(u,o,c)),x=d.useCallback(()=>{i&&b(!v)},[i,v]),w=v||s&&c===0?bg({...e,circularCache:t,level:c+1}):null,S=d.createElement("span",{...m("nestedNodeItemType",v)},f),k=a(p,o,S,r(o,n),u),P=[u,p,v,i];return s?d.createElement("li",{...m("rootNode",...P)},d.createElement("ul",{...m("rootNodeChildren",...P)},w)):d.createElement("li",{...m("nestedNode",...P)},i&&d.createElement(vg,{styling:m,nodeType:p,expanded:v,onClick:x}),d.createElement("label",{...m(["label","nestedNodeLabel"],...P),onClick:x},h(...P)),d.createElement("span",{...m("nestedNodeItemString",...P),onClick:x},k),d.createElement("ul",{...m("nestedNodeChildren",...P)},w))}function FC(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function IC({data:e,...t}){return d.createElement(Tu,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:FC,expandable:Object.getOwnPropertyNames(e).length>0})}function jC(e){return`${e.length} ${e.length!==1?"items":"item"}`}function NC({data:e,...t}){return d.createElement(Tu,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:jC,expandable:e.length>0})}function AC(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const o of e){if(t&&n+1>t){r=!0;break}n+=1}return`${r?">":""}${n} ${n!==1?"entries":"entry"}`}function KC(e){return d.createElement(Tu,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:AC,expandable:!0})}function Ft({nodeType:e,styling:t,labelRenderer:n,keyPath:r,valueRenderer:o,value:i,valueGetter:a=s=>s}){return d.createElement("li",{...t("value",e,r)},d.createElement("label",{...t(["label","valueLabel"],e,r)},n(r,e,!1,!1)),d.createElement("span",{...t("valueText",e,r)},o(a(i),i,...r)))}function yg({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:o,valueRenderer:i,isCustomNode:a,...s}){const l=a(o)?"Custom":kC(o),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:l,styling:r,value:o,valueRenderer:i},h={...s,...u,data:o,isCustomNode:a};switch(l){case"Object":case"Error":case"WeakMap":case"WeakSet":return d.createElement(IC,{...h});case"Array":return d.createElement(NC,{...h});case"Iterable":case"Map":case"Set":return d.createElement(KC,{...h});case"String":return d.createElement(Ft,{...u,valueGetter:c=>`"${c}"`});case"Number":return d.createElement(Ft,{...u});case"Boolean":return d.createElement(Ft,{...u,valueGetter:c=>c?"true":"false"});case"Date":return d.createElement(Ft,{...u,valueGetter:c=>c.toISOString()});case"Null":return d.createElement(Ft,{...u,valueGetter:()=>"null"});case"Undefined":return d.createElement(Ft,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return d.createElement(Ft,{...u,valueGetter:c=>c.toString()});case"Custom":return d.createElement(Ft,{...u});default:return d.createElement(Ft,{...u,valueGetter:()=>`<${l}>`})}}const BC={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},HC=e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),VC=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),zC=e=>{const t=HC(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:n},r,o)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:o.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:n},r)=>({style:{...n,color:VC(t)[r]}}),itemRange:(n,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},r,o)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:o?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:o?"rotateZ(90deg)":"rotateZ(0deg)",transform:o?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},r)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:r==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},r,o,i,a)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:r.length>1?"0.875em":0,paddingLeft:a?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},r,o,i,a)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:a?"inherit":"text",MozUserSelect:a?"inherit":"text",cursor:a?"pointer":"default"}}),nestedNodeItemString:({style:n},r,o,i)=>({style:{...n,paddingLeft:"0.5em",cursor:"default",color:i?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:n},r,o)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:o?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},UC=EC(zC,{defaultBase16:BC}),Ad=e=>e,qC=(e,t,n)=>n===0,WC=(e,t,n,r)=>d.createElement("span",null,n," ",r),GC=([e])=>d.createElement("span",null,e,":"),QC=()=>!1;function Co({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:o=GC,valueRenderer:i=Ad,shouldExpandNodeInitially:a=qC,hideRoot:s=!1,getItemString:l=WC,postprocessValue:u=Ad,isCustomNode:h=QC,collectionLimit:c=50,sortObjectKeys:p=!1}){const f=d.useMemo(()=>UC(n?RC(t):t),[t,n]);return d.createElement("ul",{...f("tree")},d.createElement(yg,{keyPath:s?[]:r,value:u(e),isCustomNode:h,styling:f,labelRenderer:o,valueRenderer:i,shouldExpandNodeInitially:a,hideRoot:s,getItemString:l,postprocessValue:u,collectionLimit:c,sortObjectKeys:p}))}var Va=function(e){var t=e.actions;return y.jsxs(f3,{children:[y.jsx(pu,{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 radix-state-open:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700 dark:radix-state-open:bg-slate-700","aria-label":"Action menu",children:y.jsx(q2,{width:18,height:18})}),y.jsx(u3,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-200 bg-white/95 p-1 shadow-lg backdrop-blur-md dark:border-slate-700 dark:bg-slate-800/95",offset:5,children:y.jsx(g3,{children:t.map(function(n){return y.jsxs(y3,{className:"flex cursor-default items-center space-x-1.5 rounded-md py-1.5 pl-1.5 pr-8 text-sm font-medium text-slate-900 outline-none transition duration-150 ease-in-out focus:bg-slate-100 dark:text-slate-100 dark:focus:bg-slate-700",onAction:n.onSelect,children:[n.icon,y.jsx("span",{children:n.label})]},n.label)})})})]})},YC=function(e){var t=e.job,n=e.queueName,r=e.queue,o=e.onRemove,i=ue.job.retry.useMutation(),a=i.mutate,s=i.isSuccess,l=ue.job.discard.useMutation(),u=l.mutate,h=l.isSuccess,c=ue.job.rerun.useMutation(),p=c.mutate,f=c.isSuccess,g=ue.job.remove.useMutation(),m=g.mutate,v=g.isSuccess;d.useEffect(function(){(s||h||f||v)&&(o==null||o())},[s,h,f,v,o]);var b={queueName:n,jobId:t.id},x=(r==null?void 0:r.supports.retry)!==!1,w=Be(Be(Be([],t.failedReason&&x?[{label:"Retry",onSelect:function(){a(b)},icon:y.jsx(Lr,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){p(b)},icon:y.jsx(Lr,{})}]:[{label:"Discard",onSelect:function(){u(b)},icon:y.jsx(Z2,{})}],!0),[{label:"Remove",onSelect:function(){m(b)},icon:y.jsx(zr,{})}],!1);return y.jsx(Va,{actions:w})},xn=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,r=e.variant,o=r===void 0?"outline":r,i=e.size,a=i===void 0?"md":i,s=e.icon,l=e.label,u=e.isLoading,h=e.onClick,c=e.disabled;return y.jsxs("button",{onClick:h,disabled:u||c,className:Fr("flex items-center space-x-1 rounded-md border text-sm font-medium transition-colors duration-150",{"py-0.5":a==="sm","py-1":a==="md","py-1.5":a==="lg"},[a==="sm"&&s?"pl-1.5 pr-2.5":"px-2.5",a==="md"&&s?"pl-2 pr-3":"px-3",a==="lg"&&s?"pl-2.5 pr-4":"px-4"],{"cursor-not-allowed opacity-50":u||c,"border-yellow-900 text-yellow-900 hover:bg-yellow-50 focus:bg-yellow-50 dark:border-yellow-400 dark:text-yellow-400 dark:hover:bg-yellow-950/30 dark:focus:bg-yellow-950/30":n==="yellow"&&o==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50 dark:border-slate-400 dark:text-slate-300 dark:hover:bg-slate-800 dark:focus:bg-slate-800":n==="slate"&&o==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50 dark:border-red-400 dark:text-red-400 dark:hover:bg-red-950/30 dark:focus:bg-red-950/30":n==="red"&&o==="outline","border-yellow-800 bg-yellow-800 text-yellow-50 hover:border-yellow-900 hover:bg-yellow-900 focus:border-yellow-900 focus:bg-yellow-900 dark:border-yellow-600 dark:bg-yellow-600 dark:hover:border-yellow-500 dark:hover:bg-yellow-500 dark:focus:border-yellow-500 dark:focus:bg-yellow-500":n==="yellow"&&o==="filled","border-slate-800 bg-slate-800 text-slate-50 hover:border-slate-900 hover:bg-slate-900 focus:border-slate-900 focus:bg-slate-900 dark:border-slate-600 dark:bg-slate-600 dark:hover:border-slate-500 dark:hover:bg-slate-500 dark:focus:border-slate-500 dark:focus:bg-slate-500":n==="slate"&&o==="filled","border-red-800 bg-red-800 text-red-50 hover:border-red-900 hover:bg-red-900 focus:border-red-900 focus:bg-red-900 dark:border-red-600 dark:bg-red-600 dark:hover:border-red-500 dark:hover:bg-red-500 dark:focus:border-red-500 dark:focus:bg-red-500":n==="red"&&o==="filled"}),children:[u?y.jsx("div",{className:"flex w-4 justify-center",children:y.jsx(tu,{width:10,height:10,className:"animate-spin"})}):s?y.jsx("div",{className:"flex w-4 justify-center",children:s}):null,y.jsx("span",{children:l})]})},XC=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,o=ue.queue.byName.useQuery({queueName:n}),i=ue.job.retry.useMutation().mutate,a=ue.job.logs.useQuery({jobId:t.id,queueName:n}).data;return y.jsx(Ka,{isOpen:!0,isDismissable:!0,onOpenChange:function(s){s||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Na,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(s){var l,u,h=s.close;return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mb-4 flex items-start justify-between",children:[y.jsxs("div",{children:[y.jsx(Aa,{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),y.jsxs("span",{className:"text-sm text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),y.jsxs("div",{className:"flex items-center space-x-1",children:[y.jsx(YC,{queueName:n,job:t,queue:(l=o.data)!==null&&l!==void 0?l:void 0,onRemove:r}),y.jsx("button",{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700","aria-label":"Close",onClick:function(){r(),h()},children:y.jsx(eu,{})})]})]}),y.jsxs("div",{children:[t.failedReason?y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Error"}),y.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t.failedReason}),y.jsx(xn,{label:"Retry",size:"sm",icon:y.jsx(Lr,{width:14}),onClick:function(){i({queueName:n,jobId:t.id}),r()}})]}):null,y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:t.opts,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 py-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Data"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:t.data,theme:"monokai"})})]}),t.returnValue!==void 0&&t.returnValue!==null&&y.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Return value"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:t.returnValue,theme:"monokai"})})]}),!((u=o.data)===null||u===void 0)&&u.supports.logs&&(a!=null&&a.length)?y.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 pt-4 dark:border-t-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Logs"}),y.jsx("div",{className:"space-y-1",children:a==null?void 0:a.map(function(c,p){return y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("div",{className:"h-4 w-1 rounded-sm bg-slate-300 dark:bg-slate-600"}),y.jsx("p",{className:"font-mono text-sm text-slate-900 dark:text-slate-100",children:c})]},p)})})]}):null]})]})}})})},ki=h1(),ZC=[ki.display({id:"select",header:function(e){var t=e.table;return y.jsx(ca,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return y.jsx(ca,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),ki.accessor("name",{cell:function(e){return y.jsxs("div",{className:"flex w-full items-center space-x-2",children:[y.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name}),y.jsxs("span",{className:"max-w-[20%] shrink truncate text-sm text-slate-500 dark:text-slate-400",children:["#",e.cell.row.original.id]})]})},header:"Name"}),ki.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,r=t.processedAt,o=t.finishedAt,i=t.status,a=t.retriedAt;return y.jsxs("div",{className:"flex items-center space-x-3",children:[y.jsx(ks,{date:new Date(n),variant:"added"}),i==="waiting"?y.jsx(Kd,{}):null,r?y.jsxs(y.Fragment,{children:[y.jsx(Bd,{date:new Date(r),baseDate:new Date(n)}),y.jsx(ks,{date:new Date(r),variant:a?"retried":"processing"})]}):null,i==="active"?y.jsx(Kd,{}):null,o&&r?y.jsxs(y.Fragment,{children:[y.jsx(Bd,{date:new Date(o),baseDate:new Date(r)}),y.jsx(ks,{date:new Date(o),variant:i==="failed"?"failed":"completed"})]}):null]})}}),ki.display({id:"options",header:"Options",cell:function(e){var t,n=e.row.original.opts;return y.jsxs("div",{className:"flex items-center space-x-2",children:[n.priority?y.jsx(ao,{icon:y.jsx(G2,{width:12,height:12}),label:n.priority}):null,n.attempts&&n.attempts>1?y.jsx(ao,{icon:y.jsx(Lr,{width:12,height:12}),label:n.attempts}):null,n.lifo?y.jsx(ao,{icon:y.jsx(v5,{width:12,height:12}),label:"LIFO"}):null,n.delay?y.jsx(ao,{icon:y.jsx(e5,{width:12,height:12}),label:n.delay}):null,!((t=n.repeat)===null||t===void 0)&&t.count?y.jsx(ao,{icon:y.jsx(n5,{width:12,height:12}),label:n.repeat.count}):null]})}})],JC=function(e){var t=e.jobs,n=e.totalJobs,r=e.onBottomInView,o=e.isLoading,i=e.isFetchingNextPage,a=e.queueName,s=e.status,l=d.useState({}),u=l[0],h=l[1],c=V7({threshold:0,onChange:function(k){k&&r()}}).ref,p=S1({data:t,columns:ZC,getCoreRowModel:$1(),state:{rowSelection:u},onRowSelectionChange:h}),f=t.length===0,g=t.length/(n||0)*100,m=d.useState(null),v=m[0],b=m[1],x=ue.job.retry.useMutation().mutate,w=ue.job.rerun.useMutation().mutate,S=ue.job.bulkRemove.useMutation().mutate;return d.useEffect(function(){p.resetRowSelection()},[s]),y.jsxs("div",{children:[v?y.jsx(XC,{queueName:a,job:v,onDismiss:function(){return b(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:o?y.jsx(_1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(k,P){return y.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,576px,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:k.headers.map(function(R){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(P!==0?"pr-10":"pr-3"),children:R.isPlaceholder?null:aa(R.column.columnDef.header,R.getContext())},R.id)})},k.id)}),p.getRowModel().rows.map(function(k,P){return y.jsx(D1,{isLastRow:p.getRowModel().rows.length!==P+1,isSelected:k.getIsSelected(),onClick:function(){return b(k.original)},layoutVariant:"job",children:k.getVisibleCells().map(function(R,M){return y.jsx("div",{className:"flex h-full items-center ".concat(M!==0?"pr-10":"pr-3"),children:aa(R.column.columnDef.cell,R.getContext())},R.id)})},k.id)}),!o&&f?y.jsx("div",{className:"flex items-center justify-center py-10",children:y.jsx("p",{className:"text-slate-500 dark:text-slate-400",children:"No jobs found"})}):null]})}),!o&&f?null:y.jsx("div",{ref:c,className:"my-3 flex justify-center",children:y.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[y.jsxs("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:["You've viewed ",t.length," of ",n," jobs"]}),y.jsx(w3,{value:g,children:function(k){var P=k.percentage;return y.jsx(y.Fragment,{children:y.jsx("div",{style:{transform:"translateZ(0)"},className:"relative h-0.5 w-[144px] overflow-hidden rounded-sm bg-slate-200 dark:bg-slate-700",children:y.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-P,"%)")}})})})}}),i?y.jsx(tu,{className:"animate-spin text-slate-300 dark:text-slate-600"}):null]})}),p.getSelectedRowModel().rows.length>0?y.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:y.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[y.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[p.getSelectedRowModel().rows.length," selected"]}),s==="completed"||s==="failed"?y.jsx(xn,{label:s==="failed"?"Retry":"Rerun",icon:y.jsx(Lr,{}),size:"sm",onClick:function(){p.getSelectedRowModel().rows.forEach(function(k){s==="failed"?x({queueName:a,jobId:k.original.id}):w({queueName:a,jobId:k.original.id})}),p.resetRowSelection()}}):null,y.jsx(xn,{label:"Delete",colorScheme:"red",icon:y.jsx(zr,{}),size:"sm",onClick:function(){S({queueName:a,jobIds:p.getSelectedRowModel().rows.map(function(k){return k.original.id})}),p.resetRowSelection()}})]})}):null]})},ks=function(e){var t=e.variant,n=e.date,r={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return y.jsx(Ru,{message:"".concat(r[t]," ").concat(T1(n)," ago"),children:y.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&y.jsx(P0,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900 dark:bg-cyan-950 dark:text-cyan-400"}),t==="processing"&&y.jsx(L2,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900 dark:bg-slate-800 dark:text-slate-300"}),t==="retried"&&y.jsx(Lr,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900 dark:bg-amber-950 dark:text-amber-400"}),t==="completed"&&y.jsx(C0,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900 dark:bg-green-950 dark:text-green-400"}),t==="failed"&&y.jsx($0,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900 dark:bg-red-950 dark:text-red-400"}),y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:O1(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Kd=function(){return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(sl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx(tu,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},Bd=function(e){var t=e.date,n=e.baseDate;return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(sl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:j7(t,n,{locale:{formatDistance:function(r,o){return r==="xSeconds"?"".concat(o,"s"):r==="xMinutes"?"".concat(o,"m"):r==="xHours"?"".concat(o,"h"):r==="xDays"?"".concat(o,"d"):r==="xMonths"?"".concat(o,"mo"):r==="xYears"?"".concat(o,"y"):""}}})}),y.jsx(sl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},e$=function(e){var t=e.title,n=e.description,r=e.action,o=e.children;return y.jsxs(u1,{children:[y.jsx(pu,{children:o}),y.jsx(Ka,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Na,{role:"alertdialog",className:"fixed left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(i){var a=i.close;return y.jsxs(y.Fragment,{children:[y.jsx(Aa,{className:"mb-3 text-xl font-semibold text-slate-900 dark:text-slate-100",children:t}),y.jsx("p",{className:"mb-6 text-slate-600 dark:text-slate-400",children:n}),y.jsxs("div",{className:"flex justify-end space-x-3",children:[y.jsx(xn,{onClick:a,label:"Cancel"}),r]})]})}})})]})};function t$(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const n$=e=>{switch(e){case"success":return i$;case"info":return s$;case"warning":return a$;case"error":return l$;default:return null}},r$=Array(12).fill(0),o$=({visible:e,className:t})=>d.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},d.createElement("div",{className:"sonner-spinner"},r$.map((n,r)=>d.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),i$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),a$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),s$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),u$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},d.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),d.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),c$=()=>{const[e,t]=d.useState(document.hidden);return d.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Al=1;class d${constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Al++,a=this.toasts.find(l=>l.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,a;const s=o.then(async u=>{if(a=["resolve",u],d.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(h$(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...g})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...g})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:p,...g})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){i=!1;const h=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof h=="object"&&!d.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:c,...f})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,h)=>s.then(()=>a[0]==="reject"?h(a[1]):u(a[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Al++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new d$,f$=(e,t)=>{const n=(t==null?void 0:t.id)||Al++;return qe.addToast({title:e,...t,id:n}),n},h$=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",p$=f$,g$=()=>qe.toasts,m$=()=>qe.getActiveToasts(),dr=Object.assign(p$,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:g$,getToasts:m$});t$("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Mi(e){return e.label!==void 0}const v$=3,b$="24px",y$="16px",Hd=4e3,x$=356,w$=14,C$=45,$$=200;function Rt(...e){return e.filter(Boolean).join(" ")}function S$(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const E$=e=>{var t,n,r,o,i,a,s,l,u;const{invert:h,toast:c,unstyled:p,interacting:f,setHeights:g,visibleToasts:m,heights:v,index:b,toasts:x,expanded:w,removeToast:S,defaultRichColors:k,closeButton:P,style:R,cancelButtonStyle:M,actionButtonStyle:_,className:D="",descriptionClassName:j="",duration:K,position:I,gap:z,expandByDefault:O,classNames:L,icons:B,closeButtonAriaLabel:U="Close toast"}=e,[W,$]=d.useState(null),[F,T]=d.useState(null),[N,H]=d.useState(!1),[A,Z]=d.useState(!1),[he,te]=d.useState(!1),[ye,Q]=d.useState(!1),[je,_e]=d.useState(!1),[Jn,Xr]=d.useState(0),[oi,ii]=d.useState(0),ae=d.useRef(c.duration||K||Hd),Gt=d.useRef(null),Qe=d.useRef(null),Zr=b===0,Mg=b+1<=m,Ye=c.type,er=c.dismissible!==!1,Og=c.className||"",Tg=c.descriptionClassName||"",ai=d.useMemo(()=>v.findIndex(ne=>ne.toastId===c.id)||0,[v,c.id]),Dg=d.useMemo(()=>{var ne;return(ne=c.closeButton)!=null?ne:P},[c.closeButton,P]),Du=d.useMemo(()=>c.duration||K||Hd,[c.duration,K]),Ua=d.useRef(0),tr=d.useRef(0),_u=d.useRef(0),nr=d.useRef(null),[_g,Lg]=I.split("-"),Lu=d.useMemo(()=>v.reduce((ne,Pe,Le)=>Le>=ai?ne:ne+Pe.height,0),[v,ai]),Fu=c$(),Fg=c.invert||h,qa=Ye==="loading";tr.current=d.useMemo(()=>ai*z+Lu,[ai,Lu]),d.useEffect(()=>{ae.current=Du},[Du]),d.useEffect(()=>{H(!0)},[]),d.useEffect(()=>{const ne=Qe.current;if(ne){const Pe=ne.getBoundingClientRect().height;return ii(Pe),g(Le=>[{toastId:c.id,height:Pe,position:c.position},...Le]),()=>g(Le=>Le.filter(Xe=>Xe.toastId!==c.id))}},[g,c.id]),d.useLayoutEffect(()=>{if(!N)return;const ne=Qe.current,Pe=ne.style.height;ne.style.height="auto";const Le=ne.getBoundingClientRect().height;ne.style.height=Pe,ii(Le),g(Xe=>Xe.find(Te=>Te.toastId===c.id)?Xe.map(Te=>Te.toastId===c.id?{...Te,height:Le}:Te):[{toastId:c.id,height:Le,position:c.position},...Xe])},[N,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Qt=d.useCallback(()=>{Z(!0),Xr(tr.current),g(ne=>ne.filter(Pe=>Pe.toastId!==c.id)),setTimeout(()=>{S(c)},$$)},[c,S,g,tr]);d.useEffect(()=>{if(c.promise&&Ye==="loading"||c.duration===1/0||c.type==="loading")return;let ne;return w||f||Fu?(()=>{if(_u.current<Ua.current){const Xe=new Date().getTime()-Ua.current;ae.current=ae.current-Xe}_u.current=new Date().getTime()})():(()=>{ae.current!==1/0&&(Ua.current=new Date().getTime(),ne=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qt()},ae.current))})(),()=>clearTimeout(ne)},[w,f,c,Ye,Fu,Qt]),d.useEffect(()=>{c.delete&&(Qt(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qt,c.delete]);function Ig(){var ne;if(B!=null&&B.loading){var Pe;return d.createElement("div",{className:Rt(L==null?void 0:L.loader,c==null||(Pe=c.classNames)==null?void 0:Pe.loader,"sonner-loader"),"data-visible":Ye==="loading"},B.loading)}return d.createElement(o$,{className:Rt(L==null?void 0:L.loader,c==null||(ne=c.classNames)==null?void 0:ne.loader),visible:Ye==="loading"})}const jg=c.icon||(B==null?void 0:B[Ye])||n$(Ye);var Iu,ju;return d.createElement("li",{tabIndex:0,ref:Qe,className:Rt(D,Og,L==null?void 0:L.toast,c==null||(t=c.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[Ye],c==null||(n=c.classNames)==null?void 0:n[Ye]),"data-sonner-toast":"","data-rich-colors":(Iu=c.richColors)!=null?Iu:k,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":N,"data-promise":!!c.promise,"data-swiped":je,"data-removed":A,"data-visible":Mg,"data-y-position":_g,"data-x-position":Lg,"data-index":b,"data-front":Zr,"data-swiping":he,"data-dismissible":er,"data-type":Ye,"data-invert":Fg,"data-swipe-out":ye,"data-swipe-direction":F,"data-expanded":!!(w||O&&N),"data-testid":c.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${A?Jn:tr.current}px`,"--initial-height":O?"auto":`${oi}px`,...R,...c.style},onDragEnd:()=>{te(!1),$(null),nr.current=null},onPointerDown:ne=>{ne.button!==2&&(qa||!er||(Gt.current=new Date,Xr(tr.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(te(!0),nr.current={x:ne.clientX,y:ne.clientY})))},onPointerUp:()=>{var ne,Pe,Le;if(ye||!er)return;nr.current=null;const Xe=Number(((ne=Qe.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),si=Number(((Pe=Qe.current)==null?void 0:Pe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Te=new Date().getTime()-((Le=Gt.current)==null?void 0:Le.getTime()),at=W==="x"?Xe:si,li=Math.abs(at)/Te;if(Math.abs(at)>=C$||li>.11){Xr(tr.current),c.onDismiss==null||c.onDismiss.call(c,c),T(W==="x"?Xe>0?"right":"left":si>0?"down":"up"),Qt(),Q(!0);return}else{var vt,bt;(vt=Qe.current)==null||vt.style.setProperty("--swipe-amount-x","0px"),(bt=Qe.current)==null||bt.style.setProperty("--swipe-amount-y","0px")}_e(!1),te(!1),$(null)},onPointerMove:ne=>{var Pe,Le,Xe;if(!nr.current||!er||((Pe=window.getSelection())==null?void 0:Pe.toString().length)>0)return;const Te=ne.clientY-nr.current.y,at=ne.clientX-nr.current.x;var li;const vt=(li=e.swipeDirections)!=null?li:S$(I);!W&&(Math.abs(at)>1||Math.abs(Te)>1)&&$(Math.abs(at)>Math.abs(Te)?"x":"y");let bt={x:0,y:0};const Nu=En=>1/(1.5+Math.abs(En)/20);if(W==="y"){if(vt.includes("top")||vt.includes("bottom"))if(vt.includes("top")&&Te<0||vt.includes("bottom")&&Te>0)bt.y=Te;else{const En=Te*Nu(Te);bt.y=Math.abs(En)<Math.abs(Te)?En:Te}}else if(W==="x"&&(vt.includes("left")||vt.includes("right")))if(vt.includes("left")&&at<0||vt.includes("right")&&at>0)bt.x=at;else{const En=at*Nu(at);bt.x=Math.abs(En)<Math.abs(at)?En:at}(Math.abs(bt.x)>0||Math.abs(bt.y)>0)&&_e(!0),(Le=Qe.current)==null||Le.style.setProperty("--swipe-amount-x",`${bt.x}px`),(Xe=Qe.current)==null||Xe.style.setProperty("--swipe-amount-y",`${bt.y}px`)}},Dg&&!c.jsx&&Ye!=="loading"?d.createElement("button",{"aria-label":U,"data-disabled":qa,"data-close-button":!0,onClick:qa||!er?()=>{}:()=>{Qt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Rt(L==null?void 0:L.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(ju=B==null?void 0:B.close)!=null?ju:u$):null,(Ye||c.icon||c.promise)&&c.icon!==null&&((B==null?void 0:B[Ye])!==null||c.icon)?d.createElement("div",{"data-icon":"",className:Rt(L==null?void 0:L.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Ig():null,c.type!=="loading"?jg:null):null,d.createElement("div",{"data-content":"",className:Rt(L==null?void 0:L.content,c==null||(i=c.classNames)==null?void 0:i.content)},d.createElement("div",{"data-title":"",className:Rt(L==null?void 0:L.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?d.createElement("div",{"data-description":"",className:Rt(j,Tg,L==null?void 0:L.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),d.isValidElement(c.cancel)?c.cancel:c.cancel&&Mi(c.cancel)?d.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||M,onClick:ne=>{Mi(c.cancel)&&er&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ne),Qt())},className:Rt(L==null?void 0:L.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,d.isValidElement(c.action)?c.action:c.action&&Mi(c.action)?d.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||_,onClick:ne=>{Mi(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ne),!ne.defaultPrevented&&Qt())},className:Rt(L==null?void 0:L.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Vd(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function P$(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?y$:b$;function l(u){["top","right","bottom","left"].forEach(h=>{n[`${a}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const R$=d.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:h,mobileOffset:c,theme:p="light",richColors:f,duration:g,style:m,visibleToasts:v=v$,toastOptions:b,dir:x=Vd(),gap:w=w$,icons:S,containerAriaLabel:k="Notifications"}=t,[P,R]=d.useState([]),M=d.useMemo(()=>r?P.filter(N=>N.toasterId===r):P.filter(N=>!N.toasterId),[P,r]),_=d.useMemo(()=>Array.from(new Set([i].concat(M.filter(N=>N.position).map(N=>N.position)))),[M,i]),[D,j]=d.useState([]),[K,I]=d.useState(!1),[z,O]=d.useState(!1),[L,B]=d.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=d.useRef(null),W=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=d.useRef(null),F=d.useRef(!1),T=d.useCallback(N=>{R(H=>{var A;return(A=H.find(Z=>Z.id===N.id))!=null&&A.delete||qe.dismiss(N.id),H.filter(({id:Z})=>Z!==N.id)})},[]);return d.useEffect(()=>qe.subscribe(N=>{if(N.dismiss){requestAnimationFrame(()=>{R(H=>H.map(A=>A.id===N.id?{...A,delete:!0}:A))});return}setTimeout(()=>{Br.flushSync(()=>{R(H=>{const A=H.findIndex(Z=>Z.id===N.id);return A!==-1?[...H.slice(0,A),{...H[A],...N},...H.slice(A+1)]:[N,...H]})})})}),[P]),d.useEffect(()=>{if(p!=="system"){B(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;const N=window.matchMedia("(prefers-color-scheme: dark)");try{N.addEventListener("change",({matches:H})=>{B(H?"dark":"light")})}catch{N.addListener(({matches:A})=>{try{B(A?"dark":"light")}catch(Z){console.error(Z)}})}},[p]),d.useEffect(()=>{P.length<=1&&I(!1)},[P]),d.useEffect(()=>{const N=H=>{var A;if(a.every(te=>H[te]||H.code===te)){var he;I(!0),(he=U.current)==null||he.focus()}H.code==="Escape"&&(document.activeElement===U.current||(A=U.current)!=null&&A.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[a]),d.useEffect(()=>{if(U.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,F.current=!1)}},[U.current]),d.createElement("section",{ref:n,"aria-label":`${k} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((N,H)=>{var A;const[Z,he]=N.split("-");return M.length?d.createElement("ol",{key:N,dir:x==="auto"?Vd():x,tabIndex:-1,ref:U,className:u,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":Z,"data-x-position":he,style:{"--front-toast-height":`${((A=D[0])==null?void 0:A.height)||0}px`,"--width":`${x$}px`,"--gap":`${w}px`,...m,...P$(h,c)},onBlur:te=>{F.current&&!te.currentTarget.contains(te.relatedTarget)&&(F.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||F.current||(F.current=!0,$.current=te.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{z||I(!1)},onDragEnd:()=>I(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},M.filter(te=>!te.position&&H===0||te.position===N).map((te,ye)=>{var Q,je;return d.createElement(E$,{key:te.id,icons:S,index:ye,toast:te,defaultRichColors:f,duration:(Q=b==null?void 0:b.duration)!=null?Q:g,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:o,visibleToasts:v,closeButton:(je=b==null?void 0:b.closeButton)!=null?je:l,interacting:z,position:N,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,closeButtonAriaLabel:b==null?void 0:b.closeButtonAriaLabel,removeToast:T,toasts:M.filter(_e=>_e.position==te.position),heights:D.filter(_e=>_e.position==te.position),setHeights:j,expandByDefault:s,gap:w,expanded:K,swipeDirections:t.swipeDirections})})):null}))});var k$=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,o=e.queue,i=ue.queue.clean.useMutation({onSuccess:function(){dr.success("All ".concat(r," jobs have been removed"))}}),a=i.mutate,s=i.status,l=Be(Be(Be(Be(Be([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],o!=null&&o.supports.priorities?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),o!=null&&o.supports.flows?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"}],!1),o!=null&&o.supports.pause?[{name:"Paused",status:"paused"}]:[],!0);return y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"flex items-center space-x-3",children:l.map(function(u){var h=u.status===r;return y.jsxs(Ra,{to:"?status=".concat(u.status),className:Fr("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out",{"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800":!h,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":h&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":h&&u.status==="failed","bg-cyan-50 text-cyan-900 dark:bg-cyan-900 dark:text-cyan-50":h&&u.status==="active","bg-purple-50 text-purple-900 dark:bg-purple-900 dark:text-purple-50":h&&u.status==="prioritized","bg-amber-50 text-amber-900 dark:bg-amber-900 dark:text-amber-50":h&&u.status==="waiting","bg-orange-50 text-orange-900 dark:bg-orange-900 dark:text-orange-50":h&&u.status==="waiting-children","bg-indigo-50 text-indigo-900 dark:bg-indigo-900 dark:text-indigo-50":h&&u.status==="delayed","bg-stone-50 text-stone-900 dark:bg-stone-900 dark:text-stone-50":h&&u.status==="paused"}),children:[y.jsx("span",{children:u.name}),o!=null&&o.counts[u.status]?y.jsx("span",{className:Fr("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50 dark:bg-slate-600 dark:text-slate-100":!h,"bg-green-600 text-green-50 dark:bg-green-700 dark:text-green-100":h&&u.status==="completed","bg-red-600 text-red-50 dark:bg-red-700 dark:text-red-100":h&&u.status==="failed","bg-cyan-600 text-cyan-50 dark:bg-cyan-700 dark:text-cyan-100":h&&u.status==="active","bg-purple-600 text-purple-50 dark:bg-purple-700 dark:text-purple-100":h&&u.status==="prioritized","bg-amber-600 text-amber-50 dark:bg-amber-700 dark:text-amber-100":h&&u.status==="waiting","bg-orange-600 text-orange-50 dark:bg-orange-700 dark:text-orange-100":h&&u.status==="waiting-children","bg-indigo-600 text-indigo-50 dark:bg-indigo-700 dark:text-indigo-100":h&&u.status==="delayed","bg-stone-600 text-stone-50 dark:bg-stone-700 dark:text-stone-100":h&&u.status==="paused"}),children:o.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"&&(o!=null&&o.supports.clean)?y.jsx(e$,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(r," jobs from the queue."),action:y.jsx(xn,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return a({queueName:n,status:r})}}),children:y.jsx(xn,{colorScheme:"yellow",icon:y.jsx(zr,{}),label:"Clean all",size:"sm",isLoading:s==="pending"})}):null]})};function zd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M$(e){if(Array.isArray(e))return e}function O$(e,t,n){return(t=j$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(h){u=!0,o=h}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function D$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ud(Object(n),!0).forEach(function(r){O$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ud(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _$(e,t){if(e==null)return{};var n,r,o=L$(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function L$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function F$(e,t){return M$(e)||T$(e,t)||N$(e,t)||D$()}function I$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j$(e){var t=I$(e,"string");return typeof t=="symbol"?t:t+""}function N$(e,t){if(e){if(typeof e=="string")return zd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zd(e,t):void 0}}function A$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wd(Object(n),!0).forEach(function(r){A$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(o,i){return i(o)},r)}}function po(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function ba(e){return{}.toString.call(e).includes("Object")}function B$(e){return!Object.keys(e).length}function No(e){return typeof e=="function"}function H$(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function V$(e,t){return ba(t)||mn("changeType"),Object.keys(t).some(function(n){return!H$(e,n)})&&mn("changeField"),t}function z$(e){No(e)||mn("selectorType")}function U$(e){No(e)||ba(e)||mn("handlerType"),ba(e)&&Object.values(e).some(function(t){return!No(t)})&&mn("handlersType")}function q$(e){e||mn("initialIsRequired"),ba(e)||mn("initialType"),B$(e)&&mn("initialContent")}function W$(e,t){throw new Error(e[t]||e.default)}var G$={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},mn=po(W$)(G$),Oi={changes:V$,selector:z$,handler:U$,initial:q$};function Q$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Oi.initial(e),Oi.handler(t);var n={current:e},r=po(Z$)(n,t),o=po(X$)(n),i=po(Oi.changes)(e),a=po(Y$)(n);function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return Oi.selector(u),u(n.current)}function l(u){K$(r,o,i,a)(u)}return[s,l]}function Y$(e,t){return No(t)?t(e.current):t}function X$(e,t){return e.current=Gd(Gd({},e.current),t),t}function Z$(e,t,n){return No(t)?t(e.current):Object.keys(n).forEach(function(r){var o;return(o=t[r])===null||o===void 0?void 0:o.call(t,e.current[r])}),n}var J$={create:Q$},eS={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function tS(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function nS(e){return{}.toString.call(e).includes("Object")}function rS(e){return e||Qd("configIsRequired"),nS(e)||Qd("configType"),e.urls?(oS(),{paths:{vs:e.urls.monacoBase}}):e}function oS(){console.warn(xg.deprecation)}function iS(e,t){throw new Error(e[t]||e.default)}var xg={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
64
64
|
You are using deprecated way of configuration.
|
|
65
65
|
|
|
66
66
|
Instead of using
|
|
@@ -69,4 +69,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
69
69
|
monaco.config({ paths: { vs: '...' } })
|
|
70
70
|
|
|
71
71
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
72
|
-
`},Qd=B$(U$)(hg),q$={config:V$},W$=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(i,a){return a(i)},o)}};function pg(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],pg(e[n],t[n]))}),qd(qd({},e),t)}var G$={type:"cancelation",msg:"operation is manually canceled"};function ks(e){var t=!1,n=new Promise(function(r,o){e.then(function(i){return t?o(G$):r(i)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var Q$=["monaco"],Y$=A$.create({config:K$,isInitialized:!1,resolve:null,reject:null,monaco:null}),gg=w$(Y$,2),oi=gg[0],Ua=gg[1];function X$(e){var t=q$.config(e),n=t.monaco,r=y$(t,Q$);Ua(function(o){return{config:pg(o.config,r),monaco:n}})}function Z$(){var e=oi(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(Ua({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ks(Ms);if(window.monaco&&window.monaco.editor)return mg(window.monaco),e.resolve(window.monaco),ks(Ms);W$(J$,tS)(nS)}return ks(Ms)}function J$(e){return document.body.appendChild(e)}function eS(e){var t=document.createElement("script");return e&&(t.src=e),t}function tS(e){var t=oi(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=eS("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function nS(){var e=oi(function(n){var r=n.config,o=n.resolve,i=n.reject;return{config:r,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;mg(r),e.resolve(r)},function(n){e.reject(n)})}function mg(e){oi().monaco||Ua({monaco:e})}function rS(){return oi(function(e){var t=e.monaco;return t})}var Ms=new Promise(function(e,t){return Ua({resolve:e,reject:t})}),vg={config:X$,init:Z$,__getMonacoInstance:rS},oS={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Os=oS,iS={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},aS=iS;function sS({children:e}){return d.createElement("div",{style:aS.container},e)}var lS=sS,uS=lS;function cS({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:a}){return d.createElement("section",{style:{...Os.wrapper,width:e,height:t},...a},!n&&d.createElement(uS,null,r),d.createElement("div",{ref:o,style:{...Os.fullWidth,...!n&&Os.hide},className:i}))}var dS=cS,bg=d.memo(dS);function fS(e){d.useEffect(e,[])}var yg=fS;function hS(e,t,n=!0){let r=d.useRef(!0);d.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var et=hS;function Eo(){}function vr(e,t,n,r){return pS(e,r)||gS(e,t,n,r)}function pS(e,t){return e.editor.getModel(xg(e,t))}function gS(e,t,n,r){return e.editor.createModel(t,n,r?xg(e,r):void 0)}function xg(e,t){return e.Uri.parse(t)}function mS({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:h="Loading...",options:c={},height:p="100%",width:f="100%",className:g,wrapperProps:m={},beforeMount:v=Eo,onMount:b=Eo}){let[x,w]=d.useState(!1),[$,k]=d.useState(!0),E=d.useRef(null),R=d.useRef(null),M=d.useRef(null),_=d.useRef(b),D=d.useRef(v),P=d.useRef(!1);yg(()=>{let j=vg.init();return j.then(O=>(R.current=O)&&k(!1)).catch(O=>(O==null?void 0:O.type)!=="cancelation"&&console.error("Monaco initialization: error:",O)),()=>E.current?F():j.cancel()}),et(()=>{if(E.current&&R.current){let j=E.current.getOriginalEditor(),O=vr(R.current,e||"",r||n||"text",i||"");O!==j.getModel()&&j.setModel(O)}},[i],x),et(()=>{if(E.current&&R.current){let j=E.current.getModifiedEditor(),O=vr(R.current,t||"",o||n||"text",a||"");O!==j.getModel()&&j.setModel(O)}},[a],x),et(()=>{let j=E.current.getModifiedEditor();j.getOption(R.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],x),et(()=>{var j,O;(O=(j=E.current)==null?void 0:j.getModel())==null||O.original.setValue(e||"")},[e],x),et(()=>{let{original:j,modified:O}=E.current.getModel();R.current.editor.setModelLanguage(j,r||n||"text"),R.current.editor.setModelLanguage(O,o||n||"text")},[n,r,o],x),et(()=>{var j;(j=R.current)==null||j.editor.setTheme(u)},[u],x),et(()=>{var j;(j=E.current)==null||j.updateOptions(c)},[c],x);let I=d.useCallback(()=>{var T;if(!R.current)return;D.current(R.current);let j=vr(R.current,e||"",r||n||"text",i||""),O=vr(R.current,t||"",o||n||"text",a||"");(T=E.current)==null||T.setModel({original:j,modified:O})},[n,t,o,e,r,i,a]),N=d.useCallback(()=>{var j;!P.current&&M.current&&(E.current=R.current.editor.createDiffEditor(M.current,{automaticLayout:!0,...c}),I(),(j=R.current)==null||j.editor.setTheme(u),w(!0),P.current=!0)},[c,u,I]);d.useEffect(()=>{x&&_.current(E.current,R.current)},[x]),d.useEffect(()=>{!$&&!x&&N()},[$,x,N]);function F(){var O,T,A,K;let j=(O=E.current)==null?void 0:O.getModel();s||((T=j==null?void 0:j.original)==null||T.dispose()),l||((A=j==null?void 0:j.modified)==null||A.dispose()),(K=E.current)==null||K.dispose()}return d.createElement(bg,{width:f,height:p,isEditorReady:x,loading:h,_ref:M,className:g,wrapperProps:m})}var vS=mS;d.memo(vS);function bS(e){let t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}var yS=bS,Ti=new Map;function xS({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:u={},overrideServices:h={},saveViewState:c=!0,keepCurrentModel:p=!1,width:f="100%",height:g="100%",className:m,wrapperProps:v={},beforeMount:b=Eo,onMount:x=Eo,onChange:w,onValidate:$=Eo}){let[k,E]=d.useState(!1),[R,M]=d.useState(!0),_=d.useRef(null),D=d.useRef(null),P=d.useRef(null),I=d.useRef(x),N=d.useRef(b),F=d.useRef(),j=d.useRef(r),O=yS(i),T=d.useRef(!1),A=d.useRef(!1);yg(()=>{let H=vg.init();return H.then(z=>(_.current=z)&&M(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>D.current?L():H.cancel()}),et(()=>{var z,V,W,q;let H=vr(_.current,e||r||"",t||o||"",i||n||"");H!==((z=D.current)==null?void 0:z.getModel())&&(c&&Ti.set(O,(V=D.current)==null?void 0:V.saveViewState()),(W=D.current)==null||W.setModel(H),c&&((q=D.current)==null||q.restoreViewState(Ti.get(i))))},[i],k),et(()=>{var H;(H=D.current)==null||H.updateOptions(u)},[u],k),et(()=>{!D.current||r===void 0||(D.current.getOption(_.current.editor.EditorOption.readOnly)?D.current.setValue(r):r!==D.current.getValue()&&(A.current=!0,D.current.executeEdits("",[{range:D.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),D.current.pushUndoStop(),A.current=!1))},[r],k),et(()=>{var z,V;let H=(z=D.current)==null?void 0:z.getModel();H&&o&&((V=_.current)==null||V.editor.setModelLanguage(H,o))},[o],k),et(()=>{var H;s!==void 0&&((H=D.current)==null||H.revealLine(s))},[s],k),et(()=>{var H;(H=_.current)==null||H.editor.setTheme(a)},[a],k);let K=d.useCallback(()=>{var H;if(!(!P.current||!_.current)&&!T.current){N.current(_.current);let z=i||n,V=vr(_.current,r||e||"",t||o||"",z||"");D.current=(H=_.current)==null?void 0:H.editor.create(P.current,{model:V,automaticLayout:!0,...u},h),c&&D.current.restoreViewState(Ti.get(z)),_.current.editor.setTheme(a),s!==void 0&&D.current.revealLine(s),E(!0),T.current=!0}},[e,t,n,r,o,i,u,h,c,a,s]);d.useEffect(()=>{k&&I.current(D.current,_.current)},[k]),d.useEffect(()=>{!R&&!k&&K()},[R,k,K]),j.current=r,d.useEffect(()=>{var H,z;k&&w&&((H=F.current)==null||H.dispose(),F.current=(z=D.current)==null?void 0:z.onDidChangeModelContent(V=>{A.current||w(D.current.getValue(),V)}))},[k,w]),d.useEffect(()=>{if(k){let H=_.current.editor.onDidChangeMarkers(z=>{var W;let V=(W=D.current.getModel())==null?void 0:W.uri;if(V&&z.find(q=>q.path===V.path)){let q=_.current.editor.getModelMarkers({resource:V});$==null||$(q)}});return()=>{H==null||H.dispose()}}return()=>{}},[k,$]);function L(){var H,z;(H=F.current)==null||H.dispose(),p?c&&Ti.set(i,D.current.saveViewState()):(z=D.current.getModel())==null||z.dispose(),D.current.dispose()}return d.createElement(bg,{width:f,height:g,isEditorReady:k,loading:l,_ref:P,className:m,wrapperProps:v})}var wS=xS,CS=d.memo(wS),$S=CS,Ts=function(e){var t=e.value,n=e.onChange,r=d.useRef(null),o=function(){var a,s;(s=(a=r.current)===null||a===void 0?void 0:a.getAction("editor.action.formatDocument"))===null||s===void 0||s.run()},i=function(a){var s=String.fromCharCode(a.which).toLowerCase();(a.ctrlKey||a.metaKey)&&s==="s"&&(a.preventDefault(),o())};return y.jsx("div",{onKeyDown:i,onBlur:o,className:"mb-6 border border-slate-200",children:y.jsx($S,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:t,onChange:function(a){a&&n(a)},onMount:function(a,s){r.current=a,s.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{background:"ffffff",token:""},{foreground:"6a737d",token:"comment"},{foreground:"6a737d",token:"punctuation.definition.comment"},{foreground:"6a737d",token:"string.comment"},{foreground:"005cc5",token:"constant"},{foreground:"005cc5",token:"entity.name.constant"},{foreground:"005cc5",token:"variable.other.constant"},{foreground:"005cc5",token:"variable.language"},{foreground:"6f42c1",token:"entity"},{foreground:"6f42c1",token:"entity.name"},{foreground:"24292e",token:"variable.parameter.function"},{foreground:"22863a",token:"entity.name.tag"},{foreground:"d73a49",token:"keyword"},{foreground:"d73a49",token:"storage"},{foreground:"d73a49",token:"storage.type"},{foreground:"24292e",token:"storage.modifier.package"},{foreground:"24292e",token:"storage.modifier.import"},{foreground:"24292e",token:"storage.type.java"},{foreground:"032f62",token:"string"},{foreground:"032f62",token:"punctuation.definition.string"},{foreground:"032f62",token:"string punctuation.section.embedded source"},{foreground:"005cc5",token:"support"},{foreground:"005cc5",token:"meta.property-name"},{foreground:"e36209",token:"variable"},{foreground:"24292e",token:"variable.other"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.broken"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.deprecated"},{foreground:"fafbfc",background:"b31d28",fontStyle:"italic underline",token:"invalid.illegal"},{foreground:"fafbfc",background:"d73a49",fontStyle:"italic underline",token:"carriage-return"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.unimplemented"},{foreground:"b31d28",token:"message.error"},{foreground:"24292e",token:"string source"},{foreground:"005cc5",token:"string variable"},{foreground:"032f62",token:"source.regexp"},{foreground:"032f62",token:"string.regexp"},{foreground:"032f62",token:"string.regexp.character-class"},{foreground:"032f62",token:"string.regexp constant.character.escape"},{foreground:"032f62",token:"string.regexp source.ruby.embedded"},{foreground:"032f62",token:"string.regexp string.regexp.arbitrary-repitition"},{foreground:"22863a",fontStyle:"bold",token:"string.regexp constant.character.escape"},{foreground:"005cc5",token:"support.constant"},{foreground:"005cc5",token:"support.variable"},{foreground:"005cc5",token:"meta.module-reference"},{foreground:"735c0f",token:"markup.list"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading entity.name"},{foreground:"22863a",token:"markup.quote"},{foreground:"24292e",fontStyle:"italic",token:"markup.italic"},{foreground:"24292e",fontStyle:"bold",token:"markup.bold"},{foreground:"005cc5",token:"markup.raw"},{foreground:"b31d28",background:"ffeef0",token:"markup.deleted"},{foreground:"b31d28",background:"ffeef0",token:"meta.diff.header.from-file"},{foreground:"b31d28",background:"ffeef0",token:"punctuation.definition.deleted"},{foreground:"22863a",background:"f0fff4",token:"markup.inserted"},{foreground:"22863a",background:"f0fff4",token:"meta.diff.header.to-file"},{foreground:"22863a",background:"f0fff4",token:"punctuation.definition.inserted"},{foreground:"e36209",background:"ffebda",token:"markup.changed"},{foreground:"e36209",background:"ffebda",token:"punctuation.definition.changed"},{foreground:"f6f8fa",background:"005cc5",token:"markup.ignored"},{foreground:"f6f8fa",background:"005cc5",token:"markup.untracked"},{foreground:"6f42c1",fontStyle:"bold",token:"meta.diff.range"},{foreground:"005cc5",token:"meta.diff.header"},{foreground:"005cc5",fontStyle:"bold",token:"meta.separator"},{foreground:"005cc5",token:"meta.output"},{foreground:"586069",token:"brackethighlighter.tag"},{foreground:"586069",token:"brackethighlighter.curly"},{foreground:"586069",token:"brackethighlighter.round"},{foreground:"586069",token:"brackethighlighter.square"},{foreground:"586069",token:"brackethighlighter.angle"},{foreground:"586069",token:"brackethighlighter.quote"},{foreground:"b31d28",token:"brackethighlighter.unmatched"},{foreground:"b31d28",token:"sublimelinter.mark.error"},{foreground:"e36209",token:"sublimelinter.mark.warning"},{foreground:"959da5",token:"sublimelinter.gutter-mark"},{foreground:"032f62",fontStyle:"underline",token:"constant.other.reference.link"},{foreground:"032f62",fontStyle:"underline",token:"string.other.link"}],colors:{"editor.foreground":"#24292e","editor.background":"#ffffff","editor.selectionBackground":"#c8c8fa","editor.inactiveSelectionBackground":"#fafbfc","editor.lineHighlightBackground":"#fafbfc","editorCursor.foreground":"#24292e","editorWhitespace.foreground":"#959da5","editorIndentGuide.background":"#959da5","editorIndentGuide.activeBackground":"#24292e","editor.selectionHighlightBorder":"#fafbfc"}}),s.editor.setTheme("solarized-light")}})})},Yd=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,o=r===void 0?"job":r,i=le.queue.addJob.useMutation({onSuccess:function(){pr.success("New job has been added"),n()},onError:function(E){pr.error(E.message)}}),a=i.mutate,s=i.status,l=le.queue.addJobScheduler.useMutation({onSuccess:function(){pr.success("New job scheduler has been added"),n()},onError:function(E){pr.error(E.message)}}),u=l.mutate,h=l.status,c=d.useState("{}"),p=c[0],f=c[1],g=d.useState(JSON.stringify({name:"",data:{},opts:{}},null,2)),m=g[0],v=g[1],b=d.useState(JSON.stringify({pattern:"0 0 * * *",tz:Intl.DateTimeFormat().resolvedOptions().timeZone},null,2)),x=b[0],w=b[1],$=o==="job",k=$?s:h;return y.jsx(n1,{isOpen:!0,onOpenChange:function(E){E||n()},children:y.jsx(Ba,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Aa,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(E){var R=E.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){R(),n()},children:y.jsx(Jl,{})}),y.jsx("div",{className:"flex items-center space-x-4",children:y.jsxs(Ka,{className:"mb-1 text-xl font-semibold text-slate-900 dark:text-slate-100",children:["Add ",$?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),$?y.jsx(Ts,{value:p,onChange:f}):y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),y.jsx(Ts,{value:m,onChange:v})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx(Ts,{value:x,onChange:w})]})]}),y.jsx("div",{children:y.jsx(Cn,{label:$?"Add job":"Add scheduler",variant:"filled",disabled:k==="pending",onClick:function(){try{if($){var M=JSON.parse(p);a({queueName:t.name,data:M})}else{var _=JSON.parse(m),D=JSON.parse(x);u({queueName:t.name,template:_,opts:D})}}catch{pr.error("Invalid JSON")}}})})]})}})})})},SS=function(e){var t=e.queue,n=le.queue.pause.useMutation().mutate,r=le.queue.resume.useMutation().mutate,o=le.queue.empty.useMutation().mutate,i=d.useState(!1),a=i[0],s=i[1],l=d.useState(!1),u=l[0],h=l[1],c={queueName:t.name},p=Ke(Ke(Ke(Ke([],t.supports.pause&&t.supports.resume?[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?y.jsx(w0,{}):y.jsx(x0,{})}]:[],!0),[{label:"Add job",onSelect:function(){s(!0)},icon:y.jsx(uc,{})}],!1),t.supports.schedulers?[{label:"Add scheduler",onSelect:function(){h(!0)},icon:y.jsx(uc,{})}]:[],!0),t.supports.empty?[{label:"Empty",onSelect:function(){o(c)},icon:y.jsx(Gr,{})}]:[],!0);return y.jsxs(y.Fragment,{children:[y.jsx(za,{actions:p}),a?y.jsx(Yd,{queue:t,variant:"job",onDismiss:function(){return s(!1)}}):null,u?y.jsx(Yd,{queue:t,variant:"scheduler",onDismiss:function(){return h(!1)}}):null]})},wg={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(globalThis,()=>(()=>{var n={949:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CronParser=void 0;var u=l(515),h=function(){function c(p,f,g){f===void 0&&(f=!0),g===void 0&&(g=!1),this.expression=p,this.dayOfWeekStartIndexZero=f,this.monthStartIndexZero=g}return c.prototype.parse=function(){var p,f,g=(p=this.expression)!==null&&p!==void 0?p:"";if(g==="@reboot")return f=["@reboot","","","","","",""],f;if(g.startsWith("@")){var m=this.parseSpecial(this.expression);f=this.extractParts(m)}else f=this.extractParts(this.expression);return this.normalize(f),this.validate(f),f},c.prototype.parseSpecial=function(p){var f={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},g=f[p];if(!g)throw new Error("Unknown special expression.");return g},c.prototype.extractParts=function(p){if(!this.expression)throw new Error("cron expression is empty");for(var f=p.trim().split(/[ ]+/),g=0;g<f.length;g++)if(f[g].includes(",")){var m=f[g].split(",").map(function(b){return b.trim()}).filter(function(b){return b!==""}).map(function(b){return isNaN(Number(b))?b:Number(b)}).filter(function(b){return b!==null&&b!==""});m.length===0&&m.push("*"),m.sort(function(b,x){return b!==null&&x!==null?b-x:0}),f[g]=m.map(function(b){return b!==null?b.toString():""}).join(",")}if(f.length<5)throw new Error("Expression has only ".concat(f.length," part").concat(f.length==1?"":"s",". At least 5 parts are required."));if(f.length==5)f.unshift(""),f.push("");else if(f.length==6){var v=/\d{4}$/.test(f[5])||f[4]=="?"||f[2]=="?";v?f.unshift(""):f.push("")}else if(f.length>7)throw new Error("Expression has ".concat(f.length," parts; too many!"));return f},c.prototype.normalize=function(p){var f=this;if(p[3]=p[3].replace("?","*"),p[5]=p[5].replace("?","*"),p[2]=p[2].replace("?","*"),p[0].indexOf("0/")==0&&(p[0]=p[0].replace("0/","*/")),p[1].indexOf("0/")==0&&(p[1]=p[1].replace("0/","*/")),p[2].indexOf("0/")==0&&(p[2]=p[2].replace("0/","*/")),p[3].indexOf("1/")==0&&(p[3]=p[3].replace("1/","*/")),p[4].indexOf("1/")==0&&(p[4]=p[4].replace("1/","*/")),p[6].indexOf("1/")==0&&(p[6]=p[6].replace("1/","*/")),p[5]=p[5].replace(/(^\d)|([^#/\s]\d)/g,function(k){var E=k.replace(/\D/,""),R=E;return f.dayOfWeekStartIndexZero?E=="7"&&(R="0"):R=(parseInt(E)-1).toString(),k.replace(E,R)}),p[5]=="L"&&(p[5]="6"),p[3]=="?"&&(p[3]="*"),p[3].indexOf("W")>-1&&(p[3].indexOf(",")>-1||p[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var g={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var m in g)p[5]=p[5].replace(new RegExp(m,"gi"),g[m].toString());p[4]=p[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(k){var E=k.replace(/\D/,""),R=E;return f.monthStartIndexZero&&(R=(parseInt(E)+1).toString()),k.replace(E,R)});var v={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var b in v)p[4]=p[4].replace(new RegExp(b,"gi"),v[b].toString());p[0]=="0"&&(p[0]=""),!/\*|\-|\,|\//.test(p[2])&&(/\*|\//.test(p[1])||/\*|\//.test(p[0]))&&(p[2]+="-".concat(p[2]));for(var x=0;x<p.length;x++)if(p[x].indexOf(",")!=-1&&(p[x]=p[x].split(",").filter(function(k){return k!==""}).join(",")||"*"),p[x]=="*/1"&&(p[x]="*"),p[x].indexOf("/")>-1&&!/^\*|\-|\,/.test(p[x])){var w=null;switch(x){case 4:w="12";break;case 5:w="6";break;case 6:w="9999";break;default:w=null;break}if(w!==null){var $=p[x].split("/");p[x]="".concat($[0],"-").concat(w,"/").concat($[1])}}},c.prototype.validate=function(p){var f="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(p[0],f),this.validateOnlyExpectedCharactersFound(p[1],f),this.validateOnlyExpectedCharactersFound(p[2],f),this.validateOnlyExpectedCharactersFound(p[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(p[4],f),this.validateOnlyExpectedCharactersFound(p[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(p[6],f),this.validateAnyRanges(p)},c.prototype.validateAnyRanges=function(p){u.default.secondRange(p[0]),u.default.minuteRange(p[1]),u.default.hourRange(p[2]),u.default.dayOfMonthRange(p[3]),u.default.monthRange(p[4],this.monthStartIndexZero),u.default.dayOfWeekRange(p[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(p,f){var g=p.match(new RegExp("[^".concat(f,"]+"),"gi"));if(g&&g.length)throw new Error("Expression contains invalid values: '".concat(g.toString(),"'"))},c}();s.CronParser=h},333:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExpressionDescriptor=void 0;var u=l(823),h=l(949),c=function(){function p(f,g){if(this.expression=f,this.options=g,this.expressionParts=new Array(5),!this.options.locale&&p.defaultLocale&&(this.options.locale=p.defaultLocale),!p.locales[this.options.locale]){var m=Object.keys(p.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(m,"'.")),this.options.locale=m}this.i18n=p.locales[this.options.locale],g.use24HourTimeFormat===void 0&&(g.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return p.toString=function(f,g){var m=g===void 0?{}:g,v=m.throwExceptionOnParseError,b=v===void 0?!0:v,x=m.verbose,w=x===void 0?!1:x,$=m.dayOfWeekStartIndexZero,k=$===void 0?!0:$,E=m.monthStartIndexZero,R=E===void 0?!1:E,M=m.use24HourTimeFormat,_=m.locale,D=_===void 0?null:_,P={throwExceptionOnParseError:b,verbose:w,dayOfWeekStartIndexZero:k,monthStartIndexZero:R,use24HourTimeFormat:M,locale:D};P.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var I=new p(f,P);return I.getFullDescription()},p.initialize=function(f,g){g===void 0&&(g="en"),p.specialCharacters=["/","-",",","*"],p.defaultLocale=g,f.load(p.locales)},p.prototype.getFullDescription=function(){var f,g,m="";try{var v=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=v.parse(),this.expressionParts[0]==="@reboot")return((g=(f=this.i18n).atReboot)===null||g===void 0?void 0:g.call(f))||"Run once, at startup";var b=this.getTimeOfDayDescription(),x=this.getDayOfMonthDescription(),w=this.getMonthDescription(),$=this.getDayOfWeekDescription(),k=this.getYearDescription();m+=b+x+$+w+k,m=this.transformVerbosity(m,!!this.options.verbose),m=m.charAt(0).toLocaleUpperCase()+m.substr(1)}catch(E){if(!this.options.throwExceptionOnParseError)m=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(E)}return m},p.prototype.getTimeOfDayDescription=function(){var f=this.expressionParts[0],g=this.expressionParts[1],m=this.expressionParts[2],v="";if(!u.StringUtilities.containsAny(g,p.specialCharacters)&&!u.StringUtilities.containsAny(m,p.specialCharacters)&&!u.StringUtilities.containsAny(f,p.specialCharacters))v+=this.i18n.atSpace()+this.formatTime(m,g,f);else if(!f&&g.indexOf("-")>-1&&!(g.indexOf(",")>-1)&&!(g.indexOf("/")>-1)&&!u.StringUtilities.containsAny(m,p.specialCharacters)){var b=g.split("-");v+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(m,b[0],""),this.formatTime(m,b[1],""))}else if(!f&&m.indexOf(",")>-1&&m.indexOf("-")==-1&&m.indexOf("/")==-1&&!u.StringUtilities.containsAny(g,p.specialCharacters)){var x=m.split(",");v+=this.i18n.at();for(var w=0;w<x.length;w++)v+=" ",v+=this.formatTime(x[w],g,""),w<x.length-2&&(v+=","),w==x.length-2&&(v+=this.i18n.spaceAnd())}else{var $=this.getSecondsDescription(),k=this.getMinutesDescription(),E=this.getHoursDescription();if(v+=$,v&&k&&(v+=", "),v+=k,k===E)return v;v&&E&&(v+=", "),v+=E}return v},p.prototype.getSecondsDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(m){return m},function(m){return u.StringUtilities.format(f.i18n.everyX0Seconds(m),m)},function(m){return f.i18n.secondsX0ThroughX1PastTheMinute()},function(m){return m=="0"?"":parseInt(m)<20?f.i18n.atX0SecondsPastTheMinute(m):f.i18n.atX0SecondsPastTheMinuteGt20()||f.i18n.atX0SecondsPastTheMinute(m)});return g},p.prototype.getMinutesDescription=function(){var f=this,g=this.expressionParts[0],m=this.expressionParts[2],v=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(b){return b},function(b){return u.StringUtilities.format(f.i18n.everyX0Minutes(b),b)},function(b){return f.i18n.minutesX0ThroughX1PastTheHour()},function(b){try{return b=="0"&&m.indexOf("/")==-1&&g==""?f.i18n.everyHour():parseInt(b)<20?f.i18n.atX0MinutesPastTheHour(b):f.i18n.atX0MinutesPastTheHourGt20()||f.i18n.atX0MinutesPastTheHour(b)}catch{return f.i18n.atX0MinutesPastTheHour(b)}});return v},p.prototype.getHoursDescription=function(){var f=this,g=this.expressionParts[2],m=0,v=[];g.split("/")[0].split(",").forEach(function(w){var $=w.split("-");$.length===2&&v.push({value:$[1],index:m+1}),m+=$.length});var b=0,x=this.getSegmentDescription(g,this.i18n.everyHour(),function(w){var $=v.find(function(E){return E.value===w&&E.index===b}),k=$&&f.expressionParts[1]!=="0";return b++,k?f.formatTime(w,"59",""):f.formatTime(w,"0","")},function(w){return u.StringUtilities.format(f.i18n.everyX0Hours(w),w)},function(w){return f.i18n.betweenX0AndX1()},function(w){return f.i18n.atX0()});return x},p.prototype.getDayOfWeekDescription=function(){var f=this,g=this.i18n.daysOfTheWeek(),m=null;return this.expressionParts[5]=="*"?m="":m=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(v,b){var x=v;v.indexOf("#")>-1?x=v.substring(0,v.indexOf("#")):v.indexOf("L")>-1&&(x=x.replace("L",""));var w=parseInt(x),$=f.i18n.daysOfTheWeekInCase?f.i18n.daysOfTheWeekInCase(b)[w]:g[w];if(v.indexOf("#")>-1){var k=null,E=v.substring(v.indexOf("#")+1),R=v.substring(0,v.indexOf("#"));switch(E){case"1":k=f.i18n.first(R);break;case"2":k=f.i18n.second(R);break;case"3":k=f.i18n.third(R);break;case"4":k=f.i18n.fourth(R);break;case"5":k=f.i18n.fifth(R);break}$=k+" "+$}return $},function(v){return parseInt(v)==1?"":u.StringUtilities.format(f.i18n.commaEveryX0DaysOfTheWeek(v),v)},function(v){var b=v.substring(0,v.indexOf("-")),x=f.expressionParts[3]!="*";return x?f.i18n.commaAndX0ThroughX1(b):f.i18n.commaX0ThroughX1(b)},function(v){var b=null;if(v.indexOf("#")>-1){var x=v.substring(v.indexOf("#")+1),w=v.substring(0,v.indexOf("#"));b=f.i18n.commaOnThe(x,w).trim()+f.i18n.spaceX0OfTheMonth()}else if(v.indexOf("L")>-1)b=f.i18n.commaOnTheLastX0OfTheMonth(v.replace("L",""));else{var $=f.expressionParts[3]!="*";b=$?f.i18n.commaAndOnX0():f.i18n.commaOnlyOnX0(v)}return b}),m},p.prototype.getMonthDescription=function(){var f=this,g=this.i18n.monthsOfTheYear(),m=this.getSegmentDescription(this.expressionParts[4],"",function(v,b){return b&&f.i18n.monthsOfTheYearInCase?f.i18n.monthsOfTheYearInCase(b)[parseInt(v)-1]:g[parseInt(v)-1]},function(v){return parseInt(v)==1?"":u.StringUtilities.format(f.i18n.commaEveryX0Months(v),v)},function(v){return f.i18n.commaMonthX0ThroughMonthX1()||f.i18n.commaX0ThroughX1()},function(v){return f.i18n.commaOnlyInMonthX0?f.i18n.commaOnlyInMonthX0():f.i18n.commaOnlyInX0()});return m},p.prototype.getDayOfMonthDescription=function(){var f=this,g=null,m=this.expressionParts[3];switch(m){case"L":g=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":g=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var v=m.match(/(\d{1,2}W)|(W\d{1,2})/);if(v){var b=parseInt(v[0].replace("W","")),x=b==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());g=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),x);break}else{var w=m.match(/L-(\d{1,2})/);if(w){var $=w[1];g=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth($),$);break}else{if(m=="*"&&this.expressionParts[5]!="*")return"";g=this.getSegmentDescription(m,this.i18n.commaEveryDay(),function(k){return k=="L"?f.i18n.lastDay():f.i18n.dayX0?u.StringUtilities.format(f.i18n.dayX0(),k):k},function(k){return k=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days(k)},function(k){return f.i18n.commaBetweenDayX0AndX1OfTheMonth(k)},function(k){return f.i18n.commaOnDayX0OfTheMonth(k)})}break}}return g},p.prototype.getYearDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[6],"",function(m){return/^\d+$/.test(m)?new Date(parseInt(m),1).getFullYear().toString():m},function(m){return u.StringUtilities.format(f.i18n.commaEveryX0Years(m),m)},function(m){return f.i18n.commaYearX0ThroughYearX1()||f.i18n.commaX0ThroughX1()},function(m){return f.i18n.commaOnlyInYearX0?f.i18n.commaOnlyInYearX0():f.i18n.commaOnlyInX0()});return g},p.prototype.getSegmentDescription=function(f,g,m,v,b,x){var w=null,$=f.indexOf("/")>-1,k=f.indexOf("-")>-1,E=f.indexOf(",")>-1;if(!f)w="";else if(f==="*")w=g;else if(!$&&!k&&!E)w=u.StringUtilities.format(x(f),m(f));else if(E){for(var R=f.split(","),M="",_=0;_<R.length;_++)if(_>0&&R.length>2&&(M+=",",_<R.length-1&&(M+=" ")),_>0&&R.length>1&&(_==R.length-1||R.length==2)&&(M+="".concat(this.i18n.spaceAnd()," ")),R[_].indexOf("/")>-1||R[_].indexOf("-")>-1){var D=R[_].indexOf("-")>-1&&R[_].indexOf("/")==-1,P=this.getSegmentDescription(R[_],g,m,v,D?this.i18n.commaX0ThroughX1:b,x);D&&(P=P.replace(", ","")),M+=P}else $?M+=this.getSegmentDescription(R[_],g,m,v,b,x):M+=m(R[_]);$?w=M:w=u.StringUtilities.format(x(f),M)}else if($){var R=f.split("/");if(w=u.StringUtilities.format(v(R[1]),R[1]),R[0].indexOf("-")>-1){var I=this.generateRangeSegmentDescription(R[0],b,m);I.indexOf(", ")!=0&&(w+=", "),w+=I}else if(R[0].indexOf("*")==-1){var N=u.StringUtilities.format(x(R[0]),m(R[0]));N=N.replace(", ",""),w+=u.StringUtilities.format(this.i18n.commaStartingX0(),N)}}else k&&(w=this.generateRangeSegmentDescription(f,b,m));return w},p.prototype.generateRangeSegmentDescription=function(f,g,m){var v="",b=f.split("-"),x=m(b[0],1),w=m(b[1],2),$=g(f);return v+=u.StringUtilities.format($,x,w),v},p.prototype.formatTime=function(f,g,m){var v=0,b=0,x=parseInt(f)+v,w=parseInt(g)+b;w>=60?(w-=60,x+=1):w<0&&(w+=60,x-=1),x>=24?x=x-24:x<0&&(x=24+x);var $="",k=!1;this.options.use24HourTimeFormat||(k=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),$=k?"".concat(this.getPeriod(x)," "):" ".concat(this.getPeriod(x)),x>12&&(x-=12),x===0&&(x=12));var E="";return m&&(E=":".concat(("00"+m).substring(m.length))),"".concat(k?$:"").concat(("00"+x.toString()).substring(x.toString().length),":").concat(("00"+w.toString()).substring(w.toString().length)).concat(E).concat(k?"":$)},p.prototype.transformVerbosity=function(f,g){if(!g&&(f=f.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),f=f.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),f=f.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),f=f.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var m=0,v=Object.entries(this.i18n.conciseVerbosityReplacements());m<v.length;m++){var b=v[m],x=b[0],w=b[1];f=f.replace(new RegExp(x,"g"),w)}return f},p.prototype.getPeriod=function(f){return f>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},p.locales={},p}();s.ExpressionDescriptor=c},747:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.enLocaleLoader=void 0;var u=l(486),h=function(){function c(){}return c.prototype.load=function(p){p.en=new u.en},c}();s.enLocaleLoader=h},486:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.en=void 0;var l=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},u.prototype.everyMinute=function(){return"every minute"},u.prototype.everyHour=function(){return"every hour"},u.prototype.atSpace=function(){return"At "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},u.prototype.at=function(){return"At"},u.prototype.spaceAnd=function(){return" and"},u.prototype.everySecond=function(){return"every second"},u.prototype.everyX0Seconds=function(){return"every %s seconds"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},u.prototype.everyX0Minutes=function(){return"every %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},u.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},u.prototype.everyX0Hours=function(){return"every %s hours"},u.prototype.betweenX0AndX1=function(){return"between %s and %s"},u.prototype.atX0=function(){return"at %s"},u.prototype.commaEveryDay=function(){return", every day"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},u.prototype.commaX0ThroughX1=function(){return", %s through %s"},u.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},u.prototype.first=function(){return"first"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"third"},u.prototype.fourth=function(){return"fourth"},u.prototype.fifth=function(){return"fifth"},u.prototype.commaOnThe=function(){return", on the "},u.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},u.prototype.lastDay=function(){return"the last day"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},u.prototype.commaOnlyOnX0=function(){return", only on %s"},u.prototype.commaAndOnX0=function(){return", and on %s"},u.prototype.commaEveryX0Months=function(){return", every %s months"},u.prototype.commaOnlyInX0=function(){return", only in %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},u.prototype.firstWeekday=function(){return"first weekday"},u.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},u.prototype.commaEveryX0Days=function(){return", every %s days"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},u.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},u.prototype.commaEveryHour=function(){return", every hour"},u.prototype.commaEveryX0Years=function(){return", every %s years"},u.prototype.commaStartingX0=function(){return", starting %s"},u.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},u.prototype.atReboot=function(){return"Run once, at startup"},u}();s.en=l},515:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0});function l(h,c){if(!h)throw new Error(c)}var u=function(){function h(){}return h.secondRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=1&&g<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(c,p){for(var f=c.split(","),g=0;g<f.length;g++)if(!isNaN(parseInt(f[g],10))){var m=parseInt(f[g],10);l(m>=1&&m<=12,p?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(c,p){for(var f=c.split(","),g=0;g<f.length;g++)if(!isNaN(parseInt(f[g],10))){var m=parseInt(f[g],10);l(m>=0&&m<=6,p?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();s.default=u},823:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StringUtilities=void 0;var l=function(){function u(){}return u.format=function(h){for(var c=[],p=1;p<arguments.length;p++)c[p-1]=arguments[p];return h.replace(/%s/g,function(f){return c.shift()})},u.containsAny=function(h,c){return c.some(function(p){return h.indexOf(p)>-1})},u}();s.StringUtilities=l}},r={};function o(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return n[a](l,l.exports,o),l.exports}var i={};return(()=>{var a=i;Object.defineProperty(a,"__esModule",{value:!0}),a.toString=void 0;var s=o(333),l=o(747);s.ExpressionDescriptor.initialize(new l.enLocaleLoader),a.default=s.ExpressionDescriptor;var u=s.ExpressionDescriptor.toString;a.toString=u})(),i})())})(wg);var ES=wg.exports;const PS=cf(ES);var RS=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,o=le.scheduler.remove.useMutation(),i=o.mutate,a=o.isSuccess;return d.useEffect(function(){a&&(r==null||r())},[a,r]),y.jsx(za,{actions:[{label:"Remove",onSelect:function(){i({queueName:n,jobSchedulerId:t.key})},icon:y.jsx(Gr,{})}]})},kS=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,o=t.template,i=Nr({},t);return delete i.template,y.jsx(Ba,{isOpen:!0,isDismissable:!0,onOpenChange:function(a){a||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Aa,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(a){var s=a.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),s()},children:y.jsx(Jl,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Ka,{className:"mb-1 flex items-center space-x-2",children:[y.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),y.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),y.jsx(RS,{queueName:n,scheduler:t,onRemove:r})]}),y.jsxs("div",{children:[y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ba,{data:i,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 pt-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ba,{data:o,theme:"monokai"})})]})]})]})}})})},Di=a1();function MS(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),r=n.formatToParts(t),o=r.find(function(i){return i.type==="timeZoneName"});return(o==null?void 0:o.value)||""}var OS=function(e){return[Di.display({id:"select",header:function(t){var n=t.table;return y.jsx(ca,{checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),onCheckedChange:function(){n.toggleAllRowsSelected()}})},cell:function(t){var n=t.row,r=t.table;return y.jsx(ca,{className:r.getIsSomeRowsSelected()||r.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:n.getIsSomeSelected()?"indeterminate":n.getIsSelected(),onCheckedChange:function(o){n.getToggleSelectedHandler()(o),e(n.index)}})}}),Di.accessor("name",{cell:function(t){return y.jsx("div",{className:"flex w-full items-center space-x-2",children:y.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:t.cell.row.original.name})})},header:"Scheduler"}),Di.accessor("pattern",{cell:function(t){return y.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[t.cell.row.original.pattern?PS.toString(t.cell.row.original.pattern,{verbose:!0}):t.cell.row.original.every?"Every ".concat(t.cell.row.original.every):""," ",t.cell.row.original.tz?"(".concat(MS(t.cell.row.original.tz),")"):""]})},header:"Pattern"}),Di.accessor("next",{cell:function(t){return t.cell.row.original.next?y.jsx(Ru,{message:$1(new Date(t.cell.row.original.next),"dd MMM yyyy HH:mm:ss zzz"),children:y.jsx("div",{className:"flex items-center space-x-1.5",children:y.jsxs("p",{className:"text-slate-900 dark:text-slate-200",children:["In ",S1(new Date(t.cell.row.original.next))," ",y.jsxs("span",{className:"text-sm text-slate-700 dark:text-slate-400",children:["(",t.cell.row.original.iterationCount," run",t.cell.row.original.iterationCount===1?"":"s"," total)"]})]})})}):y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:"No next run"})},header:"Next Run"})]},TS=function(e){var t=e.queueName,n=d.useState({}),r=n[0],o=n[1],i=d.useRef(null),a=le.scheduler.list.useQuery({queueName:t}),s=a.data,l=a.isLoading,u=(s==null?void 0:s.length)===0,h=function(x){i.current=x},c=OS(h),p=v1({data:s||[],columns:c,getCoreRowModel:m1(),state:{rowSelection:r},onRowSelectionChange:o}),f=d.useState(null),g=f[0],m=f[1],v=le.scheduler.bulkRemove.useMutation().mutate,b=function(x,w){if(x.shiftKey&&i.current!==null){x.preventDefault();for(var $=Math.min(i.current,w),k=Math.max(i.current,w),E=Nr({},r),R=$;R<=k;R++)E[R]=!0;o(E)}else m(p.getRowModel().rows[w].original),i.current=w};return!l&&u?null:y.jsxs("div",{children:[g?y.jsx(kS,{scheduler:g,queueName:t,onDismiss:function(){return m(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:l?y.jsx(P1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(x,w){return y.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,1fr,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:x.headers.map(function($){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(w!==0?"pr-10":"pr-3"),children:$.isPlaceholder?null:aa($.column.columnDef.header,$.getContext())},$.id)})},x.id)}),p.getRowModel().rows.map(function(x,w){return y.jsx(E1,{isLastRow:p.getRowModel().rows.length!==w+1,isSelected:x.getIsSelected(),onClick:function($){return b($,w)},layoutVariant:"scheduler",children:x.getVisibleCells().map(function($,k){return y.jsx("div",{className:"flex h-full items-center ".concat(k!==0?"pr-10":"pr-3"),children:aa($.column.columnDef.cell,$.getContext())},$.id)})},x.id)})]})}),p.getSelectedRowModel().rows.length>0?y.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:y.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[y.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[p.getSelectedRowModel().rows.length," selected"]}),y.jsx(Cn,{label:"Delete",colorScheme:"red",icon:y.jsx(Gr,{}),size:"sm",onClick:function(){v({queueName:t,jobSchedulerIds:p.getSelectedRowModel().rows.map(function(x){return x.original.key})}),p.resetRowSelection()}})]})}):null]})},_i=function(e){var t=e.label,n=e.value,r=e.trend,o=e.variant,i=o===void 0?"completed":o,a=i==="completed"?r!=null&&r.isPositive?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":r!=null&&r.isPositive?"text-red-600 dark:text-red-400":"text-green-600 dark:text-green-400";return y.jsxs("div",{className:"group flex flex-col space-y-2 rounded-xl border border-slate-200/80 bg-white/80 px-4 py-3 backdrop-blur-sm transition-all duration-200 hover:border-slate-300 hover:shadow-sm dark:border-slate-700/50 dark:bg-slate-900/50 dark:hover:border-slate-600",children:[y.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500 dark:text-slate-400",children:t}),y.jsxs("div",{className:"flex items-baseline space-x-2",children:[y.jsx("p",{className:"font-mono text-2xl font-semibold tabular-nums leading-none text-slate-900 dark:text-slate-50",children:typeof n=="number"?n.toLocaleString():n}),r&&y.jsxs("div",{className:"flex items-center space-x-0.5 font-mono text-xs font-medium ".concat(a),children:[r.isPositive?y.jsx(g2,{width:11,height:11}):y.jsx(h2,{width:11,height:11}),y.jsxs("span",{children:[Math.abs(r.value),"%"]})]})]})]})},cr={"1m":{label:"Last minute",minutes:1},"1h":{label:"Last hour",minutes:60},"24h":{label:"Last 24 hours",minutes:1440},"7d":{label:"Last 7 days",minutes:10080}},DS=function(e){var t=e.queueName,n=d.useState("1h"),r=n[0],o=n[1],i=le.queue.metrics.useQuery({queueName:t,type:"completed",start:0,end:cr[r].minutes},{enabled:!!t,refetchInterval:Io}),a=i.data,s=i.isLoading,l=le.queue.metrics.useQuery({queueName:t,type:"failed",start:0,end:cr[r].minutes},{enabled:!!t,refetchInterval:Io}),u=l.data,h=l.isLoading,c=s||h,p=function(b,x){if(x===0)return null;var w=(b-x)/x*100;return{value:Math.round(Math.abs(w)),isPositive:w>0}},f=a&&p(a.count,a.meta.prevCount),g=u&&p(u.count,u.meta.prevCount),m=a?(a.count/cr[r].minutes).toFixed(1):"0";u&&(u.count/cr[r].minutes).toFixed(1);var v=a&&u?a.count+u.count>0?(a.count/(a.count+u.count)*100).toFixed(1):"100":"0";return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold tracking-tight text-slate-900 dark:text-slate-50",children:"Metrics"}),y.jsx("div",{className:"flex items-center space-x-0.5 rounded-lg border border-slate-200/80 bg-white/80 p-0.5 backdrop-blur-sm dark:border-slate-700/50 dark:bg-slate-900/50",children:Object.keys(cr).map(function(b){return y.jsx("button",{onClick:function(){return o(b)},className:"rounded-md px-2.5 py-1 text-xs font-medium transition-all duration-150 ".concat(r===b?"bg-slate-100 text-slate-900 shadow-sm dark:bg-slate-800 dark:text-slate-100":"text-slate-600 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-400 dark:hover:bg-slate-800/50 dark:hover:text-slate-100"),children:cr[b].label},b)})})]}),c?y.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:Ke([],Array(4),!0).map(function(b,x){return y.jsx(Mo,{className:"h-[88px] rounded-xl"},x)})}):y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[y.jsx(_i,{label:"Completed",value:(a==null?void 0:a.count)||0,trend:f||void 0,variant:"completed"}),y.jsx(_i,{label:"Failed",value:(u==null?void 0:u.count)||0,trend:g||void 0,variant:"failed"}),y.jsx(_i,{label:"Success Rate",value:"".concat(v,"%")}),y.jsx(_i,{label:"Throughput",value:"".concat(m,"/min")})]})]})},Ds=new Intl.NumberFormat("en-US").format,_S=function(){var e,t,n,r,o,i=vb().id,a=i,s=a2()[0],l=d.useState("completed"),u=l[0],h=l[1],c=le.job.list.useInfiniteQuery({queueName:a,limit:Dl,status:u},{getNextPageParam:function($){return $.nextCursor},enabled:!!a,refetchInterval:Io,retry:_l}),p=c.data,f=c.fetchNextPage,g=c.isLoading,m=c.isError,v=c.isFetchingNextPage,b=c.hasNextPage;d.useEffect(function(){var $=s.get("status");$&&h($),!$&&u&&h("completed")},[s,u]);var x=le.queue.byName.useQuery({queueName:a},{enabled:!!a,refetchInterval:Io,retry:_l}),w=(e=p==null?void 0:p.pages.map(function($){return $.jobs}).flat())!==null&&e!==void 0?e:[];return y.jsx(i1,{children:x.data===null?y.jsx(El,{message:"No queue found"}):m?y.jsx(El,{message:"Could not fetch jobs"}):y.jsxs("div",{children:[y.jsx("div",{className:"mb-2 flex justify-between",children:y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-slate-50",children:x.data?x.data.displayName:y.jsx(Mo,{className:"h-8 w-52 rounded-md"})}),y.jsxs("div",{className:"flex items-center space-x-2",children:[x.data?y.jsx(SS,{queue:x.data}):null,!((t=x.data)===null||t===void 0)&&t.paused?y.jsx("div",{className:"flex h-7 cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:y.jsx("span",{children:"Paused"})}):null]})]})}),y.jsx("div",{className:"mb-5",children:y.jsx("div",{className:"flex items-center space-x-2",children:x.data?y.jsxs(y.Fragment,{children:[y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[y.jsxs("span",{className:"text-green-800 dark:text-green-400",children:[Ds(x.data.client.connectedClients)," ","connected"]})," ","and"," ",y.jsxs("span",{className:"text-red-800 dark:text-red-400",children:[Ds(x.data.client.blockedClients)," ","blocked"]})," ","out of"," ",y.jsxs("span",{className:"text-slate-900 dark:text-slate-100",children:[Ds(x.data.client.maxClients)," max clients"]})]}),y.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[x.data.client.usedMemoryHuman," /"," ",x.data.client.totalMemoryHuman," (",(x.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),y.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:["Redis v",x.data.client.version]})]}):y.jsx(Mo,{className:"h-6 w-80"})})}),y.jsxs("div",{className:"space-y-8",children:[!((n=x.data)===null||n===void 0)&&n.supports.metrics?y.jsx(DS,{queueName:a}):null,!((r=x.data)===null||r===void 0)&&r.supports.schedulers?y.jsx(TS,{queueName:a}):null,y.jsxs("div",{className:"space-y-4",children:[y.jsx(p$,{showCleanAllButton:w.length>0,queueName:a,status:u,queue:x.data}),y.jsx(AC,{onBottomInView:function(){v||!b||f()},status:u,totalJobs:((o=p==null?void 0:p.pages.at(-1))===null||o===void 0?void 0:o.totalCount)||0,jobs:w.map(function($){return Nr(Nr({},$),{status:u})}),isLoading:g,isFetchingNextPage:v,queueName:a})]})]})]})})},Fi=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600 dark:text-cyan-400",completed:"text-green-600 dark:text-green-400",failed:"text-red-600 dark:text-red-400",waiting:"text-amber-600 dark:text-amber-400"},o={active:y.jsx(C0,{width:16,height:16}),completed:y.jsx(b0,{width:16,height:16}),failed:y.jsx(y0,{width:16,height:16}),waiting:y.jsx(z2,{width:16,height:16})};return y.jsx("div",{children:y.jsx(Ru,{message:n.charAt(0).toUpperCase()+n.slice(1),children:y.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(r[n]),children:[y.jsx("p",{className:"text-lg",children:t}),o[n]]})})})},FS=function(e){var t=e.queueName,n=le.queue.byName.useQuery({queueName:t},{refetchInterval:Io,retry:_l});return n.data?y.jsxs(ka,{to:"../".concat(n.data.name),className:"group flex items-center justify-between transition",children:[y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("p",{className:"py-3 text-lg font-medium text-slate-900 transition group-hover:text-brand-900 dark:text-slate-200 dark:group-hover:text-brand-100",children:n.data.displayName}),y.jsx("div",{children:n.data.paused?y.jsx("div",{className:"flex h-7 items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:y.jsx("span",{children:"Paused"})}):null})]}),y.jsxs("div",{className:"flex space-x-5",children:[y.jsx(Fi,{count:n.data.counts.completed,variant:"completed"}),y.jsx(Fi,{count:n.data.counts.failed,variant:"failed"}),y.jsx(Fi,{count:n.data.counts.active,variant:"active"}),y.jsx(Fi,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},LS=function(){var e=le.queue.list.useQuery().data,t=le.queue.pauseAll.useMutation().mutate,n=le.queue.resumeAll.useMutation().mutate;return y.jsx(i1,{children:y.jsxs("div",{className:"xl:max-w-2xl",children:[y.jsxs("div",{className:"flex justify-between",children:[y.jsx("h1",{className:"mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50",children:"Queues"}),y.jsx("div",{children:y.jsx(za,{actions:[{label:"Resume all",icon:y.jsx(w0,{}),onSelect:function(){return n()}},{label:"Pause all",icon:y.jsx(x0,{}),onSelect:function(){return t()}}]})})]}),y.jsx("div",{children:e==null?void 0:e.map(function(r,o){return y.jsx("div",{className:(e==null?void 0:e.length)-1!==o?"border-b border-slate-100 dark:border-slate-700":"",children:y.jsx(FS,{queueName:r.name},r.name)},r.name)})})]})})},IS=function(e){var t=e.apiUrl,n=e.basename,r=d.useState(!1),o=r[0],i=r[1],a=d.useState(function(){return new om})[0],s=d.useState(function(){return le.createClient({links:[Jm({url:t})]})})[0];return d.useEffect(function(){var l=JSON.parse(localStorage.getItem("user-preferences")||"null");l?l.theme==="dark"||l.theme==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),i(!0)},[]),o?y.jsx(le.Provider,{client:s,queryClient:a,children:y.jsxs(im,{client:a,children:[y.jsx(h$,{}),y.jsx(n2,{basename:n,children:y.jsxs(Db,{children:[y.jsx(rl,{path:"/",element:y.jsx(LS,{})}),y.jsx(rl,{path:"/:id",element:y.jsx(_S,{})})]})})]})}):null};exports.QueueDashApp=IS;
|
|
72
|
+
`},Qd=tS(iS)(xg),aS={config:rS},sS=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(i,a){return a(i)},o)}};function wg(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],wg(e[n],t[n]))}),qd(qd({},e),t)}var lS={type:"cancelation",msg:"operation is manually canceled"};function Ms(e){var t=!1,n=new Promise(function(r,o){e.then(function(i){return t?o(lS):r(i)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var uS=["monaco"],cS=J$.create({config:eS,isInitialized:!1,resolve:null,reject:null,monaco:null}),Cg=F$(cS,2),ri=Cg[0],za=Cg[1];function dS(e){var t=aS.config(e),n=t.monaco,r=_$(t,uS);za(function(o){return{config:wg(o.config,r),monaco:n}})}function fS(){var e=ri(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(za({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ms(Os);if(window.monaco&&window.monaco.editor)return $g(window.monaco),e.resolve(window.monaco),Ms(Os);sS(hS,gS)(mS)}return Ms(Os)}function hS(e){return document.body.appendChild(e)}function pS(e){var t=document.createElement("script");return e&&(t.src=e),t}function gS(e){var t=ri(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=pS("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function mS(){var e=ri(function(n){var r=n.config,o=n.resolve,i=n.reject;return{config:r,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;$g(r),e.resolve(r)},function(n){e.reject(n)})}function $g(e){ri().monaco||za({monaco:e})}function vS(){return ri(function(e){var t=e.monaco;return t})}var Os=new Promise(function(e,t){return za({resolve:e,reject:t})}),Sg={config:dS,init:fS,__getMonacoInstance:vS},bS={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Ts=bS,yS={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},xS=yS;function wS({children:e}){return d.createElement("div",{style:xS.container},e)}var CS=wS,$S=CS;function SS({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:a}){return d.createElement("section",{style:{...Ts.wrapper,width:e,height:t},...a},!n&&d.createElement($S,null,r),d.createElement("div",{ref:o,style:{...Ts.fullWidth,...!n&&Ts.hide},className:i}))}var ES=SS,Eg=d.memo(ES);function PS(e){d.useEffect(e,[])}var Pg=PS;function RS(e,t,n=!0){let r=d.useRef(!0);d.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Je=RS;function $o(){}function pr(e,t,n,r){return kS(e,r)||MS(e,t,n,r)}function kS(e,t){return e.editor.getModel(Rg(e,t))}function MS(e,t,n,r){return e.editor.createModel(t,n,r?Rg(e,r):void 0)}function Rg(e,t){return e.Uri.parse(t)}function OS({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:h="Loading...",options:c={},height:p="100%",width:f="100%",className:g,wrapperProps:m={},beforeMount:v=$o,onMount:b=$o}){let[x,w]=d.useState(!1),[S,k]=d.useState(!0),P=d.useRef(null),R=d.useRef(null),M=d.useRef(null),_=d.useRef(b),D=d.useRef(v),j=d.useRef(!1);Pg(()=>{let O=Sg.init();return O.then(L=>(R.current=L)&&k(!1)).catch(L=>(L==null?void 0:L.type)!=="cancelation"&&console.error("Monaco initialization: error:",L)),()=>P.current?z():O.cancel()}),Je(()=>{if(P.current&&R.current){let O=P.current.getOriginalEditor(),L=pr(R.current,e||"",r||n||"text",i||"");L!==O.getModel()&&O.setModel(L)}},[i],x),Je(()=>{if(P.current&&R.current){let O=P.current.getModifiedEditor(),L=pr(R.current,t||"",o||n||"text",a||"");L!==O.getModel()&&O.setModel(L)}},[a],x),Je(()=>{let O=P.current.getModifiedEditor();O.getOption(R.current.editor.EditorOption.readOnly)?O.setValue(t||""):t!==O.getValue()&&(O.executeEdits("",[{range:O.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),O.pushUndoStop())},[t],x),Je(()=>{var O,L;(L=(O=P.current)==null?void 0:O.getModel())==null||L.original.setValue(e||"")},[e],x),Je(()=>{let{original:O,modified:L}=P.current.getModel();R.current.editor.setModelLanguage(O,r||n||"text"),R.current.editor.setModelLanguage(L,o||n||"text")},[n,r,o],x),Je(()=>{var O;(O=R.current)==null||O.editor.setTheme(u)},[u],x),Je(()=>{var O;(O=P.current)==null||O.updateOptions(c)},[c],x);let K=d.useCallback(()=>{var B;if(!R.current)return;D.current(R.current);let O=pr(R.current,e||"",r||n||"text",i||""),L=pr(R.current,t||"",o||n||"text",a||"");(B=P.current)==null||B.setModel({original:O,modified:L})},[n,t,o,e,r,i,a]),I=d.useCallback(()=>{var O;!j.current&&M.current&&(P.current=R.current.editor.createDiffEditor(M.current,{automaticLayout:!0,...c}),K(),(O=R.current)==null||O.editor.setTheme(u),w(!0),j.current=!0)},[c,u,K]);d.useEffect(()=>{x&&_.current(P.current,R.current)},[x]),d.useEffect(()=>{!S&&!x&&I()},[S,x,I]);function z(){var L,B,U,W;let O=(L=P.current)==null?void 0:L.getModel();s||((B=O==null?void 0:O.original)==null||B.dispose()),l||((U=O==null?void 0:O.modified)==null||U.dispose()),(W=P.current)==null||W.dispose()}return d.createElement(Eg,{width:f,height:p,isEditorReady:x,loading:h,_ref:M,className:g,wrapperProps:m})}var TS=OS;d.memo(TS);function DS(e){let t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}var _S=DS,Ti=new Map;function LS({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:u={},overrideServices:h={},saveViewState:c=!0,keepCurrentModel:p=!1,width:f="100%",height:g="100%",className:m,wrapperProps:v={},beforeMount:b=$o,onMount:x=$o,onChange:w,onValidate:S=$o}){let[k,P]=d.useState(!1),[R,M]=d.useState(!0),_=d.useRef(null),D=d.useRef(null),j=d.useRef(null),K=d.useRef(x),I=d.useRef(b),z=d.useRef(),O=d.useRef(r),L=_S(i),B=d.useRef(!1),U=d.useRef(!1);Pg(()=>{let F=Sg.init();return F.then(T=>(_.current=T)&&M(!1)).catch(T=>(T==null?void 0:T.type)!=="cancelation"&&console.error("Monaco initialization: error:",T)),()=>D.current?$():F.cancel()}),Je(()=>{var T,N,H,A;let F=pr(_.current,e||r||"",t||o||"",i||n||"");F!==((T=D.current)==null?void 0:T.getModel())&&(c&&Ti.set(L,(N=D.current)==null?void 0:N.saveViewState()),(H=D.current)==null||H.setModel(F),c&&((A=D.current)==null||A.restoreViewState(Ti.get(i))))},[i],k),Je(()=>{var F;(F=D.current)==null||F.updateOptions(u)},[u],k),Je(()=>{!D.current||r===void 0||(D.current.getOption(_.current.editor.EditorOption.readOnly)?D.current.setValue(r):r!==D.current.getValue()&&(U.current=!0,D.current.executeEdits("",[{range:D.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),D.current.pushUndoStop(),U.current=!1))},[r],k),Je(()=>{var T,N;let F=(T=D.current)==null?void 0:T.getModel();F&&o&&((N=_.current)==null||N.editor.setModelLanguage(F,o))},[o],k),Je(()=>{var F;s!==void 0&&((F=D.current)==null||F.revealLine(s))},[s],k),Je(()=>{var F;(F=_.current)==null||F.editor.setTheme(a)},[a],k);let W=d.useCallback(()=>{var F;if(!(!j.current||!_.current)&&!B.current){I.current(_.current);let T=i||n,N=pr(_.current,r||e||"",t||o||"",T||"");D.current=(F=_.current)==null?void 0:F.editor.create(j.current,{model:N,automaticLayout:!0,...u},h),c&&D.current.restoreViewState(Ti.get(T)),_.current.editor.setTheme(a),s!==void 0&&D.current.revealLine(s),P(!0),B.current=!0}},[e,t,n,r,o,i,u,h,c,a,s]);d.useEffect(()=>{k&&K.current(D.current,_.current)},[k]),d.useEffect(()=>{!R&&!k&&W()},[R,k,W]),O.current=r,d.useEffect(()=>{var F,T;k&&w&&((F=z.current)==null||F.dispose(),z.current=(T=D.current)==null?void 0:T.onDidChangeModelContent(N=>{U.current||w(D.current.getValue(),N)}))},[k,w]),d.useEffect(()=>{if(k){let F=_.current.editor.onDidChangeMarkers(T=>{var H;let N=(H=D.current.getModel())==null?void 0:H.uri;if(N&&T.find(A=>A.path===N.path)){let A=_.current.editor.getModelMarkers({resource:N});S==null||S(A)}});return()=>{F==null||F.dispose()}}return()=>{}},[k,S]);function $(){var F,T;(F=z.current)==null||F.dispose(),p?c&&Ti.set(i,D.current.saveViewState()):(T=D.current.getModel())==null||T.dispose(),D.current.dispose()}return d.createElement(Eg,{width:f,height:g,isEditorReady:k,loading:l,_ref:j,className:m,wrapperProps:v})}var FS=LS,IS=d.memo(FS),jS=IS,Ds=function(e){var t=e.value,n=e.onChange,r=d.useRef(null),o=function(){var a,s;(s=(a=r.current)===null||a===void 0?void 0:a.getAction("editor.action.formatDocument"))===null||s===void 0||s.run()},i=function(a){var s=String.fromCharCode(a.which).toLowerCase();(a.ctrlKey||a.metaKey)&&s==="s"&&(a.preventDefault(),o())};return y.jsx("div",{onKeyDown:i,onBlur:o,className:"mb-6 border border-slate-200",children:y.jsx(jS,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:t,onChange:function(a){a&&n(a)},onMount:function(a,s){r.current=a,s.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{background:"ffffff",token:""},{foreground:"6a737d",token:"comment"},{foreground:"6a737d",token:"punctuation.definition.comment"},{foreground:"6a737d",token:"string.comment"},{foreground:"005cc5",token:"constant"},{foreground:"005cc5",token:"entity.name.constant"},{foreground:"005cc5",token:"variable.other.constant"},{foreground:"005cc5",token:"variable.language"},{foreground:"6f42c1",token:"entity"},{foreground:"6f42c1",token:"entity.name"},{foreground:"24292e",token:"variable.parameter.function"},{foreground:"22863a",token:"entity.name.tag"},{foreground:"d73a49",token:"keyword"},{foreground:"d73a49",token:"storage"},{foreground:"d73a49",token:"storage.type"},{foreground:"24292e",token:"storage.modifier.package"},{foreground:"24292e",token:"storage.modifier.import"},{foreground:"24292e",token:"storage.type.java"},{foreground:"032f62",token:"string"},{foreground:"032f62",token:"punctuation.definition.string"},{foreground:"032f62",token:"string punctuation.section.embedded source"},{foreground:"005cc5",token:"support"},{foreground:"005cc5",token:"meta.property-name"},{foreground:"e36209",token:"variable"},{foreground:"24292e",token:"variable.other"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.broken"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.deprecated"},{foreground:"fafbfc",background:"b31d28",fontStyle:"italic underline",token:"invalid.illegal"},{foreground:"fafbfc",background:"d73a49",fontStyle:"italic underline",token:"carriage-return"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.unimplemented"},{foreground:"b31d28",token:"message.error"},{foreground:"24292e",token:"string source"},{foreground:"005cc5",token:"string variable"},{foreground:"032f62",token:"source.regexp"},{foreground:"032f62",token:"string.regexp"},{foreground:"032f62",token:"string.regexp.character-class"},{foreground:"032f62",token:"string.regexp constant.character.escape"},{foreground:"032f62",token:"string.regexp source.ruby.embedded"},{foreground:"032f62",token:"string.regexp string.regexp.arbitrary-repitition"},{foreground:"22863a",fontStyle:"bold",token:"string.regexp constant.character.escape"},{foreground:"005cc5",token:"support.constant"},{foreground:"005cc5",token:"support.variable"},{foreground:"005cc5",token:"meta.module-reference"},{foreground:"735c0f",token:"markup.list"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading entity.name"},{foreground:"22863a",token:"markup.quote"},{foreground:"24292e",fontStyle:"italic",token:"markup.italic"},{foreground:"24292e",fontStyle:"bold",token:"markup.bold"},{foreground:"005cc5",token:"markup.raw"},{foreground:"b31d28",background:"ffeef0",token:"markup.deleted"},{foreground:"b31d28",background:"ffeef0",token:"meta.diff.header.from-file"},{foreground:"b31d28",background:"ffeef0",token:"punctuation.definition.deleted"},{foreground:"22863a",background:"f0fff4",token:"markup.inserted"},{foreground:"22863a",background:"f0fff4",token:"meta.diff.header.to-file"},{foreground:"22863a",background:"f0fff4",token:"punctuation.definition.inserted"},{foreground:"e36209",background:"ffebda",token:"markup.changed"},{foreground:"e36209",background:"ffebda",token:"punctuation.definition.changed"},{foreground:"f6f8fa",background:"005cc5",token:"markup.ignored"},{foreground:"f6f8fa",background:"005cc5",token:"markup.untracked"},{foreground:"6f42c1",fontStyle:"bold",token:"meta.diff.range"},{foreground:"005cc5",token:"meta.diff.header"},{foreground:"005cc5",fontStyle:"bold",token:"meta.separator"},{foreground:"005cc5",token:"meta.output"},{foreground:"586069",token:"brackethighlighter.tag"},{foreground:"586069",token:"brackethighlighter.curly"},{foreground:"586069",token:"brackethighlighter.round"},{foreground:"586069",token:"brackethighlighter.square"},{foreground:"586069",token:"brackethighlighter.angle"},{foreground:"586069",token:"brackethighlighter.quote"},{foreground:"b31d28",token:"brackethighlighter.unmatched"},{foreground:"b31d28",token:"sublimelinter.mark.error"},{foreground:"e36209",token:"sublimelinter.mark.warning"},{foreground:"959da5",token:"sublimelinter.gutter-mark"},{foreground:"032f62",fontStyle:"underline",token:"constant.other.reference.link"},{foreground:"032f62",fontStyle:"underline",token:"string.other.link"}],colors:{"editor.foreground":"#24292e","editor.background":"#ffffff","editor.selectionBackground":"#c8c8fa","editor.inactiveSelectionBackground":"#fafbfc","editor.lineHighlightBackground":"#fafbfc","editorCursor.foreground":"#24292e","editorWhitespace.foreground":"#959da5","editorIndentGuide.background":"#959da5","editorIndentGuide.activeBackground":"#24292e","editor.selectionHighlightBorder":"#fafbfc"}}),s.editor.setTheme("solarized-light")}})})},Yd=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,o=r===void 0?"job":r,i=ue.queue.addJob.useMutation({onSuccess:function(){dr.success("New job has been added"),n()},onError:function(P){dr.error(P.message)}}),a=i.mutate,s=i.status,l=ue.queue.addJobScheduler.useMutation({onSuccess:function(){dr.success("New job scheduler has been added"),n()},onError:function(P){dr.error(P.message)}}),u=l.mutate,h=l.status,c=d.useState("{}"),p=c[0],f=c[1],g=d.useState(JSON.stringify({name:"",data:{},opts:{}},null,2)),m=g[0],v=g[1],b=d.useState(JSON.stringify({pattern:"0 0 * * *",tz:Intl.DateTimeFormat().resolvedOptions().timeZone},null,2)),x=b[0],w=b[1],S=o==="job",k=S?s:h;return y.jsx(u1,{isOpen:!0,onOpenChange:function(P){P||n()},children:y.jsx(Ka,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Na,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(P){var R=P.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){R(),n()},children:y.jsx(eu,{})}),y.jsx("div",{className:"flex items-center space-x-4",children:y.jsxs(Aa,{className:"mb-1 text-xl font-semibold text-slate-900 dark:text-slate-100",children:["Add ",S?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),S?y.jsx(Ds,{value:p,onChange:f}):y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),y.jsx(Ds,{value:m,onChange:v})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx(Ds,{value:x,onChange:w})]})]}),y.jsx("div",{children:y.jsx(xn,{label:S?"Add job":"Add scheduler",variant:"filled",disabled:k==="pending",onClick:function(){try{if(S){var M=JSON.parse(p);a({queueName:t.name,data:M})}else{var _=JSON.parse(m),D=JSON.parse(x);u({queueName:t.name,template:_,opts:D})}}catch{dr.error("Invalid JSON")}}})})]})}})})})},NS=function(e){var t=e.queue,n=ue.queue.pause.useMutation().mutate,r=ue.queue.resume.useMutation().mutate,o=ue.queue.empty.useMutation().mutate,i=d.useState(!1),a=i[0],s=i[1],l=d.useState(!1),u=l[0],h=l[1],c={queueName:t.name},p=Be(Be(Be(Be([],t.supports.pause&&t.supports.resume?[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?y.jsx(E0,{}):y.jsx(S0,{})}]:[],!0),[{label:"Add job",onSelect:function(){s(!0)},icon:y.jsx(uc,{})}],!1),t.supports.schedulers?[{label:"Add scheduler",onSelect:function(){h(!0)},icon:y.jsx(uc,{})}]:[],!0),t.supports.empty?[{label:"Empty",onSelect:function(){o(c)},icon:y.jsx(zr,{})}]:[],!0);return y.jsxs(y.Fragment,{children:[y.jsx(Va,{actions:p}),a?y.jsx(Yd,{queue:t,variant:"job",onDismiss:function(){return s(!1)}}):null,u?y.jsx(Yd,{queue:t,variant:"scheduler",onDismiss:function(){return h(!1)}}):null]})},kg={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(globalThis,()=>(()=>{var n={949:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CronParser=void 0;var u=l(515),h=function(){function c(p,f,g){f===void 0&&(f=!0),g===void 0&&(g=!1),this.expression=p,this.dayOfWeekStartIndexZero=f,this.monthStartIndexZero=g}return c.prototype.parse=function(){var p,f,g=(p=this.expression)!==null&&p!==void 0?p:"";if(g==="@reboot")return f=["@reboot","","","","","",""],f;if(g.startsWith("@")){var m=this.parseSpecial(this.expression);f=this.extractParts(m)}else f=this.extractParts(this.expression);return this.normalize(f),this.validate(f),f},c.prototype.parseSpecial=function(p){var f={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},g=f[p];if(!g)throw new Error("Unknown special expression.");return g},c.prototype.extractParts=function(p){if(!this.expression)throw new Error("cron expression is empty");for(var f=p.trim().split(/[ ]+/),g=0;g<f.length;g++)if(f[g].includes(",")){var m=f[g].split(",").map(function(b){return b.trim()}).filter(function(b){return b!==""}).map(function(b){return isNaN(Number(b))?b:Number(b)}).filter(function(b){return b!==null&&b!==""});m.length===0&&m.push("*"),m.sort(function(b,x){return b!==null&&x!==null?b-x:0}),f[g]=m.map(function(b){return b!==null?b.toString():""}).join(",")}if(f.length<5)throw new Error("Expression has only ".concat(f.length," part").concat(f.length==1?"":"s",". At least 5 parts are required."));if(f.length==5)f.unshift(""),f.push("");else if(f.length==6){var v=/\d{4}$/.test(f[5])||f[4]=="?"||f[2]=="?";v?f.unshift(""):f.push("")}else if(f.length>7)throw new Error("Expression has ".concat(f.length," parts; too many!"));return f},c.prototype.normalize=function(p){var f=this;if(p[3]=p[3].replace("?","*"),p[5]=p[5].replace("?","*"),p[2]=p[2].replace("?","*"),p[0].indexOf("0/")==0&&(p[0]=p[0].replace("0/","*/")),p[1].indexOf("0/")==0&&(p[1]=p[1].replace("0/","*/")),p[2].indexOf("0/")==0&&(p[2]=p[2].replace("0/","*/")),p[3].indexOf("1/")==0&&(p[3]=p[3].replace("1/","*/")),p[4].indexOf("1/")==0&&(p[4]=p[4].replace("1/","*/")),p[6].indexOf("1/")==0&&(p[6]=p[6].replace("1/","*/")),p[5]=p[5].replace(/(^\d)|([^#/\s]\d)/g,function(k){var P=k.replace(/\D/,""),R=P;return f.dayOfWeekStartIndexZero?P=="7"&&(R="0"):R=(parseInt(P)-1).toString(),k.replace(P,R)}),p[5]=="L"&&(p[5]="6"),p[3]=="?"&&(p[3]="*"),p[3].indexOf("W")>-1&&(p[3].indexOf(",")>-1||p[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var g={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var m in g)p[5]=p[5].replace(new RegExp(m,"gi"),g[m].toString());p[4]=p[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(k){var P=k.replace(/\D/,""),R=P;return f.monthStartIndexZero&&(R=(parseInt(P)+1).toString()),k.replace(P,R)});var v={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var b in v)p[4]=p[4].replace(new RegExp(b,"gi"),v[b].toString());p[0]=="0"&&(p[0]=""),!/\*|\-|\,|\//.test(p[2])&&(/\*|\//.test(p[1])||/\*|\//.test(p[0]))&&(p[2]+="-".concat(p[2]));for(var x=0;x<p.length;x++)if(p[x].indexOf(",")!=-1&&(p[x]=p[x].split(",").filter(function(k){return k!==""}).join(",")||"*"),p[x]=="*/1"&&(p[x]="*"),p[x].indexOf("/")>-1&&!/^\*|\-|\,/.test(p[x])){var w=null;switch(x){case 4:w="12";break;case 5:w="6";break;case 6:w="9999";break;default:w=null;break}if(w!==null){var S=p[x].split("/");p[x]="".concat(S[0],"-").concat(w,"/").concat(S[1])}}},c.prototype.validate=function(p){var f="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(p[0],f),this.validateOnlyExpectedCharactersFound(p[1],f),this.validateOnlyExpectedCharactersFound(p[2],f),this.validateOnlyExpectedCharactersFound(p[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(p[4],f),this.validateOnlyExpectedCharactersFound(p[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(p[6],f),this.validateAnyRanges(p)},c.prototype.validateAnyRanges=function(p){u.default.secondRange(p[0]),u.default.minuteRange(p[1]),u.default.hourRange(p[2]),u.default.dayOfMonthRange(p[3]),u.default.monthRange(p[4],this.monthStartIndexZero),u.default.dayOfWeekRange(p[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(p,f){var g=p.match(new RegExp("[^".concat(f,"]+"),"gi"));if(g&&g.length)throw new Error("Expression contains invalid values: '".concat(g.toString(),"'"))},c}();s.CronParser=h},333:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExpressionDescriptor=void 0;var u=l(823),h=l(949),c=function(){function p(f,g){if(this.expression=f,this.options=g,this.expressionParts=new Array(5),!this.options.locale&&p.defaultLocale&&(this.options.locale=p.defaultLocale),!p.locales[this.options.locale]){var m=Object.keys(p.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(m,"'.")),this.options.locale=m}this.i18n=p.locales[this.options.locale],g.use24HourTimeFormat===void 0&&(g.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return p.toString=function(f,g){var m=g===void 0?{}:g,v=m.throwExceptionOnParseError,b=v===void 0?!0:v,x=m.verbose,w=x===void 0?!1:x,S=m.dayOfWeekStartIndexZero,k=S===void 0?!0:S,P=m.monthStartIndexZero,R=P===void 0?!1:P,M=m.use24HourTimeFormat,_=m.locale,D=_===void 0?null:_,j={throwExceptionOnParseError:b,verbose:w,dayOfWeekStartIndexZero:k,monthStartIndexZero:R,use24HourTimeFormat:M,locale:D};j.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var K=new p(f,j);return K.getFullDescription()},p.initialize=function(f,g){g===void 0&&(g="en"),p.specialCharacters=["/","-",",","*"],p.defaultLocale=g,f.load(p.locales)},p.prototype.getFullDescription=function(){var f,g,m="";try{var v=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=v.parse(),this.expressionParts[0]==="@reboot")return((g=(f=this.i18n).atReboot)===null||g===void 0?void 0:g.call(f))||"Run once, at startup";var b=this.getTimeOfDayDescription(),x=this.getDayOfMonthDescription(),w=this.getMonthDescription(),S=this.getDayOfWeekDescription(),k=this.getYearDescription();m+=b+x+S+w+k,m=this.transformVerbosity(m,!!this.options.verbose),m=m.charAt(0).toLocaleUpperCase()+m.substr(1)}catch(P){if(!this.options.throwExceptionOnParseError)m=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(P)}return m},p.prototype.getTimeOfDayDescription=function(){var f=this.expressionParts[0],g=this.expressionParts[1],m=this.expressionParts[2],v="";if(!u.StringUtilities.containsAny(g,p.specialCharacters)&&!u.StringUtilities.containsAny(m,p.specialCharacters)&&!u.StringUtilities.containsAny(f,p.specialCharacters))v+=this.i18n.atSpace()+this.formatTime(m,g,f);else if(!f&&g.indexOf("-")>-1&&!(g.indexOf(",")>-1)&&!(g.indexOf("/")>-1)&&!u.StringUtilities.containsAny(m,p.specialCharacters)){var b=g.split("-");v+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(m,b[0],""),this.formatTime(m,b[1],""))}else if(!f&&m.indexOf(",")>-1&&m.indexOf("-")==-1&&m.indexOf("/")==-1&&!u.StringUtilities.containsAny(g,p.specialCharacters)){var x=m.split(",");v+=this.i18n.at();for(var w=0;w<x.length;w++)v+=" ",v+=this.formatTime(x[w],g,""),w<x.length-2&&(v+=","),w==x.length-2&&(v+=this.i18n.spaceAnd())}else{var S=this.getSecondsDescription(),k=this.getMinutesDescription(),P=this.getHoursDescription();if(v+=S,v&&k&&(v+=", "),v+=k,k===P)return v;v&&P&&(v+=", "),v+=P}return v},p.prototype.getSecondsDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(m){return m},function(m){return u.StringUtilities.format(f.i18n.everyX0Seconds(m),m)},function(m){return f.i18n.secondsX0ThroughX1PastTheMinute()},function(m){return m=="0"?"":parseInt(m)<20?f.i18n.atX0SecondsPastTheMinute(m):f.i18n.atX0SecondsPastTheMinuteGt20()||f.i18n.atX0SecondsPastTheMinute(m)});return g},p.prototype.getMinutesDescription=function(){var f=this,g=this.expressionParts[0],m=this.expressionParts[2],v=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(b){return b},function(b){return u.StringUtilities.format(f.i18n.everyX0Minutes(b),b)},function(b){return f.i18n.minutesX0ThroughX1PastTheHour()},function(b){try{return b=="0"&&m.indexOf("/")==-1&&g==""?f.i18n.everyHour():parseInt(b)<20?f.i18n.atX0MinutesPastTheHour(b):f.i18n.atX0MinutesPastTheHourGt20()||f.i18n.atX0MinutesPastTheHour(b)}catch{return f.i18n.atX0MinutesPastTheHour(b)}});return v},p.prototype.getHoursDescription=function(){var f=this,g=this.expressionParts[2],m=0,v=[];g.split("/")[0].split(",").forEach(function(w){var S=w.split("-");S.length===2&&v.push({value:S[1],index:m+1}),m+=S.length});var b=0,x=this.getSegmentDescription(g,this.i18n.everyHour(),function(w){var S=v.find(function(P){return P.value===w&&P.index===b}),k=S&&f.expressionParts[1]!=="0";return b++,k?f.formatTime(w,"59",""):f.formatTime(w,"0","")},function(w){return u.StringUtilities.format(f.i18n.everyX0Hours(w),w)},function(w){return f.i18n.betweenX0AndX1()},function(w){return f.i18n.atX0()});return x},p.prototype.getDayOfWeekDescription=function(){var f=this,g=this.i18n.daysOfTheWeek(),m=null;return this.expressionParts[5]=="*"?m="":m=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(v,b){var x=v;v.indexOf("#")>-1?x=v.substring(0,v.indexOf("#")):v.indexOf("L")>-1&&(x=x.replace("L",""));var w=parseInt(x),S=f.i18n.daysOfTheWeekInCase?f.i18n.daysOfTheWeekInCase(b)[w]:g[w];if(v.indexOf("#")>-1){var k=null,P=v.substring(v.indexOf("#")+1),R=v.substring(0,v.indexOf("#"));switch(P){case"1":k=f.i18n.first(R);break;case"2":k=f.i18n.second(R);break;case"3":k=f.i18n.third(R);break;case"4":k=f.i18n.fourth(R);break;case"5":k=f.i18n.fifth(R);break}S=k+" "+S}return S},function(v){return parseInt(v)==1?"":u.StringUtilities.format(f.i18n.commaEveryX0DaysOfTheWeek(v),v)},function(v){var b=v.substring(0,v.indexOf("-")),x=f.expressionParts[3]!="*";return x?f.i18n.commaAndX0ThroughX1(b):f.i18n.commaX0ThroughX1(b)},function(v){var b=null;if(v.indexOf("#")>-1){var x=v.substring(v.indexOf("#")+1),w=v.substring(0,v.indexOf("#"));b=f.i18n.commaOnThe(x,w).trim()+f.i18n.spaceX0OfTheMonth()}else if(v.indexOf("L")>-1)b=f.i18n.commaOnTheLastX0OfTheMonth(v.replace("L",""));else{var S=f.expressionParts[3]!="*";b=S?f.i18n.commaAndOnX0():f.i18n.commaOnlyOnX0(v)}return b}),m},p.prototype.getMonthDescription=function(){var f=this,g=this.i18n.monthsOfTheYear(),m=this.getSegmentDescription(this.expressionParts[4],"",function(v,b){return b&&f.i18n.monthsOfTheYearInCase?f.i18n.monthsOfTheYearInCase(b)[parseInt(v)-1]:g[parseInt(v)-1]},function(v){return parseInt(v)==1?"":u.StringUtilities.format(f.i18n.commaEveryX0Months(v),v)},function(v){return f.i18n.commaMonthX0ThroughMonthX1()||f.i18n.commaX0ThroughX1()},function(v){return f.i18n.commaOnlyInMonthX0?f.i18n.commaOnlyInMonthX0():f.i18n.commaOnlyInX0()});return m},p.prototype.getDayOfMonthDescription=function(){var f=this,g=null,m=this.expressionParts[3];switch(m){case"L":g=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":g=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var v=m.match(/(\d{1,2}W)|(W\d{1,2})/);if(v){var b=parseInt(v[0].replace("W","")),x=b==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());g=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),x);break}else{var w=m.match(/L-(\d{1,2})/);if(w){var S=w[1];g=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(S),S);break}else{if(m=="*"&&this.expressionParts[5]!="*")return"";g=this.getSegmentDescription(m,this.i18n.commaEveryDay(),function(k){return k=="L"?f.i18n.lastDay():f.i18n.dayX0?u.StringUtilities.format(f.i18n.dayX0(),k):k},function(k){return k=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days(k)},function(k){return f.i18n.commaBetweenDayX0AndX1OfTheMonth(k)},function(k){return f.i18n.commaOnDayX0OfTheMonth(k)})}break}}return g},p.prototype.getYearDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[6],"",function(m){return/^\d+$/.test(m)?new Date(parseInt(m),1).getFullYear().toString():m},function(m){return u.StringUtilities.format(f.i18n.commaEveryX0Years(m),m)},function(m){return f.i18n.commaYearX0ThroughYearX1()||f.i18n.commaX0ThroughX1()},function(m){return f.i18n.commaOnlyInYearX0?f.i18n.commaOnlyInYearX0():f.i18n.commaOnlyInX0()});return g},p.prototype.getSegmentDescription=function(f,g,m,v,b,x){var w=null,S=f.indexOf("/")>-1,k=f.indexOf("-")>-1,P=f.indexOf(",")>-1;if(!f)w="";else if(f==="*")w=g;else if(!S&&!k&&!P)w=u.StringUtilities.format(x(f),m(f));else if(P){for(var R=f.split(","),M="",_=0;_<R.length;_++)if(_>0&&R.length>2&&(M+=",",_<R.length-1&&(M+=" ")),_>0&&R.length>1&&(_==R.length-1||R.length==2)&&(M+="".concat(this.i18n.spaceAnd()," ")),R[_].indexOf("/")>-1||R[_].indexOf("-")>-1){var D=R[_].indexOf("-")>-1&&R[_].indexOf("/")==-1,j=this.getSegmentDescription(R[_],g,m,v,D?this.i18n.commaX0ThroughX1:b,x);D&&(j=j.replace(", ","")),M+=j}else S?M+=this.getSegmentDescription(R[_],g,m,v,b,x):M+=m(R[_]);S?w=M:w=u.StringUtilities.format(x(f),M)}else if(S){var R=f.split("/");if(w=u.StringUtilities.format(v(R[1]),R[1]),R[0].indexOf("-")>-1){var K=this.generateRangeSegmentDescription(R[0],b,m);K.indexOf(", ")!=0&&(w+=", "),w+=K}else if(R[0].indexOf("*")==-1){var I=u.StringUtilities.format(x(R[0]),m(R[0]));I=I.replace(", ",""),w+=u.StringUtilities.format(this.i18n.commaStartingX0(),I)}}else k&&(w=this.generateRangeSegmentDescription(f,b,m));return w},p.prototype.generateRangeSegmentDescription=function(f,g,m){var v="",b=f.split("-"),x=m(b[0],1),w=m(b[1],2),S=g(f);return v+=u.StringUtilities.format(S,x,w),v},p.prototype.formatTime=function(f,g,m){var v=0,b=0,x=parseInt(f)+v,w=parseInt(g)+b;w>=60?(w-=60,x+=1):w<0&&(w+=60,x-=1),x>=24?x=x-24:x<0&&(x=24+x);var S="",k=!1;this.options.use24HourTimeFormat||(k=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),S=k?"".concat(this.getPeriod(x)," "):" ".concat(this.getPeriod(x)),x>12&&(x-=12),x===0&&(x=12));var P="";return m&&(P=":".concat(("00"+m).substring(m.length))),"".concat(k?S:"").concat(("00"+x.toString()).substring(x.toString().length),":").concat(("00"+w.toString()).substring(w.toString().length)).concat(P).concat(k?"":S)},p.prototype.transformVerbosity=function(f,g){if(!g&&(f=f.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),f=f.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),f=f.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),f=f.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var m=0,v=Object.entries(this.i18n.conciseVerbosityReplacements());m<v.length;m++){var b=v[m],x=b[0],w=b[1];f=f.replace(new RegExp(x,"g"),w)}return f},p.prototype.getPeriod=function(f){return f>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},p.locales={},p}();s.ExpressionDescriptor=c},747:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.enLocaleLoader=void 0;var u=l(486),h=function(){function c(){}return c.prototype.load=function(p){p.en=new u.en},c}();s.enLocaleLoader=h},486:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.en=void 0;var l=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},u.prototype.everyMinute=function(){return"every minute"},u.prototype.everyHour=function(){return"every hour"},u.prototype.atSpace=function(){return"At "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},u.prototype.at=function(){return"At"},u.prototype.spaceAnd=function(){return" and"},u.prototype.everySecond=function(){return"every second"},u.prototype.everyX0Seconds=function(){return"every %s seconds"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},u.prototype.everyX0Minutes=function(){return"every %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},u.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},u.prototype.everyX0Hours=function(){return"every %s hours"},u.prototype.betweenX0AndX1=function(){return"between %s and %s"},u.prototype.atX0=function(){return"at %s"},u.prototype.commaEveryDay=function(){return", every day"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},u.prototype.commaX0ThroughX1=function(){return", %s through %s"},u.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},u.prototype.first=function(){return"first"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"third"},u.prototype.fourth=function(){return"fourth"},u.prototype.fifth=function(){return"fifth"},u.prototype.commaOnThe=function(){return", on the "},u.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},u.prototype.lastDay=function(){return"the last day"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},u.prototype.commaOnlyOnX0=function(){return", only on %s"},u.prototype.commaAndOnX0=function(){return", and on %s"},u.prototype.commaEveryX0Months=function(){return", every %s months"},u.prototype.commaOnlyInX0=function(){return", only in %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},u.prototype.firstWeekday=function(){return"first weekday"},u.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},u.prototype.commaEveryX0Days=function(){return", every %s days"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},u.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},u.prototype.commaEveryHour=function(){return", every hour"},u.prototype.commaEveryX0Years=function(){return", every %s years"},u.prototype.commaStartingX0=function(){return", starting %s"},u.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},u.prototype.atReboot=function(){return"Run once, at startup"},u}();s.en=l},515:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0});function l(h,c){if(!h)throw new Error(c)}var u=function(){function h(){}return h.secondRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=1&&g<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(c,p){for(var f=c.split(","),g=0;g<f.length;g++)if(!isNaN(parseInt(f[g],10))){var m=parseInt(f[g],10);l(m>=1&&m<=12,p?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(c,p){for(var f=c.split(","),g=0;g<f.length;g++)if(!isNaN(parseInt(f[g],10))){var m=parseInt(f[g],10);l(m>=0&&m<=6,p?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();s.default=u},823:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StringUtilities=void 0;var l=function(){function u(){}return u.format=function(h){for(var c=[],p=1;p<arguments.length;p++)c[p-1]=arguments[p];return h.replace(/%s/g,function(f){return c.shift()})},u.containsAny=function(h,c){return c.some(function(p){return h.indexOf(p)>-1})},u}();s.StringUtilities=l}},r={};function o(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return n[a](l,l.exports,o),l.exports}var i={};return(()=>{var a=i;Object.defineProperty(a,"__esModule",{value:!0}),a.toString=void 0;var s=o(333),l=o(747);s.ExpressionDescriptor.initialize(new l.enLocaleLoader),a.default=s.ExpressionDescriptor;var u=s.ExpressionDescriptor.toString;a.toString=u})(),i})())})(kg);var AS=kg.exports;const KS=cf(AS);var BS=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,o=ue.scheduler.remove.useMutation(),i=o.mutate,a=o.isSuccess;return d.useEffect(function(){a&&(r==null||r())},[a,r]),y.jsx(Va,{actions:[{label:"Remove",onSelect:function(){i({queueName:n,jobSchedulerId:t.key})},icon:y.jsx(zr,{})}]})},HS=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,o=t.template,i=_r({},t);return delete i.template,y.jsx(Ka,{isOpen:!0,isDismissable:!0,onOpenChange:function(a){a||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Na,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(a){var s=a.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),s()},children:y.jsx(eu,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Aa,{className:"mb-1 flex items-center space-x-2",children:[y.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),y.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),y.jsx(BS,{queueName:n,scheduler:t,onRemove:r})]}),y.jsxs("div",{children:[y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:i,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 pt-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:o,theme:"monokai"})})]})]})]})}})})},Di=h1();function VS(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),r=n.formatToParts(t),o=r.find(function(i){return i.type==="timeZoneName"});return(o==null?void 0:o.value)||""}var zS=function(e){return[Di.display({id:"select",header:function(t){var n=t.table;return y.jsx(ca,{checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),onCheckedChange:function(){n.toggleAllRowsSelected()}})},cell:function(t){var n=t.row,r=t.table;return y.jsx(ca,{className:r.getIsSomeRowsSelected()||r.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:n.getIsSomeSelected()?"indeterminate":n.getIsSelected(),onCheckedChange:function(o){n.getToggleSelectedHandler()(o),e(n.index)}})}}),Di.accessor("name",{cell:function(t){return y.jsx("div",{className:"flex w-full items-center space-x-2",children:y.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:t.cell.row.original.name})})},header:"Scheduler"}),Di.accessor("pattern",{cell:function(t){return y.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[t.cell.row.original.pattern?KS.toString(t.cell.row.original.pattern,{verbose:!0}):t.cell.row.original.every?"Every ".concat(t.cell.row.original.every):""," ",t.cell.row.original.tz?"(".concat(VS(t.cell.row.original.tz),")"):""]})},header:"Pattern"}),Di.accessor("next",{cell:function(t){return t.cell.row.original.next?y.jsx(Ru,{message:O1(new Date(t.cell.row.original.next),"dd MMM yyyy HH:mm:ss zzz"),children:y.jsx("div",{className:"flex items-center space-x-1.5",children:y.jsxs("p",{className:"text-slate-900 dark:text-slate-200",children:["In ",T1(new Date(t.cell.row.original.next))," ",y.jsxs("span",{className:"text-sm text-slate-700 dark:text-slate-400",children:["(",t.cell.row.original.iterationCount," run",t.cell.row.original.iterationCount===1?"":"s"," total)"]})]})})}):y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:"No next run"})},header:"Next Run"})]},US=function(e){var t=e.queueName,n=d.useState({}),r=n[0],o=n[1],i=d.useRef(null),a=ue.scheduler.list.useQuery({queueName:t}),s=a.data,l=a.isLoading,u=(s==null?void 0:s.length)===0,h=function(x){i.current=x},c=zS(h),p=S1({data:s||[],columns:c,getCoreRowModel:$1(),state:{rowSelection:r},onRowSelectionChange:o}),f=d.useState(null),g=f[0],m=f[1],v=ue.scheduler.bulkRemove.useMutation().mutate,b=function(x,w){if(x.shiftKey&&i.current!==null){x.preventDefault();for(var S=Math.min(i.current,w),k=Math.max(i.current,w),P=_r({},r),R=S;R<=k;R++)P[R]=!0;o(P)}else m(p.getRowModel().rows[w].original),i.current=w};return!l&&u?null:y.jsxs("div",{children:[g?y.jsx(HS,{scheduler:g,queueName:t,onDismiss:function(){return m(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:l?y.jsx(_1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(x,w){return y.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,1fr,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:x.headers.map(function(S){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(w!==0?"pr-10":"pr-3"),children:S.isPlaceholder?null:aa(S.column.columnDef.header,S.getContext())},S.id)})},x.id)}),p.getRowModel().rows.map(function(x,w){return y.jsx(D1,{isLastRow:p.getRowModel().rows.length!==w+1,isSelected:x.getIsSelected(),onClick:function(S){return b(S,w)},layoutVariant:"scheduler",children:x.getVisibleCells().map(function(S,k){return y.jsx("div",{className:"flex h-full items-center ".concat(k!==0?"pr-10":"pr-3"),children:aa(S.column.columnDef.cell,S.getContext())},S.id)})},x.id)})]})}),p.getSelectedRowModel().rows.length>0?y.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:y.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[y.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[p.getSelectedRowModel().rows.length," selected"]}),y.jsx(xn,{label:"Delete",colorScheme:"red",icon:y.jsx(zr,{}),size:"sm",onClick:function(){v({queueName:t,jobSchedulerIds:p.getSelectedRowModel().rows.map(function(x){return x.original.key})}),p.resetRowSelection()}})]})}):null]})},_i=function(e){var t=e.label,n=e.value,r=e.trend,o=e.variant,i=o===void 0?"completed":o,a=i==="completed"?r!=null&&r.isPositive?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":r!=null&&r.isPositive?"text-red-600 dark:text-red-400":"text-green-600 dark:text-green-400";return y.jsxs("div",{className:"group flex flex-col space-y-2 rounded-xl border border-slate-200/80 bg-white/80 px-4 py-3 backdrop-blur-sm transition-all duration-200 hover:border-slate-300 hover:shadow-sm dark:border-slate-700/50 dark:bg-slate-900/50 dark:hover:border-slate-600",children:[y.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500 dark:text-slate-400",children:t}),y.jsxs("div",{className:"flex items-baseline space-x-2",children:[y.jsx("p",{className:"font-mono text-2xl font-semibold tabular-nums leading-none text-slate-900 dark:text-slate-50",children:typeof n=="number"?n.toLocaleString():n}),r&&y.jsxs("div",{className:"flex items-center space-x-0.5 font-mono text-xs font-medium ".concat(a),children:[r.isPositive?y.jsx(M2,{width:11,height:11}):y.jsx(R2,{width:11,height:11}),y.jsxs("span",{children:[Math.abs(r.value),"%"]})]})]})]})},sr={"1m":{label:"Last minute",minutes:1},"1h":{label:"Last hour",minutes:60},"24h":{label:"Last 24 hours",minutes:1440},"7d":{label:"Last 7 days",minutes:10080}},qS=function(e){var t=e.queueName,n=d.useState("1h"),r=n[0],o=n[1],i=ue.queue.metrics.useQuery({queueName:t,type:"completed",start:0,end:sr[r].minutes},{enabled:!!t,refetchInterval:Fo}),a=i.data,s=i.isLoading,l=ue.queue.metrics.useQuery({queueName:t,type:"failed",start:0,end:sr[r].minutes},{enabled:!!t,refetchInterval:Fo}),u=l.data,h=l.isLoading,c=s||h,p=function(b,x){if(x===0)return null;var w=(b-x)/x*100;return{value:Math.round(Math.abs(w)),isPositive:w>0}},f=a&&p(a.count,a.meta.prevCount),g=u&&p(u.count,u.meta.prevCount),m=a?(a.count/sr[r].minutes).toFixed(1):"0";u&&(u.count/sr[r].minutes).toFixed(1);var v=a&&u?a.count+u.count>0?(a.count/(a.count+u.count)*100).toFixed(1):"100":"0";return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold tracking-tight text-slate-900 dark:text-slate-50",children:"Metrics"}),y.jsx("div",{className:"flex items-center space-x-0.5 rounded-lg border border-slate-200/80 bg-white/80 p-0.5 backdrop-blur-sm dark:border-slate-700/50 dark:bg-slate-900/50",children:Object.keys(sr).map(function(b){return y.jsx("button",{onClick:function(){return o(b)},className:"rounded-md px-2.5 py-1 text-xs font-medium transition-all duration-150 ".concat(r===b?"bg-slate-100 text-slate-900 shadow-sm dark:bg-slate-800 dark:text-slate-100":"text-slate-600 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-400 dark:hover:bg-slate-800/50 dark:hover:text-slate-100"),children:sr[b].label},b)})})]}),c?y.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:Be([],Array(4),!0).map(function(b,x){return y.jsx(Ro,{className:"h-[88px] rounded-xl"},x)})}):y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[y.jsx(_i,{label:"Completed",value:(a==null?void 0:a.count)||0,trend:f||void 0,variant:"completed"}),y.jsx(_i,{label:"Failed",value:(u==null?void 0:u.count)||0,trend:g||void 0,variant:"failed"}),y.jsx(_i,{label:"Success Rate",value:"".concat(v,"%")}),y.jsx(_i,{label:"Throughput",value:"".concat(m,"/min")})]})]})},_s=new Intl.NumberFormat("en-US").format,WS=function(){var e,t,n,r,o,i=Ob().id,a=i,s=x2()[0],l=d.useState("completed"),u=l[0],h=l[1],c=ue.job.list.useInfiniteQuery({queueName:a,limit:_l,status:u},{getNextPageParam:function(S){return S.nextCursor},enabled:!!a,refetchInterval:Fo,retry:Ll}),p=c.data,f=c.fetchNextPage,g=c.isLoading,m=c.isError,v=c.isFetchingNextPage,b=c.hasNextPage;d.useEffect(function(){var S=s.get("status");S&&h(S),!S&&u&&h("completed")},[s,u]);var x=ue.queue.byName.useQuery({queueName:a},{enabled:!!a,refetchInterval:Fo,retry:Ll}),w=(e=p==null?void 0:p.pages.map(function(S){return S.jobs}).flat())!==null&&e!==void 0?e:[];return y.jsx(f1,{children:x.data===null?y.jsx(Pl,{message:"No queue found"}):m?y.jsx(Pl,{message:"Could not fetch jobs"}):y.jsxs("div",{children:[y.jsx("div",{className:"mb-2 flex justify-between",children:y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-slate-50",children:x.data?x.data.displayName:y.jsx(Ro,{className:"h-8 w-52 rounded-md"})}),y.jsxs("div",{className:"flex items-center space-x-2",children:[x.data?y.jsx(NS,{queue:x.data}):null,!((t=x.data)===null||t===void 0)&&t.paused?y.jsx("div",{className:"flex h-7 cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:y.jsx("span",{children:"Paused"})}):null]})]})}),y.jsx("div",{className:"mb-5",children:y.jsx("div",{className:"flex items-center space-x-2",children:x.data?y.jsxs(y.Fragment,{children:[y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[y.jsxs("span",{className:"text-green-800 dark:text-green-400",children:[_s(x.data.client.connectedClients)," ","connected"]})," ","and"," ",y.jsxs("span",{className:"text-red-800 dark:text-red-400",children:[_s(x.data.client.blockedClients)," ","blocked"]})," ","out of"," ",y.jsxs("span",{className:"text-slate-900 dark:text-slate-100",children:[_s(x.data.client.maxClients)," max clients"]})]}),y.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[x.data.client.usedMemoryHuman," /"," ",x.data.client.totalMemoryHuman," (",(x.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),y.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:["Redis v",x.data.client.version]})]}):y.jsx(Ro,{className:"h-6 w-80"})})}),y.jsxs("div",{className:"space-y-8",children:[!((n=x.data)===null||n===void 0)&&n.supports.metrics?y.jsx(qS,{queueName:a}):null,!((r=x.data)===null||r===void 0)&&r.supports.schedulers?y.jsx(US,{queueName:a}):null,y.jsxs("div",{className:"space-y-4",children:[y.jsx(k$,{showCleanAllButton:w.length>0,queueName:a,status:u,queue:x.data}),y.jsx(JC,{onBottomInView:function(){v||!b||f()},status:u,totalJobs:((o=p==null?void 0:p.pages.at(-1))===null||o===void 0?void 0:o.totalCount)||0,jobs:w.map(function(S){return _r(_r({},S),{status:u})}),isLoading:g,isFetchingNextPage:v,queueName:a})]})]})]})})},Li=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600 dark:text-cyan-400",completed:"text-green-600 dark:text-green-400",failed:"text-red-600 dark:text-red-400",waiting:"text-amber-600 dark:text-amber-400"},o={active:y.jsx(P0,{width:16,height:16}),completed:y.jsx(C0,{width:16,height:16}),failed:y.jsx($0,{width:16,height:16}),waiting:y.jsx(o5,{width:16,height:16})};return y.jsx("div",{children:y.jsx(Ru,{message:n.charAt(0).toUpperCase()+n.slice(1),children:y.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(r[n]),children:[y.jsx("p",{className:"text-lg",children:t}),o[n]]})})})},GS=function(e){var t=e.queueName,n=ue.queue.byName.useQuery({queueName:t},{refetchInterval:Fo,retry:Ll});return n.data?y.jsxs(Ra,{to:"../".concat(n.data.name),className:"group flex items-center justify-between transition",children:[y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("p",{className:"py-3 text-lg font-medium text-slate-900 transition group-hover:text-brand-900 dark:text-slate-200 dark:group-hover:text-brand-100",children:n.data.displayName}),y.jsx("div",{children:n.data.paused?y.jsx("div",{className:"flex h-7 items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:y.jsx("span",{children:"Paused"})}):null})]}),y.jsxs("div",{className:"flex space-x-5",children:[y.jsx(Li,{count:n.data.counts.completed,variant:"completed"}),y.jsx(Li,{count:n.data.counts.failed,variant:"failed"}),y.jsx(Li,{count:n.data.counts.active,variant:"active"}),y.jsx(Li,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},QS=function(){var e=ue.queue.list.useQuery().data,t=ue.queue.pauseAll.useMutation().mutate,n=ue.queue.resumeAll.useMutation().mutate;return y.jsx(f1,{children:y.jsxs("div",{className:"xl:max-w-2xl",children:[y.jsxs("div",{className:"flex justify-between",children:[y.jsx("h1",{className:"mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50",children:"Queues"}),y.jsx("div",{children:y.jsx(Va,{actions:[{label:"Resume all",icon:y.jsx(E0,{}),onSelect:function(){return n()}},{label:"Pause all",icon:y.jsx(S0,{}),onSelect:function(){return t()}}]})})]}),y.jsx("div",{children:e==null?void 0:e.map(function(r,o){return y.jsx("div",{className:(e==null?void 0:e.length)-1!==o?"border-b border-slate-100 dark:border-slate-700":"",children:y.jsx(GS,{queueName:r.name},r.name)},r.name)})})]})})},YS=function(e){var t=e.apiUrl,n=e.basename,r=e.headers,o=d.useState(!1),i=o[0],a=o[1],s=d.useState(function(){return new dm})[0],l=d.useState(function(){return ue.createClient({links:[av({url:t,headers:r})]})})[0];return d.useEffect(function(){var u=JSON.parse(localStorage.getItem("user-preferences")||"null");u?u.theme==="dark"||u.theme==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),a(!0)},[]),i?y.jsx(ue.Provider,{client:l,queryClient:s,children:y.jsxs(fm,{client:s,children:[y.jsx(R$,{}),y.jsx(m2,{basename:n,children:y.jsxs(Ub,{children:[y.jsx(ol,{path:"/",element:y.jsx(QS,{})}),y.jsx(ol,{path:"/:id",element:y.jsx(WS,{})})]})})]})}):null};exports.QueueDashApp=YS;
|