react-toolkits 2.22.4 → 2.22.5

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/locale/index.js CHANGED
@@ -1,1349 +1 @@
1
- import {has,template,get}from'lodash-es';import*as dt from'react';import {createContext,useMemo,useContext}from'react';import'antd';import {useStore}from'zustand';import {useQueryClient,onlineManager}from'@tanstack/react-query';import {jsx}from'react/jsx-runtime';import'zustand/middleware';import'jwt-decode';var Yi=Object.defineProperty;var Xi=e=>{throw TypeError(e)};var Qc=(e,t,n)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zr=(e,t)=>()=>(e&&(t=e(e=0)),t);var Zi=(e,t)=>{for(var n in t)Yi(e,n,{get:t[n],enumerable:!0});};var Xe=(e,t,n)=>Qc(e,typeof t!="symbol"?t+"":t,n),Ji=(e,t,n)=>t.has(e)||Xi("Cannot "+n);var j=(e,t,n)=>(Ji(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n)=>t.has(e)?Xi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),re=(e,t,n,r)=>(Ji(e,t,"write to private field"),t.set(e,n),n);function es(e){let t=String(e),n=t.length-1;return Q.context.id+(n?String.fromCharCode(96+n):"")+t}function Yt(e){Q.context=e;}function Wc(){return {...Q.context,id:Q.getNextContextId(),count:0}}function ht(e,t){let n=ae,r=Z,o=e.length===0,i=t===void 0?r:t,s=o?ms:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>ge(()=>zt(s)));Z=s,ae=null;try{return Ne(a,!0)}finally{ae=n,Z=r;}}function q(e,t){t=t?Object.assign({},Hr,t):Hr;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(L&&L.running&&L.sources.has(n)?o=o(n.tValue):o=o(n.value)),Ss(n,o));return [xs.bind(n),r]}function jr(e,t,n){let r=Zr(e,t,!0,Ue);pn&&L&&L.running?ke.push(r):vn(r);}function V(e,t,n){let r=Zr(e,t,!1,Ue);pn&&L&&L.running?ke.push(r):vn(r);}function G(e,t,n){hs=nu;let r=Zr(e,t,!1,Ue);(!n||!n.render)&&(r.user=!0),Fe?Fe.push(r):vn(r);}function T(e,t,n){n=n?Object.assign({},Hr,n):Hr;let r=Zr(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,pn&&L&&L.running?(r.tState=Ue,ke.push(r)):vn(r),xs.bind(r)}function Xc(e){return e&&typeof e=="object"&&"then"in e}function Zc(e,t,n){let r,o,i;r=!0,o=e,i={};let s=null,a=Po,l=null,c=!1,d=!1,u="initialValue"in i,f=typeof r=="function"&&T(r),h=new Set,[g,y]=(i.storage||q)(i.initialValue),[p,v]=q(void 0),[b,w]=q(void 0,{equals:!1}),[x,S]=q(u?"ready":"unresolved");Q.context&&(l=Q.getNextContextId(),i.ssrLoadFrom==="initial"?a=i.initialValue:Q.load&&Q.has(l)&&(a=Q.load(l)));function M(B,K,J,X){return s===B&&(s=null,X!==void 0&&(u=!0),(B===a||K===a)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(X,{value:K})),a=Po,L&&B&&c?(L.promises.delete(B),c=!1,Ne(()=>{L.running=!0,O(K,J);},!1)):O(K,J)),K}function O(B,K){Ne(()=>{K===void 0&&y(()=>B),S(K!==void 0?"errored":u?"ready":"unresolved"),v(K);for(let J of h.keys())J.decrement();h.clear();},!1);}function F(){let B=Yn,K=g(),J=p();if(J!==void 0&&!s)throw J;return ae&&!ae.user&&B&&jr(()=>{b(),s&&(B.resolved?L.promises.add(s):h.has(B)||(B.increment(),h.add(B)));}),K}function C(B=!0){if(B!==!1&&d)return;d=!1;let K=f?f():r;if(c=L&&L.running,K==null||K===!1){M(s,ge(g));return}L&&s&&L.promises.delete(s);let J,X=a!==Po?a:ge(()=>{try{return o(K,{value:g(),refetching:B})}catch(ie){J=ie;}});if(J!==void 0){M(s,void 0,Vr(J),K);return}else if(!Xc(X))return M(s,X,void 0,K),X;return s=X,"v"in X?(X.s===1?M(s,X.v,void 0,K):M(s,void 0,Vr(X.v),K),X):(d=!0,queueMicrotask(()=>d=!1),Ne(()=>{S(u?"refreshing":"pending"),w();},!1),X.then(ie=>M(X,ie,void 0,K),ie=>M(X,void 0,Vr(ie),K)))}Object.defineProperties(F,{state:{get:()=>x()},error:{get:()=>p()},loading:{get(){let B=x();return B==="pending"||B==="refreshing"}},latest:{get(){if(!u)return F();let B=p();if(B&&!s)throw B;return g()}}});let I=Z;return f?jr(()=>(I=Z,C(!1))):C(!1),[F,{refetch:B=>ps(I,()=>C(B)),mutate:y}]}function ys(e){return Ne(e,!1)}function ge(e){if(!mn&&ae===null)return e();let t=ae;ae=null;try{return mn?mn.untrack(e):e()}finally{ae=t;}}function mt(e,t,n){let r=Array.isArray(e),o,i=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]();}else a=e();if(i)return i=!1,s;let l=ge(()=>t(a,o,s));return o=a,l}}function yt(e){G(()=>ge(e));}function H(e){return Z===null||(Z.cleanups===null?Z.cleanups=[e]:Z.cleanups.push(e)),e}function Qr(){return Z}function ps(e,t){let n=Z,r=ae;Z=e,ae=null;try{return Ne(t,!0)}catch(o){Jr(o);}finally{Z=n,ae=r;}}function vs(e){if(L&&L.running)return e(),L.done;let t=ae,n=Z;return Promise.resolve().then(()=>{ae=t,Z=n;let r;return (pn||Yn)&&(r=L||(L={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(o=>r.resolve=o)),r.running=!0),Ne(e,!1),ae=Z=null,r?r.done:void 0})}function bs(){return [Jc,vs]}function Pe(e,t){let n=Symbol("context");return {id:n,Provider:ru(n),defaultValue:e}}function Ee(e){let t;return Z&&Z.context&&(t=Z.context[e.id])!==void 0?t:e.defaultValue}function ws(e){let t=T(e),n=T(()=>Oo(t()));return n.toArray=()=>{let r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function xs(){let e=L&&L.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===Ue)vn(this);else {let t=ke;ke=null,Ne(()=>Wr(this),!1),ke=t;}if(ae){let t=this.observers?this.observers.length:0;ae.sources?(ae.sources.push(this),ae.sourceSlots.push(t)):(ae.sources=[this],ae.sourceSlots=[t]),this.observers?(this.observers.push(ae),this.observerSlots.push(ae.sources.length-1)):(this.observers=[ae],this.observerSlots=[ae.sources.length-1]);}return e&&L.sources.has(this)?this.tValue:this.value}function Ss(e,t,n){let r=L&&L.running&&L.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(L){let o=L.running;(o||!n&&L.sources.has(e))&&(L.sources.add(e),e.tValue=t),o||(e.value=t);}else e.value=t;e.observers&&e.observers.length&&Ne(()=>{for(let o=0;o<e.observers.length;o+=1){let i=e.observers[o],s=L&&L.running;s&&L.disposed.has(i)||((s?!i.tState:!i.state)&&(i.pure?ke.push(i):Fe.push(i),i.observers&&$s(i)),s?i.tState=Ue:i.state=Ue);}if(ke.length>1e6)throw ke=[],new Error},!1);}return t}function vn(e){if(!e.fn)return;zt(e);let t=Xr;rs(e,L&&L.running&&L.sources.has(e)?e.tValue:e.value,t),L&&!L.running&&L.sources.has(e)&&queueMicrotask(()=>{Ne(()=>{L&&(L.running=!0),ae=Z=e,rs(e,e.tValue,t),ae=Z=null;},!1);});}function rs(e,t,n){let r,o=Z,i=ae;ae=Z=e;try{r=e.fn(t);}catch(s){return e.pure&&(L&&L.running?(e.tState=Ue,e.tOwned&&e.tOwned.forEach(zt),e.tOwned=void 0):(e.state=Ue,e.owned&&e.owned.forEach(zt),e.owned=null)),e.updatedAt=n+1,Jr(s)}finally{ae=i,Z=o;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Ss(e,r,!0):L&&L.running&&e.pure?(L.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n);}function Zr(e,t,n,r=Ue,o){let i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Z,context:Z?Z.context:null,pure:n};if(L&&L.running&&(i.state=0,i.tState=r),Z===null||Z!==ms&&(L&&L.running&&Z.pure?Z.tOwned?Z.tOwned.push(i):Z.tOwned=[i]:Z.owned?Z.owned.push(i):Z.owned=[i]),mn&&i.fn){let[s,a]=q(void 0,{equals:!1}),l=mn.factory(i.fn,a);H(()=>l.dispose());let c=()=>vs(a).then(()=>d.dispose()),d=mn.factory(i.fn,c);i.fn=u=>(s(),L&&L.running?d.track(u):l.track(u));}return i}function Xn(e){let t=L&&L.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Wn)return Wr(e);if(e.suspense&&ge(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Xr);){if(t&&L.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let o=e,i=n[r+1];for(;(o=o.owner)&&o!==i;)if(L.disposed.has(o))return}if((t?e.tState:e.state)===Ue)vn(e);else if((t?e.tState:e.state)===Wn){let o=ke;ke=null,Ne(()=>Wr(e,n[0]),!1),ke=o;}}}function Ne(e,t){if(ke)return e();let n=!1;t||(ke=[]),Fe?n=!0:Fe=[],Xr++;try{let r=e();return eu(n),r}catch(r){n||(Fe=null),ke=null,Jr(r);}}function eu(e){if(ke&&(pn&&L&&L.running?tu(ke):Cs(ke),ke=null),e)return;let t;if(L){if(!L.promises.size&&!L.queue.size){let r=L.sources,o=L.disposed;Fe.push.apply(Fe,L.effects),t=L.resolve;for(let i of Fe)"tState"in i&&(i.state=i.tState),delete i.tState;L=null,Ne(()=>{for(let i of o)zt(i);for(let i of r){if(i.value=i.tValue,i.owned)for(let s=0,a=i.owned.length;s<a;s++)zt(i.owned[s]);i.tOwned&&(i.owned=i.tOwned),delete i.tValue,delete i.tOwned,i.tState=0;}ns(!1);},!1);}else if(L.running){L.running=!1,L.effects.push.apply(L.effects,Fe),Fe=null,ns(!0);return}}let n=Fe;Fe=null,n.length&&Ne(()=>hs(n),!1),t&&t();}function Cs(e){for(let t=0;t<e.length;t++)Xn(e[t]);}function tu(e){for(let t=0;t<e.length;t++){let n=e[t],r=L.queue;r.has(n)||(r.add(n),pn(()=>{r.delete(n),Ne(()=>{L.running=!0,Xn(n);},!1),L&&(L.running=!1);}));}}function nu(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Xn(r);}if(Q.context){if(Q.count){Q.effects||(Q.effects=[]),Q.effects.push(...e.slice(0,n));return}Yt();}for(Q.effects&&(Q.done||!Q.count)&&(e=[...Q.effects,...e],n+=Q.effects.length,delete Q.effects),t=0;t<n;t++)Xn(e[t]);}function Wr(e,t){let n=L&&L.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let o=e.sources[r];if(o.sources){let i=n?o.tState:o.state;i===Ue?o!==t&&(!o.updatedAt||o.updatedAt<Xr)&&Xn(o):i===Wn&&Wr(o,t);}}}function $s(e){let t=L&&L.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=Wn:r.state=Wn,r.pure?ke.push(r):Fe.push(r),r.observers&&$s(r));}}function zt(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){let i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)zt(e.tOwned[t]);delete e.tOwned;}if(L&&L.running&&e.pure)ks(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)zt(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}L&&L.running?e.tState=0:e.state=0;}function ks(e,t){if(t||(e.tState=0,L.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)ks(e.owned[n]);}function Vr(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function os(e,t,n){try{for(let r of t)r(e);}catch(r){Jr(r,n&&n.owner||null);}}function Jr(e,t=Z){let n=ts&&t&&t.context&&t.context[ts],r=Vr(e);if(!n)throw r;Fe?Fe.push({fn(){os(r,n,t);},state:Ue}):os(r,n,t);}function Oo(e){if(typeof e=="function"&&!e.length)return Oo(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=Oo(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r);}return t}return e}function ru(e,t){return function(r){let o;return V(()=>o=ge(()=>(Z.context={...Z.context,[e]:r.value},ws(()=>r.children))),void 0),o}}function Yr(e){for(let t=0;t<e.length;t++)e[t]();}function ou(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return H(()=>Yr(i)),()=>{let l=e()||[],c=l.length,d,u;return l[nr],ge(()=>{let h,g,y,p,v,b,w,x,S;if(c===0)s!==0&&(Yr(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[Io],o[0]=ht(M=>(i[0]=M,n.fallback())),s=1);else if(s===0){for(o=new Array(c),u=0;u<c;u++)r[u]=l[u],o[u]=ht(f);s=c;}else {for(y=new Array(c),p=new Array(c),a&&(v=new Array(c)),b=0,w=Math.min(s,c);b<w&&r[b]===l[b];b++);for(w=s-1,x=c-1;w>=b&&x>=b&&r[w]===l[x];w--,x--)y[x]=o[w],p[x]=i[w],a&&(v[x]=a[w]);for(h=new Map,g=new Array(x+1),u=x;u>=b;u--)S=l[u],d=h.get(S),g[u]=d===void 0?-1:d,h.set(S,u);for(d=b;d<=w;d++)S=r[d],u=h.get(S),u!==void 0&&u!==-1?(y[u]=o[d],p[u]=i[d],a&&(v[u]=a[d]),u=g[u],h.set(S,u)):i[d]();for(u=b;u<c;u++)u in y?(o[u]=y[u],i[u]=p[u],a&&(a[u]=v[u],a[u](u))):o[u]=ht(f);o=o.slice(0,s=c),r=l.slice(0);}return o});function f(h){if(i[u]=h,a){let[g,y]=q(u);return a[u]=y,t(l[u],g)}return t(l[u])}}}function iu(e,t,n={}){let r=[],o=[],i=[],s=[],a=0,l;return H(()=>Yr(i)),()=>{let c=e()||[],d=c.length;return c[nr],ge(()=>{if(d===0)return a!==0&&(Yr(i),i=[],r=[],o=[],a=0,s=[]),n.fallback&&(r=[Io],o[0]=ht(f=>(i[0]=f,n.fallback())),a=1),o;for(r[0]===Io&&(i[0](),i=[],r=[],o=[],a=0),l=0;l<d;l++)l<r.length&&r[l]!==c[l]?s[l](()=>c[l]):l>=r.length&&(o[l]=ht(u));for(;l<r.length;l++)i[l]();return a=s.length=i.length=d,r=c.slice(0),o=o.slice(0,a)});function u(f){i[l]=f;let[h,g]=q(c[l]);return s[l]=g,t(h,l)}}}function m(e,t){if(su&&Q.context){let n=Q.context;Yt(Wc());let r=ge(()=>e(t||{}));return Yt(n),r}return ge(()=>e(t||{}))}function Kr(){return !0}function Do(e){return (e=typeof e=="function"?e():e)?e:{}}function lu(){for(let e=0,t=this.length;e<t;++e){let n=this[e]();if(n!==void 0)return n}}function Y(...e){let t=!1;for(let s=0;s<e.length;s++){let a=e[s];t=t||!!a&&Gr in a,e[s]=typeof a=="function"?(t=!0,T(a)):a;}if(gs&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){let l=Do(e[a])[s];if(l!==void 0)return l}},has(s){for(let a=e.length-1;a>=0;a--)if(s in Do(e[a]))return !0;return !1},keys(){let s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(Do(e[a])));return [...new Set(s)]}},Fo);let n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){let a=e[s];if(!a)continue;let l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){let d=l[c];if(d==="__proto__"||d==="constructor")continue;let u=Object.getOwnPropertyDescriptor(a,d);if(!r[d])r[d]=u.get?{enumerable:!0,configurable:!0,get:lu.bind(n[d]=[u.get.bind(a)])}:u.value!==void 0?u:void 0;else {let f=n[d];f&&(u.get?f.push(u.get.bind(a)):u.value!==void 0&&f.push(()=>u.value));}}}let o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){let a=i[s],l=r[a];l&&l.get?Object.defineProperty(o,a,l):o[a]=l?l.value:void 0;}return o}function oe(e,...t){if(gs&&Gr in e){let o=new Set(t.length>1?t.flat():t[0]),i=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},Fo));return i.push(new Proxy({get(s){return o.has(s)?void 0:e[s]},has(s){return o.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.has(s))}},Fo)),i}let n={},r=t.map(()=>({}));for(let o of Object.getOwnPropertyNames(e)){let i=Object.getOwnPropertyDescriptor(e,o),s=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable,a=!1,l=0;for(let c of t)c.includes(o)&&(a=!0,s?r[l][o]=i.value:Object.defineProperty(r[l],o,i)),++l;a||(s?n[o]=i.value:Object.defineProperty(n,o,i));}return [...r,n]}function Ko(e){let t,n,r=o=>{let i=Q.context;if(i){let[a,l]=q();Q.count||(Q.count=0),Q.count++,(n||(n=e())).then(c=>{!Q.done&&Yt(i),Q.count--,l(()=>c.default),Yt();}),t=a;}else if(!t){let[a]=Zc(()=>(n||(n=e())).then(l=>l.default));t=a;}let s;return T(()=>(s=t())?ge(()=>{if(!i||Q.done)return s(o);let a=Q.context;Yt(i);let l=s(o);return Yt(a),l}):"")};return r.preload=()=>n||((n=e()).then(o=>t=()=>o.default),n),r}function Ge(){return Q.context?Q.getNextContextId():`cl-${au++}`}function Ts(e){let t="fallback"in e&&{fallback:()=>e.fallback};return T(ou(()=>e.each,e.children,t||void 0))}function As(e){let t="fallback"in e&&{fallback:()=>e.fallback};return T(iu(()=>e.each,e.children,t||void 0))}function N(e){let t=e.keyed,n=T(()=>e.when,void 0,void 0),r=t?n:T(n,void 0,{equals:(o,i)=>!o==!i});return T(()=>{let o=r();if(o){let i=e.children;return typeof i=="function"&&i.length>0?ge(()=>i(t?o:()=>{if(!ge(r))throw Es("Show");return n()})):i}return e.fallback},void 0,void 0)}function Ps(e){let t=ws(()=>e.children),n=T(()=>{let r=t(),o=Array.isArray(r)?r:[r],i=()=>{};for(let s=0;s<o.length;s++){let a=s,l=o[s],c=i,d=T(()=>c()?void 0:l.when,void 0,void 0),u=l.keyed?d:T(d,void 0,{equals:(f,h)=>!f==!h});i=()=>c()||(u()?[a,d,l]:void 0);}return i});return T(()=>{let r=n()();if(!r)return e.fallback;let[o,i,s]=r,a=s.children;return typeof a=="function"&&a.length>0?ge(()=>a(s.keyed?i():()=>{if(ge(n)()?.[0]!==o)throw Es("Match");return i()})):a},void 0,void 0)}function eo(e){return e}function hu(e,t){let n=gu[e];return typeof n=="object"?n[t]?n.$:void 0:n}function vu(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){let d=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],d);}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){let d=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],d),t[o]=n[i];}else {if(!c){c=new Map;let u=a;for(;u<i;)c.set(n[u],u++);}let d=c.get(t[s]);if(d!=null)if(a<d&&d<i){let u=s,f=1,h;for(;++u<o&&u<i&&!((h=c.get(t[u]))==null||h!==d+f);)f++;if(f>d-a){let g=t[s];for(;a<d;)e.insertBefore(n[a++],g);}else e.replaceChild(n[a++],t[s++]);}else s++;else t[s++].remove();}}}function Bo(e,t,n,r={}){let o;return ht(i=>{o=i,t===document?e():$(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{o(),t.textContent="";}}function z(e,t,n,r){let o,i=()=>{let a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},s=t?()=>ge(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function rr(e,t=window.document){let n=t[jn]||(t[jn]=new Set);for(let r=0,o=e.length;r<o;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Os));}}function Ms(e=window.document){if(e[jn]){for(let t of e[jn].keys())e.removeEventListener(t,Os);delete e[jn];}}function A(e,t,n){Zt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function bu(e,t,n,r){Zt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r));}function wu(e,t,n){Zt(e)||(n?e.setAttribute(t,""):e.removeAttribute(t));}function D(e,t){Zt(e)||(t==null?e.removeAttribute("class"):e.className=t);}function No(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i));}else e.addEventListener(t,n,typeof n!="function"&&n);}function xu(e,t,n={}){let r=Object.keys(t||{}),o=Object.keys(n),i,s;for(i=0,s=o.length;i<s;i++){let a=o[i];!a||a==="undefined"||t[a]||(is(e,a,!1),delete n[a]);}for(i=0,s=r.length;i<s;i++){let a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(is(e,a,!0),n[a]=l);}return n}function Su(e,t,n){if(!t)return n?A(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function Vo(e,t={},n,r){let o={};return r||V(()=>o.children=Zn(e,t.children,o.children)),V(()=>typeof t.ref=="function"&&Xt(t.ref,e)),V(()=>Cu(e,t,n,!0,o,!0)),o}function Xt(e,t,n){return ge(()=>e(t,n))}function $(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Zn(e,t,r,n);V(o=>Zn(e,t(),o,n),r);}function Cu(e,t,n,r,o={},i=!1){t||(t={});for(let s in o)if(!(s in t)){if(s==="children")continue;o[s]=ss(e,s,null,o[s],n,i,t);}for(let s in t){if(s==="children")continue;let a=t[s];o[s]=ss(e,s,a,o[s],n,i,t);}}function $u(e){let t,n;return !Zt()||!(t=Q.registry.get(n=Eu()))?e():(Q.completed&&Q.completed.add(t),Q.registry.delete(n),t)}function Zt(e){return !!Q.context&&!Q.done&&(!e||e.isConnected)}function ku(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function is(e,t,n){let r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n);}function ss(e,t,n,r,o,i,s){let a,l,c,d,u;if(t==="style")return Su(e,n,r);if(t==="classList")return xu(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){let f=t.slice(3);r&&e.removeEventListener(f,r,typeof r!="function"&&r),n&&e.addEventListener(f,n,typeof n!="function"&&n);}else if(t.slice(0,10)==="oncapture:"){let f=t.slice(10);r&&e.removeEventListener(f,r,!0),n&&e.addEventListener(f,n,!0);}else if(t.slice(0,2)==="on"){let f=t.slice(2).toLowerCase(),h=mu.has(f);if(!h&&r){let g=Array.isArray(r)?r[0]:r;e.removeEventListener(f,g);}(h||n)&&(No(e,f,n,h),h&&rr([f]));}else if(t.slice(0,5)==="attr:")A(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")wu(e,t.slice(5),n);else if((u=t.slice(0,5)==="prop:")||(c=du.has(t))||!o&&((d=hu(t,e.tagName))||(l=uu.has(t)))||(a=e.nodeName.includes("-")||"is"in s)){if(u)t=t.slice(5),l=!0;else if(Zt(e))return n;t==="class"||t==="className"?D(e,n):a&&!l&&!c?e[ku(t)]=n:e[d||t]=n;}else {let f=o&&t.indexOf(":")>-1&&pu[t.split(":")[0]];f?bu(e,f,t,n):A(e,fu[t]||t,n);}return n}function Os(e){if(Q.registry&&Q.events&&Q.events.find(([l,c])=>c===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{let l=t[n];if(l&&!t.disabled){let c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),Q.registry&&!Q.done&&(Q.done=_$HY.done=!0),e.composedPath){let l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();i(r);}function Zn(e,t,n,r,o){let i=Zt(e);if(i){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){let d=n[c];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d);}n=l;}for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(i||s==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=fn(e,n,r,l);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||s==="boolean"){if(i)return n;n=fn(e,n,r);}else {if(s==="function")return V(()=>{let l=t();for(;typeof l=="function";)l=l();n=Zn(e,l,n,r);}),()=>n;if(Array.isArray(t)){let l=[],c=n&&Array.isArray(n);if(Lo(l,t,n,o))return V(()=>n=Zn(e,l,n,r,!0)),()=>n;if(i){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return n;let u=[d];for(;(d=d.nextSibling)!==r;)u.push(d);return n=u}if(l.length===0){if(n=fn(e,n,r),a)return n}else c?n.length===0?ls(e,l,r):vu(e,n,l):(n&&fn(e),ls(e,l));n=l;}else if(t.nodeType){if(i&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=fn(e,n,r,t);fn(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function Lo(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=Lo(e,a,l)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=Lo(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o;}else e.push(a),o=!0;else {let d=String(a);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d));}}return o}function ls(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n);}function fn(e,t,n,r){if(n===void 0)return e.textContent="";let o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){let a=t[s];if(o!==a){let l=a.parentNode===e;!i&&!s?l?e.replaceChild(o,a):e.insertBefore(o,n):l&&a.remove();}else i=!0;}}else e.insertBefore(o,n);return [o]}function Eu(){return Q.getNextContextId()}function Is(e,t=!1){return t?document.createElementNS(Tu,e):document.createElement(e)}function Uo(e){let{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=Qr(),i,s=!!Q.context;return G(()=>{s&&(Qr().user=s=!1),i||(i=ps(o,()=>T(()=>e.children)));let a=r();if(a instanceof HTMLHeadElement){let[l,c]=q(!1),d=()=>c(!0);ht(u=>$(a,()=>l()?u():i(),null)),H(d);}else {let l=Is(e.isSVG?"g":"div",e.isSVG),c=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return n.parentNode},configurable:!0}),$(c,i),a.appendChild(l),e.ref&&e.ref(l),H(()=>a.removeChild(l));}},void 0,{render:!s}),n}function Au(e,t){let n=T(e);return T(()=>{let r=n();switch(typeof r){case"function":return ge(()=>r(t));case"string":let o=yu.has(r),i=Q.context?$u():Is(r,o);return Vo(i,t,o),i}})}function Fs(e){let[,t]=oe(e,["component"]);return Au(()=>e.component,t)}function Mu(e){if("values"in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Ou(e,t){let n=Mu(e);if("find"in n)return n.find(t);let r=n;for(let o=0;o<r.length;o++){let i=r[o];if(t(i))return i}}function yn(e,t){Object.entries(e).forEach(([n,r])=>t(r,n));}function Ur(e,t){return e.indexOf(t)!==-1}function as(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}function gt(e,t,n,r){return {isApplicable:e,annotation:t,transform:n,untransform:r}}function to(e,t,n,r){return {isApplicable:e,annotation:t,transform:n,untransform:r}}function Ns(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function Hs(e){if(Ur(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Ur(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Ur(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Ro(e,t,n=[]){if(!e)return;if(!Kt(e)){yn(e,(i,s)=>Ro(i,t,[...n,...Qn(s)]));return}let[r,o]=e;o&&yn(o,(i,s)=>{Ro(i,t,[...n,...Qn(s)]);}),t(r,n);}function Xu(e,t,n){return Ro(t,(r,o)=>{e=_o(e,o,i=>Wu(i,r,n));}),e}function Zu(e,t){function n(r,o){let i=Yu(e,Qn(o));r.map(Qn).forEach(s=>{e=_o(e,s,()=>i);});}if(Kt(t)){let[r,o]=t;r.forEach(i=>{e=_o(e,Qn(i),()=>e);}),o&&yn(o,n);}else yn(t,n);return e}function ed(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t]);}function td(e,t){let n={},r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,l)=>a.length-l.length));let[i,...s]=o;i.length===0?r=s.map(Mo):n[Mo(i)]=s.map(Mo);}),r?qo(n)?[r]:[r,n]:qo(n)?void 0:n}function Qs(e){return Object.prototype.toString.call(e).slice(8,-1)}function ds(e){return Qs(e)==="Array"}function nd(e){if(Qs(e)!=="Object")return !1;let t=Object.getPrototypeOf(e);return !!t&&t.constructor===Object&&t===Object.prototype}function rd(e,t,n,r,o){let i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0});}function zo(e,t={}){if(ds(e))return e.map(o=>zo(o,t));if(!nd(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return [...n,...r].reduce((o,i)=>{if(ds(t.props)&&!t.props.includes(i))return o;let s=e[i],a=zo(s,t);return rd(o,i,a,e,t.nonenumerable),o},{})}function Jt(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function Ys(e,t){return `${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function Xs({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":n?"yellow":"green":"gray"}function en({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Zs(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Q,Yc,Gr,gs,nr,Hr,ts,hs,Ue,Wn,ms,Po,Z,L,pn,mn,ae,ke,Fe,Xr,Jc,ns,Yn,Io,su,Fo,au,Es,Ds,cu,uu,du,fu,gu,mu,yu,pu,$e,jn,Le,Tu,Pu,Ls,Du,Iu,Fu,qs,Lu,Jn,qo,Kt,qu,_u,Ru,zu,er,tr,_s,Ku,Bu,cs,Nu,Vu,Uu,Gu,Hu,Rs,Mo,Qn,zs,Ks,ju,Bs,Vs,Us,Qu,us,Gs,Wu,gn,Yu,_o,Ju,js,te,Go,Ws,or,Br,od,Js,id,no,Nr,el,sd,ro,Ho,oo,Rt,hn,jo,ir=zr(()=>{Q={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return es(this.context.count)},getNextContextId(){return es(this.context.count++)}};Yc=(e,t)=>e===t,Gr=Symbol("solid-proxy"),gs=typeof Proxy=="function",nr=Symbol("solid-track"),Hr={equals:Yc},ts=null,hs=Cs,Ue=1,Wn=2,ms={owned:null,cleanups:null,context:null,owner:null},Po={},Z=null,L=null,pn=null,mn=null,ae=null,ke=null,Fe=null,Xr=0;[Jc,ns]=q(!1);Io=Symbol("fallback");su=!1;Fo={get(e,t,n){return t===Gr?n:e.get(t)},has(e,t){return t===Gr?!0:e.has(t)},set:Kr,deleteProperty:Kr,getOwnPropertyDescriptor(e,t){return {configurable:!0,enumerable:!0,get(){return e.get(t)},set:Kr,deleteProperty:Kr}},ownKeys(e){return e.keys()}};au=0;Es=e=>`Stale read from <${e}>.`;Ds=void 0,cu=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],uu=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline",...cu]),du=new Set(["innerHTML","textContent","innerText","children"]),fu=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),gu=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});mu=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),yu=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),pu={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},$e=e=>T(()=>e());jn="_$DX_DELEGATE";Le=!1,Tu="http://www.w3.org/2000/svg";Pu=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map;}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e);}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear();}},Ls=class{constructor(e){this.generateIdentifier=e,this.kv=new Pu;}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e));}clear(){this.kv.clear();}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Du=class extends Ls{constructor(){super(e=>e.name),this.classToAllowedProps=new Map;}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t);}getAllowedProps(e){return this.classToAllowedProps.get(e)}};Iu=class{constructor(){this.transfomers={};}register(e){this.transfomers[e.name]=e;}findApplicable(e){return Ou(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Fu=e=>Object.prototype.toString.call(e).slice(8,-1),qs=e=>typeof e>"u",Lu=e=>e===null,Jn=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,qo=e=>Jn(e)&&Object.keys(e).length===0,Kt=e=>Array.isArray(e),qu=e=>typeof e=="string",_u=e=>typeof e=="number"&&!isNaN(e),Ru=e=>typeof e=="boolean",zu=e=>e instanceof RegExp,er=e=>e instanceof Map,tr=e=>e instanceof Set,_s=e=>Fu(e)==="Symbol",Ku=e=>e instanceof Date&&!isNaN(e.valueOf()),Bu=e=>e instanceof Error,cs=e=>typeof e=="number"&&isNaN(e),Nu=e=>Ru(e)||Lu(e)||qs(e)||_u(e)||qu(e)||_s(e),Vu=e=>typeof e=="bigint",Uu=e=>e===1/0||e===-1/0,Gu=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Hu=e=>e instanceof URL,Rs=e=>e.replace(/\./g,"\\."),Mo=e=>e.map(String).map(Rs).join("."),Qn=e=>{let t=[],n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i;}let r=n;return t.push(r),t};zs=[gt(qs,"undefined",()=>null,()=>{}),gt(Vu,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),gt(Ku,"Date",e=>e.toISOString(),e=>new Date(e)),gt(Bu,"Error",(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r];}),n},(e,t)=>{let n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r];}),n}),gt(zu,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),gt(tr,"set",e=>[...e.values()],e=>new Set(e)),gt(er,"map",e=>[...e.entries()],e=>new Map(e)),gt(e=>cs(e)||Uu(e),"number",e=>cs(e)?"NaN":e>0?"Infinity":"-Infinity",Number),gt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),gt(Hu,"URL",e=>e.toString(),e=>new URL(e))];Ks=to((e,t)=>_s(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),ju=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Bs=to(Gu,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let n=ju[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});Vs=to(Ns,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return {...e};let r={};return n.forEach(o=>{r[o]=e[o];}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Us=to((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Qu=[Vs,Ks,Us,Bs],us=(e,t)=>{let n=as(Qu,o=>o.isApplicable(e,t));if(n)return {value:n.transform(e,t),type:n.annotation(e,t)};let r=as(zs,o=>o.isApplicable(e,t));if(r)return {value:r.transform(e,t),type:r.annotation}},Gs={};zs.forEach(e=>{Gs[e.annotation]=e;});Wu=(e,t,n)=>{if(Kt(t))switch(t[0]){case"symbol":return Ks.untransform(e,t,n);case"class":return Vs.untransform(e,t,n);case"custom":return Us.untransform(e,t,n);case"typed-array":return Bs.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else {let r=Gs[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},gn=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};Yu=(e,t)=>{Hs(t);for(let n=0;n<t.length;n++){let r=t[n];if(tr(e))e=gn(e,+r);else if(er(e)){let o=+r,i=+t[++n]==0?"key":"value",s=gn(e,o);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r];}return e},_o=(e,t,n)=>{if(Hs(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){let s=t[i];if(Kt(r)){let a=+s;r=r[a];}else if(Jn(r))r=r[s];else if(tr(r)){let a=+s;r=gn(r,a);}else if(er(r)){if(i===t.length-2)break;let l=+s,c=+t[++i]==0?"key":"value",d=gn(r,l);switch(c){case"key":r=d;break;case"value":r=r.get(d);break}}}let o=t[t.length-1];if(Kt(r)?r[+o]=n(r[+o]):Jn(r)&&(r[o]=n(r[o])),tr(r)){let i=gn(r,+o),s=n(i);i!==s&&(r.delete(i),r.add(s));}if(er(r)){let i=+t[t.length-2],s=gn(r,i);switch(+o==0?"key":"value"){case"key":{let l=n(s);r.set(l,r.get(s)),l!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};Ju=(e,t)=>Jn(e)||Kt(e)||er(e)||tr(e)||Ns(e,t);js=(e,t,n,r,o=[],i=[],s=new Map)=>{let a=Nu(e);if(!a){ed(e,o,t);let h=s.get(e);if(h)return r?{transformedValue:null}:h}if(!Ju(e,n)){let h=us(e,n),g=h?{transformedValue:h.value,annotations:[h.type]}:{transformedValue:e};return a||s.set(e,g),g}if(Ur(i,e))return {transformedValue:null};let l=us(e,n),c=l?.value??e,d=Kt(c)?[]:{},u={};yn(c,(h,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")throw new Error(`Detected property ${g}. This is a prototype pollution risk, please remove it from your object.`);let y=js(h,t,n,r,[...o,g],[...i,e],s);d[g]=y.transformedValue,Kt(y.annotations)?u[g]=y.annotations:Jn(y.annotations)&&yn(y.annotations,(p,v)=>{u[Rs(g)+"."+v]=p;});});let f=qo(u)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,u]:u};return a||s.set(e,f),f};te=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Du,this.symbolRegistry=new Ls(t=>t.description??""),this.customTransformerRegistry=new Iu,this.allowedErrorProps=[],this.dedupe=e;}serialize(e){let t=new Map,n=js(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let o=td(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){let{json:t,meta:n}=e,r=zo(t);return n?.values&&(r=Xu(r,n.values,this)),n?.referentialEqualities&&(r=Zu(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t);}registerSymbol(e,t){this.symbolRegistry.register(e,t);}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e});}allowErrorProps(...e){this.allowedErrorProps.push(...e);}};te.defaultInstance=new te;te.serialize=te.defaultInstance.serialize.bind(te.defaultInstance);te.deserialize=te.defaultInstance.deserialize.bind(te.defaultInstance);te.stringify=te.defaultInstance.stringify.bind(te.defaultInstance);te.parse=te.defaultInstance.parse.bind(te.defaultInstance);te.registerClass=te.defaultInstance.registerClass.bind(te.defaultInstance);te.registerSymbol=te.defaultInstance.registerSymbol.bind(te.defaultInstance);te.registerCustom=te.defaultInstance.registerCustom.bind(te.defaultInstance);te.allowErrorProps=te.defaultInstance.allowErrorProps.bind(te.defaultInstance);Go=te.serialize;te.deserialize;Ws=te.stringify;te.parse;te.registerClass;te.registerCustom;te.registerSymbol;te.allowErrorProps;or=(e,t=!1)=>{let{json:n}=Go(e);return JSON.stringify(n,null,t?2:void 0)},Br=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,od=(e,t)=>e.queryHash.localeCompare(t.queryHash),Js=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,id=(e,t)=>Br(e)===Br(t)?Js(e,t):Br(e)>Br(t)?1:-1,no={status:id,"query hash":od,"last updated":Js},Nr=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,el=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,sd=(e,t)=>Nr(e)===Nr(t)?el(e,t):Nr(e)>Nr(t)?1:-1,ro={status:sd,"last updated":el},Ho=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),oo=()=>{let[e,t]=q("dark");return yt(()=>{let n=window.matchMedia("(prefers-color-scheme: dark)");t(n.matches?"dark":"light");let r=o=>{t(o.matches?"dark":"light");};n.addEventListener("change",r),H(()=>n.removeEventListener("change",r));}),e},Rt=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){let r=new Map(e);if(t.length===1)return r.set(t[0],n),r;let[o,...i]=t;return r.set(o,Rt(r.get(o),i,n)),r}if(e instanceof Set){let r=Rt(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=Rt(r[o],i,n),r}if(e instanceof Object){let r={...e};if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=Rt(r[o],i,n),r}return e},hn=(e,t)=>{if(e instanceof Map){let n=new Map(e);if(t.length===1)return n.delete(t[0]),n;let[r,...o]=t;return n.set(r,hn(n.get(r),o)),n}if(e instanceof Set){let n=hn(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){let n=[...e];if(t.length===1)return n.filter((i,s)=>s.toString()!==t[0]);let[r,...o]=t;return n[r]=hn(n[r],o),n}if(e instanceof Object){let n={...e};if(t.length===1)return delete n[t[0]],n;let[r,...o]=t;return n[r]=hn(n[r],o),n}return e},jo=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let r=document.createElement("style"),o=document.createTextNode("");r.appendChild(o),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r);};});function dd(e){return (...t)=>{for(let n of e)n&&n(...t);}}function fd(e,...t){return typeof e=="function"?e(...t):e}function hd(e,t,n,r){let o=e.length,i=t.length,s=0;if(!i){for(;s<o;s++)n(e[s]);return}if(!o){for(;s<i;s++)r(t[s]);return}for(;s<i&&t[s]===e[s];s++);let a,l;t=t.slice(s),e=e.slice(s);for(a of t)e.includes(a)||r(a);for(l of e)t.includes(l)||n(l);}function md(e){let[t,n]=q(),r=e?.throw?(f,h)=>{throw n(f instanceof Error?f:new Error(h)),f}:(f,h)=>{n(f instanceof Error?f:new Error(h));},o=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),i=e?.prefix?`${e.prefix}.`:"",s=new Map,a=new Proxy({},{get(f,h){let g=s.get(h);g||(g=q(void 0,{equals:!1}),s.set(h,g)),g[0]();let y=o.reduce((p,v)=>{if(p!==null||!v)return p;try{return v.getItem(`${i}${h}`)}catch(b){return r(b,`Error reading ${i}${h} from ${v.name}`),null}},null);return y!==null&&e?.deserializer?e.deserializer(y,h,e.options):y}}),l=(f,h,g)=>{let y=e?.serializer?e.serializer(h,f,g??e.options):h,p=`${i}${f}`;o.forEach(b=>{try{b.getItem(p)!==y&&b.setItem(p,y);}catch(w){r(w,`Error setting ${i}${f} to ${y} in ${b.name}`);}});let v=s.get(f);v&&v[1]();},c=f=>o.forEach(h=>{try{h.removeItem(`${i}${f}`);}catch(g){r(g,`Error removing ${i}${f} from ${h.name}`);}}),d=()=>o.forEach(f=>{try{f.clear();}catch(h){r(h,`Error clearing ${f.name}`);}}),u=()=>{let f={},h=(g,y)=>{if(!f.hasOwnProperty(g)){let p=y&&e?.deserializer?e.deserializer(y,g,e.options):y;p&&(f[g]=p);}};return o.forEach(g=>{if(typeof g.getAll=="function"){let y;try{y=g.getAll();}catch(p){r(p,`Error getting all values from in ${g.name}`);}for(let p of y)h(p,y[p]);}else {let y=0,p;try{for(;p=g.key(y++);)f.hasOwnProperty(p)||h(p,g.getItem(p));}catch(v){r(v,`Error getting all values from ${g.name}`);}}}),f};return e?.sync!==!1&&yt(()=>{let f=h=>{let g=!1;o.forEach(y=>{try{y!==h.storageArea&&h.key&&h.newValue!==y.getItem(h.key)&&(h.newValue?y.setItem(h.key,h.newValue):y.removeItem(h.key),g=!0);}catch(p){r(p,`Error synching api ${y.name} from storage event (${h.key}=${h.newValue})`);}}),g&&h.key&&s.get(h.key)?.[1]();};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),H(()=>globalThis.removeEventListener("storage",f))):(o.forEach(h=>h.addEventListener?.("storage",f)),H(()=>o.forEach(h=>h.removeEventListener?.("storage",f))));}),[a,l,{clear:d,error:t,remove:c,toJSON:u}]}function U(){return Ee(yr)}function Oe(){return Ee(pr)}function kd(e){return e.replace($d,t=>Zl[t])}function ol(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:Ve.MATCHES,!n.accessors){let s=il(e,t,n);return {rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}let o=Pd(e,n.accessors),i={rankedValue:e,rank:Ve.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s<o.length;s++){let a=o[s],l=il(a.itemValue,t,n),{minRanking:c,maxRanking:d,threshold:u=n.threshold}=a.attributes;l<c&&l>=Ve.MATCHES?l=c:l>d&&(l=d),l=Math.min(l,d),l>=u&&l>i.rank&&(i.rank=l,i.passed=!0,i.accessorIndex=s,i.accessorThreshold=u,i.rankedValue=a.itemValue);}return i}function il(e,t,n){return e=sl(e,n),t=sl(t,n),t.length>e.length?Ve.NO_MATCH:e===t?Ve.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Ve.EQUAL:e.startsWith(t)?Ve.STARTS_WITH:e.includes(` ${t}`)?Ve.WORD_STARTS_WITH:e.includes(t)?Ve.CONTAINS:t.length===1?Ve.NO_MATCH:Ed(e).includes(t)?Ve.ACRONYM:Td(e,t))}function Ed(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(i=>{t+=i.substr(0,1);});}),t}function Td(e,t){let n=0,r=0;function o(l,c,d){for(let u=d,f=c.length;u<f;u++)if(c[u]===l)return n+=1,u+1;return -1}function i(l){let c=1/l,d=n/t.length;return Ve.MATCHES+d*c}let s=o(t[0],e,0);if(s<0)return Ve.NO_MATCH;r=s;for(let l=1,c=t.length;l<c;l++){let d=t[l];if(r=o(d,e,r),!(r>-1))return Ve.NO_MATCH}let a=r-s;return i(a)}function sl(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=kd(e)),e}function Ad(e,t){let n=t;typeof t=="object"&&(n=t.accessor);let r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function Pd(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let i=t[r],s=Dd(i),a=Ad(e,i);for(let l=0,c=a.length;l<c;l++)n.push({itemValue:a[l],attributes:s});}return n}function Dd(e){return typeof e=="function"?ll:{...ll,...e}}function ee(e){let t=this||{},n=e.call?e(t.p):e;return Ld(n.unshift?n.raw?qd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Od(t.target),t.g,t.o,t.k)}function ea(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=ea(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ea(e))&&(r&&(r+=" "),r+=t);return r}function _d(e,t){let n=ge(e);if(Le){let u=n.slice();return ()=>u}let{onChange:r}=t,o=new Set(t.appear?void 0:n),i=new WeakSet,[s,a]=q([],{equals:!1}),[l]=bs(),c=u=>{a(f=>(f.push.apply(f,u),f));for(let f of u)i.delete(f);},d=(u,f,h)=>u.splice(h,0,f);return T(u=>{let f=s(),h=e();if(h[nr],ge(l))return l(),u;if(f.length){let g=u.filter(y=>!f.includes(y));return f.length=0,r({list:g,added:[],removed:[],unchanged:g,finishRemoved:c}),g}return ge(()=>{let g=new Set(h),y=h.slice(),p=[],v=[],b=[];for(let x of h)(o.has(x)?b:p).push(x);let w=!p.length;for(let x=0;x<u.length;x++){let S=u[x];g.has(S)||(i.has(S)||(v.push(S),i.add(S)),d(y,S,x)),w&&S!==y[x]&&(w=!1);}return !v.length&&w?u:(r({list:y,added:p,removed:v,unchanged:b,finishRemoved:c}),o=g,y)})},t.appear?[]:n.slice())}function Ke(...e){return dd(e)}function ti(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return ti(e(),t);if(Array.isArray(e)){let n=[];for(let r of e){let o=ti(r,t);o&&(Array.isArray(o)?n.push.apply(n,o):n.push(o));}return n.length?n:null}return null}function Rd(e,t=cl,n=cl){let r=T(e),o=T(()=>ti(r(),Le?n:t));return o.toArray=()=>{let i=o();return Array.isArray(i)?i:i?[i]:[]},o}function zd(e){return T(()=>{let t=e.name||"s";return {enterActive:(e.enterActiveClass||t+"-enter-active").split(" "),enter:(e.enterClass||t+"-enter").split(" "),enterTo:(e.enterToClass||t+"-enter-to").split(" "),exitActive:(e.exitActiveClass||t+"-exit-active").split(" "),exit:(e.exitClass||t+"-exit").split(" "),exitTo:(e.exitToClass||t+"-exit-to").split(" "),move:(e.moveClass||t+"-move").split(" ")}})}function ta(e){requestAnimationFrame(()=>requestAnimationFrame(e));}function Kd(e,t,n,r){let{onBeforeEnter:o,onEnter:i,onAfterEnter:s}=t;o?.(n),n.classList.add(...e.enter),n.classList.add(...e.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r?.();i?.(n,()=>a());}),ta(()=>{n.classList.remove(...e.enter),n.classList.add(...e.enterTo),(!i||i.length<2)&&(n.addEventListener("transitionend",a),n.addEventListener("animationend",a));});function a(l){(!l||l.target===n)&&(n.removeEventListener("transitionend",a),n.removeEventListener("animationend",a),n.classList.remove(...e.enterActive),n.classList.remove(...e.enterTo),s?.(n));}}function Bd(e,t,n,r){let{onBeforeExit:o,onExit:i,onAfterExit:s}=t;if(!n.parentNode)return r?.();o?.(n),n.classList.add(...e.exit),n.classList.add(...e.exitActive),i?.(n,()=>a()),ta(()=>{n.classList.remove(...e.exit),n.classList.add(...e.exitTo),(!i||i.length<2)&&(n.addEventListener("transitionend",a),n.addEventListener("animationend",a));});function a(l){(!l||l.target===n)&&(r?.(),n.removeEventListener("transitionend",a),n.removeEventListener("animationend",a),n.classList.remove(...e.exitActive),n.classList.remove(...e.exitTo),s?.(n));}}function dl(e){for(let t of e)t.dispose();}function Nd(e,t,n,r={}){if(Le){let s=e(),a=[];if(s&&s.length)for(let l=0,c=s.length;l<c;l++)a.push(n(()=>s[l],()=>l));else r.fallback&&(a=[r.fallback()]);return ()=>a}let o=new Map;return H(()=>dl(o.values())),()=>{let s=e()||[];return s[nr],ge(()=>{if(!s.length)return dl(o.values()),o.clear(),r.fallback?[ht(u=>(o.set(Qo,{dispose:u}),r.fallback()))]:[];let a=new Array(s.length),l=o.get(Qo);if(!o.size||l){l?.dispose(),o.delete(Qo);for(let d=0;d<s.length;d++){let u=s[d],f=t(u,d);i(a,u,d,f);}return a}let c=new Set(o.keys());for(let d=0;d<s.length;d++){let u=s[d],f=t(u,d);c.delete(f);let h=o.get(f);h?(a[d]=h.mapped,h.setIndex?.(d),h.setItem(()=>u)):i(a,u,d,f);}for(let d of c)o.get(d)?.dispose(),o.delete(d);return a})};function i(s,a,l,c){ht(d=>{let[u,f]=q(a),h={setItem:f,dispose:d};if(n.length>1){let[g,y]=q(l);h.setIndex=y,h.mapped=n(u,g);}else h.mapped=n(u);o.set(c,h),s[l]=h.mapped;});}}function ao(e){let{by:t}=e;return T(Nd(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Vd(e,t,n,r){return e.addEventListener(t,n,r),gd(e.removeEventListener.bind(e,t,n,r))}function Ud(e,t,n,r){if(Le)return;let o=()=>{Jo(E(e)).forEach(i=>{i&&Jo(E(t)).forEach(s=>Vd(i,s,n,r));});};typeof e=="function"?G(o):V(o);}function Gd(e,t){if(Le)return {observe:tl,unobserve:tl};let n=new ResizeObserver(e);return H(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function na(e,t,n){if(Le)return;let r=new WeakMap,{observe:o,unobserve:i}=Gd(s=>{for(let a of s){let{contentRect:l,target:c}=a,d=Math.round(l.width),u=Math.round(l.height),f=r.get(c);(!f||f.width!==d||f.height!==u)&&(t(l,c,a),r.set(c,{width:d,height:u}));}},n);G(s=>{let a=ud(Jo(E(e)));return hd(a,s,o,i),a},[]);}function fl(e){let t={},n;for(;n=Hd.exec(e);)t[n[1]]=n[2];return t}function bo(e,t){if(typeof e=="string"){if(typeof t=="string")return `${e};${t}`;e=fl(e);}else typeof t=="string"&&(t=fl(t));return {...e,...t}}function jd(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function ni(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Qd(e){return typeof e=="number"}function bn(e){return Object.prototype.toString.call(e)==="[object String]"}function Wd(e){return typeof e=="function"}function vr(e){return t=>`${e()}-${t}`}function tt(e,t){return e?e===t||e.contains(t):!1}function ur(e,t=!1){let{activeElement:n}=bt(e);if(!n?.nodeName)return null;if(ra(n)&&n.contentDocument)return ur(n.contentDocument.body,t);if(t){let r=n.getAttribute("aria-activedescendant");if(r){let o=bt(n).getElementById(r);if(o)return o}}return n}function Yd(e){return bt(e).defaultView||window}function bt(e){return e?e.ownerDocument||e:document}function ra(e){return e.tagName==="IFRAME"}function hi(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function wo(){return hi(/^Mac/i)}function Xd(){return hi(/^iPhone/i)}function Zd(){return hi(/^iPad/i)||wo()&&navigator.maxTouchPoints>1}function Jd(){return Xd()||Zd()}function ef(){return wo()||Jd()}function we(e,t){return t&&(Wd(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Me(e){return t=>{for(let n of e)we(t,n);}}function tf(e){return wo()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function _e(e){if(e)if(nf())e.focus({preventScroll:!0});else {let t=rf(e);e.focus(),of(t);}}function nf(){if(io==null){io=!1;try{document.createElement("div").focus({get preventScroll(){return io=!0,!0}});}catch{}}return io}function rf(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 of(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r;}function ia(e,t){let r=Array.from(e.querySelectorAll(mi)).filter(gl);return t&&gl(e)&&r.unshift(e),r.forEach((o,i)=>{if(ra(o)&&o.contentDocument){let s=o.contentDocument.body,a=ia(s,!1);r.splice(i,1,...a);}}),r}function gl(e){return sa(e)&&!af(e)}function sa(e){return e.matches(mi)&&yi(e)}function af(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function yi(e,t){return e.nodeName!=="#comment"&&cf(e)&&uf(e,t)&&(!e.parentElement||yi(e.parentElement,e))}function cf(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return !1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;let{getComputedStyle:o}=e.ownerDocument.defaultView,{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse";}return r}function uf(e,t){return !e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function df(e,t,n){let r=t?.tabbable?lf:mi,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){return t?.from?.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&yi(i)&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function hl(e){for(;e&&!ff(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ff(e){let t=window.getComputedStyle(e);return /(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function gf(){}function hf(e,t){let[n,r]=e,o=!1,i=t.length;for(let s=i,a=0,l=s-1;a<s;l=a++){let[c,d]=t[a],[u,f]=t[l],[,h]=t[l===0?s-1:l-1]||[0,0],g=(d-f)*(n-c)-(c-u)*(r-d);if(f<d){if(r>=f&&r<d){if(g===0)return !0;g>0&&(r===f?r>h&&(o=!o):o=!o);}}else if(d<f){if(r>d&&r<=f){if(g===0)return !0;g<0&&(r===f?r<h&&(o=!o):o=!o);}}else if(r==d&&(n>=u&&n<=c||n>=c&&n<=u))return !0}return o}function ne(e,t){return Y(e,t)}function yl(){if(typeof window>"u")return;let e=n=>{if(!n.target)return;let r=sr.get(n.target);r||(r=new Set,sr.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName);},t=n=>{if(!n.target)return;let r=sr.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),sr.delete(n.target)),sr.size===0)){for(let o of ml)o();ml.clear();}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t);}function ri(e,t){let n=pl(e,t,"left"),r=pl(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,l=s+e.offsetWidth,c=a+e.offsetHeight;n<=s?s=n:n+o>l&&(s+=n+o-l),r<=a?a=r:r+i>c&&(a+=r+i-c),e.scrollLeft=s,e.scrollTop=a;}function pl(e,t,n){let r=n==="left"?"offsetLeft":"offsetTop",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 mf(e,t){if(document.contains(e)){let n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let o=hl(e);for(;e&&o&&e!==n&&o!==n;)ri(o,e),e=o,o=hl(e);}else {let{left:o,top:i}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:a}=e.getBoundingClientRect();(Math.abs(o-s)>1||Math.abs(i-a)>1)&&e.scrollIntoView?.({block:"nearest"});}}}function nt(e){return t=>(e(t),()=>e(void 0))}function xo(e,t){let[n,r]=q(vl(t?.()));return G(()=>{r(e()?.tagName.toLowerCase()||vl(t?.()));}),n}function vl(e){return bn(e)?e:void 0}function xe(e){let[t,n]=oe(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return m(Fs,Y(n,{get component(){return t.as}}))}function pf(e){let t=`form-control-${Ge()}`,n=ne({id:t},e),[r,o]=q(),[i,s]=q(),[a,l]=q(),[c,d]=q(),u=(y,p,v)=>{let b=v!=null||r()!=null;return [v,r(),b&&p!=null?y:void 0].filter(Boolean).join(" ")||void 0},f=y=>[a(),c(),y].filter(Boolean).join(" ")||void 0,h=T(()=>({"data-valid":E(n.validationState)==="valid"?"":void 0,"data-invalid":E(n.validationState)==="invalid"?"":void 0,"data-required":E(n.required)?"":void 0,"data-disabled":E(n.disabled)?"":void 0,"data-readonly":E(n.readOnly)?"":void 0}));return {formControlContext:{name:()=>E(n.name)??E(n.id),dataset:h,validationState:()=>E(n.validationState),isRequired:()=>E(n.required),isDisabled:()=>E(n.disabled),isReadOnly:()=>E(n.readOnly),labelId:r,fieldId:i,descriptionId:a,errorMessageId:c,getAriaLabelledBy:u,getAriaDescribedBy:f,generateId:vr(()=>E(n.id)),registerLabel:nt(o),registerField:nt(s),registerDescription:nt(l),registerErrorMessage:nt(d)}}}function br(){let e=Ee(aa);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function ca(e){let t=br(),n=ne({id:t.generateId("description")},e);return G(()=>H(t.registerDescription(n.id))),m(xe,Y({as:"div"},()=>t.dataset(),n))}function ua(e){let t=br(),n=ne({id:t.generateId("error-message")},e),[r,o]=oe(n,["forceMount"]),i=()=>t.validationState()==="invalid";return G(()=>{i()&&H(t.registerErrorMessage(o.id));}),m(N,{get when(){return r.forceMount||i()},get children(){return m(xe,Y({as:"div"},()=>t.dataset(),o))}})}function vf(e){let t,n=br(),r=ne({id:n.generateId("label")},e),[o,i]=oe(r,["ref"]),s=xo(()=>t,()=>"label");return G(()=>H(n.registerLabel(i.id))),m(xe,Y({as:"label",ref(a){let l=Ke(c=>t=c,o.ref);typeof l=="function"&&l(a);},get for(){return $e(()=>s()==="label")()?n.fieldId():void 0}},()=>n.dataset(),i))}function bf(e,t){G(mt(e,n=>{if(n==null)return;let r=wf(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),H(()=>{r.removeEventListener("reset",t);}));}));}function wf(e){return xf(e)?e.form:e.closest("form")}function xf(e){return e.matches("textarea, input, select, button")}function wr(e){let[t,n]=q(e.defaultValue?.()),r=T(()=>e.value?.()!==void 0),o=T(()=>r()?e.value?.():t());return [o,s=>{ge(()=>{let a=fd(s,o());return Object.is(a,o())||(r()||n(a),e.onChange?.(a)),a});}]}function da(e){let[t,n]=wr(e);return [()=>t()??!1,n]}function Sf(e){let[t,n]=wr(e);return [()=>t()??[],n]}function Cf(e={}){let[t,n]=da({value:()=>E(e.isSelected),defaultValue:()=>!!E(e.defaultIsSelected),onChange:i=>e.onSelectedChange?.(i)});return {isSelected:t,setIsSelected:i=>{!E(e.isReadOnly)&&!E(e.isDisabled)&&n(i);},toggle:()=>{!E(e.isReadOnly)&&!E(e.isDisabled)&&n(!t());}}}function ga(){return Ee(fa)}function kf(){let e=ga();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function ha(e,t){return !!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Ef(e,t){let n=t.ref();if(!n)return -1;let r=e.length;if(!r)return -1;for(;r--;){let o=e[r]?.ref();if(o&&ha(o,n))return r+1}return 0}function Tf(e){let t=e.map((r,o)=>[o,r]),n=!1;return t.sort(([r,o],[i,s])=>{let a=o.ref(),l=s.ref();return a===l||!a||!l?0:ha(a,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function ma(e,t){let n=Tf(e);e!==n&&t(n);}function Af(e){let t=e[0],n=e[e.length-1]?.ref(),r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement;}return bt(r).body}function Pf(e,t){G(()=>{let n=setTimeout(()=>{ma(e(),t);});H(()=>clearTimeout(n));});}function Df(e,t){if(typeof IntersectionObserver!="function"){Pf(e,t);return}let n=[];G(()=>{let r=()=>{let s=!!n.length;n=e(),s&&ma(e(),t);},o=Af(e()),i=new IntersectionObserver(r,{root:o});for(let s of e()){let a=s.ref();a&&i.observe(a);}H(()=>i.disconnect());});}function Mf(e={}){let[t,n]=Sf({value:()=>E(e.items),onChange:i=>e.onItemsChange?.(i)});Df(t,n);let r=i=>(n(s=>{let a=Ef(s,i);return jd(s,i,a)}),()=>{n(s=>{let a=s.filter(l=>l.ref()!==i.ref());return s.length===a.length?s:a});});return {DomCollectionProvider:i=>m(fa.Provider,{value:{registerItem:r},get children(){return i.children}})}}function Of(e){let t=kf(),n=ne({shouldRegisterItem:!0},e);G(()=>{if(!n.shouldRegisterItem)return;let r=t.registerItem(n.getItem());H(r);});}function ya(e){let t=e.startIndex??0,n=e.startLevel??0,r=[],o=l=>{if(l==null)return "";let c=e.getKey??"key",d=bn(c)?l[c]:c(l);return d!=null?String(d):""},i=l=>{if(l==null)return "";let c=e.getTextValue??"textValue",d=bn(c)?l[c]:c(l);return d!=null?String(d):""},s=l=>{if(l==null)return !1;let c=e.getDisabled??"disabled";return (bn(c)?l[c]:c(l))??!1},a=l=>{if(l!=null)return bn(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(bn(l)||Qd(l)){r.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:s(l),level:n,index:t}),t++;continue}if(a(l)!=null){r.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;let c=a(l)??[];if(c.length>0){let d=ya({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...d),t+=d.length;}}else r.push({type:"item",rawValue:l,key:o(l),textValue:i(l),disabled:s(l),level:n,index:t}),t++;}return r}function If(e,t=[]){return T(()=>{let n=ya({dataSource:E(e.dataSource),getKey:E(e.getKey),getTextValue:E(e.getTextValue),getDisabled:E(e.getDisabled),getSectionChildren:E(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}function qf(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script??"";return Ff.has(n)}let t=e.split("-")[0];return Lf.has(t)}function _f(e){return qf(e)?"rtl":"ltr"}function pa(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return {locale:e,direction:_f(e)}}function bl(){oi=pa();for(let e of dr)e(oi);}function Rf(){let e={locale:"en-US",direction:"ltr"},[t,n]=q(oi),r=T(()=>Le?e:t());return yt(()=>{dr.size===0&&window.addEventListener("languagechange",bl),dr.add(n),H(()=>{dr.delete(n),dr.size===0&&window.removeEventListener("languagechange",bl);});}),{locale:()=>r().locale,direction:()=>r().direction}}function Ht(){let e=Rf();return Ee(zf)||e}function Kf(e){let{locale:t}=Ht(),n=T(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return T(()=>{let r=n(),o;return Wo.has(r)&&(o=Wo.get(r)),o||(o=new Intl.Collator(t(),e),Wo.set(r,o)),o})}function Bf(e){let[t,n]=wr(e);return [()=>t()??new Pt,n]}function ba(e){return ef()?e.altKey:e.ctrlKey}function wn(e){return wo()?e.metaKey:e.ctrlKey}function wl(e){return new Pt(e)}function Nf(e,t){if(e.size!==t.size)return !1;for(let n of e)if(!t.has(n))return !1;return !0}function Vf(e){let t=ne({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=q(!1),[o,i]=q(),s=T(()=>{let y=E(t.selectedKeys);return y!=null?wl(y):y}),a=T(()=>{let y=E(t.defaultSelectedKeys);return y!=null?wl(y):new Pt}),[l,c]=Bf({value:s,defaultValue:a,onChange:y=>t.onSelectionChange?.(y)}),[d,u]=q(E(t.selectionBehavior)),f=()=>E(t.selectionMode),h=()=>E(t.disallowEmptySelection)??!1,g=y=>{(E(t.allowDuplicateSelectionEvents)||!Nf(y,l()))&&c(y);};return G(()=>{let y=l();E(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof y=="object"&&y.size===0&&u("replace");}),G(()=>{u(E(t.selectionBehavior)??"toggle");}),{selectionMode:f,disallowEmptySelection:h,selectionBehavior:d,setSelectionBehavior:u,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:l,setSelectedKeys:g}}function Uf(e){let[t,n]=q(""),[r,o]=q(-1);return {typeSelectHandlers:{onKeyDown:s=>{if(E(e.isDisabled))return;let a=E(e.keyboardDelegate),l=E(e.selectionManager);if(!a.getKeyForSearch)return;let c=Gf(s.key);if(!c||s.ctrlKey||s.metaKey)return;c===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=n(f=>f+c),u=a.getKeyForSearch(d,l.focusedKey())??a.getKeyForSearch(d);u==null&&Hf(d)&&(d=d[0],u=a.getKeyForSearch(d,l.focusedKey())??a.getKeyForSearch(d)),u!=null&&(l.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500));}}}}function Gf(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Hf(e){return e.split("").every(t=>t===e[0])}function jf(e,t,n){let o=Y({selectOnFocus:()=>E(e.selectionManager).selectionBehavior()==="replace"},e),i=()=>t(),{direction:s}=Ht(),a={top:0,left:0};Ud(()=>E(o.isVirtualized)?void 0:i(),"scroll",()=>{let p=i();p&&(a={top:p.scrollTop,left:p.scrollLeft});});let{typeSelectHandlers:l}=Uf({isDisabled:()=>E(o.disallowTypeAhead),keyboardDelegate:()=>E(o.keyboardDelegate),selectionManager:()=>E(o.selectionManager)}),c=()=>E(o.orientation)??"vertical",d=p=>{we(p,l.onKeyDown),p.altKey&&p.key==="Tab"&&p.preventDefault();let v=t();if(!v?.contains(p.target))return;let b=E(o.selectionManager),w=E(o.selectOnFocus),x=F=>{F!=null&&(b.setFocusedKey(F),p.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&!ba(p)&&b.replaceSelection(F));},S=E(o.keyboardDelegate),M=E(o.shouldFocusWrap),O=b.focusedKey();switch(p.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(S.getKeyBelow){p.preventDefault();let F;O!=null?F=S.getKeyBelow(O):F=S.getFirstKey?.(),F==null&&M&&(F=S.getFirstKey?.(O)),x(F);}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(S.getKeyAbove){p.preventDefault();let F;O!=null?F=S.getKeyAbove(O):F=S.getLastKey?.(),F==null&&M&&(F=S.getLastKey?.(O)),x(F);}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(S.getKeyLeftOf){p.preventDefault();let F=s()==="rtl",C;O!=null?C=S.getKeyLeftOf(O):C=F?S.getFirstKey?.():S.getLastKey?.(),x(C);}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(S.getKeyRightOf){p.preventDefault();let F=s()==="rtl",C;O!=null?C=S.getKeyRightOf(O):C=F?S.getLastKey?.():S.getFirstKey?.(),x(C);}break}case"Home":if(S.getFirstKey){p.preventDefault();let F=S.getFirstKey(O,wn(p));F!=null&&(b.setFocusedKey(F),wn(p)&&p.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&b.replaceSelection(F));}break;case"End":if(S.getLastKey){p.preventDefault();let F=S.getLastKey(O,wn(p));F!=null&&(b.setFocusedKey(F),wn(p)&&p.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&b.replaceSelection(F));}break;case"PageDown":if(S.getKeyPageBelow&&O!=null){p.preventDefault();let F=S.getKeyPageBelow(O);x(F);}break;case"PageUp":if(S.getKeyPageAbove&&O!=null){p.preventDefault();let F=S.getKeyPageAbove(O);x(F);}break;case"a":wn(p)&&b.selectionMode()==="multiple"&&E(o.disallowSelectAll)!==!0&&(p.preventDefault(),b.selectAll());break;case"Escape":p.defaultPrevented||(p.preventDefault(),E(o.disallowEmptySelection)||b.clearSelection());break;case"Tab":if(!E(o.allowsTabNavigation)){if(p.shiftKey)v.focus();else {let F=df(v,{tabbable:!0}),C,I;do I=F.lastChild(),I&&(C=I);while(I);C&&!C.contains(document.activeElement)&&_e(C);}break}}},u=p=>{let v=E(o.selectionManager),b=E(o.keyboardDelegate),w=E(o.selectOnFocus);if(v.isFocused()){p.currentTarget.contains(p.target)||v.setFocused(!1);return}if(p.currentTarget.contains(p.target)){if(v.setFocused(!0),v.focusedKey()==null){let x=M=>{M!=null&&(v.setFocusedKey(M),w&&v.replaceSelection(M));},S=p.relatedTarget;S&&p.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?x(v.lastSelectedKey()??b.getLastKey?.()):x(v.firstSelectedKey()??b.getFirstKey?.());}else if(!E(o.isVirtualized)){let x=i();if(x){x.scrollTop=a.top,x.scrollLeft=a.left;let S=x.querySelector(`[data-key="${v.focusedKey()}"]`);S&&(_e(S),ri(x,S));}}}},f=p=>{let v=E(o.selectionManager);p.currentTarget.contains(p.relatedTarget)||v.setFocused(!1);},h=p=>{i()===p.target&&p.preventDefault();},g=()=>{let p=E(o.autoFocus);if(!p)return;let v=E(o.selectionManager),b=E(o.keyboardDelegate),w;p==="first"&&(w=b.getFirstKey?.()),p==="last"&&(w=b.getLastKey?.());let x=v.selectedKeys();x.size&&(w=x.values().next().value),v.setFocused(!0),v.setFocusedKey(w);let S=t();S&&w==null&&!E(o.shouldUseVirtualFocus)&&_e(S);};return yt(()=>{o.deferAutoFocus?setTimeout(g,0):g();}),G(mt([i,()=>E(o.isVirtualized),()=>E(o.selectionManager).focusedKey()],p=>{let[v,b,w]=p;if(b)w&&o.scrollToKey?.(w);else if(w&&v){let x=v.querySelector(`[data-key="${w}"]`);x&&ri(v,x);}})),{tabIndex:T(()=>{if(!E(o.shouldUseVirtualFocus))return E(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:h,onFocusIn:u,onFocusOut:f}}function wa(e,t){let n=()=>E(e.selectionManager),r=()=>E(e.key),o=()=>E(e.shouldUseVirtualFocus),i=b=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):b?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||wn(b)||"pointerType"in b&&b.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()));},s=()=>n().isSelected(r()),a=()=>E(e.disabled)||n().isDisabled(r()),l=()=>!a()&&n().canSelectItem(r()),c=null,d=b=>{l()&&(c=b.pointerType,b.pointerType==="mouse"&&b.button===0&&!E(e.shouldSelectOnPressUp)&&i(b));},u=b=>{l()&&b.pointerType==="mouse"&&b.button===0&&E(e.shouldSelectOnPressUp)&&E(e.allowsDifferentPressOrigin)&&i(b);},f=b=>{l()&&(E(e.shouldSelectOnPressUp)&&!E(e.allowsDifferentPressOrigin)||c!=="mouse")&&i(b);},h=b=>{!l()||!["Enter"," "].includes(b.key)||(ba(b)?n().toggleSelection(r()):i(b));},g=b=>{a()&&b.preventDefault();},y=b=>{let w=t();o()||a()||!w||b.target===w&&n().setFocusedKey(r());},p=T(()=>{if(!(o()||a()))return r()===n().focusedKey()?0:-1}),v=T(()=>E(e.virtualized)?void 0:r());return G(mt([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([b,w,x,S,M])=>{b&&w===S&&M&&!x&&document.activeElement!==b&&(e.focus?e.focus():_e(b));})),{isSelected:s,isDisabled:a,allowsSelection:l,tabIndex:p,dataKey:v,onPointerDown:d,onPointerUp:u,onClick:f,onKeyDown:h,onMouseDown:g,onFocus:y}}function Wf(e){let t=Vf(e),r=If({dataSource:()=>E(e.dataSource),getKey:()=>E(e.getKey),getTextValue:()=>E(e.getTextValue),getDisabled:()=>E(e.getDisabled),getSectionChildren:()=>E(e.getSectionChildren),factory:i=>e.filter?new xl(e.filter(i)):new xl(i)},[()=>e.filter]),o=new Qf(r,t);return jr(()=>{let i=t.focusedKey();i!=null&&!r().getItem(i)&&t.setFocusedKey(void 0);}),{collection:r,selectionManager:()=>o}}function fr(e){return Mt.findIndex(t=>t.node===e)}function Zf(e){return Mt[fr(e)]}function Jf(e){return Mt[Mt.length-1].node===e}function Ca(){return Mt.filter(e=>e.isPointerBlocking)}function e0(){return [...Ca()].slice(-1)[0]}function pi(){return Ca().length>0}function $a(e){let t=fr(e0()?.node);return fr(e)<t}function t0(e){Mt.push(e);}function n0(e){let t=fr(e);t<0||Mt.splice(t,1);}function r0(){for(let{node:e}of Mt)e.style.pointerEvents=$a(e)?"none":"auto";}function o0(e){if(pi()&&!ii){let t=bt(e);Sa=document.body.style.pointerEvents,t.body.style.pointerEvents="none",ii=!0;}}function i0(e){if(pi())return;let t=bt(e);t.body.style.pointerEvents=Sa,t.body.style.length===0&&t.body.removeAttribute("style"),ii=!1;}function a0(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?l0.indexOf(e.type)!==-1:!1}function vi(e){let t,n=ne({type:"button"},e),[r,o]=oe(n,["ref","type","disabled"]),i=xo(()=>t,()=>"button"),s=T(()=>{let c=i();return c==null?!1:a0({tagName:c,type:r.type})}),a=T(()=>i()==="input"),l=T(()=>i()==="a"&&t?.getAttribute("href")!=null);return m(xe,Y({as:"button",ref(c){let d=Ke(u=>t=u,r.ref);typeof d=="function"&&d(c);},get type(){return s()||a()?r.type:void 0},get role(){return !s()&&!l()?"button":void 0},get tabIndex(){return !s()&&!l()&&!r.disabled?0:void 0},get disabled(){return s()||a()?r.disabled:void 0},get"aria-disabled"(){return !s()&&!a()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}function si(e,t,n){return Qe(e,vt(t,n))}function sn(e,t){return typeof e=="function"?e(t):e}function Ut(e){return e.split("-")[0]}function $n(e){return e.split("-")[1]}function ka(e){return e==="x"?"y":"x"}function bi(e){return e==="y"?"height":"width"}function rn(e){return ["top","bottom"].includes(Ut(e))?"y":"x"}function wi(e){return ka(rn(e))}function g0(e,t,n){n===void 0&&(n=!1);let r=$n(e),o=wi(e),i=bi(o),s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=fo(s)),[s,fo(s)]}function h0(e){let t=fo(e);return [li(e),t,li(t)]}function li(e){return e.replace(/start|end/g,t=>f0[t])}function m0(e,t,n){let r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return []}}function y0(e,t,n,r){let o=$n(e),i=m0(Ut(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(li)))),i}function fo(e){return e.replace(/left|right|bottom|top/g,t=>d0[t])}function p0(e){return {top:0,right:0,bottom:0,left:0,...e}}function Ea(e){return typeof e!="number"?p0(e):{top:e,right:e,bottom:e,left:e}}function go(e){let{x:t,y:n,width:r,height:o}=e;return {width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Sl(e,t,n){let{reference:r,floating:o}=e,i=rn(t),s=wi(t),a=bi(s),l=Ut(t),c=i==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2,h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y};}switch($n(t)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1);break}return h}async function gr(e,t){var n;t===void 0&&(t={});let{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=sn(t,e),g=Ea(h),p=a[f?u==="floating"?"reference":"floating":u],v=go(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(p)))==null||n?p:p.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=go(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:l}):b);return {top:(v.top-S.top+g.top)/x.y,bottom:(S.bottom-v.bottom+g.bottom)/x.y,left:(v.left-S.left+g.left)/x.x,right:(S.right-v.right+g.right)/x.x}}function Cl(e,t){return {top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $l(e){return u0.some(t=>e[t]>=0)}async function S0(e,t){let{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ut(n),a=$n(n),l=rn(n)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=sn(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}function kn(e){return Ta(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return (e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ot(e){var t;return (t=(Ta(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ta(e){return e instanceof Node||e instanceof We(e).Node}function ct(e){return e instanceof Element||e instanceof We(e).Element}function wt(e){return e instanceof HTMLElement||e instanceof We(e).HTMLElement}function kl(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof We(e).ShadowRoot}function xr(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ut(e);return /auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function E0(e){return ["table","td","th"].includes(kn(e))}function Co(e){return [":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return !1}})}function xi(e){let t=Si(),n=ct(e)?ut(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function T0(e){let t=Gt(e);for(;wt(t)&&!Cn(t);){if(xi(t))return t;if(Co(t))return null;t=Gt(t);}return null}function Si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Cn(e){return ["html","body","#document"].includes(kn(e))}function ut(e){return We(e).getComputedStyle(e)}function $o(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gt(e){if(kn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||kl(e)&&e.host||Ot(e);return kl(t)?t.host:t}function Aa(e){let t=Gt(e);return Cn(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&xr(t)?t:Aa(t)}function hr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let o=Aa(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=We(o);return i?t.concat(s,s.visualViewport||[],xr(o)?o:[],s.frameElement&&n?hr(s.frameElement):[]):t.concat(o,hr(o,[],n))}function Pa(e){let t=ut(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=wt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=uo(n)!==i||uo(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ci(e){return ct(e)?e:e.contextElement}function Sn(e){let t=Ci(e);if(!wt(t))return Vt(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Pa(t),s=(i?uo(n.width):n.width)/r,a=(i?uo(n.height):n.height)/o;return (!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function Da(e){let t=We(e);return !Si()||!t.visualViewport?A0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function P0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==We(e)?!1:t}function on(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let o=e.getBoundingClientRect(),i=Ci(e),s=Vt(1);t&&(r?ct(r)&&(s=Sn(r)):s=Sn(e));let a=P0(i,n,r)?Da(i):Vt(0),l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){let f=We(i),h=r&&ct(r)?We(r):r,g=f,y=g.frameElement;for(;y&&r&&h!==g;){let p=Sn(y),v=y.getBoundingClientRect(),b=ut(y),w=v.left+(y.clientLeft+parseFloat(b.paddingLeft))*p.x,x=v.top+(y.clientTop+parseFloat(b.paddingTop))*p.y;l*=p.x,c*=p.y,d*=p.x,u*=p.y,l+=w,c+=x,g=We(y),y=g.frameElement;}}return go({width:d,height:u,x:l,y:c})}function D0(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i=o==="fixed",s=Ot(r),a=t?Co(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Vt(1),d=Vt(0),u=wt(r);if((u||!u&&!i)&&((kn(r)!=="body"||xr(s))&&(l=$o(r)),wt(r))){let f=on(r);c=Sn(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop;}return {width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function M0(e){return Array.from(e.getClientRects())}function Ma(e){return on(Ot(e)).left+$o(e).scrollLeft}function O0(e){let t=Ot(e),n=$o(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+Ma(e),a=-n.scrollTop;return ut(r).direction==="rtl"&&(s+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function I0(e,t){let n=We(e),r=Ot(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;let c=Si();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop);}return {width:i,height:s,x:a,y:l}}function F0(e,t){let n=on(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=wt(e)?Sn(e):Vt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return {width:s,height:a,x:l,y:c}}function El(e,t,n){let r;if(t==="viewport")r=I0(e,n);else if(t==="document")r=O0(Ot(e));else if(ct(t))r=F0(t,n);else {let o=Da(e);r={...t,x:t.x-o.x,y:t.y-o.y};}return go(r)}function Oa(e,t){let n=Gt(e);return n===t||!ct(n)||Cn(n)?!1:ut(n).position==="fixed"||Oa(n,t)}function L0(e,t){let n=t.get(e);if(n)return n;let r=hr(e,[],!1).filter(a=>ct(a)&&kn(a)!=="body"),o=null,i=ut(e).position==="fixed",s=i?Gt(e):e;for(;ct(s)&&!Cn(s);){let a=ut(s),l=xi(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xr(s)&&!l&&Oa(e,s))?r=r.filter(d=>d!==s):o=a,s=Gt(s);}return t.set(e,r),r}function q0(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,s=[...n==="clippingAncestors"?Co(t)?[]:L0(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,d)=>{let u=El(t,d,o);return c.top=Qe(u.top,c.top),c.right=vt(u.right,c.right),c.bottom=vt(u.bottom,c.bottom),c.left=Qe(u.left,c.left),c},El(t,a,o));return {width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _0(e){let{width:t,height:n}=Pa(e);return {width:t,height:n}}function R0(e,t,n){let r=wt(t),o=Ot(t),i=n==="fixed",s=on(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=Vt(0);if(r||!r&&!i)if((kn(t)!=="body"||xr(o))&&(a=$o(t)),r){let u=on(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop;}else o&&(l.x=Ma(o));let c=s.left+a.scrollLeft-l.x,d=s.top+a.scrollTop-l.y;return {x:c,y:d,width:s.width,height:s.height}}function Yo(e){return ut(e).position==="static"}function Tl(e,t){return !wt(e)||ut(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ia(e,t){let n=We(e);if(Co(e))return n;if(!wt(e)){let o=Gt(e);for(;o&&!Cn(o);){if(ct(o)&&!Yo(o))return o;o=Gt(o);}return n}let r=Tl(e,t);for(;r&&E0(r)&&Yo(r);)r=Tl(r,t);return r&&Cn(r)&&Yo(r)&&!xi(r)?n:r||T0(e)||n}function K0(e){return ut(e).direction==="rtl"}function B0(e,t){let n=null,r,o=Ot(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null;}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();let{left:c,top:d,width:u,height:f}=e.getBoundingClientRect();if(a||t(),!u||!f)return;let h=so(d),g=so(o.clientWidth-(c+u)),y=so(o.clientHeight-(d+f)),p=so(c),b={rootMargin:-h+"px "+-g+"px "+-y+"px "+-p+"px",threshold:Qe(0,vt(1,l))||1},w=!0;function x(S){let M=S[0].intersectionRatio;if(M!==l){if(!w)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7);},1e3);}w=!1;}try{n=new IntersectionObserver(x,{...b,root:o.ownerDocument});}catch{n=new IntersectionObserver(x,b);}n.observe(e);}return s(!0),i}function N0(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ci(e),d=o||i?[...c?hr(c):[],...hr(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n);});let u=c&&a?B0(c,n):null,f=-1,h=null;s&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t);})),n();}),c&&!l&&h.observe(c),h.observe(t));let g,y=l?on(e):null;l&&p();function p(){let v=on(e);y&&(v.x!==y.x||v.y!==y.y||v.width!==y.width||v.height!==y.height)&&n(),y=v,g=requestAnimationFrame(p);}return n(),()=>{var v;d.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n);}),u?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(g);}}function ki(){let e=Ee($i);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function Ei(e){let t=ki(),n=ne({size:ai},e),[r,o]=oe(n,["ref","style","size"]),i=()=>t.currentPlacement().split("-")[0],s=Z0(t.contentRef),a=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${i()}-color`)||"none",c=()=>s()?.getPropertyValue(`border-${i()}-width`)||"0px",d=()=>Number.parseInt(c())*2*(ai/r.size),u=()=>`rotate(${X0[i()]} ${Al} ${Al}) translate(0 2)`;return m(xe,Y({as:"div",ref(f){let h=Ke(t.setArrowRef,r.ref);typeof h=="function"&&h(f);},"aria-hidden":"true",get style(){return bo({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:a(),stroke:l(),"stroke-width":d()},r.style)}},o,{get children(){let f=Y0(),h=f.firstChild;return V(()=>A(h,"transform",u())),f}}))}function Z0(e){let[t,n]=q();return G(()=>{let r=e();r&&n(Yd(r).getComputedStyle(r));}),t}function J0(e){let t=ki(),[n,r]=oe(e,["ref","style"]);return m(xe,Y({as:"div",ref(o){let i=Ke(t.setPositionerRef,n.ref);typeof i=="function"&&i(o);},"data-popper-positioner":"",get style(){return bo({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function Pl(e){let{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);let i={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return {...i,toJSON:()=>i}}function eg(e,t){return {contextElement:e,getBoundingClientRect:()=>{let r=t(e);return r?Pl(r):e?e.getBoundingClientRect():Pl()}}}function tg(e){return /^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function rg(e,t){let[n,r]=e.split("-"),o=ng[n];return r?n==="left"||n==="right"?`${o} ${r==="start"?"top":"bottom"}`:r==="start"?`${o} ${t==="rtl"?"right":"left"}`:`${o} ${t==="rtl"?"left":"right"}`:`${o} center`}function og(e){let t=ne({getAnchorRect:f=>f?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=q(),[o,i]=q(),[s,a]=q(t.placement),l=()=>eg(t.anchorRef?.(),t.getAnchorRect),{direction:c}=Ht();async function d(){let f=l(),h=n(),g=o();if(!f||!h)return;let y=(g?.clientHeight||0)/2,p=typeof t.gutter=="number"?t.gutter+y:t.gutter??y;h.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();let v=[V0(({placement:M})=>{let O=!!M.split("-")[1];return {mainAxis:p,crossAxis:O?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let M=typeof t.flip=="string"?t.flip.split(" "):void 0;if(M!==void 0&&!M.every(tg))throw new Error("`flip` expects a spaced-delimited list of placements");v.push(G0({padding:t.overflowPadding,fallbackPlacements:M}));}(t.slide||t.overlap)&&v.push(U0({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),v.push(H0({padding:t.overflowPadding,apply({availableWidth:M,availableHeight:O,rects:F}){let C=Math.round(F.reference.width);M=Math.floor(M),O=Math.floor(O),h.style.setProperty("--kb-popper-anchor-width",`${C}px`),h.style.setProperty("--kb-popper-content-available-width",`${M}px`),h.style.setProperty("--kb-popper-content-available-height",`${O}px`),t.sameWidth&&(h.style.width=`${C}px`),t.fitViewport&&(h.style.maxWidth=`${M}px`,h.style.maxHeight=`${O}px`);}})),t.hideWhenDetached&&v.push(j0({padding:t.detachedPadding})),g&&v.push(Q0({element:g,padding:t.arrowPadding}));let b=await W0(f,h,{placement:t.placement,strategy:"absolute",middleware:v,platform:{...Fa,isRTL:()=>c()==="rtl"}});if(a(b.placement),t.onCurrentPlacementChange?.(b.placement),!h)return;h.style.setProperty("--kb-popper-content-transform-origin",rg(b.placement,c()));let w=Math.round(b.x),x=Math.round(b.y),S;if(t.hideWhenDetached&&(S=b.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(h.style,{top:"0",left:"0",transform:`translate3d(${w}px, ${x}px, 0)`,visibility:S}),g&&b.middlewareData.arrow){let{x:M,y:O}=b.middlewareData.arrow,F=b.placement.split("-")[0];Object.assign(g.style,{left:M!=null?`${M}px`:"",top:O!=null?`${O}px`:"",[F]:"100%"});}}G(()=>{let f=l(),h=n();if(!f||!h)return;let g=N0(f,h,d,{elementResize:typeof ResizeObserver=="function"});H(g);}),G(()=>{let f=n(),h=t.contentRef?.();!f||!h||queueMicrotask(()=>{f.style.zIndex=getComputedStyle(h).zIndex;});});let u={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:i};return m($i.Provider,{value:u,get children(){return t.children}})}function ig(e){let t=n=>{n.key===gi.Escape&&e.onEscapeKeyDown?.(n);};G(()=>{if(Le||E(e.isDisabled))return;let n=e.ownerDocument?.()??bt();n.addEventListener("keydown",t),H(()=>{n.removeEventListener("keydown",t);});});}function sg(e,t){let n,r=gf,o=()=>bt(t()),i=u=>e.onPointerDownOutside?.(u),s=u=>e.onFocusOutside?.(u),a=u=>e.onInteractOutside?.(u),l=u=>{let f=u.target;return !(f instanceof HTMLElement)||f.closest(`[${co}]`)||!tt(o(),f)||tt(t(),f)?!1:!e.shouldExcludeElement?.(f)},c=u=>{function f(){let h=t(),g=u.target;if(!h||!g||!l(u))return;let y=Me([i,a]);g.addEventListener(Dl,y,{once:!0});let p=new CustomEvent(Dl,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:u.button===2||tf(u)&&u.button===0}});g.dispatchEvent(p);}u.pointerType==="touch"?(o().removeEventListener("click",f),r=f,o().addEventListener("click",f,{once:!0})):f();},d=u=>{let f=t(),h=u.target;if(!f||!h||!l(u))return;let g=Me([s,a]);h.addEventListener(Ml,g,{once:!0});let y=new CustomEvent(Ml,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:!1}});h.dispatchEvent(y);};G(()=>{Le||E(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",c,!0);},0),o().addEventListener("focusin",d,!0),H(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",c,!0),o().removeEventListener("focusin",d,!0);}));});}function lg(){return Ee(qa)}function ag(e){let t,n=lg(),[r,o]=oe(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),i=new Set([]),s=u=>{i.add(u);let f=n?.registerNestedLayer(u);return ()=>{i.delete(u),f?.();}};sg({shouldExcludeElement:u=>t?r.excludedElements?.some(f=>tt(f(),u))||[...i].some(f=>tt(f,u)):!1,onPointerDownOutside:u=>{!t||He.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!He.isTopMostLayer(t)||(r.onPointerDownOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.());},onFocusOutside:u=>{r.onFocusOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.();}},()=>t),ig({ownerDocument:()=>bt(t),onEscapeKeyDown:u=>{!t||!He.isTopMostLayer(t)||(r.onEscapeKeyDown?.(u),!u.defaultPrevented&&r.onDismiss&&(u.preventDefault(),r.onDismiss()));}}),yt(()=>{if(!t)return;He.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let u=n?.registerNestedLayer(t);He.assignPointerEventToLayers(),He.disableBodyPointerEvents(t),H(()=>{t&&(He.removeLayer(t),u?.(),He.assignPointerEventToLayers(),He.restoreBodyPointerEvents(t));});}),G(mt([()=>t,()=>r.disableOutsidePointerEvents],([u,f])=>{if(!u)return;let h=He.find(u);h&&h.isPointerBlocking!==f&&(h.isPointerBlocking=f,He.assignPointerEventToLayers()),f&&He.disableBodyPointerEvents(u),H(()=>{He.restoreBodyPointerEvents(u);});},{defer:!0}));let d={registerNestedLayer:s};return m(qa.Provider,{value:d,get children(){return m(xe,Y({as:"div",ref(u){let f=Ke(h=>t=h,r.ref);typeof f=="function"&&f(u);}},o))}})}function _a(e={}){let[t,n]=da({value:()=>E(e.open),defaultValue:()=>!!E(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),r=()=>{n(!0);},o=()=>{n(!1);};return {isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r();}}}function za(){let e=Ee(Ra);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Sr(){let e=Ee(Ka);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Ba(e){let t=br(),n=za(),r=`${t.generateId("item")}-${Ge()}`,o=ne({id:r},e),[i,s]=oe(o,["value","disabled","onPointerDown"]),[a,l]=q(),[c,d]=q(),[u,f]=q(),[h,g]=q(),[y,p]=q(!1),v=T(()=>n.isSelectedValue(i.value)),b=T(()=>i.disabled||t.isDisabled()||!1),w=M=>{we(M,i.onPointerDown),y()&&M.preventDefault();},x=T(()=>({...t.dataset(),"data-disabled":b()?"":void 0,"data-checked":v()?"":void 0})),S={value:()=>i.value,dataset:x,isSelected:v,isDisabled:b,inputId:a,labelId:c,descriptionId:u,inputRef:h,select:()=>n.setSelectedValue(i.value),generateId:vr(()=>s.id),registerInput:nt(l),registerLabel:nt(d),registerDescription:nt(f),setIsFocused:p,setInputRef:g};return m(Ka.Provider,{value:S,get children(){return m(xe,Y({as:"div",role:"group",onPointerDown:w},x,s))}})}function Na(e){let t=Sr(),n=ne({id:t.generateId("control")},e),[r,o]=oe(n,["onClick","onKeyDown"]);return m(xe,Y({as:"div",onClick:a=>{we(a,r.onClick),t.select(),t.inputRef()?.focus();},onKeyDown:a=>{we(a,r.onKeyDown),a.key===gi.Space&&(t.select(),t.inputRef()?.focus());}},()=>t.dataset(),o))}function Va(e){let t=Sr(),n=ne({id:t.generateId("description")},e);return G(()=>H(t.registerDescription(n.id))),m(xe,Y({as:"div"},()=>t.dataset(),n))}function Ua(e){let t=Sr(),n=ne({id:t.generateId("indicator")},e),[r,o]=oe(n,["ref","forceMount"]),[i,s]=q(),{present:a}=xa({show:()=>r.forceMount||t.isSelected(),element:()=>i()??null});return m(N,{get when(){return a()},get children(){return m(xe,Y({as:"div",ref(l){let c=Ke(s,r.ref);typeof c=="function"&&c(l);}},()=>t.dataset(),o))}})}function Ga(e){let t=br(),n=za(),r=Sr(),o=ne({id:r.generateId("input")},e),[i,s]=oe(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),a=()=>[i["aria-labelledby"],r.labelId(),i["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[i["aria-describedby"],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[c,d]=q(!1),u=g=>{if(we(g,i.onChange),g.stopPropagation(),!c()){n.setSelectedValue(r.value());let y=g.target;y.checked=r.isSelected();}d(!1);},f=g=>{we(g,i.onFocus),r.setIsFocused(!0);},h=g=>{we(g,i.onBlur),r.setIsFocused(!1);};return G(mt([()=>r.isSelected(),()=>r.value()],g=>{if(!g[0]&&g[1]===r.value())return;d(!0);let y=r.inputRef();y?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),y?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}));},{defer:!0})),G(()=>H(r.registerInput(s.id))),m(xe,Y({as:"input",ref(g){let y=Ke(r.setInputRef,i.ref);typeof y=="function"&&y(g);},type:"radio",get name(){return t.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return t.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return bo({...la},i.style)},get"aria-labelledby"(){return a()},get"aria-describedby"(){return l()},onChange:u,onFocus:f,onBlur:h},()=>r.dataset(),s))}function Ha(e){let t=Sr(),n=ne({id:t.generateId("label")},e);return G(()=>H(t.registerLabel(n.id))),m(xe,Y({as:"label",get for(){return t.inputId()}},()=>t.dataset(),n))}function ja(e){return m(vf,Y({as:"span"},e))}function Qa(e){let t,n=`radiogroup-${Ge()}`,r=ne({id:n,orientation:"vertical"},e),[o,i,s]=oe(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],yf),[a,l]=wr({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:g=>o.onChange?.(g)}),{formControlContext:c}=pf(i);bf(()=>t,()=>l(o.defaultValue??""));let d=()=>c.getAriaLabelledBy(E(i.id),s["aria-label"],o["aria-labelledby"]),u=()=>c.getAriaDescribedBy(o["aria-describedby"]),f=g=>g===a(),h={ariaDescribedBy:u,isSelectedValue:f,setSelectedValue:g=>{if(!(c.isReadOnly()||c.isDisabled())&&(l(g),t))for(let y of t.querySelectorAll("[type='radio']")){let p=y;p.checked=f(p.value);}}};return m(aa.Provider,{value:c,get children(){return m(Ra.Provider,{value:h,get children(){return m(xe,Y({as:"div",ref(g){let y=Ke(p=>t=p,o.ref);typeof y=="function"&&y(g);},role:"radiogroup",get id(){return E(i.id)},get"aria-invalid"(){return c.validationState()==="invalid"||void 0},get"aria-required"(){return c.isRequired()||void 0},get"aria-disabled"(){return c.isDisabled()||void 0},get"aria-readonly"(){return c.isReadOnly()||void 0},get"aria-orientation"(){return o.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return u()}},()=>c.dataset(),s))}})}})}function dg(e,t,n){let r=Kf({usage:"search",sensitivity:"base"}),o=T(()=>{let i=E(e.keyboardDelegate);return i||new ug(e.collection,t,r)});return jf({selectionManager:()=>E(e.selectionManager),keyboardDelegate:o,autoFocus:()=>E(e.autoFocus),deferAutoFocus:()=>E(e.deferAutoFocus),shouldFocusWrap:()=>E(e.shouldFocusWrap),disallowEmptySelection:()=>E(e.disallowEmptySelection),selectOnFocus:()=>E(e.selectOnFocus),disallowTypeAhead:()=>E(e.disallowTypeAhead),shouldUseVirtualFocus:()=>E(e.shouldUseVirtualFocus),allowsTabNavigation:()=>E(e.allowsTabNavigation),isVirtualized:()=>E(e.isVirtualized),scrollToKey:i=>E(e.scrollToKey)?.(i),orientation:()=>E(e.orientation)},t)}function fg(e,t){let[n,r]=q(!1),o={pause(){r(!0);},resume(){r(!1);}},i=null,s=g=>e.onMountAutoFocus?.(g),a=g=>e.onUnmountAutoFocus?.(g),l=()=>bt(t()),c=()=>{let g=l().createElement("span");return g.setAttribute("data-focus-trap",""),g.tabIndex=0,Object.assign(g.style,la),g},d=()=>{let g=t();return g?ia(g,!0).filter(y=>!y.hasAttribute("data-focus-trap")):[]},u=()=>{let g=d();return g.length>0?g[0]:null},f=()=>{let g=d();return g.length>0?g[g.length-1]:null},h=()=>{let g=t();if(!g)return !1;let y=ur(g);return !y||tt(g,y)?!1:sa(y)};G(()=>{if(Le)return;let g=t();if(!g)return;Il.add(o);let y=ur(g);if(!tt(g,y)){let v=new CustomEvent(Xo,Ol);g.addEventListener(Xo,s),g.dispatchEvent(v),v.defaultPrevented||setTimeout(()=>{_e(u()),ur(g)===y&&_e(g);},0);}H(()=>{g.removeEventListener(Xo,s),setTimeout(()=>{let v=new CustomEvent(Zo,Ol);h()&&v.preventDefault(),g.addEventListener(Zo,a),g.dispatchEvent(v),v.defaultPrevented||_e(y??l().body),g.removeEventListener(Zo,a),Il.remove(o);},0);});}),G(()=>{if(Le)return;let g=t();if(!g||!E(e.trapFocus)||n())return;let y=v=>{let b=v.target;b?.closest(`[${co}]`)||(tt(g,b)?i=b:_e(i));},p=v=>{let w=v.relatedTarget??ur(g);w?.closest(`[${co}]`)||tt(g,w)||_e(i);};l().addEventListener("focusin",y),l().addEventListener("focusout",p),H(()=>{l().removeEventListener("focusin",y),l().removeEventListener("focusout",p);});}),G(()=>{if(Le)return;let g=t();if(!g||!E(e.trapFocus)||n())return;let y=c();g.insertAdjacentElement("afterbegin",y);let p=c();g.insertAdjacentElement("beforeend",p);function v(w){let x=u(),S=f();w.relatedTarget===x?_e(S):_e(x);}y.addEventListener("focusin",v),p.addEventListener("focusin",v);let b=new MutationObserver(w=>{for(let x of w)x.previousSibling===p&&(p.remove(),g.insertAdjacentElement("beforeend",p)),x.nextSibling===y&&(y.remove(),g.insertAdjacentElement("afterbegin",y));});b.observe(g,{childList:!0,subtree:!1}),H(()=>{y.removeEventListener("focusin",v),p.removeEventListener("focusin",v),y.remove(),p.remove(),b.disconnect();});});}function hg(e){G(()=>{E(e.isDisabled)||H(mg(E(e.targets),E(e.root)));});}function mg(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let f of l.querySelectorAll(`[${gg}], [${co}]`))n.add(f);let c=f=>{if(n.has(f)||f.parentElement&&r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(f.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),u=c(l);if(u===NodeFilter.FILTER_ACCEPT&&i(l),u!==NodeFilter.FILTER_REJECT){let f=d.nextNode();for(;f!=null;)i(f),f=d.nextNode();}},i=l=>{let c=lr.get(l)??0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),lr.set(l,c+1));};Je.length&&Je[Je.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d);}});s.observe(t,{childList:!0,subtree:!0});let a={observe(){s.observe(t,{childList:!0,subtree:!0});},disconnect(){s.disconnect();}};return Je.push(a),()=>{s.disconnect();for(let l of r){let c=lr.get(l);if(c==null)return;c===1?(l.removeAttribute("aria-hidden"),lr.delete(l)):lr.set(l,c-1);}a===Je[Je.length-1]?(Je.pop(),Je.length&&Je[Je.length-1].observe()):Je.splice(Je.indexOf(a),1);}}function Ya(){return Ee(Wa)}function It(){let e=Ya();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function Ti(){let e=Ee(Xa);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function xt(){let e=Ee(Za);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Ai(e){let t,n=xt(),r=It(),o=ne({id:n.generateId(`item-${Ge()}`)},e),[i,s]=oe(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[a,l]=q(),[c,d]=q(),[u,f]=q(),h=()=>r.listState().selectionManager(),g=()=>s.id,y=()=>h().focusedKey()===g(),p=()=>{i.onSelect?.(),i.closeOnSelect&&setTimeout(()=>{r.close(!0);});};Of({getItem:()=>({ref:()=>t,type:"item",key:g(),textValue:i.textValue??u()?.textContent??t?.textContent??"",disabled:i.disabled??!1})});let v=wa({key:g,selectionManager:h,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),b=C=>{we(C,i.onPointerMove),C.pointerType==="mouse"&&(i.disabled?r.onItemLeave(C):(r.onItemEnter(C),C.defaultPrevented||(_e(C.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(g()))));},w=C=>{we(C,i.onPointerLeave),C.pointerType==="mouse"&&r.onItemLeave(C);},x=C=>{we(C,i.onPointerUp),!i.disabled&&C.button===0&&p();},S=C=>{if(we(C,i.onKeyDown),!C.repeat&&!i.disabled)switch(C.key){case"Enter":case" ":p();break}},M=T(()=>{if(i.indeterminate)return "mixed";if(i.checked!=null)return i.checked}),O=T(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":y()?"":void 0})),F={isChecked:()=>i.checked,dataset:O,setLabelRef:f,generateId:vr(()=>s.id),registerLabel:nt(l),registerDescription:nt(d)};return m(Xa.Provider,{value:F,get children(){return m(xe,Y({as:"div",ref(C){let I=Ke(B=>t=B,i.ref);typeof I=="function"&&I(C);},get tabIndex(){return v.tabIndex()},get"aria-checked"(){return M()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return a()},get"aria-describedby"(){return c()},get"data-key"(){return v.dataKey()},get onPointerDown(){return Me([i.onPointerDown,v.onPointerDown])},get onPointerUp(){return Me([x,v.onPointerUp])},get onClick(){return Me([i.onClick,v.onClick])},get onKeyDown(){return Me([S,v.onKeyDown])},get onMouseDown(){return Me([i.onMouseDown,v.onMouseDown])},get onFocus(){return Me([i.onFocus,v.onFocus])},onPointerMove:b,onPointerLeave:w},O,s))}})}function Ja(e){let t=ne({closeOnSelect:!1},e),[n,r]=oe(t,["checked","defaultChecked","onChange","onSelect"]),o=Cf({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:s=>n.onChange?.(s),isDisabled:()=>r.disabled});return m(Ai,Y({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{n.onSelect?.(),o.toggle();}},r))}function ko(){return Ee(kg)}function ec(e){let t=xt(),n=It(),r=ko(),{direction:o}=Ht(),i=ne({id:t.generateId("trigger")},e),[s,a]=oe(i,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),l=()=>t.value();r!==void 0&&(l=()=>t.value()??s.id,r.lastValue()===void 0&&r.setLastValue(l));let c=xo(()=>n.triggerRef(),()=>"button"),d=T(()=>c()==="a"&&n.triggerRef()?.getAttribute("href")!=null);G(mt(()=>r?.value(),v=>{d()&&v===l()&&n.triggerRef()?.focus();}));let u=()=>{r!==void 0?n.isOpen()?r.value()===l()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0);},f=v=>{we(v,s.onPointerDown),v.currentTarget.dataset.pointerType=v.pointerType,!s.disabled&&v.pointerType!=="touch"&&v.button===0&&u();},h=v=>{we(v,s.onClick),s.disabled||v.currentTarget.dataset.pointerType==="touch"&&u();},g=v=>{if(we(v,s.onKeyDown),!s.disabled){if(d())switch(v.key){case"Enter":case" ":return}switch(v.key){case"Enter":case" ":case zl.first(t.orientation()):v.stopPropagation(),v.preventDefault(),mf(v.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(l);break;case zl.last(t.orientation()):v.stopPropagation(),v.preventDefault(),n.open("last");break;case mr.next(o(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.nextMenu();break;case mr.previous(o(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.previousMenu();break}}},y=v=>{we(v,s.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(l);},p=v=>{we(v,s.onFocus),r!==void 0&&v.currentTarget.dataset.pointerType!=="touch"&&r.setValue(l);};return G(()=>H(n.registerTriggerId(s.id))),m(vi,Y({ref(v){let b=Ke(n.setTriggerRef,s.ref);typeof b=="function"&&b(v);},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return s.id},get disabled(){return s.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return $e(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&r?.value()===l()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===l()||r.lastValue()===l()?0:-1:void 0},onPointerDown:f,onMouseOver:y,onClick:h,onKeyDown:g,onFocus:p,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),a))}function tc(){return Ee(Eg)}function nc(e){let t,n=xt(),r=It(),o=ko(),i=tc(),{direction:s}=Ht(),a=ne({id:n.generateId(`content-${Ge()}`)},e),[l,c]=oe(a,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,u=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),f=dg({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);fg({trapFocus:()=>u()&&r.isOpen(),onMountAutoFocus:w=>{o===void 0&&l.onOpenAutoFocus?.(w);},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let h=w=>{if(tt(w.currentTarget,w.target)&&(w.key==="Tab"&&r.isOpen()&&w.preventDefault(),o!==void 0&&w.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(w.key){case mr.next(s(),n.orientation()):w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case mr.previous(s(),n.orientation()):if(w.currentTarget.hasAttribute("data-closed"))break;w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},g=w=>{l.onEscapeKeyDown?.(w),o?.setAutoFocusMenu(!1),r.close(!0);},y=w=>{l.onFocusOutside?.(w),n.isModal()&&w.preventDefault();},p=w=>{we(w,l.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0));},v=w=>{if(we(w,l.onPointerMove),w.pointerType!=="mouse")return;let x=w.target,S=d!==w.clientX;tt(w.currentTarget,x)&&S&&(r.setPointerDir(w.clientX>d?"right":"left"),d=w.clientX);};G(()=>H(r.registerContentId(l.id)));let b={ref:Ke(w=>{r.setContentRef(w),t=w;},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return f.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:Me([l.onKeyDown,f.onKeyDown,h]),onMouseDown:Me([l.onMouseDown,f.onMouseDown]),onFocusIn:Me([l.onFocusIn,f.onFocusIn]),onFocusOut:Me([l.onFocusOut,f.onFocusOut]),onPointerEnter:p,onPointerMove:v,get"data-orientation"(){return n.orientation()}};return m(N,{get when(){return r.contentPresent()},get children(){return m(N,{get when(){return i===void 0||r.parentMenuContext()!=null},get fallback(){return m(xe,Y({as:"div"},()=>r.dataset(),b,c))},get children(){return m(La.Positioner,{get children(){return m(ag,Y({get disableOutsidePointerEvents(){return $e(()=>!!u())()&&r.isOpen()},get excludedElements(){return [r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return bo({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:g,onFocusOutside:y,get onDismiss(){return r.close}},()=>r.dataset(),b,c))}})}})}})}function Tg(e){let t,n=xt(),r=It(),[o,i]=oe(e,["ref"]);return $g({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),m(nc,Y({ref(s){let a=Ke(l=>{t=l;},o.ref);typeof a=="function"&&a(s);}},i))}function Ag(){let e=Ee(rc);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function Pi(e){let t=xt(),n=ne({id:t.generateId(`group-${Ge()}`)},e),[r,o]=q(),i={generateId:vr(()=>n.id),registerLabelId:nt(o)};return m(rc.Provider,{value:i,get children(){return m(xe,Y({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function oc(e){let t=Ag(),n=ne({id:t.generateId("label")},e),[r,o]=oe(n,["id"]);return G(()=>H(t.registerLabelId(r.id))),m(xe,Y({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function ic(e){let t=It(),n=ne({children:"\u25BC"},e);return m(xe,Y({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function sc(e){return m(Ai,Y({role:"menuitem",closeOnSelect:!0},e))}function lc(e){let t=Ti(),n=ne({id:t.generateId("description")},e),[r,o]=oe(n,["id"]);return G(()=>H(t.registerDescription(r.id))),m(xe,Y({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function ac(e){let t=Ti(),n=ne({id:t.generateId("indicator")},e),[r,o]=oe(n,["forceMount"]);return m(N,{get when(){return r.forceMount||t.isChecked()},get children(){return m(xe,Y({as:"div"},()=>t.dataset(),o))}})}function cc(e){let t=Ti(),n=ne({id:t.generateId("label")},e),[r,o]=oe(n,["ref","id"]);return G(()=>H(t.registerLabel(r.id))),m(xe,Y({as:"div",ref(i){let s=Ke(t.setLabelRef,r.ref);typeof s=="function"&&s(i);},get id(){return r.id}},()=>t.dataset(),o))}function uc(e){let t=It();return m(N,{get when(){return t.contentPresent()},get children(){return m(Uo,e)}})}function Pg(){let e=Ee(dc);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function fc(e){let n=xt().generateId(`radiogroup-${Ge()}`),r=ne({id:n},e),[o,i]=oe(r,["value","defaultValue","onChange","disabled"]),[s,a]=wr({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>o.onChange?.(c)}),l={isDisabled:()=>o.disabled,isSelectedValue:c=>c===s(),setSelectedValue:a};return m(dc.Provider,{value:l,get children(){return m(Pi,i)}})}function gc(e){let t=Pg(),n=ne({closeOnSelect:!1},e),[r,o]=oe(n,["value","onSelect"]);return m(Ai,Y({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value);}},o))}function Dg(e,t,n){let r=e.split("-")[0],o=n.getBoundingClientRect(),i=[],s=t.clientX,a=t.clientY;switch(r){case"top":i.push([s,a+5]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]);break;case"right":i.push([s-5,a]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]);break;case"bottom":i.push([s,a-5]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]);break;case"left":i.push([s+5,a]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]);break}return i}function Mg(e,t){return t?hf([e.clientX,e.clientY],t):!1}function hc(e){let t=xt(),n=ga(),r=Ya(),o=ko(),i=tc(),s=ne({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[a,l]=oe(s,["open","defaultOpen","onOpenChange"]),c=0,d=null,u="right",[f,h]=q(),[g,y]=q(),[p,v]=q(),[b,w]=q(),[x,S]=q(!0),[M,O]=q(l.placement),[F,C]=q([]),[I,B]=q([]),{DomCollectionProvider:K}=Mf({items:I,onItemsChange:B}),J=_a({open:()=>a.open,defaultOpen:()=>a.defaultOpen,onOpenChange:W=>a.onOpenChange?.(W)}),{present:X}=xa({show:()=>t.forceMount()||J.isOpen(),element:()=>b()??null}),ie=Wf({selectionMode:"none",dataSource:I}),me=W=>{S(W),J.open();},de=(W=!1)=>{J.close(),W&&r&&r.close(!0);},ye=W=>{S(W),J.toggle();},ve=()=>{let W=b();W&&(_e(W),ie.selectionManager().setFocused(!0),ie.selectionManager().setFocusedKey(void 0));},Te=()=>{i!=null?setTimeout(()=>ve()):ve();},Be=W=>{C(Ie=>[...Ie,W]);let it=r?.registerNestedMenu(W);return ()=>{C(Ie=>ni(Ie,W)),it?.();}},Ce=W=>u===d?.side&&Mg(W,d?.area),Re=W=>{Ce(W)&&W.preventDefault();},P=W=>{Ce(W)||Te();},Se=W=>{Ce(W)&&W.preventDefault();};hg({isDisabled:()=>!(r==null&&J.isOpen()&&t.isModal()),targets:()=>[b(),...F()].filter(Boolean)}),G(()=>{let W=b();if(!W||!r)return;let it=r.registerNestedMenu(W);H(()=>{it();});}),G(()=>{r===void 0&&o?.registerMenu(t.value(),[b(),...F()]);}),G(()=>{r!==void 0||o===void 0||(o.value()===t.value()?(p()?.focus(),o.autoFocusMenu()&&me(!0)):de());}),G(()=>{r!==void 0||o===void 0||J.isOpen()&&o.setValue(t.value());}),H(()=>{r===void 0&&o?.unregisterMenu(t.value());});let Lt={dataset:T(()=>({"data-expanded":J.isOpen()?"":void 0,"data-closed":J.isOpen()?void 0:""})),isOpen:J.isOpen,contentPresent:X,nestedMenus:F,currentPlacement:M,pointerGraceTimeoutId:()=>c,autoFocus:x,listState:()=>ie,parentMenuContext:()=>r,triggerRef:p,contentRef:b,triggerId:f,contentId:g,setTriggerRef:v,setContentRef:w,open:me,close:de,toggle:ye,focusContent:Te,onItemEnter:Re,onItemLeave:P,onTriggerLeave:Se,setPointerDir:W=>u=W,setPointerGraceTimeoutId:W=>c=W,setPointerGraceIntent:W=>d=W,registerNestedMenu:Be,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:nt(h),registerContentId:nt(y)};return m(K,{get children(){return m(Wa.Provider,{value:Lt,get children(){return m(N,{when:i===void 0,get fallback(){return l.children},get children(){return m(La,Y({anchorRef:p,contentRef:b,onCurrentPlacementChange:O},l))}})}})}})}function mc(e){let{direction:t}=Ht();return m(hc,Y({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function yc(e){let t=It(),n=xt(),[r,o]=oe(e,["onFocusOutside","onKeyDown"]),{direction:i}=Ht();return m(nc,Y({onOpenAutoFocus:d=>{d.preventDefault();},onCloseAutoFocus:d=>{d.preventDefault();},onFocusOutside:d=>{r.onFocusOutside?.(d);let u=d.target;tt(t.triggerRef(),u)||t.close();},onKeyDown:d=>{we(d,r.onKeyDown);let u=tt(d.currentTarget,d.target),f=Og.close(i(),n.orientation()).includes(d.key),h=t.parentMenuContext()!=null;u&&f&&h&&(t.close(),_e(t.triggerRef()));}},o))}function pc(e){let t,n=xt(),r=It(),o=ne({id:n.generateId(`sub-trigger-${Ge()}`)},e),[i,s]=oe(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),a=null,l=()=>{Le||(a&&window.clearTimeout(a),a=null);},{direction:c}=Ht(),d=()=>i.id,u=()=>{let w=r.parentMenuContext();if(w==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return w.listState().selectionManager()},f=()=>r.listState().collection(),h=()=>u().focusedKey()===d(),g=wa({key:d,selectionManager:u,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),y=w=>{we(w,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0);},p=w=>{if(we(w,i.onPointerMove),w.pointerType!=="mouse")return;let x=r.parentMenuContext();if(x?.onItemEnter(w),!w.defaultPrevented){if(i.disabled){x?.onItemLeave(w);return}!r.isOpen()&&!a&&(r.parentMenuContext()?.setPointerGraceIntent(null),a=window.setTimeout(()=>{r.open(!1),l();},100)),x?.onItemEnter(w),w.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),_e(w.currentTarget),x?.listState().selectionManager().setFocused(!0),x?.listState().selectionManager().setFocusedKey(d()));}},v=w=>{if(we(w,i.onPointerLeave),w.pointerType!=="mouse")return;l();let x=r.parentMenuContext(),S=r.contentRef();if(S){x?.setPointerGraceIntent({area:Dg(r.currentPlacement(),w,S),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(x?.pointerGraceTimeoutId());let M=window.setTimeout(()=>{x?.setPointerGraceIntent(null);},300);x?.setPointerGraceTimeoutId(M);}else {if(x?.onTriggerLeave(w),w.defaultPrevented)return;x?.setPointerGraceIntent(null);}x?.onItemLeave(w);},b=w=>{we(w,i.onKeyDown),!w.repeat&&(i.disabled||Ig.open(c(),n.orientation()).includes(w.key)&&(w.stopPropagation(),w.preventDefault(),u().setFocused(!1),u().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(f().getFirstKey())));};return G(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let w=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:i.textValue??t?.textContent??"",disabled:i.disabled??!1});H(w);}),G(mt(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),w=>{H(()=>{window.clearTimeout(w),r.parentMenuContext()?.setPointerGraceIntent(null);});})),G(()=>H(r.registerTriggerId(i.id))),H(()=>{l();}),m(xe,Y({as:"div",ref(w){let x=Ke(S=>{r.setTriggerRef(S),t=S;},i.ref);typeof x=="function"&&x(w);},get id(){return i.id},role:"menuitem",get tabIndex(){return g.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return $e(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return g.dataKey()},get"data-highlighted"(){return h()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return Me([i.onPointerDown,g.onPointerDown])},get onPointerUp(){return Me([i.onPointerUp,g.onPointerUp])},get onClick(){return Me([y,g.onClick])},get onKeyDown(){return Me([b,g.onKeyDown])},get onMouseDown(){return Me([i.onMouseDown,g.onMouseDown])},get onFocus(){return Me([i.onFocus,g.onFocus])},onPointerMove:p,onPointerLeave:v},()=>r.dataset(),s))}function Fg(e){let t=ko(),n=`menu-${Ge()}`,r=ne({id:n,modal:!0},e),[o,i]=oe(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=_a({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:l=>o.onOpenChange?.(l)}),a={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??a.isModal(),forceMount:()=>o.forceMount??!1,generateId:vr(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??t?.orientation()??"horizontal"};return m(Za.Provider,{value:a,get children(){return m(hc,Y({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},i))}})}function Eo(e){let t,n=ne({orientation:"horizontal"},e),[r,o]=oe(n,["ref","orientation"]),i=xo(()=>t,()=>"hr");return m(xe,Y({as:"hr",ref(s){let a=Ke(l=>t=l,r.ref);typeof a=="function"&&a(s);},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}function vc(e){let t=xt(),n=It(),[r,o]=oe(e,["onCloseAutoFocus","onInteractOutside"]),i=!1;return m(Tg,Y({onCloseAutoFocus:l=>{r.onCloseAutoFocus?.(l),i||_e(n.triggerRef()),i=!1,l.preventDefault();},onInteractOutside:l=>{r.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(i=!0);}},o))}function bc(e){let t=`dropdownmenu-${Ge()}`,n=ne({id:t},e);return m(Fg,n)}function ih(){return Rg()}function xc(){return zg()}function xn(){return Kg()}function Bl(){return Bg()}function Nl(){return Di()}function sh(){return (()=>{var e=Di();return e.style.setProperty("transform","rotate(90deg)"),e})()}function lh(){return (()=>{var e=Di();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function ah(){return Ng()}function ch(){return Vg()}function uh(){return Ug()}function dh(){return Gg()}function fh(){return Hg()}function gh(){return jg()}function hh(){return Qg()}function mh(){return Wg()}function yh(){return Yg()}function ph(e){return (()=>{var t=wc(),n=t.firstChild;return V(()=>A(n,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function vh(){return Xg()}function bh(){return Zg()}function wh(e){return [m(N,{get when(){return e.checked},get children(){var t=wc(),n=t.firstChild;return V(()=>A(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),m(N,{get when(){return !e.checked},get children(){var t=Jg(),n=t.firstChild;return V(()=>A(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function ui(){return eh()}function xh(){return th()}function Sh(){return nh()}function Ch(){return rh()}function Vl(){let e=Ge();return (()=>{var t=oh(),n=t.firstChild,r=n.nextSibling,o=r.nextSibling,i=o.firstChild,s=o.nextSibling,a=s.firstChild,l=s.nextSibling,c=l.nextSibling,d=c.firstChild,u=c.nextSibling,f=u.firstChild,h=u.nextSibling,g=h.nextSibling,y=g.firstChild,p=g.nextSibling,v=p.firstChild,b=p.nextSibling,w=b.nextSibling,x=w.firstChild,S=w.nextSibling,M=S.firstChild,O=S.nextSibling,F=O.nextSibling,C=F.firstChild,I=F.nextSibling,B=I.firstChild,K=I.nextSibling,J=K.nextSibling,X=J.firstChild,ie=J.nextSibling,me=ie.firstChild,de=ie.nextSibling,ye=de.nextSibling,ve=ye.firstChild,Te=ye.nextSibling,Be=Te.firstChild,Ce=Te.nextSibling,Re=Ce.firstChild,P=Re.nextSibling,Se=P.nextSibling,se=Se.nextSibling,Lt=se.nextSibling,W=Ce.nextSibling,it=W.firstChild,Ie=W.nextSibling,cn=Ie.firstChild,Ye=Ie.nextSibling,qt=Ye.firstChild,jt=qt.nextSibling,St=jt.nextSibling,ft=St.firstChild,Ct=ft.nextSibling,_=Ct.nextSibling,fe=_.nextSibling,ze=fe.nextSibling,pe=ze.nextSibling,ue=pe.nextSibling,be=ue.nextSibling,Ae=be.nextSibling,ce=Ae.nextSibling,$t=ce.nextSibling,kt=$t.nextSibling,st=Ye.nextSibling,Qt=st.firstChild,Et=st.nextSibling,Wt=Et.firstChild,Tt=Et.nextSibling,_t=Tt.firstChild,qr=_t.nextSibling,Vn=Tt.nextSibling,_r=Vn.firstChild,un=Vn.nextSibling,Rr=un.firstChild,Un=un.nextSibling,Gn=Un.firstChild,Hn=Gn.nextSibling,dn=Hn.nextSibling,qi=dn.nextSibling,_i=qi.nextSibling,Ri=_i.nextSibling,zi=Ri.nextSibling,Ki=zi.nextSibling,Bi=Ki.nextSibling,Ni=Bi.nextSibling,Vi=Ni.nextSibling,Ui=Vi.nextSibling,Gi=Ui.nextSibling,Hi=Gi.nextSibling,ji=Hi.nextSibling,Qi=ji.nextSibling,Wi=Qi.nextSibling,jc=Wi.nextSibling;return A(n,"id",`a-${e}`),A(r,"fill",`url(#a-${e})`),A(i,"id",`am-${e}`),A(s,"id",`b-${e}`),A(a,"filter",`url(#am-${e})`),A(l,"mask",`url(#b-${e})`),A(d,"id",`ah-${e}`),A(u,"id",`k-${e}`),A(f,"filter",`url(#ah-${e})`),A(h,"mask",`url(#k-${e})`),A(y,"id",`ae-${e}`),A(p,"id",`j-${e}`),A(v,"filter",`url(#ae-${e})`),A(b,"mask",`url(#j-${e})`),A(x,"id",`ai-${e}`),A(S,"id",`i-${e}`),A(M,"filter",`url(#ai-${e})`),A(O,"mask",`url(#i-${e})`),A(C,"id",`aj-${e}`),A(I,"id",`h-${e}`),A(B,"filter",`url(#aj-${e})`),A(K,"mask",`url(#h-${e})`),A(X,"id",`ag-${e}`),A(ie,"id",`g-${e}`),A(me,"filter",`url(#ag-${e})`),A(de,"mask",`url(#g-${e})`),A(ve,"id",`af-${e}`),A(Te,"id",`f-${e}`),A(Be,"filter",`url(#af-${e})`),A(Ce,"mask",`url(#f-${e})`),A(se,"id",`m-${e}`),A(Lt,"fill",`url(#m-${e})`),A(it,"id",`ak-${e}`),A(Ie,"id",`e-${e}`),A(cn,"filter",`url(#ak-${e})`),A(Ye,"mask",`url(#e-${e})`),A(qt,"id",`n-${e}`),A(jt,"fill",`url(#n-${e})`),A(ft,"id",`r-${e}`),A(Ct,"fill",`url(#r-${e})`),A(_,"id",`s-${e}`),A(fe,"fill",`url(#s-${e})`),A(ze,"id",`q-${e}`),A(pe,"fill",`url(#q-${e})`),A(ue,"id",`p-${e}`),A(be,"fill",`url(#p-${e})`),A(Ae,"id",`o-${e}`),A(ce,"fill",`url(#o-${e})`),A($t,"id",`l-${e}`),A(kt,"fill",`url(#l-${e})`),A(Qt,"id",`al-${e}`),A(Et,"id",`d-${e}`),A(Wt,"filter",`url(#al-${e})`),A(Tt,"mask",`url(#d-${e})`),A(_t,"id",`u-${e}`),A(qr,"fill",`url(#u-${e})`),A(_r,"id",`ad-${e}`),A(un,"id",`c-${e}`),A(Rr,"filter",`url(#ad-${e})`),A(Un,"mask",`url(#c-${e})`),A(Gn,"id",`t-${e}`),A(Hn,"fill",`url(#t-${e})`),A(dn,"id",`v-${e}`),A(qi,"stroke",`url(#v-${e})`),A(_i,"id",`aa-${e}`),A(Ri,"stroke",`url(#aa-${e})`),A(zi,"id",`w-${e}`),A(Ki,"stroke",`url(#w-${e})`),A(Bi,"id",`ac-${e}`),A(Ni,"stroke",`url(#ac-${e})`),A(Vi,"id",`ab-${e}`),A(Ui,"stroke",`url(#ab-${e})`),A(Gi,"id",`y-${e}`),A(Hi,"stroke",`url(#y-${e})`),A(ji,"id",`x-${e}`),A(Qi,"stroke",`url(#x-${e})`),A(Wi,"id",`z-${e}`),A(jc,"stroke",`url(#z-${e})`),t})()}function Fh(e,t){let n=0,r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n=n+t;return r}function jl(e){return Symbol.iterator in e}function Bt(e){let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?Tn(n):En(n)),o=U().client,[i,s]=q((e.defaultExpanded||[]).includes(e.label)),a=()=>s(g=>!g),[l,c]=q([]),d=T(()=>Array.isArray(e.value)?e.value.map((g,y)=>({label:y.toString(),value:g})):e.value!==null&&typeof e.value=="object"&&jl(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([g,y])=>({label:g,value:y})):Array.from(e.value,(g,y)=>({label:y.toString(),value:g})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([g,y])=>({label:g,value:y})):[]),u=T(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&jl(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),f=T(()=>Fh(d(),100)),h=e.dataPath??[];return (()=>{var g=ar();return $(g,m(N,{get when(){return f().length},get children(){return [(()=>{var y=Dh(),p=y.firstChild,v=p.firstChild,b=v.nextSibling,w=b.nextSibling,x=w.nextSibling,S=x.firstChild;return p.$$click=()=>a(),$(p,m(Gl,{get expanded(){return i()}}),v),$(b,()=>e.label),$(x,()=>String(u()).toLowerCase()==="iterable"?"(Iterable) ":"",S),$(x,()=>d().length,S),$(x,()=>d().length>1?"items":"item",null),$(y,m(N,{get when(){return e.editable},get children(){var M=ar();return $(M,m(Lh,{get value(){return e.value}}),null),$(M,m(N,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return m(Hl,{get activeQuery(){return e.activeQuery},dataPath:h})}}),null),$(M,m(N,{get when(){return u()==="array"&&e.activeQuery!==void 0},get children(){return m(qh,{get activeQuery(){return e.activeQuery},dataPath:h})}}),null),$(M,m(N,{get when(){return $e(()=>!!e.onEdit)()&&!Go(e.value).meta},get children(){var O=Ph();return O.$$click=()=>{e.onEdit?.();},$(O,m(yh,{})),V(()=>D(O,r().actionButton)),O}}),null),V(()=>D(M,r().actions)),M}}),null),V(M=>{var O=r().expanderButtonContainer,F=r().expanderButton,C=r().info;return O!==M.e&&D(y,M.e=O),F!==M.t&&D(p,M.t=F),C!==M.a&&D(x,M.a=C),M},{e:void 0,t:void 0,a:void 0}),y})(),m(N,{get when(){return i()},get children(){return [m(N,{get when(){return f().length===1},get children(){var y=ar();return $(y,m(ao,{get each(){return d()},by:p=>p.label,children:p=>m(Bt,{get defaultExpanded(){return e.defaultExpanded},get label(){return p().label},get value(){return p().value},get editable(){return e.editable},get dataPath(){return [...h,p().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return u()==="array"||u()==="Iterable"||u()==="object"}})})),V(()=>D(y,r().subEntry)),y}}),m(N,{get when(){return f().length>1},get children(){var y=ar();return $(y,m(As,{get each(){return f()},children:(p,v)=>(()=>{var b=Ih(),w=b.firstChild,x=w.firstChild,S=x.firstChild,M=S.nextSibling,O=M.nextSibling,F=O.nextSibling;return F.nextSibling,x.$$click=()=>c(C=>C.includes(v)?C.filter(I=>I!==v):[...C,v]),$(x,m(Gl,{get expanded(){return l().includes(v)}}),S),$(x,v*100,M),$(x,v*100+100-1,F),$(w,m(N,{get when(){return l().includes(v)},get children(){var C=ar();return $(C,m(ao,{get each(){return p()},by:I=>I.label,children:I=>m(Bt,{get defaultExpanded(){return e.defaultExpanded},get label(){return I().label},get value(){return I().value},get editable(){return e.editable},get dataPath(){return [...h,I().label]},get activeQuery(){return e.activeQuery}})})),V(()=>D(C,r().subEntry)),C}}),null),V(C=>{var I=r().entry,B=r().expanderButton;return I!==C.e&&D(w,C.e=I),B!==C.t&&D(x,C.t=B),C},{e:void 0,t:void 0}),b})()})),V(()=>D(y,r().subEntry)),y}})]}})]}}),null),$(g,m(N,{get when(){return f().length===0},get children(){var y=Oh(),p=y.firstChild,v=p.firstChild;return $(p,()=>e.label,v),$(y,m(N,{get when(){return $e(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(u()==="string"||u()==="number"||u()==="boolean")},get fallback(){return (()=>{var b=Ul();return $(b,()=>or(e.value)),V(()=>D(b,r().value)),b})()},get children(){return [m(N,{get when(){return $e(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(u()==="string"||u()==="number")},get children(){var b=Mh();return b.addEventListener("change",w=>{let x=e.activeQuery.state.data,S=Rt(x,h,u()==="number"?w.target.valueAsNumber:w.target.value);o.setQueryData(e.activeQuery.queryKey,S);}),V(w=>{var x=u()==="number"?"number":"text",S=R(r().value,r().editableInput);return x!==w.e&&A(b,"type",w.e=x),S!==w.t&&D(b,w.t=S),w},{e:void 0,t:void 0}),V(()=>b.value=e.value),b}}),m(N,{get when(){return u()==="boolean"},get children(){var b=Ul();return $(b,m(_h,{get activeQuery(){return e.activeQuery},dataPath:h,get value(){return e.value}}),null),$(b,()=>or(e.value),null),V(()=>D(b,R(r().value,r().actions,r().editableInput))),b}})]}}),null),$(y,m(N,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return m(Hl,{get activeQuery(){return e.activeQuery},dataPath:h})}}),null),V(b=>{var w=r().row,x=r().label;return w!==b.e&&D(y,b.e=w),x!==b.t&&D(p,b.t=x),b},{e:void 0,t:void 0}),y}}),null),V(()=>D(g,r().entry)),g})()}var ld,ad,tl,cd,ud,E,Jo,gd,yo,yd,nl,Ze,pd,nn,di,vd,ei,po,bd,Wl,wd,Yl,xd,rl,Sd,yr,Xl,vo,fi,pr,Zl,Cd,$d,Ve,ll,Md,Od,Id,Fd,al,tn,At,Jl,Ld,qd,cl,ul,Qo,Hd,gi,io,oa,sf,mi,lf,sr,ml,la,yf,aa,$f,So,fa,Ff,Lf,oi,dr,zf,Wo,Pt,Qf,xl,qe,Yf,Xf,xa,co,Sa,ii,Mt,He,s0,l0,c0,u0,vt,Qe,uo,so,Vt,d0,f0,v0,b0,w0,x0,C0,$0,k0,A0,z0,Fa,V0,U0,G0,H0,j0,Q0,W0,$i,Y0,ai,Al,X0,ng,La,Dl,Ml,qa,et,Ra,Ka,cg,ug,Xo,Zo,Ol,Il,gg,lr,Je,lo,yg,Fl,pg,vg,bg,Ll,ql,wg,xg,Sg,_l,Rl,ci,Cg,$g,Wa,Xa,Za,kg,mr,zl,Eg,rc,dc,Og,Kl,Ig,Lg,qg,he,_g,k,Rg,zg,Kg,Bg,Di,Ng,Vg,Ug,Gg,Hg,jg,Qg,Wg,Yg,wc,Xg,Zg,Jg,eh,th,nh,rh,oh,$h,kh,Eh,Th,Ah,Ph,ar,Dh,Mh,Ul,Oh,Ih,Gl,Lh,qh,Hl,_h,Sc,En,Tn,Rh,Cr,zh,Kh,Bh,Nh,Vh,Uh,Gh,Hh,jh,Qh,Wh,Yh,Xh,Zh,Jh,e1,t1,n1,r1,o1,i1,s1,Ql,l1,a1,Cc,c1,u1,d1,f1,g1,h1,m1,y1,p1,v1,je,To,Nt,$c,at,Mi,cr,b1,kc,w1,Ec,x1,Ao,S1,C1,$1,k1,Dt,E1,T1,ho,A1,De,mo,P1,lt,D1,pt,Tc,rt,ot,Oi=zr(()=>{ir();ld=!Le,ad=ld&&!!Ds,tl=()=>{},cd=e=>e!=null,ud=e=>e.filter(cd);E=e=>typeof e=="function"&&!e.length?e():e,Jo=e=>Array.isArray(e)?e:e?[e]:[];gd=ad?e=>Qr()?H(e):e:H;yo=md,yd=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t);}),e),nl=e=>{if(!e)return "";let t="";for(let n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`;}return t},Ze=yd({_cookies:[globalThis.document,"cookie"],getItem:e=>Ze._cookies[0][Ze._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,n)=>{let r=Ze.getItem(e);Ze._cookies[0][Ze._cookies[1]]=`${e}=${t}${nl(n)}`;let o=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:Ze});window.dispatchEvent(o);},removeItem:e=>{Ze._cookies[0][Ze._cookies[1]]=`${e}=deleted${nl({expires:new Date(0)})}`;},key:e=>{let t=null,n=0;return Ze._cookies[0][Ze._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,o)=>(!t&&o&&n++===e&&(t=o),"")),t},get length(){let e=0;return Ze._cookies[0][Ze._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),pd=1024,nn=796,di=700,vd="bottom-right",ei="bottom",po="system",bd=!1,Wl=500,wd=500,Yl=500,xd=Object.keys(no)[0],rl=1,Sd=Object.keys(ro)[0],yr=Pe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Xl=Pe(void 0),vo=e=>{let[t,n]=q(null),r=()=>{let s=t();s!=null&&(s.close(),n(null));},o=(s,a)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${a},popup`);if(!l)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");l.document.head.innerHTML="",l.document.body.innerHTML="",Ms(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),n(null);}),[...(U().shadowDOMTarget||document).styleSheets].forEach(c=>{try{let d=[...c.cssRules].map(g=>g.cssText).join(""),u=document.createElement("style"),f=c.ownerNode,h="";f&&"id"in f&&(h=f.id),h&&u.setAttribute("id",h),u.textContent=d,l.document.head.appendChild(u);}catch{let u=document.createElement("link");if(c.href==null)return;u.rel="stylesheet",u.type=c.type,u.media=c.media.toString(),u.href=c.href,l.document.head.appendChild(u);}}),rr(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),n(l);};G(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&o(Number(window.innerWidth),Number(e.localStore.height||wd));}),G(()=>{let s=(U().shadowDOMTarget||document).querySelector("#_goober"),a=t();if(s&&a){let l=new MutationObserver(()=>{let c=(U().shadowDOMTarget||a.document).querySelector("#_goober");c&&(c.textContent=s.textContent);});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),H(()=>{l.disconnect();});}});let i=T(()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:r,disabled:e.disabled??!1}));return m(Xl.Provider,{value:i,get children(){return e.children}})},fi=()=>T(()=>{let t=Ee(Xl);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),pr=Pe(()=>"dark");Zl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z"},Cd=Object.keys(Zl).join("|"),$d=new RegExp(Cd,"g");Ve={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};ll={maxRanking:1/0,minRanking:-1/0};Md={data:""},Od=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Md,Id=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Fd=/\/\*[^]*?\*\/| +/g,al=/\n+/g,tn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?tn(s,i):i+"{"+tn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=tn(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=tn.p?tn.p(i,s):i+":"+s+";");}return n+(t&&o?t+"{"+o+"}":o)+r},At={},Jl=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Jl(e[n]);return t}return e},Ld=(e,t,n,r,o)=>{let i=Jl(e),s=At[i]||(At[i]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return "go"+d})(i));if(!At[s]){let l=i!==e?e:(c=>{let d,u,f=[{}];for(;d=Id.exec(c.replace(Fd,""));)d[4]?f.shift():d[3]?(u=d[3].replace(al," ").trim(),f.unshift(f[0][u]=f[0][u]||{})):f[0][d[1]]=d[2].replace(al," ").trim();return f[0]})(e);At[s]=tn(o?{["@keyframes "+s]:l}:l,n?"":"."+s);}let a=n&&At.g?At.g:null;return n&&(At.g=At[s]),((l,c,d,u)=>{u?c.data=c.data.replace(u,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l);})(At[s],t,r,a),s},qd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":tn(a,""):a===!1?"":a;}return r+o+(s??"")},"");ee.bind({g:1});ee.bind({k:1});cl=Le?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;ul=e=>{let t=zd(e);return _d(Rd(()=>e.children).toArray,{appear:e.appear,onChange({added:n,removed:r,finishRemoved:o,list:i}){let s=t();for(let l of n)Kd(s,e,l);let a=[];for(let l of i)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&a.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:c,rect:d}of a)if(c.isConnected){let u=c.getBoundingClientRect(),f=d.left-u.left,h=d.top-u.top;(f||h)&&(c.style.transform=`translate(${f}px, ${h}px)`,c.style.transitionDuration="0s",l.push(c));}document.body.offsetHeight;for(let c of l){let d=function(u){(u.target===c||/transform$/.test(u.propertyName))&&(c.removeEventListener("transitionend",d),c.classList.remove(...s.move));};c.classList.add(...s.move),c.style.transform=c.style.transitionDuration="",c.addEventListener("transitionend",d);}});for(let l of r)Bd(s,e,l,()=>o([l]));}})},Qo=Symbol("fallback");Hd=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;gi=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(gi||{});io=null;oa=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],sf=[...oa,'[tabindex]:not([tabindex="-1"]):not([disabled])'],mi=oa.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",lf=sf.join(':not([hidden]):not([tabindex="-1"]),');sr=new Map,ml=new Set;typeof document<"u"&&(document.readyState!=="loading"?yl():document.addEventListener("DOMContentLoaded",yl));la={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};yf=["id","name","validationState","required","disabled","readOnly"];aa=Pe();$f=Object.defineProperty,So=(e,t)=>{for(var n in t)$f(e,n,{get:t[n],enumerable:!0});},fa=Pe();Ff=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Lf=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);oi=pa(),dr=new Set;zf=Pe();Wo=new Map;Pt=class va extends Set{constructor(n,r,o){super(n);Xe(this,"anchorKey");Xe(this,"currentKey");n instanceof va?(this.anchorKey=r||n.anchorKey,this.currentKey=o||n.currentKey):(this.anchorKey=r,this.currentKey=o);}};Qf=class{constructor(e,t){Xe(this,"collection");Xe(this,"state");this.collection=e,this.state=t;}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e);}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e);}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e);}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return !1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return !1;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n);}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n);}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=this.state.selectedKeys(),r=n.anchorKey||t,o=new Pt(n,r,t);for(let i of this.getKeyRange(r,n.currentKey||t))o.delete(i);for(let i of this.getKeyRange(t,r))this.canSelectItem(i)&&o.add(i);this.state.setSelectedKeys(o);}getKeyRange(e,t){let n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r!=null;){let o=this.collection().getItem(r);if(o&&o.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r);}return []}getKey(e){let t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new Pt(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n);}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new Pt([t],t,t):new Pt;this.state.setSelectedKeys(n);}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new Pt;for(let n of e){let r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t);}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()));}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new Pt);}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll();}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e));}isSelectionEqual(e){if(e===this.state.selectedKeys())return !0;let t=this.selectedKeys();if(e.size!==t.size)return !1;for(let n of e)if(!t.has(n))return !1;for(let n of t)if(!e.has(n))return !1;return !0}canSelectItem(e){if(this.state.selectionMode()==="none")return !1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return !t||t.disabled}getAllSelectableKeys(){let e=[];return (n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n);}n=this.collection().getKeyAfter(n);}})(this.collection().getFirstKey()),e}},xl=class{constructor(e){Xe(this,"keyMap",new Map);Xe(this,"iterable");Xe(this,"firstKey");Xe(this,"lastKey");this.iterable=e;for(let r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(let[r,o]of this.keyMap)t?(t.nextKey=r,o.prevKey=t.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=n++),t=o,t.nextKey=void 0;this.lastKey=t.key;}*[Symbol.iterator](){yield*this.iterable;}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};qe=e=>typeof e=="function"?e():e,Yf=e=>{let t=T(()=>{let s=qe(e.element);if(s)return getComputedStyle(s)}),n=()=>t()?.animationName??"none",[r,o]=q(qe(e.show)?"present":"hidden"),i="none";return G(s=>{let a=qe(e.show);return ge(()=>{if(s===a)return a;let l=i,c=n();a?o("present"):c==="none"||t()?.display==="none"?o("hidden"):o(s===!0&&l!==c?"hiding":"hidden");}),a}),G(()=>{let s=qe(e.element);if(!s)return;let a=c=>{c.target===s&&(i=n());},l=c=>{let u=n().includes(c.animationName);c.target===s&&u&&r()==="hiding"&&o("hidden");};s.addEventListener("animationstart",a),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),H(()=>{s.removeEventListener("animationstart",a),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l);});}),{present:()=>r()==="present"||r()==="hiding",state:r}},Xf=Yf,xa=Xf,co="data-kb-top-layer",ii=!1,Mt=[];He={layers:Mt,isTopMostLayer:Jf,hasPointerBlockingLayer:pi,isBelowPointerBlockingLayer:$a,addLayer:t0,removeLayer:n0,indexOf:fr,find:Zf,assignPointerEventToLayers:r0,disableBodyPointerEvents:o0,restoreBodyPointerEvents:i0},s0={};So(s0,{Button:()=>c0,Root:()=>vi});l0=["button","color","file","image","reset","submit"];c0=vi,u0=["top","right","bottom","left"],vt=Math.min,Qe=Math.max,uo=Math.round,so=Math.floor,Vt=e=>({x:e,y:e}),d0={left:"right",right:"left",bottom:"top",top:"bottom"},f0={start:"end",end:"start"};v0=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Sl(c,r,l),f=r,h={},g=0;for(let y=0;y<a.length;y++){let{name:p,fn:v}=a[y],{x:b,y:w,data:x,reset:S}=await v({x:d,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=b??d,u=w??u,h={...h,[p]:{...h[p],...x}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:u}=Sl(c,f,l)),y=-1);}return {x:d,y:u,placement:f,strategy:o,middlewareData:h}};b0=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=sn(e,t)||{};if(c==null)return {};let u=Ea(d),f={x:n,y:r},h=wi(o),g=bi(h),y=await s.getDimensions(c),p=h==="y",v=p?"top":"left",b=p?"bottom":"right",w=p?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[h]-f[h]-i.floating[g],S=f[h]-i.reference[h],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),O=M?M[w]:0;(!O||!await(s.isElement==null?void 0:s.isElement(M)))&&(O=a.floating[w]||i.floating[g]);let F=x/2-S/2,C=O/2-y[g]/2-1,I=vt(u[v],C),B=vt(u[b],C),K=I,J=O-y[g]-B,X=O/2-y[g]/2+F,ie=si(K,X,J),me=!l.arrow&&$n(o)!=null&&X!==ie&&i.reference[g]/2-(X<K?I:B)-y[g]/2<0,de=me?X<K?X-K:X-J:0;return {[h]:f[h]+de,data:{[h]:ie,centerOffset:X-ie-de,...me&&{alignmentOffset:de}},reset:me}}}),w0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;let{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...p}=sn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return {};let v=Ut(o),b=rn(a),w=Ut(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=f||(w||!y?[fo(a)]:h0(a)),M=g!=="none";!f&&M&&S.push(...y0(a,y,g,x));let O=[a,...S],F=await gr(t,p),C=[],I=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&C.push(F[v]),u){let X=g0(o,s,x);C.push(F[X[0]],F[X[1]]);}if(I=[...I,{placement:o,overflows:C}],!C.every(X=>X<=0)){var B,K;let X=(((B=i.flip)==null?void 0:B.index)||0)+1,ie=O[X];if(ie)return {data:{index:X,overflows:I},reset:{placement:ie}};let me=(K=I.filter(de=>de.overflows[0]<=0).sort((de,ye)=>de.overflows[1]-ye.overflows[1])[0])==null?void 0:K.placement;if(!me)switch(h){case"bestFit":{var J;let de=(J=I.filter(ye=>{if(M){let ve=rn(ye.placement);return ve===b||ve==="y"}return !0}).map(ye=>[ye.placement,ye.overflows.filter(ve=>ve>0).reduce((ve,Te)=>ve+Te,0)]).sort((ye,ve)=>ye[1]-ve[1])[0])==null?void 0:J[0];de&&(me=de);break}case"initialPlacement":me=a;break}if(o!==me)return {reset:{placement:me}}}return {}}}};x0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=sn(e,t);switch(r){case"referenceHidden":{let i=await gr(t,{...o,elementContext:"reference"}),s=Cl(i,n.reference);return {data:{referenceHiddenOffsets:s,referenceHidden:$l(s)}}}case"escaped":{let i=await gr(t,{...o,altBoundary:!0}),s=Cl(i,n.floating);return {data:{escapedOffsets:s,escaped:$l(s)}}}default:return {}}}}};C0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:s,middlewareData:a}=t,l=await S0(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},$0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:v,y:b}=p;return {x:v,y:b}}},...l}=sn(e,t),c={x:n,y:r},d=await gr(t,l),u=rn(Ut(o)),f=ka(u),h=c[f],g=c[u];if(i){let p=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=h+d[p],w=h-d[v];h=si(b,h,w);}if(s){let p=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=g+d[p],w=g-d[v];g=si(b,g,w);}let y=a.fn({...t,[f]:h,[u]:g});return {...y,data:{x:y.x-n,y:y.y-r}}}}},k0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=sn(e,t),l=await gr(t,a),c=Ut(n),d=$n(n),u=rn(n)==="y",{width:f,height:h}=r.floating,g,y;c==="top"||c==="bottom"?(g=c,y=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=c,g=d==="end"?"top":"bottom");let p=h-l.top-l.bottom,v=f-l.left-l.right,b=vt(h-l[g],p),w=vt(f-l[y],v),x=!t.middlewareData.shift,S=b,M=w;if(u?M=d||x?vt(w,v):v:S=d||x?vt(b,p):p,x&&!d){let F=Qe(l.left,0),C=Qe(l.right,0),I=Qe(l.top,0),B=Qe(l.bottom,0);u?M=f-2*(F!==0||C!==0?F+C:Qe(l.left,l.right)):S=h-2*(I!==0||B!==0?I+B:Qe(l.top,l.bottom));}await s({...t,availableWidth:M,availableHeight:S});let O=await o.getDimensions(i.floating);return f!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};A0=Vt(0);z0=async function(e){let t=this.getOffsetParent||Ia,n=this.getDimensions,r=await n(e.floating);return {reference:R0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};Fa={convertOffsetParentRelativeRectToViewportRelativeRect:D0,getDocumentElement:Ot,getClippingRect:q0,getOffsetParent:Ia,getElementRects:z0,getClientRects:M0,getDimensions:_0,getScale:Sn,isElement:ct,isRTL:K0};V0=C0,U0=$0,G0=w0,H0=k0,j0=x0,Q0=b0,W0=(e,t,n)=>{let r=new Map,o={platform:Fa,...n},i={...o.platform,_c:r};return v0(e,t,{...o,platform:i})},$i=Pe();Y0=z('<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">'),ai=30,Al=ai/2,X0={top:180,right:-90,bottom:0,left:90};ng={top:"bottom",right:"left",bottom:"top",left:"right"};La=Object.assign(og,{Arrow:Ei,Context:$i,usePopperContext:ki,Positioner:J0});Dl="interactOutside.pointerDownOutside",Ml="interactOutside.focusOutside";qa=Pe();et={};So(et,{Description:()=>ca,ErrorMessage:()=>ua,Item:()=>Ba,ItemControl:()=>Na,ItemDescription:()=>Va,ItemIndicator:()=>Ua,ItemInput:()=>Ga,ItemLabel:()=>Ha,Label:()=>ja,RadioGroup:()=>cg,Root:()=>Qa});Ra=Pe();Ka=Pe();cg=Object.assign(Qa,{Description:ca,ErrorMessage:ua,Item:Ba,ItemControl:Na,ItemDescription:Va,ItemIndicator:Ua,ItemInput:Ga,ItemLabel:Ha,Label:ja}),ug=class{constructor(e,t,n){Xe(this,"collection");Xe(this,"ref");Xe(this,"collator");this.collection=e,this.ref=t,this.collator=n;}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t);}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t);}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e);}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e);}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight),o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight),o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){let n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){let o=this.collection().getItem(r);if(o){let i=o.textValue.slice(0,e.length);if(o.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r);}}};Xo="focusScope.autoFocusOnMount",Zo="focusScope.autoFocusOnUnmount",Ol={bubbles:!1,cancelable:!0},Il={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=ni(this.stack,e),this.stack.unshift(e);},remove(e){this.stack=ni(this.stack,e),this.active()?.resume();}};gg="data-live-announcer";lr=new WeakMap,Je=[];lo=new Map,yg=e=>{G(()=>{let t=qe(e.style)??{},n=qe(e.properties)??[],r={};for(let i in t)r[i]=e.element.style[i];let o=lo.get(e.key);o?o.activeCount++:lo.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(i=>i.key)}),Object.assign(e.element.style,e.style);for(let i of n)e.element.style.setProperty(i.key,i.value);H(()=>{let i=lo.get(e.key);if(i){if(i.activeCount!==1){i.activeCount--;return}lo.delete(e.key);for(let[s,a]of Object.entries(i.originalStyles))e.element.style[s]=a;for(let s of i.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.();}});});},Fl=yg,pg=(e,t)=>{switch(t){case"x":return [e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return [e.clientHeight,e.scrollTop,e.scrollHeight]}},vg=(e,t)=>{let n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},bg=(e,t,n)=>{let r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,o=e,i=0,s=0,a=!1;do{let[l,c,d]=pg(o,t),u=d-l-r*c;(c!==0||u!==0)&&vg(o,t)&&(i+=u,s+=c),o===(n??document.documentElement)?a=!0:o=o._$host??o.parentElement;}while(o&&!a);return [i,s]},[Ll,ql]=q([]),wg=e=>Ll().indexOf(e)===Ll().length-1,xg=e=>{let t=Y({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=Ge(),r=[0,0],o=null,i=null;G(()=>{qe(t.enabled)&&(ql(c=>[...c,n]),H(()=>{ql(c=>c.filter(d=>d!==n));}));}),G(()=>{if(!qe(t.enabled)||!qe(t.hideScrollbar))return;let{body:c}=document,d=window.innerWidth-c.offsetWidth;if(qe(t.preventScrollbarShift)){let u={overflow:"hidden"},f=[];d>0&&(qe(t.preventScrollbarShiftMode)==="padding"?u.paddingRight=`calc(${window.getComputedStyle(c).paddingRight} + ${d}px)`:u.marginRight=`calc(${window.getComputedStyle(c).marginRight} + ${d}px)`,f.push({key:"--scrollbar-width",value:`${d}px`}));let h=window.scrollY,g=window.scrollX;Fl({key:"prevent-scroll",element:c,style:u,properties:f,cleanup:()=>{qe(t.restoreScrollPosition)&&d>0&&window.scrollTo(g,h);}});}else Fl({key:"prevent-scroll",element:c,style:{overflow:"hidden"}});}),G(()=>{!wg(n)||!qe(t.enabled)||(document.addEventListener("wheel",a,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),H(()=>{document.removeEventListener("wheel",a),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l);}));});let s=c=>{r=_l(c),o=null,i=null;},a=c=>{let d=c.target,u=qe(t.element),f=Sg(c),h=Math.abs(f[0])>Math.abs(f[1])?"x":"y",g=h==="x"?f[0]:f[1],y=Rl(d,h,g,u),p;u&&ci(u,d)?p=!y:p=!0,p&&c.cancelable&&c.preventDefault();},l=c=>{let d=qe(t.element),u=c.target,f;if(c.touches.length===2)f=!qe(t.allowPinchZoom);else {if(o==null||i===null){let h=_l(c).map((y,p)=>r[p]-y),g=Math.abs(h[0])>Math.abs(h[1])?"x":"y";o=g,i=g==="x"?h[0]:h[1];}if(u.type==="range")f=!1;else {let h=Rl(u,o,i,d);d&&ci(d,u)?f=!h:f=!0;}}f&&c.cancelable&&c.preventDefault();};},Sg=e=>[e.deltaX,e.deltaY],_l=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Rl=(e,t,n,r)=>{let o=r!==null&&ci(r,e),[i,s]=bg(e,t,o?r:void 0);return !(n>0&&Math.abs(i)<=1||n<0&&Math.abs(s)<1)},ci=(e,t)=>{if(e.contains(t))return !0;let n=t;for(;n;){if(n===e)return !0;n=n._$host??n.parentElement;}return !1},Cg=xg,$g=Cg,Wa=Pe();Xa=Pe();Za=Pe();kg=Pe();mr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>mr.next(e==="ltr"?"rtl":"ltr",t)},zl={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};Eg=Pe();rc=Pe();dc=Pe();Og={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};Kl=["Enter"," "],Ig={open:(e,t)=>e==="ltr"?[...Kl,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Kl,t==="horizontal"?"ArrowLeft":"ArrowUp"]};Lg={};So(Lg,{Root:()=>Eo,Separator:()=>qg});qg=Eo,he={};So(he,{Arrow:()=>Ei,CheckboxItem:()=>Ja,Content:()=>vc,DropdownMenu:()=>_g,Group:()=>Pi,GroupLabel:()=>oc,Icon:()=>ic,Item:()=>sc,ItemDescription:()=>lc,ItemIndicator:()=>ac,ItemLabel:()=>cc,Portal:()=>uc,RadioGroup:()=>fc,RadioItem:()=>gc,Root:()=>bc,Separator:()=>Eo,Sub:()=>mc,SubContent:()=>yc,SubTrigger:()=>pc,Trigger:()=>ec});_g=Object.assign(bc,{Arrow:Ei,CheckboxItem:Ja,Content:vc,Group:Pi,GroupLabel:oc,Icon:ic,Item:sc,ItemDescription:lc,ItemIndicator:ac,ItemLabel:cc,Portal:uc,RadioGroup:fc,RadioItem:gc,Separator:Eo,Sub:mc,SubContent:yc,SubTrigger:pc,Trigger:ec}),k={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},Rg=z('<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),zg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Kg=z('<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Bg=z('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Di=z('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Ng=z('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Vg=z('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Ug=z('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Gg=z('<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">'),Hg=z('<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">'),jg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Qg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Wg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>'),Yg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),wc=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Xg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Zg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>'),Jg=z('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),eh=z('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),th=z('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>'),nh=z('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),rh=z('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),oh=z('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');$h=z('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),kh=z('<button title="Copy object to clipboard">'),Eh=z('<button title="Remove all items"aria-label="Remove all items">'),Th=z('<button title="Delete item"aria-label="Delete item">'),Ah=z('<button title="Toggle value"aria-label="Toggle value">'),Ph=z('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),ar=z("<div>"),Dh=z("<div><button> <span></span> <span> "),Mh=z("<input>"),Ul=z("<span>"),Oh=z("<div><span>:"),Ih=z("<div><div><button> [<!>...<!>]");Gl=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?Tn(n):En(n));return (()=>{var o=$h();return V(()=>D(o,R(r().expander,n`
2
- transform: rotate(${e.expanded?90:0}deg);
3
- `,e.expanded&&n`
4
- & svg {
5
- top: -1px;
6
- }
7
- `))),o})()},Lh=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?Tn(n):En(n)),[o,i]=q("NoCopy");return (()=>{var s=kh();return No(s,"click",o()==="NoCopy"?()=>{navigator.clipboard.writeText(Ws(e.value)).then(()=>{i("SuccessCopy"),setTimeout(()=>{i("NoCopy");},1500);},a=>{i("ErrorCopy"),setTimeout(()=>{i("NoCopy");},1500);});}:void 0,!0),$(s,m(Ps,{get children(){return [m(eo,{get when(){return o()==="NoCopy"},get children(){return m(mh,{})}}),m(eo,{get when(){return o()==="SuccessCopy"},get children(){return m(ph,{get theme(){return t()}})}}),m(eo,{get when(){return o()==="ErrorCopy"},get children(){return m(vh,{})}})]}})),V(a=>{var l=r().actionButton,c=`${o()==="NoCopy"?"Copy object to clipboard":o()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return l!==a.e&&D(s,a.e=l),c!==a.t&&A(s,"aria-label",a.t=c),a},{e:void 0,t:void 0}),s})()},qh=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?Tn(n):En(n)),o=U().client;return (()=>{var i=Eh();return i.$$click=()=>{let s=e.activeQuery.state.data,a=Rt(s,e.dataPath,[]);o.setQueryData(e.activeQuery.queryKey,a);},$(i,m(bh,{})),V(()=>D(i,r().actionButton)),i})()},Hl=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?Tn(n):En(n)),o=U().client;return (()=>{var i=Th();return i.$$click=()=>{let s=e.activeQuery.state.data,a=hn(s,e.dataPath);o.setQueryData(e.activeQuery.queryKey,a);},$(i,m(xc,{})),V(()=>D(i,R(r().actionButton))),i})()},_h=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?Tn(n):En(n)),o=U().client;return (()=>{var i=Ah();return i.$$click=()=>{let s=e.activeQuery.state.data,a=Rt(s,e.dataPath,!e.value);o.setQueryData(e.activeQuery.queryKey,a);},$(i,m(wh,{get theme(){return t()},get checked(){return e.value}})),V(()=>D(i,R(r().actionButton,n`
8
- width: ${k.size[3.5]};
9
- height: ${k.size[3.5]};
10
- `))),i})()};Sc=(e,t)=>{let{colors:n,font:r,size:o,border:i}=k,s=(a,l)=>e==="light"?a:l;return {entry:t`
11
- & * {
12
- font-size: ${r.size.xs};
13
- font-family:
14
- ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
15
- 'Liberation Mono', 'Courier New', monospace;
16
- }
17
- position: relative;
18
- outline: none;
19
- word-break: break-word;
20
- `,subEntry:t`
21
- margin: 0 0 0 0.5em;
22
- padding-left: 0.75em;
23
- border-left: 2px solid ${s(n.gray[300],n.darkGray[400])};
24
- /* outline: 1px solid ${n.teal[400]}; */
25
- `,expander:t`
26
- & path {
27
- stroke: ${n.gray[400]};
28
- }
29
- & svg {
30
- width: ${o[3]};
31
- height: ${o[3]};
32
- }
33
- display: inline-flex;
34
- align-items: center;
35
- transition: all 0.1s ease;
36
- /* outline: 1px solid ${n.blue[400]}; */
37
- `,expanderButtonContainer:t`
38
- display: flex;
39
- align-items: center;
40
- line-height: ${o[4]};
41
- min-height: ${o[4]};
42
- gap: ${o[2]};
43
- `,expanderButton:t`
44
- cursor: pointer;
45
- color: inherit;
46
- font: inherit;
47
- outline: inherit;
48
- height: ${o[5]};
49
- background: transparent;
50
- border: none;
51
- padding: 0;
52
- display: inline-flex;
53
- align-items: center;
54
- gap: ${o[1]};
55
- position: relative;
56
- /* outline: 1px solid ${n.green[400]}; */
57
-
58
- &:focus-visible {
59
- border-radius: ${i.radius.xs};
60
- outline: 2px solid ${n.blue[800]};
61
- }
62
-
63
- & svg {
64
- position: relative;
65
- left: 1px;
66
- }
67
- `,info:t`
68
- color: ${s(n.gray[500],n.gray[500])};
69
- font-size: ${r.size.xs};
70
- margin-left: ${o[1]};
71
- /* outline: 1px solid ${n.yellow[400]}; */
72
- `,label:t`
73
- color: ${s(n.gray[700],n.gray[300])};
74
- white-space: nowrap;
75
- `,value:t`
76
- color: ${s(n.purple[600],n.purple[400])};
77
- flex-grow: 1;
78
- `,actions:t`
79
- display: inline-flex;
80
- gap: ${o[2]};
81
- align-items: center;
82
- `,row:t`
83
- display: inline-flex;
84
- gap: ${o[2]};
85
- width: 100%;
86
- margin: ${o[.25]} 0px;
87
- line-height: ${o[4.5]};
88
- align-items: center;
89
- `,editableInput:t`
90
- border: none;
91
- padding: ${o[.5]} ${o[1]} ${o[.5]} ${o[1.5]};
92
- flex-grow: 1;
93
- border-radius: ${i.radius.xs};
94
- background-color: ${s(n.gray[200],n.darkGray[500])};
95
-
96
- &:hover {
97
- background-color: ${s(n.gray[300],n.darkGray[600])};
98
- }
99
- `,actionButton:t`
100
- background-color: transparent;
101
- color: ${s(n.gray[500],n.gray[500])};
102
- border: none;
103
- display: inline-flex;
104
- padding: 0px;
105
- align-items: center;
106
- justify-content: center;
107
- cursor: pointer;
108
- width: ${o[3]};
109
- height: ${o[3]};
110
- position: relative;
111
- z-index: 1;
112
-
113
- &:hover svg {
114
- color: ${s(n.gray[600],n.gray[400])};
115
- }
116
-
117
- &:focus-visible {
118
- border-radius: ${i.radius.xs};
119
- outline: 2px solid ${n.blue[800]};
120
- outline-offset: 2px;
121
- }
122
- `}},En=e=>Sc("light",e),Tn=e=>Sc("dark",e);rr(["click"]);Rh=z('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),Cr=z("<div>"),zh=z('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),Kh=z("<select name=tsqd-queries-filter-sort>"),Bh=z("<select name=tsqd-mutations-filter-sort>"),Nh=z("<span>Asc"),Vh=z("<span>Desc"),Uh=z('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Gh=z("<div>Settings"),Hh=z("<span>Position"),jh=z("<span>Top"),Qh=z("<span>Bottom"),Wh=z("<span>Left"),Yh=z("<span>Right"),Xh=z("<span>Theme"),Zh=z("<span>Light"),Jh=z("<span>Dark"),e1=z("<span>System"),t1=z("<span>Disabled Queries"),n1=z("<span>Show"),r1=z("<span>Hide"),o1=z("<div><div class=tsqd-queries-container>"),i1=z("<div><div class=tsqd-mutations-container>"),s1=z('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'),Ql=z("<option>Sort by "),l1=z("<div class=tsqd-query-disabled-indicator>disabled"),a1=z("<div class=tsqd-query-static-indicator>static"),Cc=z("<button><div></div><code class=tsqd-query-hash>"),c1=z("<div role=tooltip id=tsqd-status-tooltip>"),u1=z("<span>"),d1=z("<button><span></span><span>"),f1=z("<button><span></span> Error"),g1=z('<div><span></span>Trigger Error<select><option value=""disabled selected>'),h1=z('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),m1=z("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),y1=z('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),p1=z("<option>"),v1=z('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),[je,To]=q(null),[Nt,$c]=q(null),[at,Mi]=q(0),[cr,b1]=q(!1),kc=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?ot(n):rt(n)),o=T(()=>U().onlineManager);yt(()=>{let u=o().subscribe(f=>{b1(!f);});H(()=>{u();});});let i=fi(),s=T(()=>U().buttonPosition||vd),a=T(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:U().initialIsOpen||bd),l=T(()=>e.localStore.position||U().position||ei),c;G(()=>{let u=c.parentElement,f=e.localStore.height||Wl,h=e.localStore.width||Yl,g=l();u.style.setProperty("--tsqd-panel-height",`${g==="top"?"-":""}${f}px`),u.style.setProperty("--tsqd-panel-width",`${g==="left"?"-":""}${h}px`);}),yt(()=>{let u=()=>{let f=c.parentElement,h=getComputedStyle(f).fontSize;f.style.setProperty("--tsqd-font-size",h);};u(),window.addEventListener("focus",u),H(()=>{window.removeEventListener("focus",u);});});let d=T(()=>e.localStore.pip_open??"false");return [m(N,{get when(){return $e(()=>!!i().pipWindow)()&&d()=="true"},get children(){return m(Uo,{get mount(){return i().pipWindow?.document.body},get children(){return m(w1,{get children(){return m(Ao,e)}})}})}}),(()=>{var u=Cr(),f=c;return typeof f=="function"?Xt(f,u):c=u,$(u,m(ul,{name:"tsqd-panel-transition",get children(){return m(N,{get when(){return $e(()=>!!(a()&&!i().pipWindow))()&&d()=="false"},get children(){return m(x1,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),$(u,m(ul,{name:"tsqd-button-transition",get children(){return m(N,{get when(){return !a()},get children(){var h=Rh(),g=h.firstChild,y=g.nextSibling;return $(g,m(Vl,{})),y.$$click=()=>e.setLocalStore("open","true"),$(y,m(Vl,{})),V(()=>D(h,R(r().devtoolsBtn,r()[`devtoolsBtn-position-${s()}`],"tsqd-open-btn-container"))),h}})}}),null),V(()=>D(u,R(n`
123
- & .tsqd-panel-transition-exit-active,
124
- & .tsqd-panel-transition-enter-active {
125
- transition:
126
- opacity 0.3s,
127
- transform 0.3s;
128
- }
129
-
130
- & .tsqd-panel-transition-exit-to,
131
- & .tsqd-panel-transition-enter {
132
- ${l()==="top"||l()==="bottom"?"transform: translateY(var(--tsqd-panel-height));":"transform: translateX(var(--tsqd-panel-width));"}
133
- }
134
-
135
- & .tsqd-button-transition-exit-active,
136
- & .tsqd-button-transition-enter-active {
137
- transition:
138
- opacity 0.3s,
139
- transform 0.3s;
140
- opacity: 1;
141
- }
142
-
143
- & .tsqd-button-transition-exit-to,
144
- & .tsqd-button-transition-enter {
145
- transform: ${s()==="relative"?"none;":s()==="top-left"?"translateX(-72px);":s()==="top-right"?"translateX(72px);":"translateY(72px);"};
146
- opacity: 0;
147
- }
148
- `,"tsqd-transitions-container"))),u})()]},w1=e=>{let t=fi(),n=Oe(),r=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,o=T(()=>n()==="dark"?ot(r):rt(r)),i=()=>{let{colors:s}=k,a=(l,c)=>n()==="dark"?c:l;return at()<nn?r`
149
- flex-direction: column;
150
- background-color: ${a(s.gray[300],s.gray[600])};
151
- `:r`
152
- flex-direction: row;
153
- background-color: ${a(s.gray[200],s.darkGray[900])};
154
- `};return G(()=>{let s=t().pipWindow,a=()=>{s&&Mi(s.innerWidth);};s&&(s.addEventListener("resize",a),a()),H(()=>{s&&s.removeEventListener("resize",a);});}),(()=>{var s=Cr();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),$(s,()=>e.children),V(()=>D(s,R(o().panel,i(),{[r`
155
- min-width: min-content;
156
- `]:at()<di},"tsqd-main-panel"))),s})()},Ec=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?ot(n):rt(n)),o;yt(()=>{na(o,({width:s},a)=>{a===o&&Mi(s);});});let i=()=>{let{colors:s}=k,a=(l,c)=>t()==="dark"?c:l;return at()<nn?n`
157
- flex-direction: column;
158
- background-color: ${a(s.gray[300],s.gray[600])};
159
- `:n`
160
- flex-direction: row;
161
- background-color: ${a(s.gray[200],s.darkGray[900])};
162
- `};return (()=>{var s=Cr(),a=o;return typeof a=="function"?Xt(a,s):o=s,s.style.setProperty("--tsqd-font-size","16px"),$(s,()=>e.children),V(()=>D(s,R(r().parentPanel,i(),{[n`
163
- min-width: min-content;
164
- `]:at()<di},"tsqd-main-panel"))),s})()},x1=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?ot(n):rt(n)),[o,i]=q(!1),s=T(()=>e.localStore.position||U().position||ei),a=d=>{let u=d.currentTarget.parentElement;if(!u)return;i(!0);let{height:f,width:h}=u.getBoundingClientRect(),g=d.clientX,y=d.clientY,p=0,v=Ho(3.5),b=Ho(12),w=S=>{if(S.preventDefault(),s()==="left"||s()==="right"){let M=s()==="right"?g-S.clientX:S.clientX-g;p=Math.round(h+M),p<b&&(p=b),e.setLocalStore("width",String(Math.round(p)));let O=u.getBoundingClientRect().width;Number(e.localStore.width)<O&&e.setLocalStore("width",String(O));}else {let M=s()==="bottom"?y-S.clientY:S.clientY-y;p=Math.round(f+M),p<v&&(p=v,To(null)),e.setLocalStore("height",String(Math.round(p)));}},x=()=>{o()&&i(!1),document.removeEventListener("mousemove",w,!1),document.removeEventListener("mouseUp",x,!1);};document.addEventListener("mousemove",w,!1),document.addEventListener("mouseup",x,!1);},l;yt(()=>{na(l,({width:d},u)=>{u===l&&Mi(d);});}),G(()=>{let d=l.parentElement?.parentElement?.parentElement;if(!d)return;let u=e.localStore.position||ei,f=Ys("padding",u),h=e.localStore.position==="left"||e.localStore.position==="right",g=(({padding:y,paddingTop:p,paddingBottom:v,paddingLeft:b,paddingRight:w})=>({padding:y,paddingTop:p,paddingBottom:v,paddingLeft:b,paddingRight:w}))(d.style);d.style[f]=`${h?e.localStore.width:e.localStore.height}px`,H(()=>{Object.entries(g).forEach(([y,p])=>{d.style[y]=p;});});});let c=()=>{let{colors:d}=k,u=(f,h)=>t()==="dark"?h:f;return at()<nn?n`
165
- flex-direction: column;
166
- background-color: ${u(d.gray[300],d.gray[600])};
167
- `:n`
168
- flex-direction: row;
169
- background-color: ${u(d.gray[200],d.darkGray[900])};
170
- `};return (()=>{var d=zh(),u=d.firstChild,f=u.nextSibling,h=l;return typeof h=="function"?Xt(h,d):l=d,u.$$mousedown=a,f.$$click=()=>e.setLocalStore("open","false"),$(f,m(xn,{})),$(d,m(Ao,e),null),V(g=>{var y=R(r().panel,r()[`panel-position-${s()}`],c(),{[n`
171
- min-width: min-content;
172
- `]:at()<di&&(s()==="right"||s()==="left")},"tsqd-main-panel"),p=s()==="bottom"||s()==="top"?`${e.localStore.height||Wl}px`:"auto",v=s()==="right"||s()==="left"?`${e.localStore.width||Yl}px`:"auto",b=R(r().dragHandle,r()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),w=R(r().closeBtn,r()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return y!==g.e&&D(d,g.e=y),p!==g.t&&((g.t=p)!=null?d.style.setProperty("height",p):d.style.removeProperty("height")),v!==g.a&&((g.a=v)!=null?d.style.setProperty("width",v):d.style.removeProperty("width")),b!==g.o&&D(u,g.o=b),w!==g.i&&D(f,g.i=w),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),d})()},Ao=e=>{A1(),P1();let t,n=Oe(),r=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,o=T(()=>n()==="dark"?ot(r):rt(r)),i=fi(),[s,a]=q("queries"),l=T(()=>e.localStore.sort||xd),c=T(()=>Number(e.localStore.sortOrder)||rl),d=T(()=>e.localStore.mutationSort||Sd),u=T(()=>Number(e.localStore.mutationSortOrder)||rl),f=T(()=>no[l()]),h=T(()=>ro[d()]),g=T(()=>U().onlineManager),y=T(()=>U().client.getQueryCache()),p=T(()=>U().client.getMutationCache()),v=De(O=>O().getAll().length,!1),b=T(mt(()=>[v(),e.localStore.filter,l(),c(),e.localStore.hideDisabledQueries],()=>{let O=y().getAll(),F=e.localStore.filter?O.filter(I=>ol(I.queryHash,e.localStore.filter||"").passed):[...O];return e.localStore.hideDisabledQueries==="true"&&(F=F.filter(I=>!I.isDisabled())),f()?F.sort((I,B)=>f()(I,B)*c()):F})),w=lt(O=>O().getAll().length,!1),x=T(mt(()=>[w(),e.localStore.mutationFilter,d(),u()],()=>{let O=p().getAll(),F=e.localStore.mutationFilter?O.filter(I=>{let B=`${I.options.mutationKey?JSON.stringify(I.options.mutationKey)+" - ":""}${new Date(I.state.submittedAt).toLocaleString()}`;return ol(B,e.localStore.mutationFilter||"").passed}):[...O];return h()?F.sort((I,B)=>h()(I,B)*u()):F})),S=O=>{e.setLocalStore("position",O);},M=O=>{let C=getComputedStyle(t).getPropertyValue("--tsqd-font-size");O.style.setProperty("--tsqd-font-size",C);};return [(()=>{var O=s1(),F=O.firstChild,C=F.firstChild,I=C.firstChild,B=I.firstChild,K=B.nextSibling,J=K.firstChild,X=F.nextSibling,ie=X.firstChild,me=ie.firstChild,de=me.firstChild,ye=me.nextSibling,ve=ye.nextSibling,Te=ie.nextSibling,Be=Te.firstChild,Ce=Be.nextSibling,Re=t;return typeof Re=="function"?Xt(Re,O):t=O,I.$$click=()=>{if(!i().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose();},$(K,()=>U().queryFlavor,J),$(K,()=>U().version,null),$(C,m(et.Root,{get class(){return R(o().viewToggle)},get value(){return s()},onChange:P=>{a(P),To(null),$c(null);},get children(){return [m(et.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return [m(et.ItemInput,{}),m(et.ItemControl,{get children(){return m(et.ItemIndicator,{})}}),m(et.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),m(et.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return [m(et.ItemInput,{}),m(et.ItemControl,{get children(){return m(et.ItemIndicator,{})}}),m(et.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),$(F,m(N,{get when(){return s()==="queries"},get children(){return m($1,{})}}),null),$(F,m(N,{get when(){return s()==="mutations"},get children(){return m(k1,{})}}),null),$(me,m(ih,{}),de),de.$$input=P=>{s()==="queries"?e.setLocalStore("filter",P.currentTarget.value):e.setLocalStore("mutationFilter",P.currentTarget.value);},$(ye,m(N,{get when(){return s()==="queries"},get children(){var P=Kh();return P.addEventListener("change",Se=>{e.setLocalStore("sort",Se.currentTarget.value);}),$(P,()=>Object.keys(no).map(Se=>(()=>{var se=Ql();return se.firstChild,se.value=Se,$(se,Se,null),se})())),V(()=>P.value=l()),P}}),null),$(ye,m(N,{get when(){return s()==="mutations"},get children(){var P=Bh();return P.addEventListener("change",Se=>{e.setLocalStore("mutationSort",Se.currentTarget.value);}),$(P,()=>Object.keys(ro).map(Se=>(()=>{var se=Ql();return se.firstChild,se.value=Se,$(se,Se,null),se})())),V(()=>P.value=d()),P}}),null),$(ye,m(xn,{}),null),ve.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(c()*-1)):e.setLocalStore("mutationSortOrder",String(u()*-1));},$(ve,m(N,{get when(){return (s()==="queries"?c():u())===1},get children(){return [Nh(),m(Bl,{})]}}),null),$(ve,m(N,{get when(){return (s()==="queries"?c():u())===-1},get children(){return [Vh(),m(Nl,{})]}}),null),Be.$$click=()=>{s()==="queries"?(pt({type:"CLEAR_QUERY_CACHE"}),y().clear()):(pt({type:"CLEAR_MUTATION_CACHE"}),p().clear());},$(Be,m(xc,{})),Ce.$$click=()=>{g().setOnline(!g().isOnline());},$(Ce,(()=>{var P=$e(()=>!!cr());return ()=>P()?m(fh,{}):m(dh,{})})()),$(Te,m(N,{get when(){return $e(()=>!i().pipWindow)()&&!i().disabled},get children(){var P=Uh();return P.$$click=()=>{i().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500));},$(P,m(hh,{})),V(()=>D(P,R(o().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),P}}),null),$(Te,m(he.Root,{gutter:4,get children(){return [m(he.Trigger,{get class(){return R(o().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return m(gh,{})}}),m(he.Portal,{ref:P=>M(P),get mount(){return $e(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return m(he.Content,{get class(){return R(o().settingsMenu,"tsqd-settings-menu")},get children(){return [(()=>{var P=Gh();return V(()=>D(P,R(o().settingsMenuHeader,"tsqd-settings-menu-header"))),P})(),m(N,{get when(){return !e.showPanelViewOnly},get children(){return m(he.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [m(he.SubTrigger,{get class(){return R(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return [Hh(),m(xn,{})]}}),m(he.Portal,{ref:P=>M(P),get mount(){return $e(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return m(he.SubContent,{get class(){return R(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [m(he.Item,{onSelect:()=>{S("top");},as:"button",get class(){return R(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return [jh(),m(Bl,{})]}}),m(he.Item,{onSelect:()=>{S("bottom");},as:"button",get class(){return R(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return [Qh(),m(Nl,{})]}}),m(he.Item,{onSelect:()=>{S("left");},as:"button",get class(){return R(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return [Wh(),m(sh,{})]}}),m(he.Item,{onSelect:()=>{S("right");},as:"button",get class(){return R(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return [Yh(),m(lh,{})]}})]}})}})]}})}}),m(he.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [m(he.SubTrigger,{get class(){return R(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return [Xh(),m(xn,{})]}}),m(he.Portal,{ref:P=>M(P),get mount(){return $e(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return m(he.SubContent,{get class(){return R(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [m(he.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light");},as:"button",get class(){return R(o().settingsSubButton,e.localStore.theme_preference==="light"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return [Zh(),m(ah,{})]}}),m(he.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark");},as:"button",get class(){return R(o().settingsSubButton,e.localStore.theme_preference==="dark"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return [Jh(),m(ch,{})]}}),m(he.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system");},as:"button",get class(){return R(o().settingsSubButton,e.localStore.theme_preference==="system"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return [e1(),m(uh,{})]}})]}})}})]}}),m(he.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [m(he.SubTrigger,{get class(){return R(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-disabled-queries")},get children(){return [t1(),m(xn,{})]}}),m(he.Portal,{ref:P=>M(P),get mount(){return $e(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return m(he.SubContent,{get class(){return R(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [m(he.Item,{onSelect:()=>{e.setLocalStore("hideDisabledQueries","false");},as:"button",get class(){return R(o().settingsSubButton,e.localStore.hideDisabledQueries!=="true"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-show")},get children(){return [n1(),m(N,{get when(){return e.localStore.hideDisabledQueries!=="true"},get children(){return m(ui,{})}})]}}),m(he.Item,{onSelect:()=>{e.setLocalStore("hideDisabledQueries","true");},as:"button",get class(){return R(o().settingsSubButton,e.localStore.hideDisabledQueries==="true"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-hide")},get children(){return [r1(),m(N,{get when(){return e.localStore.hideDisabledQueries==="true"},get children(){return m(ui,{})}})]}})]}})}})]}})]}})}})]}}),null),$(O,m(N,{get when(){return s()==="queries"},get children(){var P=o1(),Se=P.firstChild;return $(Se,m(ao,{by:se=>se.queryHash,get each(){return b()},children:se=>m(S1,{get query(){return se()}})})),V(()=>D(P,R(o().overflowQueryContainer,"tsqd-queries-overflow-container"))),P}}),null),$(O,m(N,{get when(){return s()==="mutations"},get children(){var P=i1(),Se=P.firstChild;return $(Se,m(ao,{by:se=>se.mutationId,get each(){return x()},children:se=>m(C1,{get mutation(){return se()}})})),V(()=>D(P,R(o().overflowQueryContainer,"tsqd-mutations-overflow-container"))),P}}),null),V(P=>{var Se=R(o().queriesContainer,at()<nn&&(je()||Nt())&&r`
173
- height: 50%;
174
- max-height: 50%;
175
- `,at()<nn&&!(je()||Nt())&&r`
176
- height: 100%;
177
- max-height: 100%;
178
- `,"tsqd-queries-container"),se=R(o().row,"tsqd-header"),Lt=o().logoAndToggleContainer,W=R(o().logo,"tsqd-text-logo-container"),it=R(o().tanstackLogo,"tsqd-text-logo-tanstack"),Ie=R(o().queryFlavorLogo,"tsqd-text-logo-query-flavor"),cn=R(o().row,"tsqd-filters-actions-container"),Ye=R(o().filtersContainer,"tsqd-filters-container"),qt=R(o().filterInput,"tsqd-query-filter-textfield-container"),jt=R("tsqd-query-filter-textfield"),St=R(o().filterSelect,"tsqd-query-filter-sort-container"),ft=`Sort order ${(s()==="queries"?c():u())===-1?"descending":"ascending"}`,Ct=(s()==="queries"?c():u())===-1,_=R(o().actionsContainer,"tsqd-actions-container"),fe=R(o().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),ze=`Clear ${s()} cache`,pe=R(o().actionsBtn,cr()&&o().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),ue=`${cr()?"Unset offline mocking behavior":"Mock offline behavior"}`,be=cr(),Ae=`${cr()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Se!==P.e&&D(O,P.e=Se),se!==P.t&&D(F,P.t=se),Lt!==P.a&&D(C,P.a=Lt),W!==P.o&&D(I,P.o=W),it!==P.i&&D(B,P.i=it),Ie!==P.n&&D(K,P.n=Ie),cn!==P.s&&D(X,P.s=cn),Ye!==P.h&&D(ie,P.h=Ye),qt!==P.r&&D(me,P.r=qt),jt!==P.d&&D(de,P.d=jt),St!==P.l&&D(ye,P.l=St),ft!==P.u&&A(ve,"aria-label",P.u=ft),Ct!==P.c&&A(ve,"aria-pressed",P.c=Ct),_!==P.w&&D(Te,P.w=_),fe!==P.m&&D(Be,P.m=fe),ze!==P.f&&A(Be,"title",P.f=ze),pe!==P.y&&D(Ce,P.y=pe),ue!==P.g&&A(Ce,"aria-label",P.g=ue),be!==P.p&&A(Ce,"aria-pressed",P.p=be),Ae!==P.b&&A(Ce,"title",P.b=Ae),P},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),V(()=>de.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),O})(),m(N,{get when(){return $e(()=>s()==="queries")()&&je()},get children(){return m(E1,{})}}),m(N,{get when(){return $e(()=>s()==="mutations")()&&Nt()},get children(){return m(T1,{})}})]},S1=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?ot(n):rt(n)),{colors:o,alpha:i}=k,s=(g,y)=>t()==="dark"?y:g,a=De(g=>g().find({queryKey:e.query.queryKey})?.state,!0,g=>g.query.queryHash===e.query.queryHash),l=De(g=>g().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,g=>g.query.queryHash===e.query.queryHash),c=De(g=>g().find({queryKey:e.query.queryKey})?.isStatic()??!1,!0,g=>g.query.queryHash===e.query.queryHash),d=De(g=>g().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,g=>g.query.queryHash===e.query.queryHash),u=De(g=>g().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,g=>g.query.queryHash===e.query.queryHash),f=T(()=>Xs({queryState:a(),observerCount:u(),isStale:d()})),h=()=>f()==="gray"?n`
179
- background-color: ${s(o[f()][200],o[f()][700])};
180
- color: ${s(o[f()][700],o[f()][300])};
181
- `:n`
182
- background-color: ${s(o[f()][200]+i[80],o[f()][900])};
183
- color: ${s(o[f()][800],o[f()][300])};
184
- `;return m(N,{get when(){return a()},get children(){var g=Cc(),y=g.firstChild,p=y.nextSibling;return g.$$click=()=>To(e.query.queryHash===je()?null:e.query.queryHash),$(y,u),$(p,()=>e.query.queryHash),$(g,m(N,{get when(){return l()},get children(){return l1()}}),null),$(g,m(N,{get when(){return c()},get children(){return a1()}}),null),V(v=>{var b=R(r().queryRow,je()===e.query.queryHash&&r().selectedQueryRow,"tsqd-query-row"),w=`Query key ${e.query.queryHash}`,x=R(h(),"tsqd-query-observer-count");return b!==v.e&&D(g,v.e=b),w!==v.t&&A(g,"aria-label",v.t=w),x!==v.a&&D(y,v.a=x),v},{e:void 0,t:void 0,a:void 0}),g}})},C1=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?ot(n):rt(n)),{colors:o,alpha:i}=k,s=(f,h)=>t()==="dark"?h:f,a=lt(f=>f().getAll().find(y=>y.mutationId===e.mutation.mutationId)?.state),l=lt(f=>{let g=f().getAll().find(y=>y.mutationId===e.mutation.mutationId);return g?g.state.isPaused:!1}),c=lt(f=>{let g=f().getAll().find(y=>y.mutationId===e.mutation.mutationId);return g?g.state.status:"idle"}),d=T(()=>en({isPaused:l(),status:c()})),u=()=>d()==="gray"?n`
185
- background-color: ${s(o[d()][200],o[d()][700])};
186
- color: ${s(o[d()][700],o[d()][300])};
187
- `:n`
188
- background-color: ${s(o[d()][200]+i[80],o[d()][900])};
189
- color: ${s(o[d()][800],o[d()][300])};
190
- `;return m(N,{get when(){return a()},get children(){var f=Cc(),h=f.firstChild,g=h.nextSibling;return f.$$click=()=>{$c(e.mutation.mutationId===Nt()?null:e.mutation.mutationId);},$(h,m(N,{get when(){return d()==="purple"},get children(){return m(Ch,{})}}),null),$(h,m(N,{get when(){return d()==="green"},get children(){return m(ui,{})}}),null),$(h,m(N,{get when(){return d()==="red"},get children(){return m(Sh,{})}}),null),$(h,m(N,{get when(){return d()==="yellow"},get children(){return m(xh,{})}}),null),$(g,m(N,{get when(){return e.mutation.options.mutationKey},get children(){return [$e(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),$(g,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),V(y=>{var p=R(r().queryRow,Nt()===e.mutation.mutationId&&r().selectedQueryRow,"tsqd-query-row"),v=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,b=R(u(),"tsqd-query-observer-count");return p!==y.e&&D(f,y.e=p),v!==y.t&&A(f,"aria-label",y.t=v),b!==y.a&&D(h,y.a=b),y},{e:void 0,t:void 0,a:void 0}),f}})},$1=()=>{let e=De(l=>l().getAll().filter(c=>Jt(c)==="stale").length),t=De(l=>l().getAll().filter(c=>Jt(c)==="fresh").length),n=De(l=>l().getAll().filter(c=>Jt(c)==="fetching").length),r=De(l=>l().getAll().filter(c=>Jt(c)==="paused").length),o=De(l=>l().getAll().filter(c=>Jt(c)==="inactive").length),i=Oe(),s=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,a=T(()=>i()==="dark"?ot(s):rt(s));return (()=>{var l=Cr();return $(l,m(Dt,{label:"Fresh",color:"green",get count(){return t()}}),null),$(l,m(Dt,{label:"Fetching",color:"blue",get count(){return n()}}),null),$(l,m(Dt,{label:"Paused",color:"purple",get count(){return r()}}),null),$(l,m(Dt,{label:"Stale",color:"yellow",get count(){return e()}}),null),$(l,m(Dt,{label:"Inactive",color:"gray",get count(){return o()}}),null),V(()=>D(l,R(a().queryStatusContainer,"tsqd-query-status-container"))),l})()},k1=()=>{let e=lt(a=>a().getAll().filter(l=>en({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=lt(a=>a().getAll().filter(l=>en({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),n=lt(a=>a().getAll().filter(l=>en({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),r=lt(a=>a().getAll().filter(l=>en({isPaused:l.state.isPaused,status:l.state.status})==="red").length),o=Oe(),i=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,s=T(()=>o()==="dark"?ot(i):rt(i));return (()=>{var a=Cr();return $(a,m(Dt,{label:"Paused",color:"purple",get count(){return n()}}),null),$(a,m(Dt,{label:"Pending",color:"yellow",get count(){return t()}}),null),$(a,m(Dt,{label:"Success",color:"green",get count(){return e()}}),null),$(a,m(Dt,{label:"Error",color:"red",get count(){return r()}}),null),V(()=>D(a,R(s().queryStatusContainer,"tsqd-query-status-container"))),a})()},Dt=e=>{let t=Oe(),n=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,r=T(()=>t()==="dark"?ot(n):rt(n)),{colors:o,alpha:i}=k,s=(h,g)=>t()==="dark"?g:h,a,[l,c]=q(!1),[d,u]=q(!1),f=T(()=>!(je()&&at()<pd&&at()>nn||at()<nn));return (()=>{var h=d1(),g=h.firstChild,y=g.nextSibling,p=a;return typeof p=="function"?Xt(p,h):a=h,h.addEventListener("mouseleave",()=>{c(!1),u(!1);}),h.addEventListener("mouseenter",()=>c(!0)),h.addEventListener("blur",()=>u(!1)),h.addEventListener("focus",()=>u(!0)),Vo(h,Y({get disabled(){return f()},get class(){return R(r().queryStatusTag,!f()&&n`
191
- cursor: pointer;
192
- &:hover {
193
- background: ${s(o.gray[200],o.darkGray[400])}${i[80]};
194
- }
195
- `,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),$(h,m(N,{get when(){return $e(()=>!f())()&&(l()||d())},get children(){var v=c1();return $(v,()=>e.label),V(()=>D(v,R(r().statusTooltip,"tsqd-query-status-tooltip"))),v}}),g),$(h,m(N,{get when(){return f()},get children(){var v=u1();return $(v,()=>e.label),V(()=>D(v,R(r().queryStatusTagLabel,"tsqd-query-status-tag-label"))),v}}),y),$(y,()=>e.count),V(v=>{var b=R(n`
196
- width: ${k.size[1.5]};
197
- height: ${k.size[1.5]};
198
- border-radius: ${k.border.radius.full};
199
- background-color: ${k.colors[e.color][500]};
200
- `,"tsqd-query-status-tag-dot"),w=R(r().queryStatusCount,e.count>0&&e.color!=="gray"&&n`
201
- background-color: ${s(o[e.color][100],o[e.color][900])};
202
- color: ${s(o[e.color][700],o[e.color][300])};
203
- `,"tsqd-query-status-tag-count");return b!==v.e&&D(g,v.e=b),w!==v.t&&D(y,v.t=w),v},{e:void 0,t:void 0}),h})()},E1=()=>{let e=Oe(),t=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,n=T(()=>e()==="dark"?ot(t):rt(t)),{colors:r}=k,o=(C,I)=>e()==="dark"?I:C,i=U().client,[s,a]=q(!1),[l,c]=q("view"),[d,u]=q(!1),f=T(()=>U().errorTypes||[]),h=De(C=>C().getAll().find(I=>I.queryHash===je()),!1),g=De(C=>C().getAll().find(I=>I.queryHash===je()),!1),y=De(C=>C().getAll().find(I=>I.queryHash===je())?.state,!1),p=De(C=>C().getAll().find(I=>I.queryHash===je())?.state.data,!1),v=De(C=>{let I=C().getAll().find(B=>B.queryHash===je());return I?Jt(I):"inactive"}),b=De(C=>{let I=C().getAll().find(B=>B.queryHash===je());return I?I.state.status:"pending"}),w=De(C=>C().getAll().find(I=>I.queryHash===je())?.getObserversCount()??0),x=T(()=>Zs(v())),S=()=>{pt({type:"REFETCH",queryHash:h()?.queryHash}),h()?.fetch()?.catch(()=>{});},M=C=>{let I=h();if(!I)return;pt({type:"TRIGGER_ERROR",queryHash:I.queryHash,metadata:{error:C?.name}});let B=C?.initializer(I)??new Error("Unknown error from devtools"),K=I.options;I.setState({status:"error",error:B,fetchMeta:{...I.state.fetchMeta,__previousQueryOptions:K}});},O=()=>{let C=h();if(!C)return;pt({type:"RESTORE_LOADING",queryHash:C.queryHash});let I=C.state,B=C.state.fetchMeta?C.state.fetchMeta.__previousQueryOptions:null;C.cancel({silent:!0}),C.setState({...I,fetchStatus:"idle",fetchMeta:null}),B&&C.fetch(B);};G(()=>{v()!=="fetching"&&a(!1);});let F=()=>x()==="gray"?t`
204
- background-color: ${o(r[x()][200],r[x()][700])};
205
- color: ${o(r[x()][700],r[x()][300])};
206
- border-color: ${o(r[x()][400],r[x()][600])};
207
- `:t`
208
- background-color: ${o(r[x()][100],r[x()][900])};
209
- color: ${o(r[x()][700],r[x()][300])};
210
- border-color: ${o(r[x()][400],r[x()][600])};
211
- `;return m(N,{get when(){return $e(()=>!!h())()&&y()},get children(){var C=y1(),I=C.firstChild,B=I.nextSibling,K=B.firstChild,J=K.firstChild,X=J.firstChild,ie=J.nextSibling,me=K.nextSibling,de=me.firstChild,ye=de.nextSibling,ve=me.nextSibling,Te=ve.firstChild,Be=Te.nextSibling,Ce=B.nextSibling,Re=Ce.nextSibling,P=Re.firstChild,Se=P.firstChild,se=P.nextSibling,Lt=se.firstChild,W=se.nextSibling,it=W.firstChild,Ie=W.nextSibling,cn=Ie.firstChild,Ye=Ie.nextSibling,qt=Ye.firstChild,jt=qt.nextSibling,St=Re.nextSibling;St.firstChild;var ft=St.nextSibling,Ct=ft.nextSibling;return $(X,()=>or(h().queryKey,!0)),$(ie,v),$(ye,w),$(Be,()=>new Date(y().dataUpdatedAt).toLocaleTimeString()),P.$$click=S,se.$$click=()=>{pt({type:"INVALIDATE",queryHash:h()?.queryHash}),i.invalidateQueries(h());},W.$$click=()=>{pt({type:"RESET",queryHash:h()?.queryHash}),i.resetQueries(h());},Ie.$$click=()=>{pt({type:"REMOVE",queryHash:h()?.queryHash}),i.removeQueries(h()),To(null);},Ye.$$click=()=>{if(h()?.state.data===void 0)a(!0),O();else {let _=h();if(!_)return;pt({type:"TRIGGER_LOADING",queryHash:_.queryHash});let fe=_.options;_.fetch({...fe,queryFn:()=>new Promise(()=>{}),gcTime:-1}),_.setState({data:void 0,status:"pending",fetchMeta:{..._.state.fetchMeta,__previousQueryOptions:fe}});}},$(Ye,()=>b()==="pending"?"Restore":"Trigger",jt),$(Re,m(N,{get when(){return f().length===0||b()==="error"},get children(){var _=f1(),fe=_.firstChild,ze=fe.nextSibling;return _.$$click=()=>{h().state.error?(pt({type:"RESTORE_ERROR",queryHash:h()?.queryHash}),i.resetQueries(h())):M();},$(_,()=>b()==="error"?"Restore":"Trigger",ze),V(pe=>{var ue=R(t`
212
- color: ${o(r.red[500],r.red[400])};
213
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),be=b()==="pending",Ae=t`
214
- background-color: ${o(r.red[500],r.red[400])};
215
- `;return ue!==pe.e&&D(_,pe.e=ue),be!==pe.t&&(_.disabled=pe.t=be),Ae!==pe.a&&D(fe,pe.a=Ae),pe},{e:void 0,t:void 0,a:void 0}),_}}),null),$(Re,m(N,{get when(){return !(f().length===0||b()==="error")},get children(){var _=g1(),fe=_.firstChild,ze=fe.nextSibling,pe=ze.nextSibling;return pe.firstChild,pe.addEventListener("change",ue=>{let be=f().find(Ae=>Ae.name===ue.currentTarget.value);M(be);}),$(pe,m(Ts,{get each(){return f()},children:ue=>(()=>{var be=p1();return $(be,()=>ue.name),V(()=>be.value=ue.name),be})()}),null),$(_,m(xn,{}),null),V(ue=>{var be=R(n().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),Ae=t`
216
- background-color: ${k.colors.red[400]};
217
- `,ce=b()==="pending";return be!==ue.e&&D(_,ue.e=be),Ae!==ue.t&&D(fe,ue.t=Ae),ce!==ue.a&&(pe.disabled=ue.a=ce),ue},{e:void 0,t:void 0,a:void 0}),_}}),null),$(St,()=>l()==="view"?"Explorer":"Editor",null),$(C,m(N,{get when(){return l()==="view"},get children(){var _=h1();return $(_,m(Bt,{label:"Data",defaultExpanded:["Data"],get value(){return p()},editable:!0,onEdit:()=>c("edit"),get activeQuery(){return h()}})),V(fe=>(fe=k.size[2])!=null?_.style.setProperty("padding",fe):_.style.removeProperty("padding")),_}}),ft),$(C,m(N,{get when(){return l()==="edit"},get children(){var _=m1(),fe=_.firstChild,ze=fe.nextSibling,pe=ze.firstChild,ue=pe.nextSibling,be=ue.firstChild,Ae=be.nextSibling;return _.addEventListener("submit",ce=>{ce.preventDefault();let kt=new FormData(ce.currentTarget).get("data");try{let st=JSON.parse(kt);h().setState({...h().state,data:st}),c("view");}catch{u(!0);}}),fe.addEventListener("focus",()=>u(!1)),$(pe,()=>d()?"Invalid Value":""),be.$$click=()=>c("view"),V(ce=>{var $t=R(n().devtoolsEditForm,"tsqd-query-details-data-editor"),kt=n().devtoolsEditTextarea,st=d(),Qt=n().devtoolsEditFormActions,Et=n().devtoolsEditFormError,Wt=n().devtoolsEditFormActionContainer,Tt=R(n().devtoolsEditFormAction,t`
218
- color: ${o(r.gray[600],r.gray[300])};
219
- `),_t=R(n().devtoolsEditFormAction,t`
220
- color: ${o(r.blue[600],r.blue[400])};
221
- `);return $t!==ce.e&&D(_,ce.e=$t),kt!==ce.t&&D(fe,ce.t=kt),st!==ce.a&&A(fe,"data-error",ce.a=st),Qt!==ce.o&&D(ze,ce.o=Qt),Et!==ce.i&&D(pe,ce.i=Et),Wt!==ce.n&&D(ue,ce.n=Wt),Tt!==ce.s&&D(be,ce.s=Tt),_t!==ce.h&&D(Ae,ce.h=_t),ce},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),V(()=>fe.value=JSON.stringify(p(),null,2)),_}}),ft),$(Ct,m(Bt,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return g()}})),V(_=>{var fe=R(n().detailsContainer,"tsqd-query-details-container"),ze=R(n().detailsHeader,"tsqd-query-details-header"),pe=R(n().detailsBody,"tsqd-query-details-summary-container"),ue=R(n().queryDetailsStatus,F()),be=R(n().detailsHeader,"tsqd-query-details-header"),Ae=R(n().actionsBody,"tsqd-query-details-actions-container"),ce=R(t`
222
- color: ${o(r.blue[600],r.blue[400])};
223
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),$t=v()==="fetching",kt=t`
224
- background-color: ${o(r.blue[600],r.blue[400])};
225
- `,st=R(t`
226
- color: ${o(r.yellow[600],r.yellow[400])};
227
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),Qt=b()==="pending",Et=t`
228
- background-color: ${o(r.yellow[600],r.yellow[400])};
229
- `,Wt=R(t`
230
- color: ${o(r.gray[600],r.gray[300])};
231
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),Tt=b()==="pending",_t=t`
232
- background-color: ${o(r.gray[600],r.gray[400])};
233
- `,qr=R(t`
234
- color: ${o(r.pink[500],r.pink[400])};
235
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),Vn=v()==="fetching",_r=t`
236
- background-color: ${o(r.pink[500],r.pink[400])};
237
- `,un=R(t`
238
- color: ${o(r.cyan[500],r.cyan[400])};
239
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),Rr=s(),Un=t`
240
- background-color: ${o(r.cyan[500],r.cyan[400])};
241
- `,Gn=R(n().detailsHeader,"tsqd-query-details-header"),Hn=R(n().detailsHeader,"tsqd-query-details-header"),dn=k.size[2];return fe!==_.e&&D(C,_.e=fe),ze!==_.t&&D(I,_.t=ze),pe!==_.a&&D(B,_.a=pe),ue!==_.o&&D(ie,_.o=ue),be!==_.i&&D(Ce,_.i=be),Ae!==_.n&&D(Re,_.n=Ae),ce!==_.s&&D(P,_.s=ce),$t!==_.h&&(P.disabled=_.h=$t),kt!==_.r&&D(Se,_.r=kt),st!==_.d&&D(se,_.d=st),Qt!==_.l&&(se.disabled=_.l=Qt),Et!==_.u&&D(Lt,_.u=Et),Wt!==_.c&&D(W,_.c=Wt),Tt!==_.w&&(W.disabled=_.w=Tt),_t!==_.m&&D(it,_.m=_t),qr!==_.f&&D(Ie,_.f=qr),Vn!==_.y&&(Ie.disabled=_.y=Vn),_r!==_.g&&D(cn,_.g=_r),un!==_.p&&D(Ye,_.p=un),Rr!==_.b&&(Ye.disabled=_.b=Rr),Un!==_.T&&D(qt,_.T=Un),Gn!==_.A&&D(St,_.A=Gn),Hn!==_.O&&D(ft,_.O=Hn),dn!==_.I&&((_.I=dn)!=null?Ct.style.setProperty("padding",dn):Ct.style.removeProperty("padding")),_},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0,I:void 0}),C}})},T1=()=>{let e=Oe(),t=U().shadowDOMTarget?ee.bind({target:U().shadowDOMTarget}):ee,n=T(()=>e()==="dark"?ot(t):rt(t)),{colors:r}=k,o=(d,u)=>e()==="dark"?u:d,i=lt(d=>{let f=d().getAll().find(h=>h.mutationId===Nt());return f?f.state.isPaused:!1}),s=lt(d=>{let f=d().getAll().find(h=>h.mutationId===Nt());return f?f.state.status:"idle"}),a=T(()=>en({isPaused:i(),status:s()})),l=lt(d=>d().getAll().find(u=>u.mutationId===Nt()),!1),c=()=>a()==="gray"?t`
242
- background-color: ${o(r[a()][200],r[a()][700])};
243
- color: ${o(r[a()][700],r[a()][300])};
244
- border-color: ${o(r[a()][400],r[a()][600])};
245
- `:t`
246
- background-color: ${o(r[a()][100],r[a()][900])};
247
- color: ${o(r[a()][700],r[a()][300])};
248
- border-color: ${o(r[a()][400],r[a()][600])};
249
- `;return m(N,{get when(){return l()},get children(){var d=v1(),u=d.firstChild,f=u.nextSibling,h=f.firstChild,g=h.firstChild,y=g.firstChild,p=g.nextSibling,v=h.nextSibling,b=v.firstChild,w=b.nextSibling,x=f.nextSibling,S=x.nextSibling,M=S.nextSibling,O=M.nextSibling,F=O.nextSibling,C=F.nextSibling,I=C.nextSibling,B=I.nextSibling;return $(y,m(N,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return or(l().options.mutationKey,!0)}})),$(p,m(N,{get when(){return a()==="purple"},children:"pending"}),null),$(p,m(N,{get when(){return a()!=="purple"},get children(){return s()}}),null),$(w,()=>new Date(l().state.submittedAt).toLocaleTimeString()),$(S,m(Bt,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),$(O,m(Bt,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),$(C,m(Bt,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),$(B,m(Bt,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),V(K=>{var J=R(n().detailsContainer,"tsqd-query-details-container"),X=R(n().detailsHeader,"tsqd-query-details-header"),ie=R(n().detailsBody,"tsqd-query-details-summary-container"),me=R(n().queryDetailsStatus,c()),de=R(n().detailsHeader,"tsqd-query-details-header"),ye=k.size[2],ve=R(n().detailsHeader,"tsqd-query-details-header"),Te=k.size[2],Be=R(n().detailsHeader,"tsqd-query-details-header"),Ce=k.size[2],Re=R(n().detailsHeader,"tsqd-query-details-header"),P=k.size[2];return J!==K.e&&D(d,K.e=J),X!==K.t&&D(u,K.t=X),ie!==K.a&&D(f,K.a=ie),me!==K.o&&D(p,K.o=me),de!==K.i&&D(x,K.i=de),ye!==K.n&&((K.n=ye)!=null?S.style.setProperty("padding",ye):S.style.removeProperty("padding")),ve!==K.s&&D(M,K.s=ve),Te!==K.h&&((K.h=Te)!=null?O.style.setProperty("padding",Te):O.style.removeProperty("padding")),Be!==K.r&&D(F,K.r=Be),Ce!==K.d&&((K.d=Ce)!=null?C.style.setProperty("padding",Ce):C.style.removeProperty("padding")),Re!==K.l&&D(I,K.l=Re),P!==K.u&&((K.u=P)!=null?B.style.setProperty("padding",P):B.style.removeProperty("padding")),K},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),d}})},ho=new Map,A1=()=>{let e=T(()=>U().client.getQueryCache()),t=e().subscribe(n=>{ys(()=>{for(let[r,o]of ho.entries())o.shouldUpdate(n)&&o.setter(r(e));});});return H(()=>{ho.clear(),t();}),t},De=(e,t=!0,n=()=>!0)=>{let r=T(()=>U().client.getQueryCache()),[o,i]=q(e(r),t?void 0:{equals:!1});return G(()=>{i(e(r));}),ho.set(e,{setter:i,shouldUpdate:n}),H(()=>{ho.delete(e);}),o},mo=new Map,P1=()=>{let e=T(()=>U().client.getMutationCache()),t=e().subscribe(()=>{for(let[n,r]of mo.entries())queueMicrotask(()=>{r(n(e));});});return H(()=>{mo.clear(),t();}),t},lt=(e,t=!0)=>{let n=T(()=>U().client.getMutationCache()),[r,o]=q(e(n),t?void 0:{equals:!1});return G(()=>{o(e(n));}),mo.set(e,o),H(()=>{mo.delete(e);}),r},D1="@tanstack/query-devtools-event",pt=({type:e,queryHash:t,metadata:n})=>{let r=new CustomEvent(D1,{detail:{type:e,queryHash:t,metadata:n},bubbles:!0,cancelable:!0});window.dispatchEvent(r);},Tc=(e,t)=>{let{colors:n,font:r,size:o,alpha:i,shadow:s,border:a}=k,l=(c,d)=>e==="light"?c:d;return {devtoolsBtn:t`
250
- z-index: 100000;
251
- position: fixed;
252
- padding: 4px;
253
- text-align: left;
254
-
255
- display: flex;
256
- align-items: center;
257
- justify-content: center;
258
- border-radius: 9999px;
259
- box-shadow: ${s.md()};
260
- overflow: hidden;
261
-
262
- & div {
263
- position: absolute;
264
- top: -8px;
265
- left: -8px;
266
- right: -8px;
267
- bottom: -8px;
268
- border-radius: 9999px;
269
-
270
- & svg {
271
- position: absolute;
272
- width: 100%;
273
- height: 100%;
274
- }
275
- filter: blur(6px) saturate(1.2) contrast(1.1);
276
- }
277
-
278
- &:focus-within {
279
- outline-offset: 2px;
280
- outline: 3px solid ${n.green[600]};
281
- }
282
-
283
- & button {
284
- position: relative;
285
- z-index: 1;
286
- padding: 0;
287
- border-radius: 9999px;
288
- background-color: transparent;
289
- border: none;
290
- height: 40px;
291
- display: flex;
292
- width: 40px;
293
- overflow: hidden;
294
- cursor: pointer;
295
- outline: none;
296
- & svg {
297
- position: absolute;
298
- width: 100%;
299
- height: 100%;
300
- }
301
- }
302
- `,panel:t`
303
- position: fixed;
304
- z-index: 9999;
305
- display: flex;
306
- gap: ${k.size[.5]};
307
- & * {
308
- box-sizing: border-box;
309
- text-transform: none;
310
- }
311
-
312
- & *::-webkit-scrollbar {
313
- width: 7px;
314
- }
315
-
316
- & *::-webkit-scrollbar-track {
317
- background: transparent;
318
- }
319
-
320
- & *::-webkit-scrollbar-thumb {
321
- background: ${l(n.gray[300],n.darkGray[200])};
322
- }
323
-
324
- & *::-webkit-scrollbar-thumb:hover {
325
- background: ${l(n.gray[400],n.darkGray[300])};
326
- }
327
- `,parentPanel:t`
328
- z-index: 9999;
329
- display: flex;
330
- height: 100%;
331
- gap: ${k.size[.5]};
332
- & * {
333
- box-sizing: border-box;
334
- text-transform: none;
335
- }
336
-
337
- & *::-webkit-scrollbar {
338
- width: 7px;
339
- }
340
-
341
- & *::-webkit-scrollbar-track {
342
- background: transparent;
343
- }
344
-
345
- & *::-webkit-scrollbar-thumb {
346
- background: ${l(n.gray[300],n.darkGray[200])};
347
- }
348
-
349
- & *::-webkit-scrollbar-thumb:hover {
350
- background: ${l(n.gray[400],n.darkGray[300])};
351
- }
352
- `,"devtoolsBtn-position-bottom-right":t`
353
- bottom: 12px;
354
- right: 12px;
355
- `,"devtoolsBtn-position-bottom-left":t`
356
- bottom: 12px;
357
- left: 12px;
358
- `,"devtoolsBtn-position-top-left":t`
359
- top: 12px;
360
- left: 12px;
361
- `,"devtoolsBtn-position-top-right":t`
362
- top: 12px;
363
- right: 12px;
364
- `,"devtoolsBtn-position-relative":t`
365
- position: relative;
366
- `,"panel-position-top":t`
367
- top: 0;
368
- right: 0;
369
- left: 0;
370
- max-height: 90%;
371
- min-height: ${o[14]};
372
- border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
373
- `,"panel-position-bottom":t`
374
- bottom: 0;
375
- right: 0;
376
- left: 0;
377
- max-height: 90%;
378
- min-height: ${o[14]};
379
- border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
380
- `,"panel-position-right":t`
381
- bottom: 0;
382
- right: 0;
383
- top: 0;
384
- border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
385
- max-width: 90%;
386
- `,"panel-position-left":t`
387
- bottom: 0;
388
- left: 0;
389
- top: 0;
390
- border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
391
- max-width: 90%;
392
- `,closeBtn:t`
393
- position: absolute;
394
- cursor: pointer;
395
- z-index: 5;
396
- display: flex;
397
- align-items: center;
398
- justify-content: center;
399
- outline: none;
400
- background-color: ${l(n.gray[50],n.darkGray[700])};
401
- &:hover {
402
- background-color: ${l(n.gray[200],n.darkGray[500])};
403
- }
404
- &:focus-visible {
405
- outline: 2px solid ${n.blue[600]};
406
- }
407
- & svg {
408
- color: ${l(n.gray[600],n.gray[400])};
409
- width: ${o[2]};
410
- height: ${o[2]};
411
- }
412
- `,"closeBtn-position-top":t`
413
- bottom: 0;
414
- right: ${o[2]};
415
- transform: translate(0, 100%);
416
- border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
417
- border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
418
- border-top: none;
419
- border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
420
- border-radius: 0px 0px ${a.radius.sm} ${a.radius.sm};
421
- padding: ${o[.5]} ${o[1.5]} ${o[1]} ${o[1.5]};
422
-
423
- &::after {
424
- content: ' ';
425
- position: absolute;
426
- bottom: 100%;
427
- left: -${o[2.5]};
428
- height: ${o[1.5]};
429
- width: calc(100% + ${o[5]});
430
- }
431
-
432
- & svg {
433
- transform: rotate(180deg);
434
- }
435
- `,"closeBtn-position-bottom":t`
436
- top: 0;
437
- right: ${o[2]};
438
- transform: translate(0, -100%);
439
- border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
440
- border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
441
- border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
442
- border-bottom: none;
443
- border-radius: ${a.radius.sm} ${a.radius.sm} 0px 0px;
444
- padding: ${o[1]} ${o[1.5]} ${o[.5]} ${o[1.5]};
445
-
446
- &::after {
447
- content: ' ';
448
- position: absolute;
449
- top: 100%;
450
- left: -${o[2.5]};
451
- height: ${o[1.5]};
452
- width: calc(100% + ${o[5]});
453
- }
454
- `,"closeBtn-position-right":t`
455
- bottom: ${o[2]};
456
- left: 0;
457
- transform: translate(-100%, 0);
458
- border-right: none;
459
- border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
460
- border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
461
- border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
462
- border-radius: ${a.radius.sm} 0px 0px ${a.radius.sm};
463
- padding: ${o[1.5]} ${o[.5]} ${o[1.5]} ${o[1]};
464
-
465
- &::after {
466
- content: ' ';
467
- position: absolute;
468
- left: 100%;
469
- height: calc(100% + ${o[5]});
470
- width: ${o[1.5]};
471
- }
472
-
473
- & svg {
474
- transform: rotate(-90deg);
475
- }
476
- `,"closeBtn-position-left":t`
477
- bottom: ${o[2]};
478
- right: 0;
479
- transform: translate(100%, 0);
480
- border-left: none;
481
- border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
482
- border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
483
- border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
484
- border-radius: 0px ${a.radius.sm} ${a.radius.sm} 0px;
485
- padding: ${o[1.5]} ${o[1]} ${o[1.5]} ${o[.5]};
486
-
487
- &::after {
488
- content: ' ';
489
- position: absolute;
490
- right: 100%;
491
- height: calc(100% + ${o[5]});
492
- width: ${o[1.5]};
493
- }
494
-
495
- & svg {
496
- transform: rotate(90deg);
497
- }
498
- `,queriesContainer:t`
499
- flex: 1 1 700px;
500
- background-color: ${l(n.gray[50],n.darkGray[700])};
501
- display: flex;
502
- flex-direction: column;
503
- & * {
504
- font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
505
- }
506
- `,dragHandle:t`
507
- position: absolute;
508
- transition: background-color 0.125s ease;
509
- &:hover {
510
- background-color: ${n.purple[400]}${l("",i[90])};
511
- }
512
- z-index: 4;
513
- `,"dragHandle-position-top":t`
514
- bottom: 0;
515
- width: 100%;
516
- height: 3px;
517
- cursor: ns-resize;
518
- `,"dragHandle-position-bottom":t`
519
- top: 0;
520
- width: 100%;
521
- height: 3px;
522
- cursor: ns-resize;
523
- `,"dragHandle-position-right":t`
524
- left: 0;
525
- width: 3px;
526
- height: 100%;
527
- cursor: ew-resize;
528
- `,"dragHandle-position-left":t`
529
- right: 0;
530
- width: 3px;
531
- height: 100%;
532
- cursor: ew-resize;
533
- `,row:t`
534
- display: flex;
535
- justify-content: space-between;
536
- align-items: center;
537
- padding: ${k.size[2]} ${k.size[2.5]};
538
- gap: ${k.size[2.5]};
539
- border-bottom: ${l(n.gray[300],n.darkGray[500])} 1px solid;
540
- align-items: center;
541
- & > button {
542
- padding: 0;
543
- background: transparent;
544
- border: none;
545
- display: flex;
546
- gap: ${o[.5]};
547
- flex-direction: column;
548
- }
549
- `,logoAndToggleContainer:t`
550
- display: flex;
551
- gap: ${k.size[3]};
552
- align-items: center;
553
- `,logo:t`
554
- cursor: pointer;
555
- display: flex;
556
- flex-direction: column;
557
- background-color: transparent;
558
- border: none;
559
- gap: ${k.size[.5]};
560
- padding: 0px;
561
- &:hover {
562
- opacity: 0.7;
563
- }
564
- &:focus-visible {
565
- outline-offset: 4px;
566
- border-radius: ${a.radius.xs};
567
- outline: 2px solid ${n.blue[800]};
568
- }
569
- `,tanstackLogo:t`
570
- font-size: ${r.size.md};
571
- font-weight: ${r.weight.bold};
572
- line-height: ${r.lineHeight.xs};
573
- white-space: nowrap;
574
- color: ${l(n.gray[600],n.gray[300])};
575
- `,queryFlavorLogo:t`
576
- font-weight: ${r.weight.semibold};
577
- font-size: ${r.size.xs};
578
- background: linear-gradient(
579
- to right,
580
- ${l("#ea4037, #ff9b11","#dd524b, #e9a03b")}
581
- );
582
- background-clip: text;
583
- -webkit-background-clip: text;
584
- line-height: 1;
585
- -webkit-text-fill-color: transparent;
586
- white-space: nowrap;
587
- `,queryStatusContainer:t`
588
- display: flex;
589
- gap: ${k.size[2]};
590
- height: min-content;
591
- `,queryStatusTag:t`
592
- display: flex;
593
- gap: ${k.size[1.5]};
594
- box-sizing: border-box;
595
- height: ${k.size[6.5]};
596
- background: ${l(n.gray[50],n.darkGray[500])};
597
- color: ${l(n.gray[700],n.gray[300])};
598
- border-radius: ${k.border.radius.sm};
599
- font-size: ${r.size.sm};
600
- padding: ${k.size[1]};
601
- padding-left: ${k.size[1.5]};
602
- align-items: center;
603
- font-weight: ${r.weight.medium};
604
- border: ${l("1px solid "+n.gray[300],"1px solid transparent")};
605
- user-select: none;
606
- position: relative;
607
- &:focus-visible {
608
- outline-offset: 2px;
609
- outline: 2px solid ${n.blue[800]};
610
- }
611
- `,queryStatusTagLabel:t`
612
- font-size: ${r.size.xs};
613
- `,queryStatusCount:t`
614
- font-size: ${r.size.xs};
615
- padding: 0 5px;
616
- display: flex;
617
- align-items: center;
618
- justify-content: center;
619
- color: ${l(n.gray[500],n.gray[400])};
620
- background-color: ${l(n.gray[200],n.darkGray[300])};
621
- border-radius: 2px;
622
- font-variant-numeric: tabular-nums;
623
- height: ${k.size[4.5]};
624
- `,statusTooltip:t`
625
- position: absolute;
626
- z-index: 1;
627
- background-color: ${l(n.gray[50],n.darkGray[500])};
628
- top: 100%;
629
- left: 50%;
630
- transform: translate(-50%, calc(${k.size[2]}));
631
- padding: ${k.size[.5]} ${k.size[2]};
632
- border-radius: ${k.border.radius.sm};
633
- font-size: ${r.size.xs};
634
- border: 1px solid ${l(n.gray[400],n.gray[600])};
635
- color: ${l(n.gray[600],n.gray[300])};
636
-
637
- &::before {
638
- top: 0px;
639
- content: ' ';
640
- display: block;
641
- left: 50%;
642
- transform: translate(-50%, -100%);
643
- position: absolute;
644
- border-color: transparent transparent
645
- ${l(n.gray[400],n.gray[600])} transparent;
646
- border-style: solid;
647
- border-width: 7px;
648
- /* transform: rotate(180deg); */
649
- }
650
-
651
- &::after {
652
- top: 0px;
653
- content: ' ';
654
- display: block;
655
- left: 50%;
656
- transform: translate(-50%, calc(-100% + 2px));
657
- position: absolute;
658
- border-color: transparent transparent
659
- ${l(n.gray[100],n.darkGray[500])} transparent;
660
- border-style: solid;
661
- border-width: 7px;
662
- }
663
- `,filtersContainer:t`
664
- display: flex;
665
- gap: ${k.size[2]};
666
- & > button {
667
- cursor: pointer;
668
- padding: ${k.size[.5]} ${k.size[1.5]} ${k.size[.5]}
669
- ${k.size[2]};
670
- border-radius: ${k.border.radius.sm};
671
- background-color: ${l(n.gray[100],n.darkGray[400])};
672
- border: 1px solid ${l(n.gray[300],n.darkGray[200])};
673
- color: ${l(n.gray[700],n.gray[300])};
674
- font-size: ${r.size.xs};
675
- display: flex;
676
- align-items: center;
677
- line-height: ${r.lineHeight.sm};
678
- gap: ${k.size[1.5]};
679
- max-width: 160px;
680
- &:focus-visible {
681
- outline-offset: 2px;
682
- border-radius: ${a.radius.xs};
683
- outline: 2px solid ${n.blue[800]};
684
- }
685
- & svg {
686
- width: ${k.size[3]};
687
- height: ${k.size[3]};
688
- color: ${l(n.gray[500],n.gray[400])};
689
- }
690
- }
691
- `,filterInput:t`
692
- padding: ${o[.5]} ${o[2]};
693
- border-radius: ${k.border.radius.sm};
694
- background-color: ${l(n.gray[100],n.darkGray[400])};
695
- display: flex;
696
- box-sizing: content-box;
697
- align-items: center;
698
- gap: ${k.size[1.5]};
699
- max-width: 160px;
700
- min-width: 100px;
701
- border: 1px solid ${l(n.gray[300],n.darkGray[200])};
702
- height: min-content;
703
- color: ${l(n.gray[600],n.gray[400])};
704
- & > svg {
705
- width: ${o[3]};
706
- height: ${o[3]};
707
- }
708
- & input {
709
- font-size: ${r.size.xs};
710
- width: 100%;
711
- background-color: ${l(n.gray[100],n.darkGray[400])};
712
- border: none;
713
- padding: 0;
714
- line-height: ${r.lineHeight.sm};
715
- color: ${l(n.gray[700],n.gray[300])};
716
- &::placeholder {
717
- color: ${l(n.gray[700],n.gray[300])};
718
- }
719
- &:focus {
720
- outline: none;
721
- }
722
- }
723
-
724
- &:focus-within {
725
- outline-offset: 2px;
726
- border-radius: ${a.radius.xs};
727
- outline: 2px solid ${n.blue[800]};
728
- }
729
- `,filterSelect:t`
730
- padding: ${k.size[.5]} ${k.size[2]};
731
- border-radius: ${k.border.radius.sm};
732
- background-color: ${l(n.gray[100],n.darkGray[400])};
733
- display: flex;
734
- align-items: center;
735
- gap: ${k.size[1.5]};
736
- box-sizing: content-box;
737
- max-width: 160px;
738
- border: 1px solid ${l(n.gray[300],n.darkGray[200])};
739
- height: min-content;
740
- & > svg {
741
- color: ${l(n.gray[600],n.gray[400])};
742
- width: ${k.size[2]};
743
- height: ${k.size[2]};
744
- }
745
- & > select {
746
- appearance: none;
747
- color: ${l(n.gray[700],n.gray[300])};
748
- min-width: 100px;
749
- line-height: ${r.lineHeight.sm};
750
- font-size: ${r.size.xs};
751
- background-color: ${l(n.gray[100],n.darkGray[400])};
752
- border: none;
753
- &:focus {
754
- outline: none;
755
- }
756
- }
757
- &:focus-within {
758
- outline-offset: 2px;
759
- border-radius: ${a.radius.xs};
760
- outline: 2px solid ${n.blue[800]};
761
- }
762
- `,actionsContainer:t`
763
- display: flex;
764
- gap: ${k.size[2]};
765
- `,actionsBtn:t`
766
- border-radius: ${k.border.radius.sm};
767
- background-color: ${l(n.gray[100],n.darkGray[400])};
768
- border: 1px solid ${l(n.gray[300],n.darkGray[200])};
769
- width: ${k.size[6.5]};
770
- height: ${k.size[6.5]};
771
- justify-content: center;
772
- display: flex;
773
- align-items: center;
774
- gap: ${k.size[1.5]};
775
- max-width: 160px;
776
- cursor: pointer;
777
- padding: 0;
778
- &:hover {
779
- background-color: ${l(n.gray[200],n.darkGray[500])};
780
- }
781
- & svg {
782
- color: ${l(n.gray[700],n.gray[300])};
783
- width: ${k.size[3]};
784
- height: ${k.size[3]};
785
- }
786
- &:focus-visible {
787
- outline-offset: 2px;
788
- border-radius: ${a.radius.xs};
789
- outline: 2px solid ${n.blue[800]};
790
- }
791
- `,actionsBtnOffline:t`
792
- & svg {
793
- stroke: ${l(n.yellow[700],n.yellow[500])};
794
- fill: ${l(n.yellow[700],n.yellow[500])};
795
- }
796
- `,overflowQueryContainer:t`
797
- flex: 1;
798
- overflow-y: auto;
799
- & > div {
800
- display: flex;
801
- flex-direction: column;
802
- }
803
- `,queryRow:t`
804
- display: flex;
805
- align-items: center;
806
- padding: 0;
807
- border: none;
808
- cursor: pointer;
809
- color: ${l(n.gray[700],n.gray[300])};
810
- background-color: ${l(n.gray[50],n.darkGray[700])};
811
- line-height: 1;
812
- &:focus {
813
- outline: none;
814
- }
815
- &:focus-visible {
816
- outline-offset: -2px;
817
- border-radius: ${a.radius.xs};
818
- outline: 2px solid ${n.blue[800]};
819
- }
820
- &:hover .tsqd-query-hash {
821
- background-color: ${l(n.gray[200],n.darkGray[600])};
822
- }
823
-
824
- & .tsqd-query-observer-count {
825
- padding: 0 ${k.size[1]};
826
- user-select: none;
827
- min-width: ${k.size[6.5]};
828
- align-self: stretch;
829
- display: flex;
830
- align-items: center;
831
- justify-content: center;
832
- font-size: ${r.size.xs};
833
- font-weight: ${r.weight.medium};
834
- border-bottom-width: 1px;
835
- border-bottom-style: solid;
836
- border-bottom: 1px solid ${l(n.gray[300],n.darkGray[700])};
837
- }
838
- & .tsqd-query-hash {
839
- user-select: text;
840
- font-size: ${r.size.xs};
841
- display: flex;
842
- align-items: center;
843
- min-height: ${k.size[6]};
844
- flex: 1;
845
- padding: ${k.size[1]} ${k.size[2]};
846
- font-family:
847
- ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
848
- 'Liberation Mono', 'Courier New', monospace;
849
- border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
850
- text-align: left;
851
- text-overflow: clip;
852
- word-break: break-word;
853
- }
854
-
855
- & .tsqd-query-disabled-indicator {
856
- align-self: stretch;
857
- display: flex;
858
- align-items: center;
859
- padding: 0 ${k.size[2]};
860
- color: ${l(n.gray[800],n.gray[300])};
861
- background-color: ${l(n.gray[300],n.darkGray[600])};
862
- border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
863
- font-size: ${r.size.xs};
864
- }
865
-
866
- & .tsqd-query-static-indicator {
867
- align-self: stretch;
868
- display: flex;
869
- align-items: center;
870
- padding: 0 ${k.size[2]};
871
- color: ${l(n.teal[800],n.teal[300])};
872
- background-color: ${l(n.teal[100],n.teal[900])};
873
- border-bottom: 1px solid ${l(n.teal[300],n.teal[700])};
874
- font-size: ${r.size.xs};
875
- }
876
- `,selectedQueryRow:t`
877
- background-color: ${l(n.gray[200],n.darkGray[500])};
878
- `,detailsContainer:t`
879
- flex: 1 1 700px;
880
- background-color: ${l(n.gray[50],n.darkGray[700])};
881
- color: ${l(n.gray[700],n.gray[300])};
882
- font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
883
- display: flex;
884
- flex-direction: column;
885
- overflow-y: auto;
886
- display: flex;
887
- text-align: left;
888
- `,detailsHeader:t`
889
- font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
890
- position: sticky;
891
- top: 0;
892
- z-index: 2;
893
- background-color: ${l(n.gray[200],n.darkGray[600])};
894
- padding: ${k.size[1.5]} ${k.size[2]};
895
- font-weight: ${r.weight.medium};
896
- font-size: ${r.size.xs};
897
- line-height: ${r.lineHeight.xs};
898
- text-align: left;
899
- `,detailsBody:t`
900
- margin: ${k.size[1.5]} 0px ${k.size[2]} 0px;
901
- & > div {
902
- display: flex;
903
- align-items: stretch;
904
- padding: 0 ${k.size[2]};
905
- line-height: ${r.lineHeight.sm};
906
- justify-content: space-between;
907
- & > span {
908
- font-size: ${r.size.xs};
909
- }
910
- & > span:nth-child(2) {
911
- font-variant-numeric: tabular-nums;
912
- }
913
- }
914
-
915
- & > div:first-child {
916
- margin-bottom: ${k.size[1.5]};
917
- }
918
-
919
- & code {
920
- font-family:
921
- ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
922
- 'Liberation Mono', 'Courier New', monospace;
923
- margin: 0;
924
- font-size: ${r.size.xs};
925
- line-height: ${r.lineHeight.xs};
926
- max-width: 100%;
927
- white-space: pre-wrap;
928
- overflow-wrap: anywhere;
929
- word-break: break-word;
930
- }
931
-
932
- & pre {
933
- margin: 0;
934
- display: flex;
935
- align-items: center;
936
- }
937
- `,queryDetailsStatus:t`
938
- border: 1px solid ${n.darkGray[200]};
939
- border-radius: ${k.border.radius.sm};
940
- font-weight: ${r.weight.medium};
941
- padding: ${k.size[1]} ${k.size[2.5]};
942
- `,actionsBody:t`
943
- flex-wrap: wrap;
944
- margin: ${k.size[2]} 0px ${k.size[2]} 0px;
945
- display: flex;
946
- gap: ${k.size[2]};
947
- padding: 0px ${k.size[2]};
948
- & > button {
949
- font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
950
- font-size: ${r.size.xs};
951
- padding: ${k.size[1]} ${k.size[2]};
952
- display: flex;
953
- border-radius: ${k.border.radius.sm};
954
- background-color: ${l(n.gray[100],n.darkGray[600])};
955
- border: 1px solid ${l(n.gray[300],n.darkGray[400])};
956
- align-items: center;
957
- gap: ${k.size[2]};
958
- font-weight: ${r.weight.medium};
959
- line-height: ${r.lineHeight.xs};
960
- cursor: pointer;
961
- &:focus-visible {
962
- outline-offset: 2px;
963
- border-radius: ${a.radius.xs};
964
- outline: 2px solid ${n.blue[800]};
965
- }
966
- &:hover {
967
- background-color: ${l(n.gray[200],n.darkGray[500])};
968
- }
969
-
970
- &:disabled {
971
- opacity: 0.6;
972
- cursor: not-allowed;
973
- }
974
-
975
- & > span {
976
- width: ${o[1.5]};
977
- height: ${o[1.5]};
978
- border-radius: ${k.border.radius.full};
979
- }
980
- }
981
- `,actionsSelect:t`
982
- font-size: ${r.size.xs};
983
- padding: ${k.size[.5]} ${k.size[2]};
984
- display: flex;
985
- border-radius: ${k.border.radius.sm};
986
- overflow: hidden;
987
- background-color: ${l(n.gray[100],n.darkGray[600])};
988
- border: 1px solid ${l(n.gray[300],n.darkGray[400])};
989
- align-items: center;
990
- gap: ${k.size[2]};
991
- font-weight: ${r.weight.medium};
992
- line-height: ${r.lineHeight.sm};
993
- color: ${l(n.red[500],n.red[400])};
994
- cursor: pointer;
995
- position: relative;
996
- &:hover {
997
- background-color: ${l(n.gray[200],n.darkGray[500])};
998
- }
999
- & > span {
1000
- width: ${o[1.5]};
1001
- height: ${o[1.5]};
1002
- border-radius: ${k.border.radius.full};
1003
- }
1004
- &:focus-within {
1005
- outline-offset: 2px;
1006
- border-radius: ${a.radius.xs};
1007
- outline: 2px solid ${n.blue[800]};
1008
- }
1009
- & select {
1010
- position: absolute;
1011
- top: 0;
1012
- left: 0;
1013
- width: 100%;
1014
- height: 100%;
1015
- appearance: none;
1016
- background-color: transparent;
1017
- border: none;
1018
- color: transparent;
1019
- outline: none;
1020
- }
1021
-
1022
- & svg path {
1023
- stroke: ${k.colors.red[400]};
1024
- }
1025
- & svg {
1026
- width: ${k.size[2]};
1027
- height: ${k.size[2]};
1028
- }
1029
- `,settingsMenu:t`
1030
- display: flex;
1031
- & * {
1032
- font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1033
- }
1034
- flex-direction: column;
1035
- gap: ${o[.5]};
1036
- border-radius: ${k.border.radius.sm};
1037
- border: 1px solid ${l(n.gray[300],n.gray[700])};
1038
- background-color: ${l(n.gray[50],n.darkGray[600])};
1039
- font-size: ${r.size.xs};
1040
- color: ${l(n.gray[700],n.gray[300])};
1041
- z-index: 99999;
1042
- min-width: 120px;
1043
- padding: ${o[.5]};
1044
- `,settingsSubTrigger:t`
1045
- display: flex;
1046
- align-items: center;
1047
- justify-content: space-between;
1048
- border-radius: ${k.border.radius.xs};
1049
- padding: ${k.size[1]} ${k.size[1]};
1050
- cursor: pointer;
1051
- background-color: transparent;
1052
- border: none;
1053
- color: ${l(n.gray[700],n.gray[300])};
1054
- & svg {
1055
- color: ${l(n.gray[600],n.gray[400])};
1056
- transform: rotate(-90deg);
1057
- width: ${k.size[2]};
1058
- height: ${k.size[2]};
1059
- }
1060
- &:hover {
1061
- background-color: ${l(n.gray[200],n.darkGray[500])};
1062
- }
1063
- &:focus-visible {
1064
- outline-offset: 2px;
1065
- outline: 2px solid ${n.blue[800]};
1066
- }
1067
- &.data-disabled {
1068
- opacity: 0.6;
1069
- cursor: not-allowed;
1070
- }
1071
- `,settingsMenuHeader:t`
1072
- padding: ${k.size[1]} ${k.size[1]};
1073
- font-weight: ${r.weight.medium};
1074
- border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
1075
- color: ${l(n.gray[500],n.gray[400])};
1076
- font-size: ${r.size.xs};
1077
- `,settingsSubButton:t`
1078
- display: flex;
1079
- align-items: center;
1080
- justify-content: space-between;
1081
- color: ${l(n.gray[700],n.gray[300])};
1082
- font-size: ${r.size.xs};
1083
- border-radius: ${k.border.radius.xs};
1084
- padding: ${k.size[1]} ${k.size[1]};
1085
- cursor: pointer;
1086
- background-color: transparent;
1087
- border: none;
1088
- & svg {
1089
- color: ${l(n.gray[600],n.gray[400])};
1090
- }
1091
- &:hover {
1092
- background-color: ${l(n.gray[200],n.darkGray[500])};
1093
- }
1094
- &:focus-visible {
1095
- outline-offset: 2px;
1096
- outline: 2px solid ${n.blue[800]};
1097
- }
1098
- `,themeSelectedButton:t`
1099
- background-color: ${l(n.purple[100],n.purple[900])};
1100
- color: ${l(n.purple[700],n.purple[300])};
1101
- & svg {
1102
- color: ${l(n.purple[700],n.purple[300])};
1103
- }
1104
- &:hover {
1105
- background-color: ${l(n.purple[100],n.purple[900])};
1106
- }
1107
- `,viewToggle:t`
1108
- border-radius: ${k.border.radius.sm};
1109
- background-color: ${l(n.gray[200],n.darkGray[600])};
1110
- border: 1px solid ${l(n.gray[300],n.darkGray[200])};
1111
- display: flex;
1112
- padding: 0;
1113
- font-size: ${r.size.xs};
1114
- color: ${l(n.gray[700],n.gray[300])};
1115
- overflow: hidden;
1116
-
1117
- &:has(:focus-visible) {
1118
- outline: 2px solid ${n.blue[800]};
1119
- }
1120
-
1121
- & .tsqd-radio-toggle {
1122
- opacity: 0.5;
1123
- display: flex;
1124
- & label {
1125
- display: flex;
1126
- align-items: center;
1127
- cursor: pointer;
1128
- line-height: ${r.lineHeight.md};
1129
- }
1130
-
1131
- & label:hover {
1132
- background-color: ${l(n.gray[100],n.darkGray[500])};
1133
- }
1134
- }
1135
-
1136
- & > [data-checked] {
1137
- opacity: 1;
1138
- background-color: ${l(n.gray[100],n.darkGray[400])};
1139
- & label:hover {
1140
- background-color: ${l(n.gray[100],n.darkGray[400])};
1141
- }
1142
- }
1143
-
1144
- & .tsqd-radio-toggle:first-child {
1145
- & label {
1146
- padding: 0 ${k.size[1.5]} 0 ${k.size[2]};
1147
- }
1148
- border-right: 1px solid ${l(n.gray[300],n.darkGray[200])};
1149
- }
1150
-
1151
- & .tsqd-radio-toggle:nth-child(2) {
1152
- & label {
1153
- padding: 0 ${k.size[2]} 0 ${k.size[1.5]};
1154
- }
1155
- }
1156
- `,devtoolsEditForm:t`
1157
- padding: ${o[2]};
1158
- & > [data-error='true'] {
1159
- outline: 2px solid ${l(n.red[200],n.red[800])};
1160
- outline-offset: 2px;
1161
- border-radius: ${a.radius.xs};
1162
- }
1163
- `,devtoolsEditTextarea:t`
1164
- width: 100%;
1165
- max-height: 500px;
1166
- font-family: 'Fira Code', monospace;
1167
- font-size: ${r.size.xs};
1168
- border-radius: ${a.radius.sm};
1169
- field-sizing: content;
1170
- padding: ${o[2]};
1171
- background-color: ${l(n.gray[100],n.darkGray[800])};
1172
- color: ${l(n.gray[900],n.gray[100])};
1173
- border: 1px solid ${l(n.gray[200],n.gray[700])};
1174
- resize: none;
1175
- &:focus {
1176
- outline-offset: 2px;
1177
- border-radius: ${a.radius.xs};
1178
- outline: 2px solid ${l(n.blue[200],n.blue[800])};
1179
- }
1180
- `,devtoolsEditFormActions:t`
1181
- display: flex;
1182
- justify-content: space-between;
1183
- gap: ${o[2]};
1184
- align-items: center;
1185
- padding-top: ${o[1]};
1186
- font-size: ${r.size.xs};
1187
- `,devtoolsEditFormError:t`
1188
- color: ${l(n.red[700],n.red[500])};
1189
- `,devtoolsEditFormActionContainer:t`
1190
- display: flex;
1191
- gap: ${o[2]};
1192
- `,devtoolsEditFormAction:t`
1193
- font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1194
- font-size: ${r.size.xs};
1195
- padding: ${o[1]} ${k.size[2]};
1196
- display: flex;
1197
- border-radius: ${a.radius.sm};
1198
- background-color: ${l(n.gray[100],n.darkGray[600])};
1199
- border: 1px solid ${l(n.gray[300],n.darkGray[400])};
1200
- align-items: center;
1201
- gap: ${o[2]};
1202
- font-weight: ${r.weight.medium};
1203
- line-height: ${r.lineHeight.xs};
1204
- cursor: pointer;
1205
- &:focus-visible {
1206
- outline-offset: 2px;
1207
- border-radius: ${a.radius.xs};
1208
- outline: 2px solid ${n.blue[800]};
1209
- }
1210
- &:hover {
1211
- background-color: ${l(n.gray[200],n.darkGray[500])};
1212
- }
1213
-
1214
- &:disabled {
1215
- opacity: 0.6;
1216
- cursor: not-allowed;
1217
- }
1218
- `}},rt=e=>Tc("light",e),ot=e=>Tc("dark",e);rr(["click","mousedown","input"]);});var Ac={};Zi(Ac,{default:()=>O1});var M1,O1,Pc=zr(()=>{Oi();ir();M1=e=>{let[t,n]=yo({prefix:"TanstackQueryDevtools"}),r=oo(),o=T(()=>{let i=t.theme_preference||po;return i!=="system"?i:r()});return m(yr.Provider,{value:e,get children(){return m(vo,{localStore:t,setLocalStore:n,get children(){return m(pr.Provider,{value:o,get children(){return m(kc,{localStore:t,setLocalStore:n})}})}})}})},O1=M1;});var Dc={};Zi(Dc,{default:()=>F1});var I1,F1,Mc=zr(()=>{Oi();ir();I1=e=>{let[t,n]=yo({prefix:"TanstackQueryDevtools"}),r=oo(),o=T(()=>{let i=t.theme_preference||po;return i!=="system"?i:r()});return m(yr.Provider,{value:e,get children(){return m(vo,{disabled:!0,localStore:t,setLocalStore:n,get children(){return m(pr.Provider,{value:o,get children(){return m(Ec,{get children(){return m(Ao,{localStore:t,setLocalStore:n,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},F1=I1;});ir();var An,$r,kr,Er,ln,Tr,Pn,Dn,Mn,On,In,Ar,Fn,Pr,Oc,Fc=(Oc=class{constructor(e){le(this,An);le(this,$r);le(this,kr);le(this,Er);le(this,ln,!1);le(this,Tr);le(this,Pn);le(this,Dn);le(this,Mn);le(this,On);le(this,In);le(this,Ar);le(this,Fn);le(this,Pr);let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:a,errorTypes:l,styleNonce:c,shadowDOMTarget:d,hideDisabledQueries:u}=e;re(this,An,q(t)),re(this,kr,n),re(this,Er,r),re(this,$r,o),re(this,Tr,c),re(this,Pn,d),re(this,Dn,q(i)),re(this,Mn,q(s)),re(this,On,q(a)),re(this,In,q(l)),re(this,Ar,q(u));}setButtonPosition(e){j(this,Dn)[1](e);}setPosition(e){j(this,Mn)[1](e);}setInitialIsOpen(e){j(this,On)[1](e);}setErrorTypes(e){j(this,In)[1](e);}setClient(e){j(this,An)[1](e);}mount(e){if(j(this,ln))throw new Error("Devtools is already mounted");let t=Bo(()=>{let n=this,[r]=j(this,Dn),[o]=j(this,Mn),[i]=j(this,On),[s]=j(this,In),[a]=j(this,Ar),[l]=j(this,An),c;return j(this,Fn)?c=j(this,Fn):(c=Ko(()=>Promise.resolve().then(()=>(Pc(),Ac))),re(this,Fn,c)),jo(j(this,Tr),j(this,Pn)),m(c,Y({get queryFlavor(){return j(n,kr)},get version(){return j(n,Er)},get onlineManager(){return j(n,$r)},get shadowDOMTarget(){return j(n,Pn)}},{get client(){return l()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get hideDisabledQueries(){return a()}}))},e);re(this,ln,!0),re(this,Pr,t);}unmount(){var e;if(!j(this,ln))throw new Error("Devtools is not mounted");(e=j(this,Pr))==null||e.call(this),re(this,ln,!1);}},An=new WeakMap,$r=new WeakMap,kr=new WeakMap,Er=new WeakMap,ln=new WeakMap,Tr=new WeakMap,Pn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,On=new WeakMap,In=new WeakMap,Ar=new WeakMap,Fn=new WeakMap,Pr=new WeakMap,Oc),Ln,Dr,Mr,Or,an,Ir,qn,_n,Rn,zn,Kn,Fr,Bn,Nn,Lr,Ic,Lc=(Ic=class{constructor(e){le(this,Ln);le(this,Dr);le(this,Mr);le(this,Or);le(this,an,!1);le(this,Ir);le(this,qn);le(this,_n);le(this,Rn);le(this,zn);le(this,Kn);le(this,Fr);le(this,Bn);le(this,Nn);le(this,Lr);let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:a,errorTypes:l,styleNonce:c,shadowDOMTarget:d,onClose:u,hideDisabledQueries:f}=e;re(this,Ln,q(t)),re(this,Mr,n),re(this,Or,r),re(this,Dr,o),re(this,Ir,c),re(this,qn,d),re(this,_n,q(i)),re(this,Rn,q(s)),re(this,zn,q(a)),re(this,Kn,q(l)),re(this,Fr,q(f)),re(this,Bn,q(u));}setButtonPosition(e){j(this,_n)[1](e);}setPosition(e){j(this,Rn)[1](e);}setInitialIsOpen(e){j(this,zn)[1](e);}setErrorTypes(e){j(this,Kn)[1](e);}setClient(e){j(this,Ln)[1](e);}setOnClose(e){j(this,Bn)[1](()=>e);}mount(e){if(j(this,an))throw new Error("Devtools is already mounted");let t=Bo(()=>{let n=this,[r]=j(this,_n),[o]=j(this,Rn),[i]=j(this,zn),[s]=j(this,Kn),[a]=j(this,Fr),[l]=j(this,Ln),[c]=j(this,Bn),d;return j(this,Nn)?d=j(this,Nn):(d=Ko(()=>Promise.resolve().then(()=>(Mc(),Dc))),re(this,Nn,d)),jo(j(this,Ir),j(this,qn)),m(d,Y({get queryFlavor(){return j(n,Mr)},get version(){return j(n,Or)},get onlineManager(){return j(n,Dr)},get shadowDOMTarget(){return j(n,qn)}},{get client(){return l()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get hideDisabledQueries(){return a()},get onClose(){return c()}}))},e);re(this,an,!0),re(this,Lr,t);}unmount(){var e;if(!j(this,an))throw new Error("Devtools is not mounted");(e=j(this,Lr))==null||e.call(this),re(this,an,!1);}},Ln=new WeakMap,Dr=new WeakMap,Mr=new WeakMap,Or=new WeakMap,an=new WeakMap,Ir=new WeakMap,qn=new WeakMap,_n=new WeakMap,Rn=new WeakMap,zn=new WeakMap,Kn=new WeakMap,Fr=new WeakMap,Bn=new WeakMap,Nn=new WeakMap,Lr=new WeakMap,Ic);function qc(e){let t=useQueryClient(e.client),n=dt.useRef(null),{buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:a,shadowDOMTarget:l,hideDisabledQueries:c}=e,[d]=dt.useState(new Fc({client:t,queryFlavor:"React Query",version:"5",onlineManager:onlineManager,buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:a,shadowDOMTarget:l,hideDisabledQueries:c}));return dt.useEffect(()=>{d.setClient(t);},[t,d]),dt.useEffect(()=>{r&&d.setButtonPosition(r);},[r,d]),dt.useEffect(()=>{o&&d.setPosition(o);},[o,d]),dt.useEffect(()=>{d.setInitialIsOpen(i||!1);},[i,d]),dt.useEffect(()=>{d.setErrorTypes(s||[]);},[s,d]),dt.useEffect(()=>(n.current&&d.mount(n.current),()=>{d.unmount();}),[d]),jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})}function _c(e){let t=useQueryClient(e.client),n=dt.useRef(null),{errorTypes:r,styleNonce:o,shadowDOMTarget:i,hideDisabledQueries:s}=e,[a]=dt.useState(new Lc({client:t,queryFlavor:"React Query",version:"5",onlineManager:onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:o,shadowDOMTarget:i,onClose:e.onClose,hideDisabledQueries:s}));return dt.useEffect(()=>{a.setClient(t);},[t,a]),dt.useEffect(()=>{a.setOnClose(e.onClose??(()=>{}));},[e.onClose,a]),dt.useEffect(()=>{a.setErrorTypes(r||[]);},[r,a]),dt.useEffect(()=>(n.current&&a.mount(n.current),()=>{a.unmount();}),[a]),jsx("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:n})}process.env.NODE_ENV!=="development"?function(){return null}:qc;process.env.NODE_ENV!=="development"?function(){return null}:_c;var Fi=createContext(null);function Li(e){let t=useContext(Fi);if(!t)throw new Error("Missing ToolkitsProvider in the tree");return useStore(t,e||(n=>n))}process.env.NODE_ENV!=="production"&&("ToolkitsProvider");function am(){let e=Li(n=>n.locale);return {t:useMemo(()=>(n,r)=>has(e,n)?template(get(e,n))(r):n,[e])}}/*! Bundled license information:
1219
-
1220
- @tanstack/query-devtools/build/chunk/ZDWCUMSJ.js:
1221
- (*! Bundled license information:
1222
-
1223
- @tanstack/match-sorter-utils/build/lib/index.mjs:
1224
- (**
1225
- * match-sorter-utils
1226
- *
1227
- * Copyright (c) TanStack
1228
- *
1229
- * This source code is licensed under the MIT license found in the
1230
- * LICENSE.md file in the root directory of this source tree.
1231
- *
1232
- * @license MIT
1233
- *)
1234
- (**
1235
- * @name match-sorter
1236
- * @license MIT license.
1237
- * @copyright (c) 2099 Kent C. Dodds
1238
- * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
1239
- *)
1240
-
1241
- @kobalte/utils/dist/index.js:
1242
- (*!
1243
- * Portions of this file are based on code from ariakit.
1244
- * MIT Licensed, Copyright (c) Diego Haz.
1245
- *
1246
- * Credits to the Ariakit team:
1247
- * https://github.com/ariakit/ariakit/blob/da142672eddefa99365773ced72171facc06fdcb/packages/ariakit-utils/src/array.ts
1248
- *)
1249
- (*!
1250
- * Original code by Chakra UI
1251
- * MIT Licensed, Copyright (c) 2019 Segun Adebayo.
1252
- *
1253
- * Credits to the Chakra UI team:
1254
- * https://github.com/chakra-ui/chakra-ui/blob/main/packages/utils/src/assertion.ts
1255
- *)
1256
- (*!
1257
- * Portions of this file are based on code from react-spectrum.
1258
- * Apache License Version 2.0, Copyright 2020 Adobe.
1259
- *
1260
- * Credits to the React Spectrum team:
1261
- * https://github.com/solidjs-community/solid-aria/blob/2c5f54feb5cfea514b1ee0a52d0416878f882351/packages/utils/src/createGlobalListeners.ts
1262
- *)
1263
- (*!
1264
- * Portions of this file are based on code from ariakit.
1265
- * MIT Licensed, Copyright (c) Diego Haz.
1266
- *
1267
- * Credits to the Ariakit team:
1268
- * https://github.com/ariakit/ariakit/blob/232bc79018ec20967fec1e097a9474aba3bb5be7/packages/ariakit-utils/src/dom.ts
1269
- *)
1270
- (*!
1271
- * Portions of this file are based on code from react-spectrum.
1272
- * Apache License Version 2.0, Copyright 2020 Adobe.
1273
- *
1274
- * Credits to the React Spectrum team:
1275
- * https://github.com/adobe/react-spectrum/blob/cf9ab24f3255be1530d0f584061a01aa1e8180e6/packages/@react-aria/utils/src/platform.ts
1276
- *)
1277
- (*!
1278
- * Portions of this file are based on code from react-spectrum.
1279
- * Apache License Version 2.0, Copyright 2020 Adobe.
1280
- *
1281
- * Credits to the React Spectrum team:
1282
- * https://github.com/adobe/react-spectrum/blob/a9dea8a3672179e6c38aafd1429daf44c7ea2ff6/packages/@react-aria/utils/src/focusWithoutScrolling.ts
1283
- *)
1284
- (*!
1285
- * Portions of this file are based on code from ariakit.
1286
- * MIT Licensed, Copyright (c) Diego Haz.
1287
- *
1288
- * Credits to the Ariakit team:
1289
- * https://github.com/ariakit/ariakit/blob/main/packages/ariakit-utils/src/focus.ts
1290
- *
1291
- * Portions of this file are based on code from react-spectrum.
1292
- * Apache License Version 2.0, Copyright 2020 Adobe.
1293
- *
1294
- * Credits to the React Spectrum team:
1295
- * https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/focus/src/isElementVisible.ts
1296
- * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/focus/src/FocusScope.tsx
1297
- *)
1298
- (*!
1299
- * Portions of this file are based on code from react-spectrum.
1300
- * Apache License Version 2.0, Copyright 2020 Adobe.
1301
- *
1302
- * Credits to the React Spectrum team:
1303
- * https://github.com/adobe/react-spectrum/blob/f6e686fe9d3b983d48650980c1ecfdde320bc62f/packages/@react-aria/focus/src/FocusScope.tsx
1304
- *)
1305
- (*!
1306
- * Portions of this file are based on code from react-spectrum.
1307
- * Apache License Version 2.0, Copyright 2020 Adobe.
1308
- *
1309
- * Credits to the React Spectrum team:
1310
- * https://github.com/adobe/react-spectrum/blob/a9dea8a3672179e6c38aafd1429daf44c7ea2ff6/packages/@react-aria/utils/src/getScrollParent.ts
1311
- *)
1312
- (*!
1313
- * Portions of this file are based on code from react-spectrum.
1314
- * Apache License Version 2.0, Copyright 2020 Adobe.
1315
- *
1316
- * Credits to the React Spectrum team:
1317
- * https://github.com/adobe/react-spectrum/blob/a9dea8a3672179e6c38aafd1429daf44c7ea2ff6/packages/@react-aria/utils/src/isVirtualEvent.ts
1318
- *)
1319
- (*!
1320
- * Portions of this file are based on code from react-spectrum.
1321
- * Apache License Version 2.0, Copyright 2020 Adobe.
1322
- *
1323
- * Credits to the React Spectrum team:
1324
- * https://github.com/adobe/react-spectrum/blob/ff3e690fffc6c54367b8057e28a0e5b9211f37b5/packages/@react-stately/utils/src/number.ts
1325
- *)
1326
- (*!
1327
- * Portions of this file are based on code from ariakit.
1328
- * MIT Licensed, Copyright (c) Diego Haz.
1329
- *
1330
- * Credits to the Ariakit team:
1331
- * https://github.com/ariakit/ariakit/blob/84e97943ad637a582c01c9b56d880cd95f595737/packages/ariakit/src/hovercard/__utils/polygon.ts
1332
- * https://github.com/ariakit/ariakit/blob/f2a96973de523d67e41eec983263936c489ef3e2/packages/ariakit/src/hovercard/__utils/debug-polygon.ts
1333
- *)
1334
- (*!
1335
- * Portions of this file are based on code from react-spectrum.
1336
- * Apache License Version 2.0, Copyright 2020 Adobe.
1337
- *
1338
- * Credits to the React Spectrum team:
1339
- * https://github.com/adobe/react-spectrum/blob/a9dea8a3672179e6c38aafd1429daf44c7ea2ff6/packages/@react-aria/utils/src/runAfterTransition.ts
1340
- *)
1341
- (*!
1342
- * Portions of this file are based on code from react-spectrum.
1343
- * Apache License Version 2.0, Copyright 2020 Adobe.
1344
- *
1345
- * Credits to the React Spectrum team:
1346
- * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/utils/src/scrollIntoView.ts
1347
- *)
1348
- *)
1349
- */export{am as useTranslation};
1
+ import {has,template,get}from'lodash-es';import {createContext,useMemo,useContext}from'react';import'antd';import {useStore}from'zustand';import'zustand/middleware';import'jwt-decode';import'react/jsx-runtime';var s=createContext(null);function n(e){let t=useContext(s);if(!t)throw new Error("Missing ToolkitsProvider in the tree");return useStore(t,e||(o=>o))}process.env.NODE_ENV!=="production"&&("ToolkitsProvider");function w(){let e=n(o=>o.locale);return {t:useMemo(()=>(o,r)=>has(e,o)?template(get(e,o))(r):o,[e])}}export{w as useTranslation};