@prisma/studio-core 0.0.0-dev.202505062005 → 0.0.0-dev.202505062008
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/index.cjs +138 -122
- package/dist/ui/index.css +3 -0
- package/dist/ui/index.js +18 -2
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";var nm=Object.create;var Yr=Object.defineProperty;var sm=Object.getOwnPropertyDescriptor;var lm=Object.getOwnPropertyNames;var im=Object.getPrototypeOf,um=Object.prototype.hasOwnProperty;var Vo=(e,t)=>()=>(e&&(t=e(e=0)),t);var en=(e,t)=>{for(var a in t)Yr(e,a,{get:t[a],enumerable:!0})},Jr=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of lm(t))!um.call(e,r)&&r!==a&&Yr(e,r,{get:()=>t[r],enumerable:!(o=sm(t,r))||o.enumerable});return e},aa=(e,t,a)=>(Jr(e,t,"default"),a&&Jr(a,t,"default")),Ce=(e,t,a)=>(a=e!=null?nm(im(e)):{},Jr(t||!e||!e.__esModule?Yr(a,"default",{value:e,enumerable:!0}):a,e)),dm=e=>Jr(Yr({},"__esModule",{value:!0}),e);var b=Vo(()=>{});function Fi(e){let t=String(e),a=t.length-1;return Z.context.id+(a?String.fromCharCode(96+a):"")+t}function Ja(e){Z.context=e}function Km(){return{...Z.context,id:Z.getNextContextId(),count:0}}function Ut(e,t){let a=ge,o=oe,r=e.length===0,n=t===void 0?o:t,s=r?ji:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>Ie(()=>Da(s)));oe=s,ge=null;try{return nt(i,!0)}finally{ge=a,oe=o}}function N(e,t){t=t?Object.assign({},dn,t):dn;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(q&&q.running&&q.sources.has(a)?r=r(a.tValue):r=r(a.value)),tu(a,r));return[eu.bind(a),o]}function cn(e,t,a){let o=hn(e,t,!0,ut);Lo&&q&&q.running?Be.push(o):Io(o)}function G(e,t,a){let o=hn(e,t,!1,ut);Lo&&q&&q.running?Be.push(o):Io(o)}function W(e,t,a){Qi=Ym;let o=hn(e,t,!1,ut),r=cr&&$e(cr);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),Xe?Xe.push(o):Io(o)}function k(e,t,a){a=a?Object.assign({},dn,a):dn;let o=hn(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,Lo&&q&&q.running?(o.tState=ut,Be.push(o)):Io(o),eu.bind(o)}function Wm(e){return e&&typeof e=="object"&&"then"in e}function Qm(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=ys,l=null,u=!1,d=!1,c="initialValue"in n,f=typeof o=="function"&&k(o),p=new Set,[m,g]=(n.storage||N)(n.initialValue),[h,x]=N(void 0),[v,C]=N(void 0,{equals:!1}),[w,S]=N(c?"ready":"unresolved");Z.context&&(l=Z.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Z.load&&Z.has(l)&&(i=Z.load(l)));function F(L,U,R,ee){return s===L&&(s=null,ee!==void 0&&(c=!0),(L===i||U===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(ee,{value:U})),i=ys,q&&L&&u?(q.promises.delete(L),u=!1,nt(()=>{q.running=!0,D(U,R)},!1)):D(U,R)),U}function D(L,U){nt(()=>{U===void 0&&g(()=>L),S(U!==void 0?"errored":c?"ready":"unresolved"),x(U);for(let R of p.keys())R.decrement();p.clear()},!1)}function T(){let L=cr&&$e(cr),U=m(),R=h();if(R!==void 0&&!s)throw R;return ge&&!ge.user&&L&&cn(()=>{v(),s&&(L.resolved&&q&&u?q.promises.add(s):p.has(L)||(L.increment(),p.add(L)))}),U}function I(L=!0){if(L!==!1&&d)return;d=!1;let U=f?f():o;if(u=q&&q.running,U==null||U===!1){F(s,Ie(m));return}q&&s&&q.promises.delete(s);let R=i!==ys?i:Ie(()=>r(U,{value:m(),refetching:L}));return Wm(R)?(s=R,"value"in R?(R.status==="success"?F(s,R.value,void 0,U):F(s,void 0,bs(R.value),U),R):(d=!0,queueMicrotask(()=>d=!1),nt(()=>{S(c?"refreshing":"pending"),C()},!1),R.then(ee=>F(R,ee,void 0,U),ee=>F(R,void 0,bs(ee),U)))):(F(s,R,void 0,U),R)}return Object.defineProperties(T,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let L=w();return L==="pending"||L==="refreshing"}},latest:{get(){if(!c)return T();let L=h();if(L&&!s)throw L;return m()}}}),f?cn(()=>I(!1)):I(!1),[T,{refetch:I,mutate:g}]}function Xi(e){return nt(e,!1)}function Ie(e){if(!bo&&ge===null)return e();let t=ge;ge=null;try{return bo?bo.untrack(e):e()}finally{ge=t}}function Ht(e,t,a){let o=Array.isArray(e),r,n=a&&a.defer;return s=>{let i;if(o){i=Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u]()}else i=e();if(n)return n=!1,s;let l=Ie(()=>t(i,r,s));return r=i,l}}function sa(e){W(()=>Ie(e))}function X(e){return oe===null||(oe.cleanups===null?oe.cleanups=[e]:oe.cleanups.push(e)),e}function fn(){return oe}function jm(e,t){let a=oe,o=ge;oe=e,ge=null;try{return nt(t,!0)}catch(r){xn(r)}finally{oe=a,ge=o}}function Zi(e){if(q&&q.running)return e(),q.done;let t=ge,a=oe;return Promise.resolve().then(()=>{ge=t,oe=a;let o;return(Lo||cr)&&(o=q||(q={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),o.done||(o.done=new Promise(r=>o.resolve=r)),o.running=!0),nt(e,!1),ge=oe=null,o?o.done:void 0})}function Ji(){return[Xm,Zi]}function _e(e,t){let a=Symbol("context");return{id:a,Provider:eg(a),defaultValue:e}}function $e(e){let t;return oe&&oe.context&&(t=oe.context[e.id])!==void 0?t:e.defaultValue}function Yi(e){let t=k(e),a=k(()=>ws(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function eu(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===ut)Io(this);else{let t=Be;Be=null,nt(()=>pn(this),!1),Be=t}if(ge){let t=this.observers?this.observers.length:0;ge.sources?(ge.sources.push(this),ge.sourceSlots.push(t)):(ge.sources=[this],ge.sourceSlots=[t]),this.observers?(this.observers.push(ge),this.observerSlots.push(ge.sources.length-1)):(this.observers=[ge],this.observerSlots=[ge.sources.length-1])}return e&&q.sources.has(this)?this.tValue:this.value}function tu(e,t,a){let o=q&&q.running&&q.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(q){let r=q.running;(r||!a&&q.sources.has(e))&&(q.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&nt(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=q&&q.running;s&&q.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?Be.push(n):Xe.push(n),n.observers&&ou(n)),s?n.tState=ut:n.state=ut)}if(Be.length>1e6)throw Be=[],new Error},!1)}return t}function Io(e){if(!e.fn)return;Da(e);let t=gn;$i(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{nt(()=>{q&&(q.running=!0),ge=oe=e,$i(e,e.tValue,t),ge=oe=null},!1)})}function $i(e,t,a){let o,r=oe,n=ge;ge=oe=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=ut,e.tOwned&&e.tOwned.forEach(Da),e.tOwned=void 0):(e.state=ut,e.owned&&e.owned.forEach(Da),e.owned=null)),e.updatedAt=a+1,xn(s)}finally{ge=n,oe=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?tu(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function hn(e,t,a,o=ut,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:oe,context:oe?oe.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),oe===null||oe!==ji&&(q&&q.running&&oe.pure?oe.tOwned?oe.tOwned.push(n):oe.tOwned=[n]:oe.owned?oe.owned.push(n):oe.owned=[n]),bo&&n.fn){let[s,i]=N(void 0,{equals:!1}),l=bo.factory(n.fn,i);X(()=>l.dispose());let u=()=>Zi(i).then(()=>d.dispose()),d=bo.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function fr(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===dr)return pn(e);if(e.suspense&&Ie(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<gn);){if(t&&q.disposed.has(e))return;(t?e.tState:e.state)&&a.push(e)}for(let o=a.length-1;o>=0;o--){if(e=a[o],t){let r=e,n=a[o+1];for(;(r=r.owner)&&r!==n;)if(q.disposed.has(r))return}if((t?e.tState:e.state)===ut)Io(e);else if((t?e.tState:e.state)===dr){let r=Be;Be=null,nt(()=>pn(e,a[0]),!1),Be=r}}}function nt(e,t){if(Be)return e();let a=!1;t||(Be=[]),Xe?a=!0:Xe=[],gn++;try{let o=e();return Zm(a),o}catch(o){a||(Xe=null),Be=null,xn(o)}}function Zm(e){if(Be&&(Lo&&q&&q.running?Jm(Be):au(Be),Be=null),e)return;let t;if(q){if(!q.promises.size&&!q.queue.size){let o=q.sources,r=q.disposed;Xe.push.apply(Xe,q.effects),t=q.resolve;for(let n of Xe)"tState"in n&&(n.state=n.tState),delete n.tState;q=null,nt(()=>{for(let n of r)Da(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)Da(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}Bi(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,Xe),Xe=null,Bi(!0);return}}let a=Xe;Xe=null,a.length&&nt(()=>Qi(a),!1),t&&t()}function au(e){for(let t=0;t<e.length;t++)fr(e[t])}function Jm(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),Lo(()=>{o.delete(a),nt(()=>{q.running=!0,fr(a)},!1),q&&(q.running=!1)}))}}function Ym(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:fr(o)}if(Z.context){if(Z.count){Z.effects||(Z.effects=[]),Z.effects.push(...e.slice(0,a));return}Ja()}for(Z.effects&&(Z.done||!Z.count)&&(e=[...Z.effects,...e],a+=Z.effects.length,delete Z.effects),t=0;t<a;t++)fr(e[t])}function pn(e,t){let a=q&&q.running;a?e.tState=0:e.state=0;for(let o=0;o<e.sources.length;o+=1){let r=e.sources[o];if(r.sources){let n=a?r.tState:r.state;n===ut?r!==t&&(!r.updatedAt||r.updatedAt<gn)&&fr(r):n===dr&&pn(r,t)}}}function ou(e){let t=q&&q.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=dr:o.state=dr,o.pure?Be.push(o):Xe.push(o),o.observers&&ou(o))}}function Da(e){let t;if(e.sources)for(;e.sources.length;){let a=e.sources.pop(),o=e.sourceSlots.pop(),r=a.observers;if(r&&r.length){let n=r.pop(),s=a.observerSlots.pop();o<r.length&&(n.sourceSlots[s]=o,r[o]=n,a.observerSlots[o]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Da(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)ru(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Da(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}q&&q.running?e.tState=0:e.state=0}function ru(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)ru(e.owned[a])}function bs(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function qi(e,t,a){try{for(let o of t)o(e)}catch(o){xn(o,a&&a.owner||null)}}function xn(e,t=oe){let a=Oi&&t&&t.context&&t.context[Oi],o=bs(e);if(!a)throw o;Xe?Xe.push({fn(){qi(o,a,t)},state:ut}):qi(o,a,t)}function ws(e){if(typeof e=="function"&&!e.length)return ws(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=ws(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function eg(e,t){return function(o){let r;return G(()=>r=Ie(()=>(oe.context={...oe.context,[e]:o.value},Yi(()=>o.children))),void 0),r}}function mn(e){for(let t=0;t<e.length;t++)e[t]()}function tg(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return X(()=>mn(n)),()=>{let l=e()||[],u=l.length,d,c;return l[xr],Ie(()=>{let p,m,g,h,x,v,C,w,S;if(u===0)s!==0&&(mn(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[Ls],r[0]=Ut(F=>(n[0]=F,a.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=l[c],r[c]=Ut(f);s=u}else{for(g=new Array(u),h=new Array(u),i&&(x=new Array(u)),v=0,C=Math.min(s,u);v<C&&o[v]===l[v];v++);for(C=s-1,w=u-1;C>=v&&w>=v&&o[C]===l[w];C--,w--)g[w]=r[C],h[w]=n[C],i&&(x[w]=i[C]);for(p=new Map,m=new Array(w+1),c=w;c>=v;c--)S=l[c],d=p.get(S),m[c]=d===void 0?-1:d,p.set(S,c);for(d=v;d<=C;d++)S=o[d],c=p.get(S),c!==void 0&&c!==-1?(g[c]=r[d],h[c]=n[d],i&&(x[c]=i[d]),c=m[c],p.set(S,c)):n[d]();for(c=v;c<u;c++)c in g?(r[c]=g[c],n[c]=h[c],i&&(i[c]=x[c],i[c](c))):r[c]=Ut(f);r=r.slice(0,s=u),o=l.slice(0)}return r});function f(p){if(n[c]=p,i){let[m,g]=N(c);return i[c]=g,t(l[c],m)}return t(l[c])}}}function ag(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return X(()=>mn(n)),()=>{let u=e()||[],d=u.length;return u[xr],Ie(()=>{if(d===0)return i!==0&&(mn(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[Ls],r[0]=Ut(f=>(n[0]=f,a.fallback())),i=1),r;for(o[0]===Ls&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<d;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=Ut(c));for(;l<o.length;l++)n[l]();return i=s.length=n.length=d,o=u.slice(0),r=r.slice(0,i)});function c(f){n[l]=f;let[p,m]=N(u[l]);return s[l]=m,t(p,l)}}}function y(e,t){if(og&&Z.context){let a=Z.context;Ja(Km());let o=Ie(()=>e(t||{}));return Ja(a),o}return Ie(()=>e(t||{}))}function rn(){return!0}function vs(e){return(e=typeof e=="function"?e():e)?e:{}}function rg(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function Y(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&un in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if(Wi&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=vs(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in vs(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(vs(e[i])));return[...new Set(s)]}},Is);let a={},o=Object.create(null);for(let s=e.length-1;s>=0;s--){let i=e[s];if(!i)continue;let l=Object.getOwnPropertyNames(i);for(let u=l.length-1;u>=0;u--){let d=l[u];if(d==="__proto__"||d==="constructor")continue;let c=Object.getOwnPropertyDescriptor(i,d);if(!o[d])o[d]=c.get?{enumerable:!0,configurable:!0,get:rg.bind(a[d]=[c.get.bind(i)])}:c.value!==void 0?c:void 0;else{let f=a[d];f&&(c.get?f.push(c.get.bind(i)):c.value!==void 0&&f.push(()=>c.value))}}}let r={},n=Object.keys(o);for(let s=n.length-1;s>=0;s--){let i=n[s],l=o[i];l&&l.get?Object.defineProperty(r,i,l):r[i]=l?l.value:void 0}return r}function ue(e,...t){if(Wi&&un in e){let r=new Set(t.length>1?t.flat():t[0]),n=t.map(s=>new Proxy({get(i){return s.includes(i)?e[i]:void 0},has(i){return s.includes(i)&&i in e},keys(){return s.filter(i=>i in e)}},Is));return n.push(new Proxy({get(s){return r.has(s)?void 0:e[s]},has(s){return r.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!r.has(s))}},Is)),n}let a={},o=t.map(()=>({}));for(let r of Object.getOwnPropertyNames(e)){let n=Object.getOwnPropertyDescriptor(e,r),s=!n.get&&!n.set&&n.enumerable&&n.writable&&n.configurable,i=!1,l=0;for(let u of t)u.includes(r)&&(i=!0,s?o[l][r]=n.value:Object.defineProperty(o[l],r,n)),++l;i||(s?a[r]=n.value:Object.defineProperty(a,r,n))}return[...o,a]}function Rs(e){let t,a,o=r=>{let n=Z.context;if(n){let[i,l]=N();Z.count||(Z.count=0),Z.count++,(a||(a=e())).then(u=>{!Z.done&&Ja(n),Z.count--,l(()=>u.default),Ja()}),t=i}else if(!t){let[i]=Qm(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return k(()=>(s=t())?Ie(()=>{if(!n||Z.done)return s(r);let i=Z.context;Ja(n);let l=s(r);return Ja(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function dt(){return Z.context?Z.getNextContextId():`cl-${ng++}`}function su(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(tg(()=>e.each,e.children,t||void 0))}function lu(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(ag(()=>e.each,e.children,t||void 0))}function Q(e){let t=e.keyed,a=k(()=>e.when,void 0,void 0),o=t?a:k(a,void 0,{equals:(r,n)=>!r==!n});return k(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?Ie(()=>n(t?r:()=>{if(!Ie(o))throw nu("Show");return a()})):n}return e.fallback},void 0,void 0)}function iu(e){let t=Yi(()=>e.children),a=k(()=>{let o=t(),r=Array.isArray(o)?o:[o],n=()=>{};for(let s=0;s<r.length;s++){let i=s,l=r[s],u=n,d=k(()=>u()?void 0:l.when,void 0,void 0),c=l.keyed?d:k(d,void 0,{equals:(f,p)=>!f==!p});n=()=>u()||(c()?[i,d,l]:void 0)}return n});return k(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?Ie(()=>i(s.keyed?n():()=>{if(Ie(a)()?.[0]!==r)throw nu("Match");return n()})):i},void 0,void 0)}function yn(e){return e}function cg(e,t){let a=dg[e];return typeof a=="object"?a[t]?a.$:void 0:a}function gg(e,t,a){let o=a.length,r=t.length,n=o,s=0,i=0,l=t[r-1].nextSibling,u=null;for(;s<r||i<n;){if(t[s]===a[i]){s++,i++;continue}for(;t[r-1]===a[n-1];)r--,n--;if(r===s){let d=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],d)}else if(n===i)for(;s<r;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===a[n-1]&&a[i]===t[r-1]){let d=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],d),t[r]=a[n]}else{if(!u){u=new Map;let c=i;for(;c<n;)u.set(a[c],c++)}let d=u.get(t[s]);if(d!=null)if(i<d&&d<n){let c=s,f=1,p;for(;++c<r&&c<n&&!((p=u.get(t[c]))==null||p!==d+f);)f++;if(f>d-i){let m=t[s];for(;i<d;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function Ts(e,t,a,o={}){let r;return Ut(n=>{r=n,t===document?e():P(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function V(e,t,a,o){let r,n=()=>{let i=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return i.innerHTML=e,a?i.content.firstChild.firstChild:o?i.firstChild:i.content.firstChild},s=t?()=>Ie(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function yr(e,t=window.document){let a=t[ir]||(t[ir]=new Set);for(let o=0,r=e.length;o<r;o++){let n=e[o];a.has(n)||(a.add(n),t.addEventListener(n,cu))}}function du(e=window.document){if(e[ir]){for(let t of e[ir].keys())e.removeEventListener(t,cu);delete e[ir]}}function E(e,t,a){eo(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function hg(e,t,a,o){eo(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function xg(e,t,a){eo(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function O(e,t){eo(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ds(e,t,a,o){if(o)Array.isArray(a)?(e[`$$${t}`]=a[0],e[`$$${t}Data`]=a[1]):e[`$$${t}`]=a;else if(Array.isArray(a)){let r=a[0];e.addEventListener(t,a[0]=n=>r.call(e,a[1],n))}else e.addEventListener(t,a,typeof a!="function"&&a)}function yg(e,t,a={}){let o=Object.keys(t||{}),r=Object.keys(a),n,s;for(n=0,s=r.length;n<s;n++){let i=r[n];!i||i==="undefined"||t[i]||(Ni(e,i,!1),delete a[i])}for(n=0,s=o.length;n<s;n++){let i=o[n],l=!!t[i];!i||i==="undefined"||a[i]===l||!l||(Ni(e,i,!0),a[i]=l)}return a}function vg(e,t,a){if(!t)return a?E(e,"style"):t;let o=e.style;if(typeof t=="string")return o.cssText=t;typeof a=="string"&&(o.cssText=a=void 0),a||(a={}),t||(t={});let r,n;for(n in a)t[n]==null&&o.removeProperty(n),delete a[n];for(n in t)r=t[n],r!==a[n]&&(o.setProperty(n,r),a[n]=r);return a}function Es(e,t={},a,o){let r={};return o||G(()=>r.children=pr(e,t.children,r.children)),G(()=>typeof t.ref=="function"&&Ya(t.ref,e)),G(()=>Cg(e,t,a,!0,r,!0)),r}function Ya(e,t,a){return Ie(()=>e(t,a))}function P(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return pr(e,t,o,a);G(r=>pr(e,t(),r,a),o)}function Cg(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=zi(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=zi(e,s,i,r[s],a,n,t)}}function bg(e){let t,a;return!eo()||!(t=Z.registry.get(a=Lg()))?e():(Z.completed&&Z.completed.add(t),Z.registry.delete(a),t)}function eo(e){return!!Z.context&&!Z.done&&(!e||e.isConnected)}function wg(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function Ni(e,t,a){let o=t.trim().split(/\s+/);for(let r=0,n=o.length;r<n;r++)e.classList.toggle(o[r],a)}function zi(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return vg(e,a,o);if(t==="classList")return yg(e,a,o);if(a===o)return o;if(t==="ref")n||a(e);else if(t.slice(0,3)==="on:"){let f=t.slice(3);o&&e.removeEventListener(f,o,typeof o!="function"&&o),a&&e.addEventListener(f,a,typeof a!="function"&&a)}else if(t.slice(0,10)==="oncapture:"){let f=t.slice(10);o&&e.removeEventListener(f,o,!0),a&&e.addEventListener(f,a,!0)}else if(t.slice(0,2)==="on"){let f=t.slice(2).toLowerCase(),p=fg.has(f);if(!p&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(f,m)}(p||a)&&(Ds(e,f,a,p),p&&yr([f]))}else if(t.slice(0,5)==="attr:")E(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")xg(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=ig.has(t))||!r&&((d=cg(t,e.tagName))||(l=lg.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(eo(e))return a;t==="class"||t==="className"?O(e,a):i&&!l&&!u?e[wg(t)]=a:e[d||t]=a}else{let f=r&&t.indexOf(":")>-1&&mg[t.split(":")[0]];f?hg(e,f,t,a):E(e,ug[t]||t,a)}return a}function cu(e){if(Z.registry&&Z.events&&Z.events.find(([l,u])=>u===e))return;let t=e.target,a=`$$${e.type}`,o=e.target,r=e.currentTarget,n=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{let l=t[a];if(l&&!t.disabled){let u=t[`${a}Data`];if(u!==void 0?l.call(t,u,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&n(t.host),!0},i=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),Z.registry&&!Z.done&&(Z.done=_$HY.done=!0),e.composedPath){let l=e.composedPath();n(l[0]);for(let u=0;u<l.length-2&&(t=l[u],!!s());u++){if(t._$host){t=t._$host,i();break}if(t.parentNode===r)break}}else i();n(o)}function pr(e,t,a,o,r){let n=eo(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let d=a[u];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}a=l}for(;typeof a=="function";)a=a();if(t===a)return a;let s=typeof t,i=o!==void 0;if(e=i&&a[0]&&a[0].parentNode||e,s==="string"||s==="number"){if(n||s==="number"&&(t=t.toString(),t===a))return a;if(i){let l=a[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),a=yo(e,a,o,l)}else a!==""&&typeof a=="string"?a=e.firstChild.data=t:a=e.textContent=t}else if(t==null||s==="boolean"){if(n)return a;a=yo(e,a,o)}else{if(s==="function")return G(()=>{let l=t();for(;typeof l=="function";)l=l();a=pr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(Ss(l,t,a,r))return G(()=>a=pr(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return a;let c=[d];for(;(d=d.nextSibling)!==o;)c.push(d);return a=c}if(l.length===0){if(a=yo(e,a,o),i)return a}else u?a.length===0?Ui(e,l,o):gg(e,a,l):(a&&yo(e),Ui(e,l));a=l}else if(t.nodeType){if(n&&t.parentNode)return a=i?[t]:t;if(Array.isArray(a)){if(i)return a=yo(e,a,o,t);yo(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function Ss(e,t,a,o){let r=!1;for(let n=0,s=t.length;n<s;n++){let i=t[n],l=a&&a[e.length],u;if(!(i==null||i===!0||i===!1))if((u=typeof i)=="object"&&i.nodeType)e.push(i);else if(Array.isArray(i))r=Ss(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=Ss(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let d=String(i);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return r}function Ui(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function yo(e,t,a,o){if(a===void 0)return e.textContent="";let r=o||document.createTextNode("");if(t.length){let n=!1;for(let s=t.length-1;s>=0;s--){let i=t[s];if(r!==i){let l=i.parentNode===e;!n&&!s?l?e.replaceChild(r,i):e.insertBefore(r,a):l&&i.remove()}else n=!0}}else e.insertBefore(r,a);return[r]}function Lg(){return Z.getNextContextId()}function fu(e,t=!1){return t?document.createElementNS(Ig,e):document.createElement(e)}function Fs(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=fn(),n,s=!!Z.context;return W(()=>{s&&(fn().user=s=!1),n||(n=jm(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);Ut(c=>P(i,()=>l()?c():n(),null)),X(d)}else{let l=fu(e.isSVG?"g":"div",e.isSVG),u=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return a.parentNode},configurable:!0}),P(u,n),i.appendChild(l),e.ref&&e.ref(l),X(()=>i.removeChild(l))}},void 0,{render:!s}),a}function Sg(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return Ie(()=>o(t));case"string":let r=pg.has(o),n=Z.context?bg():fu(o,r);return Es(n,t,r),n}})}function pu(e){let[,t]=ue(e,["component"]);return Sg(()=>e.component,t)}function Mg(e){if("values"in Object)return Object.values(e);let t=[];for(let a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t}function Ag(e,t){let a=Mg(e);if("find"in a)return a.find(t);let o=a;for(let r=0;r<o.length;r++){let n=o[r];if(t(n))return n}}function wo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function ln(e,t){return e.indexOf(t)!==-1}function Hi(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function zt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function vn(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function bu(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function Su(e){if(ln(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ln(e,"prototype"))throw new Error("prototype is not allowed as a property");if(ln(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Ms(e,t,a=[]){if(!e)return;if(!Ea(e)){wo(e,(n,s)=>Ms(n,t,[...a,...ur(s)]));return}let[o,r]=e;r&&wo(r,(n,s)=>{Ms(n,t,[...a,...ur(s)])}),t(o,a)}function Qg(e,t,a){return Ms(t,(o,r)=>{e=Ps(e,r,n=>Gg(n,o,a))}),e}function jg(e,t){function a(o,r){let n=Wg(e,ur(r));o.map(ur).forEach(s=>{e=Ps(e,s,()=>n)})}if(Ea(t)){let[o,r]=t;o.forEach(n=>{e=Ps(e,ur(n),()=>e)}),r&&wo(r,a)}else wo(t,a);return e}function Zg(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function Jg(e,t){let a={},o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(i=>i.map(String)).sort((i,l)=>i.length-l.length));let[n,...s]=r;n.length===0?o=s.map(Cs):a[Cs(n)]=s.map(Cs)}),o?ks(a)?[o]:[o,a]:ks(a)?void 0:a}function Pu(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ki(e){return Pu(e)==="Array"}function Yg(e){if(Pu(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function eh(e,t,a,o,r){let n={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";n==="enumerable"&&(e[t]=a),r&&n==="nonenumerable"&&Object.defineProperty(e,t,{value:a,enumerable:!1,writable:!0,configurable:!0})}function As(e,t={}){if(Ki(e))return e.map(r=>As(r,t));if(!Yg(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(Ki(t.props)&&!t.props.includes(n))return r;let s=e[n],i=As(s,t);return eh(r,n,i,e,t.nonenumerable),r},{})}function to(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function Au(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function Ru({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function ao({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Tu(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Z,Gi,Gm,un,Wi,xr,dn,Oi,Qi,ut,dr,ji,ys,oe,q,Lo,bo,ge,Be,Xe,gn,Xm,Bi,cr,Ls,og,Is,ng,nu,uu,sg,lg,ig,ug,dg,fg,pg,mg,ir,Ze,Ig,kg,mu,Pg,Rg,Tg,gu,Dg,mr,ks,Ea,Eg,Fg,Og,Bg,gr,hr,hu,$g,qg,_i,Ng,zg,Ug,Hg,_g,xu,Cs,ur,yu,vu,Vg,Cu,wu,Lu,Kg,Vi,Iu,Gg,vo,Wg,Ps,Xg,ku,se,Os,Mu,vr,nn,th,Du,ah,Cn,sn,Eu,oh,bn,Bs,wn,Ta,Co,$s,Cr=Vo(()=>{"use strict";b();Z={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Fi(this.context.count)},getNextContextId(){return Fi(this.context.count++)}};Gi=!1,Gm=(e,t)=>e===t,un=Symbol("solid-proxy"),Wi=typeof Proxy=="function",xr=Symbol("solid-track"),dn={equals:Gm},Oi=null,Qi=au,ut=1,dr=2,ji={owned:null,cleanups:null,context:null,owner:null},ys={},oe=null,q=null,Lo=null,bo=null,ge=null,Be=null,Xe=null,gn=0;[Xm,Bi]=N(!1);Ls=Symbol("fallback");og=!1;Is={get(e,t,a){return t===un?a:e.get(t)},has(e,t){return t===un?!0:e.has(t)},set:rn,deleteProperty:rn,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:rn,deleteProperty:rn}},ownKeys(e){return e.keys()}};ng=0;nu=e=>`Stale read from <${e}>.`;uu=void 0,sg=["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"],lg=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...sg]),ig=new Set(["innerHTML","textContent","innerText","children"]),ug=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),dg=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});fg=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),pg=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"]),mg={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};ir="_$DX_DELEGATE";Ze=!1,Ig="http://www.w3.org/2000/svg";kg=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()}},mu=class{constructor(e){this.generateIdentifier=e,this.kv=new kg}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)}},Pg=class extends mu{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)}};Rg=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Ag(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Tg=e=>Object.prototype.toString.call(e).slice(8,-1),gu=e=>typeof e>"u",Dg=e=>e===null,mr=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,ks=e=>mr(e)&&Object.keys(e).length===0,Ea=e=>Array.isArray(e),Eg=e=>typeof e=="string",Fg=e=>typeof e=="number"&&!isNaN(e),Og=e=>typeof e=="boolean",Bg=e=>e instanceof RegExp,gr=e=>e instanceof Map,hr=e=>e instanceof Set,hu=e=>Tg(e)==="Symbol",$g=e=>e instanceof Date&&!isNaN(e.valueOf()),qg=e=>e instanceof Error,_i=e=>typeof e=="number"&&isNaN(e),Ng=e=>Og(e)||Dg(e)||gu(e)||Fg(e)||Eg(e)||hu(e),zg=e=>typeof e=="bigint",Ug=e=>e===1/0||e===-1/0,Hg=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),_g=e=>e instanceof URL,xu=e=>e.replace(/\./g,"\\."),Cs=e=>e.map(String).map(xu).join("."),ur=e=>{let t=[],a="";for(let r=0;r<e.length;r++){let n=e.charAt(r);if(n==="\\"&&e.charAt(r+1)==="."){a+=".",r++;continue}if(n==="."){t.push(a),a="";continue}a+=n}let o=a;return t.push(o),t};yu=[zt(gu,"undefined",()=>null,()=>{}),zt(zg,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),zt($g,"Date",e=>e.toISOString(),e=>new Date(e)),zt(qg,"Error",(e,t)=>{let a={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a},(e,t)=>{let a=new Error(e.message);return a.name=e.name,a.stack=e.stack,t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a}),zt(Bg,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),zt(hr,"set",e=>[...e.values()],e=>new Set(e)),zt(gr,"map",e=>[...e.entries()],e=>new Map(e)),zt(e=>_i(e)||Ug(e),"number",e=>_i(e)?"NaN":e>0?"Infinity":"-Infinity",Number),zt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),zt(_g,"URL",e=>e.toString(),e=>new URL(e))];vu=vn((e,t)=>hu(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,a)=>{let o=a.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Vg=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Cu=vn(Hg,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Vg[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});wu=vn(bu,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let a=t.classRegistry.getAllowedProps(e.constructor);if(!a)return{...e};let o={};return a.forEach(r=>{o[r]=e[r]}),o},(e,t,a)=>{let o=a.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)}),Lu=vn((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,a)=>{let o=a.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),Kg=[wu,vu,Lu,Cu],Vi=(e,t)=>{let a=Hi(Kg,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=Hi(yu,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},Iu={};yu.forEach(e=>{Iu[e.annotation]=e});Gg=(e,t,a)=>{if(Ea(t))switch(t[0]){case"symbol":return vu.untransform(e,t,a);case"class":return wu.untransform(e,t,a);case"custom":return Lu.untransform(e,t,a);case"typed-array":return Cu.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=Iu[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},vo=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Wg=(e,t)=>{Su(t);for(let a=0;a<t.length;a++){let o=t[a];if(hr(e))e=vo(e,+o);else if(gr(e)){let r=+o,n=+t[++a]==0?"key":"value",s=vo(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},Ps=(e,t,a)=>{if(Su(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(Ea(o)){let i=+s;o=o[i]}else if(mr(o))o=o[s];else if(hr(o)){let i=+s;o=vo(o,i)}else if(gr(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=vo(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(Ea(o)?o[+r]=a(o[+r]):mr(o)&&(o[r]=a(o[r])),hr(o)){let n=vo(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(gr(o)){let n=+t[t.length-2],s=vo(o,n);switch(+r==0?"key":"value"){case"key":{let l=a(s);o.set(l,o.get(s)),l!==s&&o.delete(s);break}case"value":{o.set(s,a(o.get(s)));break}}}return e};Xg=(e,t)=>mr(e)||Ea(e)||gr(e)||hr(e)||bu(e,t);ku=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Ng(e);if(!i){Zg(e,r,t);let p=s.get(e);if(p)return o?{transformedValue:null}:p}if(!Xg(e,a)){let p=Vi(e,a),m=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return i||s.set(e,m),m}if(ln(n,e))return{transformedValue:null};let l=Vi(e,a),u=l?.value??e,d=Ea(u)?[]:{},c={};wo(u,(p,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);let g=ku(p,t,a,o,[...r,m],[...n,e],s);d[m]=g.transformedValue,Ea(g.annotations)?c[m]=g.annotations:mr(g.annotations)&&wo(g.annotations,(h,x)=>{c[xu(m)+"."+x]=h})});let f=ks(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,f),f};se=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Pg,this.symbolRegistry=new mu(t=>t.description??""),this.customTransformerRegistry=new Rg,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=ku(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=Jg(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=As(t);return a?.values&&(o=Qg(o,a.values,this)),a?.referentialEqualities&&(o=jg(o,a.referentialEqualities)),o}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)}};se.defaultInstance=new se;se.serialize=se.defaultInstance.serialize.bind(se.defaultInstance);se.deserialize=se.defaultInstance.deserialize.bind(se.defaultInstance);se.stringify=se.defaultInstance.stringify.bind(se.defaultInstance);se.parse=se.defaultInstance.parse.bind(se.defaultInstance);se.registerClass=se.defaultInstance.registerClass.bind(se.defaultInstance);se.registerSymbol=se.defaultInstance.registerSymbol.bind(se.defaultInstance);se.registerCustom=se.defaultInstance.registerCustom.bind(se.defaultInstance);se.allowErrorProps=se.defaultInstance.allowErrorProps.bind(se.defaultInstance);Os=se.serialize;se.deserialize;Mu=se.stringify;se.parse;se.registerClass;se.registerCustom;se.registerSymbol;se.allowErrorProps;vr=(e,t=!1)=>{let{json:a}=Os(e);return JSON.stringify(a,null,t?2:void 0)},nn=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,th=(e,t)=>e.queryHash.localeCompare(t.queryHash),Du=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,ah=(e,t)=>nn(e)===nn(t)?Du(e,t):nn(e)>nn(t)?1:-1,Cn={status:ah,"query hash":th,"last updated":Du},sn=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Eu=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,oh=(e,t)=>sn(e)===sn(t)?Eu(e,t):sn(e)>sn(t)?1:-1,bn={status:oh,"last updated":Eu},Bs=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),wn=()=>{let[e,t]=N("dark");return sa(()=>{let a=window.matchMedia("(prefers-color-scheme: dark)");t(a.matches?"dark":"light");let o=r=>{t(r.matches?"dark":"light")};a.addEventListener("change",o),X(()=>a.removeEventListener("change",o))}),e},Ta=(e,t,a)=>{if(t.length===0)return a;if(e instanceof Map){let o=new Map(e);if(t.length===1)return o.set(t[0],a),o;let[r,...n]=t;return o.set(r,Ta(o.get(r),n,a)),o}if(e instanceof Set){let o=Ta(Array.from(e),t,a);return new Set(o)}if(Array.isArray(e)){let o=[...e];if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=Ta(o[r],n,a),o}if(e instanceof Object){let o={...e};if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=Ta(o[r],n,a),o}return e},Co=(e,t)=>{if(e instanceof Map){let a=new Map(e);if(t.length===1)return a.delete(t[0]),a;let[o,...r]=t;return a.set(o,Co(a.get(o),r)),a}if(e instanceof Set){let a=Co(Array.from(e),t);return new Set(a)}if(Array.isArray(e)){let a=[...e];if(t.length===1)return a.filter((n,s)=>s.toString()!==t[0]);let[o,...r]=t;return a[o]=Co(a[o],r),a}if(e instanceof Object){let a={...e};if(t.length===1)return delete a[t[0]],a;let[o,...r]=t;return a[o]=Co(a[o],r),a}return e},$s=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let o=document.createElement("style"),r=document.createTextNode("");o.appendChild(r),o.id="_goober",o.setAttribute("nonce",e),t?t.appendChild(o):document.head.appendChild(o)}});function ih(e){return(...t)=>{for(let a of e)a&&a(...t)}}function uh(e,...t){return typeof e=="function"?e(...t):e}function ch(e,t,a,o){let r=e.length,n=t.length,s=0;if(!n){for(;s<r;s++)a(e[s]);return}if(!r){for(;s<n;s++)o(t[s]);return}for(;s<n&&t[s]===e[s];s++);let i,l;t=t.slice(s),e=e.slice(s);for(i of t)e.includes(i)||o(i);for(l of e)t.includes(l)||a(l)}function fh(e){let[t,a]=N(),o=e?.throw?(f,p)=>{throw a(f instanceof Error?f:new Error(p)),f}:(f,p)=>{a(f instanceof Error?f:new Error(p))},r=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),n=e?.prefix?`${e.prefix}.`:"",s=new Map,i=new Proxy({},{get(f,p){let m=s.get(p);m||(m=N(void 0,{equals:!1}),s.set(p,m)),m[0]();let g=r.reduce((h,x)=>{if(h!==null||!x)return h;try{return x.getItem(`${n}${p}`)}catch(v){return o(v,`Error reading ${n}${p} from ${x.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,p,e.options):g}}),l=(f,p,m)=>{let g=e?.serializer?e.serializer(p,f,m??e.options):p,h=`${n}${f}`;r.forEach(v=>{try{v.getItem(h)!==g&&v.setItem(h,g)}catch(C){o(C,`Error setting ${n}${f} to ${g} in ${v.name}`)}});let x=s.get(f);x&&x[1]()},u=f=>r.forEach(p=>{try{p.removeItem(`${n}${f}`)}catch(m){o(m,`Error removing ${n}${f} from ${p.name}`)}}),d=()=>r.forEach(f=>{try{f.clear()}catch(p){o(p,`Error clearing ${f.name}`)}}),c=()=>{let f={},p=(m,g)=>{if(!f.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(f[m]=h)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let g;try{g=m.getAll()}catch(h){o(h,`Error getting all values from in ${m.name}`)}for(let h of g)p(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)f.hasOwnProperty(h)||p(h,m.getItem(h))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),f};return e?.sync!==!1&&sa(()=>{let f=p=>{let m=!1;r.forEach(g=>{try{g!==p.storageArea&&p.key&&p.newValue!==g.getItem(p.key)&&(p.newValue?g.setItem(p.key,p.newValue):g.removeItem(p.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${p.key}=${p.newValue})`)}}),m&&p.key&&s.get(p.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),X(()=>globalThis.removeEventListener("storage",f))):(r.forEach(p=>p.addEventListener?.("storage",f)),X(()=>r.forEach(p=>p.removeEventListener?.("storage",f))))}),[i,l,{clear:d,error:t,remove:u,toJSON:c}]}function j(){return $e(Tr)}function Ke(){return $e(Dr)}function wh(e){return e.replace(bh,t=>Dd[t])}function $u(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:st.MATCHES,!a.accessors){let s=qu(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=kh(e,a.accessors),n={rankedValue:e,rank:st.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=qu(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=st.MATCHES?l=u:l>d&&(l=d),l=Math.min(l,d),l>=c&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=c,n.rankedValue=i.itemValue)}return n}function qu(e,t,a){return e=Nu(e,a),t=Nu(t,a),t.length>e.length?st.NO_MATCH:e===t?st.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?st.EQUAL:e.startsWith(t)?st.STARTS_WITH:e.includes(` ${t}`)?st.WORD_STARTS_WITH:e.includes(t)?st.CONTAINS:t.length===1?st.NO_MATCH:Lh(e).includes(t)?st.ACRONYM:Ih(e,t))}function Lh(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function Ih(e,t){let a=0,o=0;function r(l,u,d){for(let c=d,f=u.length;c<f;c++)if(u[c]===l)return a+=1,c+1;return-1}function n(l){let u=1/l,d=a/t.length;return st.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return st.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let d=t[l];if(o=r(d,e,o),!(o>-1))return st.NO_MATCH}let i=o-s;return n(i)}function Nu(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=wh(e)),e}function Sh(e,t){let a=t;typeof t=="object"&&(a=t.accessor);let o=a(e);return o==null?[]:Array.isArray(o)?o:[String(o)]}function kh(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=Ph(n),i=Sh(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function Ph(e){return typeof e=="function"?zu:{...zu,...e}}function ae(e){let t=this||{},a=e.call?e(t.p):e;return Dh(a.unshift?a.raw?Eh(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,Ah(t.target),t.g,t.o,t.k)}function Fd(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=Fd(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function H(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=Fd(e))&&(o&&(o+=" "),o+=t);return o}function Fh(e,t){let a=Ie(e);if(Ze){let c=a.slice();return()=>c}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=N([],{equals:!1}),[l]=Ji(),u=c=>{i(f=>(f.push.apply(f,c),f));for(let f of c)n.delete(f)},d=(c,f,p)=>c.splice(p,0,f);return k(c=>{let f=s(),p=e();if(p[xr],Ie(l))return l(),c;if(f.length){let m=c.filter(g=>!f.includes(g));return f.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return Ie(()=>{let m=new Set(p),g=p.slice(),h=[],x=[],v=[];for(let w of p)(r.has(w)?v:h).push(w);let C=!h.length;for(let w=0;w<c.length;w++){let S=c[w];m.has(S)||(n.has(S)||(x.push(S),n.add(S)),d(g,S,w)),C&&S!==g[w]&&(C=!1)}return!x.length&&C?c:(o({list:g,added:h,removed:x,unchanged:v,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function rt(...e){return ih(e)}function Ks(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Ks(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=Ks(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function Oh(e,t=Hu,a=Hu){let o=k(e),r=k(()=>Ks(o(),Ze?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function Bh(e){return k(()=>{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 Od(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function $h(e,t,a,o){let{onBeforeEnter:r,onEnter:n,onAfterEnter:s}=t;r?.(a),a.classList.add(...e.enter),a.classList.add(...e.enterActive),queueMicrotask(()=>{if(!a.parentNode)return o?.();n?.(a,()=>i())}),Od(()=>{a.classList.remove(...e.enter),a.classList.add(...e.enterTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.enterActive),a.classList.remove(...e.enterTo),s?.(a))}}function qh(e,t,a,o){let{onBeforeExit:r,onExit:n,onAfterExit:s}=t;if(!a.parentNode)return o?.();r?.(a),a.classList.add(...e.exit),a.classList.add(...e.exitActive),n?.(a,()=>i()),Od(()=>{a.classList.remove(...e.exit),a.classList.add(...e.exitTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(o?.(),a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.exitActive),a.classList.remove(...e.exitTo),s?.(a))}}function Vu(e){for(let t of e)t.dispose()}function Nh(e,t,a,o={}){if(Ze){let s=e(),i=[];if(s&&s.length)for(let l=0,u=s.length;l<u;l++)i.push(a(()=>s[l],()=>l));else o.fallback&&(i=[o.fallback()]);return()=>i}let r=new Map;return X(()=>Vu(r.values())),()=>{let s=e()||[];return s[xr],Ie(()=>{if(!s.length)return Vu(r.values()),r.clear(),o.fallback?[Ut(c=>(r.set(qs,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(qs);if(!r.size||l){l?.dispose(),r.delete(qs);for(let d=0;d<s.length;d++){let c=s[d],f=t(c,d);n(i,c,d,f)}return i}let u=new Set(r.keys());for(let d=0;d<s.length;d++){let c=s[d],f=t(c,d);u.delete(f);let p=r.get(f);p?(i[d]=p.mapped,p.setIndex?.(d),p.setItem(()=>c)):n(i,c,d,f)}for(let d of u)r.get(d)?.dispose(),r.delete(d);return i})};function n(s,i,l,u){Ut(d=>{let[c,f]=N(i),p={setItem:f,dispose:d};if(a.length>1){let[m,g]=N(l);p.setIndex=g,p.mapped=a(c,m)}else p.mapped=a(c);r.set(u,p),s[l]=p.mapped})}}function kn(e){let{by:t}=e;return k(Nh(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function zh(e,t,a,o){return e.addEventListener(t,a,o),dh(e.removeEventListener.bind(e,t,a,o))}function Uh(e,t,a,o){if(Ze)return;let r=()=>{_s(A(e)).forEach(n=>{n&&_s(A(t)).forEach(s=>zh(n,s,a,o))})};typeof e=="function"?W(r):G(r)}function Hh(e,t){if(Ze)return{observe:Fu,unobserve:Fu};let a=new ResizeObserver(e);return X(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function Bd(e,t,a){if(Ze)return;let o=new WeakMap,{observe:r,unobserve:n}=Hh(s=>{for(let i of s){let{contentRect:l,target:u}=i,d=Math.round(l.width),c=Math.round(l.height),f=o.get(u);(!f||f.width!==d||f.height!==c)&&(t(l,u,i),o.set(u,{width:d,height:c}))}},a);W(s=>{let i=lh(_s(A(e)));return ch(i,s,r,n),i},[])}function Ku(e){let t={},a;for(;a=_h.exec(e);)t[a[1]]=a[2];return t}function Bn(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Ku(e)}else typeof t=="string"&&(t=Ku(t));return{...e,...t}}function Vh(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function Gs(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function Kh(e){return typeof e=="number"}function ko(e){return Object.prototype.toString.call(e)==="[object String]"}function Gh(e){return typeof e=="function"}function Er(e){return t=>`${e()}-${t}`}function bt(e,t){return e?e===t||e.contains(t):!1}function Ir(e,t=!1){let{activeElement:a}=Vt(e);if(!a?.nodeName)return null;if($d(a)&&a.contentDocument)return Ir(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Vt(a).getElementById(o);if(r)return r}}return a}function Wh(e){return Vt(e).defaultView||window}function Vt(e){return e?e.ownerDocument||e:document}function $d(e){return e.tagName==="IFRAME"}function ol(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function $n(){return ol(/^Mac/i)}function Qh(){return ol(/^iPhone/i)}function jh(){return ol(/^iPad/i)||$n()&&navigator.maxTouchPoints>1}function Xh(){return Qh()||jh()}function Zh(){return $n()||Xh()}function Ae(e,t){return t&&(Gh(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Ve(e){return t=>{for(let a of e)Ae(t,a)}}function Jh(e){return $n()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Ye(e){if(e)if(Yh())e.focus({preventScroll:!0});else{let t=e0(e);e.focus(),t0(t)}}function Yh(){if(Ln==null){Ln=!1;try{document.createElement("div").focus({get preventScroll(){return Ln=!0,!0}})}catch{}}return Ln}function e0(e){let t=e.parentNode,a=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&a.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&a.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),a}function t0(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function Nd(e,t){let o=Array.from(e.querySelectorAll(rl)).filter(Gu);return t&&Gu(e)&&o.unshift(e),o.forEach((r,n)=>{if($d(r)&&r.contentDocument){let s=r.contentDocument.body,i=Nd(s,!1);o.splice(n,1,...i)}}),o}function Gu(e){return zd(e)&&!r0(e)}function zd(e){return e.matches(rl)&&nl(e)}function r0(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function nl(e,t){return e.nodeName!=="#comment"&&n0(e)&&s0(e,t)&&(!e.parentElement||nl(e.parentElement,e))}function n0(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:a}=e.style,o=t!=="none"&&a!=="hidden"&&a!=="collapse";if(o){if(!e.ownerDocument.defaultView)return o;let{getComputedStyle:r}=e.ownerDocument.defaultView,{display:n,visibility:s}=r(e);o=n!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function s0(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function l0(e,t,a){let o=t?.tabbable?o0:rl,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&nl(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function Wu(e){for(;e&&!i0(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function i0(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function u0(){}function d0(e,t){let[a,o]=e,r=!1,n=t.length;for(let s=n,i=0,l=s-1;i<s;l=i++){let[u,d]=t[i],[c,f]=t[l],[,p]=t[l===0?s-1:l-1]||[0,0],m=(d-f)*(a-u)-(u-c)*(o-d);if(f<d){if(o>=f&&o<d){if(m===0)return!0;m>0&&(o===f?o>p&&(r=!r):r=!r)}}else if(d<f){if(o>d&&o<=f){if(m===0)return!0;m<0&&(o===f?o<p&&(r=!r):r=!r)}}else if(o==d&&(a>=c&&a<=u||a>=u&&a<=c))return!0}return r}function le(e,t){return Y(e,t)}function ju(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=br.get(a.target);o||(o=new Set,br.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=br.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),br.delete(a.target)),br.size===0)){for(let r of Qu)r();Qu.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function Ws(e,t){let a=Xu(e,t,"left"),o=Xu(e,t,"top"),r=t.offsetWidth,n=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,l=s+e.offsetWidth,u=i+e.offsetHeight;a<=s?s=a:a+r>l&&(s+=a+r-l),o<=i?i=o:o+n>u&&(i+=o+n-u),e.scrollLeft=s,e.scrollTop=i}function Xu(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[o];break}t=t.offsetParent}return r}function c0(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=Wu(e);for(;e&&r&&e!==a&&r!==a;)Ws(r,e),e=r,r=Wu(e)}else{let{left:r,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:i}=e.getBoundingClientRect();(Math.abs(r-s)>1||Math.abs(n-i)>1)&&e.scrollIntoView?.({block:"nearest"})}}}function wt(e){return t=>(e(t),()=>e(void 0))}function qn(e,t){let[a,o]=N(Zu(t?.()));return W(()=>{o(e()?.tagName.toLowerCase()||Zu(t?.()))}),a}function Zu(e){return ko(e)?e:void 0}function Re(e){let[t,a]=ue(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return y(pu,Y(a,{get component(){return t.as}}))}function p0(e){let t=`form-control-${dt()}`,a=le({id:t},e),[o,r]=N(),[n,s]=N(),[i,l]=N(),[u,d]=N(),c=(g,h,x)=>{let v=x!=null||o()!=null;return[x,o(),v&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},f=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,p=k(()=>({"data-valid":A(a.validationState)==="valid"?"":void 0,"data-invalid":A(a.validationState)==="invalid"?"":void 0,"data-required":A(a.required)?"":void 0,"data-disabled":A(a.disabled)?"":void 0,"data-readonly":A(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>A(a.name)??A(a.id),dataset:p,validationState:()=>A(a.validationState),isRequired:()=>A(a.required),isDisabled:()=>A(a.disabled),isReadOnly:()=>A(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:f,generateId:Er(()=>A(a.id)),registerLabel:wt(r),registerField:wt(s),registerDescription:wt(l),registerErrorMessage:wt(d)}}}function Fr(){let e=$e(Hd);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function _d(e){let t=Fr(),a=le({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Re,Y({as:"div"},()=>t.dataset(),a))}function Vd(e){let t=Fr(),a=le({id:t.generateId("error-message")},e),[o,r]=ue(a,["forceMount"]),n=()=>t.validationState()==="invalid";return W(()=>{n()&&X(t.registerErrorMessage(r.id))}),y(Q,{get when(){return o.forceMount||n()},get children(){return y(Re,Y({as:"div"},()=>t.dataset(),r))}})}function m0(e){let t,a=Fr(),o=le({id:a.generateId("label")},e),[r,n]=ue(o,["ref"]),s=qn(()=>t,()=>"label");return W(()=>X(a.registerLabel(n.id))),y(Re,Y({as:"label",ref(i){let l=rt(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function g0(e,t){W(Ht(e,a=>{if(a==null)return;let o=h0(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),X(()=>{o.removeEventListener("reset",t)}))}))}function h0(e){return x0(e)?e.form:e.closest("form")}function x0(e){return e.matches("textarea, input, select, button")}function Or(e){let[t,a]=N(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{Ie(()=>{let i=uh(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function Kd(e){let[t,a]=Or(e);return[()=>t()??!1,a]}function y0(e){let[t,a]=Or(e);return[()=>t()??[],a]}function v0(e={}){let[t,a]=Kd({value:()=>A(e.isSelected),defaultValue:()=>!!A(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(n)},toggle:()=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(!t())}}}function Wd(){return $e(Gd)}function b0(){let e=Wd();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Qd(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function w0(e,t){let a=t.ref();if(!a)return-1;let o=e.length;if(!o)return-1;for(;o--;){let r=e[o]?.ref();if(r&&Qd(r,a))return o+1}return 0}function L0(e){let t=e.map((o,r)=>[r,o]),a=!1;return t.sort(([o,r],[n,s])=>{let i=r.ref(),l=s.ref();return i===l||!i||!l?0:Qd(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function jd(e,t){let a=L0(e);e!==a&&t(a)}function I0(e){let t=e[0],a=e[e.length-1]?.ref(),o=t?.ref()?.parentElement;for(;o;){if(a&&o.contains(a))return o;o=o.parentElement}return Vt(o).body}function S0(e,t){W(()=>{let a=setTimeout(()=>{jd(e(),t)});X(()=>clearTimeout(a))})}function k0(e,t){if(typeof IntersectionObserver!="function"){S0(e,t);return}let a=[];W(()=>{let o=()=>{let s=!!a.length;a=e(),s&&jd(e(),t)},r=I0(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}X(()=>n.disconnect())})}function P0(e={}){let[t,a]=y0({value:()=>A(e.items),onChange:n=>e.onItemsChange?.(n)});k0(t,a);let o=n=>(a(s=>{let i=w0(s,n);return Vh(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>y(Gd.Provider,{value:{registerItem:o},get children(){return n.children}})}}function M0(e){let t=b0(),a=le({shouldRegisterItem:!0},e);W(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());X(o)})}function Xd(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=ko(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=ko(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(ko(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return ko(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(ko(l)||Kh(l)){o.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:s(l),level:a,index:t}),t++;continue}if(i(l)!=null){o.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:a,index:t}),t++;let u=i(l)??[];if(u.length>0){let d=Xd({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...d),t+=d.length}}else o.push({type:"item",rawValue:l,key:r(l),textValue:n(l),disabled:s(l),level:a,index:t}),t++}return o}function A0(e,t=[]){return k(()=>{let a=Xd({dataSource:A(e.dataSource),getKey:A(e.getKey),getTextValue:A(e.getTextValue),getDisabled:A(e.getDisabled),getSectionChildren:A(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function D0(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return R0.has(a)}let t=e.split("-")[0];return T0.has(t)}function E0(e){return D0(e)?"rtl":"ltr"}function Zd(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:E0(e)}}function Ju(){Qs=Zd();for(let e of Sr)e(Qs)}function F0(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(Qs),o=k(()=>Ze?e:t());return sa(()=>{Sr.size===0&&window.addEventListener("languagechange",Ju),Sr.add(a),X(()=>{Sr.delete(a),Sr.size===0&&window.removeEventListener("languagechange",Ju)})}),{locale:()=>o().locale,direction:()=>o().direction}}function Na(){let e=F0();return $e(O0)||e}function B0(e){let{locale:t}=Na(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return Ns.has(o)&&(r=Ns.get(o)),r||(r=new Intl.Collator(t(),e),Ns.set(o,r)),r})}function $0(e){let[t,a]=Or(e);return[()=>t()??new ia,a]}function Yd(e){return Zh()?e.altKey:e.ctrlKey}function Po(e){return $n()?e.metaKey:e.ctrlKey}function Yu(e){return new ia(e)}function q0(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function N0(e){let t=le({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let g=A(t.selectedKeys);return g!=null?Yu(g):g}),i=k(()=>{let g=A(t.defaultSelectedKeys);return g!=null?Yu(g):new ia}),[l,u]=$0({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=N(A(t.selectionBehavior)),f=()=>A(t.selectionMode),p=()=>A(t.disallowEmptySelection)??!1,m=g=>{(A(t.allowDuplicateSelectionEvents)||!q0(g,l()))&&u(g)};return W(()=>{let g=l();A(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),W(()=>{c(A(t.selectionBehavior)??"toggle")}),{selectionMode:f,disallowEmptySelection:p,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function z0(e){let[t,a]=N(""),[o,r]=N(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(A(e.isDisabled))return;let i=A(e.keyboardDelegate),l=A(e.selectionManager);if(!i.getKeyForSearch)return;let u=U0(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=a(f=>f+u),c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d);c==null&&H0(d)&&(d=d[0],c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d)),c!=null&&(l.setFocusedKey(c),e.onTypeSelect?.(c)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function U0(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function H0(e){return e.split("").every(t=>t===e[0])}function _0(e,t,a){let r=Y({selectOnFocus:()=>A(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=Na(),i={top:0,left:0};Uh(()=>A(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=z0({isDisabled:()=>A(r.disallowTypeAhead),keyboardDelegate:()=>A(r.keyboardDelegate),selectionManager:()=>A(r.selectionManager)}),u=()=>A(r.orientation)??"vertical",d=h=>{Ae(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let x=t();if(!x?.contains(h.target))return;let v=A(r.selectionManager),C=A(r.selectOnFocus),w=T=>{T!=null&&(v.setFocusedKey(T),h.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):C&&!Yd(h)&&v.replaceSelection(T))},S=A(r.keyboardDelegate),F=A(r.shouldFocusWrap),D=v.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(S.getKeyBelow){h.preventDefault();let T;D!=null?T=S.getKeyBelow(D):T=S.getFirstKey?.(),T==null&&F&&(T=S.getFirstKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(S.getKeyAbove){h.preventDefault();let T;D!=null?T=S.getKeyAbove(D):T=S.getLastKey?.(),T==null&&F&&(T=S.getLastKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(S.getKeyLeftOf){h.preventDefault();let T=s()==="rtl",I;D!=null?I=S.getKeyLeftOf(D):I=T?S.getFirstKey?.():S.getLastKey?.(),w(I)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(S.getKeyRightOf){h.preventDefault();let T=s()==="rtl",I;D!=null?I=S.getKeyRightOf(D):I=T?S.getLastKey?.():S.getFirstKey?.(),w(I)}break}case"Home":if(S.getFirstKey){h.preventDefault();let T=S.getFirstKey(D,Po(h));T!=null&&(v.setFocusedKey(T),Po(h)&&h.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):C&&v.replaceSelection(T))}break;case"End":if(S.getLastKey){h.preventDefault();let T=S.getLastKey(D,Po(h));T!=null&&(v.setFocusedKey(T),Po(h)&&h.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):C&&v.replaceSelection(T))}break;case"PageDown":if(S.getKeyPageBelow&&D!=null){h.preventDefault();let T=S.getKeyPageBelow(D);w(T)}break;case"PageUp":if(S.getKeyPageAbove&&D!=null){h.preventDefault();let T=S.getKeyPageAbove(D);w(T)}break;case"a":Po(h)&&v.selectionMode()==="multiple"&&A(r.disallowSelectAll)!==!0&&(h.preventDefault(),v.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),A(r.disallowEmptySelection)||v.clearSelection());break;case"Tab":if(!A(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let T=l0(x,{tabbable:!0}),I,L;do L=T.lastChild(),L&&(I=L);while(L);I&&!I.contains(document.activeElement)&&Ye(I)}break}}},c=h=>{let x=A(r.selectionManager),v=A(r.keyboardDelegate),C=A(r.selectOnFocus);if(x.isFocused()){h.currentTarget.contains(h.target)||x.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=F=>{F!=null&&(x.setFocusedKey(F),C&&x.replaceSelection(F))},S=h.relatedTarget;S&&h.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??v.getLastKey?.()):w(x.firstSelectedKey()??v.getFirstKey?.())}else if(!A(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let S=w.querySelector(`[data-key="${x.focusedKey()}"]`);S&&(Ye(S),Ws(w,S))}}}},f=h=>{let x=A(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},p=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=A(r.autoFocus);if(!h)return;let x=A(r.selectionManager),v=A(r.keyboardDelegate),C;h==="first"&&(C=v.getFirstKey?.()),h==="last"&&(C=v.getLastKey?.());let w=x.selectedKeys();w.size&&(C=w.values().next().value),x.setFocused(!0),x.setFocusedKey(C);let S=t();S&&C==null&&!A(r.shouldUseVirtualFocus)&&Ye(S)};return sa(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),W(Ht([n,()=>A(r.isVirtualized),()=>A(r.selectionManager).focusedKey()],h=>{let[x,v,C]=h;if(v)C&&r.scrollToKey?.(C);else if(C&&x){let w=x.querySelector(`[data-key="${C}"]`);w&&Ws(x,w)}})),{tabIndex:k(()=>{if(!A(r.shouldUseVirtualFocus))return A(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:p,onFocusIn:c,onFocusOut:f}}function ec(e,t){let a=()=>A(e.selectionManager),o=()=>A(e.key),r=()=>A(e.shouldUseVirtualFocus),n=v=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):v?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||Po(v)||"pointerType"in v&&v.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>A(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=v=>{l()&&(u=v.pointerType,v.pointerType==="mouse"&&v.button===0&&!A(e.shouldSelectOnPressUp)&&n(v))},c=v=>{l()&&v.pointerType==="mouse"&&v.button===0&&A(e.shouldSelectOnPressUp)&&A(e.allowsDifferentPressOrigin)&&n(v)},f=v=>{l()&&(A(e.shouldSelectOnPressUp)&&!A(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(v)},p=v=>{!l()||!["Enter"," "].includes(v.key)||(Yd(v)?a().toggleSelection(o()):n(v))},m=v=>{i()&&v.preventDefault()},g=v=>{let C=t();r()||i()||!C||v.target===C&&a().setFocusedKey(o())},h=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>A(e.virtualized)?void 0:o());return W(Ht([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([v,C,w,S,F])=>{v&&C===S&&F&&!w&&document.activeElement!==v&&(e.focus?e.focus():Ye(v))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:f,onKeyDown:p,onMouseDown:m,onFocus:g}}function K0(e){let t=N0(e),o=A0({dataSource:()=>A(e.dataSource),getKey:()=>A(e.getKey),getTextValue:()=>A(e.getTextValue),getDisabled:()=>A(e.getDisabled),getSectionChildren:()=>A(e.getSectionChildren),factory:n=>e.filter?new ed(e.filter(n)):new ed(n)},[()=>e.filter]),r=new V0(o,t);return cn(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Pr(e){return da.findIndex(t=>t.node===e)}function Q0(e){return da[Pr(e)]}function j0(e){return da[da.length-1].node===e}function oc(){return da.filter(e=>e.isPointerBlocking)}function X0(){return[...oc()].slice(-1)[0]}function sl(){return oc().length>0}function rc(e){let t=Pr(X0()?.node);return Pr(e)<t}function Z0(e){da.push(e)}function J0(e){let t=Pr(e);t<0||da.splice(t,1)}function Y0(){for(let{node:e}of da)e.style.pointerEvents=rc(e)?"none":"auto"}function ex(e){if(sl()&&!js){let t=Vt(e);ac=document.body.style.pointerEvents,t.body.style.pointerEvents="none",js=!0}}function tx(e){if(sl())return;let t=Vt(e);t.body.style.pointerEvents=ac,t.body.style.length===0&&t.body.removeAttribute("style"),js=!1}function rx(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?ox.indexOf(e.type)!==-1:!1}function ll(e){let t,a=le({type:"button"},e),[o,r]=ue(a,["ref","type","disabled"]),n=qn(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:rx({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return y(Re,Y({as:"button",ref(u){let d=rt(c=>t=c,o.ref);typeof d=="function"&&d(u)},get type(){return s()||i()?o.type:void 0},get role(){return!s()&&!l()?"button":void 0},get tabIndex(){return!s()&&!l()&&!o.disabled?0:void 0},get disabled(){return s()||i()?o.disabled:void 0},get"aria-disabled"(){return!s()&&!i()&&o.disabled?!0:void 0},get"data-disabled"(){return o.disabled?"":void 0}},r))}function Xs(e,t,a){return pt(e,_t(t,a))}function lo(e,t){return typeof e=="function"?e(t):e}function $a(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function nc(e){return e==="x"?"y":"x"}function il(e){return e==="y"?"height":"width"}function no(e){return["top","bottom"].includes($a(e))?"y":"x"}function ul(e){return nc(no(e))}function ux(e,t,a){a===void 0&&(a=!1);let o=Ro(e),r=ul(e),n=il(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=An(s)),[s,An(s)]}function dx(e){let t=An(e);return[Zs(e),t,Zs(t)]}function Zs(e){return e.replace(/start|end/g,t=>ix[t])}function cx(e,t,a){let o=["left","right"],r=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return a?t?r:o:t?o:r;case"left":case"right":return t?n:s;default:return[]}}function fx(e,t,a,o){let r=Ro(e),n=cx($a(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Zs)))),n}function An(e){return e.replace(/left|right|bottom|top/g,t=>lx[t])}function px(e){return{top:0,right:0,bottom:0,left:0,...e}}function sc(e){return typeof e!="number"?px(e):{top:e,right:e,bottom:e,left:e}}function Rn(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function td(e,t,a){let{reference:o,floating:r}=e,n=no(t),s=ul(t),i=il(s),l=$a(t),u=n==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,f=o[i]/2-r[i]/2,p;switch(l){case"top":p={x:d,y:o.y-r.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:c};break;case"left":p={x:o.x-r.width,y:c};break;default:p={x:o.x,y:o.y}}switch(Ro(t)){case"start":p[s]-=f*(a&&u?-1:1);break;case"end":p[s]+=f*(a&&u?-1:1);break}return p}async function Mr(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=lo(t,e),m=sc(p),h=i[f?c==="floating"?"reference":"floating":c],x=Rn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(h)))==null||a?h:h.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),v=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),w=await(n.isElement==null?void 0:n.isElement(C))?await(n.getScale==null?void 0:n.getScale(C))||{x:1,y:1}:{x:1,y:1},S=Rn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:C,strategy:l}):v);return{top:(x.top-S.top+m.top)/w.y,bottom:(S.bottom-x.bottom+m.bottom)/w.y,left:(x.left-S.left+m.left)/w.x,right:(S.right-x.right+m.right)/w.x}}function ad(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function od(e){return sx.some(t=>e[t]>=0)}async function yx(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=$a(a),i=Ro(a),l=no(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=lo(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return i&&typeof m=="number"&&(p=i==="end"?m*-1:m),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}function To(e){return lc(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ca(e){var t;return(t=(lc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lc(e){return e instanceof Node||e instanceof mt(e).Node}function Et(e){return e instanceof Element||e instanceof mt(e).Element}function Kt(e){return e instanceof HTMLElement||e instanceof mt(e).HTMLElement}function rd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}function Br(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function wx(e){return["table","td","th"].includes(To(e))}function zn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function dl(e){let t=cl(),a=Et(e)?Ft(e):e;return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(a.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(a.contain||"").includes(o))}function Lx(e){let t=qa(e);for(;Kt(t)&&!Ao(t);){if(dl(t))return t;if(zn(t))return null;t=qa(t)}return null}function cl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ao(e){return["html","body","#document"].includes(To(e))}function Ft(e){return mt(e).getComputedStyle(e)}function Un(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qa(e){if(To(e)==="html")return e;let t=e.assignedSlot||e.parentNode||rd(e)&&e.host||ca(e);return rd(t)?t.host:t}function ic(e){let t=qa(e);return Ao(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kt(t)&&Br(t)?t:ic(t)}function Ar(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=ic(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=mt(r);return n?t.concat(s,s.visualViewport||[],Br(r)?r:[],s.frameElement&&a?Ar(s.frameElement):[]):t.concat(r,Ar(r,[],a))}function uc(e){let t=Ft(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Kt(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Mn(a)!==n||Mn(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function fl(e){return Et(e)?e:e.contextElement}function Mo(e){let t=fl(e);if(!Kt(t))return Ba(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=uc(t),s=(n?Mn(a.width):a.width)/o,i=(n?Mn(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function dc(e){let t=mt(e);return!cl()||!t.visualViewport?Ix:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sx(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==mt(e)?!1:t}function so(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=fl(e),s=Ba(1);t&&(o?Et(o)&&(s=Mo(o)):s=Mo(e));let i=Sx(n,a,o)?dc(n):Ba(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,d=r.width/s.x,c=r.height/s.y;if(n){let f=mt(n),p=o&&Et(o)?mt(o):o,m=f,g=m.frameElement;for(;g&&o&&p!==m;){let h=Mo(g),x=g.getBoundingClientRect(),v=Ft(g),C=x.left+(g.clientLeft+parseFloat(v.paddingLeft))*h.x,w=x.top+(g.clientTop+parseFloat(v.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,c*=h.y,l+=C,u+=w,m=mt(g),g=m.frameElement}}return Rn({width:d,height:c,x:l,y:u})}function kx(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=ca(o),i=t?zn(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Ba(1),d=Ba(0),c=Kt(o);if((c||!c&&!n)&&((To(o)!=="body"||Br(s))&&(l=Un(o)),Kt(o))){let f=so(o);u=Mo(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+d.x,y:a.y*u.y-l.scrollTop*u.y+d.y}}function Px(e){return Array.from(e.getClientRects())}function cc(e){return so(ca(e)).left+Un(e).scrollLeft}function Mx(e){let t=ca(e),a=Un(e),o=e.ownerDocument.body,r=pt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=pt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+cc(e),i=-a.scrollTop;return Ft(o).direction==="rtl"&&(s+=pt(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function Ax(e,t){let a=mt(e),o=ca(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=cl();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function Rx(e,t){let a=so(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Kt(e)?Mo(e):Ba(1),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=r*n.x,u=o*n.y;return{width:s,height:i,x:l,y:u}}function nd(e,t,a){let o;if(t==="viewport")o=Ax(e,a);else if(t==="document")o=Mx(ca(e));else if(Et(t))o=Rx(t,a);else{let r=dc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Rn(o)}function fc(e,t){let a=qa(e);return a===t||!Et(a)||Ao(a)?!1:Ft(a).position==="fixed"||fc(a,t)}function Tx(e,t){let a=t.get(e);if(a)return a;let o=Ar(e,[],!1).filter(i=>Et(i)&&To(i)!=="body"),r=null,n=Ft(e).position==="fixed",s=n?qa(e):e;for(;Et(s)&&!Ao(s);){let i=Ft(s),l=dl(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Br(s)&&!l&&fc(e,s))?o=o.filter(d=>d!==s):r=i,s=qa(s)}return t.set(e,o),o}function Dx(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?zn(t)?[]:Tx(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=nd(t,d,r);return u.top=pt(c.top,u.top),u.right=_t(c.right,u.right),u.bottom=_t(c.bottom,u.bottom),u.left=pt(c.left,u.left),u},nd(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ex(e){let{width:t,height:a}=uc(e);return{width:t,height:a}}function Fx(e,t,a){let o=Kt(t),r=ca(t),n=a==="fixed",s=so(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Ba(0);if(o||!o&&!n)if((To(t)!=="body"||Br(r))&&(i=Un(t)),o){let c=so(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=cc(r));let u=s.left+i.scrollLeft-l.x,d=s.top+i.scrollTop-l.y;return{x:u,y:d,width:s.width,height:s.height}}function zs(e){return Ft(e).position==="static"}function sd(e,t){return!Kt(e)||Ft(e).position==="fixed"?null:t?t(e):e.offsetParent}function pc(e,t){let a=mt(e);if(zn(e))return a;if(!Kt(e)){let r=qa(e);for(;r&&!Ao(r);){if(Et(r)&&!zs(r))return r;r=qa(r)}return a}let o=sd(e,t);for(;o&&wx(o)&&zs(o);)o=sd(o,t);return o&&Ao(o)&&zs(o)&&!dl(o)?a:o||Lx(e)||a}function Bx(e){return Ft(e).direction==="rtl"}function $x(e,t){let a=null,o,r=ca(e);function n(){var i;clearTimeout(o),(i=a)==null||i.disconnect(),a=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),n();let{left:u,top:d,width:c,height:f}=e.getBoundingClientRect();if(i||t(),!c||!f)return;let p=In(d),m=In(r.clientWidth-(u+c)),g=In(r.clientHeight-(d+f)),h=In(u),v={rootMargin:-p+"px "+-m+"px "+-g+"px "+-h+"px",threshold:pt(0,_t(1,l))||1},C=!0;function w(S){let F=S[0].intersectionRatio;if(F!==l){if(!C)return s();F?s(!1,F):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{a=new IntersectionObserver(w,{...v,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,v)}a.observe(e)}return s(!0),n}function qx(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=fl(e),d=r||n?[...u?Ar(u):[],...Ar(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?$x(u,a):null,f=-1,p=null;s&&(p=new ResizeObserver(x=>{let[v]=x;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),a()}),u&&!l&&p.observe(u),p.observe(t));let m,g=l?so(e):null;l&&h();function h(){let x=so(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&a(),g=x,m=requestAnimationFrame(h)}return a(),()=>{var x;d.forEach(v=>{r&&v.removeEventListener("scroll",a),n&&v.removeEventListener("resize",a)}),c?.(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(m)}}function ml(){let e=$e(pl);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function gl(e){let t=ml(),a=le({size:Js},e),[o,r]=ue(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=Qx(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",d=()=>Number.parseInt(u())*2*(Js/o.size),c=()=>`rotate(${Wx[n()]} ${ld} ${ld}) translate(0 2)`;return y(Re,Y({as:"div",ref(f){let p=rt(t.setArrowRef,o.ref);typeof p=="function"&&p(f)},"aria-hidden":"true",get style(){return Bn({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":d()},o.style)}},r,{get children(){let f=Gx(),p=f.firstChild;return G(()=>E(p,"transform",c())),f}}))}function Qx(e){let[t,a]=N();return W(()=>{let o=e();o&&a(Wh(o).getComputedStyle(o))}),t}function jx(e){let t=ml(),[a,o]=ue(e,["ref","style"]);return y(Re,Y({as:"div",ref(r){let n=rt(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return Bn({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function id(e){let{x:t=0,y:a=0,width:o=0,height:r=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,a,o,r);let n={x:t,y:a,width:o,height:r,top:a,right:t+o,bottom:a+r,left:t};return{...n,toJSON:()=>n}}function Xx(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?id(o):e?e.getBoundingClientRect():id()}}}function Zx(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Yx(e,t){let[a,o]=e.split("-"),r=Jx[a];return o?a==="left"||a==="right"?`${r} ${o==="start"?"top":"bottom"}`:o==="start"?`${r} ${t==="rtl"?"right":"left"}`:`${r} ${t==="rtl"?"left":"right"}`:`${r} center`}function e1(e){let t=le({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),[a,o]=N(),[r,n]=N(),[s,i]=N(t.placement),l=()=>Xx(t.anchorRef?.(),t.getAnchorRect),{direction:u}=Na();async function d(){let f=l(),p=a(),m=r();if(!f||!p)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;p.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();let x=[Nx(({placement:F})=>{let D=!!F.split("-")[1];return{mainAxis:h,crossAxis:D?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let F=typeof t.flip=="string"?t.flip.split(" "):void 0;if(F!==void 0&&!F.every(Zx))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(Ux({padding:t.overflowPadding,fallbackPlacements:F}))}(t.slide||t.overlap)&&x.push(zx({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(Hx({padding:t.overflowPadding,apply({availableWidth:F,availableHeight:D,rects:T}){let I=Math.round(T.reference.width);F=Math.floor(F),D=Math.floor(D),p.style.setProperty("--kb-popper-anchor-width",`${I}px`),p.style.setProperty("--kb-popper-content-available-width",`${F}px`),p.style.setProperty("--kb-popper-content-available-height",`${D}px`),t.sameWidth&&(p.style.width=`${I}px`),t.fitViewport&&(p.style.maxWidth=`${F}px`,p.style.maxHeight=`${D}px`)}})),t.hideWhenDetached&&x.push(_x({padding:t.detachedPadding})),m&&x.push(Vx({element:m,padding:t.arrowPadding}));let v=await Kx(f,p,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...mc,isRTL:()=>u()==="rtl"}});if(i(v.placement),t.onCurrentPlacementChange?.(v.placement),!p)return;p.style.setProperty("--kb-popper-content-transform-origin",Yx(v.placement,u()));let C=Math.round(v.x),w=Math.round(v.y),S;if(t.hideWhenDetached&&(S=v.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(p.style,{top:"0",left:"0",transform:`translate3d(${C}px, ${w}px, 0)`,visibility:S}),m&&v.middlewareData.arrow){let{x:F,y:D}=v.middlewareData.arrow,T=v.placement.split("-")[0];Object.assign(m.style,{left:F!=null?`${F}px`:"",top:D!=null?`${D}px`:"",[T]:"100%"})}}W(()=>{let f=l(),p=a();if(!f||!p)return;let m=qx(f,p,d,{elementResize:typeof ResizeObserver=="function"});X(m)}),W(()=>{let f=a(),p=t.contentRef?.();!f||!p||queueMicrotask(()=>{f.style.zIndex=getComputedStyle(p).zIndex})});let c={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return y(pl.Provider,{value:c,get children(){return t.children}})}function t1(e){let t=a=>{a.key===al.Escape&&e.onEscapeKeyDown?.(a)};W(()=>{if(Ze||A(e.isDisabled))return;let a=e.ownerDocument?.()??Vt();a.addEventListener("keydown",t),X(()=>{a.removeEventListener("keydown",t)})})}function a1(e,t){let a,o=u0,r=()=>Vt(t()),n=c=>e.onPointerDownOutside?.(c),s=c=>e.onFocusOutside?.(c),i=c=>e.onInteractOutside?.(c),l=c=>{let f=c.target;return!(f instanceof HTMLElement)||f.closest(`[${Pn}]`)||!bt(r(),f)||bt(t(),f)?!1:!e.shouldExcludeElement?.(f)},u=c=>{function f(){let p=t(),m=c.target;if(!p||!m||!l(c))return;let g=Ve([n,i]);m.addEventListener(ud,g,{once:!0});let h=new CustomEvent(ud,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||Jh(c)&&c.button===0}});m.dispatchEvent(h)}c.pointerType==="touch"?(r().removeEventListener("click",f),o=f,r().addEventListener("click",f,{once:!0})):f()},d=c=>{let f=t(),p=c.target;if(!f||!p||!l(c))return;let m=Ve([s,i]);p.addEventListener(dd,m,{once:!0});let g=new CustomEvent(dd,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});p.dispatchEvent(g)};W(()=>{Ze||A(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",d,!0),X(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",d,!0)}))})}function o1(){return $e(hc)}function r1(e){let t,a=o1(),[o,r]=ue(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=c=>{n.add(c);let f=a?.registerNestedLayer(c);return()=>{n.delete(c),f?.()}};a1({shouldExcludeElement:c=>t?o.excludedElements?.some(f=>bt(f(),c))||[...n].some(f=>bt(f,c)):!1,onPointerDownOutside:c=>{!t||ct.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!ct.isTopMostLayer(t)||(o.onPointerDownOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.())},onFocusOutside:c=>{o.onFocusOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.()}},()=>t),t1({ownerDocument:()=>Vt(t),onEscapeKeyDown:c=>{!t||!ct.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),sa(()=>{if(!t)return;ct.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let c=a?.registerNestedLayer(t);ct.assignPointerEventToLayers(),ct.disableBodyPointerEvents(t),X(()=>{t&&(ct.removeLayer(t),c?.(),ct.assignPointerEventToLayers(),ct.restoreBodyPointerEvents(t))})}),W(Ht([()=>t,()=>o.disableOutsidePointerEvents],([c,f])=>{if(!c)return;let p=ct.find(c);p&&p.isPointerBlocking!==f&&(p.isPointerBlocking=f,ct.assignPointerEventToLayers()),f&&ct.disableBodyPointerEvents(c),X(()=>{ct.restoreBodyPointerEvents(c)})},{defer:!0}));let d={registerNestedLayer:s};return y(hc.Provider,{value:d,get children(){return y(Re,Y({as:"div",ref(c){let f=rt(p=>t=p,o.ref);typeof f=="function"&&f(c)}},r))}})}function xc(e={}){let[t,a]=Kd({value:()=>A(e.open),defaultValue:()=>!!A(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),o=()=>{a(!0)},r=()=>{a(!1)};return{isOpen:t,setIsOpen:a,open:o,close:r,toggle:()=>{t()?r():o()}}}function vc(){let e=$e(yc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function $r(){let e=$e(Cc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function bc(e){let t=Fr(),a=vc(),o=`${t.generateId("item")}-${dt()}`,r=le({id:o},e),[n,s]=ue(r,["value","disabled","onPointerDown"]),[i,l]=N(),[u,d]=N(),[c,f]=N(),[p,m]=N(),[g,h]=N(!1),x=k(()=>a.isSelectedValue(n.value)),v=k(()=>n.disabled||t.isDisabled()||!1),C=F=>{Ae(F,n.onPointerDown),g()&&F.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":v()?"":void 0,"data-checked":x()?"":void 0})),S={value:()=>n.value,dataset:w,isSelected:x,isDisabled:v,inputId:i,labelId:u,descriptionId:c,inputRef:p,select:()=>a.setSelectedValue(n.value),generateId:Er(()=>s.id),registerInput:wt(l),registerLabel:wt(d),registerDescription:wt(f),setIsFocused:h,setInputRef:m};return y(Cc.Provider,{value:S,get children(){return y(Re,Y({as:"div",role:"group",onPointerDown:C},w,s))}})}function wc(e){let t=$r(),a=le({id:t.generateId("control")},e),[o,r]=ue(a,["onClick","onKeyDown"]);return y(Re,Y({as:"div",onClick:i=>{Ae(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Ae(i,o.onKeyDown),i.key===al.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function Lc(e){let t=$r(),a=le({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Re,Y({as:"div"},()=>t.dataset(),a))}function Ic(e){let t=$r(),a=le({id:t.generateId("indicator")},e),[o,r]=ue(a,["ref","forceMount"]),[n,s]=N(),{present:i}=tc({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return y(Q,{get when(){return i()},get children(){return y(Re,Y({as:"div",ref(l){let u=rt(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function Sc(e){let t=Fr(),a=vc(),o=$r(),r=le({id:o.generateId("input")},e),[n,s]=ue(r,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),i=()=>[n["aria-labelledby"],o.labelId(),n["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[n["aria-describedby"],o.descriptionId(),a.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[u,d]=N(!1),c=m=>{if(Ae(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}d(!1)},f=m=>{Ae(m,n.onFocus),o.setIsFocused(!0)},p=m=>{Ae(m,n.onBlur),o.setIsFocused(!1)};return W(Ht([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;d(!0);let g=o.inputRef();g?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),g?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),W(()=>X(o.registerInput(s.id))),y(Re,Y({as:"input",ref(m){let g=rt(o.setInputRef,n.ref);typeof g=="function"&&g(m)},type:"radio",get name(){return t.name()},get value(){return o.value()},get checked(){return o.isSelected()},get required(){return t.isRequired()},get disabled(){return o.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return Bn({...Ud},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:f,onBlur:p},()=>o.dataset(),s))}function kc(e){let t=$r(),a=le({id:t.generateId("label")},e);return W(()=>X(t.registerLabel(a.id))),y(Re,Y({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function Pc(e){return y(m0,Y({as:"span"},e))}function Mc(e){let t,a=`radiogroup-${dt()}`,o=le({id:a,orientation:"vertical"},e),[r,n,s]=ue(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],f0),[i,l]=Or({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=p0(n);g0(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(A(n.id),s["aria-label"],r["aria-labelledby"]),c=()=>u.getAriaDescribedBy(r["aria-describedby"]),f=m=>m===i(),p={ariaDescribedBy:c,isSelectedValue:f,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=f(h.value)}}};return y(Hd.Provider,{value:u,get children(){return y(yc.Provider,{value:p,get children(){return y(Re,Y({as:"div",ref(m){let g=rt(h=>t=h,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return A(n.id)},get"aria-invalid"(){return u.validationState()==="invalid"||void 0},get"aria-required"(){return u.isRequired()||void 0},get"aria-disabled"(){return u.isDisabled()||void 0},get"aria-readonly"(){return u.isReadOnly()||void 0},get"aria-orientation"(){return r.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function l1(e,t,a){let o=B0({usage:"search",sensitivity:"base"}),r=k(()=>{let n=A(e.keyboardDelegate);return n||new s1(e.collection,t,o)});return _0({selectionManager:()=>A(e.selectionManager),keyboardDelegate:r,autoFocus:()=>A(e.autoFocus),deferAutoFocus:()=>A(e.deferAutoFocus),shouldFocusWrap:()=>A(e.shouldFocusWrap),disallowEmptySelection:()=>A(e.disallowEmptySelection),selectOnFocus:()=>A(e.selectOnFocus),disallowTypeAhead:()=>A(e.disallowTypeAhead),shouldUseVirtualFocus:()=>A(e.shouldUseVirtualFocus),allowsTabNavigation:()=>A(e.allowsTabNavigation),isVirtualized:()=>A(e.isVirtualized),scrollToKey:n=>A(e.scrollToKey)?.(n),orientation:()=>A(e.orientation)},t)}function i1(e,t){let[a,o]=N(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>Vt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,Ud),m},d=()=>{let m=t();return m?Nd(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},c=()=>{let m=d();return m.length>0?m[0]:null},f=()=>{let m=d();return m.length>0?m[m.length-1]:null},p=()=>{let m=t();if(!m)return!1;let g=Ir(m);return!g||bt(m,g)?!1:zd(g)};W(()=>{if(Ze)return;let m=t();if(!m)return;fd.add(r);let g=Ir(m);if(!bt(m,g)){let x=new CustomEvent(Us,cd);m.addEventListener(Us,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{Ye(c()),Ir(m)===g&&Ye(m)},0)}X(()=>{m.removeEventListener(Us,s),setTimeout(()=>{let x=new CustomEvent(Hs,cd);p()&&x.preventDefault(),m.addEventListener(Hs,i),m.dispatchEvent(x),x.defaultPrevented||Ye(g??l().body),m.removeEventListener(Hs,i),fd.remove(r)},0)})}),W(()=>{if(Ze)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let g=x=>{let v=x.target;v?.closest(`[${Pn}]`)||(bt(m,v)?n=v:Ye(n))},h=x=>{let C=x.relatedTarget??Ir(m);C?.closest(`[${Pn}]`)||bt(m,C)||Ye(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),X(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),W(()=>{if(Ze)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function x(C){let w=c(),S=f();C.relatedTarget===w?Ye(S):Ye(w)}g.addEventListener("focusin",x),h.addEventListener("focusin",x);let v=new MutationObserver(C=>{for(let w of C)w.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),w.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});v.observe(m,{childList:!0,subtree:!1}),X(()=>{g.removeEventListener("focusin",x),h.removeEventListener("focusin",x),g.remove(),h.remove(),v.disconnect()})})}function d1(e){W(()=>{A(e.isDisabled)||X(c1(A(e.targets),A(e.root)))})}function c1(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let f of l.querySelectorAll(`[${u1}], [${Pn}]`))a.add(f);let u=f=>{if(a.has(f)||f.parentElement&&o.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of a)if(f.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),c=u(l);if(c===NodeFilter.FILTER_ACCEPT&&n(l),c!==NodeFilter.FILTER_REJECT){let f=d.nextNode();for(;f!=null;)n(f),f=d.nextNode()}},n=l=>{let u=wr.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),wr.set(l,u+1))};vt.length&&vt[vt.length-1].disconnect(),r(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...a,...o].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(a.delete(d),o.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?a.add(d):d instanceof Element&&r(d)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return vt.push(i),()=>{s.disconnect();for(let l of o){let u=wr.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),wr.delete(l)):wr.set(l,u-1)}i===vt[vt.length-1]?(vt.pop(),vt.length&&vt[vt.length-1].observe()):vt.splice(vt.indexOf(i),1)}}function Rc(){return $e(Ac)}function fa(){let e=Rc();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function hl(){let e=$e(Tc);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Gt(){let e=$e(Dc);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function xl(e){let t,a=Gt(),o=fa(),r=le({id:a.generateId(`item-${dt()}`)},e),[n,s]=ue(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=N(),[u,d]=N(),[c,f]=N(),p=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>p().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};M0({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=ec({key:m,selectionManager:p,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),v=I=>{Ae(I,n.onPointerMove),I.pointerType==="mouse"&&(n.disabled?o.onItemLeave(I):(o.onItemEnter(I),I.defaultPrevented||(Ye(I.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},C=I=>{Ae(I,n.onPointerLeave),I.pointerType==="mouse"&&o.onItemLeave(I)},w=I=>{Ae(I,n.onPointerUp),!n.disabled&&I.button===0&&h()},S=I=>{if(Ae(I,n.onKeyDown),!I.repeat&&!n.disabled)switch(I.key){case"Enter":case" ":h();break}},F=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),D=k(()=>({"data-indeterminate":n.indeterminate?"":void 0,"data-checked":n.checked&&!n.indeterminate?"":void 0,"data-disabled":n.disabled?"":void 0,"data-highlighted":g()?"":void 0})),T={isChecked:()=>n.checked,dataset:D,setLabelRef:f,generateId:Er(()=>s.id),registerLabel:wt(l),registerDescription:wt(d)};return y(Tc.Provider,{value:T,get children(){return y(Re,Y({as:"div",ref(I){let L=rt(U=>t=U,n.ref);typeof L=="function"&&L(I)},get tabIndex(){return x.tabIndex()},get"aria-checked"(){return F()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return x.dataKey()},get onPointerDown(){return Ve([n.onPointerDown,x.onPointerDown])},get onPointerUp(){return Ve([w,x.onPointerUp])},get onClick(){return Ve([n.onClick,x.onClick])},get onKeyDown(){return Ve([S,x.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,x.onMouseDown])},get onFocus(){return Ve([n.onFocus,x.onFocus])},onPointerMove:v,onPointerLeave:C},D,s))}})}function Ec(e){let t=le({closeOnSelect:!1},e),[a,o]=ue(t,["checked","defaultChecked","onChange","onSelect"]),r=v0({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return y(xl,Y({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function Hn(){return $e(b1)}function Fc(e){let t=Gt(),a=fa(),o=Hn(),{direction:r}=Na(),n=le({id:t.generateId("trigger")},e),[s,i]=ue(n,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),l=()=>t.value();o!==void 0&&(l=()=>t.value()??s.id,o.lastValue()===void 0&&o.setLastValue(l));let u=qn(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);W(Ht(()=>o?.value(),x=>{d()&&x===l()&&a.triggerRef()?.focus()}));let c=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},f=x=>{Ae(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},p=x=>{Ae(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(Ae(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case yd.first(t.orientation()):x.stopPropagation(),x.preventDefault(),c0(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case yd.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Rr.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Rr.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},g=x=>{Ae(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=x=>{Ae(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return W(()=>X(a.registerTriggerId(s.id))),y(ll,Y({ref(x){let v=rt(a.setTriggerRef,s.ref);typeof v=="function"&&v(x)},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 a.isOpen()},get"aria-controls"(){return k(()=>!!a.isOpen())()?a.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&o?.value()===l()?!0:void 0},get tabIndex(){return o!==void 0?o.value()===l()||o.lastValue()===l()?0:-1:void 0},onPointerDown:f,onMouseOver:g,onClick:p,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function Oc(){return $e(w1)}function Bc(e){let t,a=Gt(),o=fa(),r=Hn(),n=Oc(),{direction:s}=Na(),i=le({id:a.generateId(`content-${dt()}`)},e),[l,u]=ue(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,c=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),f=l1({selectionManager:o.listState().selectionManager,collection:o.listState().collection,autoFocus:o.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!o.listState().selectionManager().isFocused(),orientation:()=>a.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);i1({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:C=>{r===void 0&&l.onOpenAutoFocus?.(C)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let p=C=>{if(bt(C.currentTarget,C.target)&&(C.key==="Tab"&&o.isOpen()&&C.preventDefault(),r!==void 0&&C.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(C.key){case Rr.next(s(),a.orientation()):C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Rr.previous(s(),a.orientation()):if(C.currentTarget.hasAttribute("data-closed"))break;C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=C=>{l.onEscapeKeyDown?.(C),r?.setAutoFocusMenu(!1),o.close(!0)},g=C=>{l.onFocusOutside?.(C),a.isModal()&&C.preventDefault()},h=C=>{Ae(C,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=C=>{if(Ae(C,l.onPointerMove),C.pointerType!=="mouse")return;let w=C.target,S=d!==C.clientX;bt(C.currentTarget,w)&&S&&(o.setPointerDir(C.clientX>d?"right":"left"),d=C.clientX)};W(()=>X(o.registerContentId(l.id)));let v={ref:rt(C=>{o.setContentRef(C),t=C},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return f.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:Ve([l.onKeyDown,f.onKeyDown,p]),onMouseDown:Ve([l.onMouseDown,f.onMouseDown]),onFocusIn:Ve([l.onFocusIn,f.onFocusIn]),onFocusOut:Ve([l.onFocusOut,f.onFocusOut]),onPointerEnter:h,onPointerMove:x,get"data-orientation"(){return a.orientation()}};return y(Q,{get when(){return o.contentPresent()},get children(){return y(Q,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return y(Re,Y({as:"div"},()=>o.dataset(),v,u))},get children(){return y(gc.Positioner,{get children(){return y(r1,Y({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Bn({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:m,onFocusOutside:g,get onDismiss(){return o.close}},()=>o.dataset(),v,u))}})}})}})}function L1(e){let t,a=Gt(),o=fa(),[r,n]=ue(e,["ref"]);return C1({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),y(Bc,Y({ref(s){let i=rt(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function I1(){let e=$e($c);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function yl(e){let t=Gt(),a=le({id:t.generateId(`group-${dt()}`)},e),[o,r]=N(),n={generateId:Er(()=>a.id),registerLabelId:wt(r)};return y($c.Provider,{value:n,get children(){return y(Re,Y({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function qc(e){let t=I1(),a=le({id:t.generateId("label")},e),[o,r]=ue(a,["id"]);return W(()=>X(t.registerLabelId(o.id))),y(Re,Y({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function Nc(e){let t=fa(),a=le({children:"\u25BC"},e);return y(Re,Y({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function zc(e){return y(xl,Y({role:"menuitem",closeOnSelect:!0},e))}function Uc(e){let t=hl(),a=le({id:t.generateId("description")},e),[o,r]=ue(a,["id"]);return W(()=>X(t.registerDescription(o.id))),y(Re,Y({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Hc(e){let t=hl(),a=le({id:t.generateId("indicator")},e),[o,r]=ue(a,["forceMount"]);return y(Q,{get when(){return o.forceMount||t.isChecked()},get children(){return y(Re,Y({as:"div"},()=>t.dataset(),r))}})}function _c(e){let t=hl(),a=le({id:t.generateId("label")},e),[o,r]=ue(a,["ref","id"]);return W(()=>X(t.registerLabel(o.id))),y(Re,Y({as:"div",ref(n){let s=rt(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function Vc(e){let t=fa();return y(Q,{get when(){return t.contentPresent()},get children(){return y(Fs,e)}})}function S1(){let e=$e(Kc);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Gc(e){let a=Gt().generateId(`radiogroup-${dt()}`),o=le({id:a},e),[r,n]=ue(o,["value","defaultValue","onChange","disabled"]),[s,i]=Or({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return y(Kc.Provider,{value:l,get children(){return y(yl,n)}})}function Wc(e){let t=S1(),a=le({closeOnSelect:!1},e),[o,r]=ue(a,["value","onSelect"]);return y(xl,Y({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function k1(e,t,a){let o=e.split("-")[0],r=a.getBoundingClientRect(),n=[],s=t.clientX,i=t.clientY;switch(o){case"top":n.push([s,i+5]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]);break;case"right":n.push([s-5,i]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]);break;case"bottom":n.push([s,i-5]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]);break;case"left":n.push([s+5,i]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]);break}return n}function P1(e,t){return t?d0([e.clientX,e.clientY],t):!1}function Qc(e){let t=Gt(),a=Wd(),o=Rc(),r=Hn(),n=Oc(),s=le({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=ue(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[f,p]=N(),[m,g]=N(),[h,x]=N(),[v,C]=N(),[w,S]=N(!0),[F,D]=N(l.placement),[T,I]=N([]),[L,U]=N([]),{DomCollectionProvider:R}=P0({items:L,onItemsChange:U}),ee=xc({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:J=>i.onOpenChange?.(J)}),{present:ie}=tc({show:()=>t.forceMount()||ee.isOpen(),element:()=>v()??null}),be=K0({selectionMode:"none",dataSource:L}),ce=J=>{S(J),ee.open()},xe=(J=!1)=>{ee.close(),J&&o&&o.close(!0)},ye=J=>{S(J),ee.toggle()},fe=()=>{let J=v();J&&(Ye(J),be.selectionManager().setFocused(!0),be.selectionManager().setFocusedKey(void 0))},Te=()=>{n!=null?setTimeout(()=>fe()):fe()},Pe=J=>{I(je=>[...je,J]);let At=o?.registerNestedMenu(J);return()=>{I(je=>Gs(je,J)),At?.()}},Fe=J=>c===d?.side&&P1(J,d?.area),tt=J=>{Fe(J)&&J.preventDefault()},B=J=>{Fe(J)||Te()},De=J=>{Fe(J)&&J.preventDefault()};d1({isDisabled:()=>!(o==null&&ee.isOpen()&&t.isModal()),targets:()=>[v(),...T()].filter(Boolean)}),W(()=>{let J=v();if(!J||!o)return;let At=o.registerNestedMenu(J);X(()=>{At()})}),W(()=>{o===void 0&&r?.registerMenu(t.value(),[v(),...T()])}),W(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&ce(!0)):xe())}),W(()=>{o!==void 0||r===void 0||ee.isOpen()&&r.setValue(t.value())}),X(()=>{o===void 0&&r?.unregisterMenu(t.value())});let Sa={dataset:k(()=>({"data-expanded":ee.isOpen()?"":void 0,"data-closed":ee.isOpen()?void 0:""})),isOpen:ee.isOpen,contentPresent:ie,nestedMenus:T,currentPlacement:F,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>be,parentMenuContext:()=>o,triggerRef:h,contentRef:v,triggerId:f,contentId:m,setTriggerRef:x,setContentRef:C,open:ce,close:xe,toggle:ye,focusContent:Te,onItemEnter:tt,onItemLeave:B,onTriggerLeave:De,setPointerDir:J=>c=J,setPointerGraceTimeoutId:J=>u=J,setPointerGraceIntent:J=>d=J,registerNestedMenu:Pe,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:wt(p),registerContentId:wt(g)};return y(R,{get children(){return y(Ac.Provider,{value:Sa,get children(){return y(Q,{when:n===void 0,get fallback(){return l.children},get children(){return y(gc,Y({anchorRef:h,contentRef:v,onCurrentPlacementChange:D},l))}})}})}})}function jc(e){let{direction:t}=Na();return y(Qc,Y({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Xc(e){let t=fa(),a=Gt(),[o,r]=ue(e,["onFocusOutside","onKeyDown"]),{direction:n}=Na();return y(Bc,Y({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;bt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{Ae(d,o.onKeyDown);let c=bt(d.currentTarget,d.target),f=M1.close(n(),a.orientation()).includes(d.key),p=t.parentMenuContext()!=null;c&&f&&p&&(t.close(),Ye(t.triggerRef()))}},r))}function Zc(e){let t,a=Gt(),o=fa(),r=le({id:a.generateId(`sub-trigger-${dt()}`)},e),[n,s]=ue(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{Ze||(i&&window.clearTimeout(i),i=null)},{direction:u}=Na(),d=()=>n.id,c=()=>{let C=o.parentMenuContext();if(C==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return C.listState().selectionManager()},f=()=>o.listState().collection(),p=()=>c().focusedKey()===d(),m=ec({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=C=>{Ae(C,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=C=>{if(Ae(C,n.onPointerMove),C.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(C),!C.defaultPrevented){if(n.disabled){w?.onItemLeave(C);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(C),C.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),Ye(C.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=C=>{if(Ae(C,n.onPointerLeave),C.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),S=o.contentRef();if(S){w?.setPointerGraceIntent({area:k1(o.currentPlacement(),C,S),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let F=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(F)}else{if(w?.onTriggerLeave(C),C.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(C)},v=C=>{Ae(C,n.onKeyDown),!C.repeat&&(n.disabled||A1.open(u(),a.orientation()).includes(C.key)&&(C.stopPropagation(),C.preventDefault(),c().setFocused(!1),c().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(f().getFirstKey())))};return W(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let C=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});X(C)}),W(Ht(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),C=>{X(()=>{window.clearTimeout(C),o.parentMenuContext()?.setPointerGraceIntent(null)})})),W(()=>X(o.registerTriggerId(n.id))),X(()=>{l()}),y(Re,Y({as:"div",ref(C){let w=rt(S=>{o.setTriggerRef(S),t=S},n.ref);typeof w=="function"&&w(C)},get id(){return n.id},role:"menuitem",get tabIndex(){return m.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return o.isOpen()},get"aria-controls"(){return k(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return p()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return Ve([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return Ve([n.onPointerUp,m.onPointerUp])},get onClick(){return Ve([g,m.onClick])},get onKeyDown(){return Ve([v,m.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,m.onMouseDown])},get onFocus(){return Ve([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:x},()=>o.dataset(),s))}function R1(e){let t=Hn(),a=`menu-${dt()}`,o=le({id:a,modal:!0},e),[r,n]=ue(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=xc({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:l=>r.onOpenChange?.(l)}),i={isModal:()=>r.modal??!0,preventScroll:()=>r.preventScroll??i.isModal(),forceMount:()=>r.forceMount??!1,generateId:Er(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return y(Dc.Provider,{value:i,get children(){return y(Qc,Y({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function _n(e){let t,a=le({orientation:"horizontal"},e),[o,r]=ue(a,["ref","orientation"]),n=qn(()=>t,()=>"hr");return y(Re,Y({as:"hr",ref(s){let i=rt(l=>t=l,o.ref);typeof i=="function"&&i(s)},get role(){return n()!=="hr"?"separator":void 0},get"aria-orientation"(){return o.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return o.orientation}},r))}function Jc(e){let t=Gt(),a=fa(),[o,r]=ue(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return y(L1,Y({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||Ye(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function Yc(e){let t=`dropdownmenu-${dt()}`,a=le({id:t},e);return y(R1,a)}function ty(){return F1()}function tf(){return O1()}function kr(){return B1()}function Cd(){return $1()}function bd(){return vl()}function ay(){return(()=>{var e=vl();return e.style.setProperty("transform","rotate(90deg)"),e})()}function oy(){return(()=>{var e=vl();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function ry(){return q1()}function ny(){return N1()}function sy(){return z1()}function ly(){return U1()}function iy(){return H1()}function uy(){return _1()}function dy(){return V1()}function cy(){return K1()}function fy(){return G1()}function py(e){return(()=>{var t=ef(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function my(){return W1()}function gy(){return Q1()}function hy(e){return[y(Q,{get when(){return e.checked},get children(){var t=ef(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),y(Q,{get when(){return!e.checked},get children(){var t=j1(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function xy(){return X1()}function yy(){return Z1()}function vy(){return J1()}function Cy(){return Y1()}function wd(){let e=dt();return(()=>{var t=ey(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,d=u.firstChild,c=u.nextSibling,f=c.firstChild,p=c.nextSibling,m=p.nextSibling,g=m.firstChild,h=m.nextSibling,x=h.firstChild,v=h.nextSibling,C=v.nextSibling,w=C.firstChild,S=C.nextSibling,F=S.firstChild,D=S.nextSibling,T=D.nextSibling,I=T.firstChild,L=T.nextSibling,U=L.firstChild,R=L.nextSibling,ee=R.nextSibling,ie=ee.firstChild,be=ee.nextSibling,ce=be.firstChild,xe=be.nextSibling,ye=xe.nextSibling,fe=ye.firstChild,Te=ye.nextSibling,Pe=Te.firstChild,Fe=Te.nextSibling,tt=Fe.firstChild,B=tt.nextSibling,De=B.nextSibling,pe=De.nextSibling,Sa=pe.nextSibling,J=Fe.nextSibling,At=J.firstChild,je=J.nextSibling,po=je.firstChild,xt=je.nextSibling,ka=xt.firstChild,Qa=ka.nextSibling,Xt=Qa.nextSibling,Nt=Xt.firstChild,Zt=Nt.nextSibling,z=Zt.nextSibling,Le=z.nextSibling,at=Le.nextSibling,Se=at.nextSibling,we=Se.nextSibling,Me=we.nextSibling,He=Me.nextSibling,ve=He.nextSibling,Jt=ve.nextSibling,Yt=Jt.nextSibling,Rt=xt.nextSibling,ja=Rt.firstChild,ea=Rt.nextSibling,Xa=ea.firstChild,ta=ea.nextSibling,Pa=ta.firstChild,jr=Pa.nextSibling,zo=ta.nextSibling,Xr=zo.firstChild,mo=zo.nextSibling,Zr=mo.firstChild,Uo=mo.nextSibling,Ho=Uo.firstChild,_o=Ho.nextSibling,go=_o.nextSibling,ti=go.nextSibling,ai=ti.nextSibling,oi=ai.nextSibling,ri=oi.nextSibling,ni=ri.nextSibling,si=ni.nextSibling,li=si.nextSibling,ii=li.nextSibling,ui=ii.nextSibling,di=ui.nextSibling,ci=di.nextSibling,fi=ci.nextSibling,pi=fi.nextSibling,mi=pi.nextSibling,rm=mi.nextSibling;return E(a,"id",`a-${e}`),E(o,"fill",`url(#a-${e})`),E(n,"id",`am-${e}`),E(s,"id",`b-${e}`),E(i,"filter",`url(#am-${e})`),E(l,"mask",`url(#b-${e})`),E(d,"id",`ah-${e}`),E(c,"id",`k-${e}`),E(f,"filter",`url(#ah-${e})`),E(p,"mask",`url(#k-${e})`),E(g,"id",`ae-${e}`),E(h,"id",`j-${e}`),E(x,"filter",`url(#ae-${e})`),E(v,"mask",`url(#j-${e})`),E(w,"id",`ai-${e}`),E(S,"id",`i-${e}`),E(F,"filter",`url(#ai-${e})`),E(D,"mask",`url(#i-${e})`),E(I,"id",`aj-${e}`),E(L,"id",`h-${e}`),E(U,"filter",`url(#aj-${e})`),E(R,"mask",`url(#h-${e})`),E(ie,"id",`ag-${e}`),E(be,"id",`g-${e}`),E(ce,"filter",`url(#ag-${e})`),E(xe,"mask",`url(#g-${e})`),E(fe,"id",`af-${e}`),E(Te,"id",`f-${e}`),E(Pe,"filter",`url(#af-${e})`),E(Fe,"mask",`url(#f-${e})`),E(pe,"id",`m-${e}`),E(Sa,"fill",`url(#m-${e})`),E(At,"id",`ak-${e}`),E(je,"id",`e-${e}`),E(po,"filter",`url(#ak-${e})`),E(xt,"mask",`url(#e-${e})`),E(ka,"id",`n-${e}`),E(Qa,"fill",`url(#n-${e})`),E(Nt,"id",`r-${e}`),E(Zt,"fill",`url(#r-${e})`),E(z,"id",`s-${e}`),E(Le,"fill",`url(#s-${e})`),E(at,"id",`q-${e}`),E(Se,"fill",`url(#q-${e})`),E(we,"id",`p-${e}`),E(Me,"fill",`url(#p-${e})`),E(He,"id",`o-${e}`),E(ve,"fill",`url(#o-${e})`),E(Jt,"id",`l-${e}`),E(Yt,"fill",`url(#l-${e})`),E(ja,"id",`al-${e}`),E(ea,"id",`d-${e}`),E(Xa,"filter",`url(#al-${e})`),E(ta,"mask",`url(#d-${e})`),E(Pa,"id",`u-${e}`),E(jr,"fill",`url(#u-${e})`),E(Xr,"id",`ad-${e}`),E(mo,"id",`c-${e}`),E(Zr,"filter",`url(#ad-${e})`),E(Uo,"mask",`url(#c-${e})`),E(Ho,"id",`t-${e}`),E(_o,"fill",`url(#t-${e})`),E(go,"id",`v-${e}`),E(ti,"stroke",`url(#v-${e})`),E(ai,"id",`aa-${e}`),E(oi,"stroke",`url(#aa-${e})`),E(ri,"id",`w-${e}`),E(ni,"stroke",`url(#w-${e})`),E(si,"id",`ac-${e}`),E(li,"stroke",`url(#ac-${e})`),E(ii,"id",`ab-${e}`),E(ui,"stroke",`url(#ab-${e})`),E(di,"id",`y-${e}`),E(ci,"stroke",`url(#y-${e})`),E(fi,"id",`x-${e}`),E(pi,"stroke",`url(#x-${e})`),E(mi,"id",`z-${e}`),E(rm,"stroke",`url(#z-${e})`),t})()}function Ty(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function kd(e){return Symbol.iterator in e}function Fa(e){let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Eo(a):Do(a)),r=j().client,[n,s]=N((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=N([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&kd(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([m,g])=>({label:m,value:g})):Array.from(e.value,(m,g)=>({label:g.toString(),value:m})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([m,g])=>({label:m,value:g})):[]),c=k(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&kd(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),f=k(()=>Ty(d(),100)),p=e.dataPath??[];return(()=>{var m=Lr();return P(m,y(Q,{get when(){return f().length},get children(){return[(()=>{var g=Py(),h=g.firstChild,x=h.firstChild,v=x.nextSibling,C=v.nextSibling,w=C.nextSibling,S=w.firstChild;return h.$$click=()=>i(),P(h,y(Id,{get expanded(){return n()}}),x),P(v,()=>e.label),P(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",S),P(w,()=>d().length,S),P(w,()=>d().length>1?"items":"item",null),P(g,y(Q,{get when(){return e.editable},get children(){var F=Lr();return P(F,y(Dy,{get value(){return e.value}}),null),P(F,y(Q,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(Sd,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),P(F,y(Q,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return y(Ey,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),P(F,y(Q,{get when(){return k(()=>!!e.onEdit)()&&!Os(e.value).meta},get children(){var D=ky();return D.$$click=()=>{e.onEdit?.()},P(D,y(fy,{})),G(()=>O(D,o().actionButton)),D}}),null),G(()=>O(F,o().actions)),F}}),null),G(F=>{var D=o().expanderButtonContainer,T=o().expanderButton,I=o().info;return D!==F.e&&O(g,F.e=D),T!==F.t&&O(h,F.t=T),I!==F.a&&O(w,F.a=I),F},{e:void 0,t:void 0,a:void 0}),g})(),y(Q,{get when(){return n()},get children(){return[y(Q,{get when(){return f().length===1},get children(){var g=Lr();return P(g,y(kn,{get each(){return d()},by:h=>h.label,children:h=>y(Fa,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...p,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),G(()=>O(g,o().subEntry)),g}}),y(Q,{get when(){return f().length>1},get children(){var g=Lr();return P(g,y(lu,{get each(){return f()},children:(h,x)=>(()=>{var v=Ry(),C=v.firstChild,w=C.firstChild,S=w.firstChild,F=S.nextSibling,D=F.nextSibling,T=D.nextSibling;return T.nextSibling,w.$$click=()=>u(I=>I.includes(x)?I.filter(L=>L!==x):[...I,x]),P(w,y(Id,{get expanded(){return l().includes(x)}}),S),P(w,x*100,F),P(w,x*100+100-1,T),P(C,y(Q,{get when(){return l().includes(x)},get children(){var I=Lr();return P(I,y(kn,{get each(){return h()},by:L=>L.label,children:L=>y(Fa,{get defaultExpanded(){return e.defaultExpanded},get label(){return L().label},get value(){return L().value},get editable(){return e.editable},get dataPath(){return[...p,L().label]},get activeQuery(){return e.activeQuery}})})),G(()=>O(I,o().subEntry)),I}}),null),G(I=>{var L=o().entry,U=o().expanderButton;return L!==I.e&&O(C,I.e=L),U!==I.t&&O(w,I.t=U),I},{e:void 0,t:void 0}),v})()})),G(()=>O(g,o().subEntry)),g}})]}})]}}),null),P(m,y(Q,{get when(){return f().length===0},get children(){var g=Ay(),h=g.firstChild,x=h.firstChild;return P(h,()=>e.label,x),P(g,y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var v=Ld();return P(v,()=>vr(e.value)),G(()=>O(v,o().value)),v})()},get children(){return[y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var v=My();return v.addEventListener("change",C=>{let w=e.activeQuery.state.data,S=Ta(w,p,c()==="number"?C.target.valueAsNumber:C.target.value);r.setQueryData(e.activeQuery.queryKey,S)}),G(C=>{var w=c()==="number"?"number":"text",S=H(o().value,o().editableInput);return w!==C.e&&E(v,"type",C.e=w),S!==C.t&&O(v,C.t=S),C},{e:void 0,t:void 0}),G(()=>v.value=e.value),v}}),y(Q,{get when(){return c()==="boolean"},get children(){var v=Ld();return P(v,y(Fy,{get activeQuery(){return e.activeQuery},dataPath:p,get value(){return e.value}}),null),P(v,()=>vr(e.value),null),G(()=>O(v,H(o().value,o().actions,o().editableInput))),v}})]}}),null),P(g,y(Q,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(Sd,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),G(v=>{var C=o().row,w=o().label;return C!==v.e&&O(g,v.e=C),w!==v.t&&O(h,v.t=w),v},{e:void 0,t:void 0}),g}}),null),G(()=>O(m,o().entry)),m})()}var rh,nh,Fu,sh,lh,A,_s,dh,En,ph,Ou,yt,mh,ro,el,gh,Vs,Fn,hh,Ad,xh,Rd,yh,Bu,vh,Tr,Td,On,tl,Dr,Dd,Ch,bh,st,zu,Mh,Ah,Rh,Th,Uu,oo,la,Ed,Dh,Eh,Hu,_u,qs,_h,al,Ln,qd,a0,rl,o0,br,Qu,Ud,f0,Hd,C0,Nn,Gd,R0,T0,Qs,Sr,O0,Ns,ia,V0,ed,Je,G0,W0,tc,Pn,ac,js,da,ct,ax,ox,nx,sx,_t,pt,Mn,In,Ba,lx,ix,mx,gx,hx,xx,vx,Cx,bx,Ix,Ox,mc,Nx,zx,Ux,Hx,_x,Vx,Kx,pl,Gx,Js,ld,Wx,Jx,gc,ud,dd,hc,Ct,yc,Cc,n1,s1,Us,Hs,cd,fd,u1,wr,vt,Sn,f1,pd,p1,m1,g1,md,gd,h1,x1,y1,hd,xd,Ys,v1,C1,Ac,Tc,Dc,b1,Rr,yd,w1,$c,Kc,M1,vd,A1,T1,D1,qe,E1,M,F1,O1,B1,$1,vl,q1,N1,z1,U1,H1,_1,V1,K1,G1,ef,W1,Q1,j1,X1,Z1,J1,Y1,ey,by,wy,Ly,Iy,Sy,ky,Lr,Py,My,Ld,Ay,Ry,Id,Dy,Ey,Sd,Fy,af,Do,Eo,Oy,qr,By,$y,qy,Ny,zy,Uy,Hy,_y,Vy,Ky,Gy,Wy,Qy,jy,Xy,Zy,Jy,Yy,ev,Pd,tv,of,av,ov,rv,nv,sv,lv,iv,uv,dv,cv,ft,Vn,Oa,rf,Dt,Cl,So,Md,nf,fv,sf,pv,Kn,mv,gv,hv,xv,ua,yv,vv,Tn,Cv,We,Dn,bv,Tt,lf,Lt,It,bl=Vo(()=>{"use strict";b();Cr();rh=!Ze,nh=rh&&!!uu,Fu=()=>{},sh=e=>e!=null,lh=e=>e.filter(sh);A=e=>typeof e=="function"&&!e.length?e():e,_s=e=>Array.isArray(e)?e:e?[e]:[];dh=nh?e=>fn()?X(e):e:X;En=fh,ph=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Ou=e=>{if(!e)return"";let t="";for(let a in e){if(!e.hasOwnProperty(a))continue;let o=e[a];t+=o instanceof Date?`; ${a}=${o.toUTCString()}`:typeof o=="boolean"?`; ${a}`:`; ${a}=${o}`}return t},yt=ph({_cookies:[globalThis.document,"cookie"],getItem:e=>yt._cookies[0][yt._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=yt.getItem(e);yt._cookies[0][yt._cookies[1]]=`${e}=${t}${Ou(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:yt});window.dispatchEvent(r)},removeItem:e=>{yt._cookies[0][yt._cookies[1]]=`${e}=deleted${Ou({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return yt._cookies[0][yt._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return yt._cookies[0][yt._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),mh=1024,ro=796,el=700,gh="bottom-right",Vs="bottom",Fn="system",hh=!1,Ad=500,xh=500,Rd=500,yh=Object.keys(Cn)[0],Bu=1,vh=Object.keys(bn)[0],Tr=_e({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Td=_e(void 0),On=e=>{let[t,a]=N(null),o=()=>{let s=t();s!=null&&(s.close(),a(null))},r=(s,i)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${i},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="",du(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(j().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let d=[...u.cssRules].map(m=>m.cssText).join(""),c=document.createElement("style"),f=u.ownerNode,p="";f&&"id"in f&&(p=f.id),p&&c.setAttribute("id",p),c.textContent=d,l.document.head.appendChild(c)}catch{let c=document.createElement("link");if(u.href==null)return;c.rel="stylesheet",c.type=u.type,c.media=u.media.toString(),c.href=u.href,l.document.head.appendChild(c)}}),yr(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};W(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||xh))}),W(()=>{let s=(j().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(j().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),X(()=>{l.disconnect()})}});let n=k(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return y(Td.Provider,{value:n,get children(){return e.children}})},tl=()=>k(()=>{let t=$e(Td);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Dr=_e(()=>"dark");Dd={\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"},Ch=Object.keys(Dd).join("|"),bh=new RegExp(Ch,"g");st={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};zu={maxRanking:1/0,minRanking:-1/0};Mh={data:""},Ah=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Mh,Rh=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Th=/\/\*[^]*?\*\/| +/g,Uu=/\n+/g,oo=(e,t)=>{let a="",o="",r="";for(let n in e){let s=e[n];n[0]=="@"?n[1]=="i"?a=n+" "+s+";":o+=n[1]=="f"?oo(s,n):n+"{"+oo(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=oo(s,t?t.replace(/([^,])+/g,i=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,i):i?i+" "+l:l)):n):s!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=oo.p?oo.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},la={},Ed=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+Ed(e[a]);return t}return e},Dh=(e,t,a,o,r)=>{let n=Ed(e),s=la[n]||(la[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!la[s]){let l=n!==e?e:(u=>{let d,c,f=[{}];for(;d=Rh.exec(u.replace(Th,""));)d[4]?f.shift():d[3]?(c=d[3].replace(Uu," ").trim(),f.unshift(f[0][c]=f[0][c]||{})):f[0][d[1]]=d[2].replace(Uu," ").trim();return f[0]})(e);la[s]=oo(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&la.g?la.g:null;return a&&(la.g=la[s]),((l,u,d,c)=>{c?u.data=u.data.replace(c,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(la[s],t,o,i),s},Eh=(e,t,a)=>e.reduce((o,r,n)=>{let s=t[n];if(s&&s.call){let i=s(a),l=i&&i.props&&i.props.className||/^go/.test(i)&&i;s=l?"."+l:i&&typeof i=="object"?i.props?"":oo(i,""):i===!1?"":i}return o+r+(s??"")},"");ae.bind({g:1});ae.bind({k:1});Hu=Ze?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;_u=e=>{let t=Bh(e);return Fh(Oh(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)$h(s,e,l);let i=[];for(let l of n)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&i.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:u,rect:d}of i)if(u.isConnected){let c=u.getBoundingClientRect(),f=d.left-c.left,p=d.top-c.top;(f||p)&&(u.style.transform=`translate(${f}px, ${p}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let d=function(c){(c.target===u||/transform$/.test(c.propertyName))&&(u.removeEventListener("transitionend",d),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",d)}});for(let l of o)qh(s,e,l,()=>r([l]))}})},qs=Symbol("fallback");_h=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;al=(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))(al||{});Ln=null;qd=["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'])"],a0=[...qd,'[tabindex]:not([tabindex="-1"]):not([disabled])'],rl=qd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",o0=a0.join(':not([hidden]):not([tabindex="-1"]),');br=new Map,Qu=new Set;typeof document<"u"&&(document.readyState!=="loading"?ju():document.addEventListener("DOMContentLoaded",ju));Ud={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"};f0=["id","name","validationState","required","disabled","readOnly"];Hd=_e();C0=Object.defineProperty,Nn=(e,t)=>{for(var a in t)C0(e,a,{get:t[a],enumerable:!0})},Gd=_e();R0=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),T0=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Qs=Zd(),Sr=new Set;O0=_e();Ns=new Map;ia=class Jd extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Jd?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};V0=class{collection;state;constructor(e,t){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 a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index<e.index;(!e||o)&&(e=a)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index>e.index;(!e||o)&&(e=a)}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 a=this.state.selectedKeys(),o=a.anchorKey||t,r=new ia(a,o,t);for(let n of this.getKeyRange(o,a.currentKey||t))r.delete(n);for(let n of this.getKeyRange(t,o))this.canSelectItem(n)&&r.add(n);this.state.setSelectedKeys(r)}getKeyRange(e,t){let a=this.collection().getItem(e),o=this.collection().getItem(t);return a&&o?a.index!=null&&o.index!=null&&a.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let a=[],o=e;for(;o!=null;){let r=this.collection().getItem(o);if(r&&r.type==="item"&&a.push(o),o===t)return a;o=this.collection().getKeyAfter(o)}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 a=new ia(this.state.selectedKeys());a.has(t)?a.delete(t):this.canSelectItem(t)&&(a.add(t),a.anchorKey=t,a.currentKey=t),!(this.disallowEmptySelection()&&a.size===0)&&this.state.setSelectedKeys(a)}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let a=this.canSelectItem(t)?new ia([t],t,t):new ia;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new ia;for(let a of e){let o=this.getKey(a);if(o!=null&&(t.add(o),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 ia)}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 a of e)if(!t.has(a))return!1;for(let a of t)if(!e.has(a))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(a=>{for(;a!=null;){if(this.canSelectItem(a)){let o=this.collection().getItem(a);if(!o)continue;o.type==="item"&&e.push(a)}a=this.collection().getKeyAfter(a)}})(this.collection().getFirstKey()),e}},ed=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let o of e)this.keyMap.set(o.key,o);if(this.keyMap.size===0)return;let t,a=0;for(let[o,r]of this.keyMap)t?(t.nextKey=o,r.prevKey=t.key):(this.firstKey=o,r.prevKey=void 0),r.type==="item"&&(r.index=a++),t=r,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])}};Je=e=>typeof e=="function"?e():e,G0=e=>{let t=k(()=>{let s=Je(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=N(Je(e.show)?"present":"hidden"),n="none";return W(s=>{let i=Je(e.show);return Ie(()=>{if(s===i)return i;let l=n,u=a();i?r("present"):u==="none"||t()?.display==="none"?r("hidden"):r(s===!0&&l!==u?"hiding":"hidden")}),i}),W(()=>{let s=Je(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let c=a().includes(u.animationName);u.target===s&&c&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),X(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},W0=G0,tc=W0,Pn="data-kb-top-layer",js=!1,da=[];ct={layers:da,isTopMostLayer:j0,hasPointerBlockingLayer:sl,isBelowPointerBlockingLayer:rc,addLayer:Z0,removeLayer:J0,indexOf:Pr,find:Q0,assignPointerEventToLayers:Y0,disableBodyPointerEvents:ex,restoreBodyPointerEvents:tx},ax={};Nn(ax,{Button:()=>nx,Root:()=>ll});ox=["button","color","file","image","reset","submit"];nx=ll,sx=["top","right","bottom","left"],_t=Math.min,pt=Math.max,Mn=Math.round,In=Math.floor,Ba=e=>({x:e,y:e}),lx={left:"right",right:"left",bottom:"top",top:"bottom"},ix={start:"end",end:"start"};mx=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,i=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:c}=td(u,o,l),f=o,p={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:x}=i[g],{x:v,y:C,data:w,reset:S}=await x({x:d,y:c,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});d=v??d,c=C??c,p={...p,[h]:{...p[h],...w}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:c}=td(u,f,l)),g=-1)}return{x:d,y:c,placement:f,strategy:r,middlewareData:p}};gx=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:d=0}=lo(e,t)||{};if(u==null)return{};let c=sc(d),f={x:a,y:o},p=ul(r),m=il(p),g=await s.getDimensions(u),h=p==="y",x=h?"top":"left",v=h?"bottom":"right",C=h?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[p]-f[p]-n.floating[m],S=f[p]-n.reference[p],F=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),D=F?F[C]:0;(!D||!await(s.isElement==null?void 0:s.isElement(F)))&&(D=i.floating[C]||n.floating[m]);let T=w/2-S/2,I=D/2-g[m]/2-1,L=_t(c[x],I),U=_t(c[v],I),R=L,ee=D-g[m]-U,ie=D/2-g[m]/2+T,be=Xs(R,ie,ee),ce=!l.arrow&&Ro(r)!=null&&ie!==be&&n.reference[m]/2-(ie<R?L:U)-g[m]/2<0,xe=ce?ie<R?ie-R:ie-ee:0;return{[p]:f[p]+xe,data:{[p]:be,centerOffset:ie-be-xe,...ce&&{alignmentOffset:xe}},reset:ce}}}),hx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=lo(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=$a(r),v=no(i),C=$a(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(C||!g?[An(i)]:dx(i)),F=m!=="none";!f&&F&&S.push(...fx(i,g,m,w));let D=[i,...S],T=await Mr(t,h),I=[],L=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&I.push(T[x]),c){let ie=ux(r,s,w);I.push(T[ie[0]],T[ie[1]])}if(L=[...L,{placement:r,overflows:I}],!I.every(ie=>ie<=0)){var U,R;let ie=(((U=n.flip)==null?void 0:U.index)||0)+1,be=D[ie];if(be)return{data:{index:ie,overflows:L},reset:{placement:be}};let ce=(R=L.filter(xe=>xe.overflows[0]<=0).sort((xe,ye)=>xe.overflows[1]-ye.overflows[1])[0])==null?void 0:R.placement;if(!ce)switch(p){case"bestFit":{var ee;let xe=(ee=L.filter(ye=>{if(F){let fe=no(ye.placement);return fe===v||fe==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(fe=>fe>0).reduce((fe,Te)=>fe+Te,0)]).sort((ye,fe)=>ye[1]-fe[1])[0])==null?void 0:ee[0];xe&&(ce=xe);break}case"initialPlacement":ce=i;break}if(r!==ce)return{reset:{placement:ce}}}return{}}}};xx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=lo(e,t);switch(o){case"referenceHidden":{let n=await Mr(t,{...r,elementContext:"reference"}),s=ad(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:od(s)}}}case"escaped":{let n=await Mr(t,{...r,altBoundary:!0}),s=ad(n,a.floating);return{data:{escapedOffsets:s,escaped:od(s)}}}default:return{}}}}};vx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:i}=t,l=await yx(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:s}}}}},Cx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:i={fn:h=>{let{x,y:v}=h;return{x,y:v}}},...l}=lo(e,t),u={x:a,y:o},d=await Mr(t,l),c=no($a(r)),f=nc(c),p=u[f],m=u[c];if(n){let h=f==="y"?"top":"left",x=f==="y"?"bottom":"right",v=p+d[h],C=p-d[x];p=Xs(v,p,C)}if(s){let h=c==="y"?"top":"left",x=c==="y"?"bottom":"right",v=m+d[h],C=m-d[x];m=Xs(v,m,C)}let g=i.fn({...t,[f]:p,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},bx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:s=()=>{},...i}=lo(e,t),l=await Mr(t,i),u=$a(a),d=Ro(a),c=no(a)==="y",{width:f,height:p}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");let h=p-l.top-l.bottom,x=f-l.left-l.right,v=_t(p-l[m],h),C=_t(f-l[g],x),w=!t.middlewareData.shift,S=v,F=C;if(c?F=d||w?_t(C,x):x:S=d||w?_t(v,h):h,w&&!d){let T=pt(l.left,0),I=pt(l.right,0),L=pt(l.top,0),U=pt(l.bottom,0);c?F=f-2*(T!==0||I!==0?T+I:pt(l.left,l.right)):S=p-2*(L!==0||U!==0?L+U:pt(l.top,l.bottom))}await s({...t,availableWidth:F,availableHeight:S});let D=await r.getDimensions(n.floating);return f!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};Ix=Ba(0);Ox=async function(e){let t=this.getOffsetParent||pc,a=this.getDimensions,o=await a(e.floating);return{reference:Fx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};mc={convertOffsetParentRelativeRectToViewportRelativeRect:kx,getDocumentElement:ca,getClippingRect:Dx,getOffsetParent:pc,getElementRects:Ox,getClientRects:Px,getDimensions:Ex,getScale:Mo,isElement:Et,isRTL:Bx};Nx=vx,zx=Cx,Ux=hx,Hx=bx,_x=xx,Vx=gx,Kx=(e,t,a)=>{let o=new Map,r={platform:mc,...a},n={...r.platform,_c:o};return mx(e,t,{...r,platform:n})},pl=_e();Gx=V('<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">'),Js=30,ld=Js/2,Wx={top:180,right:-90,bottom:0,left:90};Jx={top:"bottom",right:"left",bottom:"top",left:"right"};gc=Object.assign(e1,{Arrow:gl,Context:pl,usePopperContext:ml,Positioner:jx});ud="interactOutside.pointerDownOutside",dd="interactOutside.focusOutside";hc=_e();Ct={};Nn(Ct,{Description:()=>_d,ErrorMessage:()=>Vd,Item:()=>bc,ItemControl:()=>wc,ItemDescription:()=>Lc,ItemIndicator:()=>Ic,ItemInput:()=>Sc,ItemLabel:()=>kc,Label:()=>Pc,RadioGroup:()=>n1,Root:()=>Mc});yc=_e();Cc=_e();n1=Object.assign(Mc,{Description:_d,ErrorMessage:Vd,Item:bc,ItemControl:wc,ItemDescription:Lc,ItemIndicator:Ic,ItemInput:Sc,ItemLabel:kc,Label:Pc}),s1=class{collection;ref;collator;constructor(e,t,a){this.collection=e,this.ref=t,this.collator=a}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.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?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.max(0,a.offsetTop+a.offsetHeight-t.offsetHeight),r=e;for(;r&&a&&a.offsetTop>o;)r=this.getKeyAbove(r),a=r!=null?this.getItem(r):null;return r}getKeyPageBelow(e){let t=this.ref?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.min(t.scrollHeight,a.offsetTop-a.offsetHeight+t.offsetHeight),r=e;for(;r&&a&&a.offsetTop<o;)r=this.getKeyBelow(r),a=r!=null?this.getItem(r):null;return r}getKeyForSearch(e,t){let a=this.collator?.();if(!a)return;let o=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;o!=null;){let r=this.collection().getItem(o);if(r){let n=r.textValue.slice(0,e.length);if(r.textValue&&a.compare(n,e)===0)return o}o=this.getKeyBelow(o)}}};Us="focusScope.autoFocusOnMount",Hs="focusScope.autoFocusOnUnmount",cd={bubbles:!1,cancelable:!0},fd={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Gs(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Gs(this.stack,e),this.active()?.resume()}};u1="data-live-announcer";wr=new WeakMap,vt=[];Sn=new Map,f1=e=>{W(()=>{let t=Je(e.style)??{},a=Je(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=Sn.get(e.key);r?r.activeCount++:Sn.set(e.key,{activeCount:1,originalStyles:o,properties:a.map(n=>n.key)}),Object.assign(e.element.style,e.style);for(let n of a)e.element.style.setProperty(n.key,n.value);X(()=>{let n=Sn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Sn.delete(e.key);for(let[s,i]of Object.entries(n.originalStyles))e.element.style[s]=i;for(let s of n.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},pd=f1,p1=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},m1=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},g1=(e,t,a)=>{let o=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,r=e,n=0,s=0,i=!1;do{let[l,u,d]=p1(r,t),c=d-l-o*u;(u!==0||c!==0)&&m1(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[md,gd]=N([]),h1=e=>md().indexOf(e)===md().length-1,x1=e=>{let t=Y({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=dt(),o=[0,0],r=null,n=null;W(()=>{Je(t.enabled)&&(gd(u=>[...u,a]),X(()=>{gd(u=>u.filter(d=>d!==a))}))}),W(()=>{if(!Je(t.enabled)||!Je(t.hideScrollbar))return;let{body:u}=document,d=window.innerWidth-u.offsetWidth;if(Je(t.preventScrollbarShift)){let c={overflow:"hidden"},f=[];d>0&&(Je(t.preventScrollbarShiftMode)==="padding"?c.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${d}px)`:c.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${d}px)`,f.push({key:"--scrollbar-width",value:`${d}px`}));let p=window.scrollY,m=window.scrollX;pd({key:"prevent-scroll",element:u,style:c,properties:f,cleanup:()=>{Je(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,p)}})}else pd({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),W(()=>{!h1(a)||!Je(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),X(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=hd(u),r=null,n=null},i=u=>{let d=u.target,c=Je(t.element),f=y1(u),p=Math.abs(f[0])>Math.abs(f[1])?"x":"y",m=p==="x"?f[0]:f[1],g=xd(d,p,m,c),h;c&&Ys(c,d)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let d=Je(t.element),c=u.target,f;if(u.touches.length===2)f=!Je(t.allowPinchZoom);else{if(r==null||n===null){let p=hd(u).map((g,h)=>o[h]-g),m=Math.abs(p[0])>Math.abs(p[1])?"x":"y";r=m,n=m==="x"?p[0]:p[1]}if(c.type==="range")f=!1;else{let p=xd(c,r,n,d);d&&Ys(d,c)?f=!p:f=!0}}f&&u.cancelable&&u.preventDefault()}},y1=e=>[e.deltaX,e.deltaY],hd=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],xd=(e,t,a,o)=>{let r=o!==null&&Ys(o,e),[n,s]=g1(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Ys=(e,t)=>{if(e.contains(t))return!0;let a=t;for(;a;){if(a===e)return!0;a=a._$host??a.parentElement}return!1},v1=x1,C1=v1,Ac=_e();Tc=_e();Dc=_e();b1=_e();Rr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Rr.next(e==="ltr"?"rtl":"ltr",t)},yd={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};w1=_e();$c=_e();Kc=_e();M1={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};vd=["Enter"," "],A1={open:(e,t)=>e==="ltr"?[...vd,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...vd,t==="horizontal"?"ArrowLeft":"ArrowUp"]};T1={};Nn(T1,{Root:()=>_n,Separator:()=>D1});D1=_n,qe={};Nn(qe,{Arrow:()=>gl,CheckboxItem:()=>Ec,Content:()=>Jc,DropdownMenu:()=>E1,Group:()=>yl,GroupLabel:()=>qc,Icon:()=>Nc,Item:()=>zc,ItemDescription:()=>Uc,ItemIndicator:()=>Hc,ItemLabel:()=>_c,Portal:()=>Vc,RadioGroup:()=>Gc,RadioItem:()=>Wc,Root:()=>Yc,Separator:()=>_n,Sub:()=>jc,SubContent:()=>Xc,SubTrigger:()=>Zc,Trigger:()=>Fc});E1=Object.assign(Yc,{Arrow:gl,CheckboxItem:Ec,Content:Jc,Group:yl,GroupLabel:qc,Icon:Nc,Item:zc,ItemDescription:Uc,ItemIndicator:Hc,ItemLabel:_c,Portal:Vc,RadioGroup:Gc,RadioItem:Wc,Separator:_n,Sub:jc,SubContent:Xc,SubTrigger:Zc,Trigger:Fc}),M={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}},F1=V('<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>'),O1=V('<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>'),B1=V('<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>'),$1=V('<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>'),vl=V('<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>'),q1=V('<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>'),N1=V('<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>'),z1=V('<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>'),U1=V('<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">'),H1=V('<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">'),_1=V('<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>'),V1=V('<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>'),K1=V('<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>'),G1=V('<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>'),ef=V('<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>'),W1=V('<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>'),Q1=V('<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>'),j1=V('<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>'),X1=V('<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>'),Z1=V('<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>'),J1=V('<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>'),Y1=V('<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>'),ey=V('<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>');by=V('<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>'),wy=V('<button title="Copy object to clipboard">'),Ly=V('<button title="Remove all items"aria-label="Remove all items">'),Iy=V('<button title="Delete item"aria-label="Delete item">'),Sy=V('<button title="Toggle value"aria-label="Toggle value">'),ky=V('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),Lr=V("<div>"),Py=V("<div><button> <span></span> <span> "),My=V("<input>"),Ld=V("<span>"),Ay=V("<div><span>:"),Ry=V("<div><div><button> [<!>...<!>]");Id=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Eo(a):Do(a));return(()=>{var r=by();return G(()=>O(r,H(o().expander,a`
|
|
1
|
+
"use strict";var Qp=Object.create;var Yr=Object.defineProperty;var jp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var Zp=Object.getPrototypeOf,Jp=Object.prototype.hasOwnProperty;var zo=(e,t)=>()=>(e&&(t=e(e=0)),t);var en=(e,t)=>{for(var a in t)Yr(e,a,{get:t[a],enumerable:!0})},Jr=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xp(t))!Jp.call(e,r)&&r!==a&&Yr(e,r,{get:()=>t[r],enumerable:!(o=jp(t,r))||o.enumerable});return e},ta=(e,t,a)=>(Jr(e,t,"default"),a&&Jr(a,t,"default")),Se=(e,t,a)=>(a=e!=null?Qp(Zp(e)):{},Jr(t||!e||!e.__esModule?Yr(a,"default",{value:e,enumerable:!0}):a,e)),Yp=e=>Jr(Yr({},"__esModule",{value:!0}),e);var b=zo(()=>{});function Mi(e){let t=String(e),a=t.length-1;return J.context.id+(a?String.fromCharCode(96+a):"")+t}function Qa(e){J.context=e}function Fm(){return{...J.context,id:J.getNextContextId(),count:0}}function $t(e,t){let a=ge,o=oe,r=e.length===0,n=t===void 0?o:t,s=r?_i:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>Le(()=>Aa(s)));oe=s,ge=null;try{return nt(i,!0)}finally{ge=a,oe=o}}function N(e,t){t=t?Object.assign({},dn,t):dn;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(q&&q.running&&q.sources.has(a)?r=r(a.tValue):r=r(a.value)),ji(a,r));return[Qi.bind(a),o]}function cn(e,t,a){let o=hn(e,t,!0,lt);Co&&q&&q.running?Be.push(o):bo(o)}function G(e,t,a){let o=hn(e,t,!1,lt);Co&&q&&q.running?Be.push(o):bo(o)}function W(e,t,a){Hi=Hm;let o=hn(e,t,!1,lt),r=ur&&$e(ur);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),Ze?Ze.push(o):bo(o)}function k(e,t,a){a=a?Object.assign({},dn,a):dn;let o=hn(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,Co&&q&&q.running?(o.tState=lt,Be.push(o)):bo(o),Qi.bind(o)}function Bm(e){return e&&typeof e=="object"&&"then"in e}function $m(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=gs,l=null,u=!1,d=!1,c="initialValue"in n,f=typeof o=="function"&&k(o),p=new Set,[m,g]=(n.storage||N)(n.initialValue),[h,x]=N(void 0),[v,C]=N(void 0,{equals:!1}),[w,S]=N(c?"ready":"unresolved");J.context&&(l=J.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:J.load&&J.has(l)&&(i=J.load(l)));function F(I,H,P,Z){return s===I&&(s=null,Z!==void 0&&(c=!0),(I===i||H===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(Z,{value:H})),i=gs,q&&I&&u?(q.promises.delete(I),u=!1,nt(()=>{q.running=!0,D(H,P)},!1)):D(H,P)),H}function D(I,H){nt(()=>{H===void 0&&g(()=>I),S(H!==void 0?"errored":c?"ready":"unresolved"),x(H);for(let P of p.keys())P.decrement();p.clear()},!1)}function T(){let I=ur&&$e(ur),H=m(),P=h();if(P!==void 0&&!s)throw P;return ge&&!ge.user&&I&&cn(()=>{v(),s&&(I.resolved&&q&&u?q.promises.add(s):p.has(I)||(I.increment(),p.add(I)))}),H}function L(I=!0){if(I!==!1&&d)return;d=!1;let H=f?f():o;if(u=q&&q.running,H==null||H===!1){F(s,Le(m));return}q&&s&&q.promises.delete(s);let P=i!==gs?i:Le(()=>r(H,{value:m(),refetching:I}));return Bm(P)?(s=P,"value"in P?(P.status==="success"?F(s,P.value,void 0,H):F(s,void 0,ys(P.value),H),P):(d=!0,queueMicrotask(()=>d=!1),nt(()=>{S(c?"refreshing":"pending"),C()},!1),P.then(Z=>F(P,Z,void 0,H),Z=>F(P,void 0,ys(Z),H)))):(F(s,P,void 0,H),P)}return Object.defineProperties(T,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return T();let I=h();if(I&&!s)throw I;return m()}}}),f?cn(()=>L(!1)):L(!1),[T,{refetch:L,mutate:g}]}function Vi(e){return nt(e,!1)}function Le(e){if(!yo&&ge===null)return e();let t=ge;ge=null;try{return yo?yo.untrack(e):e()}finally{ge=t}}function qt(e,t,a){let o=Array.isArray(e),r,n=a&&a.defer;return s=>{let i;if(o){i=Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u]()}else i=e();if(n)return n=!1,s;let l=Le(()=>t(i,r,s));return r=i,l}}function na(e){W(()=>Le(e))}function X(e){return oe===null||(oe.cleanups===null?oe.cleanups=[e]:oe.cleanups.push(e)),e}function fn(){return oe}function qm(e,t){let a=oe,o=ge;oe=e,ge=null;try{return nt(t,!0)}catch(r){xn(r)}finally{oe=a,ge=o}}function Ki(e){if(q&&q.running)return e(),q.done;let t=ge,a=oe;return Promise.resolve().then(()=>{ge=t,oe=a;let o;return(Co||ur)&&(o=q||(q={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),o.done||(o.done=new Promise(r=>o.resolve=r)),o.running=!0),nt(e,!1),ge=oe=null,o?o.done:void 0})}function Gi(){return[Nm,Ki]}function _e(e,t){let a=Symbol("context");return{id:a,Provider:_m(a),defaultValue:e}}function $e(e){let t;return oe&&oe.context&&(t=oe.context[e.id])!==void 0?t:e.defaultValue}function Wi(e){let t=k(e),a=k(()=>vs(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function Qi(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===lt)bo(this);else{let t=Be;Be=null,nt(()=>pn(this),!1),Be=t}if(ge){let t=this.observers?this.observers.length:0;ge.sources?(ge.sources.push(this),ge.sourceSlots.push(t)):(ge.sources=[this],ge.sourceSlots=[t]),this.observers?(this.observers.push(ge),this.observerSlots.push(ge.sources.length-1)):(this.observers=[ge],this.observerSlots=[ge.sources.length-1])}return e&&q.sources.has(this)?this.tValue:this.value}function ji(e,t,a){let o=q&&q.running&&q.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(q){let r=q.running;(r||!a&&q.sources.has(e))&&(q.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&nt(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=q&&q.running;s&&q.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?Be.push(n):Ze.push(n),n.observers&&Zi(n)),s?n.tState=lt:n.state=lt)}if(Be.length>1e6)throw Be=[],new Error},!1)}return t}function bo(e){if(!e.fn)return;Aa(e);let t=gn;Ti(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{nt(()=>{q&&(q.running=!0),ge=oe=e,Ti(e,e.tValue,t),ge=oe=null},!1)})}function Ti(e,t,a){let o,r=oe,n=ge;ge=oe=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=lt,e.tOwned&&e.tOwned.forEach(Aa),e.tOwned=void 0):(e.state=lt,e.owned&&e.owned.forEach(Aa),e.owned=null)),e.updatedAt=a+1,xn(s)}finally{ge=n,oe=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?ji(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function hn(e,t,a,o=lt,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:oe,context:oe?oe.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),oe===null||oe!==_i&&(q&&q.running&&oe.pure?oe.tOwned?oe.tOwned.push(n):oe.tOwned=[n]:oe.owned?oe.owned.push(n):oe.owned=[n]),yo&&n.fn){let[s,i]=N(void 0,{equals:!1}),l=yo.factory(n.fn,i);X(()=>l.dispose());let u=()=>Ki(i).then(()=>d.dispose()),d=yo.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function dr(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===ir)return pn(e);if(e.suspense&&Le(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<gn);){if(t&&q.disposed.has(e))return;(t?e.tState:e.state)&&a.push(e)}for(let o=a.length-1;o>=0;o--){if(e=a[o],t){let r=e,n=a[o+1];for(;(r=r.owner)&&r!==n;)if(q.disposed.has(r))return}if((t?e.tState:e.state)===lt)bo(e);else if((t?e.tState:e.state)===ir){let r=Be;Be=null,nt(()=>pn(e,a[0]),!1),Be=r}}}function nt(e,t){if(Be)return e();let a=!1;t||(Be=[]),Ze?a=!0:Ze=[],gn++;try{let o=e();return zm(a),o}catch(o){a||(Ze=null),Be=null,xn(o)}}function zm(e){if(Be&&(Co&&q&&q.running?Um(Be):Xi(Be),Be=null),e)return;let t;if(q){if(!q.promises.size&&!q.queue.size){let o=q.sources,r=q.disposed;Ze.push.apply(Ze,q.effects),t=q.resolve;for(let n of Ze)"tState"in n&&(n.state=n.tState),delete n.tState;q=null,nt(()=>{for(let n of r)Aa(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)Aa(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}Ri(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,Ze),Ze=null,Ri(!0);return}}let a=Ze;Ze=null,a.length&&nt(()=>Hi(a),!1),t&&t()}function Xi(e){for(let t=0;t<e.length;t++)dr(e[t])}function Um(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),Co(()=>{o.delete(a),nt(()=>{q.running=!0,dr(a)},!1),q&&(q.running=!1)}))}}function Hm(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:dr(o)}if(J.context){if(J.count){J.effects||(J.effects=[]),J.effects.push(...e.slice(0,a));return}Qa()}for(J.effects&&(J.done||!J.count)&&(e=[...J.effects,...e],a+=J.effects.length,delete J.effects),t=0;t<a;t++)dr(e[t])}function pn(e,t){let a=q&&q.running;a?e.tState=0:e.state=0;for(let o=0;o<e.sources.length;o+=1){let r=e.sources[o];if(r.sources){let n=a?r.tState:r.state;n===lt?r!==t&&(!r.updatedAt||r.updatedAt<gn)&&dr(r):n===ir&&pn(r,t)}}}function Zi(e){let t=q&&q.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=ir:o.state=ir,o.pure?Be.push(o):Ze.push(o),o.observers&&Zi(o))}}function Aa(e){let t;if(e.sources)for(;e.sources.length;){let a=e.sources.pop(),o=e.sourceSlots.pop(),r=a.observers;if(r&&r.length){let n=r.pop(),s=a.observerSlots.pop();o<r.length&&(n.sourceSlots[s]=o,r[o]=n,a.observerSlots[o]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Aa(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)Ji(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Aa(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}q&&q.running?e.tState=0:e.state=0}function Ji(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)Ji(e.owned[a])}function ys(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Di(e,t,a){try{for(let o of t)o(e)}catch(o){xn(o,a&&a.owner||null)}}function xn(e,t=oe){let a=Ai&&t&&t.context&&t.context[Ai],o=ys(e);if(!a)throw o;Ze?Ze.push({fn(){Di(o,a,t)},state:lt}):Di(o,a,t)}function vs(e){if(typeof e=="function"&&!e.length)return vs(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=vs(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function _m(e,t){return function(o){let r;return G(()=>r=Le(()=>(oe.context={...oe.context,[e]:o.value},Wi(()=>o.children))),void 0),r}}function mn(e){for(let t=0;t<e.length;t++)e[t]()}function Vm(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return X(()=>mn(n)),()=>{let l=e()||[],u=l.length,d,c;return l[gr],Le(()=>{let p,m,g,h,x,v,C,w,S;if(u===0)s!==0&&(mn(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[Cs],r[0]=$t(F=>(n[0]=F,a.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=l[c],r[c]=$t(f);s=u}else{for(g=new Array(u),h=new Array(u),i&&(x=new Array(u)),v=0,C=Math.min(s,u);v<C&&o[v]===l[v];v++);for(C=s-1,w=u-1;C>=v&&w>=v&&o[C]===l[w];C--,w--)g[w]=r[C],h[w]=n[C],i&&(x[w]=i[C]);for(p=new Map,m=new Array(w+1),c=w;c>=v;c--)S=l[c],d=p.get(S),m[c]=d===void 0?-1:d,p.set(S,c);for(d=v;d<=C;d++)S=o[d],c=p.get(S),c!==void 0&&c!==-1?(g[c]=r[d],h[c]=n[d],i&&(x[c]=i[d]),c=m[c],p.set(S,c)):n[d]();for(c=v;c<u;c++)c in g?(r[c]=g[c],n[c]=h[c],i&&(i[c]=x[c],i[c](c))):r[c]=$t(f);r=r.slice(0,s=u),o=l.slice(0)}return r});function f(p){if(n[c]=p,i){let[m,g]=N(c);return i[c]=g,t(l[c],m)}return t(l[c])}}}function Km(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return X(()=>mn(n)),()=>{let u=e()||[],d=u.length;return u[gr],Le(()=>{if(d===0)return i!==0&&(mn(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[Cs],r[0]=$t(f=>(n[0]=f,a.fallback())),i=1),r;for(o[0]===Cs&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<d;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=$t(c));for(;l<o.length;l++)n[l]();return i=s.length=n.length=d,o=u.slice(0),r=r.slice(0,i)});function c(f){n[l]=f;let[p,m]=N(u[l]);return s[l]=m,t(p,l)}}}function y(e,t){if(Gm&&J.context){let a=J.context;Qa(Fm());let o=Le(()=>e(t||{}));return Qa(a),o}return Le(()=>e(t||{}))}function rn(){return!0}function hs(e){return(e=typeof e=="function"?e():e)?e:{}}function Wm(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function ee(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&un in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if(Ui&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=hs(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in hs(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(hs(e[i])));return[...new Set(s)]}},bs);let a={},o=Object.create(null);for(let s=e.length-1;s>=0;s--){let i=e[s];if(!i)continue;let l=Object.getOwnPropertyNames(i);for(let u=l.length-1;u>=0;u--){let d=l[u];if(d==="__proto__"||d==="constructor")continue;let c=Object.getOwnPropertyDescriptor(i,d);if(!o[d])o[d]=c.get?{enumerable:!0,configurable:!0,get:Wm.bind(a[d]=[c.get.bind(i)])}:c.value!==void 0?c:void 0;else{let f=a[d];f&&(c.get?f.push(c.get.bind(i)):c.value!==void 0&&f.push(()=>c.value))}}}let r={},n=Object.keys(o);for(let s=n.length-1;s>=0;s--){let i=n[s],l=o[i];l&&l.get?Object.defineProperty(r,i,l):r[i]=l?l.value:void 0}return r}function de(e,...t){if(Ui&&un in e){let r=new Set(t.length>1?t.flat():t[0]),n=t.map(s=>new Proxy({get(i){return s.includes(i)?e[i]:void 0},has(i){return s.includes(i)&&i in e},keys(){return s.filter(i=>i in e)}},bs));return n.push(new Proxy({get(s){return r.has(s)?void 0:e[s]},has(s){return r.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!r.has(s))}},bs)),n}let a={},o=t.map(()=>({}));for(let r of Object.getOwnPropertyNames(e)){let n=Object.getOwnPropertyDescriptor(e,r),s=!n.get&&!n.set&&n.enumerable&&n.writable&&n.configurable,i=!1,l=0;for(let u of t)u.includes(r)&&(i=!0,s?o[l][r]=n.value:Object.defineProperty(o[l],r,n)),++l;i||(s?a[r]=n.value:Object.defineProperty(a,r,n))}return[...o,a]}function Ps(e){let t,a,o=r=>{let n=J.context;if(n){let[i,l]=N();J.count||(J.count=0),J.count++,(a||(a=e())).then(u=>{!J.done&&Qa(n),J.count--,l(()=>u.default),Qa()}),t=i}else if(!t){let[i]=$m(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return k(()=>(s=t())?Le(()=>{if(!n||J.done)return s(r);let i=J.context;Qa(n);let l=s(r);return Qa(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function it(){return J.context?J.getNextContextId():`cl-${Qm++}`}function eu(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Vm(()=>e.each,e.children,t||void 0))}function tu(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Km(()=>e.each,e.children,t||void 0))}function Q(e){let t=e.keyed,a=k(()=>e.when,void 0,void 0),o=t?a:k(a,void 0,{equals:(r,n)=>!r==!n});return k(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?Le(()=>n(t?r:()=>{if(!Le(o))throw Yi("Show");return a()})):n}return e.fallback},void 0,void 0)}function au(e){let t=Wi(()=>e.children),a=k(()=>{let o=t(),r=Array.isArray(o)?o:[o],n=()=>{};for(let s=0;s<r.length;s++){let i=s,l=r[s],u=n,d=k(()=>u()?void 0:l.when,void 0,void 0),c=l.keyed?d:k(d,void 0,{equals:(f,p)=>!f==!p});n=()=>u()||(c()?[i,d,l]:void 0)}return n});return k(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?Le(()=>i(s.keyed?n():()=>{if(Le(a)()?.[0]!==r)throw Yi("Match");return n()})):i},void 0,void 0)}function yn(e){return e}function eg(e,t){let a=Ym[e];return typeof a=="object"?a[t]?a.$:void 0:a}function rg(e,t,a){let o=a.length,r=t.length,n=o,s=0,i=0,l=t[r-1].nextSibling,u=null;for(;s<r||i<n;){if(t[s]===a[i]){s++,i++;continue}for(;t[r-1]===a[n-1];)r--,n--;if(r===s){let d=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],d)}else if(n===i)for(;s<r;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===a[n-1]&&a[i]===t[r-1]){let d=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],d),t[r]=a[n]}else{if(!u){u=new Map;let c=i;for(;c<n;)u.set(a[c],c++)}let d=u.get(t[s]);if(d!=null)if(i<d&&d<n){let c=s,f=1,p;for(;++c<r&&c<n&&!((p=u.get(t[c]))==null||p!==d+f);)f++;if(f>d-i){let m=t[s];for(;i<d;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function Ms(e,t,a,o={}){let r;return $t(n=>{r=n,t===document?e():M(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function V(e,t,a,o){let r,n=()=>{let i=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return i.innerHTML=e,a?i.content.firstChild.firstChild:o?i.firstChild:i.content.firstChild},s=t?()=>Le(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function hr(e,t=window.document){let a=t[sr]||(t[sr]=new Set);for(let o=0,r=e.length;o<r;o++){let n=e[o];a.has(n)||(a.add(n),t.addEventListener(n,nu))}}function ru(e=window.document){if(e[sr]){for(let t of e[sr].keys())e.removeEventListener(t,nu);delete e[sr]}}function E(e,t,a){Xa(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function ng(e,t,a,o){Xa(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function sg(e,t,a){Xa(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function O(e,t){Xa(e)||(t==null?e.removeAttribute("class"):e.className=t)}function As(e,t,a,o){if(o)Array.isArray(a)?(e[`$$${t}`]=a[0],e[`$$${t}Data`]=a[1]):e[`$$${t}`]=a;else if(Array.isArray(a)){let r=a[0];e.addEventListener(t,a[0]=n=>r.call(e,a[1],n))}else e.addEventListener(t,a,typeof a!="function"&&a)}function lg(e,t,a={}){let o=Object.keys(t||{}),r=Object.keys(a),n,s;for(n=0,s=r.length;n<s;n++){let i=r[n];!i||i==="undefined"||t[i]||(Ei(e,i,!1),delete a[i])}for(n=0,s=o.length;n<s;n++){let i=o[n],l=!!t[i];!i||i==="undefined"||a[i]===l||!l||(Ei(e,i,!0),a[i]=l)}return a}function ig(e,t,a){if(!t)return a?E(e,"style"):t;let o=e.style;if(typeof t=="string")return o.cssText=t;typeof a=="string"&&(o.cssText=a=void 0),a||(a={}),t||(t={});let r,n;for(n in a)t[n]==null&&o.removeProperty(n),delete a[n];for(n in t)r=t[n],r!==a[n]&&(o.setProperty(n,r),a[n]=r);return a}function Rs(e,t={},a,o){let r={};return o||G(()=>r.children=cr(e,t.children,r.children)),G(()=>typeof t.ref=="function"&&ja(t.ref,e)),G(()=>ug(e,t,a,!0,r,!0)),r}function ja(e,t,a){return Le(()=>e(t,a))}function M(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return cr(e,t,o,a);G(r=>cr(e,t(),r,a),o)}function ug(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=Fi(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=Fi(e,s,i,r[s],a,n,t)}}function dg(e){let t,a;return!Xa()||!(t=J.registry.get(a=fg()))?e():(J.completed&&J.completed.add(t),J.registry.delete(a),t)}function Xa(e){return!!J.context&&!J.done&&(!e||e.isConnected)}function cg(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function Ei(e,t,a){let o=t.trim().split(/\s+/);for(let r=0,n=o.length;r<n;r++)e.classList.toggle(o[r],a)}function Fi(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return ig(e,a,o);if(t==="classList")return lg(e,a,o);if(a===o)return o;if(t==="ref")n||a(e);else if(t.slice(0,3)==="on:"){let f=t.slice(3);o&&e.removeEventListener(f,o,typeof o!="function"&&o),a&&e.addEventListener(f,a,typeof a!="function"&&a)}else if(t.slice(0,10)==="oncapture:"){let f=t.slice(10);o&&e.removeEventListener(f,o,!0),a&&e.addEventListener(f,a,!0)}else if(t.slice(0,2)==="on"){let f=t.slice(2).toLowerCase(),p=tg.has(f);if(!p&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(f,m)}(p||a)&&(As(e,f,a,p),p&&hr([f]))}else if(t.slice(0,5)==="attr:")E(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")sg(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Zm.has(t))||!r&&((d=eg(t,e.tagName))||(l=Xm.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(Xa(e))return a;t==="class"||t==="className"?O(e,a):i&&!l&&!u?e[cg(t)]=a:e[d||t]=a}else{let f=r&&t.indexOf(":")>-1&&og[t.split(":")[0]];f?ng(e,f,t,a):E(e,Jm[t]||t,a)}return a}function nu(e){if(J.registry&&J.events&&J.events.find(([l,u])=>u===e))return;let t=e.target,a=`$$${e.type}`,o=e.target,r=e.currentTarget,n=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{let l=t[a];if(l&&!t.disabled){let u=t[`${a}Data`];if(u!==void 0?l.call(t,u,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&n(t.host),!0},i=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),J.registry&&!J.done&&(J.done=_$HY.done=!0),e.composedPath){let l=e.composedPath();n(l[0]);for(let u=0;u<l.length-2&&(t=l[u],!!s());u++){if(t._$host){t=t._$host,i();break}if(t.parentNode===r)break}}else i();n(o)}function cr(e,t,a,o,r){let n=Xa(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let d=a[u];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}a=l}for(;typeof a=="function";)a=a();if(t===a)return a;let s=typeof t,i=o!==void 0;if(e=i&&a[0]&&a[0].parentNode||e,s==="string"||s==="number"){if(n||s==="number"&&(t=t.toString(),t===a))return a;if(i){let l=a[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),a=go(e,a,o,l)}else a!==""&&typeof a=="string"?a=e.firstChild.data=t:a=e.textContent=t}else if(t==null||s==="boolean"){if(n)return a;a=go(e,a,o)}else{if(s==="function")return G(()=>{let l=t();for(;typeof l=="function";)l=l();a=cr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(ws(l,t,a,r))return G(()=>a=cr(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return a;let c=[d];for(;(d=d.nextSibling)!==o;)c.push(d);return a=c}if(l.length===0){if(a=go(e,a,o),i)return a}else u?a.length===0?Oi(e,l,o):rg(e,a,l):(a&&go(e),Oi(e,l));a=l}else if(t.nodeType){if(n&&t.parentNode)return a=i?[t]:t;if(Array.isArray(a)){if(i)return a=go(e,a,o,t);go(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function ws(e,t,a,o){let r=!1;for(let n=0,s=t.length;n<s;n++){let i=t[n],l=a&&a[e.length],u;if(!(i==null||i===!0||i===!1))if((u=typeof i)=="object"&&i.nodeType)e.push(i);else if(Array.isArray(i))r=ws(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=ws(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let d=String(i);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return r}function Oi(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function go(e,t,a,o){if(a===void 0)return e.textContent="";let r=o||document.createTextNode("");if(t.length){let n=!1;for(let s=t.length-1;s>=0;s--){let i=t[s];if(r!==i){let l=i.parentNode===e;!n&&!s?l?e.replaceChild(r,i):e.insertBefore(r,a):l&&i.remove()}else n=!0}}else e.insertBefore(r,a);return[r]}function fg(){return J.getNextContextId()}function su(e,t=!1){return t?document.createElementNS(pg,e):document.createElement(e)}function Ts(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=fn(),n,s=!!J.context;return W(()=>{s&&(fn().user=s=!1),n||(n=qm(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);$t(c=>M(i,()=>l()?c():n(),null)),X(d)}else{let l=su(e.isSVG?"g":"div",e.isSVG),u=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return a.parentNode},configurable:!0}),M(u,n),i.appendChild(l),e.ref&&e.ref(l),X(()=>i.removeChild(l))}},void 0,{render:!s}),a}function mg(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return Le(()=>o(t));case"string":let r=ag.has(o),n=J.context?dg():su(o,r);return Rs(n,t,r),n}})}function lu(e){let[,t]=de(e,["component"]);return mg(()=>e.component,t)}function xg(e){if("values"in Object)return Object.values(e);let t=[];for(let a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t}function yg(e,t){let a=xg(e);if("find"in a)return a.find(t);let o=a;for(let r=0;r<o.length;r++){let n=o[r];if(t(n))return n}}function vo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function ln(e,t){return e.indexOf(t)!==-1}function Bi(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function Bt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function vn(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function gu(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function vu(e){if(ln(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ln(e,"prototype"))throw new Error("prototype is not allowed as a property");if(ln(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Ss(e,t,a=[]){if(!e)return;if(!Ra(e)){vo(e,(n,s)=>Ss(n,t,[...a,...lr(s)]));return}let[o,r]=e;r&&vo(r,(n,s)=>{Ss(n,t,[...a,...lr(s)])}),t(o,a)}function $g(e,t,a){return Ss(t,(o,r)=>{e=Is(e,r,n=>Og(n,o,a))}),e}function qg(e,t){function a(o,r){let n=Bg(e,lr(r));o.map(lr).forEach(s=>{e=Is(e,s,()=>n)})}if(Ra(t)){let[o,r]=t;o.forEach(n=>{e=Is(e,lr(n),()=>e)}),r&&vo(r,a)}else vo(t,a);return e}function zg(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function Ug(e,t){let a={},o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(i=>i.map(String)).sort((i,l)=>i.length-l.length));let[n,...s]=r;n.length===0?o=s.map(xs):a[xs(n)]=s.map(xs)}),o?Ls(a)?[o]:[o,a]:Ls(a)?void 0:a}function bu(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ni(e){return bu(e)==="Array"}function Hg(e){if(bu(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function _g(e,t,a,o,r){let n={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";n==="enumerable"&&(e[t]=a),r&&n==="nonenumerable"&&Object.defineProperty(e,t,{value:a,enumerable:!1,writable:!0,configurable:!0})}function ks(e,t={}){if(Ni(e))return e.map(r=>ks(r,t));if(!Hg(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(Ni(t.props)&&!t.props.includes(n))return r;let s=e[n],i=ks(s,t);return _g(r,n,i,e,t.nonenumerable),r},{})}function Za(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function Lu(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function Iu({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function Ja({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Su(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var J,zi,Om,un,Ui,gr,dn,Ai,Hi,lt,ir,_i,gs,oe,q,Co,yo,ge,Be,Ze,gn,Nm,Ri,ur,Cs,Gm,bs,Qm,Yi,ou,jm,Xm,Zm,Jm,Ym,tg,ag,og,sr,Je,pg,gg,iu,hg,vg,Cg,uu,bg,fr,Ls,Ra,wg,Lg,Ig,Sg,pr,mr,du,kg,Pg,$i,Mg,Ag,Rg,Tg,Dg,cu,xs,lr,fu,pu,Eg,mu,hu,xu,Fg,qi,yu,Og,ho,Bg,Is,Ng,Cu,ie,Ds,wu,xr,nn,Vg,ku,Kg,Cn,sn,Pu,Gg,bn,Es,wn,Ma,xo,Fs,yr=zo(()=>{"use strict";b();J={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Mi(this.context.count)},getNextContextId(){return Mi(this.context.count++)}};zi=!1,Om=(e,t)=>e===t,un=Symbol("solid-proxy"),Ui=typeof Proxy=="function",gr=Symbol("solid-track"),dn={equals:Om},Ai=null,Hi=Xi,lt=1,ir=2,_i={owned:null,cleanups:null,context:null,owner:null},gs={},oe=null,q=null,Co=null,yo=null,ge=null,Be=null,Ze=null,gn=0;[Nm,Ri]=N(!1);Cs=Symbol("fallback");Gm=!1;bs={get(e,t,a){return t===un?a:e.get(t)},has(e,t){return t===un?!0:e.has(t)},set:rn,deleteProperty:rn,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:rn,deleteProperty:rn}},ownKeys(e){return e.keys()}};Qm=0;Yi=e=>`Stale read from <${e}>.`;ou=void 0,jm=["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"],Xm=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...jm]),Zm=new Set(["innerHTML","textContent","innerText","children"]),Jm=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Ym=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});tg=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),ag=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"]),og={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};sr="_$DX_DELEGATE";Je=!1,pg="http://www.w3.org/2000/svg";gg=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()}},iu=class{constructor(e){this.generateIdentifier=e,this.kv=new gg}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)}},hg=class extends iu{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)}};vg=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return yg(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Cg=e=>Object.prototype.toString.call(e).slice(8,-1),uu=e=>typeof e>"u",bg=e=>e===null,fr=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Ls=e=>fr(e)&&Object.keys(e).length===0,Ra=e=>Array.isArray(e),wg=e=>typeof e=="string",Lg=e=>typeof e=="number"&&!isNaN(e),Ig=e=>typeof e=="boolean",Sg=e=>e instanceof RegExp,pr=e=>e instanceof Map,mr=e=>e instanceof Set,du=e=>Cg(e)==="Symbol",kg=e=>e instanceof Date&&!isNaN(e.valueOf()),Pg=e=>e instanceof Error,$i=e=>typeof e=="number"&&isNaN(e),Mg=e=>Ig(e)||bg(e)||uu(e)||Lg(e)||wg(e)||du(e),Ag=e=>typeof e=="bigint",Rg=e=>e===1/0||e===-1/0,Tg=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Dg=e=>e instanceof URL,cu=e=>e.replace(/\./g,"\\."),xs=e=>e.map(String).map(cu).join("."),lr=e=>{let t=[],a="";for(let r=0;r<e.length;r++){let n=e.charAt(r);if(n==="\\"&&e.charAt(r+1)==="."){a+=".",r++;continue}if(n==="."){t.push(a),a="";continue}a+=n}let o=a;return t.push(o),t};fu=[Bt(uu,"undefined",()=>null,()=>{}),Bt(Ag,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Bt(kg,"Date",e=>e.toISOString(),e=>new Date(e)),Bt(Pg,"Error",(e,t)=>{let a={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a},(e,t)=>{let a=new Error(e.message);return a.name=e.name,a.stack=e.stack,t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a}),Bt(Sg,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Bt(mr,"set",e=>[...e.values()],e=>new Set(e)),Bt(pr,"map",e=>[...e.entries()],e=>new Map(e)),Bt(e=>$i(e)||Rg(e),"number",e=>$i(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Bt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Bt(Dg,"URL",e=>e.toString(),e=>new URL(e))];pu=vn((e,t)=>du(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,a)=>{let o=a.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Eg=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),mu=vn(Tg,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Eg[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});hu=vn(gu,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let a=t.classRegistry.getAllowedProps(e.constructor);if(!a)return{...e};let o={};return a.forEach(r=>{o[r]=e[r]}),o},(e,t,a)=>{let o=a.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)}),xu=vn((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,a)=>{let o=a.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),Fg=[hu,pu,xu,mu],qi=(e,t)=>{let a=Bi(Fg,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=Bi(fu,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},yu={};fu.forEach(e=>{yu[e.annotation]=e});Og=(e,t,a)=>{if(Ra(t))switch(t[0]){case"symbol":return pu.untransform(e,t,a);case"class":return hu.untransform(e,t,a);case"custom":return xu.untransform(e,t,a);case"typed-array":return mu.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=yu[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},ho=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Bg=(e,t)=>{vu(t);for(let a=0;a<t.length;a++){let o=t[a];if(mr(e))e=ho(e,+o);else if(pr(e)){let r=+o,n=+t[++a]==0?"key":"value",s=ho(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},Is=(e,t,a)=>{if(vu(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(Ra(o)){let i=+s;o=o[i]}else if(fr(o))o=o[s];else if(mr(o)){let i=+s;o=ho(o,i)}else if(pr(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=ho(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(Ra(o)?o[+r]=a(o[+r]):fr(o)&&(o[r]=a(o[r])),mr(o)){let n=ho(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(pr(o)){let n=+t[t.length-2],s=ho(o,n);switch(+r==0?"key":"value"){case"key":{let l=a(s);o.set(l,o.get(s)),l!==s&&o.delete(s);break}case"value":{o.set(s,a(o.get(s)));break}}}return e};Ng=(e,t)=>fr(e)||Ra(e)||pr(e)||mr(e)||gu(e,t);Cu=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Mg(e);if(!i){zg(e,r,t);let p=s.get(e);if(p)return o?{transformedValue:null}:p}if(!Ng(e,a)){let p=qi(e,a),m=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return i||s.set(e,m),m}if(ln(n,e))return{transformedValue:null};let l=qi(e,a),u=l?.value??e,d=Ra(u)?[]:{},c={};vo(u,(p,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);let g=Cu(p,t,a,o,[...r,m],[...n,e],s);d[m]=g.transformedValue,Ra(g.annotations)?c[m]=g.annotations:fr(g.annotations)&&vo(g.annotations,(h,x)=>{c[cu(m)+"."+x]=h})});let f=Ls(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,f),f};ie=class{constructor({dedupe:e=!1}={}){this.classRegistry=new hg,this.symbolRegistry=new iu(t=>t.description??""),this.customTransformerRegistry=new vg,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=Cu(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=Ug(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=ks(t);return a?.values&&(o=$g(o,a.values,this)),a?.referentialEqualities&&(o=qg(o,a.referentialEqualities)),o}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)}};ie.defaultInstance=new ie;ie.serialize=ie.defaultInstance.serialize.bind(ie.defaultInstance);ie.deserialize=ie.defaultInstance.deserialize.bind(ie.defaultInstance);ie.stringify=ie.defaultInstance.stringify.bind(ie.defaultInstance);ie.parse=ie.defaultInstance.parse.bind(ie.defaultInstance);ie.registerClass=ie.defaultInstance.registerClass.bind(ie.defaultInstance);ie.registerSymbol=ie.defaultInstance.registerSymbol.bind(ie.defaultInstance);ie.registerCustom=ie.defaultInstance.registerCustom.bind(ie.defaultInstance);ie.allowErrorProps=ie.defaultInstance.allowErrorProps.bind(ie.defaultInstance);Ds=ie.serialize;ie.deserialize;wu=ie.stringify;ie.parse;ie.registerClass;ie.registerCustom;ie.registerSymbol;ie.allowErrorProps;xr=(e,t=!1)=>{let{json:a}=Ds(e);return JSON.stringify(a,null,t?2:void 0)},nn=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Vg=(e,t)=>e.queryHash.localeCompare(t.queryHash),ku=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Kg=(e,t)=>nn(e)===nn(t)?ku(e,t):nn(e)>nn(t)?1:-1,Cn={status:Kg,"query hash":Vg,"last updated":ku},sn=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Pu=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Gg=(e,t)=>sn(e)===sn(t)?Pu(e,t):sn(e)>sn(t)?1:-1,bn={status:Gg,"last updated":Pu},Es=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),wn=()=>{let[e,t]=N("dark");return na(()=>{let a=window.matchMedia("(prefers-color-scheme: dark)");t(a.matches?"dark":"light");let o=r=>{t(r.matches?"dark":"light")};a.addEventListener("change",o),X(()=>a.removeEventListener("change",o))}),e},Ma=(e,t,a)=>{if(t.length===0)return a;if(e instanceof Map){let o=new Map(e);if(t.length===1)return o.set(t[0],a),o;let[r,...n]=t;return o.set(r,Ma(o.get(r),n,a)),o}if(e instanceof Set){let o=Ma(Array.from(e),t,a);return new Set(o)}if(Array.isArray(e)){let o=[...e];if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=Ma(o[r],n,a),o}if(e instanceof Object){let o={...e};if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=Ma(o[r],n,a),o}return e},xo=(e,t)=>{if(e instanceof Map){let a=new Map(e);if(t.length===1)return a.delete(t[0]),a;let[o,...r]=t;return a.set(o,xo(a.get(o),r)),a}if(e instanceof Set){let a=xo(Array.from(e),t);return new Set(a)}if(Array.isArray(e)){let a=[...e];if(t.length===1)return a.filter((n,s)=>s.toString()!==t[0]);let[o,...r]=t;return a[o]=xo(a[o],r),a}if(e instanceof Object){let a={...e};if(t.length===1)return delete a[t[0]],a;let[o,...r]=t;return a[o]=xo(a[o],r),a}return e},Fs=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let o=document.createElement("style"),r=document.createTextNode("");o.appendChild(r),o.id="_goober",o.setAttribute("nonce",e),t?t.appendChild(o):document.head.appendChild(o)}});function Zg(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Jg(e,...t){return typeof e=="function"?e(...t):e}function eh(e,t,a,o){let r=e.length,n=t.length,s=0;if(!n){for(;s<r;s++)a(e[s]);return}if(!r){for(;s<n;s++)o(t[s]);return}for(;s<n&&t[s]===e[s];s++);let i,l;t=t.slice(s),e=e.slice(s);for(i of t)e.includes(i)||o(i);for(l of e)t.includes(l)||a(l)}function th(e){let[t,a]=N(),o=e?.throw?(f,p)=>{throw a(f instanceof Error?f:new Error(p)),f}:(f,p)=>{a(f instanceof Error?f:new Error(p))},r=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),n=e?.prefix?`${e.prefix}.`:"",s=new Map,i=new Proxy({},{get(f,p){let m=s.get(p);m||(m=N(void 0,{equals:!1}),s.set(p,m)),m[0]();let g=r.reduce((h,x)=>{if(h!==null||!x)return h;try{return x.getItem(`${n}${p}`)}catch(v){return o(v,`Error reading ${n}${p} from ${x.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,p,e.options):g}}),l=(f,p,m)=>{let g=e?.serializer?e.serializer(p,f,m??e.options):p,h=`${n}${f}`;r.forEach(v=>{try{v.getItem(h)!==g&&v.setItem(h,g)}catch(C){o(C,`Error setting ${n}${f} to ${g} in ${v.name}`)}});let x=s.get(f);x&&x[1]()},u=f=>r.forEach(p=>{try{p.removeItem(`${n}${f}`)}catch(m){o(m,`Error removing ${n}${f} from ${p.name}`)}}),d=()=>r.forEach(f=>{try{f.clear()}catch(p){o(p,`Error clearing ${f.name}`)}}),c=()=>{let f={},p=(m,g)=>{if(!f.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(f[m]=h)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let g;try{g=m.getAll()}catch(h){o(h,`Error getting all values from in ${m.name}`)}for(let h of g)p(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)f.hasOwnProperty(h)||p(h,m.getItem(h))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),f};return e?.sync!==!1&&na(()=>{let f=p=>{let m=!1;r.forEach(g=>{try{g!==p.storageArea&&p.key&&p.newValue!==g.getItem(p.key)&&(p.newValue?g.setItem(p.key,p.newValue):g.removeItem(p.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${p.key}=${p.newValue})`)}}),m&&p.key&&s.get(p.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),X(()=>globalThis.removeEventListener("storage",f))):(r.forEach(p=>p.addEventListener?.("storage",f)),X(()=>r.forEach(p=>p.removeEventListener?.("storage",f))))}),[i,l,{clear:d,error:t,remove:u,toJSON:c}]}function j(){return $e(Ar)}function Ke(){return $e(Rr)}function ch(e){return e.replace(dh,t=>kd[t])}function Tu(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:st.MATCHES,!a.accessors){let s=Du(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=gh(e,a.accessors),n={rankedValue:e,rank:st.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=Du(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=st.MATCHES?l=u:l>d&&(l=d),l=Math.min(l,d),l>=c&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=c,n.rankedValue=i.itemValue)}return n}function Du(e,t,a){return e=Eu(e,a),t=Eu(t,a),t.length>e.length?st.NO_MATCH:e===t?st.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?st.EQUAL:e.startsWith(t)?st.STARTS_WITH:e.includes(` ${t}`)?st.WORD_STARTS_WITH:e.includes(t)?st.CONTAINS:t.length===1?st.NO_MATCH:fh(e).includes(t)?st.ACRONYM:ph(e,t))}function fh(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function ph(e,t){let a=0,o=0;function r(l,u,d){for(let c=d,f=u.length;c<f;c++)if(u[c]===l)return a+=1,c+1;return-1}function n(l){let u=1/l,d=a/t.length;return st.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return st.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let d=t[l];if(o=r(d,e,o),!(o>-1))return st.NO_MATCH}let i=o-s;return n(i)}function Eu(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=ch(e)),e}function mh(e,t){let a=t;typeof t=="object"&&(a=t.accessor);let o=a(e);return o==null?[]:Array.isArray(o)?o:[String(o)]}function gh(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=hh(n),i=mh(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function hh(e){return typeof e=="function"?Fu:{...Fu,...e}}function ae(e){let t=this||{},a=e.call?e(t.p):e;return bh(a.unshift?a.raw?wh(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,yh(t.target),t.g,t.o,t.k)}function Md(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=Md(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function U(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=Md(e))&&(o&&(o+=" "),o+=t);return o}function Lh(e,t){let a=Le(e);if(Je){let c=a.slice();return()=>c}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=N([],{equals:!1}),[l]=Gi(),u=c=>{i(f=>(f.push.apply(f,c),f));for(let f of c)n.delete(f)},d=(c,f,p)=>c.splice(p,0,f);return k(c=>{let f=s(),p=e();if(p[gr],Le(l))return l(),c;if(f.length){let m=c.filter(g=>!f.includes(g));return f.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return Le(()=>{let m=new Set(p),g=p.slice(),h=[],x=[],v=[];for(let w of p)(r.has(w)?v:h).push(w);let C=!h.length;for(let w=0;w<c.length;w++){let S=c[w];m.has(S)||(n.has(S)||(x.push(S),n.add(S)),d(g,S,w)),C&&S!==g[w]&&(C=!1)}return!x.length&&C?c:(o({list:g,added:h,removed:x,unchanged:v,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function rt(...e){return Zg(e)}function Hs(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Hs(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=Hs(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function Ih(e,t=Bu,a=Bu){let o=k(e),r=k(()=>Hs(o(),Je?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function Sh(e){return k(()=>{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 Ad(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function kh(e,t,a,o){let{onBeforeEnter:r,onEnter:n,onAfterEnter:s}=t;r?.(a),a.classList.add(...e.enter),a.classList.add(...e.enterActive),queueMicrotask(()=>{if(!a.parentNode)return o?.();n?.(a,()=>i())}),Ad(()=>{a.classList.remove(...e.enter),a.classList.add(...e.enterTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.enterActive),a.classList.remove(...e.enterTo),s?.(a))}}function Ph(e,t,a,o){let{onBeforeExit:r,onExit:n,onAfterExit:s}=t;if(!a.parentNode)return o?.();r?.(a),a.classList.add(...e.exit),a.classList.add(...e.exitActive),n?.(a,()=>i()),Ad(()=>{a.classList.remove(...e.exit),a.classList.add(...e.exitTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(o?.(),a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.exitActive),a.classList.remove(...e.exitTo),s?.(a))}}function qu(e){for(let t of e)t.dispose()}function Mh(e,t,a,o={}){if(Je){let s=e(),i=[];if(s&&s.length)for(let l=0,u=s.length;l<u;l++)i.push(a(()=>s[l],()=>l));else o.fallback&&(i=[o.fallback()]);return()=>i}let r=new Map;return X(()=>qu(r.values())),()=>{let s=e()||[];return s[gr],Le(()=>{if(!s.length)return qu(r.values()),r.clear(),o.fallback?[$t(c=>(r.set(Os,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(Os);if(!r.size||l){l?.dispose(),r.delete(Os);for(let d=0;d<s.length;d++){let c=s[d],f=t(c,d);n(i,c,d,f)}return i}let u=new Set(r.keys());for(let d=0;d<s.length;d++){let c=s[d],f=t(c,d);u.delete(f);let p=r.get(f);p?(i[d]=p.mapped,p.setIndex?.(d),p.setItem(()=>c)):n(i,c,d,f)}for(let d of u)r.get(d)?.dispose(),r.delete(d);return i})};function n(s,i,l,u){$t(d=>{let[c,f]=N(i),p={setItem:f,dispose:d};if(a.length>1){let[m,g]=N(l);p.setIndex=g,p.mapped=a(c,m)}else p.mapped=a(c);r.set(u,p),s[l]=p.mapped})}}function kn(e){let{by:t}=e;return k(Mh(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Ah(e,t,a,o){return e.addEventListener(t,a,o),Yg(e.removeEventListener.bind(e,t,a,o))}function Rh(e,t,a,o){if(Je)return;let r=()=>{zs(R(e)).forEach(n=>{n&&zs(R(t)).forEach(s=>Ah(n,s,a,o))})};typeof e=="function"?W(r):G(r)}function Th(e,t){if(Je)return{observe:Mu,unobserve:Mu};let a=new ResizeObserver(e);return X(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function Rd(e,t,a){if(Je)return;let o=new WeakMap,{observe:r,unobserve:n}=Th(s=>{for(let i of s){let{contentRect:l,target:u}=i,d=Math.round(l.width),c=Math.round(l.height),f=o.get(u);(!f||f.width!==d||f.height!==c)&&(t(l,u,i),o.set(u,{width:d,height:c}))}},a);W(s=>{let i=Xg(zs(R(e)));return eh(i,s,r,n),i},[])}function Nu(e){let t={},a;for(;a=Dh.exec(e);)t[a[1]]=a[2];return t}function Bn(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Nu(e)}else typeof t=="string"&&(t=Nu(t));return{...e,...t}}function Eh(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function _s(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function Fh(e){return typeof e=="number"}function Lo(e){return Object.prototype.toString.call(e)==="[object String]"}function Oh(e){return typeof e=="function"}function Tr(e){return t=>`${e()}-${t}`}function vt(e,t){return e?e===t||e.contains(t):!1}function wr(e,t=!1){let{activeElement:a}=zt(e);if(!a?.nodeName)return null;if(Td(a)&&a.contentDocument)return wr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=zt(a).getElementById(o);if(r)return r}}return a}function Bh(e){return zt(e).defaultView||window}function zt(e){return e?e.ownerDocument||e:document}function Td(e){return e.tagName==="IFRAME"}function el(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function $n(){return el(/^Mac/i)}function $h(){return el(/^iPhone/i)}function qh(){return el(/^iPad/i)||$n()&&navigator.maxTouchPoints>1}function Nh(){return $h()||qh()}function zh(){return $n()||Nh()}function Re(e,t){return t&&(Oh(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Ve(e){return t=>{for(let a of e)Re(t,a)}}function Uh(e){return $n()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function et(e){if(e)if(Hh())e.focus({preventScroll:!0});else{let t=_h(e);e.focus(),Vh(t)}}function Hh(){if(Ln==null){Ln=!1;try{document.createElement("div").focus({get preventScroll(){return Ln=!0,!0}})}catch{}}return Ln}function _h(e){let t=e.parentNode,a=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&a.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&a.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),a}function Vh(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function Ed(e,t){let o=Array.from(e.querySelectorAll(tl)).filter(zu);return t&&zu(e)&&o.unshift(e),o.forEach((r,n)=>{if(Td(r)&&r.contentDocument){let s=r.contentDocument.body,i=Ed(s,!1);o.splice(n,1,...i)}}),o}function zu(e){return Fd(e)&&!Wh(e)}function Fd(e){return e.matches(tl)&&al(e)}function Wh(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function al(e,t){return e.nodeName!=="#comment"&&Qh(e)&&jh(e,t)&&(!e.parentElement||al(e.parentElement,e))}function Qh(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:a}=e.style,o=t!=="none"&&a!=="hidden"&&a!=="collapse";if(o){if(!e.ownerDocument.defaultView)return o;let{getComputedStyle:r}=e.ownerDocument.defaultView,{display:n,visibility:s}=r(e);o=n!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function jh(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Xh(e,t,a){let o=t?.tabbable?Gh:tl,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&al(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function Uu(e){for(;e&&!Zh(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Zh(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Jh(){}function Yh(e,t){let[a,o]=e,r=!1,n=t.length;for(let s=n,i=0,l=s-1;i<s;l=i++){let[u,d]=t[i],[c,f]=t[l],[,p]=t[l===0?s-1:l-1]||[0,0],m=(d-f)*(a-u)-(u-c)*(o-d);if(f<d){if(o>=f&&o<d){if(m===0)return!0;m>0&&(o===f?o>p&&(r=!r):r=!r)}}else if(d<f){if(o>d&&o<=f){if(m===0)return!0;m<0&&(o===f?o<p&&(r=!r):r=!r)}}else if(o==d&&(a>=c&&a<=u||a>=u&&a<=c))return!0}return r}function ue(e,t){return ee(e,t)}function _u(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=vr.get(a.target);o||(o=new Set,vr.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=vr.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),vr.delete(a.target)),vr.size===0)){for(let r of Hu)r();Hu.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function Vs(e,t){let a=Vu(e,t,"left"),o=Vu(e,t,"top"),r=t.offsetWidth,n=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,l=s+e.offsetWidth,u=i+e.offsetHeight;a<=s?s=a:a+r>l&&(s+=a+r-l),o<=i?i=o:o+n>u&&(i+=o+n-u),e.scrollLeft=s,e.scrollTop=i}function Vu(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[o];break}t=t.offsetParent}return r}function e0(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=Uu(e);for(;e&&r&&e!==a&&r!==a;)Vs(r,e),e=r,r=Uu(e)}else{let{left:r,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:i}=e.getBoundingClientRect();(Math.abs(r-s)>1||Math.abs(n-i)>1)&&e.scrollIntoView?.({block:"nearest"})}}}function Ct(e){return t=>(e(t),()=>e(void 0))}function qn(e,t){let[a,o]=N(Ku(t?.()));return W(()=>{o(e()?.tagName.toLowerCase()||Ku(t?.()))}),a}function Ku(e){return Lo(e)?e:void 0}function Te(e){let[t,a]=de(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return y(lu,ee(a,{get component(){return t.as}}))}function a0(e){let t=`form-control-${it()}`,a=ue({id:t},e),[o,r]=N(),[n,s]=N(),[i,l]=N(),[u,d]=N(),c=(g,h,x)=>{let v=x!=null||o()!=null;return[x,o(),v&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},f=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,p=k(()=>({"data-valid":R(a.validationState)==="valid"?"":void 0,"data-invalid":R(a.validationState)==="invalid"?"":void 0,"data-required":R(a.required)?"":void 0,"data-disabled":R(a.disabled)?"":void 0,"data-readonly":R(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>R(a.name)??R(a.id),dataset:p,validationState:()=>R(a.validationState),isRequired:()=>R(a.required),isDisabled:()=>R(a.disabled),isReadOnly:()=>R(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:f,generateId:Tr(()=>R(a.id)),registerLabel:Ct(r),registerField:Ct(s),registerDescription:Ct(l),registerErrorMessage:Ct(d)}}}function Dr(){let e=$e(Bd);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function $d(e){let t=Dr(),a=ue({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Te,ee({as:"div"},()=>t.dataset(),a))}function qd(e){let t=Dr(),a=ue({id:t.generateId("error-message")},e),[o,r]=de(a,["forceMount"]),n=()=>t.validationState()==="invalid";return W(()=>{n()&&X(t.registerErrorMessage(r.id))}),y(Q,{get when(){return o.forceMount||n()},get children(){return y(Te,ee({as:"div"},()=>t.dataset(),r))}})}function o0(e){let t,a=Dr(),o=ue({id:a.generateId("label")},e),[r,n]=de(o,["ref"]),s=qn(()=>t,()=>"label");return W(()=>X(a.registerLabel(n.id))),y(Te,ee({as:"label",ref(i){let l=rt(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function r0(e,t){W(qt(e,a=>{if(a==null)return;let o=n0(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),X(()=>{o.removeEventListener("reset",t)}))}))}function n0(e){return s0(e)?e.form:e.closest("form")}function s0(e){return e.matches("textarea, input, select, button")}function Er(e){let[t,a]=N(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{Le(()=>{let i=Jg(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function Nd(e){let[t,a]=Er(e);return[()=>t()??!1,a]}function l0(e){let[t,a]=Er(e);return[()=>t()??[],a]}function i0(e={}){let[t,a]=Nd({value:()=>R(e.isSelected),defaultValue:()=>!!R(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!R(e.isReadOnly)&&!R(e.isDisabled)&&a(n)},toggle:()=>{!R(e.isReadOnly)&&!R(e.isDisabled)&&a(!t())}}}function Ud(){return $e(zd)}function d0(){let e=Ud();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Hd(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function c0(e,t){let a=t.ref();if(!a)return-1;let o=e.length;if(!o)return-1;for(;o--;){let r=e[o]?.ref();if(r&&Hd(r,a))return o+1}return 0}function f0(e){let t=e.map((o,r)=>[r,o]),a=!1;return t.sort(([o,r],[n,s])=>{let i=r.ref(),l=s.ref();return i===l||!i||!l?0:Hd(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function _d(e,t){let a=f0(e);e!==a&&t(a)}function p0(e){let t=e[0],a=e[e.length-1]?.ref(),o=t?.ref()?.parentElement;for(;o;){if(a&&o.contains(a))return o;o=o.parentElement}return zt(o).body}function m0(e,t){W(()=>{let a=setTimeout(()=>{_d(e(),t)});X(()=>clearTimeout(a))})}function g0(e,t){if(typeof IntersectionObserver!="function"){m0(e,t);return}let a=[];W(()=>{let o=()=>{let s=!!a.length;a=e(),s&&_d(e(),t)},r=p0(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}X(()=>n.disconnect())})}function h0(e={}){let[t,a]=l0({value:()=>R(e.items),onChange:n=>e.onItemsChange?.(n)});g0(t,a);let o=n=>(a(s=>{let i=c0(s,n);return Eh(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>y(zd.Provider,{value:{registerItem:o},get children(){return n.children}})}}function x0(e){let t=d0(),a=ue({shouldRegisterItem:!0},e);W(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());X(o)})}function Vd(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=Lo(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=Lo(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(Lo(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return Lo(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(Lo(l)||Fh(l)){o.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:s(l),level:a,index:t}),t++;continue}if(i(l)!=null){o.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:a,index:t}),t++;let u=i(l)??[];if(u.length>0){let d=Vd({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...d),t+=d.length}}else o.push({type:"item",rawValue:l,key:r(l),textValue:n(l),disabled:s(l),level:a,index:t}),t++}return o}function y0(e,t=[]){return k(()=>{let a=Vd({dataSource:R(e.dataSource),getKey:R(e.getKey),getTextValue:R(e.getTextValue),getDisabled:R(e.getDisabled),getSectionChildren:R(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function b0(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return v0.has(a)}let t=e.split("-")[0];return C0.has(t)}function w0(e){return b0(e)?"rtl":"ltr"}function Kd(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:w0(e)}}function Gu(){Ks=Kd();for(let e of Lr)e(Ks)}function L0(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(Ks),o=k(()=>Je?e:t());return na(()=>{Lr.size===0&&window.addEventListener("languagechange",Gu),Lr.add(a),X(()=>{Lr.delete(a),Lr.size===0&&window.removeEventListener("languagechange",Gu)})}),{locale:()=>o().locale,direction:()=>o().direction}}function Ba(){let e=L0();return $e(I0)||e}function S0(e){let{locale:t}=Ba(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return Bs.has(o)&&(r=Bs.get(o)),r||(r=new Intl.Collator(t(),e),Bs.set(o,r)),r})}function k0(e){let[t,a]=Er(e);return[()=>t()??new la,a]}function Wd(e){return zh()?e.altKey:e.ctrlKey}function Io(e){return $n()?e.metaKey:e.ctrlKey}function Wu(e){return new la(e)}function P0(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function M0(e){let t=ue({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let g=R(t.selectedKeys);return g!=null?Wu(g):g}),i=k(()=>{let g=R(t.defaultSelectedKeys);return g!=null?Wu(g):new la}),[l,u]=k0({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=N(R(t.selectionBehavior)),f=()=>R(t.selectionMode),p=()=>R(t.disallowEmptySelection)??!1,m=g=>{(R(t.allowDuplicateSelectionEvents)||!P0(g,l()))&&u(g)};return W(()=>{let g=l();R(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),W(()=>{c(R(t.selectionBehavior)??"toggle")}),{selectionMode:f,disallowEmptySelection:p,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function A0(e){let[t,a]=N(""),[o,r]=N(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(R(e.isDisabled))return;let i=R(e.keyboardDelegate),l=R(e.selectionManager);if(!i.getKeyForSearch)return;let u=R0(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=a(f=>f+u),c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d);c==null&&T0(d)&&(d=d[0],c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d)),c!=null&&(l.setFocusedKey(c),e.onTypeSelect?.(c)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function R0(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function T0(e){return e.split("").every(t=>t===e[0])}function D0(e,t,a){let r=ee({selectOnFocus:()=>R(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=Ba(),i={top:0,left:0};Rh(()=>R(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=A0({isDisabled:()=>R(r.disallowTypeAhead),keyboardDelegate:()=>R(r.keyboardDelegate),selectionManager:()=>R(r.selectionManager)}),u=()=>R(r.orientation)??"vertical",d=h=>{Re(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let x=t();if(!x?.contains(h.target))return;let v=R(r.selectionManager),C=R(r.selectOnFocus),w=T=>{T!=null&&(v.setFocusedKey(T),h.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):C&&!Wd(h)&&v.replaceSelection(T))},S=R(r.keyboardDelegate),F=R(r.shouldFocusWrap),D=v.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(S.getKeyBelow){h.preventDefault();let T;D!=null?T=S.getKeyBelow(D):T=S.getFirstKey?.(),T==null&&F&&(T=S.getFirstKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(S.getKeyAbove){h.preventDefault();let T;D!=null?T=S.getKeyAbove(D):T=S.getLastKey?.(),T==null&&F&&(T=S.getLastKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(S.getKeyLeftOf){h.preventDefault();let T=s()==="rtl",L;D!=null?L=S.getKeyLeftOf(D):L=T?S.getFirstKey?.():S.getLastKey?.(),w(L)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(S.getKeyRightOf){h.preventDefault();let T=s()==="rtl",L;D!=null?L=S.getKeyRightOf(D):L=T?S.getLastKey?.():S.getFirstKey?.(),w(L)}break}case"Home":if(S.getFirstKey){h.preventDefault();let T=S.getFirstKey(D,Io(h));T!=null&&(v.setFocusedKey(T),Io(h)&&h.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):C&&v.replaceSelection(T))}break;case"End":if(S.getLastKey){h.preventDefault();let T=S.getLastKey(D,Io(h));T!=null&&(v.setFocusedKey(T),Io(h)&&h.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):C&&v.replaceSelection(T))}break;case"PageDown":if(S.getKeyPageBelow&&D!=null){h.preventDefault();let T=S.getKeyPageBelow(D);w(T)}break;case"PageUp":if(S.getKeyPageAbove&&D!=null){h.preventDefault();let T=S.getKeyPageAbove(D);w(T)}break;case"a":Io(h)&&v.selectionMode()==="multiple"&&R(r.disallowSelectAll)!==!0&&(h.preventDefault(),v.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),R(r.disallowEmptySelection)||v.clearSelection());break;case"Tab":if(!R(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let T=Xh(x,{tabbable:!0}),L,I;do I=T.lastChild(),I&&(L=I);while(I);L&&!L.contains(document.activeElement)&&et(L)}break}}},c=h=>{let x=R(r.selectionManager),v=R(r.keyboardDelegate),C=R(r.selectOnFocus);if(x.isFocused()){h.currentTarget.contains(h.target)||x.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=F=>{F!=null&&(x.setFocusedKey(F),C&&x.replaceSelection(F))},S=h.relatedTarget;S&&h.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??v.getLastKey?.()):w(x.firstSelectedKey()??v.getFirstKey?.())}else if(!R(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let S=w.querySelector(`[data-key="${x.focusedKey()}"]`);S&&(et(S),Vs(w,S))}}}},f=h=>{let x=R(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},p=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=R(r.autoFocus);if(!h)return;let x=R(r.selectionManager),v=R(r.keyboardDelegate),C;h==="first"&&(C=v.getFirstKey?.()),h==="last"&&(C=v.getLastKey?.());let w=x.selectedKeys();w.size&&(C=w.values().next().value),x.setFocused(!0),x.setFocusedKey(C);let S=t();S&&C==null&&!R(r.shouldUseVirtualFocus)&&et(S)};return na(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),W(qt([n,()=>R(r.isVirtualized),()=>R(r.selectionManager).focusedKey()],h=>{let[x,v,C]=h;if(v)C&&r.scrollToKey?.(C);else if(C&&x){let w=x.querySelector(`[data-key="${C}"]`);w&&Vs(x,w)}})),{tabIndex:k(()=>{if(!R(r.shouldUseVirtualFocus))return R(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:p,onFocusIn:c,onFocusOut:f}}function Qd(e,t){let a=()=>R(e.selectionManager),o=()=>R(e.key),r=()=>R(e.shouldUseVirtualFocus),n=v=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):v?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||Io(v)||"pointerType"in v&&v.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>R(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=v=>{l()&&(u=v.pointerType,v.pointerType==="mouse"&&v.button===0&&!R(e.shouldSelectOnPressUp)&&n(v))},c=v=>{l()&&v.pointerType==="mouse"&&v.button===0&&R(e.shouldSelectOnPressUp)&&R(e.allowsDifferentPressOrigin)&&n(v)},f=v=>{l()&&(R(e.shouldSelectOnPressUp)&&!R(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(v)},p=v=>{!l()||!["Enter"," "].includes(v.key)||(Wd(v)?a().toggleSelection(o()):n(v))},m=v=>{i()&&v.preventDefault()},g=v=>{let C=t();r()||i()||!C||v.target===C&&a().setFocusedKey(o())},h=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>R(e.virtualized)?void 0:o());return W(qt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([v,C,w,S,F])=>{v&&C===S&&F&&!w&&document.activeElement!==v&&(e.focus?e.focus():et(v))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:f,onKeyDown:p,onMouseDown:m,onFocus:g}}function F0(e){let t=M0(e),o=y0({dataSource:()=>R(e.dataSource),getKey:()=>R(e.getKey),getTextValue:()=>R(e.getTextValue),getDisabled:()=>R(e.getDisabled),getSectionChildren:()=>R(e.getSectionChildren),factory:n=>e.filter?new Qu(e.filter(n)):new Qu(n)},[()=>e.filter]),r=new E0(o,t);return cn(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Sr(e){return ua.findIndex(t=>t.node===e)}function $0(e){return ua[Sr(e)]}function q0(e){return ua[ua.length-1].node===e}function Zd(){return ua.filter(e=>e.isPointerBlocking)}function N0(){return[...Zd()].slice(-1)[0]}function ol(){return Zd().length>0}function Jd(e){let t=Sr(N0()?.node);return Sr(e)<t}function z0(e){ua.push(e)}function U0(e){let t=Sr(e);t<0||ua.splice(t,1)}function H0(){for(let{node:e}of ua)e.style.pointerEvents=Jd(e)?"none":"auto"}function _0(e){if(ol()&&!Gs){let t=zt(e);Xd=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Gs=!0}}function V0(e){if(ol())return;let t=zt(e);t.body.style.pointerEvents=Xd,t.body.style.length===0&&t.body.removeAttribute("style"),Gs=!1}function W0(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?G0.indexOf(e.type)!==-1:!1}function rl(e){let t,a=ue({type:"button"},e),[o,r]=de(a,["ref","type","disabled"]),n=qn(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:W0({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return y(Te,ee({as:"button",ref(u){let d=rt(c=>t=c,o.ref);typeof d=="function"&&d(u)},get type(){return s()||i()?o.type:void 0},get role(){return!s()&&!l()?"button":void 0},get tabIndex(){return!s()&&!l()&&!o.disabled?0:void 0},get disabled(){return s()||i()?o.disabled:void 0},get"aria-disabled"(){return!s()&&!i()&&o.disabled?!0:void 0},get"data-disabled"(){return o.disabled?"":void 0}},r))}function Ws(e,t,a){return ct(e,Nt(t,a))}function oo(e,t){return typeof e=="function"?e(t):e}function Fa(e){return e.split("-")[0]}function Po(e){return e.split("-")[1]}function Yd(e){return e==="x"?"y":"x"}function nl(e){return e==="y"?"height":"width"}function to(e){return["top","bottom"].includes(Fa(e))?"y":"x"}function sl(e){return Yd(to(e))}function J0(e,t,a){a===void 0&&(a=!1);let o=Po(e),r=sl(e),n=nl(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=An(s)),[s,An(s)]}function Y0(e){let t=An(e);return[Qs(e),t,Qs(t)]}function Qs(e){return e.replace(/start|end/g,t=>Z0[t])}function ex(e,t,a){let o=["left","right"],r=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return a?t?r:o:t?o:r;case"left":case"right":return t?n:s;default:return[]}}function tx(e,t,a,o){let r=Po(e),n=ex(Fa(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Qs)))),n}function An(e){return e.replace(/left|right|bottom|top/g,t=>X0[t])}function ax(e){return{top:0,right:0,bottom:0,left:0,...e}}function ec(e){return typeof e!="number"?ax(e):{top:e,right:e,bottom:e,left:e}}function Rn(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function ju(e,t,a){let{reference:o,floating:r}=e,n=to(t),s=sl(t),i=nl(s),l=Fa(t),u=n==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,f=o[i]/2-r[i]/2,p;switch(l){case"top":p={x:d,y:o.y-r.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:c};break;case"left":p={x:o.x-r.width,y:c};break;default:p={x:o.x,y:o.y}}switch(Po(t)){case"start":p[s]-=f*(a&&u?-1:1);break;case"end":p[s]+=f*(a&&u?-1:1);break}return p}async function kr(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=oo(t,e),m=ec(p),h=i[f?c==="floating"?"reference":"floating":c],x=Rn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(h)))==null||a?h:h.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),v=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),w=await(n.isElement==null?void 0:n.isElement(C))?await(n.getScale==null?void 0:n.getScale(C))||{x:1,y:1}:{x:1,y:1},S=Rn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:C,strategy:l}):v);return{top:(x.top-S.top+m.top)/w.y,bottom:(S.bottom-x.bottom+m.bottom)/w.y,left:(x.left-S.left+m.left)/w.x,right:(S.right-x.right+m.right)/w.x}}function Xu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zu(e){return j0.some(t=>e[t]>=0)}async function lx(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Fa(a),i=Po(a),l=to(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=oo(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return i&&typeof m=="number"&&(p=i==="end"?m*-1:m),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}function Mo(e){return tc(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function da(e){var t;return(t=(tc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tc(e){return e instanceof Node||e instanceof ft(e).Node}function At(e){return e instanceof Element||e instanceof ft(e).Element}function Ut(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function Ju(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Fr(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function cx(e){return["table","td","th"].includes(Mo(e))}function zn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ll(e){let t=il(),a=At(e)?Rt(e):e;return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(a.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(a.contain||"").includes(o))}function fx(e){let t=Oa(e);for(;Ut(t)&&!ko(t);){if(ll(t))return t;if(zn(t))return null;t=Oa(t)}return null}function il(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ko(e){return["html","body","#document"].includes(Mo(e))}function Rt(e){return ft(e).getComputedStyle(e)}function Un(e){return At(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oa(e){if(Mo(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ju(e)&&e.host||da(e);return Ju(t)?t.host:t}function ac(e){let t=Oa(e);return ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ut(t)&&Fr(t)?t:ac(t)}function Pr(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=ac(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=ft(r);return n?t.concat(s,s.visualViewport||[],Fr(r)?r:[],s.frameElement&&a?Pr(s.frameElement):[]):t.concat(r,Pr(r,[],a))}function oc(e){let t=Rt(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Ut(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Mn(a)!==n||Mn(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function ul(e){return At(e)?e:e.contextElement}function So(e){let t=ul(e);if(!Ut(t))return Ea(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=oc(t),s=(n?Mn(a.width):a.width)/o,i=(n?Mn(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function rc(e){let t=ft(e);return!il()||!t.visualViewport?px:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mx(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==ft(e)?!1:t}function ao(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=ul(e),s=Ea(1);t&&(o?At(o)&&(s=So(o)):s=So(e));let i=mx(n,a,o)?rc(n):Ea(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,d=r.width/s.x,c=r.height/s.y;if(n){let f=ft(n),p=o&&At(o)?ft(o):o,m=f,g=m.frameElement;for(;g&&o&&p!==m;){let h=So(g),x=g.getBoundingClientRect(),v=Rt(g),C=x.left+(g.clientLeft+parseFloat(v.paddingLeft))*h.x,w=x.top+(g.clientTop+parseFloat(v.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,c*=h.y,l+=C,u+=w,m=ft(g),g=m.frameElement}}return Rn({width:d,height:c,x:l,y:u})}function gx(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=da(o),i=t?zn(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Ea(1),d=Ea(0),c=Ut(o);if((c||!c&&!n)&&((Mo(o)!=="body"||Fr(s))&&(l=Un(o)),Ut(o))){let f=ao(o);u=So(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+d.x,y:a.y*u.y-l.scrollTop*u.y+d.y}}function hx(e){return Array.from(e.getClientRects())}function nc(e){return ao(da(e)).left+Un(e).scrollLeft}function xx(e){let t=da(e),a=Un(e),o=e.ownerDocument.body,r=ct(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=ct(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+nc(e),i=-a.scrollTop;return Rt(o).direction==="rtl"&&(s+=ct(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function yx(e,t){let a=ft(e),o=da(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=il();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function vx(e,t){let a=ao(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Ut(e)?So(e):Ea(1),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=r*n.x,u=o*n.y;return{width:s,height:i,x:l,y:u}}function Yu(e,t,a){let o;if(t==="viewport")o=yx(e,a);else if(t==="document")o=xx(da(e));else if(At(t))o=vx(t,a);else{let r=rc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Rn(o)}function sc(e,t){let a=Oa(e);return a===t||!At(a)||ko(a)?!1:Rt(a).position==="fixed"||sc(a,t)}function Cx(e,t){let a=t.get(e);if(a)return a;let o=Pr(e,[],!1).filter(i=>At(i)&&Mo(i)!=="body"),r=null,n=Rt(e).position==="fixed",s=n?Oa(e):e;for(;At(s)&&!ko(s);){let i=Rt(s),l=ll(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Fr(s)&&!l&&sc(e,s))?o=o.filter(d=>d!==s):r=i,s=Oa(s)}return t.set(e,o),o}function bx(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?zn(t)?[]:Cx(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=Yu(t,d,r);return u.top=ct(c.top,u.top),u.right=Nt(c.right,u.right),u.bottom=Nt(c.bottom,u.bottom),u.left=ct(c.left,u.left),u},Yu(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function wx(e){let{width:t,height:a}=oc(e);return{width:t,height:a}}function Lx(e,t,a){let o=Ut(t),r=da(t),n=a==="fixed",s=ao(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Ea(0);if(o||!o&&!n)if((Mo(t)!=="body"||Fr(r))&&(i=Un(t)),o){let c=ao(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=nc(r));let u=s.left+i.scrollLeft-l.x,d=s.top+i.scrollTop-l.y;return{x:u,y:d,width:s.width,height:s.height}}function $s(e){return Rt(e).position==="static"}function ed(e,t){return!Ut(e)||Rt(e).position==="fixed"?null:t?t(e):e.offsetParent}function lc(e,t){let a=ft(e);if(zn(e))return a;if(!Ut(e)){let r=Oa(e);for(;r&&!ko(r);){if(At(r)&&!$s(r))return r;r=Oa(r)}return a}let o=ed(e,t);for(;o&&cx(o)&&$s(o);)o=ed(o,t);return o&&ko(o)&&$s(o)&&!ll(o)?a:o||fx(e)||a}function Sx(e){return Rt(e).direction==="rtl"}function kx(e,t){let a=null,o,r=da(e);function n(){var i;clearTimeout(o),(i=a)==null||i.disconnect(),a=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),n();let{left:u,top:d,width:c,height:f}=e.getBoundingClientRect();if(i||t(),!c||!f)return;let p=In(d),m=In(r.clientWidth-(u+c)),g=In(r.clientHeight-(d+f)),h=In(u),v={rootMargin:-p+"px "+-m+"px "+-g+"px "+-h+"px",threshold:ct(0,Nt(1,l))||1},C=!0;function w(S){let F=S[0].intersectionRatio;if(F!==l){if(!C)return s();F?s(!1,F):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{a=new IntersectionObserver(w,{...v,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,v)}a.observe(e)}return s(!0),n}function Px(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=ul(e),d=r||n?[...u?Pr(u):[],...Pr(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?kx(u,a):null,f=-1,p=null;s&&(p=new ResizeObserver(x=>{let[v]=x;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),a()}),u&&!l&&p.observe(u),p.observe(t));let m,g=l?ao(e):null;l&&h();function h(){let x=ao(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&a(),g=x,m=requestAnimationFrame(h)}return a(),()=>{var x;d.forEach(v=>{r&&v.removeEventListener("scroll",a),n&&v.removeEventListener("resize",a)}),c?.(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(m)}}function cl(){let e=$e(dl);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function fl(e){let t=cl(),a=ue({size:js},e),[o,r]=de(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=$x(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",d=()=>Number.parseInt(u())*2*(js/o.size),c=()=>`rotate(${Bx[n()]} ${td} ${td}) translate(0 2)`;return y(Te,ee({as:"div",ref(f){let p=rt(t.setArrowRef,o.ref);typeof p=="function"&&p(f)},"aria-hidden":"true",get style(){return Bn({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":d()},o.style)}},r,{get children(){let f=Ox(),p=f.firstChild;return G(()=>E(p,"transform",c())),f}}))}function $x(e){let[t,a]=N();return W(()=>{let o=e();o&&a(Bh(o).getComputedStyle(o))}),t}function qx(e){let t=cl(),[a,o]=de(e,["ref","style"]);return y(Te,ee({as:"div",ref(r){let n=rt(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return Bn({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function ad(e){let{x:t=0,y:a=0,width:o=0,height:r=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,a,o,r);let n={x:t,y:a,width:o,height:r,top:a,right:t+o,bottom:a+r,left:t};return{...n,toJSON:()=>n}}function Nx(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?ad(o):e?e.getBoundingClientRect():ad()}}}function zx(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Hx(e,t){let[a,o]=e.split("-"),r=Ux[a];return o?a==="left"||a==="right"?`${r} ${o==="start"?"top":"bottom"}`:o==="start"?`${r} ${t==="rtl"?"right":"left"}`:`${r} ${t==="rtl"?"left":"right"}`:`${r} center`}function _x(e){let t=ue({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),[a,o]=N(),[r,n]=N(),[s,i]=N(t.placement),l=()=>Nx(t.anchorRef?.(),t.getAnchorRect),{direction:u}=Ba();async function d(){let f=l(),p=a(),m=r();if(!f||!p)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;p.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();let x=[Mx(({placement:F})=>{let D=!!F.split("-")[1];return{mainAxis:h,crossAxis:D?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let F=typeof t.flip=="string"?t.flip.split(" "):void 0;if(F!==void 0&&!F.every(zx))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(Rx({padding:t.overflowPadding,fallbackPlacements:F}))}(t.slide||t.overlap)&&x.push(Ax({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(Tx({padding:t.overflowPadding,apply({availableWidth:F,availableHeight:D,rects:T}){let L=Math.round(T.reference.width);F=Math.floor(F),D=Math.floor(D),p.style.setProperty("--kb-popper-anchor-width",`${L}px`),p.style.setProperty("--kb-popper-content-available-width",`${F}px`),p.style.setProperty("--kb-popper-content-available-height",`${D}px`),t.sameWidth&&(p.style.width=`${L}px`),t.fitViewport&&(p.style.maxWidth=`${F}px`,p.style.maxHeight=`${D}px`)}})),t.hideWhenDetached&&x.push(Dx({padding:t.detachedPadding})),m&&x.push(Ex({element:m,padding:t.arrowPadding}));let v=await Fx(f,p,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...ic,isRTL:()=>u()==="rtl"}});if(i(v.placement),t.onCurrentPlacementChange?.(v.placement),!p)return;p.style.setProperty("--kb-popper-content-transform-origin",Hx(v.placement,u()));let C=Math.round(v.x),w=Math.round(v.y),S;if(t.hideWhenDetached&&(S=v.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(p.style,{top:"0",left:"0",transform:`translate3d(${C}px, ${w}px, 0)`,visibility:S}),m&&v.middlewareData.arrow){let{x:F,y:D}=v.middlewareData.arrow,T=v.placement.split("-")[0];Object.assign(m.style,{left:F!=null?`${F}px`:"",top:D!=null?`${D}px`:"",[T]:"100%"})}}W(()=>{let f=l(),p=a();if(!f||!p)return;let m=Px(f,p,d,{elementResize:typeof ResizeObserver=="function"});X(m)}),W(()=>{let f=a(),p=t.contentRef?.();!f||!p||queueMicrotask(()=>{f.style.zIndex=getComputedStyle(p).zIndex})});let c={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return y(dl.Provider,{value:c,get children(){return t.children}})}function Vx(e){let t=a=>{a.key===Ys.Escape&&e.onEscapeKeyDown?.(a)};W(()=>{if(Je||R(e.isDisabled))return;let a=e.ownerDocument?.()??zt();a.addEventListener("keydown",t),X(()=>{a.removeEventListener("keydown",t)})})}function Kx(e,t){let a,o=Jh,r=()=>zt(t()),n=c=>e.onPointerDownOutside?.(c),s=c=>e.onFocusOutside?.(c),i=c=>e.onInteractOutside?.(c),l=c=>{let f=c.target;return!(f instanceof HTMLElement)||f.closest(`[${Pn}]`)||!vt(r(),f)||vt(t(),f)?!1:!e.shouldExcludeElement?.(f)},u=c=>{function f(){let p=t(),m=c.target;if(!p||!m||!l(c))return;let g=Ve([n,i]);m.addEventListener(od,g,{once:!0});let h=new CustomEvent(od,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||Uh(c)&&c.button===0}});m.dispatchEvent(h)}c.pointerType==="touch"?(r().removeEventListener("click",f),o=f,r().addEventListener("click",f,{once:!0})):f()},d=c=>{let f=t(),p=c.target;if(!f||!p||!l(c))return;let m=Ve([s,i]);p.addEventListener(rd,m,{once:!0});let g=new CustomEvent(rd,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});p.dispatchEvent(g)};W(()=>{Je||R(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",d,!0),X(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",d,!0)}))})}function Gx(){return $e(dc)}function Wx(e){let t,a=Gx(),[o,r]=de(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=c=>{n.add(c);let f=a?.registerNestedLayer(c);return()=>{n.delete(c),f?.()}};Kx({shouldExcludeElement:c=>t?o.excludedElements?.some(f=>vt(f(),c))||[...n].some(f=>vt(f,c)):!1,onPointerDownOutside:c=>{!t||ut.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!ut.isTopMostLayer(t)||(o.onPointerDownOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.())},onFocusOutside:c=>{o.onFocusOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.()}},()=>t),Vx({ownerDocument:()=>zt(t),onEscapeKeyDown:c=>{!t||!ut.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),na(()=>{if(!t)return;ut.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let c=a?.registerNestedLayer(t);ut.assignPointerEventToLayers(),ut.disableBodyPointerEvents(t),X(()=>{t&&(ut.removeLayer(t),c?.(),ut.assignPointerEventToLayers(),ut.restoreBodyPointerEvents(t))})}),W(qt([()=>t,()=>o.disableOutsidePointerEvents],([c,f])=>{if(!c)return;let p=ut.find(c);p&&p.isPointerBlocking!==f&&(p.isPointerBlocking=f,ut.assignPointerEventToLayers()),f&&ut.disableBodyPointerEvents(c),X(()=>{ut.restoreBodyPointerEvents(c)})},{defer:!0}));let d={registerNestedLayer:s};return y(dc.Provider,{value:d,get children(){return y(Te,ee({as:"div",ref(c){let f=rt(p=>t=p,o.ref);typeof f=="function"&&f(c)}},r))}})}function cc(e={}){let[t,a]=Nd({value:()=>R(e.open),defaultValue:()=>!!R(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),o=()=>{a(!0)},r=()=>{a(!1)};return{isOpen:t,setIsOpen:a,open:o,close:r,toggle:()=>{t()?r():o()}}}function pc(){let e=$e(fc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Or(){let e=$e(mc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function gc(e){let t=Dr(),a=pc(),o=`${t.generateId("item")}-${it()}`,r=ue({id:o},e),[n,s]=de(r,["value","disabled","onPointerDown"]),[i,l]=N(),[u,d]=N(),[c,f]=N(),[p,m]=N(),[g,h]=N(!1),x=k(()=>a.isSelectedValue(n.value)),v=k(()=>n.disabled||t.isDisabled()||!1),C=F=>{Re(F,n.onPointerDown),g()&&F.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":v()?"":void 0,"data-checked":x()?"":void 0})),S={value:()=>n.value,dataset:w,isSelected:x,isDisabled:v,inputId:i,labelId:u,descriptionId:c,inputRef:p,select:()=>a.setSelectedValue(n.value),generateId:Tr(()=>s.id),registerInput:Ct(l),registerLabel:Ct(d),registerDescription:Ct(f),setIsFocused:h,setInputRef:m};return y(mc.Provider,{value:S,get children(){return y(Te,ee({as:"div",role:"group",onPointerDown:C},w,s))}})}function hc(e){let t=Or(),a=ue({id:t.generateId("control")},e),[o,r]=de(a,["onClick","onKeyDown"]);return y(Te,ee({as:"div",onClick:i=>{Re(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Re(i,o.onKeyDown),i.key===Ys.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function xc(e){let t=Or(),a=ue({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Te,ee({as:"div"},()=>t.dataset(),a))}function yc(e){let t=Or(),a=ue({id:t.generateId("indicator")},e),[o,r]=de(a,["ref","forceMount"]),[n,s]=N(),{present:i}=jd({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return y(Q,{get when(){return i()},get children(){return y(Te,ee({as:"div",ref(l){let u=rt(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function vc(e){let t=Dr(),a=pc(),o=Or(),r=ue({id:o.generateId("input")},e),[n,s]=de(r,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),i=()=>[n["aria-labelledby"],o.labelId(),n["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[n["aria-describedby"],o.descriptionId(),a.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[u,d]=N(!1),c=m=>{if(Re(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}d(!1)},f=m=>{Re(m,n.onFocus),o.setIsFocused(!0)},p=m=>{Re(m,n.onBlur),o.setIsFocused(!1)};return W(qt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;d(!0);let g=o.inputRef();g?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),g?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),W(()=>X(o.registerInput(s.id))),y(Te,ee({as:"input",ref(m){let g=rt(o.setInputRef,n.ref);typeof g=="function"&&g(m)},type:"radio",get name(){return t.name()},get value(){return o.value()},get checked(){return o.isSelected()},get required(){return t.isRequired()},get disabled(){return o.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return Bn({...Od},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:f,onBlur:p},()=>o.dataset(),s))}function Cc(e){let t=Or(),a=ue({id:t.generateId("label")},e);return W(()=>X(t.registerLabel(a.id))),y(Te,ee({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function bc(e){return y(o0,ee({as:"span"},e))}function wc(e){let t,a=`radiogroup-${it()}`,o=ue({id:a,orientation:"vertical"},e),[r,n,s]=de(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],t0),[i,l]=Er({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=a0(n);r0(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(R(n.id),s["aria-label"],r["aria-labelledby"]),c=()=>u.getAriaDescribedBy(r["aria-describedby"]),f=m=>m===i(),p={ariaDescribedBy:c,isSelectedValue:f,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=f(h.value)}}};return y(Bd.Provider,{value:u,get children(){return y(fc.Provider,{value:p,get children(){return y(Te,ee({as:"div",ref(m){let g=rt(h=>t=h,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return R(n.id)},get"aria-invalid"(){return u.validationState()==="invalid"||void 0},get"aria-required"(){return u.isRequired()||void 0},get"aria-disabled"(){return u.isDisabled()||void 0},get"aria-readonly"(){return u.isReadOnly()||void 0},get"aria-orientation"(){return r.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function Xx(e,t,a){let o=S0({usage:"search",sensitivity:"base"}),r=k(()=>{let n=R(e.keyboardDelegate);return n||new jx(e.collection,t,o)});return D0({selectionManager:()=>R(e.selectionManager),keyboardDelegate:r,autoFocus:()=>R(e.autoFocus),deferAutoFocus:()=>R(e.deferAutoFocus),shouldFocusWrap:()=>R(e.shouldFocusWrap),disallowEmptySelection:()=>R(e.disallowEmptySelection),selectOnFocus:()=>R(e.selectOnFocus),disallowTypeAhead:()=>R(e.disallowTypeAhead),shouldUseVirtualFocus:()=>R(e.shouldUseVirtualFocus),allowsTabNavigation:()=>R(e.allowsTabNavigation),isVirtualized:()=>R(e.isVirtualized),scrollToKey:n=>R(e.scrollToKey)?.(n),orientation:()=>R(e.orientation)},t)}function Zx(e,t){let[a,o]=N(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>zt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,Od),m},d=()=>{let m=t();return m?Ed(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},c=()=>{let m=d();return m.length>0?m[0]:null},f=()=>{let m=d();return m.length>0?m[m.length-1]:null},p=()=>{let m=t();if(!m)return!1;let g=wr(m);return!g||vt(m,g)?!1:Fd(g)};W(()=>{if(Je)return;let m=t();if(!m)return;sd.add(r);let g=wr(m);if(!vt(m,g)){let x=new CustomEvent(qs,nd);m.addEventListener(qs,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{et(c()),wr(m)===g&&et(m)},0)}X(()=>{m.removeEventListener(qs,s),setTimeout(()=>{let x=new CustomEvent(Ns,nd);p()&&x.preventDefault(),m.addEventListener(Ns,i),m.dispatchEvent(x),x.defaultPrevented||et(g??l().body),m.removeEventListener(Ns,i),sd.remove(r)},0)})}),W(()=>{if(Je)return;let m=t();if(!m||!R(e.trapFocus)||a())return;let g=x=>{let v=x.target;v?.closest(`[${Pn}]`)||(vt(m,v)?n=v:et(n))},h=x=>{let C=x.relatedTarget??wr(m);C?.closest(`[${Pn}]`)||vt(m,C)||et(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),X(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),W(()=>{if(Je)return;let m=t();if(!m||!R(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function x(C){let w=c(),S=f();C.relatedTarget===w?et(S):et(w)}g.addEventListener("focusin",x),h.addEventListener("focusin",x);let v=new MutationObserver(C=>{for(let w of C)w.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),w.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});v.observe(m,{childList:!0,subtree:!1}),X(()=>{g.removeEventListener("focusin",x),h.removeEventListener("focusin",x),g.remove(),h.remove(),v.disconnect()})})}function Yx(e){W(()=>{R(e.isDisabled)||X(e1(R(e.targets),R(e.root)))})}function e1(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let f of l.querySelectorAll(`[${Jx}], [${Pn}]`))a.add(f);let u=f=>{if(a.has(f)||f.parentElement&&o.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of a)if(f.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),c=u(l);if(c===NodeFilter.FILTER_ACCEPT&&n(l),c!==NodeFilter.FILTER_REJECT){let f=d.nextNode();for(;f!=null;)n(f),f=d.nextNode()}},n=l=>{let u=Cr.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),Cr.set(l,u+1))};xt.length&&xt[xt.length-1].disconnect(),r(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...a,...o].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(a.delete(d),o.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?a.add(d):d instanceof Element&&r(d)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return xt.push(i),()=>{s.disconnect();for(let l of o){let u=Cr.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),Cr.delete(l)):Cr.set(l,u-1)}i===xt[xt.length-1]?(xt.pop(),xt.length&&xt[xt.length-1].observe()):xt.splice(xt.indexOf(i),1)}}function Ic(){return $e(Lc)}function ca(){let e=Ic();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function pl(){let e=$e(Sc);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Ht(){let e=$e(kc);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function ml(e){let t,a=Ht(),o=ca(),r=ue({id:a.generateId(`item-${it()}`)},e),[n,s]=de(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=N(),[u,d]=N(),[c,f]=N(),p=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>p().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};x0({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=Qd({key:m,selectionManager:p,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),v=L=>{Re(L,n.onPointerMove),L.pointerType==="mouse"&&(n.disabled?o.onItemLeave(L):(o.onItemEnter(L),L.defaultPrevented||(et(L.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},C=L=>{Re(L,n.onPointerLeave),L.pointerType==="mouse"&&o.onItemLeave(L)},w=L=>{Re(L,n.onPointerUp),!n.disabled&&L.button===0&&h()},S=L=>{if(Re(L,n.onKeyDown),!L.repeat&&!n.disabled)switch(L.key){case"Enter":case" ":h();break}},F=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),D=k(()=>({"data-indeterminate":n.indeterminate?"":void 0,"data-checked":n.checked&&!n.indeterminate?"":void 0,"data-disabled":n.disabled?"":void 0,"data-highlighted":g()?"":void 0})),T={isChecked:()=>n.checked,dataset:D,setLabelRef:f,generateId:Tr(()=>s.id),registerLabel:Ct(l),registerDescription:Ct(d)};return y(Sc.Provider,{value:T,get children(){return y(Te,ee({as:"div",ref(L){let I=rt(H=>t=H,n.ref);typeof I=="function"&&I(L)},get tabIndex(){return x.tabIndex()},get"aria-checked"(){return F()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return x.dataKey()},get onPointerDown(){return Ve([n.onPointerDown,x.onPointerDown])},get onPointerUp(){return Ve([w,x.onPointerUp])},get onClick(){return Ve([n.onClick,x.onClick])},get onKeyDown(){return Ve([S,x.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,x.onMouseDown])},get onFocus(){return Ve([n.onFocus,x.onFocus])},onPointerMove:v,onPointerLeave:C},D,s))}})}function Pc(e){let t=ue({closeOnSelect:!1},e),[a,o]=de(t,["checked","defaultChecked","onChange","onSelect"]),r=i0({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return y(ml,ee({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function Hn(){return $e(d1)}function Mc(e){let t=Ht(),a=ca(),o=Hn(),{direction:r}=Ba(),n=ue({id:t.generateId("trigger")},e),[s,i]=de(n,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),l=()=>t.value();o!==void 0&&(l=()=>t.value()??s.id,o.lastValue()===void 0&&o.setLastValue(l));let u=qn(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);W(qt(()=>o?.value(),x=>{d()&&x===l()&&a.triggerRef()?.focus()}));let c=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},f=x=>{Re(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},p=x=>{Re(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(Re(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case fd.first(t.orientation()):x.stopPropagation(),x.preventDefault(),e0(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case fd.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Mr.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Mr.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},g=x=>{Re(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=x=>{Re(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return W(()=>X(a.registerTriggerId(s.id))),y(rl,ee({ref(x){let v=rt(a.setTriggerRef,s.ref);typeof v=="function"&&v(x)},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 a.isOpen()},get"aria-controls"(){return k(()=>!!a.isOpen())()?a.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&o?.value()===l()?!0:void 0},get tabIndex(){return o!==void 0?o.value()===l()||o.lastValue()===l()?0:-1:void 0},onPointerDown:f,onMouseOver:g,onClick:p,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function Ac(){return $e(c1)}function Rc(e){let t,a=Ht(),o=ca(),r=Hn(),n=Ac(),{direction:s}=Ba(),i=ue({id:a.generateId(`content-${it()}`)},e),[l,u]=de(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,c=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),f=Xx({selectionManager:o.listState().selectionManager,collection:o.listState().collection,autoFocus:o.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!o.listState().selectionManager().isFocused(),orientation:()=>a.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);Zx({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:C=>{r===void 0&&l.onOpenAutoFocus?.(C)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let p=C=>{if(vt(C.currentTarget,C.target)&&(C.key==="Tab"&&o.isOpen()&&C.preventDefault(),r!==void 0&&C.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(C.key){case Mr.next(s(),a.orientation()):C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Mr.previous(s(),a.orientation()):if(C.currentTarget.hasAttribute("data-closed"))break;C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=C=>{l.onEscapeKeyDown?.(C),r?.setAutoFocusMenu(!1),o.close(!0)},g=C=>{l.onFocusOutside?.(C),a.isModal()&&C.preventDefault()},h=C=>{Re(C,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=C=>{if(Re(C,l.onPointerMove),C.pointerType!=="mouse")return;let w=C.target,S=d!==C.clientX;vt(C.currentTarget,w)&&S&&(o.setPointerDir(C.clientX>d?"right":"left"),d=C.clientX)};W(()=>X(o.registerContentId(l.id)));let v={ref:rt(C=>{o.setContentRef(C),t=C},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return f.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:Ve([l.onKeyDown,f.onKeyDown,p]),onMouseDown:Ve([l.onMouseDown,f.onMouseDown]),onFocusIn:Ve([l.onFocusIn,f.onFocusIn]),onFocusOut:Ve([l.onFocusOut,f.onFocusOut]),onPointerEnter:h,onPointerMove:x,get"data-orientation"(){return a.orientation()}};return y(Q,{get when(){return o.contentPresent()},get children(){return y(Q,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return y(Te,ee({as:"div"},()=>o.dataset(),v,u))},get children(){return y(uc.Positioner,{get children(){return y(Wx,ee({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Bn({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:m,onFocusOutside:g,get onDismiss(){return o.close}},()=>o.dataset(),v,u))}})}})}})}function f1(e){let t,a=Ht(),o=ca(),[r,n]=de(e,["ref"]);return u1({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),y(Rc,ee({ref(s){let i=rt(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function p1(){let e=$e(Tc);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function gl(e){let t=Ht(),a=ue({id:t.generateId(`group-${it()}`)},e),[o,r]=N(),n={generateId:Tr(()=>a.id),registerLabelId:Ct(r)};return y(Tc.Provider,{value:n,get children(){return y(Te,ee({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function Dc(e){let t=p1(),a=ue({id:t.generateId("label")},e),[o,r]=de(a,["id"]);return W(()=>X(t.registerLabelId(o.id))),y(Te,ee({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function Ec(e){let t=ca(),a=ue({children:"\u25BC"},e);return y(Te,ee({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function Fc(e){return y(ml,ee({role:"menuitem",closeOnSelect:!0},e))}function Oc(e){let t=pl(),a=ue({id:t.generateId("description")},e),[o,r]=de(a,["id"]);return W(()=>X(t.registerDescription(o.id))),y(Te,ee({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Bc(e){let t=pl(),a=ue({id:t.generateId("indicator")},e),[o,r]=de(a,["forceMount"]);return y(Q,{get when(){return o.forceMount||t.isChecked()},get children(){return y(Te,ee({as:"div"},()=>t.dataset(),r))}})}function $c(e){let t=pl(),a=ue({id:t.generateId("label")},e),[o,r]=de(a,["ref","id"]);return W(()=>X(t.registerLabel(o.id))),y(Te,ee({as:"div",ref(n){let s=rt(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function qc(e){let t=ca();return y(Q,{get when(){return t.contentPresent()},get children(){return y(Ts,e)}})}function m1(){let e=$e(Nc);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function zc(e){let a=Ht().generateId(`radiogroup-${it()}`),o=ue({id:a},e),[r,n]=de(o,["value","defaultValue","onChange","disabled"]),[s,i]=Er({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return y(Nc.Provider,{value:l,get children(){return y(gl,n)}})}function Uc(e){let t=m1(),a=ue({closeOnSelect:!1},e),[o,r]=de(a,["value","onSelect"]);return y(ml,ee({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function g1(e,t,a){let o=e.split("-")[0],r=a.getBoundingClientRect(),n=[],s=t.clientX,i=t.clientY;switch(o){case"top":n.push([s,i+5]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]);break;case"right":n.push([s-5,i]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]);break;case"bottom":n.push([s,i-5]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]);break;case"left":n.push([s+5,i]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]);break}return n}function h1(e,t){return t?Yh([e.clientX,e.clientY],t):!1}function Hc(e){let t=Ht(),a=Ud(),o=Ic(),r=Hn(),n=Ac(),s=ue({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=de(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[f,p]=N(),[m,g]=N(),[h,x]=N(),[v,C]=N(),[w,S]=N(!0),[F,D]=N(l.placement),[T,L]=N([]),[I,H]=N([]),{DomCollectionProvider:P}=h0({items:I,onItemsChange:H}),Z=cc({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:Y=>i.onOpenChange?.(Y)}),{present:re}=jd({show:()=>t.forceMount()||Z.isOpen(),element:()=>v()??null}),xe=F0({selectionMode:"none",dataSource:I}),fe=Y=>{S(Y),Z.open()},ye=(Y=!1)=>{Z.close(),Y&&o&&o.close(!0)},ve=Y=>{S(Y),Z.toggle()},pe=()=>{let Y=v();Y&&(et(Y),xe.selectionManager().setFocused(!0),xe.selectionManager().setFocusedKey(void 0))},De=()=>{n!=null?setTimeout(()=>pe()):pe()},Me=Y=>{L(je=>[...je,Y]);let St=o?.registerNestedMenu(Y);return()=>{L(je=>_s(je,Y)),St?.()}},Fe=Y=>c===d?.side&&h1(Y,d?.area),at=Y=>{Fe(Y)&&Y.preventDefault()},B=Y=>{Fe(Y)||De()},Ee=Y=>{Fe(Y)&&Y.preventDefault()};Yx({isDisabled:()=>!(o==null&&Z.isOpen()&&t.isModal()),targets:()=>[v(),...T()].filter(Boolean)}),W(()=>{let Y=v();if(!Y||!o)return;let St=o.registerNestedMenu(Y);X(()=>{St()})}),W(()=>{o===void 0&&r?.registerMenu(t.value(),[v(),...T()])}),W(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&fe(!0)):ye())}),W(()=>{o!==void 0||r===void 0||Z.isOpen()&&r.setValue(t.value())}),X(()=>{o===void 0&&r?.unregisterMenu(t.value())});let wa={dataset:k(()=>({"data-expanded":Z.isOpen()?"":void 0,"data-closed":Z.isOpen()?void 0:""})),isOpen:Z.isOpen,contentPresent:re,nestedMenus:T,currentPlacement:F,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>xe,parentMenuContext:()=>o,triggerRef:h,contentRef:v,triggerId:f,contentId:m,setTriggerRef:x,setContentRef:C,open:fe,close:ye,toggle:ve,focusContent:De,onItemEnter:at,onItemLeave:B,onTriggerLeave:Ee,setPointerDir:Y=>c=Y,setPointerGraceTimeoutId:Y=>u=Y,setPointerGraceIntent:Y=>d=Y,registerNestedMenu:Me,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:Ct(p),registerContentId:Ct(g)};return y(P,{get children(){return y(Lc.Provider,{value:wa,get children(){return y(Q,{when:n===void 0,get fallback(){return l.children},get children(){return y(uc,ee({anchorRef:h,contentRef:v,onCurrentPlacementChange:D},l))}})}})}})}function _c(e){let{direction:t}=Ba();return y(Hc,ee({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Vc(e){let t=ca(),a=Ht(),[o,r]=de(e,["onFocusOutside","onKeyDown"]),{direction:n}=Ba();return y(Rc,ee({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;vt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{Re(d,o.onKeyDown);let c=vt(d.currentTarget,d.target),f=x1.close(n(),a.orientation()).includes(d.key),p=t.parentMenuContext()!=null;c&&f&&p&&(t.close(),et(t.triggerRef()))}},r))}function Kc(e){let t,a=Ht(),o=ca(),r=ue({id:a.generateId(`sub-trigger-${it()}`)},e),[n,s]=de(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{Je||(i&&window.clearTimeout(i),i=null)},{direction:u}=Ba(),d=()=>n.id,c=()=>{let C=o.parentMenuContext();if(C==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return C.listState().selectionManager()},f=()=>o.listState().collection(),p=()=>c().focusedKey()===d(),m=Qd({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=C=>{Re(C,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=C=>{if(Re(C,n.onPointerMove),C.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(C),!C.defaultPrevented){if(n.disabled){w?.onItemLeave(C);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(C),C.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),et(C.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=C=>{if(Re(C,n.onPointerLeave),C.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),S=o.contentRef();if(S){w?.setPointerGraceIntent({area:g1(o.currentPlacement(),C,S),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let F=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(F)}else{if(w?.onTriggerLeave(C),C.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(C)},v=C=>{Re(C,n.onKeyDown),!C.repeat&&(n.disabled||y1.open(u(),a.orientation()).includes(C.key)&&(C.stopPropagation(),C.preventDefault(),c().setFocused(!1),c().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(f().getFirstKey())))};return W(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let C=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});X(C)}),W(qt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),C=>{X(()=>{window.clearTimeout(C),o.parentMenuContext()?.setPointerGraceIntent(null)})})),W(()=>X(o.registerTriggerId(n.id))),X(()=>{l()}),y(Te,ee({as:"div",ref(C){let w=rt(S=>{o.setTriggerRef(S),t=S},n.ref);typeof w=="function"&&w(C)},get id(){return n.id},role:"menuitem",get tabIndex(){return m.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return o.isOpen()},get"aria-controls"(){return k(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return p()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return Ve([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return Ve([n.onPointerUp,m.onPointerUp])},get onClick(){return Ve([g,m.onClick])},get onKeyDown(){return Ve([v,m.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,m.onMouseDown])},get onFocus(){return Ve([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:x},()=>o.dataset(),s))}function v1(e){let t=Hn(),a=`menu-${it()}`,o=ue({id:a,modal:!0},e),[r,n]=de(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=cc({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:l=>r.onOpenChange?.(l)}),i={isModal:()=>r.modal??!0,preventScroll:()=>r.preventScroll??i.isModal(),forceMount:()=>r.forceMount??!1,generateId:Tr(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return y(kc.Provider,{value:i,get children(){return y(Hc,ee({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function _n(e){let t,a=ue({orientation:"horizontal"},e),[o,r]=de(a,["ref","orientation"]),n=qn(()=>t,()=>"hr");return y(Te,ee({as:"hr",ref(s){let i=rt(l=>t=l,o.ref);typeof i=="function"&&i(s)},get role(){return n()!=="hr"?"separator":void 0},get"aria-orientation"(){return o.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return o.orientation}},r))}function Gc(e){let t=Ht(),a=ca(),[o,r]=de(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return y(f1,ee({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||et(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function Wc(e){let t=`dropdownmenu-${it()}`,a=ue({id:t},e);return y(v1,a)}function V1(){return L1()}function jc(){return I1()}function Ir(){return S1()}function md(){return k1()}function gd(){return hl()}function K1(){return(()=>{var e=hl();return e.style.setProperty("transform","rotate(90deg)"),e})()}function G1(){return(()=>{var e=hl();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function W1(){return P1()}function Q1(){return M1()}function j1(){return A1()}function X1(){return R1()}function Z1(){return T1()}function J1(){return D1()}function Y1(){return E1()}function ey(){return F1()}function ty(){return O1()}function ay(e){return(()=>{var t=Qc(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function oy(){return B1()}function ry(){return $1()}function ny(e){return[y(Q,{get when(){return e.checked},get children(){var t=Qc(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),y(Q,{get when(){return!e.checked},get children(){var t=q1(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function sy(){return N1()}function ly(){return z1()}function iy(){return U1()}function uy(){return H1()}function hd(){let e=it();return(()=>{var t=_1(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,d=u.firstChild,c=u.nextSibling,f=c.firstChild,p=c.nextSibling,m=p.nextSibling,g=m.firstChild,h=m.nextSibling,x=h.firstChild,v=h.nextSibling,C=v.nextSibling,w=C.firstChild,S=C.nextSibling,F=S.firstChild,D=S.nextSibling,T=D.nextSibling,L=T.firstChild,I=T.nextSibling,H=I.firstChild,P=I.nextSibling,Z=P.nextSibling,re=Z.firstChild,xe=Z.nextSibling,fe=xe.firstChild,ye=xe.nextSibling,ve=ye.nextSibling,pe=ve.firstChild,De=ve.nextSibling,Me=De.firstChild,Fe=De.nextSibling,at=Fe.firstChild,B=at.nextSibling,Ee=B.nextSibling,me=Ee.nextSibling,wa=me.nextSibling,Y=Fe.nextSibling,St=Y.firstChild,je=Y.nextSibling,uo=je.firstChild,gt=je.nextSibling,La=gt.firstChild,Va=La.nextSibling,jt=Va.nextSibling,Ot=jt.firstChild,Xt=Ot.nextSibling,z=Xt.nextSibling,we=z.nextSibling,ot=we.nextSibling,Ie=ot.nextSibling,be=Ie.nextSibling,Ae=be.nextSibling,He=Ae.nextSibling,Ce=He.nextSibling,Zt=Ce.nextSibling,Jt=Zt.nextSibling,kt=gt.nextSibling,Ka=kt.firstChild,Yt=kt.nextSibling,Ga=Yt.firstChild,ea=Yt.nextSibling,Ia=ea.firstChild,jr=Ia.nextSibling,Bo=ea.nextSibling,Xr=Bo.firstChild,co=Bo.nextSibling,Zr=co.firstChild,$o=co.nextSibling,qo=$o.firstChild,No=qo.nextSibling,fo=No.nextSibling,jl=fo.nextSibling,Xl=jl.nextSibling,Zl=Xl.nextSibling,Jl=Zl.nextSibling,Yl=Jl.nextSibling,ei=Yl.nextSibling,ti=ei.nextSibling,ai=ti.nextSibling,oi=ai.nextSibling,ri=oi.nextSibling,ni=ri.nextSibling,si=ni.nextSibling,li=si.nextSibling,ii=li.nextSibling,Wp=ii.nextSibling;return E(a,"id",`a-${e}`),E(o,"fill",`url(#a-${e})`),E(n,"id",`am-${e}`),E(s,"id",`b-${e}`),E(i,"filter",`url(#am-${e})`),E(l,"mask",`url(#b-${e})`),E(d,"id",`ah-${e}`),E(c,"id",`k-${e}`),E(f,"filter",`url(#ah-${e})`),E(p,"mask",`url(#k-${e})`),E(g,"id",`ae-${e}`),E(h,"id",`j-${e}`),E(x,"filter",`url(#ae-${e})`),E(v,"mask",`url(#j-${e})`),E(w,"id",`ai-${e}`),E(S,"id",`i-${e}`),E(F,"filter",`url(#ai-${e})`),E(D,"mask",`url(#i-${e})`),E(L,"id",`aj-${e}`),E(I,"id",`h-${e}`),E(H,"filter",`url(#aj-${e})`),E(P,"mask",`url(#h-${e})`),E(re,"id",`ag-${e}`),E(xe,"id",`g-${e}`),E(fe,"filter",`url(#ag-${e})`),E(ye,"mask",`url(#g-${e})`),E(pe,"id",`af-${e}`),E(De,"id",`f-${e}`),E(Me,"filter",`url(#af-${e})`),E(Fe,"mask",`url(#f-${e})`),E(me,"id",`m-${e}`),E(wa,"fill",`url(#m-${e})`),E(St,"id",`ak-${e}`),E(je,"id",`e-${e}`),E(uo,"filter",`url(#ak-${e})`),E(gt,"mask",`url(#e-${e})`),E(La,"id",`n-${e}`),E(Va,"fill",`url(#n-${e})`),E(Ot,"id",`r-${e}`),E(Xt,"fill",`url(#r-${e})`),E(z,"id",`s-${e}`),E(we,"fill",`url(#s-${e})`),E(ot,"id",`q-${e}`),E(Ie,"fill",`url(#q-${e})`),E(be,"id",`p-${e}`),E(Ae,"fill",`url(#p-${e})`),E(He,"id",`o-${e}`),E(Ce,"fill",`url(#o-${e})`),E(Zt,"id",`l-${e}`),E(Jt,"fill",`url(#l-${e})`),E(Ka,"id",`al-${e}`),E(Yt,"id",`d-${e}`),E(Ga,"filter",`url(#al-${e})`),E(ea,"mask",`url(#d-${e})`),E(Ia,"id",`u-${e}`),E(jr,"fill",`url(#u-${e})`),E(Xr,"id",`ad-${e}`),E(co,"id",`c-${e}`),E(Zr,"filter",`url(#ad-${e})`),E($o,"mask",`url(#c-${e})`),E(qo,"id",`t-${e}`),E(No,"fill",`url(#t-${e})`),E(fo,"id",`v-${e}`),E(jl,"stroke",`url(#v-${e})`),E(Xl,"id",`aa-${e}`),E(Zl,"stroke",`url(#aa-${e})`),E(Jl,"id",`w-${e}`),E(Yl,"stroke",`url(#w-${e})`),E(ei,"id",`ac-${e}`),E(ti,"stroke",`url(#ac-${e})`),E(ai,"id",`ab-${e}`),E(oi,"stroke",`url(#ab-${e})`),E(ri,"id",`y-${e}`),E(ni,"stroke",`url(#y-${e})`),E(si,"id",`x-${e}`),E(li,"stroke",`url(#x-${e})`),E(ii,"id",`z-${e}`),E(Wp,"stroke",`url(#z-${e})`),t})()}function Cy(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function Cd(e){return Symbol.iterator in e}function Ta(e){let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ro(a):Ao(a)),r=j().client,[n,s]=N((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=N([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&Cd(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([m,g])=>({label:m,value:g})):Array.from(e.value,(m,g)=>({label:g.toString(),value:m})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([m,g])=>({label:m,value:g})):[]),c=k(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&Cd(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),f=k(()=>Cy(d(),100)),p=e.dataPath??[];return(()=>{var m=br();return M(m,y(Q,{get when(){return f().length},get children(){return[(()=>{var g=hy(),h=g.firstChild,x=h.firstChild,v=x.nextSibling,C=v.nextSibling,w=C.nextSibling,S=w.firstChild;return h.$$click=()=>i(),M(h,y(yd,{get expanded(){return n()}}),x),M(v,()=>e.label),M(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",S),M(w,()=>d().length,S),M(w,()=>d().length>1?"items":"item",null),M(g,y(Q,{get when(){return e.editable},get children(){var F=br();return M(F,y(by,{get value(){return e.value}}),null),M(F,y(Q,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(vd,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),M(F,y(Q,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return y(wy,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),M(F,y(Q,{get when(){return k(()=>!!e.onEdit)()&&!Ds(e.value).meta},get children(){var D=gy();return D.$$click=()=>{e.onEdit?.()},M(D,y(ty,{})),G(()=>O(D,o().actionButton)),D}}),null),G(()=>O(F,o().actions)),F}}),null),G(F=>{var D=o().expanderButtonContainer,T=o().expanderButton,L=o().info;return D!==F.e&&O(g,F.e=D),T!==F.t&&O(h,F.t=T),L!==F.a&&O(w,F.a=L),F},{e:void 0,t:void 0,a:void 0}),g})(),y(Q,{get when(){return n()},get children(){return[y(Q,{get when(){return f().length===1},get children(){var g=br();return M(g,y(kn,{get each(){return d()},by:h=>h.label,children:h=>y(Ta,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...p,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),G(()=>O(g,o().subEntry)),g}}),y(Q,{get when(){return f().length>1},get children(){var g=br();return M(g,y(tu,{get each(){return f()},children:(h,x)=>(()=>{var v=vy(),C=v.firstChild,w=C.firstChild,S=w.firstChild,F=S.nextSibling,D=F.nextSibling,T=D.nextSibling;return T.nextSibling,w.$$click=()=>u(L=>L.includes(x)?L.filter(I=>I!==x):[...L,x]),M(w,y(yd,{get expanded(){return l().includes(x)}}),S),M(w,x*100,F),M(w,x*100+100-1,T),M(C,y(Q,{get when(){return l().includes(x)},get children(){var L=br();return M(L,y(kn,{get each(){return h()},by:I=>I.label,children:I=>y(Ta,{get defaultExpanded(){return e.defaultExpanded},get label(){return I().label},get value(){return I().value},get editable(){return e.editable},get dataPath(){return[...p,I().label]},get activeQuery(){return e.activeQuery}})})),G(()=>O(L,o().subEntry)),L}}),null),G(L=>{var I=o().entry,H=o().expanderButton;return I!==L.e&&O(C,L.e=I),H!==L.t&&O(w,L.t=H),L},{e:void 0,t:void 0}),v})()})),G(()=>O(g,o().subEntry)),g}})]}})]}}),null),M(m,y(Q,{get when(){return f().length===0},get children(){var g=yy(),h=g.firstChild,x=h.firstChild;return M(h,()=>e.label,x),M(g,y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var v=xd();return M(v,()=>xr(e.value)),G(()=>O(v,o().value)),v})()},get children(){return[y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var v=xy();return v.addEventListener("change",C=>{let w=e.activeQuery.state.data,S=Ma(w,p,c()==="number"?C.target.valueAsNumber:C.target.value);r.setQueryData(e.activeQuery.queryKey,S)}),G(C=>{var w=c()==="number"?"number":"text",S=U(o().value,o().editableInput);return w!==C.e&&E(v,"type",C.e=w),S!==C.t&&O(v,C.t=S),C},{e:void 0,t:void 0}),G(()=>v.value=e.value),v}}),y(Q,{get when(){return c()==="boolean"},get children(){var v=xd();return M(v,y(Ly,{get activeQuery(){return e.activeQuery},dataPath:p,get value(){return e.value}}),null),M(v,()=>xr(e.value),null),G(()=>O(v,U(o().value,o().actions,o().editableInput))),v}})]}}),null),M(g,y(Q,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(vd,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),G(v=>{var C=o().row,w=o().label;return C!==v.e&&O(g,v.e=C),w!==v.t&&O(h,v.t=w),v},{e:void 0,t:void 0}),g}}),null),G(()=>O(m,o().entry)),m})()}var Wg,Qg,Mu,jg,Xg,R,zs,Yg,En,ah,Au,ht,oh,eo,Zs,rh,Us,Fn,nh,Ld,sh,Id,lh,Ru,ih,Ar,Sd,On,Js,Rr,kd,uh,dh,st,Fu,xh,yh,vh,Ch,Ou,Ya,sa,Pd,bh,wh,Bu,$u,Os,Dh,Ys,Ln,Dd,Kh,tl,Gh,vr,Hu,Od,t0,Bd,u0,Nn,zd,v0,C0,Ks,Lr,I0,Bs,la,E0,Qu,Ye,O0,B0,jd,Pn,Xd,Gs,ua,ut,K0,G0,Q0,j0,Nt,ct,Mn,In,Ea,X0,Z0,ox,rx,nx,sx,ix,ux,dx,px,Ix,ic,Mx,Ax,Rx,Tx,Dx,Ex,Fx,dl,Ox,js,td,Bx,Ux,uc,od,rd,dc,yt,fc,mc,Qx,jx,qs,Ns,nd,sd,Jx,Cr,xt,Sn,t1,ld,a1,o1,r1,id,ud,n1,s1,l1,dd,cd,Xs,i1,u1,Lc,Sc,kc,d1,Mr,fd,c1,Tc,Nc,x1,pd,y1,C1,b1,qe,w1,A,L1,I1,S1,k1,hl,P1,M1,A1,R1,T1,D1,E1,F1,O1,Qc,B1,$1,q1,N1,z1,U1,H1,_1,dy,cy,fy,py,my,gy,br,hy,xy,xd,yy,vy,yd,by,wy,vd,Ly,Xc,Ao,Ro,Iy,Br,Sy,ky,Py,My,Ay,Ry,Ty,Dy,Ey,Fy,Oy,By,$y,qy,Ny,zy,Uy,Hy,_y,bd,Vy,Zc,Ky,Gy,Wy,Qy,jy,Xy,Zy,Jy,Yy,ev,dt,Vn,Da,Jc,Mt,xl,wo,wd,Yc,tv,ef,av,Kn,ov,rv,nv,sv,ia,lv,iv,Tn,uv,We,Dn,dv,Pt,tf,bt,wt,yl=zo(()=>{"use strict";b();yr();Wg=!Je,Qg=Wg&&!!ou,Mu=()=>{},jg=e=>e!=null,Xg=e=>e.filter(jg);R=e=>typeof e=="function"&&!e.length?e():e,zs=e=>Array.isArray(e)?e:e?[e]:[];Yg=Qg?e=>fn()?X(e):e:X;En=th,ah=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Au=e=>{if(!e)return"";let t="";for(let a in e){if(!e.hasOwnProperty(a))continue;let o=e[a];t+=o instanceof Date?`; ${a}=${o.toUTCString()}`:typeof o=="boolean"?`; ${a}`:`; ${a}=${o}`}return t},ht=ah({_cookies:[globalThis.document,"cookie"],getItem:e=>ht._cookies[0][ht._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=ht.getItem(e);ht._cookies[0][ht._cookies[1]]=`${e}=${t}${Au(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:ht});window.dispatchEvent(r)},removeItem:e=>{ht._cookies[0][ht._cookies[1]]=`${e}=deleted${Au({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return ht._cookies[0][ht._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return ht._cookies[0][ht._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),oh=1024,eo=796,Zs=700,rh="bottom-right",Us="bottom",Fn="system",nh=!1,Ld=500,sh=500,Id=500,lh=Object.keys(Cn)[0],Ru=1,ih=Object.keys(bn)[0],Ar=_e({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Sd=_e(void 0),On=e=>{let[t,a]=N(null),o=()=>{let s=t();s!=null&&(s.close(),a(null))},r=(s,i)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${i},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="",ru(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(j().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let d=[...u.cssRules].map(m=>m.cssText).join(""),c=document.createElement("style"),f=u.ownerNode,p="";f&&"id"in f&&(p=f.id),p&&c.setAttribute("id",p),c.textContent=d,l.document.head.appendChild(c)}catch{let c=document.createElement("link");if(u.href==null)return;c.rel="stylesheet",c.type=u.type,c.media=u.media.toString(),c.href=u.href,l.document.head.appendChild(c)}}),hr(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};W(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||sh))}),W(()=>{let s=(j().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(j().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),X(()=>{l.disconnect()})}});let n=k(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return y(Sd.Provider,{value:n,get children(){return e.children}})},Js=()=>k(()=>{let t=$e(Sd);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Rr=_e(()=>"dark");kd={\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"},uh=Object.keys(kd).join("|"),dh=new RegExp(uh,"g");st={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Fu={maxRanking:1/0,minRanking:-1/0};xh={data:""},yh=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||xh,vh=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ch=/\/\*[^]*?\*\/| +/g,Ou=/\n+/g,Ya=(e,t)=>{let a="",o="",r="";for(let n in e){let s=e[n];n[0]=="@"?n[1]=="i"?a=n+" "+s+";":o+=n[1]=="f"?Ya(s,n):n+"{"+Ya(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=Ya(s,t?t.replace(/([^,])+/g,i=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,i):i?i+" "+l:l)):n):s!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=Ya.p?Ya.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},sa={},Pd=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+Pd(e[a]);return t}return e},bh=(e,t,a,o,r)=>{let n=Pd(e),s=sa[n]||(sa[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!sa[s]){let l=n!==e?e:(u=>{let d,c,f=[{}];for(;d=vh.exec(u.replace(Ch,""));)d[4]?f.shift():d[3]?(c=d[3].replace(Ou," ").trim(),f.unshift(f[0][c]=f[0][c]||{})):f[0][d[1]]=d[2].replace(Ou," ").trim();return f[0]})(e);sa[s]=Ya(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&sa.g?sa.g:null;return a&&(sa.g=sa[s]),((l,u,d,c)=>{c?u.data=u.data.replace(c,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(sa[s],t,o,i),s},wh=(e,t,a)=>e.reduce((o,r,n)=>{let s=t[n];if(s&&s.call){let i=s(a),l=i&&i.props&&i.props.className||/^go/.test(i)&&i;s=l?"."+l:i&&typeof i=="object"?i.props?"":Ya(i,""):i===!1?"":i}return o+r+(s??"")},"");ae.bind({g:1});ae.bind({k:1});Bu=Je?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;$u=e=>{let t=Sh(e);return Lh(Ih(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)kh(s,e,l);let i=[];for(let l of n)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&i.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:u,rect:d}of i)if(u.isConnected){let c=u.getBoundingClientRect(),f=d.left-c.left,p=d.top-c.top;(f||p)&&(u.style.transform=`translate(${f}px, ${p}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let d=function(c){(c.target===u||/transform$/.test(c.propertyName))&&(u.removeEventListener("transitionend",d),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",d)}});for(let l of o)Ph(s,e,l,()=>r([l]))}})},Os=Symbol("fallback");Dh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Ys=(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))(Ys||{});Ln=null;Dd=["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'])"],Kh=[...Dd,'[tabindex]:not([tabindex="-1"]):not([disabled])'],tl=Dd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Gh=Kh.join(':not([hidden]):not([tabindex="-1"]),');vr=new Map,Hu=new Set;typeof document<"u"&&(document.readyState!=="loading"?_u():document.addEventListener("DOMContentLoaded",_u));Od={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"};t0=["id","name","validationState","required","disabled","readOnly"];Bd=_e();u0=Object.defineProperty,Nn=(e,t)=>{for(var a in t)u0(e,a,{get:t[a],enumerable:!0})},zd=_e();v0=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),C0=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Ks=Kd(),Lr=new Set;I0=_e();Bs=new Map;la=class Gd extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Gd?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};E0=class{collection;state;constructor(e,t){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 a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index<e.index;(!e||o)&&(e=a)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index>e.index;(!e||o)&&(e=a)}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 a=this.state.selectedKeys(),o=a.anchorKey||t,r=new la(a,o,t);for(let n of this.getKeyRange(o,a.currentKey||t))r.delete(n);for(let n of this.getKeyRange(t,o))this.canSelectItem(n)&&r.add(n);this.state.setSelectedKeys(r)}getKeyRange(e,t){let a=this.collection().getItem(e),o=this.collection().getItem(t);return a&&o?a.index!=null&&o.index!=null&&a.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let a=[],o=e;for(;o!=null;){let r=this.collection().getItem(o);if(r&&r.type==="item"&&a.push(o),o===t)return a;o=this.collection().getKeyAfter(o)}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 a=new la(this.state.selectedKeys());a.has(t)?a.delete(t):this.canSelectItem(t)&&(a.add(t),a.anchorKey=t,a.currentKey=t),!(this.disallowEmptySelection()&&a.size===0)&&this.state.setSelectedKeys(a)}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let a=this.canSelectItem(t)?new la([t],t,t):new la;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new la;for(let a of e){let o=this.getKey(a);if(o!=null&&(t.add(o),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 la)}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 a of e)if(!t.has(a))return!1;for(let a of t)if(!e.has(a))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(a=>{for(;a!=null;){if(this.canSelectItem(a)){let o=this.collection().getItem(a);if(!o)continue;o.type==="item"&&e.push(a)}a=this.collection().getKeyAfter(a)}})(this.collection().getFirstKey()),e}},Qu=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let o of e)this.keyMap.set(o.key,o);if(this.keyMap.size===0)return;let t,a=0;for(let[o,r]of this.keyMap)t?(t.nextKey=o,r.prevKey=t.key):(this.firstKey=o,r.prevKey=void 0),r.type==="item"&&(r.index=a++),t=r,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])}};Ye=e=>typeof e=="function"?e():e,O0=e=>{let t=k(()=>{let s=Ye(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=N(Ye(e.show)?"present":"hidden"),n="none";return W(s=>{let i=Ye(e.show);return Le(()=>{if(s===i)return i;let l=n,u=a();i?r("present"):u==="none"||t()?.display==="none"?r("hidden"):r(s===!0&&l!==u?"hiding":"hidden")}),i}),W(()=>{let s=Ye(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let c=a().includes(u.animationName);u.target===s&&c&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),X(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},B0=O0,jd=B0,Pn="data-kb-top-layer",Gs=!1,ua=[];ut={layers:ua,isTopMostLayer:q0,hasPointerBlockingLayer:ol,isBelowPointerBlockingLayer:Jd,addLayer:z0,removeLayer:U0,indexOf:Sr,find:$0,assignPointerEventToLayers:H0,disableBodyPointerEvents:_0,restoreBodyPointerEvents:V0},K0={};Nn(K0,{Button:()=>Q0,Root:()=>rl});G0=["button","color","file","image","reset","submit"];Q0=rl,j0=["top","right","bottom","left"],Nt=Math.min,ct=Math.max,Mn=Math.round,In=Math.floor,Ea=e=>({x:e,y:e}),X0={left:"right",right:"left",bottom:"top",top:"bottom"},Z0={start:"end",end:"start"};ox=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,i=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:c}=ju(u,o,l),f=o,p={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:x}=i[g],{x:v,y:C,data:w,reset:S}=await x({x:d,y:c,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});d=v??d,c=C??c,p={...p,[h]:{...p[h],...w}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:c}=ju(u,f,l)),g=-1)}return{x:d,y:c,placement:f,strategy:r,middlewareData:p}};rx=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:d=0}=oo(e,t)||{};if(u==null)return{};let c=ec(d),f={x:a,y:o},p=sl(r),m=nl(p),g=await s.getDimensions(u),h=p==="y",x=h?"top":"left",v=h?"bottom":"right",C=h?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[p]-f[p]-n.floating[m],S=f[p]-n.reference[p],F=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),D=F?F[C]:0;(!D||!await(s.isElement==null?void 0:s.isElement(F)))&&(D=i.floating[C]||n.floating[m]);let T=w/2-S/2,L=D/2-g[m]/2-1,I=Nt(c[x],L),H=Nt(c[v],L),P=I,Z=D-g[m]-H,re=D/2-g[m]/2+T,xe=Ws(P,re,Z),fe=!l.arrow&&Po(r)!=null&&re!==xe&&n.reference[m]/2-(re<P?I:H)-g[m]/2<0,ye=fe?re<P?re-P:re-Z:0;return{[p]:f[p]+ye,data:{[p]:xe,centerOffset:re-xe-ye,...fe&&{alignmentOffset:ye}},reset:fe}}}),nx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=oo(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Fa(r),v=to(i),C=Fa(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(C||!g?[An(i)]:Y0(i)),F=m!=="none";!f&&F&&S.push(...tx(i,g,m,w));let D=[i,...S],T=await kr(t,h),L=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&L.push(T[x]),c){let re=J0(r,s,w);L.push(T[re[0]],T[re[1]])}if(I=[...I,{placement:r,overflows:L}],!L.every(re=>re<=0)){var H,P;let re=(((H=n.flip)==null?void 0:H.index)||0)+1,xe=D[re];if(xe)return{data:{index:re,overflows:I},reset:{placement:xe}};let fe=(P=I.filter(ye=>ye.overflows[0]<=0).sort((ye,ve)=>ye.overflows[1]-ve.overflows[1])[0])==null?void 0:P.placement;if(!fe)switch(p){case"bestFit":{var Z;let ye=(Z=I.filter(ve=>{if(F){let pe=to(ve.placement);return pe===v||pe==="y"}return!0}).map(ve=>[ve.placement,ve.overflows.filter(pe=>pe>0).reduce((pe,De)=>pe+De,0)]).sort((ve,pe)=>ve[1]-pe[1])[0])==null?void 0:Z[0];ye&&(fe=ye);break}case"initialPlacement":fe=i;break}if(r!==fe)return{reset:{placement:fe}}}return{}}}};sx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=oo(e,t);switch(o){case"referenceHidden":{let n=await kr(t,{...r,elementContext:"reference"}),s=Xu(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zu(s)}}}case"escaped":{let n=await kr(t,{...r,altBoundary:!0}),s=Xu(n,a.floating);return{data:{escapedOffsets:s,escaped:Zu(s)}}}default:return{}}}}};ix=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:i}=t,l=await lx(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:s}}}}},ux=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:i={fn:h=>{let{x,y:v}=h;return{x,y:v}}},...l}=oo(e,t),u={x:a,y:o},d=await kr(t,l),c=to(Fa(r)),f=Yd(c),p=u[f],m=u[c];if(n){let h=f==="y"?"top":"left",x=f==="y"?"bottom":"right",v=p+d[h],C=p-d[x];p=Ws(v,p,C)}if(s){let h=c==="y"?"top":"left",x=c==="y"?"bottom":"right",v=m+d[h],C=m-d[x];m=Ws(v,m,C)}let g=i.fn({...t,[f]:p,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},dx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:s=()=>{},...i}=oo(e,t),l=await kr(t,i),u=Fa(a),d=Po(a),c=to(a)==="y",{width:f,height:p}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");let h=p-l.top-l.bottom,x=f-l.left-l.right,v=Nt(p-l[m],h),C=Nt(f-l[g],x),w=!t.middlewareData.shift,S=v,F=C;if(c?F=d||w?Nt(C,x):x:S=d||w?Nt(v,h):h,w&&!d){let T=ct(l.left,0),L=ct(l.right,0),I=ct(l.top,0),H=ct(l.bottom,0);c?F=f-2*(T!==0||L!==0?T+L:ct(l.left,l.right)):S=p-2*(I!==0||H!==0?I+H:ct(l.top,l.bottom))}await s({...t,availableWidth:F,availableHeight:S});let D=await r.getDimensions(n.floating);return f!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};px=Ea(0);Ix=async function(e){let t=this.getOffsetParent||lc,a=this.getDimensions,o=await a(e.floating);return{reference:Lx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};ic={convertOffsetParentRelativeRectToViewportRelativeRect:gx,getDocumentElement:da,getClippingRect:bx,getOffsetParent:lc,getElementRects:Ix,getClientRects:hx,getDimensions:wx,getScale:So,isElement:At,isRTL:Sx};Mx=ix,Ax=ux,Rx=nx,Tx=dx,Dx=sx,Ex=rx,Fx=(e,t,a)=>{let o=new Map,r={platform:ic,...a},n={...r.platform,_c:o};return ox(e,t,{...r,platform:n})},dl=_e();Ox=V('<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">'),js=30,td=js/2,Bx={top:180,right:-90,bottom:0,left:90};Ux={top:"bottom",right:"left",bottom:"top",left:"right"};uc=Object.assign(_x,{Arrow:fl,Context:dl,usePopperContext:cl,Positioner:qx});od="interactOutside.pointerDownOutside",rd="interactOutside.focusOutside";dc=_e();yt={};Nn(yt,{Description:()=>$d,ErrorMessage:()=>qd,Item:()=>gc,ItemControl:()=>hc,ItemDescription:()=>xc,ItemIndicator:()=>yc,ItemInput:()=>vc,ItemLabel:()=>Cc,Label:()=>bc,RadioGroup:()=>Qx,Root:()=>wc});fc=_e();mc=_e();Qx=Object.assign(wc,{Description:$d,ErrorMessage:qd,Item:gc,ItemControl:hc,ItemDescription:xc,ItemIndicator:yc,ItemInput:vc,ItemLabel:Cc,Label:bc}),jx=class{collection;ref;collator;constructor(e,t,a){this.collection=e,this.ref=t,this.collator=a}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.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?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.max(0,a.offsetTop+a.offsetHeight-t.offsetHeight),r=e;for(;r&&a&&a.offsetTop>o;)r=this.getKeyAbove(r),a=r!=null?this.getItem(r):null;return r}getKeyPageBelow(e){let t=this.ref?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.min(t.scrollHeight,a.offsetTop-a.offsetHeight+t.offsetHeight),r=e;for(;r&&a&&a.offsetTop<o;)r=this.getKeyBelow(r),a=r!=null?this.getItem(r):null;return r}getKeyForSearch(e,t){let a=this.collator?.();if(!a)return;let o=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;o!=null;){let r=this.collection().getItem(o);if(r){let n=r.textValue.slice(0,e.length);if(r.textValue&&a.compare(n,e)===0)return o}o=this.getKeyBelow(o)}}};qs="focusScope.autoFocusOnMount",Ns="focusScope.autoFocusOnUnmount",nd={bubbles:!1,cancelable:!0},sd={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=_s(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=_s(this.stack,e),this.active()?.resume()}};Jx="data-live-announcer";Cr=new WeakMap,xt=[];Sn=new Map,t1=e=>{W(()=>{let t=Ye(e.style)??{},a=Ye(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=Sn.get(e.key);r?r.activeCount++:Sn.set(e.key,{activeCount:1,originalStyles:o,properties:a.map(n=>n.key)}),Object.assign(e.element.style,e.style);for(let n of a)e.element.style.setProperty(n.key,n.value);X(()=>{let n=Sn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Sn.delete(e.key);for(let[s,i]of Object.entries(n.originalStyles))e.element.style[s]=i;for(let s of n.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},ld=t1,a1=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},o1=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},r1=(e,t,a)=>{let o=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,r=e,n=0,s=0,i=!1;do{let[l,u,d]=a1(r,t),c=d-l-o*u;(u!==0||c!==0)&&o1(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[id,ud]=N([]),n1=e=>id().indexOf(e)===id().length-1,s1=e=>{let t=ee({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=it(),o=[0,0],r=null,n=null;W(()=>{Ye(t.enabled)&&(ud(u=>[...u,a]),X(()=>{ud(u=>u.filter(d=>d!==a))}))}),W(()=>{if(!Ye(t.enabled)||!Ye(t.hideScrollbar))return;let{body:u}=document,d=window.innerWidth-u.offsetWidth;if(Ye(t.preventScrollbarShift)){let c={overflow:"hidden"},f=[];d>0&&(Ye(t.preventScrollbarShiftMode)==="padding"?c.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${d}px)`:c.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${d}px)`,f.push({key:"--scrollbar-width",value:`${d}px`}));let p=window.scrollY,m=window.scrollX;ld({key:"prevent-scroll",element:u,style:c,properties:f,cleanup:()=>{Ye(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,p)}})}else ld({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),W(()=>{!n1(a)||!Ye(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),X(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=dd(u),r=null,n=null},i=u=>{let d=u.target,c=Ye(t.element),f=l1(u),p=Math.abs(f[0])>Math.abs(f[1])?"x":"y",m=p==="x"?f[0]:f[1],g=cd(d,p,m,c),h;c&&Xs(c,d)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let d=Ye(t.element),c=u.target,f;if(u.touches.length===2)f=!Ye(t.allowPinchZoom);else{if(r==null||n===null){let p=dd(u).map((g,h)=>o[h]-g),m=Math.abs(p[0])>Math.abs(p[1])?"x":"y";r=m,n=m==="x"?p[0]:p[1]}if(c.type==="range")f=!1;else{let p=cd(c,r,n,d);d&&Xs(d,c)?f=!p:f=!0}}f&&u.cancelable&&u.preventDefault()}},l1=e=>[e.deltaX,e.deltaY],dd=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],cd=(e,t,a,o)=>{let r=o!==null&&Xs(o,e),[n,s]=r1(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Xs=(e,t)=>{if(e.contains(t))return!0;let a=t;for(;a;){if(a===e)return!0;a=a._$host??a.parentElement}return!1},i1=s1,u1=i1,Lc=_e();Sc=_e();kc=_e();d1=_e();Mr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Mr.next(e==="ltr"?"rtl":"ltr",t)},fd={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};c1=_e();Tc=_e();Nc=_e();x1={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};pd=["Enter"," "],y1={open:(e,t)=>e==="ltr"?[...pd,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...pd,t==="horizontal"?"ArrowLeft":"ArrowUp"]};C1={};Nn(C1,{Root:()=>_n,Separator:()=>b1});b1=_n,qe={};Nn(qe,{Arrow:()=>fl,CheckboxItem:()=>Pc,Content:()=>Gc,DropdownMenu:()=>w1,Group:()=>gl,GroupLabel:()=>Dc,Icon:()=>Ec,Item:()=>Fc,ItemDescription:()=>Oc,ItemIndicator:()=>Bc,ItemLabel:()=>$c,Portal:()=>qc,RadioGroup:()=>zc,RadioItem:()=>Uc,Root:()=>Wc,Separator:()=>_n,Sub:()=>_c,SubContent:()=>Vc,SubTrigger:()=>Kc,Trigger:()=>Mc});w1=Object.assign(Wc,{Arrow:fl,CheckboxItem:Pc,Content:Gc,Group:gl,GroupLabel:Dc,Icon:Ec,Item:Fc,ItemDescription:Oc,ItemIndicator:Bc,ItemLabel:$c,Portal:qc,RadioGroup:zc,RadioItem:Uc,Separator:_n,Sub:_c,SubContent:Vc,SubTrigger:Kc,Trigger:Mc}),A={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}},L1=V('<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>'),I1=V('<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>'),S1=V('<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>'),k1=V('<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>'),hl=V('<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>'),P1=V('<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>'),M1=V('<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>'),A1=V('<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>'),R1=V('<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">'),T1=V('<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">'),D1=V('<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>'),E1=V('<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>'),F1=V('<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>'),O1=V('<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>'),Qc=V('<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>'),B1=V('<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>'),$1=V('<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>'),q1=V('<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>'),N1=V('<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>'),z1=V('<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>'),U1=V('<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>'),H1=V('<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>'),_1=V('<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>');dy=V('<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>'),cy=V('<button title="Copy object to clipboard">'),fy=V('<button title="Remove all items"aria-label="Remove all items">'),py=V('<button title="Delete item"aria-label="Delete item">'),my=V('<button title="Toggle value"aria-label="Toggle value">'),gy=V('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),br=V("<div>"),hy=V("<div><button> <span></span> <span> "),xy=V("<input>"),xd=V("<span>"),yy=V("<div><span>:"),vy=V("<div><div><button> [<!>...<!>]");yd=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ro(a):Ao(a));return(()=>{var r=dy();return G(()=>O(r,U(o().expander,a`
|
|
2
2
|
transform: rotate(${e.expanded?90:0}deg);
|
|
3
3
|
`,e.expanded&&a`
|
|
4
4
|
& svg {
|
|
5
5
|
top: -1px;
|
|
6
6
|
}
|
|
7
|
-
`))),r})()},
|
|
8
|
-
width: ${
|
|
9
|
-
height: ${
|
|
10
|
-
`))),n})()};
|
|
7
|
+
`))),r})()},by=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ro(a):Ao(a)),[r,n]=N("NoCopy");return(()=>{var s=cy();return As(s,"click",r()==="NoCopy"?()=>{navigator.clipboard.writeText(wu(e.value)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},i=>{n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,!0),M(s,y(au,{get children(){return[y(yn,{get when(){return r()==="NoCopy"},get children(){return y(ey,{})}}),y(yn,{get when(){return r()==="SuccessCopy"},get children(){return y(ay,{get theme(){return t()}})}}),y(yn,{get when(){return r()==="ErrorCopy"},get children(){return y(oy,{})}})]}})),G(i=>{var l=o().actionButton,u=`${r()==="NoCopy"?"Copy object to clipboard":r()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return l!==i.e&&O(s,i.e=l),u!==i.t&&E(s,"aria-label",i.t=u),i},{e:void 0,t:void 0}),s})()},wy=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ro(a):Ao(a)),r=j().client;return(()=>{var n=fy();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Ma(s,e.dataPath,[]);r.setQueryData(e.activeQuery.queryKey,i)},M(n,y(ry,{})),G(()=>O(n,o().actionButton)),n})()},vd=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ro(a):Ao(a)),r=j().client;return(()=>{var n=py();return n.$$click=()=>{let s=e.activeQuery.state.data,i=xo(s,e.dataPath);r.setQueryData(e.activeQuery.queryKey,i)},M(n,y(jc,{})),G(()=>O(n,U(o().actionButton))),n})()},Ly=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ro(a):Ao(a)),r=j().client;return(()=>{var n=my();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Ma(s,e.dataPath,!e.value);r.setQueryData(e.activeQuery.queryKey,i)},M(n,y(ny,{get theme(){return t()},get checked(){return e.value}})),G(()=>O(n,U(o().actionButton,a`
|
|
8
|
+
width: ${A.size[3.5]};
|
|
9
|
+
height: ${A.size[3.5]};
|
|
10
|
+
`))),n})()};Xc=(e,t)=>{let{colors:a,font:o,size:r,border:n}=A,s=(i,l)=>e==="light"?i:l;return{entry:t`
|
|
11
11
|
& * {
|
|
12
12
|
font-size: ${o.size.xs};
|
|
13
13
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
outline: 2px solid ${a.blue[800]};
|
|
119
119
|
outline-offset: 2px;
|
|
120
120
|
}
|
|
121
|
-
`}},
|
|
121
|
+
`}},Ao=e=>Xc("light",e),Ro=e=>Xc("dark",e);hr(["click"]);Iy=V('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),Br=V("<div>"),Sy=V('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),ky=V("<select name=tsqd-queries-filter-sort>"),Py=V("<select name=tsqd-mutations-filter-sort>"),My=V("<span>Asc"),Ay=V("<span>Desc"),Ry=V('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Ty=V("<div>Settings"),Dy=V("<span>Position"),Ey=V("<span>Top"),Fy=V("<span>Bottom"),Oy=V("<span>Left"),By=V("<span>Right"),$y=V("<span>Theme"),qy=V("<span>Light"),Ny=V("<span>Dark"),zy=V("<span>System"),Uy=V("<div><div class=tsqd-queries-container>"),Hy=V("<div><div class=tsqd-mutations-container>"),_y=V('<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>'),bd=V("<option>Sort by "),Vy=V("<div class=tsqd-query-disabled-indicator>disabled"),Zc=V("<button><div></div><code class=tsqd-query-hash>"),Ky=V("<div role=tooltip id=tsqd-status-tooltip>"),Gy=V("<span>"),Wy=V("<button><span></span><span>"),Qy=V("<button><span></span> Error"),jy=V('<div><span></span>Trigger Error<select><option value=""disabled selected>'),Xy=V('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),Zy=V("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),Jy=V('<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">'),Yy=V("<option>"),ev=V('<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">'),[dt,Vn]=N(null),[Da,Jc]=N(null),[Mt,xl]=N(0),[wo,wd]=N(!1),Yc=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?wt(a):bt(a)),r=Js(),n=k(()=>j().buttonPosition||rh),s=k(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:j().initialIsOpen||nh),i=k(()=>e.localStore.position||j().position||Us),l;W(()=>{let d=l.parentElement,c=e.localStore.height||Ld,f=e.localStore.width||Id,p=i();d.style.setProperty("--tsqd-panel-height",`${p==="top"?"-":""}${c}px`),d.style.setProperty("--tsqd-panel-width",`${p==="left"?"-":""}${f}px`)}),na(()=>{let d=()=>{let c=l.parentElement,f=getComputedStyle(c).fontSize;c.style.setProperty("--tsqd-font-size",f)};d(),window.addEventListener("focus",d),X(()=>{window.removeEventListener("focus",d)})});let u=k(()=>e.localStore.pip_open??"false");return[y(Q,{get when(){return k(()=>!!r().pipWindow)()&&u()=="true"},get children(){return y(Ts,{get mount(){return r().pipWindow?.document.body},get children(){return y(tv,{get children(){return y(Kn,e)}})}})}}),(()=>{var d=Br(),c=l;return typeof c=="function"?ja(c,d):l=d,M(d,y($u,{name:"tsqd-panel-transition",get children(){return y(Q,{get when(){return k(()=>!!(s()&&!r().pipWindow))()&&u()=="false"},get children(){return y(av,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),M(d,y($u,{name:"tsqd-button-transition",get children(){return y(Q,{get when(){return!s()},get children(){var f=Iy(),p=f.firstChild,m=p.nextSibling;return M(p,y(hd,{})),m.$$click=()=>e.setLocalStore("open","true"),M(m,y(hd,{})),G(()=>O(f,U(o().devtoolsBtn,o()[`devtoolsBtn-position-${n()}`],"tsqd-open-btn-container"))),f}})}}),null),G(()=>O(d,U(a`
|
|
122
122
|
& .tsqd-panel-transition-exit-active,
|
|
123
123
|
& .tsqd-panel-transition-enter-active {
|
|
124
124
|
transition:
|
|
@@ -144,62 +144,62 @@
|
|
|
144
144
|
transform: ${n()==="relative"?"none;":n()==="top-left"?"translateX(-72px);":n()==="top-right"?"translateX(72px);":"translateY(72px);"};
|
|
145
145
|
opacity: 0;
|
|
146
146
|
}
|
|
147
|
-
`,"tsqd-transitions-container"))),d})()]},
|
|
147
|
+
`,"tsqd-transitions-container"))),d})()]},tv=e=>{let t=Js(),a=Ke(),o=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,r=k(()=>a()==="dark"?wt(o):bt(o)),n=()=>{let{colors:s}=A,i=(l,u)=>a()==="dark"?u:l;return Mt()<eo?o`
|
|
148
148
|
flex-direction: column;
|
|
149
149
|
background-color: ${i(s.gray[300],s.gray[600])};
|
|
150
150
|
`:o`
|
|
151
151
|
flex-direction: row;
|
|
152
152
|
background-color: ${i(s.gray[200],s.darkGray[900])};
|
|
153
|
-
`};return W(()=>{let s=t().pipWindow,i=()=>{s&&
|
|
153
|
+
`};return W(()=>{let s=t().pipWindow,i=()=>{s&&xl(s.innerWidth)};s&&(s.addEventListener("resize",i),i()),X(()=>{s&&s.removeEventListener("resize",i)})}),(()=>{var s=Br();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),M(s,()=>e.children),G(()=>O(s,U(r().panel,n(),{[o`
|
|
154
154
|
min-width: min-content;
|
|
155
|
-
`]:
|
|
155
|
+
`]:Mt()<Zs},"tsqd-main-panel"))),s})()},ef=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?wt(a):bt(a)),r;na(()=>{Rd(r,({width:s},i)=>{i===r&&xl(s)})});let n=()=>{let{colors:s}=A,i=(l,u)=>t()==="dark"?u:l;return Mt()<eo?a`
|
|
156
156
|
flex-direction: column;
|
|
157
157
|
background-color: ${i(s.gray[300],s.gray[600])};
|
|
158
158
|
`:a`
|
|
159
159
|
flex-direction: row;
|
|
160
160
|
background-color: ${i(s.gray[200],s.darkGray[900])};
|
|
161
|
-
`};return(()=>{var s=
|
|
161
|
+
`};return(()=>{var s=Br(),i=r;return typeof i=="function"?ja(i,s):r=s,s.style.setProperty("--tsqd-font-size","16px"),M(s,()=>e.children),G(()=>O(s,U(o().parentPanel,n(),{[a`
|
|
162
162
|
min-width: min-content;
|
|
163
|
-
`]:
|
|
163
|
+
`]:Mt()<Zs},"tsqd-main-panel"))),s})()},av=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?wt(a):bt(a)),[r,n]=N(!1),s=k(()=>e.localStore.position||j().position||Us),i=d=>{let c=d.currentTarget.parentElement;if(!c)return;n(!0);let{height:f,width:p}=c.getBoundingClientRect(),m=d.clientX,g=d.clientY,h=0,x=Es(3.5),v=Es(12),C=S=>{if(S.preventDefault(),s()==="left"||s()==="right"){let F=s()==="right"?m-S.clientX:S.clientX-m;h=Math.round(p+F),h<v&&(h=v),e.setLocalStore("width",String(Math.round(h)));let D=c.getBoundingClientRect().width;Number(e.localStore.width)<D&&e.setLocalStore("width",String(D))}else{let F=s()==="bottom"?g-S.clientY:S.clientY-g;h=Math.round(f+F),h<x&&(h=x,Vn(null)),e.setLocalStore("height",String(Math.round(h)))}},w=()=>{r()&&n(!1),document.removeEventListener("mousemove",C,!1),document.removeEventListener("mouseUp",w,!1)};document.addEventListener("mousemove",C,!1),document.addEventListener("mouseup",w,!1)},l;na(()=>{Rd(l,({width:d},c)=>{c===l&&xl(d)})}),W(()=>{let d=l.parentElement?.parentElement?.parentElement;if(!d)return;let c=e.localStore.position||Us,f=Lu("padding",c),p=e.localStore.position==="left"||e.localStore.position==="right",m=(({padding:g,paddingTop:h,paddingBottom:x,paddingLeft:v,paddingRight:C})=>({padding:g,paddingTop:h,paddingBottom:x,paddingLeft:v,paddingRight:C}))(d.style);d.style[f]=`${p?e.localStore.width:e.localStore.height}px`,X(()=>{Object.entries(m).forEach(([g,h])=>{d.style[g]=h})})});let u=()=>{let{colors:d}=A,c=(f,p)=>t()==="dark"?p:f;return Mt()<eo?a`
|
|
164
164
|
flex-direction: column;
|
|
165
165
|
background-color: ${c(d.gray[300],d.gray[600])};
|
|
166
166
|
`:a`
|
|
167
167
|
flex-direction: row;
|
|
168
168
|
background-color: ${c(d.gray[200],d.darkGray[900])};
|
|
169
|
-
`};return(()=>{var d=
|
|
169
|
+
`};return(()=>{var d=Sy(),c=d.firstChild,f=c.nextSibling,p=l;return typeof p=="function"?ja(p,d):l=d,c.$$mousedown=i,f.$$click=()=>e.setLocalStore("open","false"),M(f,y(Ir,{})),M(d,y(Kn,e),null),G(m=>{var g=U(o().panel,o()[`panel-position-${s()}`],u(),{[a`
|
|
170
170
|
min-width: min-content;
|
|
171
|
-
`]:
|
|
171
|
+
`]:Mt()<Zs&&(s()==="right"||s()==="left")},"tsqd-main-panel"),h=s()==="bottom"||s()==="top"?`${e.localStore.height||Ld}px`:"auto",x=s()==="right"||s()==="left"?`${e.localStore.width||Id}px`:"auto",v=U(o().dragHandle,o()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),C=U(o().closeBtn,o()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return g!==m.e&&O(d,m.e=g),h!==m.t&&((m.t=h)!=null?d.style.setProperty("height",h):d.style.removeProperty("height")),x!==m.a&&((m.a=x)!=null?d.style.setProperty("width",x):d.style.removeProperty("width")),v!==m.o&&O(c,m.o=v),C!==m.i&&O(f,m.i=C),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),d})()},Kn=e=>{uv(),dv();let t,a=Ke(),o=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,r=k(()=>a()==="dark"?wt(o):bt(o)),n=Js(),[s,i]=N("queries"),l=k(()=>e.localStore.sort||lh),u=k(()=>Number(e.localStore.sortOrder)||Ru),d=k(()=>e.localStore.mutationSort||ih),c=k(()=>Number(e.localStore.mutationSortOrder)||Ru),f=k(()=>Cn[l()]),p=k(()=>bn[d()]),m=k(()=>j().onlineManager),g=k(()=>j().client.getQueryCache()),h=k(()=>j().client.getMutationCache()),x=We(D=>D().getAll().length,!1),v=k(qt(()=>[x(),e.localStore.filter,l(),u()],()=>{let D=g().getAll(),T=e.localStore.filter?D.filter(I=>Tu(I.queryHash,e.localStore.filter||"").passed):[...D];return f()?T.sort((I,H)=>f()(I,H)*u()):T})),C=Pt(D=>D().getAll().length,!1),w=k(qt(()=>[C(),e.localStore.mutationFilter,d(),c()],()=>{let D=h().getAll(),T=e.localStore.mutationFilter?D.filter(I=>{let H=`${I.options.mutationKey?JSON.stringify(I.options.mutationKey)+" - ":""}${new Date(I.state.submittedAt).toLocaleString()}`;return Tu(H,e.localStore.mutationFilter||"").passed}):[...D];return p()?T.sort((I,H)=>p()(I,H)*c()):T})),S=D=>{e.setLocalStore("position",D)},F=D=>{let L=getComputedStyle(t).getPropertyValue("--tsqd-font-size");D.style.setProperty("--tsqd-font-size",L)};return[(()=>{var D=_y(),T=D.firstChild,L=T.firstChild,I=L.firstChild,H=I.firstChild,P=H.nextSibling,Z=P.firstChild,re=T.nextSibling,xe=re.firstChild,fe=xe.firstChild,ye=fe.firstChild,ve=fe.nextSibling,pe=ve.nextSibling,De=xe.nextSibling,Me=De.firstChild,Fe=Me.nextSibling,at=t;return typeof at=="function"?ja(at,D):t=D,I.$$click=()=>{if(!n().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},M(P,()=>j().queryFlavor,Z),M(P,()=>j().version,null),M(L,y(yt.Root,{get class(){return U(r().viewToggle)},get value(){return s()},onChange:B=>{i(B),Vn(null),Jc(null)},get children(){return[y(yt.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[y(yt.ItemInput,{}),y(yt.ItemControl,{get children(){return y(yt.ItemIndicator,{})}}),y(yt.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),y(yt.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[y(yt.ItemInput,{}),y(yt.ItemControl,{get children(){return y(yt.ItemIndicator,{})}}),y(yt.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),M(T,y(Q,{get when(){return s()==="queries"},get children(){return y(nv,{})}}),null),M(T,y(Q,{get when(){return s()==="mutations"},get children(){return y(sv,{})}}),null),M(fe,y(V1,{}),ye),ye.$$input=B=>{s()==="queries"?e.setLocalStore("filter",B.currentTarget.value):e.setLocalStore("mutationFilter",B.currentTarget.value)},M(ve,y(Q,{get when(){return s()==="queries"},get children(){var B=ky();return B.addEventListener("change",Ee=>{e.setLocalStore("sort",Ee.currentTarget.value)}),M(B,()=>Object.keys(Cn).map(Ee=>(()=>{var me=bd();return me.firstChild,me.value=Ee,M(me,Ee,null),me})())),G(()=>B.value=l()),B}}),null),M(ve,y(Q,{get when(){return s()==="mutations"},get children(){var B=Py();return B.addEventListener("change",Ee=>{e.setLocalStore("mutationSort",Ee.currentTarget.value)}),M(B,()=>Object.keys(bn).map(Ee=>(()=>{var me=bd();return me.firstChild,me.value=Ee,M(me,Ee,null),me})())),G(()=>B.value=d()),B}}),null),M(ve,y(Ir,{}),null),pe.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(c()*-1))},M(pe,y(Q,{get when(){return(s()==="queries"?u():c())===1},get children(){return[My(),y(md,{})]}}),null),M(pe,y(Q,{get when(){return(s()==="queries"?u():c())===-1},get children(){return[Ay(),y(gd,{})]}}),null),Me.$$click=()=>{s()==="queries"?g().clear():h().clear()},M(Me,y(jc,{})),Fe.$$click=()=>{wo()?(m().setOnline(!0),wd(!1)):(m().setOnline(!1),wd(!0))},M(Fe,(()=>{var B=k(()=>!!wo());return()=>B()?y(Z1,{}):y(X1,{})})()),M(De,y(Q,{get when(){return k(()=>!n().pipWindow)()&&!n().disabled},get children(){var B=Ry();return B.$$click=()=>{n().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},M(B,y(Y1,{})),G(()=>O(B,U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),B}}),null),M(De,y(qe.Root,{gutter:4,get children(){return[y(qe.Trigger,{get class(){return U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return y(J1,{})}}),y(qe.Portal,{ref:B=>F(B),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return y(qe.Content,{get class(){return U(r().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var B=Ty();return G(()=>O(B,U(r().settingsMenuHeader,"tsqd-settings-menu-header"))),B})(),y(Q,{get when(){return!e.showPanelViewOnly},get children(){return y(qe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[y(qe.SubTrigger,{get class(){return U(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Dy(),y(Ir,{})]}}),y(qe.Portal,{ref:B=>F(B),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return y(qe.SubContent,{get class(){return U(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[y(qe.Item,{onSelect:()=>{S("top")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Ey(),y(md,{})]}}),y(qe.Item,{onSelect:()=>{S("bottom")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Fy(),y(gd,{})]}}),y(qe.Item,{onSelect:()=>{S("left")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Oy(),y(K1,{})]}}),y(qe.Item,{onSelect:()=>{S("right")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[By(),y(G1,{})]}})]}})}})]}})}}),y(qe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[y(qe.SubTrigger,{get class(){return U(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[$y(),y(Ir,{})]}}),y(qe.Portal,{ref:B=>F(B),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return y(qe.SubContent,{get class(){return U(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[y(qe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="light"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[qy(),y(W1,{})]}}),y(qe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="dark"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Ny(),y(Q1,{})]}}),y(qe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="system"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[zy(),y(j1,{})]}})]}})}})]}})]}})}})]}}),null),M(D,y(Q,{get when(){return s()==="queries"},get children(){var B=Uy(),Ee=B.firstChild;return M(Ee,y(kn,{by:me=>me.queryHash,get each(){return v()},children:me=>y(ov,{get query(){return me()}})})),G(()=>O(B,U(r().overflowQueryContainer,"tsqd-queries-overflow-container"))),B}}),null),M(D,y(Q,{get when(){return s()==="mutations"},get children(){var B=Hy(),Ee=B.firstChild;return M(Ee,y(kn,{by:me=>me.mutationId,get each(){return w()},children:me=>y(rv,{get mutation(){return me()}})})),G(()=>O(B,U(r().overflowQueryContainer,"tsqd-mutations-overflow-container"))),B}}),null),G(B=>{var Ee=U(r().queriesContainer,Mt()<eo&&(dt()||Da())&&o`
|
|
172
172
|
height: 50%;
|
|
173
173
|
max-height: 50%;
|
|
174
|
-
`,
|
|
174
|
+
`,Mt()<eo&&!(dt()||Da())&&o`
|
|
175
175
|
height: 100%;
|
|
176
176
|
max-height: 100%;
|
|
177
|
-
`,"tsqd-queries-container"),
|
|
177
|
+
`,"tsqd-queries-container"),me=U(r().row,"tsqd-header"),wa=r().logoAndToggleContainer,Y=U(r().logo,"tsqd-text-logo-container"),St=U(r().tanstackLogo,"tsqd-text-logo-tanstack"),je=U(r().queryFlavorLogo,"tsqd-text-logo-query-flavor"),uo=U(r().row,"tsqd-filters-actions-container"),gt=U(r().filtersContainer,"tsqd-filters-container"),La=U(r().filterInput,"tsqd-query-filter-textfield-container"),Va=U("tsqd-query-filter-textfield"),jt=U(r().filterSelect,"tsqd-query-filter-sort-container"),Ot=`Sort order ${(s()==="queries"?u():c())===-1?"descending":"ascending"}`,Xt=(s()==="queries"?u():c())===-1,z=U(r().actionsContainer,"tsqd-actions-container"),we=U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),ot=`Clear ${s()} cache`,Ie=U(r().actionsBtn,wo()&&r().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),be=`${wo()?"Unset offline mocking behavior":"Mock offline behavior"}`,Ae=wo(),He=`${wo()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Ee!==B.e&&O(D,B.e=Ee),me!==B.t&&O(T,B.t=me),wa!==B.a&&O(L,B.a=wa),Y!==B.o&&O(I,B.o=Y),St!==B.i&&O(H,B.i=St),je!==B.n&&O(P,B.n=je),uo!==B.s&&O(re,B.s=uo),gt!==B.h&&O(xe,B.h=gt),La!==B.r&&O(fe,B.r=La),Va!==B.d&&O(ye,B.d=Va),jt!==B.l&&O(ve,B.l=jt),Ot!==B.u&&E(pe,"aria-label",B.u=Ot),Xt!==B.c&&E(pe,"aria-pressed",B.c=Xt),z!==B.w&&O(De,B.w=z),we!==B.m&&O(Me,B.m=we),ot!==B.f&&E(Me,"title",B.f=ot),Ie!==B.y&&O(Fe,B.y=Ie),be!==B.g&&E(Fe,"aria-label",B.g=be),Ae!==B.p&&E(Fe,"aria-pressed",B.p=Ae),He!==B.b&&E(Fe,"title",B.b=He),B},{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}),G(()=>ye.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),D})(),y(Q,{get when(){return k(()=>s()==="queries")()&&dt()},get children(){return y(lv,{})}}),y(Q,{get when(){return k(()=>s()==="mutations")()&&Da()},get children(){return y(iv,{})}})]},ov=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?wt(a):bt(a)),{colors:r,alpha:n}=A,s=(p,m)=>t()==="dark"?m:p,i=We(p=>p().find({queryKey:e.query.queryKey})?.state,!0,p=>p.query.queryHash===e.query.queryHash),l=We(p=>p().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,p=>p.query.queryHash===e.query.queryHash),u=We(p=>p().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,p=>p.query.queryHash===e.query.queryHash),d=We(p=>p().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,p=>p.query.queryHash===e.query.queryHash),c=k(()=>Iu({queryState:i(),observerCount:d(),isStale:u()})),f=()=>c()==="gray"?a`
|
|
178
178
|
background-color: ${s(r[c()][200],r[c()][700])};
|
|
179
179
|
color: ${s(r[c()][700],r[c()][300])};
|
|
180
180
|
`:a`
|
|
181
181
|
background-color: ${s(r[c()][200]+n[80],r[c()][900])};
|
|
182
182
|
color: ${s(r[c()][800],r[c()][300])};
|
|
183
|
-
`;return y(Q,{get when(){return i()},get children(){var p=
|
|
183
|
+
`;return y(Q,{get when(){return i()},get children(){var p=Zc(),m=p.firstChild,g=m.nextSibling;return p.$$click=()=>Vn(e.query.queryHash===dt()?null:e.query.queryHash),M(m,d),M(g,()=>e.query.queryHash),M(p,y(Q,{get when(){return l()},get children(){return Vy()}}),null),G(h=>{var x=U(o().queryRow,dt()===e.query.queryHash&&o().selectedQueryRow,"tsqd-query-row"),v=`Query key ${e.query.queryHash}`,C=U(f(),"tsqd-query-observer-count");return x!==h.e&&O(p,h.e=x),v!==h.t&&E(p,"aria-label",h.t=v),C!==h.a&&O(m,h.a=C),h},{e:void 0,t:void 0,a:void 0}),p}})},rv=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?wt(a):bt(a)),{colors:r,alpha:n}=A,s=(f,p)=>t()==="dark"?p:f,i=Pt(f=>f().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),l=Pt(f=>{let m=f().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.isPaused:!1}),u=Pt(f=>{let m=f().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.status:"idle"}),d=k(()=>Ja({isPaused:l(),status:u()})),c=()=>d()==="gray"?a`
|
|
184
184
|
background-color: ${s(r[d()][200],r[d()][700])};
|
|
185
185
|
color: ${s(r[d()][700],r[d()][300])};
|
|
186
186
|
`:a`
|
|
187
187
|
background-color: ${s(r[d()][200]+n[80],r[d()][900])};
|
|
188
188
|
color: ${s(r[d()][800],r[d()][300])};
|
|
189
|
-
`;return y(Q,{get when(){return i()},get children(){var f=
|
|
189
|
+
`;return y(Q,{get when(){return i()},get children(){var f=Zc(),p=f.firstChild,m=p.nextSibling;return f.$$click=()=>{Jc(e.mutation.mutationId===Da()?null:e.mutation.mutationId)},M(p,y(Q,{get when(){return d()==="purple"},get children(){return y(uy,{})}}),null),M(p,y(Q,{get when(){return d()==="green"},get children(){return y(sy,{})}}),null),M(p,y(Q,{get when(){return d()==="red"},get children(){return y(iy,{})}}),null),M(p,y(Q,{get when(){return d()==="yellow"},get children(){return y(ly,{})}}),null),M(m,y(Q,{get when(){return e.mutation.options.mutationKey},get children(){return[k(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),M(m,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),G(g=>{var h=U(o().queryRow,Da()===e.mutation.mutationId&&o().selectedQueryRow,"tsqd-query-row"),x=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,v=U(c(),"tsqd-query-observer-count");return h!==g.e&&O(f,g.e=h),x!==g.t&&E(f,"aria-label",g.t=x),v!==g.a&&O(p,g.a=v),g},{e:void 0,t:void 0,a:void 0}),f}})},nv=()=>{let e=We(l=>l().getAll().filter(u=>Za(u)==="stale").length),t=We(l=>l().getAll().filter(u=>Za(u)==="fresh").length),a=We(l=>l().getAll().filter(u=>Za(u)==="fetching").length),o=We(l=>l().getAll().filter(u=>Za(u)==="paused").length),r=We(l=>l().getAll().filter(u=>Za(u)==="inactive").length),n=Ke(),s=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,i=k(()=>n()==="dark"?wt(s):bt(s));return(()=>{var l=Br();return M(l,y(ia,{label:"Fresh",color:"green",get count(){return t()}}),null),M(l,y(ia,{label:"Fetching",color:"blue",get count(){return a()}}),null),M(l,y(ia,{label:"Paused",color:"purple",get count(){return o()}}),null),M(l,y(ia,{label:"Stale",color:"yellow",get count(){return e()}}),null),M(l,y(ia,{label:"Inactive",color:"gray",get count(){return r()}}),null),G(()=>O(l,U(i().queryStatusContainer,"tsqd-query-status-container"))),l})()},sv=()=>{let e=Pt(i=>i().getAll().filter(l=>Ja({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=Pt(i=>i().getAll().filter(l=>Ja({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),a=Pt(i=>i().getAll().filter(l=>Ja({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),o=Pt(i=>i().getAll().filter(l=>Ja({isPaused:l.state.isPaused,status:l.state.status})==="red").length),r=Ke(),n=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,s=k(()=>r()==="dark"?wt(n):bt(n));return(()=>{var i=Br();return M(i,y(ia,{label:"Paused",color:"purple",get count(){return a()}}),null),M(i,y(ia,{label:"Pending",color:"yellow",get count(){return t()}}),null),M(i,y(ia,{label:"Success",color:"green",get count(){return e()}}),null),M(i,y(ia,{label:"Error",color:"red",get count(){return o()}}),null),G(()=>O(i,U(s().queryStatusContainer,"tsqd-query-status-container"))),i})()},ia=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?wt(a):bt(a)),{colors:r,alpha:n}=A,s=(p,m)=>t()==="dark"?m:p,i,[l,u]=N(!1),[d,c]=N(!1),f=k(()=>!(dt()&&Mt()<oh&&Mt()>eo||Mt()<eo));return(()=>{var p=Wy(),m=p.firstChild,g=m.nextSibling,h=i;return typeof h=="function"?ja(h,p):i=p,p.addEventListener("mouseleave",()=>{u(!1),c(!1)}),p.addEventListener("mouseenter",()=>u(!0)),p.addEventListener("blur",()=>c(!1)),p.addEventListener("focus",()=>c(!0)),Rs(p,ee({get disabled(){return f()},get class(){return U(o().queryStatusTag,!f()&&a`
|
|
190
190
|
cursor: pointer;
|
|
191
191
|
&:hover {
|
|
192
192
|
background: ${s(r.gray[200],r.darkGray[400])}${n[80]};
|
|
193
193
|
}
|
|
194
|
-
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),
|
|
195
|
-
width: ${
|
|
196
|
-
height: ${
|
|
197
|
-
border-radius: ${
|
|
198
|
-
background-color: ${
|
|
199
|
-
`,"tsqd-query-status-tag-dot"),C=
|
|
194
|
+
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),M(p,y(Q,{get when(){return k(()=>!f())()&&(l()||d())},get children(){var x=Ky();return M(x,()=>e.label),G(()=>O(x,U(o().statusTooltip,"tsqd-query-status-tooltip"))),x}}),m),M(p,y(Q,{get when(){return f()},get children(){var x=Gy();return M(x,()=>e.label),G(()=>O(x,U(o().queryStatusTagLabel,"tsqd-query-status-tag-label"))),x}}),g),M(g,()=>e.count),G(x=>{var v=U(a`
|
|
195
|
+
width: ${A.size[1.5]};
|
|
196
|
+
height: ${A.size[1.5]};
|
|
197
|
+
border-radius: ${A.border.radius.full};
|
|
198
|
+
background-color: ${A.colors[e.color][500]};
|
|
199
|
+
`,"tsqd-query-status-tag-dot"),C=U(o().queryStatusCount,e.count>0&&e.color!=="gray"&&a`
|
|
200
200
|
background-color: ${s(r[e.color][100],r[e.color][900])};
|
|
201
201
|
color: ${s(r[e.color][700],r[e.color][300])};
|
|
202
|
-
`,"tsqd-query-status-tag-count");return v!==x.e&&O(m,x.e=v),C!==x.t&&O(g,x.t=C),x},{e:void 0,t:void 0}),p})()},
|
|
202
|
+
`,"tsqd-query-status-tag-count");return v!==x.e&&O(m,x.e=v),C!==x.t&&O(g,x.t=C),x},{e:void 0,t:void 0}),p})()},lv=()=>{let e=Ke(),t=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,a=k(()=>e()==="dark"?wt(t):bt(t)),{colors:o}=A,r=(L,I)=>e()==="dark"?I:L,n=j().client,[s,i]=N(!1),[l,u]=N("view"),[d,c]=N(!1),f=k(()=>j().errorTypes||[]),p=We(L=>L().getAll().find(I=>I.queryHash===dt()),!1),m=We(L=>L().getAll().find(I=>I.queryHash===dt()),!1),g=We(L=>L().getAll().find(I=>I.queryHash===dt())?.state,!1),h=We(L=>L().getAll().find(I=>I.queryHash===dt())?.state.data,!1),x=We(L=>{let I=L().getAll().find(H=>H.queryHash===dt());return I?Za(I):"inactive"}),v=We(L=>{let I=L().getAll().find(H=>H.queryHash===dt());return I?I.state.status:"pending"}),C=We(L=>L().getAll().find(I=>I.queryHash===dt())?.getObserversCount()??0),w=k(()=>Su(x())),S=()=>{p()?.fetch()?.catch(()=>{})},F=L=>{let I=L?.initializer(p())??new Error("Unknown error from devtools"),H=p().options;p().setState({status:"error",error:I,fetchMeta:{...p().state.fetchMeta,__previousQueryOptions:H}})},D=()=>{let L=p(),I=L.state,H=L.state.fetchMeta?L.state.fetchMeta.__previousQueryOptions:null;L.cancel({silent:!0}),L.setState({...I,fetchStatus:"idle",fetchMeta:null}),H&&L.fetch(H)};W(()=>{x()!=="fetching"&&i(!1)});let T=()=>w()==="gray"?t`
|
|
203
203
|
background-color: ${r(o[w()][200],o[w()][700])};
|
|
204
204
|
color: ${r(o[w()][700],o[w()][300])};
|
|
205
205
|
border-color: ${r(o[w()][400],o[w()][600])};
|
|
@@ -207,37 +207,37 @@
|
|
|
207
207
|
background-color: ${r(o[w()][100],o[w()][900])};
|
|
208
208
|
color: ${r(o[w()][700],o[w()][300])};
|
|
209
209
|
border-color: ${r(o[w()][400],o[w()][600])};
|
|
210
|
-
`;return y(Q,{get when(){return k(()=>!!p())()&&g()},get children(){var
|
|
210
|
+
`;return y(Q,{get when(){return k(()=>!!p())()&&g()},get children(){var L=Jy(),I=L.firstChild,H=I.nextSibling,P=H.firstChild,Z=P.firstChild,re=Z.firstChild,xe=Z.nextSibling,fe=P.nextSibling,ye=fe.firstChild,ve=ye.nextSibling,pe=fe.nextSibling,De=pe.firstChild,Me=De.nextSibling,Fe=H.nextSibling,at=Fe.nextSibling,B=at.firstChild,Ee=B.firstChild,me=B.nextSibling,wa=me.firstChild,Y=me.nextSibling,St=Y.firstChild,je=Y.nextSibling,uo=je.firstChild,gt=je.nextSibling,La=gt.firstChild,Va=La.nextSibling,jt=at.nextSibling;jt.firstChild;var Ot=jt.nextSibling,Xt=Ot.nextSibling;return M(re,()=>xr(p().queryKey,!0)),M(xe,x),M(ve,C),M(Me,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),B.$$click=S,me.$$click=()=>n.invalidateQueries(p()),Y.$$click=()=>n.resetQueries(p()),je.$$click=()=>{n.removeQueries(p()),Vn(null)},gt.$$click=()=>{if(p()?.state.data===void 0)i(!0),D();else{let z=p();if(!z)return;let we=z.options;z.fetch({...we,queryFn:()=>new Promise(()=>{}),gcTime:-1}),z.setState({data:void 0,status:"pending",fetchMeta:{...z.state.fetchMeta,__previousQueryOptions:we}})}},M(gt,()=>v()==="pending"?"Restore":"Trigger",Va),M(at,y(Q,{get when(){return f().length===0||v()==="error"},get children(){var z=Qy(),we=z.firstChild,ot=we.nextSibling;return z.$$click=()=>{p().state.error?n.resetQueries(p()):F()},M(z,()=>v()==="error"?"Restore":"Trigger",ot),G(Ie=>{var be=U(t`
|
|
211
211
|
color: ${r(o.red[500],o.red[400])};
|
|
212
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),
|
|
212
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),Ae=v()==="pending",He=t`
|
|
213
213
|
background-color: ${r(o.red[500],o.red[400])};
|
|
214
|
-
`;return
|
|
215
|
-
background-color: ${
|
|
216
|
-
`,
|
|
214
|
+
`;return be!==Ie.e&&O(z,Ie.e=be),Ae!==Ie.t&&(z.disabled=Ie.t=Ae),He!==Ie.a&&O(we,Ie.a=He),Ie},{e:void 0,t:void 0,a:void 0}),z}}),null),M(at,y(Q,{get when(){return!(f().length===0||v()==="error")},get children(){var z=jy(),we=z.firstChild,ot=we.nextSibling,Ie=ot.nextSibling;return Ie.firstChild,Ie.addEventListener("change",be=>{let Ae=f().find(He=>He.name===be.currentTarget.value);F(Ae)}),M(Ie,y(eu,{get each(){return f()},children:be=>(()=>{var Ae=Yy();return M(Ae,()=>be.name),G(()=>Ae.value=be.name),Ae})()}),null),M(z,y(Ir,{}),null),G(be=>{var Ae=U(a().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),He=t`
|
|
215
|
+
background-color: ${A.colors.red[400]};
|
|
216
|
+
`,Ce=v()==="pending";return Ae!==be.e&&O(z,be.e=Ae),He!==be.t&&O(we,be.t=He),Ce!==be.a&&(Ie.disabled=be.a=Ce),be},{e:void 0,t:void 0,a:void 0}),z}}),null),M(jt,()=>l()==="view"?"Explorer":"Editor",null),M(L,y(Q,{get when(){return l()==="view"},get children(){var z=Xy();return M(z,y(Ta,{label:"Data",defaultExpanded:["Data"],get value(){return h()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return p()}})),G(we=>(we=A.size[2])!=null?z.style.setProperty("padding",we):z.style.removeProperty("padding")),z}}),Ot),M(L,y(Q,{get when(){return l()==="edit"},get children(){var z=Zy(),we=z.firstChild,ot=we.nextSibling,Ie=ot.firstChild,be=Ie.nextSibling,Ae=be.firstChild,He=Ae.nextSibling;return z.addEventListener("submit",Ce=>{Ce.preventDefault();let Jt=new FormData(Ce.currentTarget).get("data");try{let kt=JSON.parse(Jt);p().setState({...p().state,data:kt}),u("view")}catch{c(!0)}}),we.addEventListener("focus",()=>c(!1)),M(Ie,()=>d()?"Invalid Value":""),Ae.$$click=()=>u("view"),G(Ce=>{var Zt=U(a().devtoolsEditForm,"tsqd-query-details-data-editor"),Jt=a().devtoolsEditTextarea,kt=d(),Ka=a().devtoolsEditFormActions,Yt=a().devtoolsEditFormError,Ga=a().devtoolsEditFormActionContainer,ea=U(a().devtoolsEditFormAction,t`
|
|
217
217
|
color: ${r(o.gray[600],o.gray[300])};
|
|
218
|
-
`),
|
|
218
|
+
`),Ia=U(a().devtoolsEditFormAction,t`
|
|
219
219
|
color: ${r(o.blue[600],o.blue[400])};
|
|
220
|
-
`);return
|
|
220
|
+
`);return Zt!==Ce.e&&O(z,Ce.e=Zt),Jt!==Ce.t&&O(we,Ce.t=Jt),kt!==Ce.a&&E(we,"data-error",Ce.a=kt),Ka!==Ce.o&&O(ot,Ce.o=Ka),Yt!==Ce.i&&O(Ie,Ce.i=Yt),Ga!==Ce.n&&O(be,Ce.n=Ga),ea!==Ce.s&&O(Ae,Ce.s=ea),Ia!==Ce.h&&O(He,Ce.h=Ia),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}),G(()=>we.value=JSON.stringify(h(),null,2)),z}}),Ot),M(Xt,y(Ta,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return m()}})),G(z=>{var we=U(a().detailsContainer,"tsqd-query-details-container"),ot=U(a().detailsHeader,"tsqd-query-details-header"),Ie=U(a().detailsBody,"tsqd-query-details-summary-container"),be=U(a().queryDetailsStatus,T()),Ae=U(a().detailsHeader,"tsqd-query-details-header"),He=U(a().actionsBody,"tsqd-query-details-actions-container"),Ce=U(t`
|
|
221
221
|
color: ${r(o.blue[600],o.blue[400])};
|
|
222
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),
|
|
222
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),Zt=x()==="fetching",Jt=t`
|
|
223
223
|
background-color: ${r(o.blue[600],o.blue[400])};
|
|
224
|
-
`,
|
|
224
|
+
`,kt=U(t`
|
|
225
225
|
color: ${r(o.yellow[600],o.yellow[400])};
|
|
226
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),
|
|
226
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),Ka=v()==="pending",Yt=t`
|
|
227
227
|
background-color: ${r(o.yellow[600],o.yellow[400])};
|
|
228
|
-
`,
|
|
228
|
+
`,Ga=U(t`
|
|
229
229
|
color: ${r(o.gray[600],o.gray[300])};
|
|
230
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),
|
|
230
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),ea=v()==="pending",Ia=t`
|
|
231
231
|
background-color: ${r(o.gray[600],o.gray[400])};
|
|
232
|
-
`,jr=
|
|
232
|
+
`,jr=U(t`
|
|
233
233
|
color: ${r(o.pink[500],o.pink[400])};
|
|
234
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),
|
|
234
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),Bo=x()==="fetching",Xr=t`
|
|
235
235
|
background-color: ${r(o.pink[500],o.pink[400])};
|
|
236
|
-
`,
|
|
236
|
+
`,co=U(t`
|
|
237
237
|
color: ${r(o.cyan[500],o.cyan[400])};
|
|
238
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),Zr=s()
|
|
238
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),Zr=s(),$o=t`
|
|
239
239
|
background-color: ${r(o.cyan[500],o.cyan[400])};
|
|
240
|
-
`,
|
|
240
|
+
`,qo=U(a().detailsHeader,"tsqd-query-details-header"),No=U(a().detailsHeader,"tsqd-query-details-header"),fo=A.size[2];return we!==z.e&&O(L,z.e=we),ot!==z.t&&O(I,z.t=ot),Ie!==z.a&&O(H,z.a=Ie),be!==z.o&&O(xe,z.o=be),Ae!==z.i&&O(Fe,z.i=Ae),He!==z.n&&O(at,z.n=He),Ce!==z.s&&O(B,z.s=Ce),Zt!==z.h&&(B.disabled=z.h=Zt),Jt!==z.r&&O(Ee,z.r=Jt),kt!==z.d&&O(me,z.d=kt),Ka!==z.l&&(me.disabled=z.l=Ka),Yt!==z.u&&O(wa,z.u=Yt),Ga!==z.c&&O(Y,z.c=Ga),ea!==z.w&&(Y.disabled=z.w=ea),Ia!==z.m&&O(St,z.m=Ia),jr!==z.f&&O(je,z.f=jr),Bo!==z.y&&(je.disabled=z.y=Bo),Xr!==z.g&&O(uo,z.g=Xr),co!==z.p&&O(gt,z.p=co),Zr!==z.b&&(gt.disabled=z.b=Zr),$o!==z.T&&O(La,z.T=$o),qo!==z.A&&O(jt,z.A=qo),No!==z.O&&O(Ot,z.O=No),fo!==z.I&&((z.I=fo)!=null?Xt.style.setProperty("padding",fo):Xt.style.removeProperty("padding")),z},{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}),L}})},iv=()=>{let e=Ke(),t=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,a=k(()=>e()==="dark"?wt(t):bt(t)),{colors:o}=A,r=(d,c)=>e()==="dark"?c:d,n=Pt(d=>{let f=d().getAll().find(p=>p.mutationId===Da());return f?f.state.isPaused:!1}),s=Pt(d=>{let f=d().getAll().find(p=>p.mutationId===Da());return f?f.state.status:"idle"}),i=k(()=>Ja({isPaused:n(),status:s()})),l=Pt(d=>d().getAll().find(c=>c.mutationId===Da()),!1),u=()=>i()==="gray"?t`
|
|
241
241
|
background-color: ${r(o[i()][200],o[i()][700])};
|
|
242
242
|
color: ${r(o[i()][700],o[i()][300])};
|
|
243
243
|
border-color: ${r(o[i()][400],o[i()][600])};
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
background-color: ${r(o[i()][100],o[i()][900])};
|
|
246
246
|
color: ${r(o[i()][700],o[i()][300])};
|
|
247
247
|
border-color: ${r(o[i()][400],o[i()][600])};
|
|
248
|
-
`;return y(Q,{get when(){return l()},get children(){var d=
|
|
248
|
+
`;return y(Q,{get when(){return l()},get children(){var d=ev(),c=d.firstChild,f=c.nextSibling,p=f.firstChild,m=p.firstChild,g=m.firstChild,h=m.nextSibling,x=p.nextSibling,v=x.firstChild,C=v.nextSibling,w=f.nextSibling,S=w.nextSibling,F=S.nextSibling,D=F.nextSibling,T=D.nextSibling,L=T.nextSibling,I=L.nextSibling,H=I.nextSibling;return M(g,y(Q,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return xr(l().options.mutationKey,!0)}})),M(h,y(Q,{get when(){return i()==="purple"},children:"pending"}),null),M(h,y(Q,{get when(){return i()!=="purple"},get children(){return s()}}),null),M(C,()=>new Date(l().state.submittedAt).toLocaleTimeString()),M(S,y(Ta,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),M(D,y(Ta,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),M(L,y(Ta,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),M(H,y(Ta,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),G(P=>{var Z=U(a().detailsContainer,"tsqd-query-details-container"),re=U(a().detailsHeader,"tsqd-query-details-header"),xe=U(a().detailsBody,"tsqd-query-details-summary-container"),fe=U(a().queryDetailsStatus,u()),ye=U(a().detailsHeader,"tsqd-query-details-header"),ve=A.size[2],pe=U(a().detailsHeader,"tsqd-query-details-header"),De=A.size[2],Me=U(a().detailsHeader,"tsqd-query-details-header"),Fe=A.size[2],at=U(a().detailsHeader,"tsqd-query-details-header"),B=A.size[2];return Z!==P.e&&O(d,P.e=Z),re!==P.t&&O(c,P.t=re),xe!==P.a&&O(f,P.a=xe),fe!==P.o&&O(h,P.o=fe),ye!==P.i&&O(w,P.i=ye),ve!==P.n&&((P.n=ve)!=null?S.style.setProperty("padding",ve):S.style.removeProperty("padding")),pe!==P.s&&O(F,P.s=pe),De!==P.h&&((P.h=De)!=null?D.style.setProperty("padding",De):D.style.removeProperty("padding")),Me!==P.r&&O(T,P.r=Me),Fe!==P.d&&((P.d=Fe)!=null?L.style.setProperty("padding",Fe):L.style.removeProperty("padding")),at!==P.l&&O(I,P.l=at),B!==P.u&&((P.u=B)!=null?H.style.setProperty("padding",B):H.style.removeProperty("padding")),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}),d}})},Tn=new Map,uv=()=>{let e=k(()=>j().client.getQueryCache()),t=e().subscribe(a=>{Vi(()=>{for(let[o,r]of Tn.entries())r.shouldUpdate(a)&&r.setter(o(e))})});return X(()=>{Tn.clear(),t()}),t},We=(e,t=!0,a=()=>!0)=>{let o=k(()=>j().client.getQueryCache()),[r,n]=N(e(o),t?void 0:{equals:!1});return W(()=>{n(e(o))}),Tn.set(e,{setter:n,shouldUpdate:a}),X(()=>{Tn.delete(e)}),r},Dn=new Map,dv=()=>{let e=k(()=>j().client.getMutationCache()),t=e().subscribe(()=>{for(let[a,o]of Dn.entries())queueMicrotask(()=>{o(a(e))})});return X(()=>{Dn.clear(),t()}),t},Pt=(e,t=!0)=>{let a=k(()=>j().client.getMutationCache()),[o,r]=N(e(a),t?void 0:{equals:!1});return W(()=>{r(e(a))}),Dn.set(e,r),X(()=>{Dn.delete(e)}),o},tf=(e,t)=>{let{colors:a,font:o,size:r,alpha:n,shadow:s,border:i}=A,l=(u,d)=>e==="light"?u:d;return{devtoolsBtn:t`
|
|
249
249
|
z-index: 100000;
|
|
250
250
|
position: fixed;
|
|
251
251
|
padding: 4px;
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
position: fixed;
|
|
303
303
|
z-index: 9999;
|
|
304
304
|
display: flex;
|
|
305
|
-
gap: ${
|
|
305
|
+
gap: ${A.size[.5]};
|
|
306
306
|
& * {
|
|
307
307
|
box-sizing: border-box;
|
|
308
308
|
text-transform: none;
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
z-index: 9999;
|
|
328
328
|
display: flex;
|
|
329
329
|
height: 100%;
|
|
330
|
-
gap: ${
|
|
330
|
+
gap: ${A.size[.5]};
|
|
331
331
|
& * {
|
|
332
332
|
box-sizing: border-box;
|
|
333
333
|
text-transform: none;
|
|
@@ -533,8 +533,8 @@
|
|
|
533
533
|
display: flex;
|
|
534
534
|
justify-content: space-between;
|
|
535
535
|
align-items: center;
|
|
536
|
-
padding: ${
|
|
537
|
-
gap: ${
|
|
536
|
+
padding: ${A.size[2]} ${A.size[2.5]};
|
|
537
|
+
gap: ${A.size[2.5]};
|
|
538
538
|
border-bottom: ${l(a.gray[300],a.darkGray[500])} 1px solid;
|
|
539
539
|
align-items: center;
|
|
540
540
|
& > button {
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
}
|
|
548
548
|
`,logoAndToggleContainer:t`
|
|
549
549
|
display: flex;
|
|
550
|
-
gap: ${
|
|
550
|
+
gap: ${A.size[3]};
|
|
551
551
|
align-items: center;
|
|
552
552
|
`,logo:t`
|
|
553
553
|
cursor: pointer;
|
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
flex-direction: column;
|
|
556
556
|
background-color: transparent;
|
|
557
557
|
border: none;
|
|
558
|
-
gap: ${
|
|
558
|
+
gap: ${A.size[.5]};
|
|
559
559
|
padding: 0px;
|
|
560
560
|
&:hover {
|
|
561
561
|
opacity: 0.7;
|
|
@@ -585,19 +585,19 @@
|
|
|
585
585
|
white-space: nowrap;
|
|
586
586
|
`,queryStatusContainer:t`
|
|
587
587
|
display: flex;
|
|
588
|
-
gap: ${
|
|
588
|
+
gap: ${A.size[2]};
|
|
589
589
|
height: min-content;
|
|
590
590
|
`,queryStatusTag:t`
|
|
591
591
|
display: flex;
|
|
592
|
-
gap: ${
|
|
592
|
+
gap: ${A.size[1.5]};
|
|
593
593
|
box-sizing: border-box;
|
|
594
|
-
height: ${
|
|
594
|
+
height: ${A.size[6.5]};
|
|
595
595
|
background: ${l(a.gray[50],a.darkGray[500])};
|
|
596
596
|
color: ${l(a.gray[700],a.gray[300])};
|
|
597
|
-
border-radius: ${
|
|
597
|
+
border-radius: ${A.border.radius.sm};
|
|
598
598
|
font-size: ${o.size.sm};
|
|
599
|
-
padding: ${
|
|
600
|
-
padding-left: ${
|
|
599
|
+
padding: ${A.size[1]};
|
|
600
|
+
padding-left: ${A.size[1.5]};
|
|
601
601
|
align-items: center;
|
|
602
602
|
font-weight: ${o.weight.medium};
|
|
603
603
|
border: ${l("1px solid "+a.gray[300],"1px solid transparent")};
|
|
@@ -619,16 +619,16 @@
|
|
|
619
619
|
background-color: ${l(a.gray[200],a.darkGray[300])};
|
|
620
620
|
border-radius: 2px;
|
|
621
621
|
font-variant-numeric: tabular-nums;
|
|
622
|
-
height: ${
|
|
622
|
+
height: ${A.size[4.5]};
|
|
623
623
|
`,statusTooltip:t`
|
|
624
624
|
position: absolute;
|
|
625
625
|
z-index: 1;
|
|
626
626
|
background-color: ${l(a.gray[50],a.darkGray[500])};
|
|
627
627
|
top: 100%;
|
|
628
628
|
left: 50%;
|
|
629
|
-
transform: translate(-50%, calc(${
|
|
630
|
-
padding: ${
|
|
631
|
-
border-radius: ${
|
|
629
|
+
transform: translate(-50%, calc(${A.size[2]}));
|
|
630
|
+
padding: ${A.size[.5]} ${A.size[2]};
|
|
631
|
+
border-radius: ${A.border.radius.sm};
|
|
632
632
|
font-size: ${o.size.xs};
|
|
633
633
|
border: 1px solid ${l(a.gray[400],a.gray[600])};
|
|
634
634
|
color: ${l(a.gray[600],a.gray[300])};
|
|
@@ -661,12 +661,12 @@
|
|
|
661
661
|
}
|
|
662
662
|
`,filtersContainer:t`
|
|
663
663
|
display: flex;
|
|
664
|
-
gap: ${
|
|
664
|
+
gap: ${A.size[2]};
|
|
665
665
|
& > button {
|
|
666
666
|
cursor: pointer;
|
|
667
|
-
padding: ${
|
|
668
|
-
${
|
|
669
|
-
border-radius: ${
|
|
667
|
+
padding: ${A.size[.5]} ${A.size[1.5]} ${A.size[.5]}
|
|
668
|
+
${A.size[2]};
|
|
669
|
+
border-radius: ${A.border.radius.sm};
|
|
670
670
|
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
671
671
|
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
672
672
|
color: ${l(a.gray[700],a.gray[300])};
|
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
display: flex;
|
|
675
675
|
align-items: center;
|
|
676
676
|
line-height: ${o.lineHeight.sm};
|
|
677
|
-
gap: ${
|
|
677
|
+
gap: ${A.size[1.5]};
|
|
678
678
|
max-width: 160px;
|
|
679
679
|
&:focus-visible {
|
|
680
680
|
outline-offset: 2px;
|
|
@@ -682,19 +682,19 @@
|
|
|
682
682
|
outline: 2px solid ${a.blue[800]};
|
|
683
683
|
}
|
|
684
684
|
& svg {
|
|
685
|
-
width: ${
|
|
686
|
-
height: ${
|
|
685
|
+
width: ${A.size[3]};
|
|
686
|
+
height: ${A.size[3]};
|
|
687
687
|
color: ${l(a.gray[500],a.gray[400])};
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
`,filterInput:t`
|
|
691
691
|
padding: ${r[.5]} ${r[2]};
|
|
692
|
-
border-radius: ${
|
|
692
|
+
border-radius: ${A.border.radius.sm};
|
|
693
693
|
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
694
694
|
display: flex;
|
|
695
695
|
box-sizing: content-box;
|
|
696
696
|
align-items: center;
|
|
697
|
-
gap: ${
|
|
697
|
+
gap: ${A.size[1.5]};
|
|
698
698
|
max-width: 160px;
|
|
699
699
|
min-width: 100px;
|
|
700
700
|
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
@@ -726,20 +726,20 @@
|
|
|
726
726
|
outline: 2px solid ${a.blue[800]};
|
|
727
727
|
}
|
|
728
728
|
`,filterSelect:t`
|
|
729
|
-
padding: ${
|
|
730
|
-
border-radius: ${
|
|
729
|
+
padding: ${A.size[.5]} ${A.size[2]};
|
|
730
|
+
border-radius: ${A.border.radius.sm};
|
|
731
731
|
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
732
732
|
display: flex;
|
|
733
733
|
align-items: center;
|
|
734
|
-
gap: ${
|
|
734
|
+
gap: ${A.size[1.5]};
|
|
735
735
|
box-sizing: content-box;
|
|
736
736
|
max-width: 160px;
|
|
737
737
|
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
738
738
|
height: min-content;
|
|
739
739
|
& > svg {
|
|
740
740
|
color: ${l(a.gray[600],a.gray[400])};
|
|
741
|
-
width: ${
|
|
742
|
-
height: ${
|
|
741
|
+
width: ${A.size[2]};
|
|
742
|
+
height: ${A.size[2]};
|
|
743
743
|
}
|
|
744
744
|
& > select {
|
|
745
745
|
appearance: none;
|
|
@@ -760,17 +760,17 @@
|
|
|
760
760
|
}
|
|
761
761
|
`,actionsContainer:t`
|
|
762
762
|
display: flex;
|
|
763
|
-
gap: ${
|
|
763
|
+
gap: ${A.size[2]};
|
|
764
764
|
`,actionsBtn:t`
|
|
765
|
-
border-radius: ${
|
|
765
|
+
border-radius: ${A.border.radius.sm};
|
|
766
766
|
background-color: ${l(a.gray[100],a.darkGray[400])};
|
|
767
767
|
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
768
|
-
width: ${
|
|
769
|
-
height: ${
|
|
768
|
+
width: ${A.size[6.5]};
|
|
769
|
+
height: ${A.size[6.5]};
|
|
770
770
|
justify-content: center;
|
|
771
771
|
display: flex;
|
|
772
772
|
align-items: center;
|
|
773
|
-
gap: ${
|
|
773
|
+
gap: ${A.size[1.5]};
|
|
774
774
|
max-width: 160px;
|
|
775
775
|
cursor: pointer;
|
|
776
776
|
padding: 0;
|
|
@@ -779,8 +779,8 @@
|
|
|
779
779
|
}
|
|
780
780
|
& svg {
|
|
781
781
|
color: ${l(a.gray[700],a.gray[300])};
|
|
782
|
-
width: ${
|
|
783
|
-
height: ${
|
|
782
|
+
width: ${A.size[3]};
|
|
783
|
+
height: ${A.size[3]};
|
|
784
784
|
}
|
|
785
785
|
&:focus-visible {
|
|
786
786
|
outline-offset: 2px;
|
|
@@ -821,9 +821,9 @@
|
|
|
821
821
|
}
|
|
822
822
|
|
|
823
823
|
& .tsqd-query-observer-count {
|
|
824
|
-
padding: 0 ${
|
|
824
|
+
padding: 0 ${A.size[1]};
|
|
825
825
|
user-select: none;
|
|
826
|
-
min-width: ${
|
|
826
|
+
min-width: ${A.size[6.5]};
|
|
827
827
|
align-self: stretch;
|
|
828
828
|
display: flex;
|
|
829
829
|
align-items: center;
|
|
@@ -839,9 +839,9 @@
|
|
|
839
839
|
font-size: ${o.size.xs};
|
|
840
840
|
display: flex;
|
|
841
841
|
align-items: center;
|
|
842
|
-
min-height: ${
|
|
842
|
+
min-height: ${A.size[6]};
|
|
843
843
|
flex: 1;
|
|
844
|
-
padding: ${
|
|
844
|
+
padding: ${A.size[1]} ${A.size[2]};
|
|
845
845
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
846
846
|
'Liberation Mono', 'Courier New', monospace;
|
|
847
847
|
border-bottom: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
align-self: stretch;
|
|
855
855
|
display: flex;
|
|
856
856
|
align-items: center;
|
|
857
|
-
padding: 0 ${
|
|
857
|
+
padding: 0 ${A.size[2]};
|
|
858
858
|
color: ${l(a.gray[800],a.gray[300])};
|
|
859
859
|
background-color: ${l(a.gray[300],a.darkGray[600])};
|
|
860
860
|
border-bottom: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
@@ -878,17 +878,17 @@
|
|
|
878
878
|
top: 0;
|
|
879
879
|
z-index: 2;
|
|
880
880
|
background-color: ${l(a.gray[200],a.darkGray[600])};
|
|
881
|
-
padding: ${
|
|
881
|
+
padding: ${A.size[1.5]} ${A.size[2]};
|
|
882
882
|
font-weight: ${o.weight.medium};
|
|
883
883
|
font-size: ${o.size.xs};
|
|
884
884
|
line-height: ${o.lineHeight.xs};
|
|
885
885
|
text-align: left;
|
|
886
886
|
`,detailsBody:t`
|
|
887
|
-
margin: ${
|
|
887
|
+
margin: ${A.size[1.5]} 0px ${A.size[2]} 0px;
|
|
888
888
|
& > div {
|
|
889
889
|
display: flex;
|
|
890
890
|
align-items: stretch;
|
|
891
|
-
padding: 0 ${
|
|
891
|
+
padding: 0 ${A.size[2]};
|
|
892
892
|
line-height: ${o.lineHeight.sm};
|
|
893
893
|
justify-content: space-between;
|
|
894
894
|
& > span {
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
& > div:first-child {
|
|
903
|
-
margin-bottom: ${
|
|
903
|
+
margin-bottom: ${A.size[1.5]};
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
& code {
|
|
@@ -918,25 +918,25 @@
|
|
|
918
918
|
}
|
|
919
919
|
`,queryDetailsStatus:t`
|
|
920
920
|
border: 1px solid ${a.darkGray[200]};
|
|
921
|
-
border-radius: ${
|
|
921
|
+
border-radius: ${A.border.radius.sm};
|
|
922
922
|
font-weight: ${o.weight.medium};
|
|
923
|
-
padding: ${
|
|
923
|
+
padding: ${A.size[1]} ${A.size[2.5]};
|
|
924
924
|
`,actionsBody:t`
|
|
925
925
|
flex-wrap: wrap;
|
|
926
|
-
margin: ${
|
|
926
|
+
margin: ${A.size[2]} 0px ${A.size[2]} 0px;
|
|
927
927
|
display: flex;
|
|
928
|
-
gap: ${
|
|
929
|
-
padding: 0px ${
|
|
928
|
+
gap: ${A.size[2]};
|
|
929
|
+
padding: 0px ${A.size[2]};
|
|
930
930
|
& > button {
|
|
931
931
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
932
932
|
font-size: ${o.size.xs};
|
|
933
|
-
padding: ${
|
|
933
|
+
padding: ${A.size[1]} ${A.size[2]};
|
|
934
934
|
display: flex;
|
|
935
|
-
border-radius: ${
|
|
935
|
+
border-radius: ${A.border.radius.sm};
|
|
936
936
|
background-color: ${l(a.gray[100],a.darkGray[600])};
|
|
937
937
|
border: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
938
938
|
align-items: center;
|
|
939
|
-
gap: ${
|
|
939
|
+
gap: ${A.size[2]};
|
|
940
940
|
font-weight: ${o.weight.medium};
|
|
941
941
|
line-height: ${o.lineHeight.xs};
|
|
942
942
|
cursor: pointer;
|
|
@@ -957,19 +957,19 @@
|
|
|
957
957
|
& > span {
|
|
958
958
|
width: ${r[1.5]};
|
|
959
959
|
height: ${r[1.5]};
|
|
960
|
-
border-radius: ${
|
|
960
|
+
border-radius: ${A.border.radius.full};
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
`,actionsSelect:t`
|
|
964
964
|
font-size: ${o.size.xs};
|
|
965
|
-
padding: ${
|
|
965
|
+
padding: ${A.size[.5]} ${A.size[2]};
|
|
966
966
|
display: flex;
|
|
967
|
-
border-radius: ${
|
|
967
|
+
border-radius: ${A.border.radius.sm};
|
|
968
968
|
overflow: hidden;
|
|
969
969
|
background-color: ${l(a.gray[100],a.darkGray[600])};
|
|
970
970
|
border: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
971
971
|
align-items: center;
|
|
972
|
-
gap: ${
|
|
972
|
+
gap: ${A.size[2]};
|
|
973
973
|
font-weight: ${o.weight.medium};
|
|
974
974
|
line-height: ${o.lineHeight.sm};
|
|
975
975
|
color: ${l(a.red[500],a.red[400])};
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
& > span {
|
|
982
982
|
width: ${r[1.5]};
|
|
983
983
|
height: ${r[1.5]};
|
|
984
|
-
border-radius: ${
|
|
984
|
+
border-radius: ${A.border.radius.full};
|
|
985
985
|
}
|
|
986
986
|
&:focus-within {
|
|
987
987
|
outline-offset: 2px;
|
|
@@ -1002,11 +1002,11 @@
|
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
& svg path {
|
|
1005
|
-
stroke: ${
|
|
1005
|
+
stroke: ${A.colors.red[400]};
|
|
1006
1006
|
}
|
|
1007
1007
|
& svg {
|
|
1008
|
-
width: ${
|
|
1009
|
-
height: ${
|
|
1008
|
+
width: ${A.size[2]};
|
|
1009
|
+
height: ${A.size[2]};
|
|
1010
1010
|
}
|
|
1011
1011
|
`,settingsMenu:t`
|
|
1012
1012
|
display: flex;
|
|
@@ -1015,7 +1015,7 @@
|
|
|
1015
1015
|
}
|
|
1016
1016
|
flex-direction: column;
|
|
1017
1017
|
gap: ${r[.5]};
|
|
1018
|
-
border-radius: ${
|
|
1018
|
+
border-radius: ${A.border.radius.sm};
|
|
1019
1019
|
border: 1px solid ${l(a.gray[300],a.gray[700])};
|
|
1020
1020
|
background-color: ${l(a.gray[50],a.darkGray[600])};
|
|
1021
1021
|
font-size: ${o.size.xs};
|
|
@@ -1027,8 +1027,8 @@
|
|
|
1027
1027
|
display: flex;
|
|
1028
1028
|
align-items: center;
|
|
1029
1029
|
justify-content: space-between;
|
|
1030
|
-
border-radius: ${
|
|
1031
|
-
padding: ${
|
|
1030
|
+
border-radius: ${A.border.radius.xs};
|
|
1031
|
+
padding: ${A.size[1]} ${A.size[1]};
|
|
1032
1032
|
cursor: pointer;
|
|
1033
1033
|
background-color: transparent;
|
|
1034
1034
|
border: none;
|
|
@@ -1036,8 +1036,8 @@
|
|
|
1036
1036
|
& svg {
|
|
1037
1037
|
color: ${l(a.gray[600],a.gray[400])};
|
|
1038
1038
|
transform: rotate(-90deg);
|
|
1039
|
-
width: ${
|
|
1040
|
-
height: ${
|
|
1039
|
+
width: ${A.size[2]};
|
|
1040
|
+
height: ${A.size[2]};
|
|
1041
1041
|
}
|
|
1042
1042
|
&:hover {
|
|
1043
1043
|
background-color: ${l(a.gray[200],a.darkGray[500])};
|
|
@@ -1051,7 +1051,7 @@
|
|
|
1051
1051
|
cursor: not-allowed;
|
|
1052
1052
|
}
|
|
1053
1053
|
`,settingsMenuHeader:t`
|
|
1054
|
-
padding: ${
|
|
1054
|
+
padding: ${A.size[1]} ${A.size[1]};
|
|
1055
1055
|
font-weight: ${o.weight.medium};
|
|
1056
1056
|
border-bottom: 1px solid ${l(a.gray[300],a.darkGray[400])};
|
|
1057
1057
|
color: ${l(a.gray[500],a.gray[400])};
|
|
@@ -1062,8 +1062,8 @@
|
|
|
1062
1062
|
justify-content: space-between;
|
|
1063
1063
|
color: ${l(a.gray[700],a.gray[300])};
|
|
1064
1064
|
font-size: ${o.size.xs};
|
|
1065
|
-
border-radius: ${
|
|
1066
|
-
padding: ${
|
|
1065
|
+
border-radius: ${A.border.radius.xs};
|
|
1066
|
+
padding: ${A.size[1]} ${A.size[1]};
|
|
1067
1067
|
cursor: pointer;
|
|
1068
1068
|
background-color: transparent;
|
|
1069
1069
|
border: none;
|
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
background-color: ${l(a.purple[100],a.purple[900])};
|
|
1088
1088
|
}
|
|
1089
1089
|
`,viewToggle:t`
|
|
1090
|
-
border-radius: ${
|
|
1090
|
+
border-radius: ${A.border.radius.sm};
|
|
1091
1091
|
background-color: ${l(a.gray[200],a.darkGray[600])};
|
|
1092
1092
|
border: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
1093
1093
|
display: flex;
|
|
@@ -1125,14 +1125,14 @@
|
|
|
1125
1125
|
|
|
1126
1126
|
& .tsqd-radio-toggle:first-child {
|
|
1127
1127
|
& label {
|
|
1128
|
-
padding: 0 ${
|
|
1128
|
+
padding: 0 ${A.size[1.5]} 0 ${A.size[2]};
|
|
1129
1129
|
}
|
|
1130
1130
|
border-right: 1px solid ${l(a.gray[300],a.darkGray[200])};
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
1133
|
& .tsqd-radio-toggle:nth-child(2) {
|
|
1134
1134
|
& label {
|
|
1135
|
-
padding: 0 ${
|
|
1135
|
+
padding: 0 ${A.size[2]} 0 ${A.size[1.5]};
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
1138
|
`,devtoolsEditForm:t`
|
|
@@ -1174,7 +1174,7 @@
|
|
|
1174
1174
|
`,devtoolsEditFormAction:t`
|
|
1175
1175
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
1176
1176
|
font-size: ${o.size.xs};
|
|
1177
|
-
padding: ${r[1]} ${
|
|
1177
|
+
padding: ${r[1]} ${A.size[2]};
|
|
1178
1178
|
display: flex;
|
|
1179
1179
|
border-radius: ${i.radius.sm};
|
|
1180
1180
|
background-color: ${l(a.gray[100],a.darkGray[600])};
|
|
@@ -1197,9 +1197,9 @@
|
|
|
1197
1197
|
opacity: 0.6;
|
|
1198
1198
|
cursor: not-allowed;
|
|
1199
1199
|
}
|
|
1200
|
-
`}},Lt=e=>lf("light",e),It=e=>lf("dark",e);yr(["click","mousedown","input"]);});var uf={};en(uf,{default:()=>Lv});var wv,Lv,df=Vo(()=>{"use strict";b();bl();Cr();wv=e=>{let[t,a]=En({prefix:"TanstackQueryDevtools"}),o=wn(),r=k(()=>{let n=t.theme_preference||Fn;return n!=="system"?n:o()});return y(Tr.Provider,{value:e,get children(){return y(On,{localStore:t,setLocalStore:a,get children(){return y(Dr.Provider,{value:r,get children(){return y(nf,{localStore:t,setLocalStore:a})}})}})}})},Lv=wv});var cf={};en(cf,{default:()=>Sv});var Iv,Sv,ff=Vo(()=>{"use strict";b();bl();Cr();Iv=e=>{let[t,a]=En({prefix:"TanstackQueryDevtools"}),o=wn(),r=k(()=>{let n=t.theme_preference||Fn;return n!=="system"?n:o()});return y(Tr.Provider,{value:e,get children(){return y(On,{disabled:!0,localStore:t,setLocalStore:a,get children(){return y(Dr.Provider,{value:r,get children(){return y(sf,{get children(){return y(Kn,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},Sv=Iv});var gC={};en(gC,{Studio:()=>om});module.exports=dm(gC);b();b();b();var jp=require("@tanstack/react-query"),ps=require("react"),Xp=require("sonner");b();var ki=require("@radix-ui/react-slot"),Pi=require("class-variance-authority"),Mi=Ce(require("react"),1);b();var Si=require("clsx");b();var xs="-",cm=e=>{let t=pm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(xs);return i[0]===""&&i.length!==1&&i.shift(),vi(i,t)||fm(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&o[s]?[...l,...o[s]]:l}}},vi=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?vi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(xs);return t.validators.find(({validator:s})=>s(n))?.classGroupId},gi=/^\[(.+)\]$/,fm=e=>{if(gi.test(e)){let t=gi.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},pm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return gm(Object.entries(e.classGroups),a).forEach(([n,s])=>{hs(s,o,n,t)}),o},hs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:hi(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(mm(r)){hs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{hs(s,hi(t,n),a,o)})})},hi=(e,t)=>{let a=e;return t.split(xs).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},mm=e=>e.isThemeGetter,gm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,r]}):e,hm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return r(n,s),s},set(n,s){a.has(n)?a.set(n,s):r(n,s)}}},Ci="!",xm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let h=0;h<i.length;h++){let x=i[h];if(u===0){if(x===r&&(o||i.slice(h,h+n)===t)){l.push(i.slice(d,h)),d=h+n;continue}if(x==="/"){c=h;continue}}x==="["?u++:x==="]"&&u--}let f=l.length===0?i:i.substring(d),p=f.startsWith(Ci),m=p?f.substring(1):f,g=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:s}):s},ym=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},vm=e=>({cache:hm(e.cacheSize),parseClassName:xm(e),...cm(e)}),Cm=/\s+/,bm=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(Cm),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:p}=a(u),m=!!p,g=o(m?f.substring(0,p):f);if(!g){if(!m){i=u+(i.length>0?" "+i:i);continue}if(g=o(f),!g){i=u+(i.length>0?" "+i:i);continue}m=!1}let h=ym(d).join(":"),x=c?h+Ci:h,v=x+g;if(n.includes(v))continue;n.push(v);let C=r(g,m);for(let w=0;w<C.length;++w){let S=C[w];n.push(x+S)}i=u+(i.length>0?" "+i:i)}return i};function wm(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=bi(t))&&(o&&(o+=" "),o+=a);return o}var bi=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=bi(e[o]))&&(a&&(a+=" "),a+=t);return a};function xi(e,...t){let a,o,r,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=vm(u),o=a.cache.get,r=a.cache.set,n=i,i(l)}function i(l){let u=o(l);if(u)return u;let d=bm(l,a);return r(l,d),d}return function(){return n(wm.apply(null,arguments))}}var ke=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},wi=/^\[(?:([a-z-]+):)?(.+)\]$/i,Lm=/^\d+\/\d+$/,Im=new Set(["px","full","screen"]),Sm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,km=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Mm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Am=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oa=e=>ho(e)||Im.has(e)||Lm.test(e),Ma=e=>xo(e,"length",$m),ho=e=>!!e&&!Number.isNaN(Number(e)),gs=e=>xo(e,"number",ho),Ko=e=>!!e&&Number.isInteger(Number(e)),Rm=e=>e.endsWith("%")&&ho(e.slice(0,-1)),te=e=>wi.test(e),Aa=e=>Sm.test(e),Tm=new Set(["length","size","percentage"]),Dm=e=>xo(e,Tm,Li),Em=e=>xo(e,"position",Li),Fm=new Set(["image","url"]),Om=e=>xo(e,Fm,Nm),Bm=e=>xo(e,"",qm),Go=()=>!0,xo=(e,t,a)=>{let o=wi.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},$m=e=>km.test(e)&&!Pm.test(e),Li=()=>!1,qm=e=>Mm.test(e),Nm=e=>Am.test(e);var yi=()=>{let e=ke("colors"),t=ke("spacing"),a=ke("blur"),o=ke("brightness"),r=ke("borderColor"),n=ke("borderRadius"),s=ke("borderSpacing"),i=ke("borderWidth"),l=ke("contrast"),u=ke("grayscale"),d=ke("hueRotate"),c=ke("invert"),f=ke("gap"),p=ke("gradientColorStops"),m=ke("gradientColorStopPositions"),g=ke("inset"),h=ke("margin"),x=ke("opacity"),v=ke("padding"),C=ke("saturate"),w=ke("scale"),S=ke("sepia"),F=ke("skew"),D=ke("space"),T=ke("translate"),I=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",te,t],R=()=>[te,t],ee=()=>["",oa,Ma],ie=()=>["auto",ho,te],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>["start","end","center","between","around","evenly","stretch"],fe=()=>["","0",te],Te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Pe=()=>[ho,te];return{cacheSize:500,separator:":",theme:{colors:[Go],spacing:[oa,Ma],blur:["none","",Aa,te],brightness:Pe(),borderColor:[e],borderRadius:["none","","full",Aa,te],borderSpacing:R(),borderWidth:ee(),contrast:Pe(),grayscale:fe(),hueRotate:Pe(),invert:fe(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[Rm,Ma],inset:U(),margin:U(),opacity:Pe(),padding:R(),saturate:Pe(),scale:Pe(),sepia:fe(),skew:Pe(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Aa]}],"break-after":[{"break-after":Te()}],"break-before":[{"break-before":Te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...be(),te]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ko,te]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",Ko,te]}],"grid-cols":[{"grid-cols":[Go]}],"col-start-end":[{col:["auto",{span:["full",Ko,te]},te]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[Go]}],"row-start-end":[{row:["auto",{span:[Ko,te]},te]}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ye()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ye(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ye(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Aa]},Aa]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Aa,Ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gs]}],"font-family":[{font:[Go]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",ho,gs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oa,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oa,Ma]}],"underline-offset":[{"underline-offset":["auto",oa,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),Em]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Dm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Om]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:ce()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[oa,te]}],"outline-w":[{outline:[oa,Ma]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[oa,Ma]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Aa,Bm]}],"shadow-color":[{shadow:[Go]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Aa,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[C]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:Pe()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:Pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Ko,te]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[oa,Ma,gs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},zm=(e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:n={},override:s={}})=>{Wo(e,"cacheSize",t),Wo(e,"prefix",a),Wo(e,"separator",o),Wo(e,"experimentalParseClassName",r);for(let i in s)Um(e[i],s[i]);for(let i in n)Hm(e[i],n[i]);return e},Wo=(e,t,a)=>{a!==void 0&&(e[t]=a)},Um=(e,t)=>{if(t)for(let a in t)Wo(e,a,t[a])},Hm=(e,t)=>{if(t)for(let a in t){let o=t[a];o!==void 0&&(e[a]=(e[a]||[]).concat(o))}},Ii=(e,...t)=>typeof e=="function"?xi(yi,e,...t):xi(()=>zm(yi(),e),...t);var _m=Ii({prefix:"ps-"});function K(...e){return _m((0,Si.clsx)(e))}var Ai=require("react/jsx-runtime"),Vm=(0,Pi.cva)("ps-inline-flex ps-items-center ps-justify-center ps-gap-2 ps-whitespace-nowrap ps-rounded-md ps-text-sm ps-font-medium ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-pointer-events-none disabled:ps-opacity-50 [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",{variants:{variant:{default:"ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/90",destructive:"ps-bg-destructive ps-text-destructive-foreground ps-shadow-sm hover:ps-bg-destructive/90",outline:"ps-border ps-border-input ps-bg-background ps-shadow-sm hover:ps-bg-accent hover:ps-text-accent-foreground",secondary:"ps-bg-secondary ps-text-secondary-foreground ps-shadow-sm hover:ps-bg-secondary/80",ghost:"hover:ps-bg-accent hover:ps-text-accent-foreground",link:"ps-text-primary ps-underline-offset-4 hover:ps-underline"},size:{default:"ps-h-9 ps-px-4 ps-py-2",sm:"ps-h-8 ps-rounded-md ps-px-3 ps-text-xs",lg:"ps-h-10 ps-rounded-md ps-px-8",icon:"ps-h-9 ps-w-9"}},defaultVariants:{variant:"default",size:"default"}}),ot=Mi.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,Ai.jsx)(o?ki.Slot:"button",{className:K(Vm({variant:t,size:a,className:e})),ref:n,...r}));ot.displayName="Button";b();var sr=Ce(require("@radix-ui/react-checkbox"),1);b();b();var an=require("react");b();var Ri=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tn=(...e)=>e.filter((t,a,o)=>!!t&&o.indexOf(t)===a).join(" ");b();var Qo=require("react");b();var Ti={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Di=(0,Qo.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,Qo.createElement)("svg",{ref:l,...Ti,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:tn("lucide",r),...i},[...s.map(([u,d])=>(0,Qo.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var me=(e,t)=>{let a=(0,an.forwardRef)(({className:o,...r},n)=>(0,an.createElement)(Di,{ref:n,iconNode:t,className:tn(`lucide-${Ri(e)}`,o),...r}));return a.displayName=`${e}`,a};b();var Ra=me("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);b();var jo=me("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);b();var ra=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);b();var Xo=me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);b();var Zo=me("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);b();var na=me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);b();var Jo=me("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);b();var Yo=me("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);b();var Za=me("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);b();var er=me("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);b();var tr=me("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);b();var ar=me("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);b();var or=me("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);b();var rr=me("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);b();var nr=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Ei=Ce(require("react"),1);var on=require("react/jsx-runtime"),lr=Ei.forwardRef(({className:e,...t},a)=>(0,on.jsx)(sr.Root,{ref:a,className:K("ps-peer ps-h-4 ps-w-4 ps-shrink-0 ps-rounded-sm ps-border ps-border-primary ps-shadow focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=checked]:ps-text-primary-foreground",e),...t,children:(0,on.jsx)(sr.Indicator,{className:K("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,on.jsx)(ra,{className:"ps-h-4 ps-w-4"})})}));lr.displayName=sr.Root.displayName;b();var Xn=require("@tanstack/react-query");b();var Qn=require("@tanstack/react-query");b();b();var Ot=Ce(require("react"),1),Gn=require("@tanstack/react-query");b();Cr();var pf=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:d}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=Ts(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,l;return this.#l?l=this.#l:(l=Rs(()=>Promise.resolve().then(()=>(df(),uf))),this.#l=l),$s(this.#f,this.#a),y(l,Y({get queryFlavor(){return a.#d},get version(){return a.#c},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()}}))},e);this.#e=!0,this.#i=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#i?.(),this.#e=!1}},mf=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;#p;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:d,onClose:c}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l),this.#l=N(c)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}setOnClose(e){this.#l[1](()=>e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=Ts(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,[l]=this.#l,u;return this.#i?u=this.#i:(u=Rs(()=>Promise.resolve().then(()=>(ff(),cf))),this.#i=u),$s(this.#f,this.#a),y(u,Y({get queryFlavor(){return a.#d},get version(){return a.#c},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()},get onClose(){return l()}}))},e);this.#e=!0,this.#p=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#p?.(),this.#e=!1}};var gf=require("react/jsx-runtime");function hf(e){let t=(0,Gn.useQueryClient)(e.client),a=Ot.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Ot.useState(new pf({client:t,queryFlavor:"React Query",version:"5",onlineManager:Gn.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Ot.useEffect(()=>{u.setClient(t)},[t,u]),Ot.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Ot.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Ot.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Ot.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Ot.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,gf.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}b();var pa=Ce(require("react"),1),Wn=require("@tanstack/react-query");var xf=require("react/jsx-runtime");function yf(e){let t=(0,Wn.useQueryClient)(e.client),a=pa.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=pa.useState(new mf({client:t,queryFlavor:"React Query",version:"5",onlineManager:Wn.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return pa.useEffect(()=>{s.setClient(t)},[t,s]),pa.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),pa.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),pa.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,xf.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var vf=process.env.NODE_ENV!=="development"?function(){return null}:hf,Sw=process.env.NODE_ENV!=="development"?function(){return null}:yf;var Lf=require("nuqs/adapters/react"),Fo=require("react"),If=require("sonner");b();var Cf=require("sonner"),wf=require("react/jsx-runtime"),bf=({...e})=>(0,wf.jsx)(Cf.Toaster,{className:"ps-toaster ps-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});var io=require("react/jsx-runtime"),Mv=new Qn.QueryClient,Sf=(0,Fo.createContext)(void 0);function kf(e){let{children:t,...a}=e,[o,r]=(0,Fo.useState)(null),n=e.onError;return n??=s=>If.toast.error(s.message),(0,io.jsxs)(Qn.QueryClientProvider,{client:Mv,children:[(0,io.jsx)(vf,{}),(0,io.jsx)(bf,{}),(0,io.jsx)(Lf.NuqsAdapter,{children:(0,io.jsx)(Sf.Provider,{value:{...a,activeTable:o,setActiveTable:r,onError:n},children:t})})]})}function et(){let e=(0,Fo.useContext)(Sf);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}b();b();b();function uo(e,t){return Object.entries(Object.values(t).reduce((a,o)=>{let{isInPrimaryKey:r,name:n}=o;return r&&(a[n]=e[n]??null),a},{}))}function Av(e,t){let a={filter:uo(e,t.columns),table:`${t.schema}.${t.name}`};return JSON.stringify(a)}function Pf(e,t){return{...e,__ps_rowid:Av(e,t)}}function jn(e,t){let{row:a,rows:o}=e;return a!==void 0?{...e,row:Pf(a,t)}:o!==void 0?{...e,rows:o.map(r=>Pf(r,t))}:e}function Mf(){let{activeTable:e,adapter:t}=et(),a=(0,Xn.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,Xn.useMutation)({mutationKey:["schema",o,"table",r,"insert"],async mutationFn(n){let[s,i]=await t.insert({rows:n,table:e},{});if(s)throw s;return jn(i,e)},onSuccess(n){a.setQueriesData({exact:!1,queryKey:["schema",o,"table",r,"query"]},s=>s==null?s:{...s,rows:[...n.rows,...s.rows]})},retry:!1})}b();var Af=require("@tanstack/react-query");function Rf(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=et();return(0,Af.useQuery)({enabled:!!r,gcTime:0,placeholderData(s,i){let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},async queryFn({signal:s}){let[i,l]=await n.query({pageIndex:t,pageSize:a,sortOrder:o,table:r},{abortSignal:s});if(i)throw i;return jn(l,r)},queryKey:["schema",r?.schema||null,"table",r?.name||null,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",t,"pageSize",a],staleTime:1/0})}b();var Zn=require("@tanstack/react-query");function Tf(){let{activeTable:e,adapter:t,onError:a}=et(),o=(0,Zn.useQueryClient)(),r=["schema",e?.schema??null,"table",e?.name??null];return(0,Zn.useMutation)({mutationFn:async n=>{let[s,i]=await t.update(n.details,n.options);if(s)throw s;return i},mutationKey:[...r,"update"],onError(n,s){let{changes:i,row:l}=s.details;a(n),wl({getFinderFn(){let u={...l,...i},d=uo(u,e.columns);return c=>d.every(([f,p])=>c[f]===p)},queryClient:o,table:e,updaterFn:function(d){return{...d,...Object.keys(i).reduce((c,f)=>({...c,[f]:l[f]}),{})}}})},onMutate(n){let{details:s}=n;wl({getFinderFn(){let{row:i}=s,l=uo(i,e.columns);return u=>l.every(([d,c])=>u[d]===c)},queryClient:o,table:e,updaterFn:function(l){return{...l,...s.changes}}})},onSuccess(n,s){wl({getFinderFn(){let{changes:i,row:l}=s.details,u={...l,...i},d=uo(u,e.columns);return c=>d.every(([f,p])=>c[f]===p)},queryClient:o,table:e,updaterFn:function(l){let{__ps_updated_at__:u}=l,{row:d}=n;return u!=null&&d.__ps_updated_at__<=u?l:{...l,...d}}})},retry:!1})}function wl(e){let{getFinderFn:t,queryClient:a,table:o,updaterFn:r}=e,n;a.setQueriesData({exact:!1,queryKey:["schema",o.schema,"table",o.name,"query"]},s=>{let{rows:i=[]}=s||{};if(i.length===0)return s;let l=i.findIndex(n??=t());if(l===-1)return s;let u=r(i[l]);return{...s,rows:[...i.slice(0,l),u,...i.slice(l+1)]}})}b();var Df=require("@tanstack/react-query");function Ef(){return(0,Df.useIsMutating)({predicate({options:{mutationKey:e}}){return e?.[4]==="insert"}})}b();var Ff=require("react");var Qe={};en(Qe,{keyMap:()=>Ll,urlKeys:()=>Rv,useQueryState:()=>Oo,useQueryStates:()=>Nr});b();var Jn=require("nuqs");aa(Qe,require("nuqs"));function Ll(e){return e}function Rv(e){return e}var nL=Symbol("BRAND_SYMBOL");function Oo(e,t){return(0,Jn.useQueryState)(e,t)}function Nr(e,t){return(0,Jn.useQueryStates)(e,t)}var Tv=25,Dv={pageIndex:Qe.parseAsIndex.withDefault(0),pageSize:Qe.parseAsInteger.withDefault(Tv)};function Yn(){let[{pageIndex:e,pageSize:t},a]=Nr(Dv),o=(0,Ff.useCallback)(r=>{a(typeof r=="function"?n=>{let s=r(n);return{pageIndex:s.pageIndex,pageSize:s.pageSize}}:{pageIndex:r.pageIndex,pageSize:r.pageSize})},[a]);return{paginationState:{pageIndex:e,pageSize:t},setPaginationState:o}}b();var ts=require("react");b();var es=require("@tanstack/react-query");function Of(){let{activeTable:e,adapter:t}=et(),a=(0,es.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,es.useMutation)({mutationKey:["schema",o,"table",r,"delete"],async mutationFn(n){let[s,i]=await t.delete({rows:n,table:e},{});if(s)throw s;return i},async onSuccess(){await a.invalidateQueries({exact:!1,queryKey:["schema",o,"table",r,"query"]})},retry:!1})}function Bf(e){let{activeTable:t,onError:a}=et(),{paginationState:o}=Yn(),[r,n]=(0,ts.useState)({}),s=Object.keys(r).length!==0,{mutate:i}=Of();(0,ts.useEffect)(()=>n({}),[t,o.pageIndex]);function l(){let u=e?.rows.filter(d=>r[d.__ps_rowid]);i(u??[],{onSuccess(){n({})},onError:a})}return{deleteSelection:l,setRowSelectionState:n,rowSelectionState:r,isSelecting:s}}b();var as=require("react");function $f(){let[e,t]=Oo("sort",{defaultValue:""}),a=s=>{if(!s)return[];try{return s.split(",").map(i=>{let[l,u]=i.split(":");return!l||!u||!["asc","desc"].includes(u)?null:{column:l,direction:u}}).filter(Boolean)}catch(i){return console.error("Failed to parse sorting parameter:",i),[]}},[o,r]=(0,as.useState)(()=>a(e));return(0,as.useEffect)(()=>{let s=a(e);r(s)},[e]),{sortingState:o,setSortingState:s=>{let i=typeof s=="function"?s(o):s;r(i);let l=i.length>0?i.map(u=>`${u.column}:${u.direction}`).join(","):null;t(l)}}}b();var op=require("remeda");b();var Hf=require("react");b();b();var ma=Ce(require("react"),1);var Wt=require("react/jsx-runtime"),Il=ma.forwardRef(({className:e,...t},a)=>(0,Wt.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,Wt.jsx)("table",{ref:a,className:K("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));Il.displayName="Table";var Sl=ma.forwardRef(({className:e,...t},a)=>(0,Wt.jsx)("thead",{ref:a,className:K(e),...t}));Sl.displayName="TableHeader";var kl=ma.forwardRef(({className:e,...t},a)=>(0,Wt.jsx)("tbody",{ref:a,className:K("[&_tr:last-child]:ps-border-0",e),...t}));kl.displayName="TableBody";var Ev=ma.forwardRef(({className:e,...t},a)=>(0,Wt.jsx)("tfoot",{ref:a,className:K("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));Ev.displayName="TableFooter";var co=ma.forwardRef(({className:e,...t},a)=>(0,Wt.jsx)("tr",{ref:a,className:K("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));co.displayName="TableRow";var os=ma.forwardRef(({className:e,...t},a)=>(0,Wt.jsx)("th",{ref:a,className:K("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground",e),...t}));os.displayName="TableHead";var Bo=ma.forwardRef(({className:e,...t},a)=>(0,Wt.jsx)("td",{ref:a,className:K("ps-align-middle",e),...t}));Bo.displayName="TableCell";var Fv=ma.forwardRef(({className:e,...t},a)=>(0,Wt.jsx)("caption",{ref:a,className:K("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));Fv.displayName="TableCaption";b();var zf=require("react");b();var re=Ce(require("@radix-ui/react-context-menu"),1);var ga=Ce(require("react"),1);var ze=require("react/jsx-runtime"),qf=re.Root,Nf=re.Trigger;var Ov=ga.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,ze.jsxs)(re.SubTrigger,{ref:r,className:K("ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[state=open]:ps-bg-accent data-[state=open]:ps-text-accent-foreground",t&&"ps-pl-8",e),...o,children:[a,(0,ze.jsx)(na,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));Ov.displayName=re.SubTrigger.displayName;var Bv=ga.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(re.SubContent,{ref:a,className:K("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t}));Bv.displayName=re.SubContent.displayName;var Pl=ga.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(re.Portal,{children:(0,ze.jsx)(re.Content,{ref:a,className:K("ps-z-50 ps-max-h-[--radix-context-menu-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Pl.displayName=re.Content.displayName;var Ml=ga.forwardRef(({className:e,inset:t,...a},o)=>(0,ze.jsx)(re.Item,{ref:o,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",t&&"ps-pl-8",e),...a}));Ml.displayName=re.Item.displayName;var $v=ga.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,ze.jsxs)(re.CheckboxItem,{ref:r,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,ze.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,ze.jsx)(re.ItemIndicator,{children:(0,ze.jsx)(ra,{className:"ps-h-4 ps-w-4"})})}),t]}));$v.displayName=re.CheckboxItem.displayName;var qv=ga.forwardRef(({className:e,children:t,...a},o)=>(0,ze.jsxs)(re.RadioItem,{ref:o,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,ze.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,ze.jsx)(re.ItemIndicator,{children:(0,ze.jsx)(Za,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));qv.displayName=re.RadioItem.displayName;var Nv=ga.forwardRef(({className:e,inset:t,...a},o)=>(0,ze.jsx)(re.Label,{ref:o,className:K("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));Nv.displayName=re.Label.displayName;var zv=ga.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(re.Separator,{ref:a,className:K("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));zv.displayName=re.Separator.displayName;var Uv=({className:e,...t})=>(0,ze.jsx)("span",{className:K("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});Uv.displayName="ContextMenuShortcut";var fo=require("react/jsx-runtime");function Uf(e){let{children:t}=e;return(0,fo.jsxs)(qf,{children:[(0,fo.jsx)(Nf,{className:"ps-block ps-w-full ps-px-[var(--studio-cell-spacing)] ps-leading-[var(--studio-cell-height)] ps-h-[var(--studio-cell-height)] ps-text-xs ps-font-mono ps-whitespace-nowrap ps-overflow-hidden ps-text-ellipsis",children:t}),(0,fo.jsx)(Pl,{children:(0,fo.jsxs)(Ml,{onClick:()=>{let a=Al(t);navigator.clipboard.writeText(a).catch(o=>{console.error("Failed to copy to clipboard:",o)})},className:"ps-flex ps-items-center ps-gap-2",children:[(0,fo.jsx)(er,{size:12}),"Copy"]})})]})}function Al(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,zf.isValidElement)(e)){let t=e.props;return e.type&&typeof e.type=="function"&&e.type.name==="RevealText"?t.text||"":e.type&&typeof e.type=="function"&&e.type.name==="NullValue"?"NULL":t.children?Al(t.children):""}return Array.isArray(e)?e.map(Al).join(""):""}var Rl=require("react/jsx-runtime");function Ge(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,Rl.jsx)(Bo,{...n,className:K("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head last:ps-border-r-0","ps-cursor-pointer",a),ref:o,style:r,children:(0,Rl.jsx)(Uf,{children:t})})}var Tl=require("react/jsx-runtime"),Dl=(0,Hf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Tl.jsx)(Ge,{...r,...a,ref:t,children:(0,Tl.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});Dl.displayName="BooleanCell";b();var _f=require("react");var Vf=require("react/jsx-runtime"),El=(0,_f.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Vf.jsx)(Ge,{...r,...a,ref:t,children:String(o)})});El.displayName="DateCell";b();var Kf=require("react");var Gf=require("react/jsx-runtime"),zr=(0,Kf.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,Gf.jsx)(Ge,{...o,...a,ref:t})});zr.displayName="EmptyCell";b();var Wf=require("react");var Qf=require("react/jsx-runtime"),Fl=(0,Wf.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,Qf.jsx)(Ge,{...n,...a,ref:t,children:String(o)})});Fl.displayName="EnumCell";b();var jf=require("react");var Xf=require("react/jsx-runtime"),rs=(0,jf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Xf.jsx)(Ge,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});rs.displayName="JSONCell";b();var Zf=require("react");var Ol=require("react/jsx-runtime"),Bl=(0,Zf.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,Ol.jsx)(Ge,{...o,...a,ref:t,children:(0,Ol.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});Bl.displayName="NullCell";b();var Jf=require("react");var $l=require("react/jsx-runtime"),ql=(0,Jf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,$l.jsx)(Ge,{...r,...a,ref:t,children:(0,$l.jsx)("div",{"data-cell-type":"numeric",children:o===null?"NULL":String(o)})})});ql.displayName="NumericCell";b();var Yf=require("react");var ep=require("react/jsx-runtime"),ns=(0,Yf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ep.jsx)(Ge,{...r,...a,ref:t,children:String(o)})});ns.displayName="RawCell";b();var tp=require("react");var ap=require("react/jsx-runtime"),Nl=(0,tp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ap.jsx)(Ge,{...r,...a,ref:t,children:String(o)})});Nl.displayName="TimeCell";var St=require("react/jsx-runtime");function ss(e,t,a){let o=e.getValue();if(o===void 0)return(0,St.jsx)(zr,{});if(o===null)return(0,St.jsx)(Bl,{});let{group:r,options:n,isArray:s}=t.datatype;if(r==="json"||s)return(0,St.jsx)(rs,{containerProps:a,value:o});if(r==="string")return(0,St.jsx)(ns,{containerProps:a,value:o});if(r==="enum")return(0,St.jsx)(Fl,{containerProps:a,value:o,options:n});if(r==="boolean")return(0,St.jsx)(Dl,{containerProps:a,value:o});if(r==="datetime")return(0,St.jsx)(El,{containerProps:a,value:o});if(r==="time")return(0,St.jsx)(Nl,{containerProps:a,value:o});if(r==="numeric")return(0,St.jsx)(ql,{containerProps:a,value:o});if(r==="raw")return(0,op.isObjectType)(o)?(0,St.jsx)(rs,{containerProps:a,value:o}):(0,St.jsx)(ns,{containerProps:a,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}b();var rp=require("react");var zl=require("react/jsx-runtime"),Ul=(0,rp.forwardRef)((e,t)=>{let{row:a,className:o,...r}=e;return(0,zl.jsx)("div",{ref:t,className:K("ps-flex ps-justify-center ps-items-center",o),...r,children:(0,zl.jsx)(lr,{checked:a.getIsSelected(),disabled:!a.getCanSelect(),onCheckedChange:a.getToggleSelectedHandler()})})});Ul.displayName="SelectRowCell";b();b();var ha=Ce(require("@radix-ui/react-popover"),1),Oe=Ce(require("react"),1);var $o=require("react/jsx-runtime"),np=Oe.createContext(null),Hl=({children:e,...t})=>{let[a,o]=Oe.useState(!1),r=Oe.useRef(new Set),n=Oe.useCallback(l=>{r.current.add(l)},[]),s=Oe.useCallback(l=>{r.current.delete(l)},[]),i=Oe.useCallback(l=>{!l&&a&&r.current.forEach(u=>{u()}),o(l)},[a]);return(0,$o.jsx)(np.Provider,{value:{open:a,setOpen:o,registerOnBeforeClose:n,unregisterOnBeforeClose:s},children:(0,$o.jsx)(ha.Root,{open:a,onOpenChange:i,...t,children:e})})};Hl.displayName="PopoverCell";var _l=Oe.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=Oe.useRef(null);return(0,$o.jsx)(ha.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:K("w-full h-full cursor-pointer",a),...o,children:e})});_l.displayName="PopoverCellTrigger";var Vl=Oe.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,$o.jsx)(ha.Portal,{children:(0,$o.jsx)(ha.Content,{ref:r,align:t,sideOffset:a,className:K("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),onEscapeKeyDown:n=>n.preventDefault(),...o})}));Vl.displayName=ha.Content.displayName;function lt(e){let t=Oe.useContext(np),a=Oe.useCallback(()=>{e.onSave&&e.onSave(),t&&t.setOpen(!1)},[e.onSave,t]),o=Oe.useCallback(()=>{e.onCancel&&e.onCancel(),t&&t.setOpen(!1)},[e.onCancel,t]);return Oe.useEffect(()=>{if(!t?.registerOnBeforeClose||!e.onSave)return;let r=()=>!!e.onSave?.();return t.registerOnBeforeClose(r),()=>t.unregisterOnBeforeClose?.(r)},[e.onSave,t]),Oe.useEffect(()=>{let r=n=>{(n.key==="Enter"||n.key==="Return")&&!n.shiftKey?a():n.key==="Escape"&&o()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[a,o]),{handleSave:a,handleCancel:o}}var Ur=require("react/jsx-runtime");function ls(e){let{cellComponent:t,inputComponent:a}=e;return(0,Ur.jsxs)(Hl,{children:[(0,Ur.jsx)(_l,{asChild:!0,children:t}),(0,Ur.jsx)(Vl,{align:"start",alignOffset:-1,className:"ps-min-w-cell ps-rounded-none ps-bg-muted ps-p-0 ps-z-30 ps-gap-0 ps-border-blue-500 ps-min-w-[calc(var(--radix-popover-trigger-width) + 1px)]",sideOffset:-40,children:a})]})}b();var Ha=require("@dnd-kit/core"),_a=require("@dnd-kit/sortable"),bp=require("@dnd-kit/utilities"),qo=require("@tanstack/react-table");b();var xa=Ce(require("react"),1),_=Ce(require("react"),1);function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},za.apply(null,arguments)}var Hv=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function _v(e,t){let[a,o]=_.default.useState();_.default.useEffect(()=>{let n=Hv(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=_.default.useCallback(n=>{o(s=>{let i=n;typeof n=="function"&&(i=n(s));try{localStorage.setItem(e,JSON.stringify(i))}catch{}return i})},[e]);return[a,r]}var Qt={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},ip=_.default.createContext(Qt);function up(e){let{theme:t,...a}=e;return _.default.createElement(ip.Provider,za({value:t},a))}function Vv(){return _.default.useContext(ip)}function Kv(e){let[t,a]=_.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return _.default.useEffect(()=>{if(typeof window<"u"){if(!window.matchMedia)return;let o=window.matchMedia(e),r=n=>{let{matches:s}=n;return a(s)};return o.addListener(r),()=>{o.removeListener(r)}}},[t,e,a]),t}var Gv=typeof window>"u";function Bt(e,t,a){return a===void 0&&(a={}),_.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=Vv(),l=Object.entries(a).reduce((u,d)=>{let[c,f]=d;return Kv(c)?{...u,...typeof f=="function"?f(s,i):f}:u},{});return _.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function Wv(){let e=_.default.useRef(!1),t=_.default.useCallback(()=>e.current,[]);return _.default[Gv?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var Qv=Bt("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}});Bt("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})});var jv=Bt("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}));Bt("code",{fontSize:".9em"});Bt("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Bt("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});var sp=Bt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),is=Bt("span",{cursor:"pointer",color:"white"}),Xv=Bt("span",(e,t)=>({color:t.danger})),Kl=Bt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),Zv=Bt("span",{color:"grey",fontSize:".7rem"}),lp=e=>{let{expanded:t,style:a={},...o}=e;return _.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},Jv=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:d}=e,[c,f]=_.default.useState(void 0),[p,m]=_.default.useState([]),g=()=>{f(o())};return _.default.createElement(sp,{key:a},n!=null&&n.length?_.default.createElement(_.default.Fragment,null,_.default.createElement(is,{onClick:()=>l()},_.default.createElement(lp,{expanded:i})," ",a," ",_.default.createElement(Zv,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?_.default.createElement(Kl,null,r.map(h=>t(h))):_.default.createElement(Kl,null,n.map((h,x)=>_.default.createElement("div",{key:x},_.default.createElement(sp,null,_.default.createElement(is,{onClick:()=>m(v=>v.includes(x)?v.filter(C=>C!==x):[...v,x])},_.default.createElement(lp,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),p.includes(x)?_.default.createElement(Kl,null,h.map(v=>t(v))):null)))):null):s==="function"?_.default.createElement(_.default.Fragment,null,_.default.createElement(jt,{renderer:d,label:_.default.createElement("button",{onClick:g},_.default.createElement(is,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):_.default.createElement(_.default.Fragment,null,_.default.createElement(is,null,a,":")," ",_.default.createElement(Xv,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function jt(e){let{value:t,defaultExpanded:a,renderer:o=Jv,pageSize:r=100,depth:n=0,...s}=e,[i,l]=_.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},d=[],c=typeof t,f,p=[],m=g=>{let h=d.concat(g.label),x=a===!0?{[g.label]:!0}:a?.[g.label];return{...g,subPath:g,path:h,depth:n+1,defaultExpanded:x}};if(Array.isArray(t)?(c="array",f=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(c="Iterable",f=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?c="function":typeof t=="object"&&t!==null&&(c="object",f=Object.entries(t).map(g=>{let[h,x]=g;return m({label:h,value:x})})),f){let g=0;for(;g<f.length;)p.push(f.slice(g,g+r)),g=g+r}return o({handleEntry:g=>_.default.createElement(jt,za({key:g.label,renderer:o},s,g)),type:c,subEntries:f,subEntryPages:p,depth:n,value:t,path:d,expanded:i,toggle:u,pageSize:r,...s})}function dp(e){return xa.createElement("svg",za({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),xa.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},xa.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},xa.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},xa.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},xa.createElement("path",{d:"M39.7239712,51.3436237 C36.631224,36.362877 35.9675112,24.8727722 37.9666331,16.5293551 C39.1555965,11.5671678 41.3293088,7.51908462 44.6346064,4.59846305 C48.1241394,1.51504777 52.5360327,0.00201216606 57.493257,0.00201216606 C65.6712013,0.00201216606 74.2682602,3.72732143 83.4557246,10.8044264 C87.2031203,13.6910458 91.0924366,17.170411 95.1316515,21.2444746 C95.4531404,20.8310265 95.8165416,20.4410453 96.2214301,20.0806152 C107.64098,9.91497158 117.255245,3.59892716 125.478408,1.16365068 C130.367899,-0.284364005 134.958526,-0.422317978 139.138936,0.983031021 C143.551631,2.46646844 147.06766,5.53294888 149.548314,9.82810912 C153.642288,16.9166735 154.721918,26.2310983 153.195595,37.7320243 C152.573451,42.4199112 151.50985,47.5263831 150.007094,53.0593153 C150.574045,53.1277086 151.142416,53.2532808 151.705041,53.4395297 C166.193932,58.2358678 176.453582,63.3937462 182.665021,69.2882839 C186.360669,72.7953831 188.773972,76.6998434 189.646365,81.0218204 C190.567176,85.5836746 189.669313,90.1593316 187.191548,94.4512967 C183.105211,101.529614 175.591643,107.11221 164.887587,111.534031 C160.589552,113.309539 155.726579,114.917559 150.293259,116.363748 C150.541176,116.92292 150.733521,117.516759 150.862138,118.139758 C153.954886,133.120505 154.618598,144.61061 152.619477,152.954027 C151.430513,157.916214 149.256801,161.964297 145.951503,164.884919 C142.46197,167.968334 138.050077,169.48137 133.092853,169.48137 C124.914908,169.48137 116.31785,165.756061 107.130385,158.678956 C103.343104,155.761613 99.4108655,152.238839 95.3254337,148.108619 C94.9050753,148.765474 94.3889681,149.376011 93.7785699,149.919385 C82.3590198,160.085028 72.744755,166.401073 64.5215915,168.836349 C59.6321009,170.284364 55.0414736,170.422318 50.8610636,169.016969 C46.4483686,167.533532 42.9323404,164.467051 40.4516862,160.171891 C36.3577116,153.083327 35.2780823,143.768902 36.8044053,132.267976 C37.449038,127.410634 38.56762,122.103898 40.1575891,116.339009 C39.5361041,116.276104 38.9120754,116.144816 38.2949591,115.940529 C23.8060684,111.144191 13.5464184,105.986312 7.33497892,100.091775 C3.63933121,96.5846754 1.22602752,92.6802151 0.353635235,88.3582381 C-0.567176333,83.7963839 0.330686581,79.2207269 2.80845236,74.9287618 C6.89478863,67.8504443 14.4083565,62.2678481 25.1124133,57.8460273 C29.5385143,56.0176154 34.5637208,54.366822 40.1939394,52.8874674 C39.9933393,52.3969171 39.8349374,51.8811235 39.7239712,51.3436237 Z",id:"Path",fill:"#002C4B",fillRule:"nonzero",transform:"translate(95.000000, 85.000000) scale(-1, 1) translate(-95.000000, -85.000000) "}),xa.createElement("path",{d:"M91.735,110 L91.735,116 L80.6322051,116 C78.8411286,116 77.1868614,115.041975 76.2954489,113.488483 L74.294,110 L91.735,110 Z M116.181,110 L114.180256,113.488483 C113.288844,115.041975 111.634576,116 109.8435,116 L98.735,116 L98.735,110 L116.181,110 Z M91.735,96 L91.735,103 L70.277,103 L66.26,96 L91.735,96 Z M124.215,96 L120.198,103 L98.735,103 L98.735,96 L124.215,96 Z M91.735,82 L91.735,89 L62.244,89 L61.6632438,87.9884826 C60.7789187,86.4473417 60.7789187,84.5526583 61.6632438,83.0115174 L62.243,82 L91.735,82 Z M128.232,82 L128.812461,83.0115174 C129.696786,84.5526583 129.696786,86.4473417 128.812461,87.9884826 L128.231,89 L98.735,89 L98.735,82 L128.232,82 Z M91.735,68 L91.735,75 L66.26,75 L70.277,68 L91.735,68 Z M120.198,68 L124.215,75 L98.735,75 L98.735,68 L120.198,68 Z M91.735,55 L91.735,61 L74.293,61 L76.2954489,57.5115174 C77.1868614,55.958025 78.8411286,55 80.6322051,55 L91.735,55 Z M109.8435,55 C111.634576,55 113.288844,55.958025 114.180256,57.5115174 L116.182,61 L98.735,61 L98.735,55 L109.8435,55 Z",id:"Polygon-2",fill:"#FFD94C"}),xa.createElement("path",{d:"M54.8601729,98.3577578 C56.1715224,97.6082856 57.8360246,98.0746014 58.5779424,99.3993034 L58.5779424,99.3993034 L59.0525843,100.24352 C62.8563392,106.982993 66.8190116,113.380176 70.9406016,119.435068 C75.8078808,126.585427 81.28184,133.82411 87.3624792,141.151115 C88.3168778,142.30114 88.1849437,144.011176 87.065686,144.997937 L87.065686,144.997937 L86.4542085,145.534625 C66.3465389,163.103314 53.2778188,166.612552 47.2480482,156.062341 C41.3500652,145.742717 43.4844915,126.982888 53.6513274,99.7828526 C53.876818,99.1795821 54.3045861,98.675291 54.8601729,98.3577578 Z M140.534177,119.041504 C141.986131,118.785177 143.375496,119.742138 143.65963,121.194242 L143.65963,121.194242 L143.812815,121.986376 C148.782365,147.995459 145.283348,161 133.315764,161 C121.609745,161 106.708724,149.909007 88.6127018,127.727022 C88.2113495,127.235047 87.9945723,126.617371 88,125.981509 C88.013158,124.480686 89.2357854,123.274651 90.730918,123.287756 L90.730918,123.287756 L91.6846544,123.294531 C99.3056979,123.335994 106.714387,123.071591 113.910723,122.501323 C122.409039,121.82788 131.283523,120.674607 140.534177,119.041504 Z M147.408726,63.8119663 C147.932139,62.4026903 149.508386,61.6634537 150.954581,62.149012 L150.954581,62.149012 L151.742552,62.4154854 C177.583763,71.217922 187.402356,80.8916805 181.198332,91.4367609 C175.129904,101.751366 157.484347,109.260339 128.26166,113.963678 C127.613529,114.067994 126.948643,113.945969 126.382735,113.618843 C125.047025,112.846729 124.602046,111.158214 125.388848,109.847438 L125.388848,109.847438 L125.889328,109.0105 C129.877183,102.31633 133.481358,95.6542621 136.701854,89.0242957 C140.50501,81.1948179 144.073967,72.7907081 147.408726,63.8119663 Z M61.7383398,56.0363218 C62.3864708,55.9320063 63.0513565,56.0540315 63.6172646,56.3811573 C64.9529754,57.153271 65.3979538,58.8417862 64.6111517,60.1525615 L64.6111517,60.1525615 L64.1106718,60.9895001 C60.1228168,67.6836699 56.5186416,74.3457379 53.2981462,80.9757043 C49.49499,88.8051821 45.9260328,97.2092919 42.5912744,106.188034 C42.0678608,107.59731 40.4916142,108.336546 39.045419,107.850988 L39.045419,107.850988 L38.2574475,107.584515 C12.4162372,98.782078 2.59764398,89.1083195 8.80166786,78.5632391 C14.8700957,68.2486335 32.515653,60.7396611 61.7383398,56.0363218 Z M103.545792,24.4653746 C123.653461,6.89668641 136.722181,3.38744778 142.751952,13.9376587 C148.649935,24.2572826 146.515508,43.0171122 136.348673,70.2171474 C136.123182,70.8204179 135.695414,71.324709 135.139827,71.6422422 C133.828478,72.3917144 132.163975,71.9253986 131.422058,70.6006966 L131.422058,70.6006966 L130.947416,69.7564798 C127.143661,63.0170065 123.180988,56.6198239 119.059398,50.564932 C114.192119,43.4145727 108.71816,36.1758903 102.637521,28.8488847 C101.683122,27.6988602 101.815056,25.9888243 102.934314,25.0020629 L102.934314,25.0020629 Z M57.6842361,8 C69.3902551,8 84.2912758,19.0909926 102.387298,41.2729777 C102.788651,41.7649527 103.005428,42.3826288 103,43.0184911 C102.986842,44.5193144 101.764215,45.7253489 100.269082,45.7122445 L100.269082,45.7122445 L99.3153456,45.7054689 C91.6943021,45.6640063 84.2856126,45.9284091 77.0892772,46.4986773 C68.5909612,47.17212 59.7164767,48.325393 50.4658235,49.9584962 C49.0138691,50.2148231 47.6245044,49.2578618 47.3403697,47.805758 L47.3403697,47.805758 L47.1871846,47.0136235 C42.2176347,21.0045412 45.7166519,8 57.6842361,8 Z",id:"Combined-Shape",fill:"#FF4154"}))))))}function cp(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=_.default.useRef(null),i=_.default.useRef(null),[l,u]=_v("reactTableDevtoolsOpen",t),d=Wv(),{style:c={},...f}=o,{style:p={},onClick:m,...g}=r;return d()?_.default.createElement(n,{ref:s,className:"ReactTableDevtools"},_.default.createElement(up,{theme:Qt},l?_.default.createElement(Yv,za({ref:i},f,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):_.default.createElement("button",za({type:"button"},g,{"aria-label":"Open React Table Devtools",onClick:h=>{u(!0),m&&m(h)},style:{background:"none",border:0,padding:0,margin:".5rem",display:"inline-flex",fontSize:"1.5em",cursor:"pointer",width:"fit-content",...p}}),_.default.createElement(dp,{"aria-hidden":!0})))):null}var Yv=_.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return _.default.createElement(up,{theme:Qt},_.default.createElement(Qv,za({ref:a,className:"ReactTableDevtoolsPanel"},s),_.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1200
|
+
`}},bt=e=>tf("light",e),wt=e=>tf("dark",e);hr(["click","mousedown","input"]);});var af={};en(af,{default:()=>fv});var cv,fv,of=zo(()=>{"use strict";b();yl();yr();cv=e=>{let[t,a]=En({prefix:"TanstackQueryDevtools"}),o=wn(),r=k(()=>{let n=t.theme_preference||Fn;return n!=="system"?n:o()});return y(Ar.Provider,{value:e,get children(){return y(On,{localStore:t,setLocalStore:a,get children(){return y(Rr.Provider,{value:r,get children(){return y(Yc,{localStore:t,setLocalStore:a})}})}})}})},fv=cv});var rf={};en(rf,{default:()=>mv});var pv,mv,nf=zo(()=>{"use strict";b();yl();yr();pv=e=>{let[t,a]=En({prefix:"TanstackQueryDevtools"}),o=wn(),r=k(()=>{let n=t.theme_preference||Fn;return n!=="system"?n:o()});return y(Ar.Provider,{value:e,get children(){return y(On,{disabled:!0,localStore:t,setLocalStore:a,get children(){return y(Rr.Provider,{value:r,get children(){return y(ef,{get children(){return y(Kn,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},mv=pv});var nC={};en(nC,{Studio:()=>Gp});module.exports=Yp(nC);b();b();b();var vi=require("clsx");b();var ms="-",em=e=>{let t=am(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(ms);return i[0]===""&&i.length!==1&&i.shift(),pi(i,t)||tm(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&o[s]?[...l,...o[s]]:l}}},pi=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?pi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(ms);return t.validators.find(({validator:s})=>s(n))?.classGroupId},ui=/^\[(.+)\]$/,tm=e=>{if(ui.test(e)){let t=ui.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},am=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return rm(Object.entries(e.classGroups),a).forEach(([n,s])=>{ps(s,o,n,t)}),o},ps=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:di(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(om(r)){ps(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{ps(s,di(t,n),a,o)})})},di=(e,t)=>{let a=e;return t.split(ms).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},om=e=>e.isThemeGetter,rm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,r]}):e,nm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return r(n,s),s},set(n,s){a.has(n)?a.set(n,s):r(n,s)}}},mi="!",sm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let h=0;h<i.length;h++){let x=i[h];if(u===0){if(x===r&&(o||i.slice(h,h+n)===t)){l.push(i.slice(d,h)),d=h+n;continue}if(x==="/"){c=h;continue}}x==="["?u++:x==="]"&&u--}let f=l.length===0?i:i.substring(d),p=f.startsWith(mi),m=p?f.substring(1):f,g=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:s}):s},lm=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},im=e=>({cache:nm(e.cacheSize),parseClassName:sm(e),...em(e)}),um=/\s+/,dm=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(um),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:p}=a(u),m=!!p,g=o(m?f.substring(0,p):f);if(!g){if(!m){i=u+(i.length>0?" "+i:i);continue}if(g=o(f),!g){i=u+(i.length>0?" "+i:i);continue}m=!1}let h=lm(d).join(":"),x=c?h+mi:h,v=x+g;if(n.includes(v))continue;n.push(v);let C=r(g,m);for(let w=0;w<C.length;++w){let S=C[w];n.push(x+S)}i=u+(i.length>0?" "+i:i)}return i};function cm(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=gi(t))&&(o&&(o+=" "),o+=a);return o}var gi=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=gi(e[o]))&&(a&&(a+=" "),a+=t);return a};function ci(e,...t){let a,o,r,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=im(u),o=a.cache.get,r=a.cache.set,n=i,i(l)}function i(l){let u=o(l);if(u)return u;let d=dm(l,a);return r(l,d),d}return function(){return n(cm.apply(null,arguments))}}var ke=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},hi=/^\[(?:([a-z-]+):)?(.+)\]$/i,fm=/^\d+\/\d+$/,pm=new Set(["px","full","screen"]),mm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ym=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,aa=e=>po(e)||pm.has(e)||fm.test(e),Sa=e=>mo(e,"length",km),po=e=>!!e&&!Number.isNaN(Number(e)),fs=e=>mo(e,"number",po),Uo=e=>!!e&&Number.isInteger(Number(e)),vm=e=>e.endsWith("%")&&po(e.slice(0,-1)),te=e=>hi.test(e),ka=e=>mm.test(e),Cm=new Set(["length","size","percentage"]),bm=e=>mo(e,Cm,xi),wm=e=>mo(e,"position",xi),Lm=new Set(["image","url"]),Im=e=>mo(e,Lm,Mm),Sm=e=>mo(e,"",Pm),Ho=()=>!0,mo=(e,t,a)=>{let o=hi.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},km=e=>gm.test(e)&&!hm.test(e),xi=()=>!1,Pm=e=>xm.test(e),Mm=e=>ym.test(e);var fi=()=>{let e=ke("colors"),t=ke("spacing"),a=ke("blur"),o=ke("brightness"),r=ke("borderColor"),n=ke("borderRadius"),s=ke("borderSpacing"),i=ke("borderWidth"),l=ke("contrast"),u=ke("grayscale"),d=ke("hueRotate"),c=ke("invert"),f=ke("gap"),p=ke("gradientColorStops"),m=ke("gradientColorStopPositions"),g=ke("inset"),h=ke("margin"),x=ke("opacity"),v=ke("padding"),C=ke("saturate"),w=ke("scale"),S=ke("sepia"),F=ke("skew"),D=ke("space"),T=ke("translate"),L=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",te,t],P=()=>[te,t],Z=()=>["",aa,Sa],re=()=>["auto",po,te],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],fe=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>["start","end","center","between","around","evenly","stretch"],pe=()=>["","0",te],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Me=()=>[po,te];return{cacheSize:500,separator:":",theme:{colors:[Ho],spacing:[aa,Sa],blur:["none","",ka,te],brightness:Me(),borderColor:[e],borderRadius:["none","","full",ka,te],borderSpacing:P(),borderWidth:Z(),contrast:Me(),grayscale:pe(),hueRotate:Me(),invert:pe(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[vm,Sa],inset:H(),margin:H(),opacity:Me(),padding:P(),saturate:Me(),scale:Me(),sepia:pe(),skew:Me(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[ka]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...xe(),te]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Uo,te]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",Uo,te]}],"grid-cols":[{"grid-cols":[Ho]}],"col-start-end":[{col:["auto",{span:["full",Uo,te]},te]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[Ho]}],"row-start-end":[{row:["auto",{span:[Uo,te]},te]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[ka]},ka]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ka,Sa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fs]}],"font-family":[{font:[Ho]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",po,fs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",aa,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",aa,Sa]}],"underline-offset":[{"underline-offset":["auto",aa,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),wm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Im]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...fe(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:fe()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...fe()]}],"outline-offset":[{"outline-offset":[aa,te]}],"outline-w":[{outline:[aa,Sa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[aa,Sa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ka,Sm]}],"shadow-color":[{shadow:[Ho]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ka,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[C]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:Me()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:Me()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Uo,te]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[aa,Sa,fs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Am=(e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:n={},override:s={}})=>{_o(e,"cacheSize",t),_o(e,"prefix",a),_o(e,"separator",o),_o(e,"experimentalParseClassName",r);for(let i in s)Rm(e[i],s[i]);for(let i in n)Tm(e[i],n[i]);return e},_o=(e,t,a)=>{a!==void 0&&(e[t]=a)},Rm=(e,t)=>{if(t)for(let a in t)_o(e,a,t[a])},Tm=(e,t)=>{if(t)for(let a in t){let o=t[a];o!==void 0&&(e[a]=(e[a]||[]).concat(o))}},yi=(e,...t)=>typeof e=="function"?ci(fi,e,...t):ci(()=>Am(fi(),e),...t);var Dm=yi({prefix:"ps-"});function K(...e){return Dm((0,vi.clsx)(e))}b();var qp=require("@tanstack/react-query");b();b();var an=require("react");b();var Ci=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tn=(...e)=>e.filter((t,a,o)=>!!t&&o.indexOf(t)===a).join(" ");b();var Vo=require("react");b();var bi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var wi=(0,Vo.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,Vo.createElement)("svg",{ref:l,...bi,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:tn("lucide",r),...i},[...s.map(([u,d])=>(0,Vo.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var le=(e,t)=>{let a=(0,an.forwardRef)(({className:o,...r},n)=>(0,an.createElement)(wi,{ref:n,iconNode:t,className:tn(`lucide-${Ci(e)}`,o),...r}));return a.displayName=`${e}`,a};b();var Pa=le("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);b();var Ko=le("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);b();var oa=le("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);b();var Go=le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);b();var Wo=le("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);b();var ra=le("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);b();var Qo=le("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);b();var jo=le("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);b();var Wa=le("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);b();var Xo=le("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);b();var Zo=le("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);b();var Jo=le("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);b();var Yo=le("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);b();var er=le("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);b();var tr=le("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);b();var ar=le("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);b();var or=le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ds=require("react"),Np=require("sonner");b();var Li=require("@radix-ui/react-slot"),Ii=require("class-variance-authority"),Si=Se(require("react"),1);var ki=require("react/jsx-runtime"),Em=(0,Ii.cva)("ps-inline-flex ps-items-center ps-justify-center ps-gap-2 ps-whitespace-nowrap ps-rounded-md ps-text-sm ps-font-medium ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-pointer-events-none disabled:ps-opacity-50 [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",{variants:{variant:{default:"ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/90",destructive:"ps-bg-destructive ps-text-destructive-foreground ps-shadow-sm hover:ps-bg-destructive/90",outline:"ps-border ps-border-input ps-bg-background ps-shadow-sm hover:ps-bg-accent hover:ps-text-accent-foreground",secondary:"ps-bg-secondary ps-text-secondary-foreground ps-shadow-sm hover:ps-bg-secondary/80",ghost:"hover:ps-bg-accent hover:ps-text-accent-foreground",link:"ps-text-primary ps-underline-offset-4 hover:ps-underline"},size:{default:"ps-h-9 ps-px-4 ps-py-2",sm:"ps-h-8 ps-rounded-md ps-px-3 ps-text-xs",lg:"ps-h-10 ps-rounded-md ps-px-8",icon:"ps-h-9 ps-w-9"}},defaultVariants:{variant:"default",size:"default"}}),Xe=Si.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,ki.jsx)(o?Li.Slot:"button",{className:K(Em({variant:t,size:a,className:e})),ref:n,...r}));Xe.displayName="Button";b();var rr=Se(require("@radix-ui/react-checkbox"),1);var Pi=Se(require("react"),1);var on=require("react/jsx-runtime"),nr=Pi.forwardRef(({className:e,...t},a)=>(0,on.jsx)(rr.Root,{ref:a,className:K("ps-peer ps-h-4 ps-w-4 ps-shrink-0 ps-rounded-sm ps-border ps-border-primary ps-shadow focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=checked]:ps-text-primary-foreground",e),...t,children:(0,on.jsx)(rr.Indicator,{className:K("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,on.jsx)(oa,{className:"ps-h-4 ps-w-4"})})}));nr.displayName=rr.Root.displayName;b();var Xn=require("@tanstack/react-query");b();var Qn=require("@tanstack/react-query");b();b();var Tt=Se(require("react"),1),Gn=require("@tanstack/react-query");b();yr();var sf=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:d}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=Ms(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,l;return this.#l?l=this.#l:(l=Ps(()=>Promise.resolve().then(()=>(of(),af))),this.#l=l),Fs(this.#f,this.#a),y(l,ee({get queryFlavor(){return a.#d},get version(){return a.#c},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()}}))},e);this.#e=!0,this.#i=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#i?.(),this.#e=!1}},lf=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;#p;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:d,onClose:c}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l),this.#l=N(c)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}setOnClose(e){this.#l[1](()=>e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=Ms(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,[l]=this.#l,u;return this.#i?u=this.#i:(u=Ps(()=>Promise.resolve().then(()=>(nf(),rf))),this.#i=u),Fs(this.#f,this.#a),y(u,ee({get queryFlavor(){return a.#d},get version(){return a.#c},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()},get onClose(){return l()}}))},e);this.#e=!0,this.#p=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#p?.(),this.#e=!1}};var uf=require("react/jsx-runtime");function df(e){let t=(0,Gn.useQueryClient)(e.client),a=Tt.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Tt.useState(new sf({client:t,queryFlavor:"React Query",version:"5",onlineManager:Gn.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Tt.useEffect(()=>{u.setClient(t)},[t,u]),Tt.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Tt.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Tt.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Tt.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Tt.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,uf.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}b();var fa=Se(require("react"),1),Wn=require("@tanstack/react-query");var cf=require("react/jsx-runtime");function ff(e){let t=(0,Wn.useQueryClient)(e.client),a=fa.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=fa.useState(new lf({client:t,queryFlavor:"React Query",version:"5",onlineManager:Wn.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return fa.useEffect(()=>{s.setClient(t)},[t,s]),fa.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),fa.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),fa.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,cf.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var pf=process.env.NODE_ENV!=="development"?function(){return null}:df,Lw=process.env.NODE_ENV!=="development"?function(){return null}:ff;var xf=require("nuqs/adapters/react"),no=require("react"),yf=require("sonner");b();var mf=require("sonner"),hf=require("react/jsx-runtime"),gf=({...e})=>(0,hf.jsx)(mf.Toaster,{className:"ps-toaster ps-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});var ro=require("react/jsx-runtime"),xv=new Qn.QueryClient,vf=(0,no.createContext)(void 0);function Cf(e){let{children:t,...a}=e,[o,r]=(0,no.useState)(null),[n,s]=(0,no.useState)(!1),i=e.onError;i??=u=>yf.toast.error(u.message);let l=()=>s(u=>!u);return(0,ro.jsxs)(Qn.QueryClientProvider,{client:xv,children:[(0,ro.jsx)(pf,{}),(0,ro.jsx)(gf,{}),(0,ro.jsx)(xf.NuqsAdapter,{children:(0,ro.jsx)(vf.Provider,{value:{...a,activeTable:o,setActiveTable:r,onError:i,isFullscreen:n,toggleFullscreen:l},children:t})})]})}function Ge(){let e=(0,no.useContext)(vf);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}b();b();b();function so(e,t){return Object.entries(Object.values(t).reduce((a,o)=>{let{isInPrimaryKey:r,name:n}=o;return r&&(a[n]=e[n]??null),a},{}))}function yv(e,t){let a={filter:so(e,t.columns),table:`${t.schema}.${t.name}`};return JSON.stringify(a)}function bf(e,t){return{...e,__ps_rowid:yv(e,t)}}function jn(e,t){let{row:a,rows:o}=e;return a!==void 0?{...e,row:bf(a,t)}:o!==void 0?{...e,rows:o.map(r=>bf(r,t))}:e}function wf(){let{activeTable:e,adapter:t}=Ge(),a=(0,Xn.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,Xn.useMutation)({mutationKey:["schema",o,"table",r,"insert"],async mutationFn(n){let[s,i]=await t.insert({rows:n,table:e},{});if(s)throw s;return jn(i,e)},onSuccess(n){a.setQueriesData({exact:!1,queryKey:["schema",o,"table",r,"query"]},s=>s==null?s:{...s,rows:[...n.rows,...s.rows]})},retry:!1})}b();var Lf=require("@tanstack/react-query");function If(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=Ge();return(0,Lf.useQuery)({enabled:!!r,gcTime:0,placeholderData(s,i){let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},async queryFn({signal:s}){let[i,l]=await n.query({pageIndex:t,pageSize:a,sortOrder:o,table:r},{abortSignal:s});if(i)throw i;return jn(l,r)},queryKey:["schema",r?.schema||null,"table",r?.name||null,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",t,"pageSize",a],staleTime:1/0})}b();var Zn=require("@tanstack/react-query");function Sf(){let{activeTable:e,adapter:t,onError:a}=Ge(),o=(0,Zn.useQueryClient)(),r=["schema",e?.schema??null,"table",e?.name??null];return(0,Zn.useMutation)({mutationFn:async n=>{let[s,i]=await t.update(n.details,n.options);if(s)throw s;return i},mutationKey:[...r,"update"],onError(n,s){let{changes:i,row:l}=s.details;a(n),vl({getFinderFn(){let u={...l,...i},d=so(u,e.columns);return c=>d.every(([f,p])=>c[f]===p)},queryClient:o,table:e,updaterFn:function(d){return{...d,...Object.keys(i).reduce((c,f)=>({...c,[f]:l[f]}),{})}}})},onMutate(n){let{details:s}=n;vl({getFinderFn(){let{row:i}=s,l=so(i,e.columns);return u=>l.every(([d,c])=>u[d]===c)},queryClient:o,table:e,updaterFn:function(l){return{...l,...s.changes}}})},onSuccess(n,s){vl({getFinderFn(){let{changes:i,row:l}=s.details,u={...l,...i},d=so(u,e.columns);return c=>d.every(([f,p])=>c[f]===p)},queryClient:o,table:e,updaterFn:function(l){let{__ps_updated_at__:u}=l,{row:d}=n;return u!=null&&d.__ps_updated_at__<=u?l:{...l,...d}}})},retry:!1})}function vl(e){let{getFinderFn:t,queryClient:a,table:o,updaterFn:r}=e,n;a.setQueriesData({exact:!1,queryKey:["schema",o.schema,"table",o.name,"query"]},s=>{let{rows:i=[]}=s||{};if(i.length===0)return s;let l=i.findIndex(n??=t());if(l===-1)return s;let u=r(i[l]);return{...s,rows:[...i.slice(0,l),u,...i.slice(l+1)]}})}b();var kf=require("@tanstack/react-query");function Pf(){return(0,kf.useIsMutating)({predicate({options:{mutationKey:e}}){return e?.[4]==="insert"}})}b();var Mf=require("react");var Qe={};en(Qe,{keyMap:()=>Cl,urlKeys:()=>vv,useQueryState:()=>To,useQueryStates:()=>$r});b();var Jn=require("nuqs");ta(Qe,require("nuqs"));function Cl(e){return e}function vv(e){return e}var oL=Symbol("BRAND_SYMBOL");function To(e,t){return(0,Jn.useQueryState)(e,t)}function $r(e,t){return(0,Jn.useQueryStates)(e,t)}var Cv=25,bv={pageIndex:Qe.parseAsIndex.withDefault(0),pageSize:Qe.parseAsInteger.withDefault(Cv)};function Yn(){let[{pageIndex:e,pageSize:t},a]=$r(bv),o=(0,Mf.useCallback)(r=>{a(typeof r=="function"?n=>{let s=r(n);return{pageIndex:s.pageIndex,pageSize:s.pageSize}}:{pageIndex:r.pageIndex,pageSize:r.pageSize})},[a]);return{paginationState:{pageIndex:e,pageSize:t},setPaginationState:o}}b();var ts=require("react");b();var es=require("@tanstack/react-query");function Af(){let{activeTable:e,adapter:t}=Ge(),a=(0,es.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,es.useMutation)({mutationKey:["schema",o,"table",r,"delete"],async mutationFn(n){let[s,i]=await t.delete({rows:n,table:e},{});if(s)throw s;return i},async onSuccess(){await a.invalidateQueries({exact:!1,queryKey:["schema",o,"table",r,"query"]})},retry:!1})}function Rf(e){let{activeTable:t,onError:a}=Ge(),{paginationState:o}=Yn(),[r,n]=(0,ts.useState)({}),s=Object.keys(r).length!==0,{mutate:i}=Af();(0,ts.useEffect)(()=>n({}),[t,o.pageIndex]);function l(){let u=e?.rows.filter(d=>r[d.__ps_rowid]);i(u??[],{onSuccess(){n({})},onError:a})}return{deleteSelection:l,setRowSelectionState:n,rowSelectionState:r,isSelecting:s}}b();var as=require("react");function Tf(){let[e,t]=To("sort",{defaultValue:""}),a=s=>{if(!s)return[];try{return s.split(",").map(i=>{let[l,u]=i.split(":");return!l||!u||!["asc","desc"].includes(u)?null:{column:l,direction:u}}).filter(Boolean)}catch(i){return console.error("Failed to parse sorting parameter:",i),[]}},[o,r]=(0,as.useState)(()=>a(e));return(0,as.useEffect)(()=>{let s=a(e);r(s)},[e]),{sortingState:o,setSortingState:s=>{let i=typeof s=="function"?s(o):s;r(i);let l=i.length>0?i.map(u=>`${u.column}:${u.direction}`).join(","):null;t(l)}}}b();var jf=require("remeda");b();var Bf=require("react");b();b();var pa=Se(require("react"),1);var _t=require("react/jsx-runtime"),bl=pa.forwardRef(({className:e,...t},a)=>(0,_t.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,_t.jsx)("table",{ref:a,className:K("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));bl.displayName="Table";var wl=pa.forwardRef(({className:e,...t},a)=>(0,_t.jsx)("thead",{ref:a,className:K(e),...t}));wl.displayName="TableHeader";var Ll=pa.forwardRef(({className:e,...t},a)=>(0,_t.jsx)("tbody",{ref:a,className:K("[&_tr:last-child]:ps-border-0",e),...t}));Ll.displayName="TableBody";var wv=pa.forwardRef(({className:e,...t},a)=>(0,_t.jsx)("tfoot",{ref:a,className:K("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));wv.displayName="TableFooter";var lo=pa.forwardRef(({className:e,...t},a)=>(0,_t.jsx)("tr",{ref:a,className:K("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));lo.displayName="TableRow";var os=pa.forwardRef(({className:e,...t},a)=>(0,_t.jsx)("th",{ref:a,className:K("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground",e),...t}));os.displayName="TableHead";var Do=pa.forwardRef(({className:e,...t},a)=>(0,_t.jsx)("td",{ref:a,className:K("ps-align-middle",e),...t}));Do.displayName="TableCell";var Lv=pa.forwardRef(({className:e,...t},a)=>(0,_t.jsx)("caption",{ref:a,className:K("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));Lv.displayName="TableCaption";b();var Ff=require("react");b();var ne=Se(require("@radix-ui/react-context-menu"),1);var ma=Se(require("react"),1);var ze=require("react/jsx-runtime"),Df=ne.Root,Ef=ne.Trigger;var Iv=ma.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,ze.jsxs)(ne.SubTrigger,{ref:r,className:K("ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[state=open]:ps-bg-accent data-[state=open]:ps-text-accent-foreground",t&&"ps-pl-8",e),...o,children:[a,(0,ze.jsx)(ra,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));Iv.displayName=ne.SubTrigger.displayName;var Sv=ma.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(ne.SubContent,{ref:a,className:K("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t}));Sv.displayName=ne.SubContent.displayName;var Il=ma.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(ne.Portal,{children:(0,ze.jsx)(ne.Content,{ref:a,className:K("ps-z-50 ps-max-h-[--radix-context-menu-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Il.displayName=ne.Content.displayName;var Sl=ma.forwardRef(({className:e,inset:t,...a},o)=>(0,ze.jsx)(ne.Item,{ref:o,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",t&&"ps-pl-8",e),...a}));Sl.displayName=ne.Item.displayName;var kv=ma.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,ze.jsxs)(ne.CheckboxItem,{ref:r,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,ze.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,ze.jsx)(ne.ItemIndicator,{children:(0,ze.jsx)(oa,{className:"ps-h-4 ps-w-4"})})}),t]}));kv.displayName=ne.CheckboxItem.displayName;var Pv=ma.forwardRef(({className:e,children:t,...a},o)=>(0,ze.jsxs)(ne.RadioItem,{ref:o,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,ze.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,ze.jsx)(ne.ItemIndicator,{children:(0,ze.jsx)(Wa,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));Pv.displayName=ne.RadioItem.displayName;var Mv=ma.forwardRef(({className:e,inset:t,...a},o)=>(0,ze.jsx)(ne.Label,{ref:o,className:K("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));Mv.displayName=ne.Label.displayName;var Av=ma.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(ne.Separator,{ref:a,className:K("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));Av.displayName=ne.Separator.displayName;var Rv=({className:e,...t})=>(0,ze.jsx)("span",{className:K("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});Rv.displayName="ContextMenuShortcut";var io=require("react/jsx-runtime");function Of(e){let{children:t}=e;return(0,io.jsxs)(Df,{children:[(0,io.jsx)(Ef,{className:"ps-block ps-w-full ps-px-[var(--studio-cell-spacing)] ps-leading-[var(--studio-cell-height)] ps-h-[var(--studio-cell-height)] ps-text-xs ps-font-mono ps-whitespace-nowrap ps-overflow-hidden ps-text-ellipsis",children:t}),(0,io.jsx)(Il,{children:(0,io.jsxs)(Sl,{onClick:()=>{let a=kl(t);navigator.clipboard.writeText(a).catch(o=>{console.error("Failed to copy to clipboard:",o)})},className:"ps-flex ps-items-center ps-gap-2",children:[(0,io.jsx)(Xo,{size:12}),"Copy"]})})]})}function kl(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,Ff.isValidElement)(e)){let t=e.props;return e.type&&typeof e.type=="function"&&e.type.name==="RevealText"?t.text||"":e.type&&typeof e.type=="function"&&e.type.name==="NullValue"?"NULL":t.children?kl(t.children):""}return Array.isArray(e)?e.map(kl).join(""):""}var Pl=require("react/jsx-runtime");function tt(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,Pl.jsx)(Do,{...n,className:K("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head last:ps-border-r-0","ps-cursor-pointer",a),ref:o,style:r,children:(0,Pl.jsx)(Of,{children:t})})}var Ml=require("react/jsx-runtime"),Al=(0,Bf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Ml.jsx)(tt,{...r,...a,ref:t,children:(0,Ml.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});Al.displayName="BooleanCell";b();var $f=require("react");var qf=require("react/jsx-runtime"),Rl=(0,$f.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,qf.jsx)(tt,{...r,...a,ref:t,children:String(o)})});Rl.displayName="DateCell";b();var Nf=require("react");var zf=require("react/jsx-runtime"),qr=(0,Nf.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,zf.jsx)(tt,{...o,...a,ref:t})});qr.displayName="EmptyCell";b();var Uf=require("react");var Hf=require("react/jsx-runtime"),Tl=(0,Uf.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,Hf.jsx)(tt,{...n,...a,ref:t,children:String(o)})});Tl.displayName="EnumCell";b();var _f=require("react");var Vf=require("react/jsx-runtime"),rs=(0,_f.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Vf.jsx)(tt,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});rs.displayName="JSONCell";b();var Kf=require("react");var Dl=require("react/jsx-runtime"),El=(0,Kf.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,Dl.jsx)(tt,{...o,...a,ref:t,children:(0,Dl.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});El.displayName="NullCell";b();var Gf=require("react");var Fl=require("react/jsx-runtime"),Ol=(0,Gf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Fl.jsx)(tt,{...r,...a,ref:t,children:(0,Fl.jsx)("div",{"data-cell-type":"numeric",children:o===null?"NULL":String(o)})})});Ol.displayName="NumericCell";b();var Wf=require("react");var Qf=require("react/jsx-runtime"),Nr=(0,Wf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Qf.jsx)(tt,{...r,...a,ref:t,children:String(o)})});Nr.displayName="RawCell";var Lt=require("react/jsx-runtime");function ns(e,t,a){let o=e.getValue();if(o===void 0)return(0,Lt.jsx)(qr,{});if(o===null)return(0,Lt.jsx)(El,{});let{group:r,options:n,isArray:s}=t.datatype;if(r==="json"||s)return(0,Lt.jsx)(rs,{containerProps:a,value:o});if(r==="string")return(0,Lt.jsx)(Nr,{containerProps:a,value:o});if(r==="enum")return(0,Lt.jsx)(Tl,{containerProps:a,value:o,options:n});if(r==="boolean")return(0,Lt.jsx)(Al,{containerProps:a,value:o});if(r==="datetime")return(0,Lt.jsx)(Rl,{containerProps:a,value:o});if(r==="time")return(0,Lt.jsx)(Nr,{containerProps:a,value:o});if(r==="numeric")return(0,Lt.jsx)(Ol,{containerProps:a,value:o});if(r==="raw")return(0,jf.isObjectType)(o)?(0,Lt.jsx)(rs,{containerProps:a,value:o}):(0,Lt.jsx)(Nr,{containerProps:a,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}b();var Xf=require("react");var Bl=require("react/jsx-runtime"),$l=(0,Xf.forwardRef)((e,t)=>{let{row:a,className:o,...r}=e;return(0,Bl.jsx)("div",{ref:t,className:K("ps-flex ps-justify-center ps-items-center",o),...r,children:(0,Bl.jsx)(nr,{checked:a.getIsSelected(),disabled:!a.getCanSelect(),onCheckedChange:a.getToggleSelectedHandler()})})});$l.displayName="SelectRowCell";b();b();var ga=Se(require("@radix-ui/react-popover"),1),Oe=Se(require("react"),1);var Eo=require("react/jsx-runtime"),Zf=Oe.createContext(null),ql=({children:e,...t})=>{let[a,o]=Oe.useState(!1),r=Oe.useRef(new Set),n=Oe.useCallback(l=>{r.current.add(l)},[]),s=Oe.useCallback(l=>{r.current.delete(l)},[]),i=Oe.useCallback(l=>{!l&&a&&r.current.forEach(u=>{u()}),o(l)},[a]);return(0,Eo.jsx)(Zf.Provider,{value:{open:a,setOpen:o,registerOnBeforeClose:n,unregisterOnBeforeClose:s},children:(0,Eo.jsx)(ga.Root,{open:a,onOpenChange:i,...t,children:e})})};ql.displayName="PopoverCell";var Nl=Oe.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=Oe.useRef(null);return(0,Eo.jsx)(ga.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:K("w-full h-full cursor-pointer",a),...o,children:e})});Nl.displayName="PopoverCellTrigger";var zl=Oe.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Eo.jsx)(ga.Portal,{children:(0,Eo.jsx)(ga.Content,{ref:r,align:t,sideOffset:a,className:K("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),onEscapeKeyDown:n=>n.preventDefault(),...o})}));zl.displayName=ga.Content.displayName;function Vt(e){let t=Oe.useContext(Zf),a=Oe.useCallback(()=>{e.onSave&&e.onSave(),t&&t.setOpen(!1)},[e.onSave,t]),o=Oe.useCallback(()=>{e.onCancel&&e.onCancel(),t&&t.setOpen(!1)},[e.onCancel,t]);return Oe.useEffect(()=>{if(!t?.registerOnBeforeClose||!e.onSave)return;let r=()=>!!e.onSave?.();return t.registerOnBeforeClose(r),()=>t.unregisterOnBeforeClose?.(r)},[e.onSave,t]),Oe.useEffect(()=>{let r=n=>{(n.key==="Enter"||n.key==="Return")&&!n.shiftKey?a():n.key==="Escape"&&o()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[a,o]),{handleSave:a,handleCancel:o}}var zr=require("react/jsx-runtime");function ss(e){let{cellComponent:t,inputComponent:a}=e;return(0,zr.jsxs)(ql,{children:[(0,zr.jsx)(Nl,{asChild:!0,children:t}),(0,zr.jsx)(zl,{align:"start",alignOffset:-1,className:"ps-min-w-cell ps-rounded-none ps-bg-muted ps-p-0 ps-z-30 ps-gap-0 ps-border-blue-500 ps-min-w-[calc(var(--radix-popover-trigger-width) + 1px)]",sideOffset:-40,children:a})]})}b();var Na=require("@dnd-kit/core"),za=require("@dnd-kit/sortable"),pp=require("@dnd-kit/utilities"),Fo=require("@tanstack/react-table");b();var ha=Se(require("react"),1),_=Se(require("react"),1);function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},$a.apply(null,arguments)}var Tv=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function Dv(e,t){let[a,o]=_.default.useState();_.default.useEffect(()=>{let n=Tv(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=_.default.useCallback(n=>{o(s=>{let i=n;typeof n=="function"&&(i=n(s));try{localStorage.setItem(e,JSON.stringify(i))}catch{}return i})},[e]);return[a,r]}var Kt={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},ep=_.default.createContext(Kt);function tp(e){let{theme:t,...a}=e;return _.default.createElement(ep.Provider,$a({value:t},a))}function Ev(){return _.default.useContext(ep)}function Fv(e){let[t,a]=_.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return _.default.useEffect(()=>{if(typeof window<"u"){if(!window.matchMedia)return;let o=window.matchMedia(e),r=n=>{let{matches:s}=n;return a(s)};return o.addListener(r),()=>{o.removeListener(r)}}},[t,e,a]),t}var Ov=typeof window>"u";function Dt(e,t,a){return a===void 0&&(a={}),_.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=Ev(),l=Object.entries(a).reduce((u,d)=>{let[c,f]=d;return Fv(c)?{...u,...typeof f=="function"?f(s,i):f}:u},{});return _.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function Bv(){let e=_.default.useRef(!1),t=_.default.useCallback(()=>e.current,[]);return _.default[Ov?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var $v=Dt("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}});Dt("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})});var qv=Dt("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}));Dt("code",{fontSize:".9em"});Dt("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Dt("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});var Jf=Dt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),ls=Dt("span",{cursor:"pointer",color:"white"}),Nv=Dt("span",(e,t)=>({color:t.danger})),Ul=Dt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),zv=Dt("span",{color:"grey",fontSize:".7rem"}),Yf=e=>{let{expanded:t,style:a={},...o}=e;return _.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},Uv=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:d}=e,[c,f]=_.default.useState(void 0),[p,m]=_.default.useState([]),g=()=>{f(o())};return _.default.createElement(Jf,{key:a},n!=null&&n.length?_.default.createElement(_.default.Fragment,null,_.default.createElement(ls,{onClick:()=>l()},_.default.createElement(Yf,{expanded:i})," ",a," ",_.default.createElement(zv,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?_.default.createElement(Ul,null,r.map(h=>t(h))):_.default.createElement(Ul,null,n.map((h,x)=>_.default.createElement("div",{key:x},_.default.createElement(Jf,null,_.default.createElement(ls,{onClick:()=>m(v=>v.includes(x)?v.filter(C=>C!==x):[...v,x])},_.default.createElement(Yf,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),p.includes(x)?_.default.createElement(Ul,null,h.map(v=>t(v))):null)))):null):s==="function"?_.default.createElement(_.default.Fragment,null,_.default.createElement(Gt,{renderer:d,label:_.default.createElement("button",{onClick:g},_.default.createElement(ls,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):_.default.createElement(_.default.Fragment,null,_.default.createElement(ls,null,a,":")," ",_.default.createElement(Nv,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function Gt(e){let{value:t,defaultExpanded:a,renderer:o=Uv,pageSize:r=100,depth:n=0,...s}=e,[i,l]=_.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},d=[],c=typeof t,f,p=[],m=g=>{let h=d.concat(g.label),x=a===!0?{[g.label]:!0}:a?.[g.label];return{...g,subPath:g,path:h,depth:n+1,defaultExpanded:x}};if(Array.isArray(t)?(c="array",f=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(c="Iterable",f=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?c="function":typeof t=="object"&&t!==null&&(c="object",f=Object.entries(t).map(g=>{let[h,x]=g;return m({label:h,value:x})})),f){let g=0;for(;g<f.length;)p.push(f.slice(g,g+r)),g=g+r}return o({handleEntry:g=>_.default.createElement(Gt,$a({key:g.label,renderer:o},s,g)),type:c,subEntries:f,subEntryPages:p,depth:n,value:t,path:d,expanded:i,toggle:u,pageSize:r,...s})}function ap(e){return ha.createElement("svg",$a({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),ha.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ha.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},ha.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},ha.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},ha.createElement("path",{d:"M39.7239712,51.3436237 C36.631224,36.362877 35.9675112,24.8727722 37.9666331,16.5293551 C39.1555965,11.5671678 41.3293088,7.51908462 44.6346064,4.59846305 C48.1241394,1.51504777 52.5360327,0.00201216606 57.493257,0.00201216606 C65.6712013,0.00201216606 74.2682602,3.72732143 83.4557246,10.8044264 C87.2031203,13.6910458 91.0924366,17.170411 95.1316515,21.2444746 C95.4531404,20.8310265 95.8165416,20.4410453 96.2214301,20.0806152 C107.64098,9.91497158 117.255245,3.59892716 125.478408,1.16365068 C130.367899,-0.284364005 134.958526,-0.422317978 139.138936,0.983031021 C143.551631,2.46646844 147.06766,5.53294888 149.548314,9.82810912 C153.642288,16.9166735 154.721918,26.2310983 153.195595,37.7320243 C152.573451,42.4199112 151.50985,47.5263831 150.007094,53.0593153 C150.574045,53.1277086 151.142416,53.2532808 151.705041,53.4395297 C166.193932,58.2358678 176.453582,63.3937462 182.665021,69.2882839 C186.360669,72.7953831 188.773972,76.6998434 189.646365,81.0218204 C190.567176,85.5836746 189.669313,90.1593316 187.191548,94.4512967 C183.105211,101.529614 175.591643,107.11221 164.887587,111.534031 C160.589552,113.309539 155.726579,114.917559 150.293259,116.363748 C150.541176,116.92292 150.733521,117.516759 150.862138,118.139758 C153.954886,133.120505 154.618598,144.61061 152.619477,152.954027 C151.430513,157.916214 149.256801,161.964297 145.951503,164.884919 C142.46197,167.968334 138.050077,169.48137 133.092853,169.48137 C124.914908,169.48137 116.31785,165.756061 107.130385,158.678956 C103.343104,155.761613 99.4108655,152.238839 95.3254337,148.108619 C94.9050753,148.765474 94.3889681,149.376011 93.7785699,149.919385 C82.3590198,160.085028 72.744755,166.401073 64.5215915,168.836349 C59.6321009,170.284364 55.0414736,170.422318 50.8610636,169.016969 C46.4483686,167.533532 42.9323404,164.467051 40.4516862,160.171891 C36.3577116,153.083327 35.2780823,143.768902 36.8044053,132.267976 C37.449038,127.410634 38.56762,122.103898 40.1575891,116.339009 C39.5361041,116.276104 38.9120754,116.144816 38.2949591,115.940529 C23.8060684,111.144191 13.5464184,105.986312 7.33497892,100.091775 C3.63933121,96.5846754 1.22602752,92.6802151 0.353635235,88.3582381 C-0.567176333,83.7963839 0.330686581,79.2207269 2.80845236,74.9287618 C6.89478863,67.8504443 14.4083565,62.2678481 25.1124133,57.8460273 C29.5385143,56.0176154 34.5637208,54.366822 40.1939394,52.8874674 C39.9933393,52.3969171 39.8349374,51.8811235 39.7239712,51.3436237 Z",id:"Path",fill:"#002C4B",fillRule:"nonzero",transform:"translate(95.000000, 85.000000) scale(-1, 1) translate(-95.000000, -85.000000) "}),ha.createElement("path",{d:"M91.735,110 L91.735,116 L80.6322051,116 C78.8411286,116 77.1868614,115.041975 76.2954489,113.488483 L74.294,110 L91.735,110 Z M116.181,110 L114.180256,113.488483 C113.288844,115.041975 111.634576,116 109.8435,116 L98.735,116 L98.735,110 L116.181,110 Z M91.735,96 L91.735,103 L70.277,103 L66.26,96 L91.735,96 Z M124.215,96 L120.198,103 L98.735,103 L98.735,96 L124.215,96 Z M91.735,82 L91.735,89 L62.244,89 L61.6632438,87.9884826 C60.7789187,86.4473417 60.7789187,84.5526583 61.6632438,83.0115174 L62.243,82 L91.735,82 Z M128.232,82 L128.812461,83.0115174 C129.696786,84.5526583 129.696786,86.4473417 128.812461,87.9884826 L128.231,89 L98.735,89 L98.735,82 L128.232,82 Z M91.735,68 L91.735,75 L66.26,75 L70.277,68 L91.735,68 Z M120.198,68 L124.215,75 L98.735,75 L98.735,68 L120.198,68 Z M91.735,55 L91.735,61 L74.293,61 L76.2954489,57.5115174 C77.1868614,55.958025 78.8411286,55 80.6322051,55 L91.735,55 Z M109.8435,55 C111.634576,55 113.288844,55.958025 114.180256,57.5115174 L116.182,61 L98.735,61 L98.735,55 L109.8435,55 Z",id:"Polygon-2",fill:"#FFD94C"}),ha.createElement("path",{d:"M54.8601729,98.3577578 C56.1715224,97.6082856 57.8360246,98.0746014 58.5779424,99.3993034 L58.5779424,99.3993034 L59.0525843,100.24352 C62.8563392,106.982993 66.8190116,113.380176 70.9406016,119.435068 C75.8078808,126.585427 81.28184,133.82411 87.3624792,141.151115 C88.3168778,142.30114 88.1849437,144.011176 87.065686,144.997937 L87.065686,144.997937 L86.4542085,145.534625 C66.3465389,163.103314 53.2778188,166.612552 47.2480482,156.062341 C41.3500652,145.742717 43.4844915,126.982888 53.6513274,99.7828526 C53.876818,99.1795821 54.3045861,98.675291 54.8601729,98.3577578 Z M140.534177,119.041504 C141.986131,118.785177 143.375496,119.742138 143.65963,121.194242 L143.65963,121.194242 L143.812815,121.986376 C148.782365,147.995459 145.283348,161 133.315764,161 C121.609745,161 106.708724,149.909007 88.6127018,127.727022 C88.2113495,127.235047 87.9945723,126.617371 88,125.981509 C88.013158,124.480686 89.2357854,123.274651 90.730918,123.287756 L90.730918,123.287756 L91.6846544,123.294531 C99.3056979,123.335994 106.714387,123.071591 113.910723,122.501323 C122.409039,121.82788 131.283523,120.674607 140.534177,119.041504 Z M147.408726,63.8119663 C147.932139,62.4026903 149.508386,61.6634537 150.954581,62.149012 L150.954581,62.149012 L151.742552,62.4154854 C177.583763,71.217922 187.402356,80.8916805 181.198332,91.4367609 C175.129904,101.751366 157.484347,109.260339 128.26166,113.963678 C127.613529,114.067994 126.948643,113.945969 126.382735,113.618843 C125.047025,112.846729 124.602046,111.158214 125.388848,109.847438 L125.388848,109.847438 L125.889328,109.0105 C129.877183,102.31633 133.481358,95.6542621 136.701854,89.0242957 C140.50501,81.1948179 144.073967,72.7907081 147.408726,63.8119663 Z M61.7383398,56.0363218 C62.3864708,55.9320063 63.0513565,56.0540315 63.6172646,56.3811573 C64.9529754,57.153271 65.3979538,58.8417862 64.6111517,60.1525615 L64.6111517,60.1525615 L64.1106718,60.9895001 C60.1228168,67.6836699 56.5186416,74.3457379 53.2981462,80.9757043 C49.49499,88.8051821 45.9260328,97.2092919 42.5912744,106.188034 C42.0678608,107.59731 40.4916142,108.336546 39.045419,107.850988 L39.045419,107.850988 L38.2574475,107.584515 C12.4162372,98.782078 2.59764398,89.1083195 8.80166786,78.5632391 C14.8700957,68.2486335 32.515653,60.7396611 61.7383398,56.0363218 Z M103.545792,24.4653746 C123.653461,6.89668641 136.722181,3.38744778 142.751952,13.9376587 C148.649935,24.2572826 146.515508,43.0171122 136.348673,70.2171474 C136.123182,70.8204179 135.695414,71.324709 135.139827,71.6422422 C133.828478,72.3917144 132.163975,71.9253986 131.422058,70.6006966 L131.422058,70.6006966 L130.947416,69.7564798 C127.143661,63.0170065 123.180988,56.6198239 119.059398,50.564932 C114.192119,43.4145727 108.71816,36.1758903 102.637521,28.8488847 C101.683122,27.6988602 101.815056,25.9888243 102.934314,25.0020629 L102.934314,25.0020629 Z M57.6842361,8 C69.3902551,8 84.2912758,19.0909926 102.387298,41.2729777 C102.788651,41.7649527 103.005428,42.3826288 103,43.0184911 C102.986842,44.5193144 101.764215,45.7253489 100.269082,45.7122445 L100.269082,45.7122445 L99.3153456,45.7054689 C91.6943021,45.6640063 84.2856126,45.9284091 77.0892772,46.4986773 C68.5909612,47.17212 59.7164767,48.325393 50.4658235,49.9584962 C49.0138691,50.2148231 47.6245044,49.2578618 47.3403697,47.805758 L47.3403697,47.805758 L47.1871846,47.0136235 C42.2176347,21.0045412 45.7166519,8 57.6842361,8 Z",id:"Combined-Shape",fill:"#FF4154"}))))))}function op(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=_.default.useRef(null),i=_.default.useRef(null),[l,u]=Dv("reactTableDevtoolsOpen",t),d=Bv(),{style:c={},...f}=o,{style:p={},onClick:m,...g}=r;return d()?_.default.createElement(n,{ref:s,className:"ReactTableDevtools"},_.default.createElement(tp,{theme:Kt},l?_.default.createElement(Hv,$a({ref:i},f,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):_.default.createElement("button",$a({type:"button"},g,{"aria-label":"Open React Table Devtools",onClick:h=>{u(!0),m&&m(h)},style:{background:"none",border:0,padding:0,margin:".5rem",display:"inline-flex",fontSize:"1.5em",cursor:"pointer",width:"fit-content",...p}}),_.default.createElement(ap,{"aria-hidden":!0})))):null}var Hv=_.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return _.default.createElement(tp,{theme:Kt},_.default.createElement($v,$a({ref:a,className:"ReactTableDevtoolsPanel"},s),_.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1201
1201
|
.ReactTableDevtoolsPanel * {
|
|
1202
|
-
scrollbar-color: ${
|
|
1202
|
+
scrollbar-color: ${Kt.backgroundAlt} ${Kt.gray};
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar, .ReactTableDevtoolsPanel scrollbar {
|
|
@@ -1208,15 +1208,15 @@
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar-track, .ReactTableDevtoolsPanel scrollbar-track {
|
|
1211
|
-
background: ${
|
|
1211
|
+
background: ${Kt.backgroundAlt};
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactTableDevtoolsPanel scrollbar-thumb {
|
|
1215
|
-
background: ${
|
|
1215
|
+
background: ${Kt.gray};
|
|
1216
1216
|
border-radius: .5em;
|
|
1217
|
-
border: 3px solid ${
|
|
1217
|
+
border: 3px solid ${Kt.backgroundAlt};
|
|
1218
1218
|
}
|
|
1219
|
-
`}}),_.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Qt.grayAlt}`,display:"flex",flexDirection:"column"}},_.default.createElement("div",{style:{padding:".5em",background:Qt.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},_.default.createElement(dp,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),_.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",_.default.createElement("span",{style:{fontWeight:100}},"Devtools")),_.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?_.default.createElement(jv,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),_.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},_.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},_.default.createElement(jt,{label:"Instance",value:o,defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(jt,{label:"State",value:o.getState(),defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(jt,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),_.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},_.default.createElement(jt,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),_.default.createElement(jt,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),_.default.createElement(jt,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),_.default.createElement(jt,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),_.default.createElement(jt,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Ua=require("react");b();var mp=require("@tanstack/react-table");b();var ne=Ce(require("@radix-ui/react-dropdown-menu"),1);var ya=Ce(require("react"),1);var Ue=require("react/jsx-runtime"),fp=ne.Root,pp=ne.Trigger;var eC=ya.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ue.jsxs)(ne.SubTrigger,{ref:r,className:K("ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent data-[state=open]:ps-bg-accent [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",t&&"ps-pl-8",e),...o,children:[a,(0,Ue.jsx)(na,{className:"ps-ml-auto"})]}));eC.displayName=ne.SubTrigger.displayName;var tC=ya.forwardRef(({className:e,...t},a)=>(0,Ue.jsx)(ne.SubContent,{ref:a,className:K("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));tC.displayName=ne.SubContent.displayName;var Gl=ya.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ue.jsx)(ne.Portal,{children:(0,Ue.jsx)(ne.Content,{ref:o,sideOffset:t,className:K("ps-z-50 ps-max-h-[var(--radix-dropdown-menu-content-available-height)] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md","data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...a})}));Gl.displayName=ne.Content.displayName;var us=ya.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(ne.Item,{ref:o,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50 [&>svg]:ps-size-4 [&>svg]:ps-shrink-0",t&&"ps-pl-8",e),...a}));us.displayName=ne.Item.displayName;var aC=ya.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ue.jsxs)(ne.CheckboxItem,{ref:r,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,Ue.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ue.jsx)(ne.ItemIndicator,{children:(0,Ue.jsx)(ra,{className:"ps-h-4 ps-w-4"})})}),t]}));aC.displayName=ne.CheckboxItem.displayName;var oC=ya.forwardRef(({className:e,children:t,...a},o)=>(0,Ue.jsxs)(ne.RadioItem,{ref:o,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Ue.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ue.jsx)(ne.ItemIndicator,{children:(0,Ue.jsx)(Za,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));oC.displayName=ne.RadioItem.displayName;var rC=ya.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(ne.Label,{ref:o,className:K("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));rC.displayName=ne.Label.displayName;var nC=ya.forwardRef(({className:e,...t},a)=>(0,Ue.jsx)(ne.Separator,{ref:a,className:K("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));nC.displayName=ne.Separator.displayName;var sC=({className:e,...t})=>(0,Ue.jsx)("span",{className:K("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});sC.displayName="DropdownMenuShortcut";var de=require("react/jsx-runtime");function gp(e){let{header:t,className:a}=e;return(0,de.jsxs)("div",{className:K("ps-flex ps-items-center ps-justify-between ps-w-full ps-h-full ps-flex-0",a),children:[(0,de.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,de.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:t.isPlaceholder?null:(0,de.jsx)("span",{className:"ps-flex ps-min-w-0",children:(0,de.jsx)("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:(0,mp.flexRender)(t.column.columnDef.header,t.getContext())})})}),(0,de.jsx)("span",{className:"ps-relative ps-gap-1",children:t.column.getCanPin()&&t.column.id!=="select"&&(0,de.jsxs)(fp,{children:[(0,de.jsx)(pp,{asChild:!0,children:(0,de.jsx)(ot,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,de.jsx)(Xo,{size:12})})}),(0,de.jsxs)(Gl,{children:[t.column.getCanSort()&&(0,de.jsx)(us,{onClick:()=>t.column.toggleSorting(),children:(0,de.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Ra,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(jo,{size:16}),"Sort ascending"]}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(nr,{size:16}),"Cancel sorting"]})})}),(0,de.jsx)(us,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,de.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,de.jsx)(or,{size:16}),"Unpin column"]}):(0,de.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,de.jsx)(rr,{size:16}),"Pin column"]})})]})]})})]}),t.column.getCanResize()&&(0,de.jsx)("button",{type:"button",tabIndex:0,onMouseDown:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onTouchStart:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onClick:o=>o.stopPropagation(),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),t.getResizeHandler()(o))},className:K("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-px ps-cursor-col-resize ps-border ps-border-transparent hover:ps-border-table-border"),"aria-label":"Resize column"})]})}b();var Wl=require("react/jsx-runtime");function hp({className:e}){return(0,Wl.jsx)("div",{"data-loading-bar":!0,className:K("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:(0,Wl.jsx)("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}b();b();var xp=Ce(require("react"),1);var yp=require("react/jsx-runtime"),va=xp.forwardRef(({className:e,type:t,...a},o)=>(0,yp.jsx)("input",{type:t,className:K("ps-flex ps-h-9 ps-w-full ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-1 ps-shadow-sm ps-transition-colors file:ps-border-0 file:ps-bg-transparent file:ps-text-sm file:ps-font-medium file:ps-text-foreground placeholder:ps-text-muted-foreground focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50",e),ref:o,...a}));va.displayName="Input";var Ne=require("react/jsx-runtime");function vp(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount();return(0,Ne.jsx)("div",{className:"ps-rounded-b-lg ps-overflow-clip ps-sticky ps-bottom-0 ps-left-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Ne.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-2 ps-px-2 ps-border-t ps-border-table-border ps-backdrop-blur-sm ps-bg-table-head/90",children:a==="basic"?(0,Ne.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ne.jsx)(ot,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Ne.jsx)(ot,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:"Next"})]}):(0,Ne.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Ne.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ne.jsx)(ot,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Ne.jsx)(Jo,{className:"ps-w-4 ps-h-4"})}),(0,Ne.jsx)(ot,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Ne.jsx)(Zo,{className:"ps-w-4 ps-h-4"})}),(0,Ne.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Ne.jsx)(va,{type:"number",min:1,max:r,value:o+1,className:"ps-w-16",onChange:n=>{let s=n.target.value?Number(n.target.value)-1:0;t.setPageIndex(s)}}),(0,Ne.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",r]})]}),(0,Ne.jsx)(ot,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Ne.jsx)(na,{className:"ps-w-4 ps-h-4"})}),(0,Ne.jsx)(ot,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Ne.jsx)(Yo,{className:"ps-w-4 ps-h-4"})})]})})})})}b();function Ca(e){let t=e.getIsPinned(),a=t==="right"&&e.getIsFirstColumn("right");return{className:K("ps-group ps-border-r ps-border-b ps-border-table-border last:ps-border-r-0","ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",t&&["ps-sticky ps-bg-background ps-z-20",t==="left"?"ps-left-0":"ps-right-0"],!t&&"ps-relative ps-z-10",t&&a&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.getSize(),left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0}}}var he=require("react/jsx-runtime"),lC=e=>{let{children:t,className:a,header:o,style:r}=e,{attributes:n,listeners:s,transform:i,transition:l,setNodeRef:u,isDragging:d}=(0,_a.useSortable)({id:o.id});return(0,he.jsx)(os,{ref:u,...n,...s,style:{cursor:"grab",touchAction:"none",transform:bp.CSS.Transform.toString(i),transition:l,...r,"--dragging-width":`${o.getSize()}px`},className:K(a,"ps-select-none ps-touch-none ps-sticky ps-top-0 ps-z-20 ps-bg-table-head",o.column.getIsPinned()&&"ps-sticky ps-z-30",d&&"!ps-z-50 ps-w-[var(--dragging-width)] ps-border-2 ps-border-violet-500"),children:(0,he.jsx)("div",{className:"ps-w-full",children:t})})};function wp(e){let{columnDefs:t,getBeforeRows:a,isLoading:o,isProcessing:r,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,rowSelectionState:c,sortingState:f}=e,[p,m]=(0,Ua.useState)([]),[g,h]=(0,Ua.useState)({left:["__ps_select"],right:[]}),[x,v]=(0,Ua.useState)({}),C=(0,Ua.useMemo)(()=>Cp(f),[f]),w=o||r;(0,Ua.useEffect)(()=>m(t.map(({accessorKey:I})=>I)),[]);function S({active:I,over:L}){L&&I.id!==L.id&&m(U=>{let R=U.indexOf(I.id),ee=U.indexOf(L.id);return(0,_a.arrayMove)(U,R,ee)})}let F=(0,Ha.useSensor)(Ha.MouseSensor,{activationConstraint:{distance:10}}),D=(0,Ha.useSensors)(F),T=(0,qo.useReactTable)({columnResizeMode:"onChange",columns:t,data:d,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableRowSelection:!0,enableSorting:!!(i&&f),getCoreRowModel:(0,qo.getCoreRowModel)(),getRowId:({__ps_rowid:I})=>I,manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:h,onColumnSizingChange:v,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:I=>i?.(L=>(typeof I=="function"&&(I=I(Cp(L))),iC(I))),pageCount:l,state:{columnOrder:p,columnPinning:g,columnSizing:x,pagination:u,rowSelection:c,sorting:C}});return(0,he.jsxs)(he.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,he.jsx)(cp,{table:T}),(0,he.jsxs)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full ps-flex ps-flex-col ps-relative ps-bg-slate-100",children:[(0,he.jsx)("div",{children:w&&(0,he.jsx)(hp,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,he.jsx)(Ha.DndContext,{sensors:D,onDragEnd:S,children:(0,he.jsxs)(Il,{className:"ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border",children:[(0,he.jsx)("colgroup",{children:(0,he.jsx)("col",{style:{width:"40px",minWidth:0,maxWidth:"40px"}})}),(0,he.jsx)(Sl,{children:T.getHeaderGroups().map(I=>(0,he.jsx)(co,{children:(0,he.jsx)(_a.SortableContext,{items:I.headers.filter(L=>L.id!=="__ps_select").map(L=>L.id),strategy:_a.horizontalListSortingStrategy,children:I.headers.map(L=>L.id==="__ps_select"?(0,he.jsx)(os,{style:Ca(L.column).style,className:K(Ca(L.column).className,"ps-select-none ps-sticky ps-top-0 ps-z-20 ps-bg-table-head ps-p-0 ps-table-cell-select",L.column.getIsPinned()&&"ps-sticky ps-z-30"),children:(0,he.jsx)("div",{className:"ps-flex ps-items-center ps-justify-center ps-h-full",children:(0,qo.flexRender)(L.column.columnDef.header,L.getContext())})},L.id):(0,he.jsx)(lC,{header:L,table:T,...Ca(L.column),children:(0,he.jsx)(gp,{header:L})},L.id))})},I.id))}),(0,he.jsxs)(kl,{children:[a?.(T),T.getRowModel().rows?.length?T.getRowModel().rows.map(I=>(0,he.jsx)(co,{className:K("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:I.getVisibleCells().map((L,U)=>{if(L.column.id==="__ps_select")return(0,he.jsx)(Bo,{style:Ca(L.column).style,className:K(Ca(L.column).className,"ps-table-cell-select"),children:typeof L.column.columnDef.cell=="function"&&(R=>{let ee=L.column.columnDef.cell(L.getContext());return(0,he.jsx)(ee,{className:"ps-w-full ps-h-full"})})({className:""})},L.id);if(typeof L.column.columnDef.cell=="function"){let R=L.column.columnDef.cell(L.getContext());return(0,he.jsx)(R,{...Ca(L.column)},U)}return null})},I.id)):(0,he.jsx)(co,{children:(0,he.jsx)(Bo,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]})]})}),!l||l<2?null:(0,he.jsx)(vp,{table:T,variant:"numeric"})]})]})}function Cp(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function iC(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}b();b();var $t=Ce(require("@radix-ui/react-tooltip"),1),Lp=Ce(require("react"),1);var Ql=require("react/jsx-runtime"),Ip=$t.Provider,Sp=$t.Root,kp=$t.Trigger,jl=Lp.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ql.jsx)($t.Portal,{children:(0,Ql.jsx)($t.Content,{ref:o,sideOffset:t,className:K("ps-z-50 ps-overflow-hidden ps-rounded-md ps-bg-primary ps-px-3 ps-py-1.5 ps-text-xs ps-text-primary-foreground ps-animate-in ps-fade-in-0 ps-zoom-in-95 data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=closed]:ps-zoom-out-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-tooltip-content-transform-origin]",e),...a})}));jl.displayName=$t.Content.displayName;var kt=require("react/jsx-runtime");function Pp({column:e}){return e.isInPrimaryKey?(0,kt.jsxs)("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[(0,kt.jsx)(Ip,{delayDuration:300,children:(0,kt.jsxs)(Sp,{children:[(0,kt.jsx)(kp,{asChild:!0,children:(0,kt.jsx)(ar,{size:12})}),(0,kt.jsx)(jl,{children:(0,kt.jsx)("p",{children:"Primary Key"})})]})}),e.name]}):(0,kt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",children:[(0,kt.jsx)("span",{className:"ps-font-medium ps-truncate",children:e.name}),(0,kt.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase ps-truncate",children:e.datatype.name})]})}b();var Kp=require("remeda");b();var Jl=require("motion/react"),Kr=Ce(require("react"),1);b();var Xl=Ce(require("@radix-ui/react-label"),1),Mp=require("class-variance-authority"),Ap=Ce(require("react"),1);var Rp=require("react/jsx-runtime"),uC=(0,Mp.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),Hr=Ap.forwardRef(({className:e,...t},a)=>(0,Rp.jsx)(Xl.Root,{ref:a,className:K(uC(),e),...t}));Hr.displayName=Xl.Root.displayName;b();var _r=Ce(require("@radix-ui/react-switch"),1),Tp=Ce(require("react"),1);var Zl=require("react/jsx-runtime"),Vr=Tp.forwardRef(({className:e,...t},a)=>(0,Zl.jsx)(_r.Root,{className:K("ps-peer ps-inline-flex ps-h-5 ps-w-9 ps-shrink-0 ps-cursor-pointer ps-items-center ps-rounded-full ps-border-2 ps-border-transparent ps-shadow-sm ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-2 focus-visible:ps-ring-ring focus-visible:ps-ring-offset-2 focus-visible:ps-ring-offset-background disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=unchecked]:ps-bg-input",e),...t,ref:a,children:(0,Zl.jsx)(_r.Thumb,{className:K("ps-pointer-events-none ps-block ps-h-4 ps-w-4 ps-rounded-full ps-bg-background ps-shadow-lg ps-ring-0 ps-transition-transform data-[state=checked]:ps-translate-x-4 data-[state=unchecked]:ps-translate-x-0")})}));Vr.displayName=_r.Root.displayName;b();var gt=require("react/jsx-runtime"),it=({onSave:e,onCancel:t,onClose:a,onNullChange:o,isNull:r=!1})=>(0,gt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-border-t ps-border-table-border ps-text-xs",children:[(0,gt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-mr-auto",children:[(0,gt.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{e&&e(),a&&a()},children:[(0,gt.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground",children:(0,gt.jsx)(tr,{size:12,strokeWidth:2})})," ","Save changes"]}),(0,gt.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{t&&t(),a&&a()},children:[(0,gt.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground ps-text-[8px] ps-leading-none ps-font-semibold",children:"Esc"})," ","Cancel changes"]})]}),o&&(0,gt.jsx)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2",children:(0,gt.jsxs)("label",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",htmlFor:"set-nullable",children:[(0,gt.jsx)(Vr,{id:"set-nullable",checked:r,onCheckedChange:l=>{o&&o(l)}}),(0,gt.jsx)("span",{children:"Set to NULL"})]})})]});var qt=require("react/jsx-runtime");function Dp(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,Kr.useState)(t===null?!1:t),[i,l]=(0,Kr.useState)(t===null),u=t===null?!1:t,d=h=>{s(h)},c=h=>{l(h)},f=Kr.default.useCallback(()=>{let h=i?null:n;return h!==t?(a(h),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:g}=lt({onSave:f,onCancel:p});return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0 ps-px-2",children:[(0,qt.jsx)(Hr,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,qt.jsx)(Jl.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,qt.jsx)(Vr,{id:"boolean-input",checked:n,onCheckedChange:d,disabled:i})}),(0,qt.jsx)(Jl.motion.div,{"data-value":!0,className:"ps-inline-flex ps-items-center ps-text-xs ps-text-muted-foreground ps-font-mono",initial:{x:-40,opacity:1},animate:{x:0,opacity:1},transition:{duration:.12,delay:0},children:i?"NULL":String(n)})]}),(0,qt.jsx)(it,{onSave:m,onCancel:g,onNullChange:r?c:void 0,isNull:i})]})}b();var Yl=Ce(require("dayjs"),1),Fp=Ce(require("dayjs/plugin/localizedFormat"),1),ds=require("react");b();var Ep=require("react");function No(e){let{initialValue:t}=e,[a,o]=(0,Ep.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Pt=require("react/jsx-runtime");Yl.default.extend(Fp.default);function Op(e){let{onSubmit:t,value:a}=e,o=String(a),{handleOnChange:r,value:n}=No({initialValue:o}),s=(0,ds.useMemo)(()=>{try{let f=(0,Yl.default)(n);return f.isValid()?n.includes(":")?f.format("LL LTS"):f.format("LL"):n}catch{return n}},[n]);function i(f){f.preventDefault(),n!==o&&t(n)}let l=(0,ds.useCallback)(()=>n!==o?(t(n),!0):!1,[n,o,t]),u=()=>{},{handleSave:d,handleCancel:c}=lt({onSave:l,onCancel:u});return(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsxs)("form",{onSubmit:i,children:[(0,Pt.jsx)(va,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:r,type:"text",value:n}),(0,Pt.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Pt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Pt.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Pt.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:s})]}),(0,Pt.jsx)(it,{onSave:d,onCancel:c})]})}b();var Gr=require("react");b();var Bp=require("class-variance-authority");var dC=require("react/jsx-runtime"),$p=(0,Bp.cva)("ps-inline-flex ps-items-center ps-rounded-md ps-border ps-px-2.5 ps-py-0.5 ps-text-xs ps-font-semibold ps-transition-colors focus:ps-outline-none focus:ps-ring-2 focus:ps-ring-ring focus:ps-ring-offset-2",{variants:{variant:{default:"ps-border-transparent ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/80",secondary:"ps-border-transparent ps-bg-secondary ps-text-secondary-foreground hover:ps-bg-secondary/80",destructive:"ps-border-transparent ps-bg-destructive ps-text-destructive-foreground ps-shadow hover:ps-bg-destructive/80",outline:"ps-text-foreground"}},defaultVariants:{variant:"default"}});var ba=require("react/jsx-runtime");function qp(e){let{onSubmit:t,column:a,value:o,options:r=[]}=e,n=a.nullable===!0,s=String(o),[i,l]=(0,Gr.useState)(s),[u,d]=(0,Gr.useState)(o===null),c=x=>{l(x)},f=x=>{d(x)},p=(0,Gr.useCallback)(()=>u?o!==null?(t(null),!0):!1:i!==s?(t(i),!0):!1,[i,s,t,u,o]),m=()=>{l(s),d(o===null)},{handleSave:g,handleCancel:h}=lt({onSave:p,onCancel:m});return(0,ba.jsxs)(ba.Fragment,{children:[(0,ba.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-font-mono ps-h-[var(--studio-cell-height)] ps-px-2 ps-py-0 ps-w-full ps-text-xs ps-text-muted-foreground",children:i}),(0,ba.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-2 ps-p-2",children:r.map(x=>(0,ba.jsx)("button",{onClick:()=>c(x),className:$p({variant:x===i?"default":"outline"}),disabled:u,children:x},x))}),(0,ba.jsx)(it,{onSave:g,onCancel:h,onNullChange:n?f:void 0,isNull:u})]})}b();var Wr=Ce(require("react"),1);var Va=require("react/jsx-runtime");function Np(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,n=t===null?"":JSON.stringify(t,null,2),[s,i]=(0,Wr.useState)(n),[l,u]=(0,Wr.useState)(t===null),d=h=>{i(h.target.value)},c=h=>{u(h)},f=Wr.default.useCallback(()=>{if(l)return t!==null?(a(null),!0):!1;let h=s===""?null:JSON.parse(s);return h!==t?(a(h),!0):!1},[s,t,a,l]),p=()=>{i(n),u(t===null)},{handleSave:m,handleCancel:g}=lt({onSave:f,onCancel:p});return(0,Va.jsxs)(Va.Fragment,{children:[(0,Va.jsx)("div",{className:"ps-flex ps-flex-row ps-items-center ps-gap-4 ps-py-0",children:(0,Va.jsx)("textarea",{rows:5,value:s,onChange:d,disabled:l,className:"ps-cell-input-base ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize ps-px-[var(--studio-cell-spacing)]",lang:"en_EN"})}),(0,Va.jsx)(it,{onSave:m,onCancel:g,onNullChange:r?c:void 0,isNull:l})]})}b();var Qr=Ce(require("react"),1);var wa=require("react/jsx-runtime");function zp(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,Qr.useState)(t===null?"":String(t)),[i,l]=(0,Qr.useState)(t===null),u=t===null?"":String(t),d=h=>{s(h.target.value)},c=h=>{l(h)},f=Qr.default.useCallback(()=>{if(i)return t!==null?(a(null),!0):!1;let h=n===""?null:Number(n);return n!==t?(a(h),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:g}=lt({onSave:f,onCancel:p});return(0,wa.jsxs)(wa.Fragment,{children:[(0,wa.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0",children:[(0,wa.jsx)(Hr,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,wa.jsx)("input",{type:"text",inputMode:"numeric",pattern:"\\d*",value:n,onChange:d,disabled:i,className:"ps-cell-input-leading ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",step:"any",lang:"en_EN"})]}),(0,wa.jsx)(it,{onSave:m,onCancel:g,onNullChange:r?c:void 0,isNull:i})]})}b();var Up=Ce(require("react"),1);var La=require("react/jsx-runtime");function Hp(e){let{onSubmit:t,value:a}=e,o=String(a),{handleOnChange:r,value:n}=No({initialValue:o});function s(c){c.preventDefault(),n!==o&&t(n)}let i=Up.default.useCallback(()=>n!==o?(t(n),!0):!1,[n,o,t]),l=()=>{},{handleSave:u,handleCancel:d}=lt({onSave:i,onCancel:l});return(0,La.jsxs)(La.Fragment,{children:[(0,La.jsxs)("form",{onSubmit:s,children:[(0,La.jsx)(va,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:r,type:"text",value:n}),(0,La.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,La.jsx)(it,{onSave:u,onCancel:d})]})}b();var ei=Ce(require("dayjs"),1),_p=Ce(require("dayjs/plugin/localizedFormat"),1),cs=require("react");var Mt=require("react/jsx-runtime");ei.default.extend(_p.default);function Vp(e){let{onSubmit:t,value:a}=e,o=String(a),{handleOnChange:r,value:n}=No({initialValue:o}),s=(0,cs.useMemo)(()=>{try{if(!n.includes(":"))return n;let f=/[+-]\d{2}(:\d{2})?$/.test(n),p=(0,ei.default)(`2000-01-01 ${n}`);if(p.isValid())return p.format("h:mm A")+(f?` (${p.format("Z")})`:"");let m=/(\d{1,2}):(\d{2}):(\d{2})(?:\.\d+)?([+-]\d{2}(?::\d{2})?)?/,g=n.match(m);if(g){let h=parseInt(g[1]||"12",10),x=g[2]||"00",v=g[4]||"",C=h>=12?"PM":"AM";return`${h%12===0?12:h%12}:${x} ${C}${v?` (${v})`:""}`}return n}catch{return n}},[n]);function i(f){f.preventDefault(),n!==o&&t(n)}let l=(0,cs.useCallback)(()=>n!==o?(t(n),!0):!1,[n,o,t]),u=()=>{},{handleSave:d,handleCancel:c}=lt({onSave:l,onCancel:u});return(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("form",{onSubmit:i,children:[(0,Mt.jsx)(va,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:r,type:"text",value:n}),(0,Mt.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Mt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Mt.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Mt.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:s})]}),(0,Mt.jsx)(it,{onSave:d,onCancel:c})]})}var Ka=require("react/jsx-runtime");function fs(e,t,a){let{group:o,options:r,isArray:n}=t.datatype,s=e.getValue(),i=s===void 0?"":s;return o==="datetime"?(0,Ka.jsx)(Op,{onSubmit:a,value:i,column:t}):o==="time"?(0,Ka.jsx)(Vp,{onSubmit:a,value:i,column:t}):o==="json"||n?(0,Ka.jsx)(Np,{onSubmit:a,value:i,column:t}):o==="boolean"?(0,Ka.jsx)(Dp,{onSubmit:a,value:i,column:t}):o==="enum"?(0,Ka.jsx)(qp,{onSubmit:a,value:i,options:r,column:t}):o==="numeric"?(0,Ka.jsx)(zp,{onSubmit:a,value:i,column:t}):(0,Ka.jsx)(Hp,{onSubmit:a,value:(0,Kp.isObjectType)(i)?JSON.stringify(i):i})}b();var Gp=require("@tanstack/react-table"),Wp=require("remeda");var Ga=require("react/jsx-runtime");function Qp(e){let{table:t,stagedRows:a,setStagedRows:o}=e;function r(i,l){o(u=>{let d=[...u];return d[i]={...d[i],...l},d})}let n=Object.values(t.options.columns).map(i=>i.id==="__ps_select"?{...i,cell(){return()=>(0,Ga.jsx)(zr,{})}}:{...i,cell({cell:l}){return u=>(0,Ga.jsx)(ls,{cellComponent:ss(l,i.meta,u),inputComponent:fs(l,i.meta,d=>{console.log("value",d),r(u.rowIndex,{[i.id]:d})})})}}),s=(0,Gp.useReactTable)({...t.options,columns:n,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Wp.omit)(t.options.state,["pagination","sorting"])});return(0,Ga.jsx)(Ga.Fragment,{children:s.getRowModel().rows.map((i,l)=>(0,Ga.jsx)(co,{children:i.getVisibleCells().map((u,d)=>{if(typeof u.column.columnDef.cell=="function"){let c=u.column.columnDef.cell(u.getContext());return(0,Ga.jsx)(c,{...Ca(u.column),rowIndex:l},d)}return null})},l))})}var Ee=require("react/jsx-runtime");function Zp(e){let t=!!(0,jp.useIsMutating)(),{activeTable:a,onError:o}=et(),{sortingState:r,setSortingState:n}=$f(),{paginationState:s,setPaginationState:i}=Yn(),[l,u]=(0,ps.useState)([]),{data:d,isFetching:c}=Rf({...s,sortOrder:r}),{deleteSelection:f,isSelecting:p,rowSelectionState:m,setRowSelectionState:g}=Bf(d),h=Ef(),x=Mf(),v=Tf();if((0,ps.useEffect)(()=>u([]),[a]),!a)return null;function C(){x.mutate(l,{onError:o,onSuccess(){Xp.toast.success("Rows inserted successfully"),u([])}})}function w(){u(L=>[...L,{}])}function S(){u([])}function F(L,U,R){v.mutate({details:{changes:{[U.name]:L},row:R,table:a},options:{}})}let D=Object.values(a?.columns??{}).map(L=>({id:L.name,accessorKey:L.name,meta:L,header(){return Pp({column:L})},cell({cell:U}){return R=>(0,Ee.jsx)(ls,{cellComponent:ss(U,L,R),inputComponent:fs(U,L,ee=>F(ee,L,U.row.original))})}})),T=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,meta:{disableDragging:!0},header({table:L}){return(0,Ee.jsx)(lr,{checked:L.getIsAllRowsSelected(),onCheckedChange:U=>L.toggleAllRowsSelected(!!U)})},cell({row:L}){return()=>(0,Ee.jsx)(Ul,{row:L})}}],I=[...D,...T].sort(fC);return(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b ps-bg-card ps-rounded-t-lg",children:(0,Ee.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,Ee.jsx)("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:(0,Ee.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,Ee.jsx)(ot,{variant:"outline",size:"sm",onClick:w,disabled:h>0,children:"Insert row"}),l.length>0&&(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(ot,{variant:"secondary",size:"sm",onClick:C,children:"Save"}),(0,Ee.jsx)(ot,{variant:"ghost",size:"sm",onClick:S,children:"Cancel"})]}),p&&(0,Ee.jsx)(Ee.Fragment,{children:(0,Ee.jsx)(ot,{variant:"secondary",size:"sm",onClick:f,children:"Delete"})})]})})})}),(0,Ee.jsx)(wp,{columnDefs:I,getBeforeRows:L=>(0,Ee.jsx)(Qp,{table:L,stagedRows:l,setStagedRows:u}),isLoading:c,isProcessing:t,onPaginationChange:i,onRowSelectionChange:g,onSortingChange:n,pageCount:cC(d?.filteredRowCount??1/0,s.pageSize),paginationState:s,rows:d?.rows??[],rowSelectionState:m,sortingState:r})]})}function cC(e,t){if(e===1/0)return;let a=Number((BigInt(e)+BigInt(t)-BigInt(1))/BigInt(t));return Number.isSafeInteger(a)?a:Number.MAX_SAFE_INTEGER}function fC(e,t){let a=e.meta,o=t.meta;return e.id==="__ps_select"||t.id==="__ps_select"?1:a===void 0||o===void 0?0:a.isInPrimaryKey&&!o.isInPrimaryKey?-1:!a.isInPrimaryKey&&o.isInPrimaryKey?1:a.name.localeCompare(o.name)}b();var am=require("@radix-ui/react-slot");b();var ms=require("react");b();var Yp=require("@tanstack/react-query");var Jp=-1;function em(){let{adapter:e}=et();return(0,Yp.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:Jp,queryFn:async({signal:t})=>{let[a,o]=await e.introspect({abortSignal:t});if(a)throw a;return o},queryKey:["introspection"],staleTime:t=>t.state.dataUpdatedAt===Jp?0:1/0})}function tm(){let{activeTable:e,setActiveTable:t,adapter:a}=et(),{data:o,isLoading:r}=em(),n=Object.values(o.schemas[a.defaultSchema||"db"]?.tables||{}),[s]=n,[i,l]=Nr({table:{defaultValue:null,parse:f=>f,serialize:f=>f??""},schema:{defaultValue:"",parse:f=>f,serialize:f=>f??""}}),[,u]=Oo("pageIndex",{parse:f=>f,serialize:f=>f??""}),[,d]=Oo("sort",{parse:f=>f,serialize:f=>f??""});(0,ms.useEffect)(()=>{if(!r){if(i?.table&&n.length>0){let f=n.find(p=>p.name===i.table);if(f){t(f);return}}n.length>0&&!e&&(t(s||null),s&&l({table:s.name,schema:s.schema}))}},[r,i,n,s,e,t,l]);let c=(0,ms.useCallback)(f=>{e!==f&&(t(f),l({table:f.name,schema:f.schema}),u(null),d(null))},[e,t,l,u,d]);return{tables:n,activeTable:e,isLoading:r,handleTableChange:c}}var ht=require("react/jsx-runtime");function Wa(){let{tables:e,activeTable:t,isLoading:a,handleTableChange:o}=tm();return(0,ht.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0 ps-overflow-y-auto ps-max-h-full ps-min-h-0 ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",children:(0,ht.jsx)(Wa.Block,{label:"Tables",children:e.length>0?e.map(r=>(0,ht.jsx)(Wa.Item,{isActive:t===r,onClick:()=>{o(r)},className:"ps-capitalize ps-py-1 ps-font-mono ps-text-xs ps-text-foreground/60 hover:ps-text-foreground ps-transition-all ps-cursor-pointer data-[active=true]:ps-bg-primary/5 data-[active=true]:ps-foreground data-[active=true]:ps-text-foreground",children:r.name},`${r.schema}-${r.name}`)):a?(0,ht.jsx)(Wa.Item,{children:"Loading..."}):(0,ht.jsx)(Wa.Item,{children:"No tables found"})})})}var pC=({className:e,label:t,children:a,...o})=>(0,ht.jsxs)("div",{className:e,...o,children:[(0,ht.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,ht.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,ht.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),mC=({className:e,asChild:t=!1,isActive:a,size:o,...r})=>(0,ht.jsx)(t?am.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:K("ps-py-1.5 ps-px-4 ps-text-sm ps-font-medium ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent ps-hover:bg-muted/50",e),...r,children:(0,ht.jsx)("span",{className:"ps-truncate",children:r.children})});Wa.Block=pC;Wa.Item=mC;var Ia=require("react/jsx-runtime");function om(e){let{adapter:t,onError:a}=e;return t?(0,Ia.jsx)(kf,{adapter:t,onError:a,children:(0,Ia.jsx)("div",{className:"ps-flex ps-flex-col ps-w-full ps-min-h-0 ps-max-h-full",children:(0,Ia.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full ps-min-h-full",children:[(0,Ia.jsx)(Wa,{}),(0,Ia.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-bg-slate-100 ps-border ps-rounded-lg ps-self-start ps-h-full ps-min-h-full ps-max-h-full ps-overflow-clip",children:(0,Ia.jsx)(Zp,{})})]})})}):(console.error("No adapter provided to Studio component"),(0,Ia.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1219
|
+
`}}),_.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Kt.grayAlt}`,display:"flex",flexDirection:"column"}},_.default.createElement("div",{style:{padding:".5em",background:Kt.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},_.default.createElement(ap,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),_.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",_.default.createElement("span",{style:{fontWeight:100}},"Devtools")),_.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?_.default.createElement(qv,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),_.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},_.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},_.default.createElement(Gt,{label:"Instance",value:o,defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(Gt,{label:"State",value:o.getState(),defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(Gt,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),_.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},_.default.createElement(Gt,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var qa=require("react");b();var sp=require("@tanstack/react-table");b();var se=Se(require("@radix-ui/react-dropdown-menu"),1);var xa=Se(require("react"),1);var Ue=require("react/jsx-runtime"),rp=se.Root,np=se.Trigger;var _v=xa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ue.jsxs)(se.SubTrigger,{ref:r,className:K("ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent data-[state=open]:ps-bg-accent [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",t&&"ps-pl-8",e),...o,children:[a,(0,Ue.jsx)(ra,{className:"ps-ml-auto"})]}));_v.displayName=se.SubTrigger.displayName;var Vv=xa.forwardRef(({className:e,...t},a)=>(0,Ue.jsx)(se.SubContent,{ref:a,className:K("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));Vv.displayName=se.SubContent.displayName;var Hl=xa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ue.jsx)(se.Portal,{children:(0,Ue.jsx)(se.Content,{ref:o,sideOffset:t,className:K("ps-z-50 ps-max-h-[var(--radix-dropdown-menu-content-available-height)] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md","data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...a})}));Hl.displayName=se.Content.displayName;var is=xa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(se.Item,{ref:o,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50 [&>svg]:ps-size-4 [&>svg]:ps-shrink-0",t&&"ps-pl-8",e),...a}));is.displayName=se.Item.displayName;var Kv=xa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ue.jsxs)(se.CheckboxItem,{ref:r,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,Ue.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ue.jsx)(se.ItemIndicator,{children:(0,Ue.jsx)(oa,{className:"ps-h-4 ps-w-4"})})}),t]}));Kv.displayName=se.CheckboxItem.displayName;var Gv=xa.forwardRef(({className:e,children:t,...a},o)=>(0,Ue.jsxs)(se.RadioItem,{ref:o,className:K("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Ue.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ue.jsx)(se.ItemIndicator,{children:(0,Ue.jsx)(Wa,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));Gv.displayName=se.RadioItem.displayName;var Wv=xa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(se.Label,{ref:o,className:K("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));Wv.displayName=se.Label.displayName;var Qv=xa.forwardRef(({className:e,...t},a)=>(0,Ue.jsx)(se.Separator,{ref:a,className:K("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));Qv.displayName=se.Separator.displayName;var jv=({className:e,...t})=>(0,Ue.jsx)("span",{className:K("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});jv.displayName="DropdownMenuShortcut";var ce=require("react/jsx-runtime");function lp(e){let{header:t,className:a}=e;return(0,ce.jsxs)("div",{className:K("ps-flex ps-items-center ps-justify-between ps-w-full ps-h-full ps-flex-0",a),children:[(0,ce.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,ce.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:t.isPlaceholder?null:(0,ce.jsx)("span",{className:"ps-flex ps-min-w-0",children:(0,ce.jsx)("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:(0,sp.flexRender)(t.column.columnDef.header,t.getContext())})})}),(0,ce.jsx)("span",{className:"ps-relative ps-gap-1",children:t.column.getCanPin()&&t.column.id!=="select"&&(0,ce.jsxs)(rp,{children:[(0,ce.jsx)(np,{asChild:!0,children:(0,ce.jsx)(Xe,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ce.jsx)(Go,{size:12})})}),(0,ce.jsxs)(Hl,{children:[t.column.getCanSort()&&(0,ce.jsx)(is,{onClick:()=>t.column.toggleSorting(),children:(0,ce.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Pa,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Ko,{size:16}),"Sort ascending"]}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(or,{size:16}),"Cancel sorting"]})})}),(0,ce.jsx)(is,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,ce.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ce.jsx)(tr,{size:16}),"Unpin column"]}):(0,ce.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ce.jsx)(ar,{size:16}),"Pin column"]})})]})]})})]}),t.column.getCanResize()&&(0,ce.jsx)("button",{type:"button",tabIndex:0,onMouseDown:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onTouchStart:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onClick:o=>o.stopPropagation(),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),t.getResizeHandler()(o))},className:K("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-px ps-cursor-col-resize ps-border ps-border-transparent hover:ps-border-table-border"),"aria-label":"Resize column"})]})}b();var _l=require("react/jsx-runtime");function ip({className:e}){return(0,_l.jsx)("div",{"data-loading-bar":!0,className:K("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:(0,_l.jsx)("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}b();b();var up=Se(require("react"),1);var dp=require("react/jsx-runtime"),Ur=up.forwardRef(({className:e,type:t,...a},o)=>(0,dp.jsx)("input",{type:t,className:K("ps-flex ps-h-9 ps-w-full ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-1 ps-shadow-sm ps-transition-colors file:ps-border-0 file:ps-bg-transparent file:ps-text-sm file:ps-font-medium file:ps-text-foreground placeholder:ps-text-muted-foreground focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50",e),ref:o,...a}));Ur.displayName="Input";var Ne=require("react/jsx-runtime");function cp(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount();return(0,Ne.jsx)("div",{className:"ps-rounded-b-lg ps-overflow-clip ps-sticky ps-bottom-0 ps-left-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Ne.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-2 ps-px-2 ps-border-t ps-border-table-border ps-backdrop-blur-sm ps-bg-table-head/90",children:a==="basic"?(0,Ne.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ne.jsx)(Xe,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Ne.jsx)(Xe,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:"Next"})]}):(0,Ne.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Ne.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ne.jsx)(Xe,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Ne.jsx)(Qo,{className:"ps-w-4 ps-h-4"})}),(0,Ne.jsx)(Xe,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Ne.jsx)(Wo,{className:"ps-w-4 ps-h-4"})}),(0,Ne.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Ne.jsx)(Ur,{type:"number",min:1,max:r,value:o+1,className:"ps-w-16",onChange:n=>{let s=n.target.value?Number(n.target.value)-1:0;t.setPageIndex(s)}}),(0,Ne.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",r]})]}),(0,Ne.jsx)(Xe,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Ne.jsx)(ra,{className:"ps-w-4 ps-h-4"})}),(0,Ne.jsx)(Xe,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Ne.jsx)(jo,{className:"ps-w-4 ps-h-4"})})]})})})})}b();function ya(e){let t=e.getIsPinned(),a=t==="right"&&e.getIsFirstColumn("right");return{className:K("ps-group ps-border-r ps-border-b ps-border-table-border last:ps-border-r-0","ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",t&&["ps-sticky ps-bg-background ps-z-20",t==="left"?"ps-left-0":"ps-right-0"],!t&&"ps-relative ps-z-10",t&&a&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.getSize(),left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0}}}var he=require("react/jsx-runtime"),Xv=e=>{let{children:t,className:a,header:o,style:r}=e,{attributes:n,listeners:s,transform:i,transition:l,setNodeRef:u,isDragging:d}=(0,za.useSortable)({id:o.id});return(0,he.jsx)(os,{ref:u,...n,...s,style:{cursor:"grab",touchAction:"none",transform:pp.CSS.Transform.toString(i),transition:l,...r,"--dragging-width":`${o.getSize()}px`},className:K(a,"ps-select-none ps-touch-none ps-sticky ps-top-0 ps-z-20 ps-bg-table-head",o.column.getIsPinned()&&"ps-sticky ps-z-30",d&&"!ps-z-50 ps-w-[var(--dragging-width)] ps-border-2 ps-border-violet-500"),children:(0,he.jsx)("div",{className:"ps-w-full",children:t})})};function mp(e){let{columnDefs:t,getBeforeRows:a,isLoading:o,isProcessing:r,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,rowSelectionState:c,sortingState:f}=e,[p,m]=(0,qa.useState)([]),[g,h]=(0,qa.useState)({left:["__ps_select"],right:[]}),[x,v]=(0,qa.useState)({}),C=(0,qa.useMemo)(()=>fp(f),[f]),w=o||r;(0,qa.useEffect)(()=>m(t.map(({accessorKey:L})=>L)),[]);function S({active:L,over:I}){I&&L.id!==I.id&&m(H=>{let P=H.indexOf(L.id),Z=H.indexOf(I.id);return(0,za.arrayMove)(H,P,Z)})}let F=(0,Na.useSensor)(Na.MouseSensor,{activationConstraint:{distance:10}}),D=(0,Na.useSensors)(F),T=(0,Fo.useReactTable)({columnResizeMode:"onChange",columns:t,data:d,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableRowSelection:!0,enableSorting:!!(i&&f),getCoreRowModel:(0,Fo.getCoreRowModel)(),getRowId:({__ps_rowid:L})=>L,manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:h,onColumnSizingChange:v,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:L=>i?.(I=>(typeof L=="function"&&(L=L(fp(I))),Zv(L))),pageCount:l,state:{columnOrder:p,columnPinning:g,columnSizing:x,pagination:u,rowSelection:c,sorting:C}});return(0,he.jsxs)(he.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,he.jsx)(op,{table:T}),(0,he.jsxs)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full ps-flex ps-flex-col ps-relative ps-bg-slate-100",children:[(0,he.jsx)("div",{children:w&&(0,he.jsx)(ip,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,he.jsx)(Na.DndContext,{sensors:D,onDragEnd:S,children:(0,he.jsxs)(bl,{className:"ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border",children:[(0,he.jsx)("colgroup",{children:(0,he.jsx)("col",{style:{width:"40px",minWidth:0,maxWidth:"40px"}})}),(0,he.jsx)(wl,{children:T.getHeaderGroups().map(L=>(0,he.jsx)(lo,{children:(0,he.jsx)(za.SortableContext,{items:L.headers.filter(I=>I.id!=="__ps_select").map(I=>I.id),strategy:za.horizontalListSortingStrategy,children:L.headers.map(I=>I.id==="__ps_select"?(0,he.jsx)(os,{style:ya(I.column).style,className:K(ya(I.column).className,"ps-select-none ps-sticky ps-top-0 ps-z-20 ps-bg-table-head ps-p-0 ps-table-cell-select",I.column.getIsPinned()&&"ps-sticky ps-z-30"),children:(0,he.jsx)("div",{className:"ps-flex ps-items-center ps-justify-center ps-h-full",children:(0,Fo.flexRender)(I.column.columnDef.header,I.getContext())})},I.id):(0,he.jsx)(Xv,{header:I,table:T,...ya(I.column),children:(0,he.jsx)(lp,{header:I})},I.id))})},L.id))}),(0,he.jsxs)(Ll,{children:[a?.(T),T.getRowModel().rows?.length?T.getRowModel().rows.map(L=>(0,he.jsx)(lo,{className:K("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:L.getVisibleCells().map((I,H)=>{if(I.column.id==="__ps_select")return(0,he.jsx)(Do,{style:ya(I.column).style,className:K(ya(I.column).className,"ps-table-cell-select"),children:typeof I.column.columnDef.cell=="function"&&(P=>{let Z=I.column.columnDef.cell(I.getContext());return(0,he.jsx)(Z,{className:"ps-w-full ps-h-full"})})({className:""})},I.id);if(typeof I.column.columnDef.cell=="function"){let P=I.column.columnDef.cell(I.getContext());return(0,he.jsx)(P,{...ya(I.column)},H)}return null})},L.id)):(0,he.jsx)(lo,{children:(0,he.jsx)(Do,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]})]})}),!l||l<2?null:(0,he.jsx)(cp,{table:T,variant:"numeric"})]})]})}function fp(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function Zv(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}b();b();var Et=Se(require("@radix-ui/react-tooltip"),1),gp=Se(require("react"),1);var Vl=require("react/jsx-runtime"),hp=Et.Provider,xp=Et.Root,yp=Et.Trigger,Kl=gp.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Vl.jsx)(Et.Portal,{children:(0,Vl.jsx)(Et.Content,{ref:o,sideOffset:t,className:K("ps-z-50 ps-overflow-hidden ps-rounded-md ps-bg-primary ps-px-3 ps-py-1.5 ps-text-xs ps-text-primary-foreground ps-animate-in ps-fade-in-0 ps-zoom-in-95 data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=closed]:ps-zoom-out-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-tooltip-content-transform-origin]",e),...a})}));Kl.displayName=Et.Content.displayName;var It=require("react/jsx-runtime");function vp({column:e}){return e.isInPrimaryKey?(0,It.jsxs)("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[(0,It.jsx)(hp,{delayDuration:300,children:(0,It.jsxs)(xp,{children:[(0,It.jsx)(yp,{asChild:!0,children:(0,It.jsx)(Jo,{size:12})}),(0,It.jsx)(Kl,{children:(0,It.jsx)("p",{children:"Primary Key"})})]})}),e.name]}):(0,It.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",children:[(0,It.jsx)("span",{className:"ps-font-medium ps-truncate",children:e.name}),(0,It.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase ps-truncate",children:e.datatype.name})]})}b();var Fp=require("remeda");b();var Ql=require("motion/react"),Kr=Se(require("react"),1);b();var Gl=Se(require("@radix-ui/react-label"),1),Cp=require("class-variance-authority"),bp=Se(require("react"),1);var wp=require("react/jsx-runtime"),Jv=(0,Cp.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),Hr=bp.forwardRef(({className:e,...t},a)=>(0,wp.jsx)(Gl.Root,{ref:a,className:K(Jv(),e),...t}));Hr.displayName=Gl.Root.displayName;b();var _r=Se(require("@radix-ui/react-switch"),1),Lp=Se(require("react"),1);var Wl=require("react/jsx-runtime"),Vr=Lp.forwardRef(({className:e,...t},a)=>(0,Wl.jsx)(_r.Root,{className:K("ps-peer ps-inline-flex ps-h-5 ps-w-9 ps-shrink-0 ps-cursor-pointer ps-items-center ps-rounded-full ps-border-2 ps-border-transparent ps-shadow-sm ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-2 focus-visible:ps-ring-ring focus-visible:ps-ring-offset-2 focus-visible:ps-ring-offset-background disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=unchecked]:ps-bg-input",e),...t,ref:a,children:(0,Wl.jsx)(_r.Thumb,{className:K("ps-pointer-events-none ps-block ps-h-4 ps-w-4 ps-rounded-full ps-bg-background ps-shadow-lg ps-ring-0 ps-transition-transform data-[state=checked]:ps-translate-x-4 data-[state=unchecked]:ps-translate-x-0")})}));Vr.displayName=_r.Root.displayName;b();var pt=require("react/jsx-runtime"),Wt=({onSave:e,onCancel:t,onClose:a,onNullChange:o,isNull:r=!1})=>(0,pt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-border-t ps-border-table-border ps-text-xs",children:[(0,pt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-mr-auto",children:[(0,pt.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{e&&e(),a&&a()},children:[(0,pt.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground",children:(0,pt.jsx)(Zo,{size:12,strokeWidth:2})})," ","Save changes"]}),(0,pt.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{t&&t(),a&&a()},children:[(0,pt.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground ps-text-[8px] ps-leading-none ps-font-semibold",children:"Esc"})," ","Cancel changes"]})]}),o&&(0,pt.jsx)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2",children:(0,pt.jsxs)("label",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",htmlFor:"set-nullable",children:[(0,pt.jsx)(Vr,{id:"set-nullable",checked:r,onCheckedChange:l=>{o&&o(l)}}),(0,pt.jsx)("span",{children:"Set to NULL"})]})})]});var Ft=require("react/jsx-runtime");function Ip(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,Kr.useState)(t===null?!1:t),[i,l]=(0,Kr.useState)(t===null),u=t===null?!1:t,d=h=>{s(h)},c=h=>{l(h)},f=Kr.default.useCallback(()=>{let h=i?null:n;return h!==t?(a(h),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:g}=Vt({onSave:f,onCancel:p});return(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0 ps-px-2",children:[(0,Ft.jsx)(Hr,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Ft.jsx)(Ql.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Ft.jsx)(Vr,{id:"boolean-input",checked:n,onCheckedChange:d,disabled:i})}),(0,Ft.jsx)(Ql.motion.div,{"data-value":!0,className:"ps-inline-flex ps-items-center ps-text-xs ps-text-muted-foreground ps-font-mono",initial:{x:-40,opacity:1},animate:{x:0,opacity:1},transition:{duration:.12,delay:0},children:i?"NULL":String(n)})]}),(0,Ft.jsx)(Wt,{onSave:m,onCancel:g,onNullChange:r?c:void 0,isNull:i})]})}b();var Gr=require("react");b();var Sp=require("class-variance-authority");var Yv=require("react/jsx-runtime"),kp=(0,Sp.cva)("ps-inline-flex ps-items-center ps-rounded-md ps-border ps-px-2.5 ps-py-0.5 ps-text-xs ps-font-semibold ps-transition-colors focus:ps-outline-none focus:ps-ring-2 focus:ps-ring-ring focus:ps-ring-offset-2",{variants:{variant:{default:"ps-border-transparent ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/80",secondary:"ps-border-transparent ps-bg-secondary ps-text-secondary-foreground hover:ps-bg-secondary/80",destructive:"ps-border-transparent ps-bg-destructive ps-text-destructive-foreground ps-shadow hover:ps-bg-destructive/80",outline:"ps-text-foreground"}},defaultVariants:{variant:"default"}});var va=require("react/jsx-runtime");function Pp(e){let{onSubmit:t,column:a,value:o,options:r=[]}=e,n=a.nullable===!0,s=String(o),[i,l]=(0,Gr.useState)(s),[u,d]=(0,Gr.useState)(o===null),c=x=>{l(x)},f=x=>{d(x)},p=(0,Gr.useCallback)(()=>u?o!==null?(t(null),!0):!1:i!==s?(t(i),!0):!1,[i,s,t,u,o]),m=()=>{l(s),d(o===null)},{handleSave:g,handleCancel:h}=Vt({onSave:p,onCancel:m});return(0,va.jsxs)(va.Fragment,{children:[(0,va.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-font-mono ps-h-[var(--studio-cell-height)] ps-px-2 ps-py-0 ps-w-full ps-text-xs ps-text-muted-foreground",children:i}),(0,va.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-2 ps-p-2",children:r.map(x=>(0,va.jsx)("button",{onClick:()=>c(x),className:kp({variant:x===i?"default":"outline"}),disabled:u,children:x},x))}),(0,va.jsx)(Wt,{onSave:g,onCancel:h,onNullChange:n?f:void 0,isNull:u})]})}b();var Wr=Se(require("react"),1);var Ua=require("react/jsx-runtime");function Mp(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,n=t===null?"":JSON.stringify(t,null,2),[s,i]=(0,Wr.useState)(n),[l,u]=(0,Wr.useState)(t===null),d=h=>{i(h.target.value)},c=h=>{u(h)},f=Wr.default.useCallback(()=>{if(l)return t!==null?(a(null),!0):!1;let h=s===""?null:JSON.parse(s);return h!==t?(a(h),!0):!1},[s,t,a,l]),p=()=>{i(n),u(t===null)},{handleSave:m,handleCancel:g}=Vt({onSave:f,onCancel:p});return(0,Ua.jsxs)(Ua.Fragment,{children:[(0,Ua.jsx)("div",{className:"ps-flex ps-flex-row ps-items-center ps-gap-4 ps-py-0",children:(0,Ua.jsx)("textarea",{rows:5,value:s,onChange:d,disabled:l,className:"ps-cell-input-base ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize ps-px-[var(--studio-cell-spacing)]",lang:"en_EN"})}),(0,Ua.jsx)(Wt,{onSave:m,onCancel:g,onNullChange:r?c:void 0,isNull:l})]})}b();var Qr=Se(require("react"),1);var Ca=require("react/jsx-runtime");function Ap(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,Qr.useState)(t===null?"":String(t)),[i,l]=(0,Qr.useState)(t===null),u=t===null?"":String(t),d=h=>{s(h.target.value)},c=h=>{l(h)},f=Qr.default.useCallback(()=>{if(i)return t!==null?(a(null),!0):!1;let h=n===""?null:Number(n);return n!==t?(a(h),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:g}=Vt({onSave:f,onCancel:p});return(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0",children:[(0,Ca.jsx)(Hr,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,Ca.jsx)("input",{type:"text",inputMode:"numeric",pattern:"\\d*",value:n,onChange:d,disabled:i,className:"ps-cell-input-leading ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",step:"any",lang:"en_EN"})]}),(0,Ca.jsx)(Wt,{onSave:m,onCancel:g,onNullChange:r?c:void 0,isNull:i})]})}b();var Dp=Se(require("react"),1);b();var Rp=require("react");function Tp(e){let{initialValue:t}=e,[a,o]=(0,Rp.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var ba=require("react/jsx-runtime");function Ep(e){let{onSubmit:t,value:a}=e,o=String(a),{handleOnChange:r,value:n}=Tp({initialValue:o});function s(c){c.preventDefault(),n!==o&&t(n)}let i=Dp.default.useCallback(()=>n!==o?(t(n),!0):!1,[n,o,t]),l=()=>{},{handleSave:u,handleCancel:d}=Vt({onSave:i,onCancel:l});return(0,ba.jsxs)(ba.Fragment,{children:[(0,ba.jsxs)("form",{onSubmit:s,children:[(0,ba.jsx)(Ur,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:r,type:"text",value:n}),(0,ba.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,ba.jsx)(Wt,{onSave:u,onCancel:d})]})}var Oo=require("react/jsx-runtime");function us(e,t,a){let{group:o,options:r,isArray:n}=t.datatype,s=e.getValue(),i=s===void 0?"":s;return o==="json"||n?(0,Oo.jsx)(Mp,{onSubmit:a,value:i,column:t}):o==="boolean"?(0,Oo.jsx)(Ip,{onSubmit:a,value:i,column:t}):o==="enum"?(0,Oo.jsx)(Pp,{onSubmit:a,value:i,options:r,column:t}):o==="numeric"?(0,Oo.jsx)(Ap,{onSubmit:a,value:i,column:t}):(0,Oo.jsx)(Ep,{onSubmit:a,value:(0,Fp.isObjectType)(i)?JSON.stringify(i):i})}b();var Op=require("@tanstack/react-table"),Bp=require("remeda");var Ha=require("react/jsx-runtime");function $p(e){let{table:t,stagedRows:a,setStagedRows:o}=e;function r(i,l){o(u=>{let d=[...u];return d[i]={...d[i],...l},d})}let n=Object.values(t.options.columns).map(i=>i.id==="__ps_select"?{...i,cell(){return()=>(0,Ha.jsx)(qr,{})}}:{...i,cell({cell:l}){return u=>(0,Ha.jsx)(ss,{cellComponent:ns(l,i.meta,u),inputComponent:us(l,i.meta,d=>{console.log("value",d),r(u.rowIndex,{[i.id]:d})})})}}),s=(0,Op.useReactTable)({...t.options,columns:n,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Bp.omit)(t.options.state,["pagination","sorting"])});return(0,Ha.jsx)(Ha.Fragment,{children:s.getRowModel().rows.map((i,l)=>(0,Ha.jsx)(lo,{children:i.getVisibleCells().map((u,d)=>{if(typeof u.column.columnDef.cell=="function"){let c=u.column.columnDef.cell(u.getContext());return(0,Ha.jsx)(c,{...ya(u.column),rowIndex:l},d)}return null})},l))})}var Pe=require("react/jsx-runtime");function zp(e){let t=!!(0,qp.useIsMutating)(),{activeTable:a,onError:o,isFullscreen:r,toggleFullscreen:n}=Ge(),{sortingState:s,setSortingState:i}=Tf(),{paginationState:l,setPaginationState:u}=Yn(),[d,c]=(0,ds.useState)([]),{data:f,isFetching:p}=If({...l,sortOrder:s}),{deleteSelection:m,isSelecting:g,rowSelectionState:h,setRowSelectionState:x}=Rf(f),v=Pf(),C=wf(),w=Sf();if((0,ds.useEffect)(()=>c([]),[a]),!a)return null;function S(){C.mutate(d,{onError:o,onSuccess(){Np.toast.success("Rows inserted successfully"),c([])}})}function F(){c(P=>[...P,{}])}function D(){c([])}function T(P,Z,re){w.mutate({details:{changes:{[Z.name]:P},row:re,table:a},options:{}})}let L=Object.values(a?.columns??{}).map(P=>({id:P.name,accessorKey:P.name,meta:P,header(){return vp({column:P})},cell({cell:Z}){return re=>(0,Pe.jsx)(ss,{cellComponent:ns(Z,P,re),inputComponent:us(Z,P,xe=>T(xe,P,Z.row.original))})}})),I=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,meta:{disableDragging:!0},header({table:P}){return(0,Pe.jsx)(nr,{checked:P.getIsAllRowsSelected(),onCheckedChange:Z=>P.toggleAllRowsSelected(!!Z)})},cell({row:P}){return()=>(0,Pe.jsx)($l,{row:P})}}],H=[...L,...I].sort(tC);return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b ps-bg-card ps-rounded-t-lg",children:(0,Pe.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,Pe.jsxs)("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:[(0,Pe.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,Pe.jsx)(Xe,{variant:"outline",size:"sm",onClick:F,disabled:v>0,children:"Insert row"}),d.length>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(Xe,{variant:"secondary",size:"sm",onClick:S,children:"Save"}),(0,Pe.jsx)(Xe,{variant:"ghost",size:"sm",onClick:D,children:"Cancel"})]}),g&&(0,Pe.jsx)(Pe.Fragment,{children:(0,Pe.jsx)(Xe,{variant:"secondary",size:"sm",onClick:m,children:"Delete"})})]}),(0,Pe.jsx)(Xe,{variant:"outline",size:"icon",onClick:n,children:r?(0,Pe.jsx)(er,{}):(0,Pe.jsx)(Yo,{})})]})})}),(0,Pe.jsx)(mp,{columnDefs:H,getBeforeRows:P=>(0,Pe.jsx)($p,{table:P,stagedRows:d,setStagedRows:c}),isLoading:p,isProcessing:t,onPaginationChange:u,onRowSelectionChange:x,onSortingChange:i,pageCount:eC(f?.filteredRowCount??1/0,l.pageSize),paginationState:l,rows:f?.rows??[],rowSelectionState:h,sortingState:s})]})}function eC(e,t){if(e===1/0)return;let a=Number((BigInt(e)+BigInt(t)-BigInt(1))/BigInt(t));return Number.isSafeInteger(a)?a:Number.MAX_SAFE_INTEGER}function tC(e,t){let a=e.meta,o=t.meta;return e.id==="__ps_select"||t.id==="__ps_select"?1:a===void 0||o===void 0?0:a.isInPrimaryKey&&!o.isInPrimaryKey?-1:!a.isInPrimaryKey&&o.isInPrimaryKey?1:a.name.localeCompare(o.name)}b();var Kp=require("@radix-ui/react-slot");b();var cs=require("react");b();var Hp=require("@tanstack/react-query");var Up=-1;function _p(){let{adapter:e}=Ge();return(0,Hp.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:Up,queryFn:async({signal:t})=>{let[a,o]=await e.introspect({abortSignal:t});if(a)throw a;return o},queryKey:["introspection"],staleTime:t=>t.state.dataUpdatedAt===Up?0:1/0})}function Vp(){let{activeTable:e,setActiveTable:t,adapter:a}=Ge(),{data:o,isLoading:r}=_p(),n=Object.values(o.schemas[a.defaultSchema||"db"]?.tables||{}),[s]=n,[i,l]=$r({table:{defaultValue:null,parse:f=>f,serialize:f=>f??""},schema:{defaultValue:"",parse:f=>f,serialize:f=>f??""}}),[,u]=To("pageIndex",{parse:f=>f,serialize:f=>f??""}),[,d]=To("sort",{parse:f=>f,serialize:f=>f??""});(0,cs.useEffect)(()=>{if(!r){if(i?.table&&n.length>0){let f=n.find(p=>p.name===i.table);if(f){t(f);return}}n.length>0&&!e&&(t(s||null),s&&l({table:s.name,schema:s.schema}))}},[r,i,n,s,e,t,l]);let c=(0,cs.useCallback)(f=>{e!==f&&(t(f),l({table:f.name,schema:f.schema}),u(null),d(null))},[e,t,l,u,d]);return{tables:n,activeTable:e,isLoading:r,handleTableChange:c}}var mt=require("react/jsx-runtime");function _a(){let{tables:e,activeTable:t,isLoading:a,handleTableChange:o}=Vp();return(0,mt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0 ps-overflow-y-auto ps-max-h-full ps-min-h-0 ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",children:(0,mt.jsx)(_a.Block,{label:"Tables",children:e.length>0?e.map(r=>(0,mt.jsx)(_a.Item,{isActive:t===r,onClick:()=>{o(r)},className:"ps-capitalize ps-py-1 ps-font-mono ps-text-xs ps-text-foreground/60 hover:ps-text-foreground ps-transition-all ps-cursor-pointer data-[active=true]:ps-bg-primary/5 data-[active=true]:ps-foreground data-[active=true]:ps-text-foreground",children:r.name},`${r.schema}-${r.name}`)):a?(0,mt.jsx)(_a.Item,{children:"Loading..."}):(0,mt.jsx)(_a.Item,{children:"No tables found"})})})}var aC=({className:e,label:t,children:a,...o})=>(0,mt.jsxs)("div",{className:e,...o,children:[(0,mt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,mt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,mt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),oC=({className:e,asChild:t=!1,isActive:a,size:o,...r})=>(0,mt.jsx)(t?Kp.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:K("ps-py-1.5 ps-px-4 ps-text-sm ps-font-medium ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent ps-hover:bg-muted/50",e),...r,children:(0,mt.jsx)("span",{className:"ps-truncate",children:r.children})});_a.Block=aC;_a.Item=oC;var Qt=require("react/jsx-runtime");function Gp(e){let{adapter:t,onError:a}=e;return t?(0,Qt.jsx)(Cf,{adapter:t,onError:a,children:(0,Qt.jsx)(rC,{})}):(console.error("No adapter provided to Studio component"),(0,Qt.jsx)("div",{children:"Error: No adapter provided"}))}function rC(){let{isFullscreen:e}=Ge(),t=K("ps-flex ps-flex-col ps-w-full ps-min-h-0 ps-max-h-full",e&&"ps-fixed ps-inset-0 ps-z-[9999] ps-bg-background ps-p-2");return(0,Qt.jsx)("div",{className:t,children:(0,Qt.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full ps-min-h-full",children:[(0,Qt.jsx)(_a,{}),(0,Qt.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-bg-slate-100 ps-border ps-rounded-lg ps-self-start ps-h-full ps-min-h-full ps-max-h-full ps-overflow-clip",children:(0,Qt.jsx)(zp,{})})]})})}0&&(module.exports={Studio});
|
|
1220
1220
|
/*! Bundled license information:
|
|
1221
1221
|
|
|
1222
1222
|
@tanstack/query-devtools/build/chunk/WXAWMS3D.js:
|
|
@@ -1477,6 +1477,22 @@ lucide-react/dist/esm/icons/key-round.js:
|
|
|
1477
1477
|
* See the LICENSE file in the root directory of this source tree.
|
|
1478
1478
|
*)
|
|
1479
1479
|
|
|
1480
|
+
lucide-react/dist/esm/icons/maximize.js:
|
|
1481
|
+
(**
|
|
1482
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1483
|
+
*
|
|
1484
|
+
* This source code is licensed under the ISC license.
|
|
1485
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1486
|
+
*)
|
|
1487
|
+
|
|
1488
|
+
lucide-react/dist/esm/icons/minimize.js:
|
|
1489
|
+
(**
|
|
1490
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1491
|
+
*
|
|
1492
|
+
* This source code is licensed under the ISC license.
|
|
1493
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1494
|
+
*)
|
|
1495
|
+
|
|
1480
1496
|
lucide-react/dist/esm/icons/pin-off.js:
|
|
1481
1497
|
(**
|
|
1482
1498
|
* @license lucide-react v0.427.0 - ISC
|