@prisma/studio-core 0.0.0-dev.202504162314 → 0.0.0-dev.202504170006
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 +120 -112
- package/dist/ui/index.js +10 -2
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";var Pf=Object.create;var lr=Object.defineProperty;var Mf=Object.getOwnPropertyDescriptor;var Df=Object.getOwnPropertyNames;var Af=Object.getPrototypeOf,Tf=Object.prototype.hasOwnProperty;var ho=(e,t)=>()=>(e&&(t=e(e=0)),t);var sn=(e,t)=>{for(var a in t)lr(e,a,{get:t[a],enumerable:!0})},Ns=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Df(t))!Tf.call(e,r)&&r!==a&&lr(e,r,{get:()=>t[r],enumerable:!(o=Mf(t,r))||o.enumerable});return e};var Ee=(e,t,a)=>(a=e!=null?Pf(Af(e)):{},Ns(t||!e||!e.__esModule?lr(a,"default",{value:e,enumerable:!0}):a,e)),Rf=e=>Ns(lr({},"__esModule",{value:!0}),e);var M=ho(()=>{});function Hs(e){let t=String(e),a=t.length-1;return Z.context.id+(a?String.fromCharCode(96+a):"")+t}function ka(e){Z.context=e}function Ef(){return{...Z.context,id:Z.getNextContextId(),count:0}}function kt(e,t){let a=ue,o=te,r=e.length===0,n=t===void 0?o:t,s=r?ol:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>he(()=>ia(s)));te=s,ue=null;try{return Ze(i,!0)}finally{ue=a,te=o}}function B(e,t){t=t?Object.assign({},pr,t):pr;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(O&&O.running&&O.sources.has(a)?r=r(a.tValue):r=r(a.value)),ul(a,r));return[il.bind(a),o]}function mr(e,t,a){let o=Cr(e,t,!0,et);ja&&O&&O.running?De.push(o):Xa(o)}function V(e,t,a){let o=Cr(e,t,!1,et);ja&&O&&O.running?De.push(o):Xa(o)}function G(e,t,a){al=Nf;let o=Cr(e,t,!1,et),r=vo&&Ae(vo);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),_e?_e.push(o):Xa(o)}function w(e,t,a){a=a?Object.assign({},pr,a):pr;let o=Cr(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,ja&&O&&O.running?(o.tState=et,De.push(o)):Xa(o),il.bind(o)}function $f(e){return e&&typeof e=="object"&&"then"in e}function Of(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=ln,l=null,u=!1,f=!1,d="initialValue"in n,p=typeof o=="function"&&w(o),c=new Set,[m,g]=(n.storage||B)(n.initialValue),[h,y]=B(void 0),[C,v]=B(void 0,{equals:!1}),[L,b]=B(d?"ready":"unresolved");Z.context&&(l=Z.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Z.load&&Z.has(l)&&(i=Z.load(l)));function R(P,_,N,ne){return s===P&&(s=null,ne!==void 0&&(d=!0),(P===i||_===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(ne,{value:_})),i=ln,O&&P&&u?(O.promises.delete(P),u=!1,Ze(()=>{O.running=!0,A(_,N)},!1)):A(_,N)),_}function A(P,_){Ze(()=>{_===void 0&&g(()=>P),b(_!==void 0?"errored":d?"ready":"unresolved"),y(_);for(let N of c.keys())N.decrement();c.clear()},!1)}function $(){let P=vo&&Ae(vo),_=m(),N=h();if(N!==void 0&&!s)throw N;return ue&&!ue.user&&P&&mr(()=>{C(),s&&(P.resolved&&O&&u?O.promises.add(s):c.has(P)||(P.increment(),c.add(P)))}),_}function I(P=!0){if(P!==!1&&f)return;f=!1;let _=p?p():o;if(u=O&&O.running,_==null||_===!1){R(s,he(m));return}O&&s&&O.promises.delete(s);let N=i!==ln?i:he(()=>r(_,{value:m(),refetching:P}));return $f(N)?(s=N,"value"in N?(N.status==="success"?R(s,N.value,void 0,_):R(s,void 0,fn(N.value),_),N):(f=!0,queueMicrotask(()=>f=!1),Ze(()=>{b(d?"refreshing":"pending"),v()},!1),N.then(ne=>R(N,ne,void 0,_),ne=>R(N,void 0,fn(ne),_)))):(R(s,N,void 0,_),N)}return Object.defineProperties($,{state:{get:()=>L()},error:{get:()=>h()},loading:{get(){let P=L();return P==="pending"||P==="refreshing"}},latest:{get(){if(!d)return $();let P=h();if(P&&!s)throw P;return m()}}}),p?mr(()=>I(!1)):I(!1),[$,{refetch:I,mutate:g}]}function rl(e){return Ze(e,!1)}function he(e){if(!Ka&&ue===null)return e();let t=ue;ue=null;try{return Ka?Ka.untrack(e):e()}finally{ue=t}}function Pt(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=he(()=>t(i,r,s));return r=i,l}}function _t(e){G(()=>he(e))}function j(e){return te===null||(te.cleanups===null?te.cleanups=[e]:te.cleanups.push(e)),e}function gr(){return te}function Bf(e,t){let a=te,o=ue;te=e,ue=null;try{return Ze(t,!0)}catch(r){vr(r)}finally{te=a,ue=o}}function nl(e){if(O&&O.running)return e(),O.done;let t=ue,a=te;return Promise.resolve().then(()=>{ue=t,te=a;let o;return(ja||vo)&&(o=O||(O={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),Ze(e,!1),ue=te=null,o?o.done:void 0})}function sl(){return[qf,nl]}function qe(e,t){let a=Symbol("context");return{id:a,Provider:Hf(a),defaultValue:e}}function Ae(e){let t;return te&&te.context&&(t=te.context[e.id])!==void 0?t:e.defaultValue}function ll(e){let t=w(e),a=w(()=>cn(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function il(){let e=O&&O.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===et)Xa(this);else{let t=De;De=null,Ze(()=>hr(this),!1),De=t}if(ue){let t=this.observers?this.observers.length:0;ue.sources?(ue.sources.push(this),ue.sourceSlots.push(t)):(ue.sources=[this],ue.sourceSlots=[t]),this.observers?(this.observers.push(ue),this.observerSlots.push(ue.sources.length-1)):(this.observers=[ue],this.observerSlots=[ue.sources.length-1])}return e&&O.sources.has(this)?this.tValue:this.value}function ul(e,t,a){let o=O&&O.running&&O.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(O){let r=O.running;(r||!a&&O.sources.has(e))&&(O.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Ze(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=O&&O.running;s&&O.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?De.push(n):_e.push(n),n.observers&&fl(n)),s?n.tState=et:n.state=et)}if(De.length>1e6)throw De=[],new Error},!1)}return t}function Xa(e){if(!e.fn)return;ia(e);let t=yr;Gs(e,O&&O.running&&O.sources.has(e)?e.tValue:e.value,t),O&&!O.running&&O.sources.has(e)&&queueMicrotask(()=>{Ze(()=>{O&&(O.running=!0),ue=te=e,Gs(e,e.tValue,t),ue=te=null},!1)})}function Gs(e,t,a){let o,r=te,n=ue;ue=te=e;try{o=e.fn(t)}catch(s){return e.pure&&(O&&O.running?(e.tState=et,e.tOwned&&e.tOwned.forEach(ia),e.tOwned=void 0):(e.state=et,e.owned&&e.owned.forEach(ia),e.owned=null)),e.updatedAt=a+1,vr(s)}finally{ue=n,te=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?ul(e,o,!0):O&&O.running&&e.pure?(O.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function Cr(e,t,a,o=et,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:te,context:te?te.context:null,pure:a};if(O&&O.running&&(n.state=0,n.tState=o),te===null||te!==ol&&(O&&O.running&&te.pure?te.tOwned?te.tOwned.push(n):te.tOwned=[n]:te.owned?te.owned.push(n):te.owned=[n]),Ka&&n.fn){let[s,i]=B(void 0,{equals:!1}),l=Ka.factory(n.fn,i);j(()=>l.dispose());let u=()=>nl(i).then(()=>f.dispose()),f=Ka.factory(n.fn,u);n.fn=d=>(s(),O&&O.running?f.track(d):l.track(d))}return n}function Lo(e){let t=O&&O.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Co)return hr(e);if(e.suspense&&he(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<yr);){if(t&&O.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(O.disposed.has(r))return}if((t?e.tState:e.state)===et)Xa(e);else if((t?e.tState:e.state)===Co){let r=De;De=null,Ze(()=>hr(e,a[0]),!1),De=r}}}function Ze(e,t){if(De)return e();let a=!1;t||(De=[]),_e?a=!0:_e=[],yr++;try{let o=e();return zf(a),o}catch(o){a||(_e=null),De=null,vr(o)}}function zf(e){if(De&&(ja&&O&&O.running?Uf(De):dl(De),De=null),e)return;let t;if(O){if(!O.promises.size&&!O.queue.size){let o=O.sources,r=O.disposed;_e.push.apply(_e,O.effects),t=O.resolve;for(let n of _e)"tState"in n&&(n.state=n.tState),delete n.tState;O=null,Ze(()=>{for(let n of r)ia(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)ia(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}Vs(!1)},!1)}else if(O.running){O.running=!1,O.effects.push.apply(O.effects,_e),_e=null,Vs(!0);return}}let a=_e;_e=null,a.length&&Ze(()=>al(a),!1),t&&t()}function dl(e){for(let t=0;t<e.length;t++)Lo(e[t])}function Uf(e){for(let t=0;t<e.length;t++){let a=e[t],o=O.queue;o.has(a)||(o.add(a),ja(()=>{o.delete(a),Ze(()=>{O.running=!0,Lo(a)},!1),O&&(O.running=!1)}))}}function Nf(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:Lo(o)}if(Z.context){if(Z.count){Z.effects||(Z.effects=[]),Z.effects.push(...e.slice(0,a));return}ka()}for(Z.effects&&(Z.done||!Z.count)&&(e=[...Z.effects,...e],a+=Z.effects.length,delete Z.effects),t=0;t<a;t++)Lo(e[t])}function hr(e,t){let a=O&&O.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===et?r!==t&&(!r.updatedAt||r.updatedAt<yr)&&Lo(r):n===Co&&hr(r,t)}}}function fl(e){let t=O&&O.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=Co:o.state=Co,o.pure?De.push(o):_e.push(o),o.observers&&fl(o))}}function ia(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--)ia(e.tOwned[t]);delete e.tOwned}if(O&&O.running&&e.pure)cl(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)ia(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}O&&O.running?e.tState=0:e.state=0}function cl(e,t){if(t||(e.tState=0,O.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)cl(e.owned[a])}function fn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Ks(e,t,a){try{for(let o of t)o(e)}catch(o){vr(o,a&&a.owner||null)}}function vr(e,t=te){let a=_s&&t&&t.context&&t.context[_s],o=fn(e);if(!a)throw o;_e?_e.push({fn(){Ks(o,a,t)},state:et}):Ks(o,a,t)}function cn(e){if(typeof e=="function"&&!e.length)return cn(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=cn(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Hf(e,t){return function(o){let r;return V(()=>r=he(()=>(te.context={...te.context,[e]:o.value},ll(()=>o.children))),void 0),r}}function xr(e){for(let t=0;t<e.length;t++)e[t]()}function _f(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return j(()=>xr(n)),()=>{let l=e()||[],u=l.length,f,d;return l[ko],he(()=>{let c,m,g,h,y,C,v,L,b;if(u===0)s!==0&&(xr(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[pn],r[0]=kt(R=>(n[0]=R,a.fallback())),s=1);else if(s===0){for(r=new Array(u),d=0;d<u;d++)o[d]=l[d],r[d]=kt(p);s=u}else{for(g=new Array(u),h=new Array(u),i&&(y=new Array(u)),C=0,v=Math.min(s,u);C<v&&o[C]===l[C];C++);for(v=s-1,L=u-1;v>=C&&L>=C&&o[v]===l[L];v--,L--)g[L]=r[v],h[L]=n[v],i&&(y[L]=i[v]);for(c=new Map,m=new Array(L+1),d=L;d>=C;d--)b=l[d],f=c.get(b),m[d]=f===void 0?-1:f,c.set(b,d);for(f=C;f<=v;f++)b=o[f],d=c.get(b),d!==void 0&&d!==-1?(g[d]=r[f],h[d]=n[f],i&&(y[d]=i[f]),d=m[d],c.set(b,d)):n[f]();for(d=C;d<u;d++)d in g?(r[d]=g[d],n[d]=h[d],i&&(i[d]=y[d],i[d](d))):r[d]=kt(p);r=r.slice(0,s=u),o=l.slice(0)}return r});function p(c){if(n[d]=c,i){let[m,g]=B(d);return i[d]=g,t(l[d],m)}return t(l[d])}}}function Vf(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return j(()=>xr(n)),()=>{let u=e()||[],f=u.length;return u[ko],he(()=>{if(f===0)return i!==0&&(xr(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[pn],r[0]=kt(p=>(n[0]=p,a.fallback())),i=1),r;for(o[0]===pn&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<f;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=kt(d));for(;l<o.length;l++)n[l]();return i=s.length=n.length=f,o=u.slice(0),r=r.slice(0,i)});function d(p){n[l]=p;let[c,m]=B(u[l]);return s[l]=m,t(c,l)}}}function x(e,t){if(Gf&&Z.context){let a=Z.context;ka(Ef());let o=he(()=>e(t||{}));return ka(a),o}return he(()=>e(t||{}))}function ir(){return!0}function un(e){return(e=typeof e=="function"?e():e)?e:{}}function Kf(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function J(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&cr in i,e[s]=typeof i=="function"?(t=!0,w(i)):i}if(tl&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=un(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in un(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(un(e[i])));return[...new Set(s)]}},mn);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 f=l[u];if(f==="__proto__"||f==="constructor")continue;let d=Object.getOwnPropertyDescriptor(i,f);if(!o[f])o[f]=d.get?{enumerable:!0,configurable:!0,get:Kf.bind(a[f]=[d.get.bind(i)])}:d.value!==void 0?d:void 0;else{let p=a[f];p&&(d.get?p.push(d.get.bind(i)):d.value!==void 0&&p.push(()=>d.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 le(e,...t){if(tl&&cr 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)}},mn));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))}},mn)),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 vn(e){let t,a,o=r=>{let n=Z.context;if(n){let[i,l]=B();Z.count||(Z.count=0),Z.count++,(a||(a=e())).then(u=>{!Z.done&&ka(n),Z.count--,l(()=>u.default),ka()}),t=i}else if(!t){let[i]=Of(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return w(()=>(s=t())?he(()=>{if(!n||Z.done)return s(r);let i=Z.context;ka(n);let l=s(r);return ka(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function tt(){return Z.context?Z.getNextContextId():`cl-${Wf++}`}function ml(e){let t="fallback"in e&&{fallback:()=>e.fallback};return w(_f(()=>e.each,e.children,t||void 0))}function gl(e){let t="fallback"in e&&{fallback:()=>e.fallback};return w(Vf(()=>e.each,e.children,t||void 0))}function K(e){let t=e.keyed,a=w(()=>e.when,void 0,void 0),o=t?a:w(a,void 0,{equals:(r,n)=>!r==!n});return w(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?he(()=>n(t?r:()=>{if(!he(o))throw pl("Show");return a()})):n}return e.fallback},void 0,void 0)}function hl(e){let t=ll(()=>e.children),a=w(()=>{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,f=w(()=>u()?void 0:l.when,void 0,void 0),d=l.keyed?f:w(f,void 0,{equals:(p,c)=>!p==!c});n=()=>u()||(d()?[i,f,l]:void 0)}return n});return w(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?he(()=>i(s.keyed?n():()=>{if(he(a)()?.[0]!==r)throw pl("Match");return n()})):i},void 0,void 0)}function Lr(e){return e}function Jf(e,t){let a=Yf[e];return typeof a=="object"?a[t]?a.$:void 0:a}function oc(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 f=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],f)}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 f=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],f),t[r]=a[n]}else{if(!u){u=new Map;let d=i;for(;d<n;)u.set(a[d],d++)}let f=u.get(t[s]);if(f!=null)if(i<f&&f<n){let d=s,p=1,c;for(;++d<r&&d<n&&!((c=u.get(t[d]))==null||c!==f+p);)p++;if(p>f-i){let m=t[s];for(;i<f;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function Ln(e,t,a,o={}){let r;return kt(n=>{r=n,t===document?e():S(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function H(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?()=>he(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function Po(e,t=window.document){let a=t[xo]||(t[xo]=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,Cl))}}function yl(e=window.document){if(e[xo]){for(let t of e[xo].keys())e.removeEventListener(t,Cl);delete e[xo]}}function T(e,t,a){Ma(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function rc(e,t,a,o){Ma(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function nc(e,t,a){Ma(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function E(e,t){Ma(e)||(t==null?e.removeAttribute("class"):e.className=t)}function bn(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 sc(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]||(Ws(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||(Ws(e,i,!0),a[i]=l)}return a}function lc(e,t,a){if(!t)return a?T(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 In(e,t={},a,o){let r={};return o||V(()=>r.children=bo(e,t.children,r.children)),V(()=>typeof t.ref=="function"&&Pa(t.ref,e)),V(()=>ic(e,t,a,!0,r,!0)),r}function Pa(e,t,a){return he(()=>e(t,a))}function S(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return bo(e,t,o,a);V(r=>bo(e,t(),r,a),o)}function ic(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=js(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=js(e,s,i,r[s],a,n,t)}}function uc(e){let t,a;return!Ma()||!(t=Z.registry.get(a=fc()))?e():(Z.completed&&Z.completed.add(t),Z.registry.delete(a),t)}function Ma(e){return!!Z.context&&!Z.done&&(!e||e.isConnected)}function dc(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function Ws(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 js(e,t,a,o,r,n,s){let i,l,u,f,d;if(t==="style")return lc(e,a,o);if(t==="classList")return sc(e,a,o);if(a===o)return o;if(t==="ref")n||a(e);else if(t.slice(0,3)==="on:"){let p=t.slice(3);o&&e.removeEventListener(p,o,typeof o!="function"&&o),a&&e.addEventListener(p,a,typeof a!="function"&&a)}else if(t.slice(0,10)==="oncapture:"){let p=t.slice(10);o&&e.removeEventListener(p,o,!0),a&&e.addEventListener(p,a,!0)}else if(t.slice(0,2)==="on"){let p=t.slice(2).toLowerCase(),c=ec.has(p);if(!c&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(p,m)}(c||a)&&(bn(e,p,a,c),c&&Po([p]))}else if(t.slice(0,5)==="attr:")T(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")nc(e,t.slice(5),a);else if((d=t.slice(0,5)==="prop:")||(u=Qf.has(t))||!r&&((f=Jf(t,e.tagName))||(l=Xf.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(d)t=t.slice(5),l=!0;else if(Ma(e))return a;t==="class"||t==="className"?E(e,a):i&&!l&&!u?e[dc(t)]=a:e[f||t]=a}else{let p=r&&t.indexOf(":")>-1&&ac[t.split(":")[0]];p?rc(e,p,t,a):T(e,Zf[t]||t,a)}return a}function Cl(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 bo(e,t,a,o,r){let n=Ma(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let f=a[u];f.nodeType===8&&f.data.slice(0,2)==="!$"?f.remove():l.push(f)}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=_a(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=_a(e,a,o)}else{if(s==="function")return V(()=>{let l=t();for(;typeof l=="function";)l=l();a=bo(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(gn(l,t,a,r))return V(()=>a=bo(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let f=l[0];if(f.parentNode!==e)return a;let d=[f];for(;(f=f.nextSibling)!==o;)d.push(f);return a=d}if(l.length===0){if(a=_a(e,a,o),i)return a}else u?a.length===0?Xs(e,l,o):oc(e,a,l):(a&&_a(e),Xs(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=_a(e,a,o,t);_a(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function gn(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=gn(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=gn(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let f=String(i);l&&l.nodeType===3&&l.data===f?e.push(l):e.push(document.createTextNode(f))}}return r}function Xs(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function _a(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 fc(){return Z.getNextContextId()}function vl(e,t=!1){return t?document.createElementNS(cc,e):document.createElement(e)}function wn(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=gr(),n,s=!!Z.context;return G(()=>{s&&(gr().user=s=!1),n||(n=Bf(r,()=>w(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=B(!1),f=()=>u(!0);kt(d=>S(i,()=>l()?d():n(),null)),j(f)}else{let l=vl(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}),S(u,n),i.appendChild(l),e.ref&&e.ref(l),j(()=>i.removeChild(l))}},void 0,{render:!s}),a}function pc(e,t){let a=w(e);return w(()=>{let o=a();switch(typeof o){case"function":return he(()=>o(t));case"string":let r=tc.has(o),n=Z.context?uc():vl(o,r);return In(n,t,r),n}})}function Ll(e){let[,t]=le(e,["component"]);return pc(()=>e.component,t)}function hc(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 xc(e,t){let a=hc(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 Wa(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function fr(e,t){return e.indexOf(t)!==-1}function Qs(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function St(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function br(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Dl(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function El(e){if(fr(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(fr(e,"prototype"))throw new Error("prototype is not allowed as a property");if(fr(e,"constructor"))throw new Error("constructor is not allowed as a property")}function yn(e,t,a=[]){if(!e)return;if(!ua(e)){Wa(e,(n,s)=>yn(n,t,[...a,...yo(s)]));return}let[o,r]=e;r&&Wa(r,(n,s)=>{yn(n,t,[...a,...yo(s)])}),t(o,a)}function Oc(e,t,a){return yn(t,(o,r)=>{e=xn(e,r,n=>Fc(n,o,a))}),e}function Bc(e,t){function a(o,r){let n=$c(e,yo(r));o.map(yo).forEach(s=>{e=xn(e,s,()=>n)})}if(ua(t)){let[o,r]=t;o.forEach(n=>{e=xn(e,yo(n),()=>e)}),r&&Wa(r,a)}else Wa(t,a);return e}function zc(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function Uc(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(dn):a[dn(n)]=s.map(dn)}),o?hn(a)?[o]:[o,a]:hn(a)?void 0:a}function $l(e){return Object.prototype.toString.call(e).slice(8,-1)}function Js(e){return $l(e)==="Array"}function Nc(e){if($l(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Hc(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 Cn(e,t={}){if(Js(e))return e.map(r=>Cn(r,t));if(!Nc(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(Js(t.props)&&!t.props.includes(n))return r;let s=e[n],i=Cn(s,t);return Hc(r,n,i,e,t.nonenumerable),r},{})}function Da(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function Bl(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function ql({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function Aa({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function zl(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Z,el,Ff,cr,tl,ko,pr,_s,al,et,Co,ol,ln,te,O,ja,Ka,ue,De,_e,yr,qf,Vs,vo,pn,Gf,mn,Wf,pl,xl,jf,Xf,Qf,Zf,Yf,ec,tc,ac,xo,Ve,cc,mc,bl,gc,yc,Cc,Il,vc,Io,hn,ua,Lc,bc,Ic,wc,wo,So,wl,Sc,kc,Zs,Pc,Mc,Dc,Ac,Tc,Sl,dn,yo,kl,Pl,Rc,Ml,Al,Tl,Ec,Ys,Rl,Fc,Va,$c,xn,qc,Fl,re,Sn,Ol,Mo,ur,_c,Ul,Vc,Ir,dr,Nl,Gc,wr,kn,Sr,la,Ga,Pn,Do=ho(()=>{"use strict";M();Z={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Hs(this.context.count)},getNextContextId(){return Hs(this.context.count++)}};el=!1,Ff=(e,t)=>e===t,cr=Symbol("solid-proxy"),tl=typeof Proxy=="function",ko=Symbol("solid-track"),pr={equals:Ff},_s=null,al=dl,et=1,Co=2,ol={owned:null,cleanups:null,context:null,owner:null},ln={},te=null,O=null,ja=null,Ka=null,ue=null,De=null,_e=null,yr=0;[qf,Vs]=B(!1);pn=Symbol("fallback");Gf=!1;mn={get(e,t,a){return t===cr?a:e.get(t)},has(e,t){return t===cr?!0:e.has(t)},set:ir,deleteProperty:ir,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ir,deleteProperty:ir}},ownKeys(e){return e.keys()}};Wf=0;pl=e=>`Stale read from <${e}>.`;xl=void 0,jf=["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"],Xf=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...jf]),Qf=new Set(["innerHTML","textContent","innerText","children"]),Zf=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Yf=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}});ec=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),tc=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"]),ac={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};xo="_$DX_DELEGATE";Ve=!1,cc="http://www.w3.org/2000/svg";mc=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()}},bl=class{constructor(e){this.generateIdentifier=e,this.kv=new mc}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)}},gc=class extends bl{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)}};yc=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return xc(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Cc=e=>Object.prototype.toString.call(e).slice(8,-1),Il=e=>typeof e>"u",vc=e=>e===null,Io=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,hn=e=>Io(e)&&Object.keys(e).length===0,ua=e=>Array.isArray(e),Lc=e=>typeof e=="string",bc=e=>typeof e=="number"&&!isNaN(e),Ic=e=>typeof e=="boolean",wc=e=>e instanceof RegExp,wo=e=>e instanceof Map,So=e=>e instanceof Set,wl=e=>Cc(e)==="Symbol",Sc=e=>e instanceof Date&&!isNaN(e.valueOf()),kc=e=>e instanceof Error,Zs=e=>typeof e=="number"&&isNaN(e),Pc=e=>Ic(e)||vc(e)||Il(e)||bc(e)||Lc(e)||wl(e),Mc=e=>typeof e=="bigint",Dc=e=>e===1/0||e===-1/0,Ac=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Tc=e=>e instanceof URL,Sl=e=>e.replace(/\./g,"\\."),dn=e=>e.map(String).map(Sl).join("."),yo=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};kl=[St(Il,"undefined",()=>null,()=>{}),St(Mc,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),St(Sc,"Date",e=>e.toISOString(),e=>new Date(e)),St(kc,"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}),St(wc,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),St(So,"set",e=>[...e.values()],e=>new Set(e)),St(wo,"map",e=>[...e.entries()],e=>new Map(e)),St(e=>Zs(e)||Dc(e),"number",e=>Zs(e)?"NaN":e>0?"Infinity":"-Infinity",Number),St(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),St(Tc,"URL",e=>e.toString(),e=>new URL(e))];Pl=br((e,t)=>wl(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}),Rc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Ml=br(Ac,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Rc[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});Al=br(Dl,(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)}),Tl=br((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)}),Ec=[Al,Pl,Tl,Ml],Ys=(e,t)=>{let a=Qs(Ec,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=Qs(kl,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},Rl={};kl.forEach(e=>{Rl[e.annotation]=e});Fc=(e,t,a)=>{if(ua(t))switch(t[0]){case"symbol":return Pl.untransform(e,t,a);case"class":return Al.untransform(e,t,a);case"custom":return Tl.untransform(e,t,a);case"typed-array":return Ml.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=Rl[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},Va=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};$c=(e,t)=>{El(t);for(let a=0;a<t.length;a++){let o=t[a];if(So(e))e=Va(e,+o);else if(wo(e)){let r=+o,n=+t[++a]==0?"key":"value",s=Va(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},xn=(e,t,a)=>{if(El(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(ua(o)){let i=+s;o=o[i]}else if(Io(o))o=o[s];else if(So(o)){let i=+s;o=Va(o,i)}else if(wo(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",f=Va(o,l);switch(u){case"key":o=f;break;case"value":o=o.get(f);break}}}let r=t[t.length-1];if(ua(o)?o[+r]=a(o[+r]):Io(o)&&(o[r]=a(o[r])),So(o)){let n=Va(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(wo(o)){let n=+t[t.length-2],s=Va(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};qc=(e,t)=>Io(e)||ua(e)||wo(e)||So(e)||Dl(e,t);Fl=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Pc(e);if(!i){zc(e,r,t);let c=s.get(e);if(c)return o?{transformedValue:null}:c}if(!qc(e,a)){let c=Ys(e,a),m=c?{transformedValue:c.value,annotations:[c.type]}:{transformedValue:e};return i||s.set(e,m),m}if(fr(n,e))return{transformedValue:null};let l=Ys(e,a),u=l?.value??e,f=ua(u)?[]:{},d={};Wa(u,(c,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=Fl(c,t,a,o,[...r,m],[...n,e],s);f[m]=g.transformedValue,ua(g.annotations)?d[m]=g.annotations:Io(g.annotations)&&Wa(g.annotations,(h,y)=>{d[Sl(m)+"."+y]=h})});let p=hn(d)?{transformedValue:f,annotations:l?[l.type]:void 0}:{transformedValue:f,annotations:l?[l.type,d]:d};return i||s.set(e,p),p};re=class{constructor({dedupe:e=!1}={}){this.classRegistry=new gc,this.symbolRegistry=new bl(t=>t.description??""),this.customTransformerRegistry=new yc,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=Fl(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=Uc(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=Cn(t);return a?.values&&(o=Oc(o,a.values,this)),a?.referentialEqualities&&(o=Bc(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)}};re.defaultInstance=new re;re.serialize=re.defaultInstance.serialize.bind(re.defaultInstance);re.deserialize=re.defaultInstance.deserialize.bind(re.defaultInstance);re.stringify=re.defaultInstance.stringify.bind(re.defaultInstance);re.parse=re.defaultInstance.parse.bind(re.defaultInstance);re.registerClass=re.defaultInstance.registerClass.bind(re.defaultInstance);re.registerSymbol=re.defaultInstance.registerSymbol.bind(re.defaultInstance);re.registerCustom=re.defaultInstance.registerCustom.bind(re.defaultInstance);re.allowErrorProps=re.defaultInstance.allowErrorProps.bind(re.defaultInstance);Sn=re.serialize;re.deserialize;Ol=re.stringify;re.parse;re.registerClass;re.registerCustom;re.registerSymbol;re.allowErrorProps;Mo=(e,t=!1)=>{let{json:a}=Sn(e);return JSON.stringify(a,null,t?2:void 0)},ur=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,_c=(e,t)=>e.queryHash.localeCompare(t.queryHash),Ul=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Vc=(e,t)=>ur(e)===ur(t)?Ul(e,t):ur(e)>ur(t)?1:-1,Ir={status:Vc,"query hash":_c,"last updated":Ul},dr=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Nl=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Gc=(e,t)=>dr(e)===dr(t)?Nl(e,t):dr(e)>dr(t)?1:-1,wr={status:Gc,"last updated":Nl},kn=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Sr=()=>{let[e,t]=B("dark");return _t(()=>{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),j(()=>a.removeEventListener("change",o))}),e},la=(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,la(o.get(r),n,a)),o}if(e instanceof Set){let o=la(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]=la(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]=la(o[r],n,a),o}return e},Ga=(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,Ga(a.get(o),r)),a}if(e instanceof Set){let a=Ga(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]=Ga(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]=Ga(a[o],r),a}return e},Pn=(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 Qc(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Zc(e,...t){return typeof e=="function"?e(...t):e}function Jc(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 ep(e){let[t,a]=B(),o=e?.throw?(p,c)=>{throw a(p instanceof Error?p:new Error(c)),p}:(p,c)=>{a(p instanceof Error?p:new Error(c))},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(p,c){let m=s.get(c);m||(m=B(void 0,{equals:!1}),s.set(c,m)),m[0]();let g=r.reduce((h,y)=>{if(h!==null||!y)return h;try{return y.getItem(`${n}${c}`)}catch(C){return o(C,`Error reading ${n}${c} from ${y.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,c,e.options):g}}),l=(p,c,m)=>{let g=e?.serializer?e.serializer(c,p,m??e.options):c,h=`${n}${p}`;r.forEach(C=>{try{C.getItem(h)!==g&&C.setItem(h,g)}catch(v){o(v,`Error setting ${n}${p} to ${g} in ${C.name}`)}});let y=s.get(p);y&&y[1]()},u=p=>r.forEach(c=>{try{c.removeItem(`${n}${p}`)}catch(m){o(m,`Error removing ${n}${p} from ${c.name}`)}}),f=()=>r.forEach(p=>{try{p.clear()}catch(c){o(c,`Error clearing ${p.name}`)}}),d=()=>{let p={},c=(m,g)=>{if(!p.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(p[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)c(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)p.hasOwnProperty(h)||c(h,m.getItem(h))}catch(y){o(y,`Error getting all values from ${m.name}`)}}}),p};return e?.sync!==!1&&_t(()=>{let p=c=>{let m=!1;r.forEach(g=>{try{g!==c.storageArea&&c.key&&c.newValue!==g.getItem(c.key)&&(c.newValue?g.setItem(c.key,c.newValue):g.removeItem(c.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${c.key}=${c.newValue})`)}}),m&&c.key&&s.get(c.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),j(()=>globalThis.removeEventListener("storage",p))):(r.forEach(c=>c.addEventListener?.("storage",p)),j(()=>r.forEach(c=>c.removeEventListener?.("storage",p))))}),[i,l,{clear:f,error:t,remove:u,toJSON:d}]}function W(){return Ae(Uo)}function Ue(){return Ae(No)}function dp(e){return e.replace(up,t=>Ui[t])}function Gl(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:Ye.MATCHES,!a.accessors){let s=Kl(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=mp(e,a.accessors),n={rankedValue:e,rank:Ye.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=Kl(i.itemValue,t,a),{minRanking:u,maxRanking:f,threshold:d=a.threshold}=i.attributes;l<u&&l>=Ye.MATCHES?l=u:l>f&&(l=f),l=Math.min(l,f),l>=d&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=d,n.rankedValue=i.itemValue)}return n}function Kl(e,t,a){return e=Wl(e,a),t=Wl(t,a),t.length>e.length?Ye.NO_MATCH:e===t?Ye.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Ye.EQUAL:e.startsWith(t)?Ye.STARTS_WITH:e.includes(` ${t}`)?Ye.WORD_STARTS_WITH:e.includes(t)?Ye.CONTAINS:t.length===1?Ye.NO_MATCH:fp(e).includes(t)?Ye.ACRONYM:cp(e,t))}function fp(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function cp(e,t){let a=0,o=0;function r(l,u,f){for(let d=f,p=u.length;d<p;d++)if(u[d]===l)return a+=1,d+1;return-1}function n(l){let u=1/l,f=a/t.length;return Ye.MATCHES+f*u}let s=r(t[0],e,0);if(s<0)return Ye.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let f=t[l];if(o=r(f,e,o),!(o>-1))return Ye.NO_MATCH}let i=o-s;return n(i)}function Wl(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=dp(e)),e}function pp(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 mp(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=gp(n),i=pp(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function gp(e){return typeof e=="function"?jl:{...jl,...e}}function ee(e){let t=this||{},a=e.call?e(t.p):e;return vp(a.unshift?a.raw?Lp(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,xp(t.target),t.g,t.o,t.k)}function Hi(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=Hi(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function z(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=Hi(e))&&(o&&(o+=" "),o+=t);return o}function bp(e,t){let a=he(e);if(Ve){let d=a.slice();return()=>d}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=B([],{equals:!1}),[l]=sl(),u=d=>{i(p=>(p.push.apply(p,d),p));for(let p of d)n.delete(p)},f=(d,p,c)=>d.splice(c,0,p);return w(d=>{let p=s(),c=e();if(c[ko],he(l))return l(),d;if(p.length){let m=d.filter(g=>!p.includes(g));return p.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return he(()=>{let m=new Set(c),g=c.slice(),h=[],y=[],C=[];for(let L of c)(r.has(L)?C:h).push(L);let v=!h.length;for(let L=0;L<d.length;L++){let b=d[L];m.has(b)||(n.has(b)||(y.push(b),n.add(b)),f(g,b,L)),v&&b!==g[L]&&(v=!1)}return!y.length&&v?d:(o({list:g,added:h,removed:y,unchanged:C,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function Xe(...e){return Qc(e)}function $n(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return $n(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=$n(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function Ip(e,t=Ql,a=Ql){let o=w(e),r=w(()=>$n(o(),Ve?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function wp(e){return w(()=>{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 _i(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Sp(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())}),_i(()=>{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 kp(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()),_i(()=>{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 Yl(e){for(let t of e)t.dispose()}function Pp(e,t,a,o={}){if(Ve){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 j(()=>Yl(r.values())),()=>{let s=e()||[];return s[ko],he(()=>{if(!s.length)return Yl(r.values()),r.clear(),o.fallback?[kt(d=>(r.set(Mn,{dispose:d}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(Mn);if(!r.size||l){l?.dispose(),r.delete(Mn);for(let f=0;f<s.length;f++){let d=s[f],p=t(d,f);n(i,d,f,p)}return i}let u=new Set(r.keys());for(let f=0;f<s.length;f++){let d=s[f],p=t(d,f);u.delete(p);let c=r.get(p);c?(i[f]=c.mapped,c.setIndex?.(f),c.setItem(()=>d)):n(i,d,f,p)}for(let f of u)r.get(f)?.dispose(),r.delete(f);return i})};function n(s,i,l,u){kt(f=>{let[d,p]=B(i),c={setItem:p,dispose:f};if(a.length>1){let[m,g]=B(l);c.setIndex=g,c.mapped=a(d,m)}else c.mapped=a(d);r.set(u,c),s[l]=c.mapped})}}function Dr(e){let{by:t}=e;return w(Pp(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Mp(e,t,a,o){return e.addEventListener(t,a,o),Yc(e.removeEventListener.bind(e,t,a,o))}function Dp(e,t,a,o){if(Ve)return;let r=()=>{En(D(e)).forEach(n=>{n&&En(D(t)).forEach(s=>Mp(n,s,a,o))})};typeof e=="function"?G(r):V(r)}function Ap(e,t){if(Ve)return{observe:Hl,unobserve:Hl};let a=new ResizeObserver(e);return j(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function Vi(e,t,a){if(Ve)return;let o=new WeakMap,{observe:r,unobserve:n}=Ap(s=>{for(let i of s){let{contentRect:l,target:u}=i,f=Math.round(l.width),d=Math.round(l.height),p=o.get(u);(!p||p.width!==f||p.height!==d)&&(t(l,u,i),o.set(u,{width:f,height:d}))}},a);G(s=>{let i=Xc(En(D(e)));return Jc(i,s,r,n),i},[])}function Jl(e){let t={},a;for(;a=Tp.exec(e);)t[a[1]]=a[2];return t}function zr(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Jl(e)}else typeof t=="string"&&(t=Jl(t));return{...e,...t}}function Rp(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function On(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function Ep(e){return typeof e=="number"}function Za(e){return Object.prototype.toString.call(e)==="[object String]"}function Fp(e){return typeof e=="function"}function Ho(e){return t=>`${e()}-${t}`}function ft(e,t){return e?e===t||e.contains(t):!1}function Eo(e,t=!1){let{activeElement:a}=Dt(e);if(!a?.nodeName)return null;if(Gi(a)&&a.contentDocument)return Eo(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Dt(a).getElementById(o);if(r)return r}}return a}function $p(e){return Dt(e).defaultView||window}function Dt(e){return e?e.ownerDocument||e:document}function Gi(e){return e.tagName==="IFRAME"}function Wn(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Ur(){return Wn(/^Mac/i)}function Op(){return Wn(/^iPhone/i)}function Bp(){return Wn(/^iPad/i)||Ur()&&navigator.maxTouchPoints>1}function qp(){return Op()||Bp()}function zp(){return Ur()||qp()}function Ie(e,t){return t&&(Fp(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function ze(e){return t=>{for(let a of e)Ie(t,a)}}function Up(e){return Ur()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Ke(e){if(e)if(Np())e.focus({preventScroll:!0});else{let t=Hp(e);e.focus(),_p(t)}}function Np(){if(kr==null){kr=!1;try{document.createElement("div").focus({get preventScroll(){return kr=!0,!0}})}catch{}}return kr}function Hp(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 _p(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function Wi(e,t){let o=Array.from(e.querySelectorAll(jn)).filter(ei);return t&&ei(e)&&o.unshift(e),o.forEach((r,n)=>{if(Gi(r)&&r.contentDocument){let s=r.contentDocument.body,i=Wi(s,!1);o.splice(n,1,...i)}}),o}function ei(e){return ji(e)&&!Kp(e)}function ji(e){return e.matches(jn)&&Xn(e)}function Kp(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Xn(e,t){return e.nodeName!=="#comment"&&Wp(e)&&jp(e,t)&&(!e.parentElement||Xn(e.parentElement,e))}function Wp(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 jp(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Xp(e,t,a){let o=t?.tabbable?Gp:jn,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Xn(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function ti(e){for(;e&&!Qp(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Qp(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Zp(){}function Yp(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,f]=t[i],[d,p]=t[l],[,c]=t[l===0?s-1:l-1]||[0,0],m=(f-p)*(a-u)-(u-d)*(o-f);if(p<f){if(o>=p&&o<f){if(m===0)return!0;m>0&&(o===p?o>c&&(r=!r):r=!r)}}else if(f<p){if(o>f&&o<=p){if(m===0)return!0;m<0&&(o===p?o<c&&(r=!r):r=!r)}}else if(o==f&&(a>=d&&a<=u||a>=u&&a<=d))return!0}return r}function se(e,t){return J(e,t)}function oi(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=Ao.get(a.target);o||(o=new Set,Ao.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=Ao.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),Ao.delete(a.target)),Ao.size===0)){for(let r of ai)r();ai.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function Bn(e,t){let a=ri(e,t,"left"),o=ri(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 ri(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 Jp(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=ti(e);for(;e&&r&&e!==a&&r!==a;)Bn(r,e),e=r,r=ti(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 Nr(e,t){let[a,o]=B(ni(t?.()));return G(()=>{o(e()?.tagName.toLowerCase()||ni(t?.()))}),a}function ni(e){return Za(e)?e:void 0}function we(e){let[t,a]=le(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return x(Ll,J(a,{get component(){return t.as}}))}function tm(e){let t=`form-control-${tt()}`,a=se({id:t},e),[o,r]=B(),[n,s]=B(),[i,l]=B(),[u,f]=B(),d=(g,h,y)=>{let C=y!=null||o()!=null;return[y,o(),C&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,c=w(()=>({"data-valid":D(a.validationState)==="valid"?"":void 0,"data-invalid":D(a.validationState)==="invalid"?"":void 0,"data-required":D(a.required)?"":void 0,"data-disabled":D(a.disabled)?"":void 0,"data-readonly":D(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>D(a.name)??D(a.id),dataset:c,validationState:()=>D(a.validationState),isRequired:()=>D(a.required),isDisabled:()=>D(a.disabled),isReadOnly:()=>D(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:d,getAriaDescribedBy:p,generateId:Ho(()=>D(a.id)),registerLabel:ct(r),registerField:ct(s),registerDescription:ct(l),registerErrorMessage:ct(f)}}}function _o(){let e=Ae(Qi);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Zi(e){let t=_o(),a=se({id:t.generateId("description")},e);return G(()=>j(t.registerDescription(a.id))),x(we,J({as:"div"},()=>t.dataset(),a))}function Yi(e){let t=_o(),a=se({id:t.generateId("error-message")},e),[o,r]=le(a,["forceMount"]),n=()=>t.validationState()==="invalid";return G(()=>{n()&&j(t.registerErrorMessage(r.id))}),x(K,{get when(){return o.forceMount||n()},get children(){return x(we,J({as:"div"},()=>t.dataset(),r))}})}function am(e){let t,a=_o(),o=se({id:a.generateId("label")},e),[r,n]=le(o,["ref"]),s=Nr(()=>t,()=>"label");return G(()=>j(a.registerLabel(n.id))),x(we,J({as:"label",ref(i){let l=Xe(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return w(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function om(e,t){G(Pt(e,a=>{if(a==null)return;let o=rm(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),j(()=>{o.removeEventListener("reset",t)}))}))}function rm(e){return nm(e)?e.form:e.closest("form")}function nm(e){return e.matches("textarea, input, select, button")}function Vo(e){let[t,a]=B(e.defaultValue?.()),o=w(()=>e.value?.()!==void 0),r=w(()=>o()?e.value?.():t());return[r,s=>{he(()=>{let i=Zc(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function Ji(e){let[t,a]=Vo(e);return[()=>t()??!1,a]}function sm(e){let[t,a]=Vo(e);return[()=>t()??[],a]}function lm(e={}){let[t,a]=Ji({value:()=>D(e.isSelected),defaultValue:()=>!!D(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!D(e.isReadOnly)&&!D(e.isDisabled)&&a(n)},toggle:()=>{!D(e.isReadOnly)&&!D(e.isDisabled)&&a(!t())}}}function tu(){return Ae(eu)}function um(){let e=tu();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function au(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function dm(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&&au(r,a))return o+1}return 0}function fm(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:au(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function ou(e,t){let a=fm(e);e!==a&&t(a)}function cm(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 Dt(o).body}function pm(e,t){G(()=>{let a=setTimeout(()=>{ou(e(),t)});j(()=>clearTimeout(a))})}function mm(e,t){if(typeof IntersectionObserver!="function"){pm(e,t);return}let a=[];G(()=>{let o=()=>{let s=!!a.length;a=e(),s&&ou(e(),t)},r=cm(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}j(()=>n.disconnect())})}function gm(e={}){let[t,a]=sm({value:()=>D(e.items),onChange:n=>e.onItemsChange?.(n)});mm(t,a);let o=n=>(a(s=>{let i=dm(s,n);return Rp(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>x(eu.Provider,{value:{registerItem:o},get children(){return n.children}})}}function hm(e){let t=um(),a=se({shouldRegisterItem:!0},e);G(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());j(o)})}function ru(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",f=Za(u)?l[u]:u(l);return f!=null?String(f):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",f=Za(u)?l[u]:u(l);return f!=null?String(f):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(Za(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return Za(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(Za(l)||Ep(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 f=ru({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...f),t+=f.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 xm(e,t=[]){return w(()=>{let a=ru({dataSource:D(e.dataSource),getKey:D(e.getKey),getTextValue:D(e.getTextValue),getDisabled:D(e.getDisabled),getSectionChildren:D(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function vm(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return ym.has(a)}let t=e.split("-")[0];return Cm.has(t)}function Lm(e){return vm(e)?"rtl":"ltr"}function nu(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Lm(e)}}function si(){qn=nu();for(let e of Fo)e(qn)}function bm(){let e={locale:"en-US",direction:"ltr"},[t,a]=B(qn),o=w(()=>Ve?e:t());return _t(()=>{Fo.size===0&&window.addEventListener("languagechange",si),Fo.add(a),j(()=>{Fo.delete(a),Fo.size===0&&window.removeEventListener("languagechange",si)})}),{locale:()=>o().locale,direction:()=>o().direction}}function ga(){let e=bm();return Ae(Im)||e}function wm(e){let{locale:t}=ga(),a=w(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return w(()=>{let o=a(),r;return Dn.has(o)&&(r=Dn.get(o)),r||(r=new Intl.Collator(t(),e),Dn.set(o,r)),r})}function Sm(e){let[t,a]=Vo(e);return[()=>t()??new Gt,a]}function lu(e){return zp()?e.altKey:e.ctrlKey}function Ya(e){return Ur()?e.metaKey:e.ctrlKey}function li(e){return new Gt(e)}function km(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function Pm(e){let t=se({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=B(!1),[r,n]=B(),s=w(()=>{let g=D(t.selectedKeys);return g!=null?li(g):g}),i=w(()=>{let g=D(t.defaultSelectedKeys);return g!=null?li(g):new Gt}),[l,u]=Sm({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[f,d]=B(D(t.selectionBehavior)),p=()=>D(t.selectionMode),c=()=>D(t.disallowEmptySelection)??!1,m=g=>{(D(t.allowDuplicateSelectionEvents)||!km(g,l()))&&u(g)};return G(()=>{let g=l();D(t.selectionBehavior)==="replace"&&f()==="toggle"&&typeof g=="object"&&g.size===0&&d("replace")}),G(()=>{d(D(t.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:c,selectionBehavior:f,setSelectionBehavior:d,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function Mm(e){let[t,a]=B(""),[o,r]=B(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(D(e.isDisabled))return;let i=D(e.keyboardDelegate),l=D(e.selectionManager);if(!i.getKeyForSearch)return;let u=Dm(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let f=a(p=>p+u),d=i.getKeyForSearch(f,l.focusedKey())??i.getKeyForSearch(f);d==null&&Am(f)&&(f=f[0],d=i.getKeyForSearch(f,l.focusedKey())??i.getKeyForSearch(f)),d!=null&&(l.setFocusedKey(d),e.onTypeSelect?.(d)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function Dm(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Am(e){return e.split("").every(t=>t===e[0])}function Tm(e,t,a){let r=J({selectOnFocus:()=>D(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=ga(),i={top:0,left:0};Dp(()=>D(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=Mm({isDisabled:()=>D(r.disallowTypeAhead),keyboardDelegate:()=>D(r.keyboardDelegate),selectionManager:()=>D(r.selectionManager)}),u=()=>D(r.orientation)??"vertical",f=h=>{Ie(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let y=t();if(!y?.contains(h.target))return;let C=D(r.selectionManager),v=D(r.selectOnFocus),L=$=>{$!=null&&(C.setFocusedKey($),h.shiftKey&&C.selectionMode()==="multiple"?C.extendSelection($):v&&!lu(h)&&C.replaceSelection($))},b=D(r.keyboardDelegate),R=D(r.shouldFocusWrap),A=C.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(b.getKeyBelow){h.preventDefault();let $;A!=null?$=b.getKeyBelow(A):$=b.getFirstKey?.(),$==null&&R&&($=b.getFirstKey?.(A)),L($)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(b.getKeyAbove){h.preventDefault();let $;A!=null?$=b.getKeyAbove(A):$=b.getLastKey?.(),$==null&&R&&($=b.getLastKey?.(A)),L($)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(b.getKeyLeftOf){h.preventDefault();let $=s()==="rtl",I;A!=null?I=b.getKeyLeftOf(A):I=$?b.getFirstKey?.():b.getLastKey?.(),L(I)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(b.getKeyRightOf){h.preventDefault();let $=s()==="rtl",I;A!=null?I=b.getKeyRightOf(A):I=$?b.getLastKey?.():b.getFirstKey?.(),L(I)}break}case"Home":if(b.getFirstKey){h.preventDefault();let $=b.getFirstKey(A,Ya(h));$!=null&&(C.setFocusedKey($),Ya(h)&&h.shiftKey&&C.selectionMode()==="multiple"?C.extendSelection($):v&&C.replaceSelection($))}break;case"End":if(b.getLastKey){h.preventDefault();let $=b.getLastKey(A,Ya(h));$!=null&&(C.setFocusedKey($),Ya(h)&&h.shiftKey&&C.selectionMode()==="multiple"?C.extendSelection($):v&&C.replaceSelection($))}break;case"PageDown":if(b.getKeyPageBelow&&A!=null){h.preventDefault();let $=b.getKeyPageBelow(A);L($)}break;case"PageUp":if(b.getKeyPageAbove&&A!=null){h.preventDefault();let $=b.getKeyPageAbove(A);L($)}break;case"a":Ya(h)&&C.selectionMode()==="multiple"&&D(r.disallowSelectAll)!==!0&&(h.preventDefault(),C.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),D(r.disallowEmptySelection)||C.clearSelection());break;case"Tab":if(!D(r.allowsTabNavigation)){if(h.shiftKey)y.focus();else{let $=Xp(y,{tabbable:!0}),I,P;do P=$.lastChild(),P&&(I=P);while(P);I&&!I.contains(document.activeElement)&&Ke(I)}break}}},d=h=>{let y=D(r.selectionManager),C=D(r.keyboardDelegate),v=D(r.selectOnFocus);if(y.isFocused()){h.currentTarget.contains(h.target)||y.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(y.setFocused(!0),y.focusedKey()==null){let L=R=>{R!=null&&(y.setFocusedKey(R),v&&y.replaceSelection(R))},b=h.relatedTarget;b&&h.currentTarget.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?L(y.lastSelectedKey()??C.getLastKey?.()):L(y.firstSelectedKey()??C.getFirstKey?.())}else if(!D(r.isVirtualized)){let L=n();if(L){L.scrollTop=i.top,L.scrollLeft=i.left;let b=L.querySelector(`[data-key="${y.focusedKey()}"]`);b&&(Ke(b),Bn(L,b))}}}},p=h=>{let y=D(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||y.setFocused(!1)},c=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=D(r.autoFocus);if(!h)return;let y=D(r.selectionManager),C=D(r.keyboardDelegate),v;h==="first"&&(v=C.getFirstKey?.()),h==="last"&&(v=C.getLastKey?.());let L=y.selectedKeys();L.size&&(v=L.values().next().value),y.setFocused(!0),y.setFocusedKey(v);let b=t();b&&v==null&&!D(r.shouldUseVirtualFocus)&&Ke(b)};return _t(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),G(Pt([n,()=>D(r.isVirtualized),()=>D(r.selectionManager).focusedKey()],h=>{let[y,C,v]=h;if(C)v&&r.scrollToKey?.(v);else if(v&&y){let L=y.querySelector(`[data-key="${v}"]`);L&&Bn(y,L)}})),{tabIndex:w(()=>{if(!D(r.shouldUseVirtualFocus))return D(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:f,onMouseDown:c,onFocusIn:d,onFocusOut:p}}function iu(e,t){let a=()=>D(e.selectionManager),o=()=>D(e.key),r=()=>D(e.shouldUseVirtualFocus),n=C=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):C?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||Ya(C)||"pointerType"in C&&C.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>D(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,f=C=>{l()&&(u=C.pointerType,C.pointerType==="mouse"&&C.button===0&&!D(e.shouldSelectOnPressUp)&&n(C))},d=C=>{l()&&C.pointerType==="mouse"&&C.button===0&&D(e.shouldSelectOnPressUp)&&D(e.allowsDifferentPressOrigin)&&n(C)},p=C=>{l()&&(D(e.shouldSelectOnPressUp)&&!D(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(C)},c=C=>{!l()||!["Enter"," "].includes(C.key)||(lu(C)?a().toggleSelection(o()):n(C))},m=C=>{i()&&C.preventDefault()},g=C=>{let v=t();r()||i()||!v||C.target===v&&a().setFocusedKey(o())},h=w(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),y=w(()=>D(e.virtualized)?void 0:o());return G(Pt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([C,v,L,b,R])=>{C&&v===b&&R&&!L&&document.activeElement!==C&&(e.focus?e.focus():Ke(C))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:y,onPointerDown:f,onPointerUp:d,onClick:p,onKeyDown:c,onMouseDown:m,onFocus:g}}function Em(e){let t=Pm(e),o=xm({dataSource:()=>D(e.dataSource),getKey:()=>D(e.getKey),getTextValue:()=>D(e.getTextValue),getDisabled:()=>D(e.getDisabled),getSectionChildren:()=>D(e.getSectionChildren),factory:n=>e.filter?new ii(e.filter(n)):new ii(n)},[()=>e.filter]),r=new Rm(o,t);return mr(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Oo(e){return Wt.findIndex(t=>t.node===e)}function Om(e){return Wt[Oo(e)]}function Bm(e){return Wt[Wt.length-1].node===e}function fu(){return Wt.filter(e=>e.isPointerBlocking)}function qm(){return[...fu()].slice(-1)[0]}function Qn(){return fu().length>0}function cu(e){let t=Oo(qm()?.node);return Oo(e)<t}function zm(e){Wt.push(e)}function Um(e){let t=Oo(e);t<0||Wt.splice(t,1)}function Nm(){for(let{node:e}of Wt)e.style.pointerEvents=cu(e)?"none":"auto"}function Hm(e){if(Qn()&&!zn){let t=Dt(e);du=document.body.style.pointerEvents,t.body.style.pointerEvents="none",zn=!0}}function _m(e){if(Qn())return;let t=Dt(e);t.body.style.pointerEvents=du,t.body.style.length===0&&t.body.removeAttribute("style"),zn=!1}function Km(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Gm.indexOf(e.type)!==-1:!1}function Zn(e){let t,a=se({type:"button"},e),[o,r]=le(a,["ref","type","disabled"]),n=Nr(()=>t,()=>"button"),s=w(()=>{let u=n();return u==null?!1:Km({tagName:u,type:o.type})}),i=w(()=>n()==="input"),l=w(()=>n()==="a"&&t?.getAttribute("href")!=null);return x(we,J({as:"button",ref(u){let f=Xe(d=>t=d,o.ref);typeof f=="function"&&f(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 Un(e,t,a){return rt(e,Mt(t,a))}function $a(e,t){return typeof e=="function"?e(t):e}function pa(e){return e.split("-")[0]}function to(e){return e.split("-")[1]}function pu(e){return e==="x"?"y":"x"}function Yn(e){return e==="y"?"height":"width"}function Ea(e){return["top","bottom"].includes(pa(e))?"y":"x"}function Jn(e){return pu(Ea(e))}function Zm(e,t,a){a===void 0&&(a=!1);let o=to(e),r=Jn(e),n=Yn(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Rr(s)),[s,Rr(s)]}function Ym(e){let t=Rr(e);return[Nn(e),t,Nn(t)]}function Nn(e){return e.replace(/start|end/g,t=>Qm[t])}function Jm(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 eg(e,t,a,o){let r=to(e),n=Jm(pa(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Nn)))),n}function Rr(e){return e.replace(/left|right|bottom|top/g,t=>Xm[t])}function tg(e){return{top:0,right:0,bottom:0,left:0,...e}}function mu(e){return typeof e!="number"?tg(e):{top:e,right:e,bottom:e,left:e}}function Er(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 ui(e,t,a){let{reference:o,floating:r}=e,n=Ea(t),s=Jn(t),i=Yn(s),l=pa(t),u=n==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2,c;switch(l){case"top":c={x:f,y:o.y-r.height};break;case"bottom":c={x:f,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:d};break;case"left":c={x:o.x-r.width,y:d};break;default:c={x:o.x,y:o.y}}switch(to(t)){case"start":c[s]-=p*(a&&u?-1:1);break;case"end":c[s]+=p*(a&&u?-1:1);break}return c}async function Bo(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:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:c=0}=$a(t,e),m=mu(c),h=i[p?d==="floating"?"reference":"floating":d],y=Er(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:f,strategy:l})),C=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,v=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),L=await(n.isElement==null?void 0:n.isElement(v))?await(n.getScale==null?void 0:n.getScale(v))||{x:1,y:1}:{x:1,y:1},b=Er(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:v,strategy:l}):C);return{top:(y.top-b.top+m.top)/L.y,bottom:(b.bottom-y.bottom+m.bottom)/L.y,left:(y.left-b.left+m.left)/L.x,right:(b.right-y.right+m.right)/L.x}}function di(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fi(e){return jm.some(t=>e[t]>=0)}async function sg(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=pa(a),i=to(a),l=Ea(a)==="y",u=["left","top"].includes(s)?-1:1,f=n&&l?-1:1,d=$a(t,e),{mainAxis:p,crossAxis:c,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(c=i==="end"?m*-1:m),l?{x:c*f,y:p*u}:{x:p*u,y:c*f}}function ao(e){return gu(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jt(e){var t;return(t=(gu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gu(e){return e instanceof Node||e instanceof nt(e).Node}function Ct(e){return e instanceof Element||e instanceof nt(e).Element}function At(e){return e instanceof HTMLElement||e instanceof nt(e).HTMLElement}function ci(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot}function Go(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function dg(e){return["table","td","th"].includes(ao(e))}function _r(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function es(e){let t=ts(),a=Ct(e)?vt(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 fg(e){let t=ma(e);for(;At(t)&&!eo(t);){if(es(t))return t;if(_r(t))return null;t=ma(t)}return null}function ts(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eo(e){return["html","body","#document"].includes(ao(e))}function vt(e){return nt(e).getComputedStyle(e)}function Vr(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ma(e){if(ao(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ci(e)&&e.host||jt(e);return ci(t)?t.host:t}function hu(e){let t=ma(e);return eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:At(t)&&Go(t)?t:hu(t)}function qo(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=hu(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=nt(r);return n?t.concat(s,s.visualViewport||[],Go(r)?r:[],s.frameElement&&a?qo(s.frameElement):[]):t.concat(r,qo(r,[],a))}function xu(e){let t=vt(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=At(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Tr(a)!==n||Tr(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function as(e){return Ct(e)?e:e.contextElement}function Ja(e){let t=as(e);if(!At(t))return ca(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=xu(t),s=(n?Tr(a.width):a.width)/o,i=(n?Tr(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function yu(e){let t=nt(e);return!ts()||!t.visualViewport?cg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pg(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==nt(e)?!1:t}function Fa(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=as(e),s=ca(1);t&&(o?Ct(o)&&(s=Ja(o)):s=Ja(e));let i=pg(n,a,o)?yu(n):ca(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(n){let p=nt(n),c=o&&Ct(o)?nt(o):o,m=p,g=m.frameElement;for(;g&&o&&c!==m;){let h=Ja(g),y=g.getBoundingClientRect(),C=vt(g),v=y.left+(g.clientLeft+parseFloat(C.paddingLeft))*h.x,L=y.top+(g.clientTop+parseFloat(C.paddingTop))*h.y;l*=h.x,u*=h.y,f*=h.x,d*=h.y,l+=v,u+=L,m=nt(g),g=m.frameElement}}return Er({width:f,height:d,x:l,y:u})}function mg(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=jt(o),i=t?_r(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=ca(1),f=ca(0),d=At(o);if((d||!d&&!n)&&((ao(o)!=="body"||Go(s))&&(l=Vr(o)),At(o))){let p=Fa(o);u=Ja(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+f.x,y:a.y*u.y-l.scrollTop*u.y+f.y}}function gg(e){return Array.from(e.getClientRects())}function Cu(e){return Fa(jt(e)).left+Vr(e).scrollLeft}function hg(e){let t=jt(e),a=Vr(e),o=e.ownerDocument.body,r=rt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=rt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+Cu(e),i=-a.scrollTop;return vt(o).direction==="rtl"&&(s+=rt(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function xg(e,t){let a=nt(e),o=jt(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=ts();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function yg(e,t){let a=Fa(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=At(e)?Ja(e):ca(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 pi(e,t,a){let o;if(t==="viewport")o=xg(e,a);else if(t==="document")o=hg(jt(e));else if(Ct(t))o=yg(t,a);else{let r=yu(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Er(o)}function vu(e,t){let a=ma(e);return a===t||!Ct(a)||eo(a)?!1:vt(a).position==="fixed"||vu(a,t)}function Cg(e,t){let a=t.get(e);if(a)return a;let o=qo(e,[],!1).filter(i=>Ct(i)&&ao(i)!=="body"),r=null,n=vt(e).position==="fixed",s=n?ma(e):e;for(;Ct(s)&&!eo(s);){let i=vt(s),l=es(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Go(s)&&!l&&vu(e,s))?o=o.filter(f=>f!==s):r=i,s=ma(s)}return t.set(e,o),o}function vg(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?_r(t)?[]:Cg(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,f)=>{let d=pi(t,f,r);return u.top=rt(d.top,u.top),u.right=Mt(d.right,u.right),u.bottom=Mt(d.bottom,u.bottom),u.left=rt(d.left,u.left),u},pi(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Lg(e){let{width:t,height:a}=xu(e);return{width:t,height:a}}function bg(e,t,a){let o=At(t),r=jt(t),n=a==="fixed",s=Fa(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=ca(0);if(o||!o&&!n)if((ao(t)!=="body"||Go(r))&&(i=Vr(t)),o){let d=Fa(t,!0,n,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&(l.x=Cu(r));let u=s.left+i.scrollLeft-l.x,f=s.top+i.scrollTop-l.y;return{x:u,y:f,width:s.width,height:s.height}}function An(e){return vt(e).position==="static"}function mi(e,t){return!At(e)||vt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Lu(e,t){let a=nt(e);if(_r(e))return a;if(!At(e)){let r=ma(e);for(;r&&!eo(r);){if(Ct(r)&&!An(r))return r;r=ma(r)}return a}let o=mi(e,t);for(;o&&dg(o)&&An(o);)o=mi(o,t);return o&&eo(o)&&An(o)&&!es(o)?a:o||fg(e)||a}function wg(e){return vt(e).direction==="rtl"}function Sg(e,t){let a=null,o,r=jt(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:f,width:d,height:p}=e.getBoundingClientRect();if(i||t(),!d||!p)return;let c=Pr(f),m=Pr(r.clientWidth-(u+d)),g=Pr(r.clientHeight-(f+p)),h=Pr(u),C={rootMargin:-c+"px "+-m+"px "+-g+"px "+-h+"px",threshold:rt(0,Mt(1,l))||1},v=!0;function L(b){let R=b[0].intersectionRatio;if(R!==l){if(!v)return s();R?s(!1,R):o=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{a=new IntersectionObserver(L,{...C,root:r.ownerDocument})}catch{a=new IntersectionObserver(L,C)}a.observe(e)}return s(!0),n}function kg(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=as(e),f=r||n?[...u?qo(u):[],...qo(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",a,{passive:!0}),n&&y.addEventListener("resize",a)});let d=u&&i?Sg(u,a):null,p=-1,c=null;s&&(c=new ResizeObserver(y=>{let[C]=y;C&&C.target===u&&c&&(c.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=c)==null||v.observe(t)})),a()}),u&&!l&&c.observe(u),c.observe(t));let m,g=l?Fa(e):null;l&&h();function h(){let y=Fa(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&a(),g=y,m=requestAnimationFrame(h)}return a(),()=>{var y;f.forEach(C=>{r&&C.removeEventListener("scroll",a),n&&C.removeEventListener("resize",a)}),d?.(),(y=c)==null||y.disconnect(),c=null,l&&cancelAnimationFrame(m)}}function rs(){let e=Ae(os);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function ns(e){let t=rs(),a=se({size:Hn},e),[o,r]=le(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=Og(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",f=()=>Number.parseInt(u())*2*(Hn/o.size),d=()=>`rotate(${$g[n()]} ${gi} ${gi}) translate(0 2)`;return x(we,J({as:"div",ref(p){let c=Xe(t.setArrowRef,o.ref);typeof c=="function"&&c(p)},"aria-hidden":"true",get style(){return zr({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":f()},o.style)}},r,{get children(){let p=Fg(),c=p.firstChild;return V(()=>T(c,"transform",d())),p}}))}function Og(e){let[t,a]=B();return G(()=>{let o=e();o&&a($p(o).getComputedStyle(o))}),t}function Bg(e){let t=rs(),[a,o]=le(e,["ref","style"]);return x(we,J({as:"div",ref(r){let n=Xe(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return zr({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function hi(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 qg(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?hi(o):e?e.getBoundingClientRect():hi()}}}function zg(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Ng(e,t){let[a,o]=e.split("-"),r=Ug[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 Hg(e){let t=se({getAnchorRect:p=>p?.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]=B(),[r,n]=B(),[s,i]=B(t.placement),l=()=>qg(t.anchorRef?.(),t.getAnchorRect),{direction:u}=ga();async function f(){let p=l(),c=a(),m=r();if(!p||!c)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;c.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let y=[Pg(({placement:R})=>{let A=!!R.split("-")[1];return{mainAxis:h,crossAxis:A?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let R=typeof t.flip=="string"?t.flip.split(" "):void 0;if(R!==void 0&&!R.every(zg))throw new Error("`flip` expects a spaced-delimited list of placements");y.push(Dg({padding:t.overflowPadding,fallbackPlacements:R}))}(t.slide||t.overlap)&&y.push(Mg({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),y.push(Ag({padding:t.overflowPadding,apply({availableWidth:R,availableHeight:A,rects:$}){let I=Math.round($.reference.width);R=Math.floor(R),A=Math.floor(A),c.style.setProperty("--kb-popper-anchor-width",`${I}px`),c.style.setProperty("--kb-popper-content-available-width",`${R}px`),c.style.setProperty("--kb-popper-content-available-height",`${A}px`),t.sameWidth&&(c.style.width=`${I}px`),t.fitViewport&&(c.style.maxWidth=`${R}px`,c.style.maxHeight=`${A}px`)}})),t.hideWhenDetached&&y.push(Tg({padding:t.detachedPadding})),m&&y.push(Rg({element:m,padding:t.arrowPadding}));let C=await Eg(p,c,{placement:t.placement,strategy:"absolute",middleware:y,platform:{...bu,isRTL:()=>u()==="rtl"}});if(i(C.placement),t.onCurrentPlacementChange?.(C.placement),!c)return;c.style.setProperty("--kb-popper-content-transform-origin",Ng(C.placement,u()));let v=Math.round(C.x),L=Math.round(C.y),b;if(t.hideWhenDetached&&(b=C.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(c.style,{top:"0",left:"0",transform:`translate3d(${v}px, ${L}px, 0)`,visibility:b}),m&&C.middlewareData.arrow){let{x:R,y:A}=C.middlewareData.arrow,$=C.placement.split("-")[0];Object.assign(m.style,{left:R!=null?`${R}px`:"",top:A!=null?`${A}px`:"",[$]:"100%"})}}G(()=>{let p=l(),c=a();if(!p||!c)return;let m=kg(p,c,f,{elementResize:typeof ResizeObserver=="function"});j(m)}),G(()=>{let p=a(),c=t.contentRef?.();!p||!c||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(c).zIndex})});let d={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return x(os.Provider,{value:d,get children(){return t.children}})}function _g(e){let t=a=>{a.key===Kn.Escape&&e.onEscapeKeyDown?.(a)};G(()=>{if(Ve||D(e.isDisabled))return;let a=e.ownerDocument?.()??Dt();a.addEventListener("keydown",t),j(()=>{a.removeEventListener("keydown",t)})})}function Vg(e,t){let a,o=Zp,r=()=>Dt(t()),n=d=>e.onPointerDownOutside?.(d),s=d=>e.onFocusOutside?.(d),i=d=>e.onInteractOutside?.(d),l=d=>{let p=d.target;return!(p instanceof HTMLElement)||p.closest(`[${Ar}]`)||!ft(r(),p)||ft(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=d=>{function p(){let c=t(),m=d.target;if(!c||!m||!l(d))return;let g=ze([n,i]);m.addEventListener(xi,g,{once:!0});let h=new CustomEvent(xi,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:d.button===2||Up(d)&&d.button===0}});m.dispatchEvent(h)}d.pointerType==="touch"?(r().removeEventListener("click",p),o=p,r().addEventListener("click",p,{once:!0})):p()},f=d=>{let p=t(),c=d.target;if(!p||!c||!l(d))return;let m=ze([s,i]);c.addEventListener(yi,m,{once:!0});let g=new CustomEvent(yi,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:!1}});c.dispatchEvent(g)};G(()=>{Ve||D(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",f,!0),j(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",f,!0)}))})}function Gg(){return Ae(wu)}function Kg(e){let t,a=Gg(),[o,r]=le(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=d=>{n.add(d);let p=a?.registerNestedLayer(d);return()=>{n.delete(d),p?.()}};Vg({shouldExcludeElement:d=>t?o.excludedElements?.some(p=>ft(p(),d))||[...n].some(p=>ft(p,d)):!1,onPointerDownOutside:d=>{!t||at.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!at.isTopMostLayer(t)||(o.onPointerDownOutside?.(d),o.onInteractOutside?.(d),d.defaultPrevented||o.onDismiss?.())},onFocusOutside:d=>{o.onFocusOutside?.(d),o.onInteractOutside?.(d),d.defaultPrevented||o.onDismiss?.()}},()=>t),_g({ownerDocument:()=>Dt(t),onEscapeKeyDown:d=>{!t||!at.isTopMostLayer(t)||(o.onEscapeKeyDown?.(d),!d.defaultPrevented&&o.onDismiss&&(d.preventDefault(),o.onDismiss()))}}),_t(()=>{if(!t)return;at.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let d=a?.registerNestedLayer(t);at.assignPointerEventToLayers(),at.disableBodyPointerEvents(t),j(()=>{t&&(at.removeLayer(t),d?.(),at.assignPointerEventToLayers(),at.restoreBodyPointerEvents(t))})}),G(Pt([()=>t,()=>o.disableOutsidePointerEvents],([d,p])=>{if(!d)return;let c=at.find(d);c&&c.isPointerBlocking!==p&&(c.isPointerBlocking=p,at.assignPointerEventToLayers()),p&&at.disableBodyPointerEvents(d),j(()=>{at.restoreBodyPointerEvents(d)})},{defer:!0}));let f={registerNestedLayer:s};return x(wu.Provider,{value:f,get children(){return x(we,J({as:"div",ref(d){let p=Xe(c=>t=c,o.ref);typeof p=="function"&&p(d)}},r))}})}function Su(e={}){let[t,a]=Ji({value:()=>D(e.open),defaultValue:()=>!!D(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 Pu(){let e=Ae(ku);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Ko(){let e=Ae(Mu);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Du(e){let t=_o(),a=Pu(),o=`${t.generateId("item")}-${tt()}`,r=se({id:o},e),[n,s]=le(r,["value","disabled","onPointerDown"]),[i,l]=B(),[u,f]=B(),[d,p]=B(),[c,m]=B(),[g,h]=B(!1),y=w(()=>a.isSelectedValue(n.value)),C=w(()=>n.disabled||t.isDisabled()||!1),v=R=>{Ie(R,n.onPointerDown),g()&&R.preventDefault()},L=w(()=>({...t.dataset(),"data-disabled":C()?"":void 0,"data-checked":y()?"":void 0})),b={value:()=>n.value,dataset:L,isSelected:y,isDisabled:C,inputId:i,labelId:u,descriptionId:d,inputRef:c,select:()=>a.setSelectedValue(n.value),generateId:Ho(()=>s.id),registerInput:ct(l),registerLabel:ct(f),registerDescription:ct(p),setIsFocused:h,setInputRef:m};return x(Mu.Provider,{value:b,get children(){return x(we,J({as:"div",role:"group",onPointerDown:v},L,s))}})}function Au(e){let t=Ko(),a=se({id:t.generateId("control")},e),[o,r]=le(a,["onClick","onKeyDown"]);return x(we,J({as:"div",onClick:i=>{Ie(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Ie(i,o.onKeyDown),i.key===Kn.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function Tu(e){let t=Ko(),a=se({id:t.generateId("description")},e);return G(()=>j(t.registerDescription(a.id))),x(we,J({as:"div"},()=>t.dataset(),a))}function Ru(e){let t=Ko(),a=se({id:t.generateId("indicator")},e),[o,r]=le(a,["ref","forceMount"]),[n,s]=B(),{present:i}=uu({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return x(K,{get when(){return i()},get children(){return x(we,J({as:"div",ref(l){let u=Xe(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function Eu(e){let t=_o(),a=Pu(),o=Ko(),r=se({id:o.generateId("input")},e),[n,s]=le(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,f]=B(!1),d=m=>{if(Ie(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}f(!1)},p=m=>{Ie(m,n.onFocus),o.setIsFocused(!0)},c=m=>{Ie(m,n.onBlur),o.setIsFocused(!1)};return G(Pt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;f(!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})),G(()=>j(o.registerInput(s.id))),x(we,J({as:"input",ref(m){let g=Xe(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 zr({...Xi},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:d,onFocus:p,onBlur:c},()=>o.dataset(),s))}function Fu(e){let t=Ko(),a=se({id:t.generateId("label")},e);return G(()=>j(t.registerLabel(a.id))),x(we,J({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function $u(e){return x(am,J({as:"span"},e))}function Ou(e){let t,a=`radiogroup-${tt()}`,o=se({id:a,orientation:"vertical"},e),[r,n,s]=le(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],em),[i,l]=Vo({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=tm(n);om(()=>t,()=>l(r.defaultValue??""));let f=()=>u.getAriaLabelledBy(D(n.id),s["aria-label"],r["aria-labelledby"]),d=()=>u.getAriaDescribedBy(r["aria-describedby"]),p=m=>m===i(),c={ariaDescribedBy:d,isSelectedValue:p,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=p(h.value)}}};return x(Qi.Provider,{value:u,get children(){return x(ku.Provider,{value:c,get children(){return x(we,J({as:"div",ref(m){let g=Xe(h=>t=h,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return D(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 f()},get"aria-describedby"(){return d()}},()=>u.dataset(),s))}})}})}function Xg(e,t,a){let o=wm({usage:"search",sensitivity:"base"}),r=w(()=>{let n=D(e.keyboardDelegate);return n||new jg(e.collection,t,o)});return Tm({selectionManager:()=>D(e.selectionManager),keyboardDelegate:r,autoFocus:()=>D(e.autoFocus),deferAutoFocus:()=>D(e.deferAutoFocus),shouldFocusWrap:()=>D(e.shouldFocusWrap),disallowEmptySelection:()=>D(e.disallowEmptySelection),selectOnFocus:()=>D(e.selectOnFocus),disallowTypeAhead:()=>D(e.disallowTypeAhead),shouldUseVirtualFocus:()=>D(e.shouldUseVirtualFocus),allowsTabNavigation:()=>D(e.allowsTabNavigation),isVirtualized:()=>D(e.isVirtualized),scrollToKey:n=>D(e.scrollToKey)?.(n),orientation:()=>D(e.orientation)},t)}function Qg(e,t){let[a,o]=B(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>Dt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,Xi),m},f=()=>{let m=t();return m?Wi(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},d=()=>{let m=f();return m.length>0?m[0]:null},p=()=>{let m=f();return m.length>0?m[m.length-1]:null},c=()=>{let m=t();if(!m)return!1;let g=Eo(m);return!g||ft(m,g)?!1:ji(g)};G(()=>{if(Ve)return;let m=t();if(!m)return;vi.add(r);let g=Eo(m);if(!ft(m,g)){let y=new CustomEvent(Tn,Ci);m.addEventListener(Tn,s),m.dispatchEvent(y),y.defaultPrevented||setTimeout(()=>{Ke(d()),Eo(m)===g&&Ke(m)},0)}j(()=>{m.removeEventListener(Tn,s),setTimeout(()=>{let y=new CustomEvent(Rn,Ci);c()&&y.preventDefault(),m.addEventListener(Rn,i),m.dispatchEvent(y),y.defaultPrevented||Ke(g??l().body),m.removeEventListener(Rn,i),vi.remove(r)},0)})}),G(()=>{if(Ve)return;let m=t();if(!m||!D(e.trapFocus)||a())return;let g=y=>{let C=y.target;C?.closest(`[${Ar}]`)||(ft(m,C)?n=C:Ke(n))},h=y=>{let v=y.relatedTarget??Eo(m);v?.closest(`[${Ar}]`)||ft(m,v)||Ke(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),j(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),G(()=>{if(Ve)return;let m=t();if(!m||!D(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function y(v){let L=d(),b=p();v.relatedTarget===L?Ke(b):Ke(L)}g.addEventListener("focusin",y),h.addEventListener("focusin",y);let C=new MutationObserver(v=>{for(let L of v)L.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),L.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});C.observe(m,{childList:!0,subtree:!1}),j(()=>{g.removeEventListener("focusin",y),h.removeEventListener("focusin",y),g.remove(),h.remove(),C.disconnect()})})}function Yg(e){G(()=>{D(e.isDisabled)||j(Jg(D(e.targets),D(e.root)))})}function Jg(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let p of l.querySelectorAll(`[${Zg}], [${Ar}]`))a.add(p);let u=p=>{if(a.has(p)||p.parentElement&&o.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let c of a)if(p.contains(c))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&n(l),d!==NodeFilter.FILTER_REJECT){let p=f.nextNode();for(;p!=null;)n(p),p=f.nextNode()}},n=l=>{let u=To.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),To.set(l,u+1))};ut.length&&ut[ut.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(f=>f.contains(u.target))){for(let f of u.removedNodes)f instanceof Element&&(a.delete(f),o.delete(f));for(let f of u.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?a.add(f):f instanceof Element&&r(f)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return ut.push(i),()=>{s.disconnect();for(let l of o){let u=To.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),To.delete(l)):To.set(l,u-1)}i===ut[ut.length-1]?(ut.pop(),ut.length&&ut[ut.length-1].observe()):ut.splice(ut.indexOf(i),1)}}function qu(){return Ae(Bu)}function Xt(){let e=qu();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function ss(){let e=Ae(zu);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Tt(){let e=Ae(Uu);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function ls(e){let t,a=Tt(),o=Xt(),r=se({id:a.generateId(`item-${tt()}`)},e),[n,s]=le(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=B(),[u,f]=B(),[d,p]=B(),c=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>c().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};hm({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??d()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let y=iu({key:m,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),C=I=>{Ie(I,n.onPointerMove),I.pointerType==="mouse"&&(n.disabled?o.onItemLeave(I):(o.onItemEnter(I),I.defaultPrevented||(Ke(I.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},v=I=>{Ie(I,n.onPointerLeave),I.pointerType==="mouse"&&o.onItemLeave(I)},L=I=>{Ie(I,n.onPointerUp),!n.disabled&&I.button===0&&h()},b=I=>{if(Ie(I,n.onKeyDown),!I.repeat&&!n.disabled)switch(I.key){case"Enter":case" ":h();break}},R=w(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),A=w(()=>({"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})),$={isChecked:()=>n.checked,dataset:A,setLabelRef:p,generateId:Ho(()=>s.id),registerLabel:ct(l),registerDescription:ct(f)};return x(zu.Provider,{value:$,get children(){return x(we,J({as:"div",ref(I){let P=Xe(_=>t=_,n.ref);typeof P=="function"&&P(I)},get tabIndex(){return y.tabIndex()},get"aria-checked"(){return R()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return y.dataKey()},get onPointerDown(){return ze([n.onPointerDown,y.onPointerDown])},get onPointerUp(){return ze([L,y.onPointerUp])},get onClick(){return ze([n.onClick,y.onClick])},get onKeyDown(){return ze([b,y.onKeyDown])},get onMouseDown(){return ze([n.onMouseDown,y.onMouseDown])},get onFocus(){return ze([n.onFocus,y.onFocus])},onPointerMove:C,onPointerLeave:v},A,s))}})}function Nu(e){let t=se({closeOnSelect:!1},e),[a,o]=le(t,["checked","defaultChecked","onChange","onSelect"]),r=lm({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return x(ls,J({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function Gr(){return Ae(uh)}function Hu(e){let t=Tt(),a=Xt(),o=Gr(),{direction:r}=ga(),n=se({id:t.generateId("trigger")},e),[s,i]=le(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=Nr(()=>a.triggerRef(),()=>"button"),f=w(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);G(Pt(()=>o?.value(),y=>{f()&&y===l()&&a.triggerRef()?.focus()}));let d=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},p=y=>{Ie(y,s.onPointerDown),y.currentTarget.dataset.pointerType=y.pointerType,!s.disabled&&y.pointerType!=="touch"&&y.button===0&&d()},c=y=>{Ie(y,s.onClick),s.disabled||y.currentTarget.dataset.pointerType==="touch"&&d()},m=y=>{if(Ie(y,s.onKeyDown),!s.disabled){if(f())switch(y.key){case"Enter":case" ":return}switch(y.key){case"Enter":case" ":case ki.first(t.orientation()):y.stopPropagation(),y.preventDefault(),Jp(y.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case ki.last(t.orientation()):y.stopPropagation(),y.preventDefault(),a.open("last");break;case zo.next(r(),t.orientation()):if(o===void 0)break;y.stopPropagation(),y.preventDefault(),o.nextMenu();break;case zo.previous(r(),t.orientation()):if(o===void 0)break;y.stopPropagation(),y.preventDefault(),o.previousMenu();break}}},g=y=>{Ie(y,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=y=>{Ie(y,s.onFocus),o!==void 0&&y.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return G(()=>j(a.registerTriggerId(s.id))),x(Zn,J({ref(y){let C=Xe(a.setTriggerRef,s.ref);typeof C=="function"&&C(y)},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 w(()=>!!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:p,onMouseOver:g,onClick:c,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function _u(){return Ae(dh)}function Vu(e){let t,a=Tt(),o=Xt(),r=Gr(),n=_u(),{direction:s}=ga(),i=se({id:a.generateId(`content-${tt()}`)},e),[l,u]=le(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),f=0,d=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),p=Xg({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);Qg({trapFocus:()=>d()&&o.isOpen(),onMountAutoFocus:v=>{r===void 0&&l.onOpenAutoFocus?.(v)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let c=v=>{if(ft(v.currentTarget,v.target)&&(v.key==="Tab"&&o.isOpen()&&v.preventDefault(),r!==void 0&&v.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(v.key){case zo.next(s(),a.orientation()):v.stopPropagation(),v.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case zo.previous(s(),a.orientation()):if(v.currentTarget.hasAttribute("data-closed"))break;v.stopPropagation(),v.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=v=>{l.onEscapeKeyDown?.(v),r?.setAutoFocusMenu(!1),o.close(!0)},g=v=>{l.onFocusOutside?.(v),a.isModal()&&v.preventDefault()},h=v=>{Ie(v,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},y=v=>{if(Ie(v,l.onPointerMove),v.pointerType!=="mouse")return;let L=v.target,b=f!==v.clientX;ft(v.currentTarget,L)&&b&&(o.setPointerDir(v.clientX>f?"right":"left"),f=v.clientX)};G(()=>j(o.registerContentId(l.id)));let C={ref:Xe(v=>{o.setContentRef(v),t=v},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:ze([l.onKeyDown,p.onKeyDown,c]),onMouseDown:ze([l.onMouseDown,p.onMouseDown]),onFocusIn:ze([l.onFocusIn,p.onFocusIn]),onFocusOut:ze([l.onFocusOut,p.onFocusOut]),onPointerEnter:h,onPointerMove:y,get"data-orientation"(){return a.orientation()}};return x(K,{get when(){return o.contentPresent()},get children(){return x(K,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return x(we,J({as:"div"},()=>o.dataset(),C,u))},get children(){return x(Iu.Positioner,{get children(){return x(Kg,J({get disableOutsidePointerEvents(){return w(()=>!!d())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return zr({"--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(),C,u))}})}})}})}function fh(e){let t,a=Tt(),o=Xt(),[r,n]=le(e,["ref"]);return ih({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),x(Vu,J({ref(s){let i=Xe(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function ch(){let e=Ae(Gu);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function is(e){let t=Tt(),a=se({id:t.generateId(`group-${tt()}`)},e),[o,r]=B(),n={generateId:Ho(()=>a.id),registerLabelId:ct(r)};return x(Gu.Provider,{value:n,get children(){return x(we,J({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function Ku(e){let t=ch(),a=se({id:t.generateId("label")},e),[o,r]=le(a,["id"]);return G(()=>j(t.registerLabelId(o.id))),x(we,J({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function Wu(e){let t=Xt(),a=se({children:"\u25BC"},e);return x(we,J({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function ju(e){return x(ls,J({role:"menuitem",closeOnSelect:!0},e))}function Xu(e){let t=ss(),a=se({id:t.generateId("description")},e),[o,r]=le(a,["id"]);return G(()=>j(t.registerDescription(o.id))),x(we,J({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Qu(e){let t=ss(),a=se({id:t.generateId("indicator")},e),[o,r]=le(a,["forceMount"]);return x(K,{get when(){return o.forceMount||t.isChecked()},get children(){return x(we,J({as:"div"},()=>t.dataset(),r))}})}function Zu(e){let t=ss(),a=se({id:t.generateId("label")},e),[o,r]=le(a,["ref","id"]);return G(()=>j(t.registerLabel(o.id))),x(we,J({as:"div",ref(n){let s=Xe(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function Yu(e){let t=Xt();return x(K,{get when(){return t.contentPresent()},get children(){return x(wn,e)}})}function ph(){let e=Ae(Ju);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function ed(e){let a=Tt().generateId(`radiogroup-${tt()}`),o=se({id:a},e),[r,n]=le(o,["value","defaultValue","onChange","disabled"]),[s,i]=Vo({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return x(Ju.Provider,{value:l,get children(){return x(is,n)}})}function td(e){let t=ph(),a=se({closeOnSelect:!1},e),[o,r]=le(a,["value","onSelect"]);return x(ls,J({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function mh(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 gh(e,t){return t?Yp([e.clientX,e.clientY],t):!1}function ad(e){let t=Tt(),a=tu(),o=qu(),r=Gr(),n=_u(),s=se({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=le(s,["open","defaultOpen","onOpenChange"]),u=0,f=null,d="right",[p,c]=B(),[m,g]=B(),[h,y]=B(),[C,v]=B(),[L,b]=B(!0),[R,A]=B(l.placement),[$,I]=B([]),[P,_]=B([]),{DomCollectionProvider:N}=gm({items:P,onItemsChange:_}),ne=Su({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:Y=>i.onOpenChange?.(Y)}),{present:ce}=uu({show:()=>t.forceMount()||ne.isOpen(),element:()=>C()??null}),ve=Em({selectionMode:"none",dataSource:P}),xe=Y=>{b(Y),ne.open()},me=(Y=!1)=>{ne.close(),Y&&o&&o.close(!0)},ye=Y=>{b(Y),ne.toggle()},Le=()=>{let Y=C();Y&&(Ke(Y),ve.selectionManager().setFocused(!0),ve.selectionManager().setFocusedKey(void 0))},Re=()=>{n!=null?setTimeout(()=>Le()):Le()},Qe=Y=>{I(He=>[...He,Y]);let gt=o?.registerNestedMenu(Y);return()=>{I(He=>On(He,Y)),gt?.()}},Me=Y=>d===f?.side&&gh(Y,f?.area),We=Y=>{Me(Y)&&Y.preventDefault()},F=Y=>{Me(Y)||Re()},Pe=Y=>{Me(Y)&&Y.preventDefault()};Yg({isDisabled:()=>!(o==null&&ne.isOpen()&&t.isModal()),targets:()=>[C(),...$()].filter(Boolean)}),G(()=>{let Y=C();if(!Y||!o)return;let gt=o.registerNestedMenu(Y);j(()=>{gt()})}),G(()=>{o===void 0&&r?.registerMenu(t.value(),[C(),...$()])}),G(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&xe(!0)):me())}),G(()=>{o!==void 0||r===void 0||ne.isOpen()&&r.setValue(t.value())}),j(()=>{o===void 0&&r?.unregisterMenu(t.value())});let ra={dataset:w(()=>({"data-expanded":ne.isOpen()?"":void 0,"data-closed":ne.isOpen()?void 0:""})),isOpen:ne.isOpen,contentPresent:ce,nestedMenus:$,currentPlacement:R,pointerGraceTimeoutId:()=>u,autoFocus:L,listState:()=>ve,parentMenuContext:()=>o,triggerRef:h,contentRef:C,triggerId:p,contentId:m,setTriggerRef:y,setContentRef:v,open:xe,close:me,toggle:ye,focusContent:Re,onItemEnter:We,onItemLeave:F,onTriggerLeave:Pe,setPointerDir:Y=>d=Y,setPointerGraceTimeoutId:Y=>u=Y,setPointerGraceIntent:Y=>f=Y,registerNestedMenu:Qe,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:ct(c),registerContentId:ct(g)};return x(N,{get children(){return x(Bu.Provider,{value:ra,get children(){return x(K,{when:n===void 0,get fallback(){return l.children},get children(){return x(Iu,J({anchorRef:h,contentRef:C,onCurrentPlacementChange:A},l))}})}})}})}function od(e){let{direction:t}=ga();return x(ad,J({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function rd(e){let t=Xt(),a=Tt(),[o,r]=le(e,["onFocusOutside","onKeyDown"]),{direction:n}=ga();return x(Vu,J({onOpenAutoFocus:f=>{f.preventDefault()},onCloseAutoFocus:f=>{f.preventDefault()},onFocusOutside:f=>{o.onFocusOutside?.(f);let d=f.target;ft(t.triggerRef(),d)||t.close()},onKeyDown:f=>{Ie(f,o.onKeyDown);let d=ft(f.currentTarget,f.target),p=hh.close(n(),a.orientation()).includes(f.key),c=t.parentMenuContext()!=null;d&&p&&c&&(t.close(),Ke(t.triggerRef()))}},r))}function nd(e){let t,a=Tt(),o=Xt(),r=se({id:a.generateId(`sub-trigger-${tt()}`)},e),[n,s]=le(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{Ve||(i&&window.clearTimeout(i),i=null)},{direction:u}=ga(),f=()=>n.id,d=()=>{let v=o.parentMenuContext();if(v==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return v.listState().selectionManager()},p=()=>o.listState().collection(),c=()=>d().focusedKey()===f(),m=iu({key:f,selectionManager:d,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=v=>{Ie(v,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=v=>{if(Ie(v,n.onPointerMove),v.pointerType!=="mouse")return;let L=o.parentMenuContext();if(L?.onItemEnter(v),!v.defaultPrevented){if(n.disabled){L?.onItemLeave(v);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),L?.onItemEnter(v),v.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),Ke(v.currentTarget),L?.listState().selectionManager().setFocused(!0),L?.listState().selectionManager().setFocusedKey(f()))}},y=v=>{if(Ie(v,n.onPointerLeave),v.pointerType!=="mouse")return;l();let L=o.parentMenuContext(),b=o.contentRef();if(b){L?.setPointerGraceIntent({area:mh(o.currentPlacement(),v,b),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(L?.pointerGraceTimeoutId());let R=window.setTimeout(()=>{L?.setPointerGraceIntent(null)},300);L?.setPointerGraceTimeoutId(R)}else{if(L?.onTriggerLeave(v),v.defaultPrevented)return;L?.setPointerGraceIntent(null)}L?.onItemLeave(v)},C=v=>{Ie(v,n.onKeyDown),!v.repeat&&(n.disabled||xh.open(u(),a.orientation()).includes(v.key)&&(v.stopPropagation(),v.preventDefault(),d().setFocused(!1),d().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(p().getFirstKey())))};return G(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let v=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:f(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});j(v)}),G(Pt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),v=>{j(()=>{window.clearTimeout(v),o.parentMenuContext()?.setPointerGraceIntent(null)})})),G(()=>j(o.registerTriggerId(n.id))),j(()=>{l()}),x(we,J({as:"div",ref(v){let L=Xe(b=>{o.setTriggerRef(b),t=b},n.ref);typeof L=="function"&&L(v)},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 w(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return c()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return ze([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return ze([n.onPointerUp,m.onPointerUp])},get onClick(){return ze([g,m.onClick])},get onKeyDown(){return ze([C,m.onKeyDown])},get onMouseDown(){return ze([n.onMouseDown,m.onMouseDown])},get onFocus(){return ze([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:y},()=>o.dataset(),s))}function yh(e){let t=Gr(),a=`menu-${tt()}`,o=se({id:a,modal:!0},e),[r,n]=le(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=Su({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:Ho(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return x(Uu.Provider,{value:i,get children(){return x(ad,J({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function Kr(e){let t,a=se({orientation:"horizontal"},e),[o,r]=le(a,["ref","orientation"]),n=Nr(()=>t,()=>"hr");return x(we,J({as:"hr",ref(s){let i=Xe(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 sd(e){let t=Tt(),a=Xt(),[o,r]=le(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return x(fh,J({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||Ke(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function ld(e){let t=`dropdownmenu-${tt()}`,a=se({id:t},e);return x(yh,a)}function _h(){return bh()}function ud(){return Ih()}function $o(){return wh()}function Mi(){return Sh()}function Di(){return us()}function Vh(){return(()=>{var e=us();return e.style.setProperty("transform","rotate(90deg)"),e})()}function Gh(){return(()=>{var e=us();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function Kh(){return kh()}function Wh(){return Ph()}function jh(){return Mh()}function Xh(){return Dh()}function Qh(){return Ah()}function Zh(){return Th()}function Yh(){return Rh()}function Jh(){return Eh()}function e0(){return Fh()}function t0(e){return(()=>{var t=id(),a=t.firstChild;return V(()=>T(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function a0(){return $h()}function o0(){return Oh()}function r0(e){return[x(K,{get when(){return e.checked},get children(){var t=id(),a=t.firstChild;return V(()=>T(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),x(K,{get when(){return!e.checked},get children(){var t=Bh(),a=t.firstChild;return V(()=>T(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function n0(){return qh()}function s0(){return zh()}function l0(){return Uh()}function i0(){return Nh()}function Ai(){let e=tt();return(()=>{var t=Hh(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,f=u.firstChild,d=u.nextSibling,p=d.firstChild,c=d.nextSibling,m=c.nextSibling,g=m.firstChild,h=m.nextSibling,y=h.firstChild,C=h.nextSibling,v=C.nextSibling,L=v.firstChild,b=v.nextSibling,R=b.firstChild,A=b.nextSibling,$=A.nextSibling,I=$.firstChild,P=$.nextSibling,_=P.firstChild,N=P.nextSibling,ne=N.nextSibling,ce=ne.firstChild,ve=ne.nextSibling,xe=ve.firstChild,me=ve.nextSibling,ye=me.nextSibling,Le=ye.firstChild,Re=ye.nextSibling,Qe=Re.firstChild,Me=Re.nextSibling,We=Me.firstChild,F=We.nextSibling,Pe=F.nextSibling,ie=Pe.nextSibling,ra=ie.nextSibling,Y=Me.nextSibling,gt=Y.firstChild,He=Y.nextSibling,Ua=He.firstChild,lt=He.nextSibling,na=lt.firstChild,Ia=na.nextSibling,Bt=Ia.nextSibling,wt=Bt.firstChild,qt=wt.nextSibling,q=qt.nextSibling,ge=q.nextSibling,je=ge.nextSibling,Ce=je.nextSibling,pe=Ce.nextSibling,be=pe.nextSibling,Be=be.nextSibling,de=Be.nextSibling,zt=de.nextSibling,Ut=zt.nextSibling,ht=lt.nextSibling,wa=ht.firstChild,Nt=ht.nextSibling,Sa=Nt.firstChild,Ht=Nt.nextSibling,sa=Ht.firstChild,rr=sa.nextSibling,co=Ht.nextSibling,nr=co.firstChild,Na=co.nextSibling,sr=Na.firstChild,po=Na.nextSibling,mo=po.firstChild,go=mo.nextSibling,Ha=go.nextSibling,Ps=Ha.nextSibling,Ms=Ps.nextSibling,Ds=Ms.nextSibling,As=Ds.nextSibling,Ts=As.nextSibling,Rs=Ts.nextSibling,Es=Rs.nextSibling,Fs=Es.nextSibling,$s=Fs.nextSibling,Os=$s.nextSibling,Bs=Os.nextSibling,qs=Bs.nextSibling,zs=qs.nextSibling,Us=zs.nextSibling,kf=Us.nextSibling;return T(a,"id",`a-${e}`),T(o,"fill",`url(#a-${e})`),T(n,"id",`am-${e}`),T(s,"id",`b-${e}`),T(i,"filter",`url(#am-${e})`),T(l,"mask",`url(#b-${e})`),T(f,"id",`ah-${e}`),T(d,"id",`k-${e}`),T(p,"filter",`url(#ah-${e})`),T(c,"mask",`url(#k-${e})`),T(g,"id",`ae-${e}`),T(h,"id",`j-${e}`),T(y,"filter",`url(#ae-${e})`),T(C,"mask",`url(#j-${e})`),T(L,"id",`ai-${e}`),T(b,"id",`i-${e}`),T(R,"filter",`url(#ai-${e})`),T(A,"mask",`url(#i-${e})`),T(I,"id",`aj-${e}`),T(P,"id",`h-${e}`),T(_,"filter",`url(#aj-${e})`),T(N,"mask",`url(#h-${e})`),T(ce,"id",`ag-${e}`),T(ve,"id",`g-${e}`),T(xe,"filter",`url(#ag-${e})`),T(me,"mask",`url(#g-${e})`),T(Le,"id",`af-${e}`),T(Re,"id",`f-${e}`),T(Qe,"filter",`url(#af-${e})`),T(Me,"mask",`url(#f-${e})`),T(ie,"id",`m-${e}`),T(ra,"fill",`url(#m-${e})`),T(gt,"id",`ak-${e}`),T(He,"id",`e-${e}`),T(Ua,"filter",`url(#ak-${e})`),T(lt,"mask",`url(#e-${e})`),T(na,"id",`n-${e}`),T(Ia,"fill",`url(#n-${e})`),T(wt,"id",`r-${e}`),T(qt,"fill",`url(#r-${e})`),T(q,"id",`s-${e}`),T(ge,"fill",`url(#s-${e})`),T(je,"id",`q-${e}`),T(Ce,"fill",`url(#q-${e})`),T(pe,"id",`p-${e}`),T(be,"fill",`url(#p-${e})`),T(Be,"id",`o-${e}`),T(de,"fill",`url(#o-${e})`),T(zt,"id",`l-${e}`),T(Ut,"fill",`url(#l-${e})`),T(wa,"id",`al-${e}`),T(Nt,"id",`d-${e}`),T(Sa,"filter",`url(#al-${e})`),T(Ht,"mask",`url(#d-${e})`),T(sa,"id",`u-${e}`),T(rr,"fill",`url(#u-${e})`),T(nr,"id",`ad-${e}`),T(Na,"id",`c-${e}`),T(sr,"filter",`url(#ad-${e})`),T(po,"mask",`url(#c-${e})`),T(mo,"id",`t-${e}`),T(go,"fill",`url(#t-${e})`),T(Ha,"id",`v-${e}`),T(Ps,"stroke",`url(#v-${e})`),T(Ms,"id",`aa-${e}`),T(Ds,"stroke",`url(#aa-${e})`),T(As,"id",`w-${e}`),T(Ts,"stroke",`url(#w-${e})`),T(Rs,"id",`ac-${e}`),T(Es,"stroke",`url(#ac-${e})`),T(Fs,"id",`ab-${e}`),T($s,"stroke",`url(#ab-${e})`),T(Os,"id",`y-${e}`),T(Bs,"stroke",`url(#y-${e})`),T(qs,"id",`x-${e}`),T(zs,"stroke",`url(#x-${e})`),T(Us,"id",`z-${e}`),T(kf,"stroke",`url(#z-${e})`),t})()}function C0(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function Fi(e){return Symbol.iterator in e}function da(e){let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=w(()=>t()==="dark"?ro(a):oo(a)),r=W().client,[n,s]=B((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=B([]),f=w(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&Fi(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})):[]),d=w(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&Fi(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=w(()=>C0(f(),100)),c=e.dataPath??[];return(()=>{var m=Ro();return S(m,x(K,{get when(){return p().length},get children(){return[(()=>{var g=g0(),h=g.firstChild,y=h.firstChild,C=y.nextSibling,v=C.nextSibling,L=v.nextSibling,b=L.firstChild;return h.$$click=()=>i(),S(h,x(Ri,{get expanded(){return n()}}),y),S(C,()=>e.label),S(L,()=>String(d()).toLowerCase()==="iterable"?"(Iterable) ":"",b),S(L,()=>f().length,b),S(L,()=>f().length>1?"items":"item",null),S(g,x(K,{get when(){return e.editable},get children(){var R=Ro();return S(R,x(v0,{get value(){return e.value}}),null),S(R,x(K,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return x(Ei,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),S(R,x(K,{get when(){return d()==="array"&&e.activeQuery!==void 0},get children(){return x(L0,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),S(R,x(K,{get when(){return w(()=>!!e.onEdit)()&&!Sn(e.value).meta},get children(){var A=m0();return A.$$click=()=>{e.onEdit?.()},S(A,x(e0,{})),V(()=>E(A,o().actionButton)),A}}),null),V(()=>E(R,o().actions)),R}}),null),V(R=>{var A=o().expanderButtonContainer,$=o().expanderButton,I=o().info;return A!==R.e&&E(g,R.e=A),$!==R.t&&E(h,R.t=$),I!==R.a&&E(L,R.a=I),R},{e:void 0,t:void 0,a:void 0}),g})(),x(K,{get when(){return n()},get children(){return[x(K,{get when(){return p().length===1},get children(){var g=Ro();return S(g,x(Dr,{get each(){return f()},by:h=>h.label,children:h=>x(da,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...c,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return d()==="array"||d()==="Iterable"||d()==="object"}})})),V(()=>E(g,o().subEntry)),g}}),x(K,{get when(){return p().length>1},get children(){var g=Ro();return S(g,x(gl,{get each(){return p()},children:(h,y)=>(()=>{var C=y0(),v=C.firstChild,L=v.firstChild,b=L.firstChild,R=b.nextSibling,A=R.nextSibling,$=A.nextSibling;return $.nextSibling,L.$$click=()=>u(I=>I.includes(y)?I.filter(P=>P!==y):[...I,y]),S(L,x(Ri,{get expanded(){return l().includes(y)}}),b),S(L,y*100,R),S(L,y*100+100-1,$),S(v,x(K,{get when(){return l().includes(y)},get children(){var I=Ro();return S(I,x(Dr,{get each(){return h()},by:P=>P.label,children:P=>x(da,{get defaultExpanded(){return e.defaultExpanded},get label(){return P().label},get value(){return P().value},get editable(){return e.editable},get dataPath(){return[...c,P().label]},get activeQuery(){return e.activeQuery}})})),V(()=>E(I,o().subEntry)),I}}),null),V(I=>{var P=o().entry,_=o().expanderButton;return P!==I.e&&E(v,I.e=P),_!==I.t&&E(L,I.t=_),I},{e:void 0,t:void 0}),C})()})),V(()=>E(g,o().subEntry)),g}})]}})]}}),null),S(m,x(K,{get when(){return p().length===0},get children(){var g=x0(),h=g.firstChild,y=h.firstChild;return S(h,()=>e.label,y),S(g,x(K,{get when(){return w(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number"||d()==="boolean")},get fallback(){return(()=>{var C=Ti();return S(C,()=>Mo(e.value)),V(()=>E(C,o().value)),C})()},get children(){return[x(K,{get when(){return w(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number")},get children(){var C=h0();return C.addEventListener("change",v=>{let L=e.activeQuery.state.data,b=la(L,c,d()==="number"?v.target.valueAsNumber:v.target.value);r.setQueryData(e.activeQuery.queryKey,b)}),V(v=>{var L=d()==="number"?"number":"text",b=z(o().value,o().editableInput);return L!==v.e&&T(C,"type",v.e=L),b!==v.t&&E(C,v.t=b),v},{e:void 0,t:void 0}),V(()=>C.value=e.value),C}}),x(K,{get when(){return d()==="boolean"},get children(){var C=Ti();return S(C,x(b0,{get activeQuery(){return e.activeQuery},dataPath:c,get value(){return e.value}}),null),S(C,()=>Mo(e.value),null),V(()=>E(C,z(o().value,o().actions,o().editableInput))),C}})]}}),null),S(g,x(K,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return x(Ei,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),V(C=>{var v=o().row,L=o().label;return v!==C.e&&E(g,C.e=v),L!==C.t&&E(h,C.t=L),C},{e:void 0,t:void 0}),g}}),null),V(()=>E(m,o().entry)),m})()}var Kc,Wc,Hl,jc,Xc,D,En,Yc,Or,tp,_l,it,ap,Ra,Vn,op,Fn,Br,rp,Bi,np,qi,sp,Vl,lp,Uo,zi,qr,Gn,No,Ui,ip,up,Ye,jl,hp,xp,yp,Cp,Xl,Ta,Vt,Ni,vp,Lp,Ql,Zl,Mn,Tp,Kn,kr,Ki,Vp,jn,Gp,Ao,ai,Xi,em,Qi,im,Hr,eu,ym,Cm,qn,Fo,Im,Dn,Gt,Rm,ii,Ge,Fm,$m,uu,Ar,du,zn,Wt,at,Vm,Gm,Wm,jm,Mt,rt,Tr,Pr,ca,Xm,Qm,ag,og,rg,ng,lg,ig,ug,cg,Ig,bu,Pg,Mg,Dg,Ag,Tg,Rg,Eg,os,Fg,Hn,gi,$g,Ug,Iu,xi,yi,wu,dt,ku,Mu,Wg,jg,Tn,Rn,Ci,vi,Zg,To,ut,Mr,eh,Li,th,ah,oh,bi,Ii,rh,nh,sh,wi,Si,_n,lh,ih,Bu,zu,Uu,uh,zo,ki,dh,Gu,Ju,hh,Pi,xh,Ch,vh,Te,Lh,k,bh,Ih,wh,Sh,us,kh,Ph,Mh,Dh,Ah,Th,Rh,Eh,Fh,id,$h,Oh,Bh,qh,zh,Uh,Nh,Hh,u0,d0,f0,c0,p0,m0,Ro,g0,h0,Ti,x0,y0,Ri,v0,L0,Ei,b0,dd,oo,ro,I0,Wo,w0,S0,k0,P0,M0,D0,A0,T0,R0,E0,F0,$0,O0,B0,q0,z0,U0,N0,H0,$i,_0,fd,V0,G0,K0,W0,j0,X0,Q0,Z0,Y0,J0,ot,Wr,fa,cd,yt,ds,Qa,Oi,pd,e1,md,t1,jr,a1,o1,r1,n1,Kt,s1,l1,Fr,i1,Ne,$r,u1,xt,gd,pt,mt,fs=ho(()=>{"use strict";M();Do();Kc=!Ve,Wc=Kc&&!!xl,Hl=()=>{},jc=e=>e!=null,Xc=e=>e.filter(jc);D=e=>typeof e=="function"&&!e.length?e():e,En=e=>Array.isArray(e)?e:e?[e]:[];Yc=Wc?e=>gr()?j(e):e:j;Or=ep,tp=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),_l=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},it=tp({_cookies:[globalThis.document,"cookie"],getItem:e=>it._cookies[0][it._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=it.getItem(e);it._cookies[0][it._cookies[1]]=`${e}=${t}${_l(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:it});window.dispatchEvent(r)},removeItem:e=>{it._cookies[0][it._cookies[1]]=`${e}=deleted${_l({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return it._cookies[0][it._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return it._cookies[0][it._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),ap=1024,Ra=796,Vn=700,op="bottom-right",Fn="bottom",Br="system",rp=!1,Bi=500,np=500,qi=500,sp=Object.keys(Ir)[0],Vl=1,lp=Object.keys(wr)[0],Uo=qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});zi=qe(void 0),qr=e=>{let[t,a]=B(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="",yl(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(W().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let f=[...u.cssRules].map(m=>m.cssText).join(""),d=document.createElement("style"),p=u.ownerNode,c="";p&&"id"in p&&(c=p.id),c&&d.setAttribute("id",c),d.textContent=f,l.document.head.appendChild(d)}catch{let d=document.createElement("link");if(u.href==null)return;d.rel="stylesheet",d.type=u.type,d.media=u.media.toString(),d.href=u.href,l.document.head.appendChild(d)}}),Po(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};G(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||np))}),G(()=>{let s=(W().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(W().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),j(()=>{l.disconnect()})}});let n=w(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return x(zi.Provider,{value:n,get children(){return e.children}})},Gn=()=>w(()=>{let t=Ae(zi);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),No=qe(()=>"dark");Ui={\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"},ip=Object.keys(Ui).join("|"),up=new RegExp(ip,"g");Ye={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};jl={maxRanking:1/0,minRanking:-1/0};hp={data:""},xp=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||hp,yp=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Cp=/\/\*[^]*?\*\/| +/g,Xl=/\n+/g,Ta=(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"?Ta(s,n):n+"{"+Ta(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=Ta(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+=Ta.p?Ta.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},Vt={},Ni=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+Ni(e[a]);return t}return e},vp=(e,t,a,o,r)=>{let n=Ni(e),s=Vt[n]||(Vt[n]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(n));if(!Vt[s]){let l=n!==e?e:(u=>{let f,d,p=[{}];for(;f=yp.exec(u.replace(Cp,""));)f[4]?p.shift():f[3]?(d=f[3].replace(Xl," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(Xl," ").trim();return p[0]})(e);Vt[s]=Ta(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&Vt.g?Vt.g:null;return a&&(Vt.g=Vt[s]),((l,u,f,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(Vt[s],t,o,i),s},Lp=(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?"":Ta(i,""):i===!1?"":i}return o+r+(s??"")},"");ee.bind({g:1});ee.bind({k:1});Ql=Ve?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Zl=e=>{let t=wp(e);return bp(Ip(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)Sp(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:f}of i)if(u.isConnected){let d=u.getBoundingClientRect(),p=f.left-d.left,c=f.top-d.top;(p||c)&&(u.style.transform=`translate(${p}px, ${c}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let f=function(d){(d.target===u||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",f)}});for(let l of o)kp(s,e,l,()=>r([l]))}})},Mn=Symbol("fallback");Tp=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Kn=(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))(Kn||{});kr=null;Ki=["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'])"],Vp=[...Ki,'[tabindex]:not([tabindex="-1"]):not([disabled])'],jn=Ki.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Gp=Vp.join(':not([hidden]):not([tabindex="-1"]),');Ao=new Map,ai=new Set;typeof document<"u"&&(document.readyState!=="loading"?oi():document.addEventListener("DOMContentLoaded",oi));Xi={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"};em=["id","name","validationState","required","disabled","readOnly"];Qi=qe();im=Object.defineProperty,Hr=(e,t)=>{for(var a in t)im(e,a,{get:t[a],enumerable:!0})},eu=qe();ym=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Cm=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);qn=nu(),Fo=new Set;Im=qe();Dn=new Map;Gt=class su extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof su?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};Rm=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 Gt(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 Gt(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 Gt([t],t,t):new Gt;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new Gt;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 Gt)}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}},ii=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])}};Ge=e=>typeof e=="function"?e():e,Fm=e=>{let t=w(()=>{let s=Ge(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=B(Ge(e.show)?"present":"hidden"),n="none";return G(s=>{let i=Ge(e.show);return he(()=>{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}),G(()=>{let s=Ge(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let d=a().includes(u.animationName);u.target===s&&d&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),j(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},$m=Fm,uu=$m,Ar="data-kb-top-layer",zn=!1,Wt=[];at={layers:Wt,isTopMostLayer:Bm,hasPointerBlockingLayer:Qn,isBelowPointerBlockingLayer:cu,addLayer:zm,removeLayer:Um,indexOf:Oo,find:Om,assignPointerEventToLayers:Nm,disableBodyPointerEvents:Hm,restoreBodyPointerEvents:_m},Vm={};Hr(Vm,{Button:()=>Wm,Root:()=>Zn});Gm=["button","color","file","image","reset","submit"];Wm=Zn,jm=["top","right","bottom","left"],Mt=Math.min,rt=Math.max,Tr=Math.round,Pr=Math.floor,ca=e=>({x:e,y:e}),Xm={left:"right",right:"left",bottom:"top",top:"bottom"},Qm={start:"end",end:"start"};ag=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:f,y:d}=ui(u,o,l),p=o,c={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:y}=i[g],{x:C,y:v,data:L,reset:b}=await y({x:f,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:c,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,d=v??d,c={...c,[h]:{...c[h],...L}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(u=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:f,y:d}=ui(u,p,l)),g=-1)}return{x:f,y:d,placement:p,strategy:r,middlewareData:c}};og=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:f=0}=$a(e,t)||{};if(u==null)return{};let d=mu(f),p={x:a,y:o},c=Jn(r),m=Yn(c),g=await s.getDimensions(u),h=c==="y",y=h?"top":"left",C=h?"bottom":"right",v=h?"clientHeight":"clientWidth",L=n.reference[m]+n.reference[c]-p[c]-n.floating[m],b=p[c]-n.reference[c],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),A=R?R[v]:0;(!A||!await(s.isElement==null?void 0:s.isElement(R)))&&(A=i.floating[v]||n.floating[m]);let $=L/2-b/2,I=A/2-g[m]/2-1,P=Mt(d[y],I),_=Mt(d[C],I),N=P,ne=A-g[m]-_,ce=A/2-g[m]/2+$,ve=Un(N,ce,ne),xe=!l.arrow&&to(r)!=null&&ce!==ve&&n.reference[m]/2-(ce<N?P:_)-g[m]/2<0,me=xe?ce<N?ce-N:ce-ne:0;return{[c]:p[c]+me,data:{[c]:ve,centerOffset:ce-ve-me,...xe&&{alignmentOffset:me}},reset:xe}}}),rg=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:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=$a(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let y=pa(r),C=Ea(i),v=pa(i)===i,L=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=p||(v||!g?[Rr(i)]:Ym(i)),R=m!=="none";!p&&R&&b.push(...eg(i,g,m,L));let A=[i,...b],$=await Bo(t,h),I=[],P=((o=n.flip)==null?void 0:o.overflows)||[];if(f&&I.push($[y]),d){let ce=Zm(r,s,L);I.push($[ce[0]],$[ce[1]])}if(P=[...P,{placement:r,overflows:I}],!I.every(ce=>ce<=0)){var _,N;let ce=(((_=n.flip)==null?void 0:_.index)||0)+1,ve=A[ce];if(ve)return{data:{index:ce,overflows:P},reset:{placement:ve}};let xe=(N=P.filter(me=>me.overflows[0]<=0).sort((me,ye)=>me.overflows[1]-ye.overflows[1])[0])==null?void 0:N.placement;if(!xe)switch(c){case"bestFit":{var ne;let me=(ne=P.filter(ye=>{if(R){let Le=Ea(ye.placement);return Le===C||Le==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(Le=>Le>0).reduce((Le,Re)=>Le+Re,0)]).sort((ye,Le)=>ye[1]-Le[1])[0])==null?void 0:ne[0];me&&(xe=me);break}case"initialPlacement":xe=i;break}if(r!==xe)return{reset:{placement:xe}}}return{}}}};ng=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=$a(e,t);switch(o){case"referenceHidden":{let n=await Bo(t,{...r,elementContext:"reference"}),s=di(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fi(s)}}}case"escaped":{let n=await Bo(t,{...r,altBoundary:!0}),s=di(n,a.floating);return{data:{escapedOffsets:s,escaped:fi(s)}}}default:return{}}}}};lg=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 sg(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}}}}},ig=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,y:C}=h;return{x:y,y:C}}},...l}=$a(e,t),u={x:a,y:o},f=await Bo(t,l),d=Ea(pa(r)),p=pu(d),c=u[p],m=u[d];if(n){let h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",C=c+f[h],v=c-f[y];c=Un(C,c,v)}if(s){let h=d==="y"?"top":"left",y=d==="y"?"bottom":"right",C=m+f[h],v=m-f[y];m=Un(C,m,v)}let g=i.fn({...t,[p]:c,[d]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},ug=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}=$a(e,t),l=await Bo(t,i),u=pa(a),f=to(a),d=Ea(a)==="y",{width:p,height:c}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=f===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=f==="end"?"top":"bottom");let h=c-l.top-l.bottom,y=p-l.left-l.right,C=Mt(c-l[m],h),v=Mt(p-l[g],y),L=!t.middlewareData.shift,b=C,R=v;if(d?R=f||L?Mt(v,y):y:b=f||L?Mt(C,h):h,L&&!f){let $=rt(l.left,0),I=rt(l.right,0),P=rt(l.top,0),_=rt(l.bottom,0);d?R=p-2*($!==0||I!==0?$+I:rt(l.left,l.right)):b=c-2*(P!==0||_!==0?P+_:rt(l.top,l.bottom))}await s({...t,availableWidth:R,availableHeight:b});let A=await r.getDimensions(n.floating);return p!==A.width||c!==A.height?{reset:{rects:!0}}:{}}}};cg=ca(0);Ig=async function(e){let t=this.getOffsetParent||Lu,a=this.getDimensions,o=await a(e.floating);return{reference:bg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};bu={convertOffsetParentRelativeRectToViewportRelativeRect:mg,getDocumentElement:jt,getClippingRect:vg,getOffsetParent:Lu,getElementRects:Ig,getClientRects:gg,getDimensions:Lg,getScale:Ja,isElement:Ct,isRTL:wg};Pg=lg,Mg=ig,Dg=rg,Ag=ug,Tg=ng,Rg=og,Eg=(e,t,a)=>{let o=new Map,r={platform:bu,...a},n={...r.platform,_c:o};return ag(e,t,{...r,platform:n})},os=qe();Fg=H('<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">'),Hn=30,gi=Hn/2,$g={top:180,right:-90,bottom:0,left:90};Ug={top:"bottom",right:"left",bottom:"top",left:"right"};Iu=Object.assign(Hg,{Arrow:ns,Context:os,usePopperContext:rs,Positioner:Bg});xi="interactOutside.pointerDownOutside",yi="interactOutside.focusOutside";wu=qe();dt={};Hr(dt,{Description:()=>Zi,ErrorMessage:()=>Yi,Item:()=>Du,ItemControl:()=>Au,ItemDescription:()=>Tu,ItemIndicator:()=>Ru,ItemInput:()=>Eu,ItemLabel:()=>Fu,Label:()=>$u,RadioGroup:()=>Wg,Root:()=>Ou});ku=qe();Mu=qe();Wg=Object.assign(Ou,{Description:Zi,ErrorMessage:Yi,Item:Du,ItemControl:Au,ItemDescription:Tu,ItemIndicator:Ru,ItemInput:Eu,ItemLabel:Fu,Label:$u}),jg=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)}}};Tn="focusScope.autoFocusOnMount",Rn="focusScope.autoFocusOnUnmount",Ci={bubbles:!1,cancelable:!0},vi={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=On(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=On(this.stack,e),this.active()?.resume()}};Zg="data-live-announcer";To=new WeakMap,ut=[];Mr=new Map,eh=e=>{G(()=>{let t=Ge(e.style)??{},a=Ge(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=Mr.get(e.key);r?r.activeCount++:Mr.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);j(()=>{let n=Mr.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Mr.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?.()}})})},Li=eh,th=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},ah=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},oh=(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,f]=th(r,t),d=f-l-o*u;(u!==0||d!==0)&&ah(r,t)&&(n+=d,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[bi,Ii]=B([]),rh=e=>bi().indexOf(e)===bi().length-1,nh=e=>{let t=J({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=tt(),o=[0,0],r=null,n=null;G(()=>{Ge(t.enabled)&&(Ii(u=>[...u,a]),j(()=>{Ii(u=>u.filter(f=>f!==a))}))}),G(()=>{if(!Ge(t.enabled)||!Ge(t.hideScrollbar))return;let{body:u}=document,f=window.innerWidth-u.offsetWidth;if(Ge(t.preventScrollbarShift)){let d={overflow:"hidden"},p=[];f>0&&(Ge(t.preventScrollbarShiftMode)==="padding"?d.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${f}px)`:d.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${f}px)`,p.push({key:"--scrollbar-width",value:`${f}px`}));let c=window.scrollY,m=window.scrollX;Li({key:"prevent-scroll",element:u,style:d,properties:p,cleanup:()=>{Ge(t.restoreScrollPosition)&&f>0&&window.scrollTo(m,c)}})}else Li({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),G(()=>{!rh(a)||!Ge(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),j(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=wi(u),r=null,n=null},i=u=>{let f=u.target,d=Ge(t.element),p=sh(u),c=Math.abs(p[0])>Math.abs(p[1])?"x":"y",m=c==="x"?p[0]:p[1],g=Si(f,c,m,d),h;d&&_n(d,f)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let f=Ge(t.element),d=u.target,p;if(u.touches.length===2)p=!Ge(t.allowPinchZoom);else{if(r==null||n===null){let c=wi(u).map((g,h)=>o[h]-g),m=Math.abs(c[0])>Math.abs(c[1])?"x":"y";r=m,n=m==="x"?c[0]:c[1]}if(d.type==="range")p=!1;else{let c=Si(d,r,n,f);f&&_n(f,d)?p=!c:p=!0}}p&&u.cancelable&&u.preventDefault()}},sh=e=>[e.deltaX,e.deltaY],wi=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Si=(e,t,a,o)=>{let r=o!==null&&_n(o,e),[n,s]=oh(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},_n=(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},lh=nh,ih=lh,Bu=qe();zu=qe();Uu=qe();uh=qe();zo={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>zo.next(e==="ltr"?"rtl":"ltr",t)},ki={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};dh=qe();Gu=qe();Ju=qe();hh={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};Pi=["Enter"," "],xh={open:(e,t)=>e==="ltr"?[...Pi,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Pi,t==="horizontal"?"ArrowLeft":"ArrowUp"]};Ch={};Hr(Ch,{Root:()=>Kr,Separator:()=>vh});vh=Kr,Te={};Hr(Te,{Arrow:()=>ns,CheckboxItem:()=>Nu,Content:()=>sd,DropdownMenu:()=>Lh,Group:()=>is,GroupLabel:()=>Ku,Icon:()=>Wu,Item:()=>ju,ItemDescription:()=>Xu,ItemIndicator:()=>Qu,ItemLabel:()=>Zu,Portal:()=>Yu,RadioGroup:()=>ed,RadioItem:()=>td,Root:()=>ld,Separator:()=>Kr,Sub:()=>od,SubContent:()=>rd,SubTrigger:()=>nd,Trigger:()=>Hu});Lh=Object.assign(ld,{Arrow:ns,CheckboxItem:Nu,Content:sd,Group:is,GroupLabel:Ku,Icon:Wu,Item:ju,ItemDescription:Xu,ItemIndicator:Qu,ItemLabel:Zu,Portal:Yu,RadioGroup:ed,RadioItem:td,Separator:Kr,Sub:od,SubContent:rd,SubTrigger:nd,Trigger:Hu}),k={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},bh=H('<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>'),Ih=H('<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>'),wh=H('<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>'),Sh=H('<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>'),us=H('<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>'),kh=H('<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>'),Ph=H('<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>'),Mh=H('<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>'),Dh=H('<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">'),Ah=H('<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">'),Th=H('<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>'),Rh=H('<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>'),Eh=H('<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>'),Fh=H('<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>'),id=H('<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>'),$h=H('<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>'),Oh=H('<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>'),Bh=H('<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>'),qh=H('<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>'),zh=H('<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>'),Uh=H('<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>'),Nh=H('<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>'),Hh=H('<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>');u0=H('<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>'),d0=H('<button title="Copy object to clipboard">'),f0=H('<button title="Remove all items"aria-label="Remove all items">'),c0=H('<button title="Delete item"aria-label="Delete item">'),p0=H('<button title="Toggle value"aria-label="Toggle value">'),m0=H('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),Ro=H("<div>"),g0=H("<div><button> <span></span> <span> "),h0=H("<input>"),Ti=H("<span>"),x0=H("<div><span>:"),y0=H("<div><div><button> [<!>...<!>]");Ri=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=w(()=>t()==="dark"?ro(a):oo(a));return(()=>{var r=u0();return V(()=>E(r,z(o().expander,a`
|
|
1
|
+
"use strict";var Df=Object.create;var ur=Object.defineProperty;var Af=Object.getOwnPropertyDescriptor;var Tf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,Ef=Object.prototype.hasOwnProperty;var xo=(e,t)=>()=>(e&&(t=e(e=0)),t);var ln=(e,t)=>{for(var a in t)ur(e,a,{get:t[a],enumerable:!0})},Hs=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Tf(t))!Ef.call(e,r)&&r!==a&&ur(e,r,{get:()=>t[r],enumerable:!(o=Af(t,r))||o.enumerable});return e};var Ee=(e,t,a)=>(a=e!=null?Df(Rf(e)):{},Hs(t||!e||!e.__esModule?ur(a,"default",{value:e,enumerable:!0}):a,e)),Ff=e=>Hs(ur({},"__esModule",{value:!0}),e);var A=xo(()=>{});function _s(e){let t=String(e),a=t.length-1;return Z.context.id+(a?String.fromCharCode(96+a):"")+t}function ka(e){Z.context=e}function $f(){return{...Z.context,id:Z.getNextContextId(),count:0}}function kt(e,t){let a=fe,o=te,r=e.length===0,n=t===void 0?o:t,s=r?rl:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>ye(()=>ua(s)));te=s,fe=null;try{return Ze(i,!0)}finally{fe=a,te=o}}function B(e,t){t=t?Object.assign({},gr,t):gr;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(O&&O.running&&O.sources.has(a)?r=r(a.tValue):r=r(a.value)),dl(a,r));return[ul.bind(a),o]}function hr(e,t,a){let o=Lr(e,t,!0,et);ja&&O&&O.running?De.push(o):Xa(o)}function V(e,t,a){let o=Lr(e,t,!1,et);ja&&O&&O.running?De.push(o):Xa(o)}function G(e,t,a){ol=_f;let o=Lr(e,t,!1,et),r=Lo&&Ae(Lo);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),_e?_e.push(o):Xa(o)}function S(e,t,a){a=a?Object.assign({},gr,a):gr;let o=Lr(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,ja&&O&&O.running?(o.tState=et,De.push(o)):Xa(o),ul.bind(o)}function Bf(e){return e&&typeof e=="object"&&"then"in e}function qf(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=un,l=null,u=!1,f=!1,d="initialValue"in n,p=typeof o=="function"&&S(o),c=new Set,[m,g]=(n.storage||B)(n.initialValue),[h,y]=B(void 0),[C,v]=B(void 0,{equals:!1}),[L,b]=B(d?"ready":"unresolved");Z.context&&(l=Z.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Z.load&&Z.has(l)&&(i=Z.load(l)));function D(M,N,_,ae){return s===M&&(s=null,ae!==void 0&&(d=!0),(M===i||N===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(ae,{value:N})),i=un,O&&M&&u?(O.promises.delete(M),u=!1,Ze(()=>{O.running=!0,I(N,_)},!1)):I(N,_)),N}function I(M,N){Ze(()=>{N===void 0&&g(()=>M),b(N!==void 0?"errored":d?"ready":"unresolved"),y(N);for(let _ of c.keys())_.decrement();c.clear()},!1)}function E(){let M=Lo&&Ae(Lo),N=m(),_=h();if(_!==void 0&&!s)throw _;return fe&&!fe.user&&M&&hr(()=>{C(),s&&(M.resolved&&O&&u?O.promises.add(s):c.has(M)||(M.increment(),c.add(M)))}),N}function w(M=!0){if(M!==!1&&f)return;f=!1;let N=p?p():o;if(u=O&&O.running,N==null||N===!1){D(s,ye(m));return}O&&s&&O.promises.delete(s);let _=i!==un?i:ye(()=>r(N,{value:m(),refetching:M}));return Bf(_)?(s=_,"value"in _?(_.status==="success"?D(s,_.value,void 0,N):D(s,void 0,cn(_.value),N),_):(f=!0,queueMicrotask(()=>f=!1),Ze(()=>{b(d?"refreshing":"pending"),v()},!1),_.then(ae=>D(_,ae,void 0,N),ae=>D(_,void 0,cn(ae),N)))):(D(s,_,void 0,N),_)}return Object.defineProperties(E,{state:{get:()=>L()},error:{get:()=>h()},loading:{get(){let M=L();return M==="pending"||M==="refreshing"}},latest:{get(){if(!d)return E();let M=h();if(M&&!s)throw M;return m()}}}),p?hr(()=>w(!1)):w(!1),[E,{refetch:w,mutate:g}]}function nl(e){return Ze(e,!1)}function ye(e){if(!Ka&&fe===null)return e();let t=fe;fe=null;try{return Ka?Ka.untrack(e):e()}finally{fe=t}}function Pt(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=ye(()=>t(i,r,s));return r=i,l}}function _t(e){G(()=>ye(e))}function j(e){return te===null||(te.cleanups===null?te.cleanups=[e]:te.cleanups.push(e)),e}function xr(){return te}function zf(e,t){let a=te,o=fe;te=e,fe=null;try{return Ze(t,!0)}catch(r){br(r)}finally{te=a,fe=o}}function sl(e){if(O&&O.running)return e(),O.done;let t=fe,a=te;return Promise.resolve().then(()=>{fe=t,te=a;let o;return(ja||Lo)&&(o=O||(O={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),Ze(e,!1),fe=te=null,o?o.done:void 0})}function ll(){return[Uf,sl]}function qe(e,t){let a=Symbol("context");return{id:a,Provider:Vf(a),defaultValue:e}}function Ae(e){let t;return te&&te.context&&(t=te.context[e.id])!==void 0?t:e.defaultValue}function il(e){let t=S(e),a=S(()=>pn(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function ul(){let e=O&&O.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===et)Xa(this);else{let t=De;De=null,Ze(()=>yr(this),!1),De=t}if(fe){let t=this.observers?this.observers.length:0;fe.sources?(fe.sources.push(this),fe.sourceSlots.push(t)):(fe.sources=[this],fe.sourceSlots=[t]),this.observers?(this.observers.push(fe),this.observerSlots.push(fe.sources.length-1)):(this.observers=[fe],this.observerSlots=[fe.sources.length-1])}return e&&O.sources.has(this)?this.tValue:this.value}function dl(e,t,a){let o=O&&O.running&&O.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(O){let r=O.running;(r||!a&&O.sources.has(e))&&(O.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Ze(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=O&&O.running;s&&O.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?De.push(n):_e.push(n),n.observers&&cl(n)),s?n.tState=et:n.state=et)}if(De.length>1e6)throw De=[],new Error},!1)}return t}function Xa(e){if(!e.fn)return;ua(e);let t=vr;Ks(e,O&&O.running&&O.sources.has(e)?e.tValue:e.value,t),O&&!O.running&&O.sources.has(e)&&queueMicrotask(()=>{Ze(()=>{O&&(O.running=!0),fe=te=e,Ks(e,e.tValue,t),fe=te=null},!1)})}function Ks(e,t,a){let o,r=te,n=fe;fe=te=e;try{o=e.fn(t)}catch(s){return e.pure&&(O&&O.running?(e.tState=et,e.tOwned&&e.tOwned.forEach(ua),e.tOwned=void 0):(e.state=et,e.owned&&e.owned.forEach(ua),e.owned=null)),e.updatedAt=a+1,br(s)}finally{fe=n,te=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?dl(e,o,!0):O&&O.running&&e.pure?(O.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function Lr(e,t,a,o=et,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:te,context:te?te.context:null,pure:a};if(O&&O.running&&(n.state=0,n.tState=o),te===null||te!==rl&&(O&&O.running&&te.pure?te.tOwned?te.tOwned.push(n):te.tOwned=[n]:te.owned?te.owned.push(n):te.owned=[n]),Ka&&n.fn){let[s,i]=B(void 0,{equals:!1}),l=Ka.factory(n.fn,i);j(()=>l.dispose());let u=()=>sl(i).then(()=>f.dispose()),f=Ka.factory(n.fn,u);n.fn=d=>(s(),O&&O.running?f.track(d):l.track(d))}return n}function bo(e){let t=O&&O.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===vo)return yr(e);if(e.suspense&&ye(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<vr);){if(t&&O.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(O.disposed.has(r))return}if((t?e.tState:e.state)===et)Xa(e);else if((t?e.tState:e.state)===vo){let r=De;De=null,Ze(()=>yr(e,a[0]),!1),De=r}}}function Ze(e,t){if(De)return e();let a=!1;t||(De=[]),_e?a=!0:_e=[],vr++;try{let o=e();return Nf(a),o}catch(o){a||(_e=null),De=null,br(o)}}function Nf(e){if(De&&(ja&&O&&O.running?Hf(De):fl(De),De=null),e)return;let t;if(O){if(!O.promises.size&&!O.queue.size){let o=O.sources,r=O.disposed;_e.push.apply(_e,O.effects),t=O.resolve;for(let n of _e)"tState"in n&&(n.state=n.tState),delete n.tState;O=null,Ze(()=>{for(let n of r)ua(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)ua(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}Gs(!1)},!1)}else if(O.running){O.running=!1,O.effects.push.apply(O.effects,_e),_e=null,Gs(!0);return}}let a=_e;_e=null,a.length&&Ze(()=>ol(a),!1),t&&t()}function fl(e){for(let t=0;t<e.length;t++)bo(e[t])}function Hf(e){for(let t=0;t<e.length;t++){let a=e[t],o=O.queue;o.has(a)||(o.add(a),ja(()=>{o.delete(a),Ze(()=>{O.running=!0,bo(a)},!1),O&&(O.running=!1)}))}}function _f(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:bo(o)}if(Z.context){if(Z.count){Z.effects||(Z.effects=[]),Z.effects.push(...e.slice(0,a));return}ka()}for(Z.effects&&(Z.done||!Z.count)&&(e=[...Z.effects,...e],a+=Z.effects.length,delete Z.effects),t=0;t<a;t++)bo(e[t])}function yr(e,t){let a=O&&O.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===et?r!==t&&(!r.updatedAt||r.updatedAt<vr)&&bo(r):n===vo&&yr(r,t)}}}function cl(e){let t=O&&O.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=vo:o.state=vo,o.pure?De.push(o):_e.push(o),o.observers&&cl(o))}}function ua(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--)ua(e.tOwned[t]);delete e.tOwned}if(O&&O.running&&e.pure)pl(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)ua(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}O&&O.running?e.tState=0:e.state=0}function pl(e,t){if(t||(e.tState=0,O.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)pl(e.owned[a])}function cn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Ws(e,t,a){try{for(let o of t)o(e)}catch(o){br(o,a&&a.owner||null)}}function br(e,t=te){let a=Vs&&t&&t.context&&t.context[Vs],o=cn(e);if(!a)throw o;_e?_e.push({fn(){Ws(o,a,t)},state:et}):Ws(o,a,t)}function pn(e){if(typeof e=="function"&&!e.length)return pn(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=pn(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Vf(e,t){return function(o){let r;return V(()=>r=ye(()=>(te.context={...te.context,[e]:o.value},il(()=>o.children))),void 0),r}}function Cr(e){for(let t=0;t<e.length;t++)e[t]()}function Gf(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return j(()=>Cr(n)),()=>{let l=e()||[],u=l.length,f,d;return l[Po],ye(()=>{let c,m,g,h,y,C,v,L,b;if(u===0)s!==0&&(Cr(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[mn],r[0]=kt(D=>(n[0]=D,a.fallback())),s=1);else if(s===0){for(r=new Array(u),d=0;d<u;d++)o[d]=l[d],r[d]=kt(p);s=u}else{for(g=new Array(u),h=new Array(u),i&&(y=new Array(u)),C=0,v=Math.min(s,u);C<v&&o[C]===l[C];C++);for(v=s-1,L=u-1;v>=C&&L>=C&&o[v]===l[L];v--,L--)g[L]=r[v],h[L]=n[v],i&&(y[L]=i[v]);for(c=new Map,m=new Array(L+1),d=L;d>=C;d--)b=l[d],f=c.get(b),m[d]=f===void 0?-1:f,c.set(b,d);for(f=C;f<=v;f++)b=o[f],d=c.get(b),d!==void 0&&d!==-1?(g[d]=r[f],h[d]=n[f],i&&(y[d]=i[f]),d=m[d],c.set(b,d)):n[f]();for(d=C;d<u;d++)d in g?(r[d]=g[d],n[d]=h[d],i&&(i[d]=y[d],i[d](d))):r[d]=kt(p);r=r.slice(0,s=u),o=l.slice(0)}return r});function p(c){if(n[d]=c,i){let[m,g]=B(d);return i[d]=g,t(l[d],m)}return t(l[d])}}}function Kf(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return j(()=>Cr(n)),()=>{let u=e()||[],f=u.length;return u[Po],ye(()=>{if(f===0)return i!==0&&(Cr(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[mn],r[0]=kt(p=>(n[0]=p,a.fallback())),i=1),r;for(o[0]===mn&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<f;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=kt(d));for(;l<o.length;l++)n[l]();return i=s.length=n.length=f,o=u.slice(0),r=r.slice(0,i)});function d(p){n[l]=p;let[c,m]=B(u[l]);return s[l]=m,t(c,l)}}}function x(e,t){if(Wf&&Z.context){let a=Z.context;ka($f());let o=ye(()=>e(t||{}));return ka(a),o}return ye(()=>e(t||{}))}function dr(){return!0}function dn(e){return(e=typeof e=="function"?e():e)?e:{}}function jf(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function J(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&mr in i,e[s]=typeof i=="function"?(t=!0,S(i)):i}if(al&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=dn(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in dn(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(dn(e[i])));return[...new Set(s)]}},gn);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 f=l[u];if(f==="__proto__"||f==="constructor")continue;let d=Object.getOwnPropertyDescriptor(i,f);if(!o[f])o[f]=d.get?{enumerable:!0,configurable:!0,get:jf.bind(a[f]=[d.get.bind(i)])}:d.value!==void 0?d:void 0;else{let p=a[f];p&&(d.get?p.push(d.get.bind(i)):d.value!==void 0&&p.push(()=>d.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 le(e,...t){if(al&&mr 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)}},gn));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))}},gn)),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 Ln(e){let t,a,o=r=>{let n=Z.context;if(n){let[i,l]=B();Z.count||(Z.count=0),Z.count++,(a||(a=e())).then(u=>{!Z.done&&ka(n),Z.count--,l(()=>u.default),ka()}),t=i}else if(!t){let[i]=qf(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return S(()=>(s=t())?ye(()=>{if(!n||Z.done)return s(r);let i=Z.context;ka(n);let l=s(r);return ka(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function tt(){return Z.context?Z.getNextContextId():`cl-${Xf++}`}function gl(e){let t="fallback"in e&&{fallback:()=>e.fallback};return S(Gf(()=>e.each,e.children,t||void 0))}function hl(e){let t="fallback"in e&&{fallback:()=>e.fallback};return S(Kf(()=>e.each,e.children,t||void 0))}function K(e){let t=e.keyed,a=S(()=>e.when,void 0,void 0),o=t?a:S(a,void 0,{equals:(r,n)=>!r==!n});return S(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?ye(()=>n(t?r:()=>{if(!ye(o))throw ml("Show");return a()})):n}return e.fallback},void 0,void 0)}function xl(e){let t=il(()=>e.children),a=S(()=>{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,f=S(()=>u()?void 0:l.when,void 0,void 0),d=l.keyed?f:S(f,void 0,{equals:(p,c)=>!p==!c});n=()=>u()||(d()?[i,f,l]:void 0)}return n});return S(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?ye(()=>i(s.keyed?n():()=>{if(ye(a)()?.[0]!==r)throw ml("Match");return n()})):i},void 0,void 0)}function Ir(e){return e}function tc(e,t){let a=ec[e];return typeof a=="object"?a[t]?a.$:void 0:a}function nc(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 f=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],f)}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 f=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],f),t[r]=a[n]}else{if(!u){u=new Map;let d=i;for(;d<n;)u.set(a[d],d++)}let f=u.get(t[s]);if(f!=null)if(i<f&&f<n){let d=s,p=1,c;for(;++d<r&&d<n&&!((c=u.get(t[d]))==null||c!==f+p);)p++;if(p>f-i){let m=t[s];for(;i<f;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function bn(e,t,a,o={}){let r;return kt(n=>{r=n,t===document?e():k(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function H(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?()=>ye(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function Mo(e,t=window.document){let a=t[yo]||(t[yo]=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,vl))}}function Cl(e=window.document){if(e[yo]){for(let t of e[yo].keys())e.removeEventListener(t,vl);delete e[yo]}}function R(e,t,a){Ma(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function sc(e,t,a,o){Ma(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function lc(e,t,a){Ma(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function F(e,t){Ma(e)||(t==null?e.removeAttribute("class"):e.className=t)}function In(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 ic(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]||(js(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||(js(e,i,!0),a[i]=l)}return a}function uc(e,t,a){if(!t)return a?R(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 wn(e,t={},a,o){let r={};return o||V(()=>r.children=Io(e,t.children,r.children)),V(()=>typeof t.ref=="function"&&Pa(t.ref,e)),V(()=>dc(e,t,a,!0,r,!0)),r}function Pa(e,t,a){return ye(()=>e(t,a))}function k(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return Io(e,t,o,a);V(r=>Io(e,t(),r,a),o)}function dc(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=Xs(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=Xs(e,s,i,r[s],a,n,t)}}function fc(e){let t,a;return!Ma()||!(t=Z.registry.get(a=pc()))?e():(Z.completed&&Z.completed.add(t),Z.registry.delete(a),t)}function Ma(e){return!!Z.context&&!Z.done&&(!e||e.isConnected)}function cc(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function js(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 Xs(e,t,a,o,r,n,s){let i,l,u,f,d;if(t==="style")return uc(e,a,o);if(t==="classList")return ic(e,a,o);if(a===o)return o;if(t==="ref")n||a(e);else if(t.slice(0,3)==="on:"){let p=t.slice(3);o&&e.removeEventListener(p,o,typeof o!="function"&&o),a&&e.addEventListener(p,a,typeof a!="function"&&a)}else if(t.slice(0,10)==="oncapture:"){let p=t.slice(10);o&&e.removeEventListener(p,o,!0),a&&e.addEventListener(p,a,!0)}else if(t.slice(0,2)==="on"){let p=t.slice(2).toLowerCase(),c=ac.has(p);if(!c&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(p,m)}(c||a)&&(In(e,p,a,c),c&&Mo([p]))}else if(t.slice(0,5)==="attr:")R(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")lc(e,t.slice(5),a);else if((d=t.slice(0,5)==="prop:")||(u=Yf.has(t))||!r&&((f=tc(t,e.tagName))||(l=Zf.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(d)t=t.slice(5),l=!0;else if(Ma(e))return a;t==="class"||t==="className"?F(e,a):i&&!l&&!u?e[cc(t)]=a:e[f||t]=a}else{let p=r&&t.indexOf(":")>-1&&rc[t.split(":")[0]];p?sc(e,p,t,a):R(e,Jf[t]||t,a)}return a}function vl(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 Io(e,t,a,o,r){let n=Ma(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let f=a[u];f.nodeType===8&&f.data.slice(0,2)==="!$"?f.remove():l.push(f)}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=_a(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=_a(e,a,o)}else{if(s==="function")return V(()=>{let l=t();for(;typeof l=="function";)l=l();a=Io(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(hn(l,t,a,r))return V(()=>a=Io(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let f=l[0];if(f.parentNode!==e)return a;let d=[f];for(;(f=f.nextSibling)!==o;)d.push(f);return a=d}if(l.length===0){if(a=_a(e,a,o),i)return a}else u?a.length===0?Qs(e,l,o):nc(e,a,l):(a&&_a(e),Qs(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=_a(e,a,o,t);_a(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function hn(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=hn(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=hn(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let f=String(i);l&&l.nodeType===3&&l.data===f?e.push(l):e.push(document.createTextNode(f))}}return r}function Qs(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function _a(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 pc(){return Z.getNextContextId()}function Ll(e,t=!1){return t?document.createElementNS(mc,e):document.createElement(e)}function Sn(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=xr(),n,s=!!Z.context;return G(()=>{s&&(xr().user=s=!1),n||(n=zf(r,()=>S(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=B(!1),f=()=>u(!0);kt(d=>k(i,()=>l()?d():n(),null)),j(f)}else{let l=Ll(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}),k(u,n),i.appendChild(l),e.ref&&e.ref(l),j(()=>i.removeChild(l))}},void 0,{render:!s}),a}function gc(e,t){let a=S(e);return S(()=>{let o=a();switch(typeof o){case"function":return ye(()=>o(t));case"string":let r=oc.has(o),n=Z.context?fc():Ll(o,r);return wn(n,t,r),n}})}function bl(e){let[,t]=le(e,["component"]);return gc(()=>e.component,t)}function yc(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 Cc(e,t){let a=yc(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 Wa(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function pr(e,t){return e.indexOf(t)!==-1}function Zs(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function St(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function wr(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Al(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function Fl(e){if(pr(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(pr(e,"prototype"))throw new Error("prototype is not allowed as a property");if(pr(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Cn(e,t,a=[]){if(!e)return;if(!da(e)){Wa(e,(n,s)=>Cn(n,t,[...a,...Co(s)]));return}let[o,r]=e;r&&Wa(r,(n,s)=>{Cn(n,t,[...a,...Co(s)])}),t(o,a)}function qc(e,t,a){return Cn(t,(o,r)=>{e=yn(e,r,n=>Oc(n,o,a))}),e}function zc(e,t){function a(o,r){let n=Bc(e,Co(r));o.map(Co).forEach(s=>{e=yn(e,s,()=>n)})}if(da(t)){let[o,r]=t;o.forEach(n=>{e=yn(e,Co(n),()=>e)}),r&&Wa(r,a)}else Wa(t,a);return e}function Nc(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function Hc(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(fn):a[fn(n)]=s.map(fn)}),o?xn(a)?[o]:[o,a]:xn(a)?void 0:a}function Ol(e){return Object.prototype.toString.call(e).slice(8,-1)}function el(e){return Ol(e)==="Array"}function _c(e){if(Ol(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Vc(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 vn(e,t={}){if(el(e))return e.map(r=>vn(r,t));if(!_c(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(el(t.props)&&!t.props.includes(n))return r;let s=e[n],i=vn(s,t);return Vc(r,n,i,e,t.nonenumerable),r},{})}function Da(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function ql(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function zl({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function Aa({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Ul(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Z,tl,Of,mr,al,Po,gr,Vs,ol,et,vo,rl,un,te,O,ja,Ka,fe,De,_e,vr,Uf,Gs,Lo,mn,Wf,gn,Xf,ml,yl,Qf,Zf,Yf,Jf,ec,ac,oc,rc,yo,Ve,mc,hc,Il,xc,vc,Lc,wl,bc,wo,xn,da,Ic,wc,Sc,kc,So,ko,Sl,Pc,Mc,Ys,Dc,Ac,Tc,Rc,Ec,kl,fn,Co,Pl,Ml,Fc,Dl,Tl,Rl,$c,Js,El,Oc,Va,Bc,yn,Uc,$l,ne,kn,Bl,Do,fr,Gc,Nl,Kc,Sr,cr,Hl,Wc,kr,Pn,Pr,ia,Ga,Mn,Ao=xo(()=>{"use strict";A();Z={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return _s(this.context.count)},getNextContextId(){return _s(this.context.count++)}};tl=!1,Of=(e,t)=>e===t,mr=Symbol("solid-proxy"),al=typeof Proxy=="function",Po=Symbol("solid-track"),gr={equals:Of},Vs=null,ol=fl,et=1,vo=2,rl={owned:null,cleanups:null,context:null,owner:null},un={},te=null,O=null,ja=null,Ka=null,fe=null,De=null,_e=null,vr=0;[Uf,Gs]=B(!1);mn=Symbol("fallback");Wf=!1;gn={get(e,t,a){return t===mr?a:e.get(t)},has(e,t){return t===mr?!0:e.has(t)},set:dr,deleteProperty:dr,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:dr,deleteProperty:dr}},ownKeys(e){return e.keys()}};Xf=0;ml=e=>`Stale read from <${e}>.`;yl=void 0,Qf=["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"],Zf=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Qf]),Yf=new Set(["innerHTML","textContent","innerText","children"]),Jf=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ec=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}});ac=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),oc=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"]),rc={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};yo="_$DX_DELEGATE";Ve=!1,mc="http://www.w3.org/2000/svg";hc=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()}},Il=class{constructor(e){this.generateIdentifier=e,this.kv=new hc}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)}},xc=class extends Il{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)}};vc=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Cc(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Lc=e=>Object.prototype.toString.call(e).slice(8,-1),wl=e=>typeof e>"u",bc=e=>e===null,wo=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,xn=e=>wo(e)&&Object.keys(e).length===0,da=e=>Array.isArray(e),Ic=e=>typeof e=="string",wc=e=>typeof e=="number"&&!isNaN(e),Sc=e=>typeof e=="boolean",kc=e=>e instanceof RegExp,So=e=>e instanceof Map,ko=e=>e instanceof Set,Sl=e=>Lc(e)==="Symbol",Pc=e=>e instanceof Date&&!isNaN(e.valueOf()),Mc=e=>e instanceof Error,Ys=e=>typeof e=="number"&&isNaN(e),Dc=e=>Sc(e)||bc(e)||wl(e)||wc(e)||Ic(e)||Sl(e),Ac=e=>typeof e=="bigint",Tc=e=>e===1/0||e===-1/0,Rc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Ec=e=>e instanceof URL,kl=e=>e.replace(/\./g,"\\."),fn=e=>e.map(String).map(kl).join("."),Co=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};Pl=[St(wl,"undefined",()=>null,()=>{}),St(Ac,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),St(Pc,"Date",e=>e.toISOString(),e=>new Date(e)),St(Mc,"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}),St(kc,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),St(ko,"set",e=>[...e.values()],e=>new Set(e)),St(So,"map",e=>[...e.entries()],e=>new Map(e)),St(e=>Ys(e)||Tc(e),"number",e=>Ys(e)?"NaN":e>0?"Infinity":"-Infinity",Number),St(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),St(Ec,"URL",e=>e.toString(),e=>new URL(e))];Ml=wr((e,t)=>Sl(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}),Fc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Dl=wr(Rc,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Fc[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});Tl=wr(Al,(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)}),Rl=wr((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)}),$c=[Tl,Ml,Rl,Dl],Js=(e,t)=>{let a=Zs($c,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=Zs(Pl,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},El={};Pl.forEach(e=>{El[e.annotation]=e});Oc=(e,t,a)=>{if(da(t))switch(t[0]){case"symbol":return Ml.untransform(e,t,a);case"class":return Tl.untransform(e,t,a);case"custom":return Rl.untransform(e,t,a);case"typed-array":return Dl.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=El[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},Va=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Bc=(e,t)=>{Fl(t);for(let a=0;a<t.length;a++){let o=t[a];if(ko(e))e=Va(e,+o);else if(So(e)){let r=+o,n=+t[++a]==0?"key":"value",s=Va(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},yn=(e,t,a)=>{if(Fl(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(da(o)){let i=+s;o=o[i]}else if(wo(o))o=o[s];else if(ko(o)){let i=+s;o=Va(o,i)}else if(So(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",f=Va(o,l);switch(u){case"key":o=f;break;case"value":o=o.get(f);break}}}let r=t[t.length-1];if(da(o)?o[+r]=a(o[+r]):wo(o)&&(o[r]=a(o[r])),ko(o)){let n=Va(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(So(o)){let n=+t[t.length-2],s=Va(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};Uc=(e,t)=>wo(e)||da(e)||So(e)||ko(e)||Al(e,t);$l=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Dc(e);if(!i){Nc(e,r,t);let c=s.get(e);if(c)return o?{transformedValue:null}:c}if(!Uc(e,a)){let c=Js(e,a),m=c?{transformedValue:c.value,annotations:[c.type]}:{transformedValue:e};return i||s.set(e,m),m}if(pr(n,e))return{transformedValue:null};let l=Js(e,a),u=l?.value??e,f=da(u)?[]:{},d={};Wa(u,(c,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=$l(c,t,a,o,[...r,m],[...n,e],s);f[m]=g.transformedValue,da(g.annotations)?d[m]=g.annotations:wo(g.annotations)&&Wa(g.annotations,(h,y)=>{d[kl(m)+"."+y]=h})});let p=xn(d)?{transformedValue:f,annotations:l?[l.type]:void 0}:{transformedValue:f,annotations:l?[l.type,d]:d};return i||s.set(e,p),p};ne=class{constructor({dedupe:e=!1}={}){this.classRegistry=new xc,this.symbolRegistry=new Il(t=>t.description??""),this.customTransformerRegistry=new vc,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=$l(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=Hc(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=vn(t);return a?.values&&(o=qc(o,a.values,this)),a?.referentialEqualities&&(o=zc(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)}};ne.defaultInstance=new ne;ne.serialize=ne.defaultInstance.serialize.bind(ne.defaultInstance);ne.deserialize=ne.defaultInstance.deserialize.bind(ne.defaultInstance);ne.stringify=ne.defaultInstance.stringify.bind(ne.defaultInstance);ne.parse=ne.defaultInstance.parse.bind(ne.defaultInstance);ne.registerClass=ne.defaultInstance.registerClass.bind(ne.defaultInstance);ne.registerSymbol=ne.defaultInstance.registerSymbol.bind(ne.defaultInstance);ne.registerCustom=ne.defaultInstance.registerCustom.bind(ne.defaultInstance);ne.allowErrorProps=ne.defaultInstance.allowErrorProps.bind(ne.defaultInstance);kn=ne.serialize;ne.deserialize;Bl=ne.stringify;ne.parse;ne.registerClass;ne.registerCustom;ne.registerSymbol;ne.allowErrorProps;Do=(e,t=!1)=>{let{json:a}=kn(e);return JSON.stringify(a,null,t?2:void 0)},fr=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Gc=(e,t)=>e.queryHash.localeCompare(t.queryHash),Nl=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Kc=(e,t)=>fr(e)===fr(t)?Nl(e,t):fr(e)>fr(t)?1:-1,Sr={status:Kc,"query hash":Gc,"last updated":Nl},cr=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Hl=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Wc=(e,t)=>cr(e)===cr(t)?Hl(e,t):cr(e)>cr(t)?1:-1,kr={status:Wc,"last updated":Hl},Pn=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Pr=()=>{let[e,t]=B("dark");return _t(()=>{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),j(()=>a.removeEventListener("change",o))}),e},ia=(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,ia(o.get(r),n,a)),o}if(e instanceof Set){let o=ia(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]=ia(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]=ia(o[r],n,a),o}return e},Ga=(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,Ga(a.get(o),r)),a}if(e instanceof Set){let a=Ga(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]=Ga(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]=Ga(a[o],r),a}return e},Mn=(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 Yc(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Jc(e,...t){return typeof e=="function"?e(...t):e}function tp(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 ap(e){let[t,a]=B(),o=e?.throw?(p,c)=>{throw a(p instanceof Error?p:new Error(c)),p}:(p,c)=>{a(p instanceof Error?p:new Error(c))},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(p,c){let m=s.get(c);m||(m=B(void 0,{equals:!1}),s.set(c,m)),m[0]();let g=r.reduce((h,y)=>{if(h!==null||!y)return h;try{return y.getItem(`${n}${c}`)}catch(C){return o(C,`Error reading ${n}${c} from ${y.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,c,e.options):g}}),l=(p,c,m)=>{let g=e?.serializer?e.serializer(c,p,m??e.options):c,h=`${n}${p}`;r.forEach(C=>{try{C.getItem(h)!==g&&C.setItem(h,g)}catch(v){o(v,`Error setting ${n}${p} to ${g} in ${C.name}`)}});let y=s.get(p);y&&y[1]()},u=p=>r.forEach(c=>{try{c.removeItem(`${n}${p}`)}catch(m){o(m,`Error removing ${n}${p} from ${c.name}`)}}),f=()=>r.forEach(p=>{try{p.clear()}catch(c){o(c,`Error clearing ${p.name}`)}}),d=()=>{let p={},c=(m,g)=>{if(!p.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(p[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)c(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)p.hasOwnProperty(h)||c(h,m.getItem(h))}catch(y){o(y,`Error getting all values from ${m.name}`)}}}),p};return e?.sync!==!1&&_t(()=>{let p=c=>{let m=!1;r.forEach(g=>{try{g!==c.storageArea&&c.key&&c.newValue!==g.getItem(c.key)&&(c.newValue?g.setItem(c.key,c.newValue):g.removeItem(c.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${c.key}=${c.newValue})`)}}),m&&c.key&&s.get(c.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),j(()=>globalThis.removeEventListener("storage",p))):(r.forEach(c=>c.addEventListener?.("storage",p)),j(()=>r.forEach(c=>c.removeEventListener?.("storage",p))))}),[i,l,{clear:f,error:t,remove:u,toJSON:d}]}function W(){return Ae(No)}function Ue(){return Ae(Ho)}function cp(e){return e.replace(fp,t=>Ni[t])}function Kl(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:Ye.MATCHES,!a.accessors){let s=Wl(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=hp(e,a.accessors),n={rankedValue:e,rank:Ye.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=Wl(i.itemValue,t,a),{minRanking:u,maxRanking:f,threshold:d=a.threshold}=i.attributes;l<u&&l>=Ye.MATCHES?l=u:l>f&&(l=f),l=Math.min(l,f),l>=d&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=d,n.rankedValue=i.itemValue)}return n}function Wl(e,t,a){return e=jl(e,a),t=jl(t,a),t.length>e.length?Ye.NO_MATCH:e===t?Ye.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Ye.EQUAL:e.startsWith(t)?Ye.STARTS_WITH:e.includes(` ${t}`)?Ye.WORD_STARTS_WITH:e.includes(t)?Ye.CONTAINS:t.length===1?Ye.NO_MATCH:pp(e).includes(t)?Ye.ACRONYM:mp(e,t))}function pp(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function mp(e,t){let a=0,o=0;function r(l,u,f){for(let d=f,p=u.length;d<p;d++)if(u[d]===l)return a+=1,d+1;return-1}function n(l){let u=1/l,f=a/t.length;return Ye.MATCHES+f*u}let s=r(t[0],e,0);if(s<0)return Ye.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let f=t[l];if(o=r(f,e,o),!(o>-1))return Ye.NO_MATCH}let i=o-s;return n(i)}function jl(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=cp(e)),e}function gp(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 hp(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=xp(n),i=gp(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function xp(e){return typeof e=="function"?Xl:{...Xl,...e}}function ee(e){let t=this||{},a=e.call?e(t.p):e;return bp(a.unshift?a.raw?Ip(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,Cp(t.target),t.g,t.o,t.k)}function _i(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=_i(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function z(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=_i(e))&&(o&&(o+=" "),o+=t);return o}function wp(e,t){let a=ye(e);if(Ve){let d=a.slice();return()=>d}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=B([],{equals:!1}),[l]=ll(),u=d=>{i(p=>(p.push.apply(p,d),p));for(let p of d)n.delete(p)},f=(d,p,c)=>d.splice(c,0,p);return S(d=>{let p=s(),c=e();if(c[Po],ye(l))return l(),d;if(p.length){let m=d.filter(g=>!p.includes(g));return p.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return ye(()=>{let m=new Set(c),g=c.slice(),h=[],y=[],C=[];for(let L of c)(r.has(L)?C:h).push(L);let v=!h.length;for(let L=0;L<d.length;L++){let b=d[L];m.has(b)||(n.has(b)||(y.push(b),n.add(b)),f(g,b,L)),v&&b!==g[L]&&(v=!1)}return!y.length&&v?d:(o({list:g,added:h,removed:y,unchanged:C,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function Xe(...e){return Yc(e)}function On(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return On(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=On(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function Sp(e,t=Zl,a=Zl){let o=S(e),r=S(()=>On(o(),Ve?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function kp(e){return S(()=>{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 Vi(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Pp(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())}),Vi(()=>{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 Mp(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()),Vi(()=>{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 Jl(e){for(let t of e)t.dispose()}function Dp(e,t,a,o={}){if(Ve){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 j(()=>Jl(r.values())),()=>{let s=e()||[];return s[Po],ye(()=>{if(!s.length)return Jl(r.values()),r.clear(),o.fallback?[kt(d=>(r.set(Dn,{dispose:d}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(Dn);if(!r.size||l){l?.dispose(),r.delete(Dn);for(let f=0;f<s.length;f++){let d=s[f],p=t(d,f);n(i,d,f,p)}return i}let u=new Set(r.keys());for(let f=0;f<s.length;f++){let d=s[f],p=t(d,f);u.delete(p);let c=r.get(p);c?(i[f]=c.mapped,c.setIndex?.(f),c.setItem(()=>d)):n(i,d,f,p)}for(let f of u)r.get(f)?.dispose(),r.delete(f);return i})};function n(s,i,l,u){kt(f=>{let[d,p]=B(i),c={setItem:p,dispose:f};if(a.length>1){let[m,g]=B(l);c.setIndex=g,c.mapped=a(d,m)}else c.mapped=a(d);r.set(u,c),s[l]=c.mapped})}}function Tr(e){let{by:t}=e;return S(Dp(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Ap(e,t,a,o){return e.addEventListener(t,a,o),ep(e.removeEventListener.bind(e,t,a,o))}function Tp(e,t,a,o){if(Ve)return;let r=()=>{Fn(T(e)).forEach(n=>{n&&Fn(T(t)).forEach(s=>Ap(n,s,a,o))})};typeof e=="function"?G(r):V(r)}function Rp(e,t){if(Ve)return{observe:_l,unobserve:_l};let a=new ResizeObserver(e);return j(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function Gi(e,t,a){if(Ve)return;let o=new WeakMap,{observe:r,unobserve:n}=Rp(s=>{for(let i of s){let{contentRect:l,target:u}=i,f=Math.round(l.width),d=Math.round(l.height),p=o.get(u);(!p||p.width!==f||p.height!==d)&&(t(l,u,i),o.set(u,{width:f,height:d}))}},a);G(s=>{let i=Zc(Fn(T(e)));return tp(i,s,r,n),i},[])}function ei(e){let t={},a;for(;a=Ep.exec(e);)t[a[1]]=a[2];return t}function Nr(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=ei(e)}else typeof t=="string"&&(t=ei(t));return{...e,...t}}function Fp(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function Bn(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function $p(e){return typeof e=="number"}function Za(e){return Object.prototype.toString.call(e)==="[object String]"}function Op(e){return typeof e=="function"}function _o(e){return t=>`${e()}-${t}`}function ft(e,t){return e?e===t||e.contains(t):!1}function Fo(e,t=!1){let{activeElement:a}=Dt(e);if(!a?.nodeName)return null;if(Ki(a)&&a.contentDocument)return Fo(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Dt(a).getElementById(o);if(r)return r}}return a}function Bp(e){return Dt(e).defaultView||window}function Dt(e){return e?e.ownerDocument||e:document}function Ki(e){return e.tagName==="IFRAME"}function jn(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Hr(){return jn(/^Mac/i)}function qp(){return jn(/^iPhone/i)}function zp(){return jn(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1}function Up(){return qp()||zp()}function Np(){return Hr()||Up()}function Se(e,t){return t&&(Op(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function ze(e){return t=>{for(let a of e)Se(t,a)}}function Hp(e){return Hr()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Ke(e){if(e)if(_p())e.focus({preventScroll:!0});else{let t=Vp(e);e.focus(),Gp(t)}}function _p(){if(Mr==null){Mr=!1;try{document.createElement("div").focus({get preventScroll(){return Mr=!0,!0}})}catch{}}return Mr}function Vp(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 Gp(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function ji(e,t){let o=Array.from(e.querySelectorAll(Xn)).filter(ti);return t&&ti(e)&&o.unshift(e),o.forEach((r,n)=>{if(Ki(r)&&r.contentDocument){let s=r.contentDocument.body,i=ji(s,!1);o.splice(n,1,...i)}}),o}function ti(e){return Xi(e)&&!jp(e)}function Xi(e){return e.matches(Xn)&&Qn(e)}function jp(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Qn(e,t){return e.nodeName!=="#comment"&&Xp(e)&&Qp(e,t)&&(!e.parentElement||Qn(e.parentElement,e))}function Xp(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 Qp(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Zp(e,t,a){let o=t?.tabbable?Wp:Xn,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Qn(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function ai(e){for(;e&&!Yp(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Yp(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Jp(){}function em(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,f]=t[i],[d,p]=t[l],[,c]=t[l===0?s-1:l-1]||[0,0],m=(f-p)*(a-u)-(u-d)*(o-f);if(p<f){if(o>=p&&o<f){if(m===0)return!0;m>0&&(o===p?o>c&&(r=!r):r=!r)}}else if(f<p){if(o>f&&o<=p){if(m===0)return!0;m<0&&(o===p?o<c&&(r=!r):r=!r)}}else if(o==f&&(a>=d&&a<=u||a>=u&&a<=d))return!0}return r}function se(e,t){return J(e,t)}function ri(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=To.get(a.target);o||(o=new Set,To.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=To.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),To.delete(a.target)),To.size===0)){for(let r of oi)r();oi.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function qn(e,t){let a=ni(e,t,"left"),o=ni(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 ni(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 tm(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=ai(e);for(;e&&r&&e!==a&&r!==a;)qn(r,e),e=r,r=ai(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 _r(e,t){let[a,o]=B(si(t?.()));return G(()=>{o(e()?.tagName.toLowerCase()||si(t?.()))}),a}function si(e){return Za(e)?e:void 0}function ke(e){let[t,a]=le(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return x(bl,J(a,{get component(){return t.as}}))}function om(e){let t=`form-control-${tt()}`,a=se({id:t},e),[o,r]=B(),[n,s]=B(),[i,l]=B(),[u,f]=B(),d=(g,h,y)=>{let C=y!=null||o()!=null;return[y,o(),C&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,c=S(()=>({"data-valid":T(a.validationState)==="valid"?"":void 0,"data-invalid":T(a.validationState)==="invalid"?"":void 0,"data-required":T(a.required)?"":void 0,"data-disabled":T(a.disabled)?"":void 0,"data-readonly":T(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>T(a.name)??T(a.id),dataset:c,validationState:()=>T(a.validationState),isRequired:()=>T(a.required),isDisabled:()=>T(a.disabled),isReadOnly:()=>T(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:d,getAriaDescribedBy:p,generateId:_o(()=>T(a.id)),registerLabel:ct(r),registerField:ct(s),registerDescription:ct(l),registerErrorMessage:ct(f)}}}function Vo(){let e=Ae(Zi);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Yi(e){let t=Vo(),a=se({id:t.generateId("description")},e);return G(()=>j(t.registerDescription(a.id))),x(ke,J({as:"div"},()=>t.dataset(),a))}function Ji(e){let t=Vo(),a=se({id:t.generateId("error-message")},e),[o,r]=le(a,["forceMount"]),n=()=>t.validationState()==="invalid";return G(()=>{n()&&j(t.registerErrorMessage(r.id))}),x(K,{get when(){return o.forceMount||n()},get children(){return x(ke,J({as:"div"},()=>t.dataset(),r))}})}function rm(e){let t,a=Vo(),o=se({id:a.generateId("label")},e),[r,n]=le(o,["ref"]),s=_r(()=>t,()=>"label");return G(()=>j(a.registerLabel(n.id))),x(ke,J({as:"label",ref(i){let l=Xe(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return S(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function nm(e,t){G(Pt(e,a=>{if(a==null)return;let o=sm(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),j(()=>{o.removeEventListener("reset",t)}))}))}function sm(e){return lm(e)?e.form:e.closest("form")}function lm(e){return e.matches("textarea, input, select, button")}function Go(e){let[t,a]=B(e.defaultValue?.()),o=S(()=>e.value?.()!==void 0),r=S(()=>o()?e.value?.():t());return[r,s=>{ye(()=>{let i=Jc(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function eu(e){let[t,a]=Go(e);return[()=>t()??!1,a]}function im(e){let[t,a]=Go(e);return[()=>t()??[],a]}function um(e={}){let[t,a]=eu({value:()=>T(e.isSelected),defaultValue:()=>!!T(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&a(n)},toggle:()=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&a(!t())}}}function au(){return Ae(tu)}function fm(){let e=au();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function ou(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function cm(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&&ou(r,a))return o+1}return 0}function pm(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:ou(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function ru(e,t){let a=pm(e);e!==a&&t(a)}function mm(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 Dt(o).body}function gm(e,t){G(()=>{let a=setTimeout(()=>{ru(e(),t)});j(()=>clearTimeout(a))})}function hm(e,t){if(typeof IntersectionObserver!="function"){gm(e,t);return}let a=[];G(()=>{let o=()=>{let s=!!a.length;a=e(),s&&ru(e(),t)},r=mm(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}j(()=>n.disconnect())})}function xm(e={}){let[t,a]=im({value:()=>T(e.items),onChange:n=>e.onItemsChange?.(n)});hm(t,a);let o=n=>(a(s=>{let i=cm(s,n);return Fp(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>x(tu.Provider,{value:{registerItem:o},get children(){return n.children}})}}function ym(e){let t=fm(),a=se({shouldRegisterItem:!0},e);G(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());j(o)})}function nu(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",f=Za(u)?l[u]:u(l);return f!=null?String(f):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",f=Za(u)?l[u]:u(l);return f!=null?String(f):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(Za(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return Za(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(Za(l)||$p(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 f=nu({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...f),t+=f.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 Cm(e,t=[]){return S(()=>{let a=nu({dataSource:T(e.dataSource),getKey:T(e.getKey),getTextValue:T(e.getTextValue),getDisabled:T(e.getDisabled),getSectionChildren:T(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function bm(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return vm.has(a)}let t=e.split("-")[0];return Lm.has(t)}function Im(e){return bm(e)?"rtl":"ltr"}function su(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Im(e)}}function li(){zn=su();for(let e of $o)e(zn)}function wm(){let e={locale:"en-US",direction:"ltr"},[t,a]=B(zn),o=S(()=>Ve?e:t());return _t(()=>{$o.size===0&&window.addEventListener("languagechange",li),$o.add(a),j(()=>{$o.delete(a),$o.size===0&&window.removeEventListener("languagechange",li)})}),{locale:()=>o().locale,direction:()=>o().direction}}function ha(){let e=wm();return Ae(Sm)||e}function km(e){let{locale:t}=ha(),a=S(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return S(()=>{let o=a(),r;return An.has(o)&&(r=An.get(o)),r||(r=new Intl.Collator(t(),e),An.set(o,r)),r})}function Pm(e){let[t,a]=Go(e);return[()=>t()??new Gt,a]}function iu(e){return Np()?e.altKey:e.ctrlKey}function Ya(e){return Hr()?e.metaKey:e.ctrlKey}function ii(e){return new Gt(e)}function Mm(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function Dm(e){let t=se({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=B(!1),[r,n]=B(),s=S(()=>{let g=T(t.selectedKeys);return g!=null?ii(g):g}),i=S(()=>{let g=T(t.defaultSelectedKeys);return g!=null?ii(g):new Gt}),[l,u]=Pm({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[f,d]=B(T(t.selectionBehavior)),p=()=>T(t.selectionMode),c=()=>T(t.disallowEmptySelection)??!1,m=g=>{(T(t.allowDuplicateSelectionEvents)||!Mm(g,l()))&&u(g)};return G(()=>{let g=l();T(t.selectionBehavior)==="replace"&&f()==="toggle"&&typeof g=="object"&&g.size===0&&d("replace")}),G(()=>{d(T(t.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:c,selectionBehavior:f,setSelectionBehavior:d,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function Am(e){let[t,a]=B(""),[o,r]=B(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(T(e.isDisabled))return;let i=T(e.keyboardDelegate),l=T(e.selectionManager);if(!i.getKeyForSearch)return;let u=Tm(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let f=a(p=>p+u),d=i.getKeyForSearch(f,l.focusedKey())??i.getKeyForSearch(f);d==null&&Rm(f)&&(f=f[0],d=i.getKeyForSearch(f,l.focusedKey())??i.getKeyForSearch(f)),d!=null&&(l.setFocusedKey(d),e.onTypeSelect?.(d)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function Tm(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Rm(e){return e.split("").every(t=>t===e[0])}function Em(e,t,a){let r=J({selectOnFocus:()=>T(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=ha(),i={top:0,left:0};Tp(()=>T(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=Am({isDisabled:()=>T(r.disallowTypeAhead),keyboardDelegate:()=>T(r.keyboardDelegate),selectionManager:()=>T(r.selectionManager)}),u=()=>T(r.orientation)??"vertical",f=h=>{Se(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let y=t();if(!y?.contains(h.target))return;let C=T(r.selectionManager),v=T(r.selectOnFocus),L=E=>{E!=null&&(C.setFocusedKey(E),h.shiftKey&&C.selectionMode()==="multiple"?C.extendSelection(E):v&&!iu(h)&&C.replaceSelection(E))},b=T(r.keyboardDelegate),D=T(r.shouldFocusWrap),I=C.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(b.getKeyBelow){h.preventDefault();let E;I!=null?E=b.getKeyBelow(I):E=b.getFirstKey?.(),E==null&&D&&(E=b.getFirstKey?.(I)),L(E)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(b.getKeyAbove){h.preventDefault();let E;I!=null?E=b.getKeyAbove(I):E=b.getLastKey?.(),E==null&&D&&(E=b.getLastKey?.(I)),L(E)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(b.getKeyLeftOf){h.preventDefault();let E=s()==="rtl",w;I!=null?w=b.getKeyLeftOf(I):w=E?b.getFirstKey?.():b.getLastKey?.(),L(w)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(b.getKeyRightOf){h.preventDefault();let E=s()==="rtl",w;I!=null?w=b.getKeyRightOf(I):w=E?b.getLastKey?.():b.getFirstKey?.(),L(w)}break}case"Home":if(b.getFirstKey){h.preventDefault();let E=b.getFirstKey(I,Ya(h));E!=null&&(C.setFocusedKey(E),Ya(h)&&h.shiftKey&&C.selectionMode()==="multiple"?C.extendSelection(E):v&&C.replaceSelection(E))}break;case"End":if(b.getLastKey){h.preventDefault();let E=b.getLastKey(I,Ya(h));E!=null&&(C.setFocusedKey(E),Ya(h)&&h.shiftKey&&C.selectionMode()==="multiple"?C.extendSelection(E):v&&C.replaceSelection(E))}break;case"PageDown":if(b.getKeyPageBelow&&I!=null){h.preventDefault();let E=b.getKeyPageBelow(I);L(E)}break;case"PageUp":if(b.getKeyPageAbove&&I!=null){h.preventDefault();let E=b.getKeyPageAbove(I);L(E)}break;case"a":Ya(h)&&C.selectionMode()==="multiple"&&T(r.disallowSelectAll)!==!0&&(h.preventDefault(),C.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),T(r.disallowEmptySelection)||C.clearSelection());break;case"Tab":if(!T(r.allowsTabNavigation)){if(h.shiftKey)y.focus();else{let E=Zp(y,{tabbable:!0}),w,M;do M=E.lastChild(),M&&(w=M);while(M);w&&!w.contains(document.activeElement)&&Ke(w)}break}}},d=h=>{let y=T(r.selectionManager),C=T(r.keyboardDelegate),v=T(r.selectOnFocus);if(y.isFocused()){h.currentTarget.contains(h.target)||y.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(y.setFocused(!0),y.focusedKey()==null){let L=D=>{D!=null&&(y.setFocusedKey(D),v&&y.replaceSelection(D))},b=h.relatedTarget;b&&h.currentTarget.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?L(y.lastSelectedKey()??C.getLastKey?.()):L(y.firstSelectedKey()??C.getFirstKey?.())}else if(!T(r.isVirtualized)){let L=n();if(L){L.scrollTop=i.top,L.scrollLeft=i.left;let b=L.querySelector(`[data-key="${y.focusedKey()}"]`);b&&(Ke(b),qn(L,b))}}}},p=h=>{let y=T(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||y.setFocused(!1)},c=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=T(r.autoFocus);if(!h)return;let y=T(r.selectionManager),C=T(r.keyboardDelegate),v;h==="first"&&(v=C.getFirstKey?.()),h==="last"&&(v=C.getLastKey?.());let L=y.selectedKeys();L.size&&(v=L.values().next().value),y.setFocused(!0),y.setFocusedKey(v);let b=t();b&&v==null&&!T(r.shouldUseVirtualFocus)&&Ke(b)};return _t(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),G(Pt([n,()=>T(r.isVirtualized),()=>T(r.selectionManager).focusedKey()],h=>{let[y,C,v]=h;if(C)v&&r.scrollToKey?.(v);else if(v&&y){let L=y.querySelector(`[data-key="${v}"]`);L&&qn(y,L)}})),{tabIndex:S(()=>{if(!T(r.shouldUseVirtualFocus))return T(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:f,onMouseDown:c,onFocusIn:d,onFocusOut:p}}function uu(e,t){let a=()=>T(e.selectionManager),o=()=>T(e.key),r=()=>T(e.shouldUseVirtualFocus),n=C=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):C?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||Ya(C)||"pointerType"in C&&C.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>T(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,f=C=>{l()&&(u=C.pointerType,C.pointerType==="mouse"&&C.button===0&&!T(e.shouldSelectOnPressUp)&&n(C))},d=C=>{l()&&C.pointerType==="mouse"&&C.button===0&&T(e.shouldSelectOnPressUp)&&T(e.allowsDifferentPressOrigin)&&n(C)},p=C=>{l()&&(T(e.shouldSelectOnPressUp)&&!T(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(C)},c=C=>{!l()||!["Enter"," "].includes(C.key)||(iu(C)?a().toggleSelection(o()):n(C))},m=C=>{i()&&C.preventDefault()},g=C=>{let v=t();r()||i()||!v||C.target===v&&a().setFocusedKey(o())},h=S(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),y=S(()=>T(e.virtualized)?void 0:o());return G(Pt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([C,v,L,b,D])=>{C&&v===b&&D&&!L&&document.activeElement!==C&&(e.focus?e.focus():Ke(C))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:y,onPointerDown:f,onPointerUp:d,onClick:p,onKeyDown:c,onMouseDown:m,onFocus:g}}function $m(e){let t=Dm(e),o=Cm({dataSource:()=>T(e.dataSource),getKey:()=>T(e.getKey),getTextValue:()=>T(e.getTextValue),getDisabled:()=>T(e.getDisabled),getSectionChildren:()=>T(e.getSectionChildren),factory:n=>e.filter?new ui(e.filter(n)):new ui(n)},[()=>e.filter]),r=new Fm(o,t);return hr(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Bo(e){return Wt.findIndex(t=>t.node===e)}function qm(e){return Wt[Bo(e)]}function zm(e){return Wt[Wt.length-1].node===e}function cu(){return Wt.filter(e=>e.isPointerBlocking)}function Um(){return[...cu()].slice(-1)[0]}function Zn(){return cu().length>0}function pu(e){let t=Bo(Um()?.node);return Bo(e)<t}function Nm(e){Wt.push(e)}function Hm(e){let t=Bo(e);t<0||Wt.splice(t,1)}function _m(){for(let{node:e}of Wt)e.style.pointerEvents=pu(e)?"none":"auto"}function Vm(e){if(Zn()&&!Un){let t=Dt(e);fu=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Un=!0}}function Gm(e){if(Zn())return;let t=Dt(e);t.body.style.pointerEvents=fu,t.body.style.length===0&&t.body.removeAttribute("style"),Un=!1}function jm(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Wm.indexOf(e.type)!==-1:!1}function Yn(e){let t,a=se({type:"button"},e),[o,r]=le(a,["ref","type","disabled"]),n=_r(()=>t,()=>"button"),s=S(()=>{let u=n();return u==null?!1:jm({tagName:u,type:o.type})}),i=S(()=>n()==="input"),l=S(()=>n()==="a"&&t?.getAttribute("href")!=null);return x(ke,J({as:"button",ref(u){let f=Xe(d=>t=d,o.ref);typeof f=="function"&&f(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 Nn(e,t,a){return rt(e,Mt(t,a))}function $a(e,t){return typeof e=="function"?e(t):e}function ma(e){return e.split("-")[0]}function to(e){return e.split("-")[1]}function mu(e){return e==="x"?"y":"x"}function Jn(e){return e==="y"?"height":"width"}function Ea(e){return["top","bottom"].includes(ma(e))?"y":"x"}function es(e){return mu(Ea(e))}function Jm(e,t,a){a===void 0&&(a=!1);let o=to(e),r=es(e),n=Jn(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Fr(s)),[s,Fr(s)]}function eg(e){let t=Fr(e);return[Hn(e),t,Hn(t)]}function Hn(e){return e.replace(/start|end/g,t=>Ym[t])}function tg(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 ag(e,t,a,o){let r=to(e),n=tg(ma(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Hn)))),n}function Fr(e){return e.replace(/left|right|bottom|top/g,t=>Zm[t])}function og(e){return{top:0,right:0,bottom:0,left:0,...e}}function gu(e){return typeof e!="number"?og(e):{top:e,right:e,bottom:e,left:e}}function $r(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 di(e,t,a){let{reference:o,floating:r}=e,n=Ea(t),s=es(t),i=Jn(s),l=ma(t),u=n==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2,c;switch(l){case"top":c={x:f,y:o.y-r.height};break;case"bottom":c={x:f,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:d};break;case"left":c={x:o.x-r.width,y:d};break;default:c={x:o.x,y:o.y}}switch(to(t)){case"start":c[s]-=p*(a&&u?-1:1);break;case"end":c[s]+=p*(a&&u?-1:1);break}return c}async function qo(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:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:c=0}=$a(t,e),m=gu(c),h=i[p?d==="floating"?"reference":"floating":d],y=$r(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:f,strategy:l})),C=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,v=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),L=await(n.isElement==null?void 0:n.isElement(v))?await(n.getScale==null?void 0:n.getScale(v))||{x:1,y:1}:{x:1,y:1},b=$r(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:v,strategy:l}):C);return{top:(y.top-b.top+m.top)/L.y,bottom:(b.bottom-y.bottom+m.bottom)/L.y,left:(y.left-b.left+m.left)/L.x,right:(b.right-y.right+m.right)/L.x}}function fi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ci(e){return Qm.some(t=>e[t]>=0)}async function ig(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=ma(a),i=to(a),l=Ea(a)==="y",u=["left","top"].includes(s)?-1:1,f=n&&l?-1:1,d=$a(t,e),{mainAxis:p,crossAxis:c,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(c=i==="end"?m*-1:m),l?{x:c*f,y:p*u}:{x:p*u,y:c*f}}function ao(e){return hu(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jt(e){var t;return(t=(hu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hu(e){return e instanceof Node||e instanceof nt(e).Node}function Ct(e){return e instanceof Element||e instanceof nt(e).Element}function At(e){return e instanceof HTMLElement||e instanceof nt(e).HTMLElement}function pi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot}function Ko(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function cg(e){return["table","td","th"].includes(ao(e))}function Gr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ts(e){let t=as(),a=Ct(e)?vt(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 pg(e){let t=ga(e);for(;At(t)&&!eo(t);){if(ts(t))return t;if(Gr(t))return null;t=ga(t)}return null}function as(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eo(e){return["html","body","#document"].includes(ao(e))}function vt(e){return nt(e).getComputedStyle(e)}function Kr(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ga(e){if(ao(e)==="html")return e;let t=e.assignedSlot||e.parentNode||pi(e)&&e.host||jt(e);return pi(t)?t.host:t}function xu(e){let t=ga(e);return eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:At(t)&&Ko(t)?t:xu(t)}function zo(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=xu(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=nt(r);return n?t.concat(s,s.visualViewport||[],Ko(r)?r:[],s.frameElement&&a?zo(s.frameElement):[]):t.concat(r,zo(r,[],a))}function yu(e){let t=vt(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=At(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Er(a)!==n||Er(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function os(e){return Ct(e)?e:e.contextElement}function Ja(e){let t=os(e);if(!At(t))return pa(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=yu(t),s=(n?Er(a.width):a.width)/o,i=(n?Er(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function Cu(e){let t=nt(e);return!as()||!t.visualViewport?mg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gg(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==nt(e)?!1:t}function Fa(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=os(e),s=pa(1);t&&(o?Ct(o)&&(s=Ja(o)):s=Ja(e));let i=gg(n,a,o)?Cu(n):pa(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(n){let p=nt(n),c=o&&Ct(o)?nt(o):o,m=p,g=m.frameElement;for(;g&&o&&c!==m;){let h=Ja(g),y=g.getBoundingClientRect(),C=vt(g),v=y.left+(g.clientLeft+parseFloat(C.paddingLeft))*h.x,L=y.top+(g.clientTop+parseFloat(C.paddingTop))*h.y;l*=h.x,u*=h.y,f*=h.x,d*=h.y,l+=v,u+=L,m=nt(g),g=m.frameElement}}return $r({width:f,height:d,x:l,y:u})}function hg(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=jt(o),i=t?Gr(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=pa(1),f=pa(0),d=At(o);if((d||!d&&!n)&&((ao(o)!=="body"||Ko(s))&&(l=Kr(o)),At(o))){let p=Fa(o);u=Ja(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+f.x,y:a.y*u.y-l.scrollTop*u.y+f.y}}function xg(e){return Array.from(e.getClientRects())}function vu(e){return Fa(jt(e)).left+Kr(e).scrollLeft}function yg(e){let t=jt(e),a=Kr(e),o=e.ownerDocument.body,r=rt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=rt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+vu(e),i=-a.scrollTop;return vt(o).direction==="rtl"&&(s+=rt(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function Cg(e,t){let a=nt(e),o=jt(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=as();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function vg(e,t){let a=Fa(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=At(e)?Ja(e):pa(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 mi(e,t,a){let o;if(t==="viewport")o=Cg(e,a);else if(t==="document")o=yg(jt(e));else if(Ct(t))o=vg(t,a);else{let r=Cu(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return $r(o)}function Lu(e,t){let a=ga(e);return a===t||!Ct(a)||eo(a)?!1:vt(a).position==="fixed"||Lu(a,t)}function Lg(e,t){let a=t.get(e);if(a)return a;let o=zo(e,[],!1).filter(i=>Ct(i)&&ao(i)!=="body"),r=null,n=vt(e).position==="fixed",s=n?ga(e):e;for(;Ct(s)&&!eo(s);){let i=vt(s),l=ts(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Ko(s)&&!l&&Lu(e,s))?o=o.filter(f=>f!==s):r=i,s=ga(s)}return t.set(e,o),o}function bg(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Gr(t)?[]:Lg(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,f)=>{let d=mi(t,f,r);return u.top=rt(d.top,u.top),u.right=Mt(d.right,u.right),u.bottom=Mt(d.bottom,u.bottom),u.left=rt(d.left,u.left),u},mi(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ig(e){let{width:t,height:a}=yu(e);return{width:t,height:a}}function wg(e,t,a){let o=At(t),r=jt(t),n=a==="fixed",s=Fa(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=pa(0);if(o||!o&&!n)if((ao(t)!=="body"||Ko(r))&&(i=Kr(t)),o){let d=Fa(t,!0,n,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&(l.x=vu(r));let u=s.left+i.scrollLeft-l.x,f=s.top+i.scrollTop-l.y;return{x:u,y:f,width:s.width,height:s.height}}function Tn(e){return vt(e).position==="static"}function gi(e,t){return!At(e)||vt(e).position==="fixed"?null:t?t(e):e.offsetParent}function bu(e,t){let a=nt(e);if(Gr(e))return a;if(!At(e)){let r=ga(e);for(;r&&!eo(r);){if(Ct(r)&&!Tn(r))return r;r=ga(r)}return a}let o=gi(e,t);for(;o&&cg(o)&&Tn(o);)o=gi(o,t);return o&&eo(o)&&Tn(o)&&!ts(o)?a:o||pg(e)||a}function kg(e){return vt(e).direction==="rtl"}function Pg(e,t){let a=null,o,r=jt(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:f,width:d,height:p}=e.getBoundingClientRect();if(i||t(),!d||!p)return;let c=Dr(f),m=Dr(r.clientWidth-(u+d)),g=Dr(r.clientHeight-(f+p)),h=Dr(u),C={rootMargin:-c+"px "+-m+"px "+-g+"px "+-h+"px",threshold:rt(0,Mt(1,l))||1},v=!0;function L(b){let D=b[0].intersectionRatio;if(D!==l){if(!v)return s();D?s(!1,D):o=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{a=new IntersectionObserver(L,{...C,root:r.ownerDocument})}catch{a=new IntersectionObserver(L,C)}a.observe(e)}return s(!0),n}function Mg(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=os(e),f=r||n?[...u?zo(u):[],...zo(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",a,{passive:!0}),n&&y.addEventListener("resize",a)});let d=u&&i?Pg(u,a):null,p=-1,c=null;s&&(c=new ResizeObserver(y=>{let[C]=y;C&&C.target===u&&c&&(c.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=c)==null||v.observe(t)})),a()}),u&&!l&&c.observe(u),c.observe(t));let m,g=l?Fa(e):null;l&&h();function h(){let y=Fa(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&a(),g=y,m=requestAnimationFrame(h)}return a(),()=>{var y;f.forEach(C=>{r&&C.removeEventListener("scroll",a),n&&C.removeEventListener("resize",a)}),d?.(),(y=c)==null||y.disconnect(),c=null,l&&cancelAnimationFrame(m)}}function ns(){let e=Ae(rs);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function ss(e){let t=ns(),a=se({size:_n},e),[o,r]=le(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=qg(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",f=()=>Number.parseInt(u())*2*(_n/o.size),d=()=>`rotate(${Bg[n()]} ${hi} ${hi}) translate(0 2)`;return x(ke,J({as:"div",ref(p){let c=Xe(t.setArrowRef,o.ref);typeof c=="function"&&c(p)},"aria-hidden":"true",get style(){return Nr({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":f()},o.style)}},r,{get children(){let p=Og(),c=p.firstChild;return V(()=>R(c,"transform",d())),p}}))}function qg(e){let[t,a]=B();return G(()=>{let o=e();o&&a(Bp(o).getComputedStyle(o))}),t}function zg(e){let t=ns(),[a,o]=le(e,["ref","style"]);return x(ke,J({as:"div",ref(r){let n=Xe(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return Nr({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function xi(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 Ug(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?xi(o):e?e.getBoundingClientRect():xi()}}}function Ng(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function _g(e,t){let[a,o]=e.split("-"),r=Hg[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 Vg(e){let t=se({getAnchorRect:p=>p?.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]=B(),[r,n]=B(),[s,i]=B(t.placement),l=()=>Ug(t.anchorRef?.(),t.getAnchorRect),{direction:u}=ha();async function f(){let p=l(),c=a(),m=r();if(!p||!c)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;c.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let y=[Dg(({placement:D})=>{let I=!!D.split("-")[1];return{mainAxis:h,crossAxis:I?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let D=typeof t.flip=="string"?t.flip.split(" "):void 0;if(D!==void 0&&!D.every(Ng))throw new Error("`flip` expects a spaced-delimited list of placements");y.push(Tg({padding:t.overflowPadding,fallbackPlacements:D}))}(t.slide||t.overlap)&&y.push(Ag({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),y.push(Rg({padding:t.overflowPadding,apply({availableWidth:D,availableHeight:I,rects:E}){let w=Math.round(E.reference.width);D=Math.floor(D),I=Math.floor(I),c.style.setProperty("--kb-popper-anchor-width",`${w}px`),c.style.setProperty("--kb-popper-content-available-width",`${D}px`),c.style.setProperty("--kb-popper-content-available-height",`${I}px`),t.sameWidth&&(c.style.width=`${w}px`),t.fitViewport&&(c.style.maxWidth=`${D}px`,c.style.maxHeight=`${I}px`)}})),t.hideWhenDetached&&y.push(Eg({padding:t.detachedPadding})),m&&y.push(Fg({element:m,padding:t.arrowPadding}));let C=await $g(p,c,{placement:t.placement,strategy:"absolute",middleware:y,platform:{...Iu,isRTL:()=>u()==="rtl"}});if(i(C.placement),t.onCurrentPlacementChange?.(C.placement),!c)return;c.style.setProperty("--kb-popper-content-transform-origin",_g(C.placement,u()));let v=Math.round(C.x),L=Math.round(C.y),b;if(t.hideWhenDetached&&(b=C.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(c.style,{top:"0",left:"0",transform:`translate3d(${v}px, ${L}px, 0)`,visibility:b}),m&&C.middlewareData.arrow){let{x:D,y:I}=C.middlewareData.arrow,E=C.placement.split("-")[0];Object.assign(m.style,{left:D!=null?`${D}px`:"",top:I!=null?`${I}px`:"",[E]:"100%"})}}G(()=>{let p=l(),c=a();if(!p||!c)return;let m=Mg(p,c,f,{elementResize:typeof ResizeObserver=="function"});j(m)}),G(()=>{let p=a(),c=t.contentRef?.();!p||!c||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(c).zIndex})});let d={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return x(rs.Provider,{value:d,get children(){return t.children}})}function Gg(e){let t=a=>{a.key===Wn.Escape&&e.onEscapeKeyDown?.(a)};G(()=>{if(Ve||T(e.isDisabled))return;let a=e.ownerDocument?.()??Dt();a.addEventListener("keydown",t),j(()=>{a.removeEventListener("keydown",t)})})}function Kg(e,t){let a,o=Jp,r=()=>Dt(t()),n=d=>e.onPointerDownOutside?.(d),s=d=>e.onFocusOutside?.(d),i=d=>e.onInteractOutside?.(d),l=d=>{let p=d.target;return!(p instanceof HTMLElement)||p.closest(`[${Rr}]`)||!ft(r(),p)||ft(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=d=>{function p(){let c=t(),m=d.target;if(!c||!m||!l(d))return;let g=ze([n,i]);m.addEventListener(yi,g,{once:!0});let h=new CustomEvent(yi,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:d.button===2||Hp(d)&&d.button===0}});m.dispatchEvent(h)}d.pointerType==="touch"?(r().removeEventListener("click",p),o=p,r().addEventListener("click",p,{once:!0})):p()},f=d=>{let p=t(),c=d.target;if(!p||!c||!l(d))return;let m=ze([s,i]);c.addEventListener(Ci,m,{once:!0});let g=new CustomEvent(Ci,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:!1}});c.dispatchEvent(g)};G(()=>{Ve||T(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",f,!0),j(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",f,!0)}))})}function Wg(){return Ae(Su)}function jg(e){let t,a=Wg(),[o,r]=le(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=d=>{n.add(d);let p=a?.registerNestedLayer(d);return()=>{n.delete(d),p?.()}};Kg({shouldExcludeElement:d=>t?o.excludedElements?.some(p=>ft(p(),d))||[...n].some(p=>ft(p,d)):!1,onPointerDownOutside:d=>{!t||at.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!at.isTopMostLayer(t)||(o.onPointerDownOutside?.(d),o.onInteractOutside?.(d),d.defaultPrevented||o.onDismiss?.())},onFocusOutside:d=>{o.onFocusOutside?.(d),o.onInteractOutside?.(d),d.defaultPrevented||o.onDismiss?.()}},()=>t),Gg({ownerDocument:()=>Dt(t),onEscapeKeyDown:d=>{!t||!at.isTopMostLayer(t)||(o.onEscapeKeyDown?.(d),!d.defaultPrevented&&o.onDismiss&&(d.preventDefault(),o.onDismiss()))}}),_t(()=>{if(!t)return;at.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let d=a?.registerNestedLayer(t);at.assignPointerEventToLayers(),at.disableBodyPointerEvents(t),j(()=>{t&&(at.removeLayer(t),d?.(),at.assignPointerEventToLayers(),at.restoreBodyPointerEvents(t))})}),G(Pt([()=>t,()=>o.disableOutsidePointerEvents],([d,p])=>{if(!d)return;let c=at.find(d);c&&c.isPointerBlocking!==p&&(c.isPointerBlocking=p,at.assignPointerEventToLayers()),p&&at.disableBodyPointerEvents(d),j(()=>{at.restoreBodyPointerEvents(d)})},{defer:!0}));let f={registerNestedLayer:s};return x(Su.Provider,{value:f,get children(){return x(ke,J({as:"div",ref(d){let p=Xe(c=>t=c,o.ref);typeof p=="function"&&p(d)}},r))}})}function ku(e={}){let[t,a]=eu({value:()=>T(e.open),defaultValue:()=>!!T(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 Mu(){let e=Ae(Pu);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Wo(){let e=Ae(Du);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Au(e){let t=Vo(),a=Mu(),o=`${t.generateId("item")}-${tt()}`,r=se({id:o},e),[n,s]=le(r,["value","disabled","onPointerDown"]),[i,l]=B(),[u,f]=B(),[d,p]=B(),[c,m]=B(),[g,h]=B(!1),y=S(()=>a.isSelectedValue(n.value)),C=S(()=>n.disabled||t.isDisabled()||!1),v=D=>{Se(D,n.onPointerDown),g()&&D.preventDefault()},L=S(()=>({...t.dataset(),"data-disabled":C()?"":void 0,"data-checked":y()?"":void 0})),b={value:()=>n.value,dataset:L,isSelected:y,isDisabled:C,inputId:i,labelId:u,descriptionId:d,inputRef:c,select:()=>a.setSelectedValue(n.value),generateId:_o(()=>s.id),registerInput:ct(l),registerLabel:ct(f),registerDescription:ct(p),setIsFocused:h,setInputRef:m};return x(Du.Provider,{value:b,get children(){return x(ke,J({as:"div",role:"group",onPointerDown:v},L,s))}})}function Tu(e){let t=Wo(),a=se({id:t.generateId("control")},e),[o,r]=le(a,["onClick","onKeyDown"]);return x(ke,J({as:"div",onClick:i=>{Se(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Se(i,o.onKeyDown),i.key===Wn.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function Ru(e){let t=Wo(),a=se({id:t.generateId("description")},e);return G(()=>j(t.registerDescription(a.id))),x(ke,J({as:"div"},()=>t.dataset(),a))}function Eu(e){let t=Wo(),a=se({id:t.generateId("indicator")},e),[o,r]=le(a,["ref","forceMount"]),[n,s]=B(),{present:i}=du({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return x(K,{get when(){return i()},get children(){return x(ke,J({as:"div",ref(l){let u=Xe(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function Fu(e){let t=Vo(),a=Mu(),o=Wo(),r=se({id:o.generateId("input")},e),[n,s]=le(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,f]=B(!1),d=m=>{if(Se(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}f(!1)},p=m=>{Se(m,n.onFocus),o.setIsFocused(!0)},c=m=>{Se(m,n.onBlur),o.setIsFocused(!1)};return G(Pt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;f(!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})),G(()=>j(o.registerInput(s.id))),x(ke,J({as:"input",ref(m){let g=Xe(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 Nr({...Qi},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:d,onFocus:p,onBlur:c},()=>o.dataset(),s))}function $u(e){let t=Wo(),a=se({id:t.generateId("label")},e);return G(()=>j(t.registerLabel(a.id))),x(ke,J({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function Ou(e){return x(rm,J({as:"span"},e))}function Bu(e){let t,a=`radiogroup-${tt()}`,o=se({id:a,orientation:"vertical"},e),[r,n,s]=le(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],am),[i,l]=Go({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=om(n);nm(()=>t,()=>l(r.defaultValue??""));let f=()=>u.getAriaLabelledBy(T(n.id),s["aria-label"],r["aria-labelledby"]),d=()=>u.getAriaDescribedBy(r["aria-describedby"]),p=m=>m===i(),c={ariaDescribedBy:d,isSelectedValue:p,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=p(h.value)}}};return x(Zi.Provider,{value:u,get children(){return x(Pu.Provider,{value:c,get children(){return x(ke,J({as:"div",ref(m){let g=Xe(h=>t=h,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return T(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 f()},get"aria-describedby"(){return d()}},()=>u.dataset(),s))}})}})}function Zg(e,t,a){let o=km({usage:"search",sensitivity:"base"}),r=S(()=>{let n=T(e.keyboardDelegate);return n||new Qg(e.collection,t,o)});return Em({selectionManager:()=>T(e.selectionManager),keyboardDelegate:r,autoFocus:()=>T(e.autoFocus),deferAutoFocus:()=>T(e.deferAutoFocus),shouldFocusWrap:()=>T(e.shouldFocusWrap),disallowEmptySelection:()=>T(e.disallowEmptySelection),selectOnFocus:()=>T(e.selectOnFocus),disallowTypeAhead:()=>T(e.disallowTypeAhead),shouldUseVirtualFocus:()=>T(e.shouldUseVirtualFocus),allowsTabNavigation:()=>T(e.allowsTabNavigation),isVirtualized:()=>T(e.isVirtualized),scrollToKey:n=>T(e.scrollToKey)?.(n),orientation:()=>T(e.orientation)},t)}function Yg(e,t){let[a,o]=B(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>Dt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,Qi),m},f=()=>{let m=t();return m?ji(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},d=()=>{let m=f();return m.length>0?m[0]:null},p=()=>{let m=f();return m.length>0?m[m.length-1]:null},c=()=>{let m=t();if(!m)return!1;let g=Fo(m);return!g||ft(m,g)?!1:Xi(g)};G(()=>{if(Ve)return;let m=t();if(!m)return;Li.add(r);let g=Fo(m);if(!ft(m,g)){let y=new CustomEvent(Rn,vi);m.addEventListener(Rn,s),m.dispatchEvent(y),y.defaultPrevented||setTimeout(()=>{Ke(d()),Fo(m)===g&&Ke(m)},0)}j(()=>{m.removeEventListener(Rn,s),setTimeout(()=>{let y=new CustomEvent(En,vi);c()&&y.preventDefault(),m.addEventListener(En,i),m.dispatchEvent(y),y.defaultPrevented||Ke(g??l().body),m.removeEventListener(En,i),Li.remove(r)},0)})}),G(()=>{if(Ve)return;let m=t();if(!m||!T(e.trapFocus)||a())return;let g=y=>{let C=y.target;C?.closest(`[${Rr}]`)||(ft(m,C)?n=C:Ke(n))},h=y=>{let v=y.relatedTarget??Fo(m);v?.closest(`[${Rr}]`)||ft(m,v)||Ke(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),j(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),G(()=>{if(Ve)return;let m=t();if(!m||!T(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function y(v){let L=d(),b=p();v.relatedTarget===L?Ke(b):Ke(L)}g.addEventListener("focusin",y),h.addEventListener("focusin",y);let C=new MutationObserver(v=>{for(let L of v)L.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),L.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});C.observe(m,{childList:!0,subtree:!1}),j(()=>{g.removeEventListener("focusin",y),h.removeEventListener("focusin",y),g.remove(),h.remove(),C.disconnect()})})}function eh(e){G(()=>{T(e.isDisabled)||j(th(T(e.targets),T(e.root)))})}function th(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let p of l.querySelectorAll(`[${Jg}], [${Rr}]`))a.add(p);let u=p=>{if(a.has(p)||p.parentElement&&o.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let c of a)if(p.contains(c))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&n(l),d!==NodeFilter.FILTER_REJECT){let p=f.nextNode();for(;p!=null;)n(p),p=f.nextNode()}},n=l=>{let u=Ro.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),Ro.set(l,u+1))};ut.length&&ut[ut.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(f=>f.contains(u.target))){for(let f of u.removedNodes)f instanceof Element&&(a.delete(f),o.delete(f));for(let f of u.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?a.add(f):f instanceof Element&&r(f)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return ut.push(i),()=>{s.disconnect();for(let l of o){let u=Ro.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),Ro.delete(l)):Ro.set(l,u-1)}i===ut[ut.length-1]?(ut.pop(),ut.length&&ut[ut.length-1].observe()):ut.splice(ut.indexOf(i),1)}}function zu(){return Ae(qu)}function Xt(){let e=zu();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function ls(){let e=Ae(Uu);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Tt(){let e=Ae(Nu);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function is(e){let t,a=Tt(),o=Xt(),r=se({id:a.generateId(`item-${tt()}`)},e),[n,s]=le(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=B(),[u,f]=B(),[d,p]=B(),c=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>c().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};ym({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??d()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let y=uu({key:m,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),C=w=>{Se(w,n.onPointerMove),w.pointerType==="mouse"&&(n.disabled?o.onItemLeave(w):(o.onItemEnter(w),w.defaultPrevented||(Ke(w.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},v=w=>{Se(w,n.onPointerLeave),w.pointerType==="mouse"&&o.onItemLeave(w)},L=w=>{Se(w,n.onPointerUp),!n.disabled&&w.button===0&&h()},b=w=>{if(Se(w,n.onKeyDown),!w.repeat&&!n.disabled)switch(w.key){case"Enter":case" ":h();break}},D=S(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),I=S(()=>({"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})),E={isChecked:()=>n.checked,dataset:I,setLabelRef:p,generateId:_o(()=>s.id),registerLabel:ct(l),registerDescription:ct(f)};return x(Uu.Provider,{value:E,get children(){return x(ke,J({as:"div",ref(w){let M=Xe(N=>t=N,n.ref);typeof M=="function"&&M(w)},get tabIndex(){return y.tabIndex()},get"aria-checked"(){return D()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return y.dataKey()},get onPointerDown(){return ze([n.onPointerDown,y.onPointerDown])},get onPointerUp(){return ze([L,y.onPointerUp])},get onClick(){return ze([n.onClick,y.onClick])},get onKeyDown(){return ze([b,y.onKeyDown])},get onMouseDown(){return ze([n.onMouseDown,y.onMouseDown])},get onFocus(){return ze([n.onFocus,y.onFocus])},onPointerMove:C,onPointerLeave:v},I,s))}})}function Hu(e){let t=se({closeOnSelect:!1},e),[a,o]=le(t,["checked","defaultChecked","onChange","onSelect"]),r=um({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return x(is,J({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function Wr(){return Ae(fh)}function _u(e){let t=Tt(),a=Xt(),o=Wr(),{direction:r}=ha(),n=se({id:t.generateId("trigger")},e),[s,i]=le(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=_r(()=>a.triggerRef(),()=>"button"),f=S(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);G(Pt(()=>o?.value(),y=>{f()&&y===l()&&a.triggerRef()?.focus()}));let d=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},p=y=>{Se(y,s.onPointerDown),y.currentTarget.dataset.pointerType=y.pointerType,!s.disabled&&y.pointerType!=="touch"&&y.button===0&&d()},c=y=>{Se(y,s.onClick),s.disabled||y.currentTarget.dataset.pointerType==="touch"&&d()},m=y=>{if(Se(y,s.onKeyDown),!s.disabled){if(f())switch(y.key){case"Enter":case" ":return}switch(y.key){case"Enter":case" ":case Pi.first(t.orientation()):y.stopPropagation(),y.preventDefault(),tm(y.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case Pi.last(t.orientation()):y.stopPropagation(),y.preventDefault(),a.open("last");break;case Uo.next(r(),t.orientation()):if(o===void 0)break;y.stopPropagation(),y.preventDefault(),o.nextMenu();break;case Uo.previous(r(),t.orientation()):if(o===void 0)break;y.stopPropagation(),y.preventDefault(),o.previousMenu();break}}},g=y=>{Se(y,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=y=>{Se(y,s.onFocus),o!==void 0&&y.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return G(()=>j(a.registerTriggerId(s.id))),x(Yn,J({ref(y){let C=Xe(a.setTriggerRef,s.ref);typeof C=="function"&&C(y)},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 S(()=>!!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:p,onMouseOver:g,onClick:c,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function Vu(){return Ae(ch)}function Gu(e){let t,a=Tt(),o=Xt(),r=Wr(),n=Vu(),{direction:s}=ha(),i=se({id:a.generateId(`content-${tt()}`)},e),[l,u]=le(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),f=0,d=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),p=Zg({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);Yg({trapFocus:()=>d()&&o.isOpen(),onMountAutoFocus:v=>{r===void 0&&l.onOpenAutoFocus?.(v)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let c=v=>{if(ft(v.currentTarget,v.target)&&(v.key==="Tab"&&o.isOpen()&&v.preventDefault(),r!==void 0&&v.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(v.key){case Uo.next(s(),a.orientation()):v.stopPropagation(),v.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Uo.previous(s(),a.orientation()):if(v.currentTarget.hasAttribute("data-closed"))break;v.stopPropagation(),v.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=v=>{l.onEscapeKeyDown?.(v),r?.setAutoFocusMenu(!1),o.close(!0)},g=v=>{l.onFocusOutside?.(v),a.isModal()&&v.preventDefault()},h=v=>{Se(v,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},y=v=>{if(Se(v,l.onPointerMove),v.pointerType!=="mouse")return;let L=v.target,b=f!==v.clientX;ft(v.currentTarget,L)&&b&&(o.setPointerDir(v.clientX>f?"right":"left"),f=v.clientX)};G(()=>j(o.registerContentId(l.id)));let C={ref:Xe(v=>{o.setContentRef(v),t=v},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:ze([l.onKeyDown,p.onKeyDown,c]),onMouseDown:ze([l.onMouseDown,p.onMouseDown]),onFocusIn:ze([l.onFocusIn,p.onFocusIn]),onFocusOut:ze([l.onFocusOut,p.onFocusOut]),onPointerEnter:h,onPointerMove:y,get"data-orientation"(){return a.orientation()}};return x(K,{get when(){return o.contentPresent()},get children(){return x(K,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return x(ke,J({as:"div"},()=>o.dataset(),C,u))},get children(){return x(wu.Positioner,{get children(){return x(jg,J({get disableOutsidePointerEvents(){return S(()=>!!d())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Nr({"--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(),C,u))}})}})}})}function ph(e){let t,a=Tt(),o=Xt(),[r,n]=le(e,["ref"]);return dh({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),x(Gu,J({ref(s){let i=Xe(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function mh(){let e=Ae(Ku);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function us(e){let t=Tt(),a=se({id:t.generateId(`group-${tt()}`)},e),[o,r]=B(),n={generateId:_o(()=>a.id),registerLabelId:ct(r)};return x(Ku.Provider,{value:n,get children(){return x(ke,J({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function Wu(e){let t=mh(),a=se({id:t.generateId("label")},e),[o,r]=le(a,["id"]);return G(()=>j(t.registerLabelId(o.id))),x(ke,J({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function ju(e){let t=Xt(),a=se({children:"\u25BC"},e);return x(ke,J({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function Xu(e){return x(is,J({role:"menuitem",closeOnSelect:!0},e))}function Qu(e){let t=ls(),a=se({id:t.generateId("description")},e),[o,r]=le(a,["id"]);return G(()=>j(t.registerDescription(o.id))),x(ke,J({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Zu(e){let t=ls(),a=se({id:t.generateId("indicator")},e),[o,r]=le(a,["forceMount"]);return x(K,{get when(){return o.forceMount||t.isChecked()},get children(){return x(ke,J({as:"div"},()=>t.dataset(),r))}})}function Yu(e){let t=ls(),a=se({id:t.generateId("label")},e),[o,r]=le(a,["ref","id"]);return G(()=>j(t.registerLabel(o.id))),x(ke,J({as:"div",ref(n){let s=Xe(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function Ju(e){let t=Xt();return x(K,{get when(){return t.contentPresent()},get children(){return x(Sn,e)}})}function gh(){let e=Ae(ed);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function td(e){let a=Tt().generateId(`radiogroup-${tt()}`),o=se({id:a},e),[r,n]=le(o,["value","defaultValue","onChange","disabled"]),[s,i]=Go({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return x(ed.Provider,{value:l,get children(){return x(us,n)}})}function ad(e){let t=gh(),a=se({closeOnSelect:!1},e),[o,r]=le(a,["value","onSelect"]);return x(is,J({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function hh(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 xh(e,t){return t?em([e.clientX,e.clientY],t):!1}function od(e){let t=Tt(),a=au(),o=zu(),r=Wr(),n=Vu(),s=se({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=le(s,["open","defaultOpen","onOpenChange"]),u=0,f=null,d="right",[p,c]=B(),[m,g]=B(),[h,y]=B(),[C,v]=B(),[L,b]=B(!0),[D,I]=B(l.placement),[E,w]=B([]),[M,N]=B([]),{DomCollectionProvider:_}=xm({items:M,onItemsChange:N}),ae=ku({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:Y=>i.onOpenChange?.(Y)}),{present:ue}=du({show:()=>t.forceMount()||ae.isOpen(),element:()=>C()??null}),pe=$m({selectionMode:"none",dataSource:M}),ve=Y=>{b(Y),ae.open()},he=(Y=!1)=>{ae.close(),Y&&o&&o.close(!0)},Le=Y=>{b(Y),ae.toggle()},Ie=()=>{let Y=C();Y&&(Ke(Y),pe.selectionManager().setFocused(!0),pe.selectionManager().setFocusedKey(void 0))},Re=()=>{n!=null?setTimeout(()=>Ie()):Ie()},Qe=Y=>{w(He=>[...He,Y]);let gt=o?.registerNestedMenu(Y);return()=>{w(He=>Bn(He,Y)),gt?.()}},Me=Y=>d===f?.side&&xh(Y,f?.area),We=Y=>{Me(Y)&&Y.preventDefault()},$=Y=>{Me(Y)||Re()},Pe=Y=>{Me(Y)&&Y.preventDefault()};eh({isDisabled:()=>!(o==null&&ae.isOpen()&&t.isModal()),targets:()=>[C(),...E()].filter(Boolean)}),G(()=>{let Y=C();if(!Y||!o)return;let gt=o.registerNestedMenu(Y);j(()=>{gt()})}),G(()=>{o===void 0&&r?.registerMenu(t.value(),[C(),...E()])}),G(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&ve(!0)):he())}),G(()=>{o!==void 0||r===void 0||ae.isOpen()&&r.setValue(t.value())}),j(()=>{o===void 0&&r?.unregisterMenu(t.value())});let na={dataset:S(()=>({"data-expanded":ae.isOpen()?"":void 0,"data-closed":ae.isOpen()?void 0:""})),isOpen:ae.isOpen,contentPresent:ue,nestedMenus:E,currentPlacement:D,pointerGraceTimeoutId:()=>u,autoFocus:L,listState:()=>pe,parentMenuContext:()=>o,triggerRef:h,contentRef:C,triggerId:p,contentId:m,setTriggerRef:y,setContentRef:v,open:ve,close:he,toggle:Le,focusContent:Re,onItemEnter:We,onItemLeave:$,onTriggerLeave:Pe,setPointerDir:Y=>d=Y,setPointerGraceTimeoutId:Y=>u=Y,setPointerGraceIntent:Y=>f=Y,registerNestedMenu:Qe,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:ct(c),registerContentId:ct(g)};return x(_,{get children(){return x(qu.Provider,{value:na,get children(){return x(K,{when:n===void 0,get fallback(){return l.children},get children(){return x(wu,J({anchorRef:h,contentRef:C,onCurrentPlacementChange:I},l))}})}})}})}function rd(e){let{direction:t}=ha();return x(od,J({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function nd(e){let t=Xt(),a=Tt(),[o,r]=le(e,["onFocusOutside","onKeyDown"]),{direction:n}=ha();return x(Gu,J({onOpenAutoFocus:f=>{f.preventDefault()},onCloseAutoFocus:f=>{f.preventDefault()},onFocusOutside:f=>{o.onFocusOutside?.(f);let d=f.target;ft(t.triggerRef(),d)||t.close()},onKeyDown:f=>{Se(f,o.onKeyDown);let d=ft(f.currentTarget,f.target),p=yh.close(n(),a.orientation()).includes(f.key),c=t.parentMenuContext()!=null;d&&p&&c&&(t.close(),Ke(t.triggerRef()))}},r))}function sd(e){let t,a=Tt(),o=Xt(),r=se({id:a.generateId(`sub-trigger-${tt()}`)},e),[n,s]=le(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{Ve||(i&&window.clearTimeout(i),i=null)},{direction:u}=ha(),f=()=>n.id,d=()=>{let v=o.parentMenuContext();if(v==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return v.listState().selectionManager()},p=()=>o.listState().collection(),c=()=>d().focusedKey()===f(),m=uu({key:f,selectionManager:d,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=v=>{Se(v,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=v=>{if(Se(v,n.onPointerMove),v.pointerType!=="mouse")return;let L=o.parentMenuContext();if(L?.onItemEnter(v),!v.defaultPrevented){if(n.disabled){L?.onItemLeave(v);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),L?.onItemEnter(v),v.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),Ke(v.currentTarget),L?.listState().selectionManager().setFocused(!0),L?.listState().selectionManager().setFocusedKey(f()))}},y=v=>{if(Se(v,n.onPointerLeave),v.pointerType!=="mouse")return;l();let L=o.parentMenuContext(),b=o.contentRef();if(b){L?.setPointerGraceIntent({area:hh(o.currentPlacement(),v,b),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(L?.pointerGraceTimeoutId());let D=window.setTimeout(()=>{L?.setPointerGraceIntent(null)},300);L?.setPointerGraceTimeoutId(D)}else{if(L?.onTriggerLeave(v),v.defaultPrevented)return;L?.setPointerGraceIntent(null)}L?.onItemLeave(v)},C=v=>{Se(v,n.onKeyDown),!v.repeat&&(n.disabled||Ch.open(u(),a.orientation()).includes(v.key)&&(v.stopPropagation(),v.preventDefault(),d().setFocused(!1),d().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(p().getFirstKey())))};return G(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let v=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:f(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});j(v)}),G(Pt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),v=>{j(()=>{window.clearTimeout(v),o.parentMenuContext()?.setPointerGraceIntent(null)})})),G(()=>j(o.registerTriggerId(n.id))),j(()=>{l()}),x(ke,J({as:"div",ref(v){let L=Xe(b=>{o.setTriggerRef(b),t=b},n.ref);typeof L=="function"&&L(v)},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 S(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return c()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return ze([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return ze([n.onPointerUp,m.onPointerUp])},get onClick(){return ze([g,m.onClick])},get onKeyDown(){return ze([C,m.onKeyDown])},get onMouseDown(){return ze([n.onMouseDown,m.onMouseDown])},get onFocus(){return ze([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:y},()=>o.dataset(),s))}function vh(e){let t=Wr(),a=`menu-${tt()}`,o=se({id:a,modal:!0},e),[r,n]=le(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=ku({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:_o(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return x(Nu.Provider,{value:i,get children(){return x(od,J({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function jr(e){let t,a=se({orientation:"horizontal"},e),[o,r]=le(a,["ref","orientation"]),n=_r(()=>t,()=>"hr");return x(ke,J({as:"hr",ref(s){let i=Xe(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 ld(e){let t=Tt(),a=Xt(),[o,r]=le(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return x(ph,J({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||Ke(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function id(e){let t=`dropdownmenu-${tt()}`,a=se({id:t},e);return x(vh,a)}function Gh(){return wh()}function dd(){return Sh()}function Oo(){return kh()}function Di(){return Ph()}function Ai(){return ds()}function Kh(){return(()=>{var e=ds();return e.style.setProperty("transform","rotate(90deg)"),e})()}function Wh(){return(()=>{var e=ds();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function jh(){return Mh()}function Xh(){return Dh()}function Qh(){return Ah()}function Zh(){return Th()}function Yh(){return Rh()}function Jh(){return Eh()}function e0(){return Fh()}function t0(){return $h()}function a0(){return Oh()}function o0(e){return(()=>{var t=ud(),a=t.firstChild;return V(()=>R(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function r0(){return Bh()}function n0(){return qh()}function s0(e){return[x(K,{get when(){return e.checked},get children(){var t=ud(),a=t.firstChild;return V(()=>R(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),x(K,{get when(){return!e.checked},get children(){var t=zh(),a=t.firstChild;return V(()=>R(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function l0(){return Uh()}function i0(){return Nh()}function u0(){return Hh()}function d0(){return _h()}function Ti(){let e=tt();return(()=>{var t=Vh(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,f=u.firstChild,d=u.nextSibling,p=d.firstChild,c=d.nextSibling,m=c.nextSibling,g=m.firstChild,h=m.nextSibling,y=h.firstChild,C=h.nextSibling,v=C.nextSibling,L=v.firstChild,b=v.nextSibling,D=b.firstChild,I=b.nextSibling,E=I.nextSibling,w=E.firstChild,M=E.nextSibling,N=M.firstChild,_=M.nextSibling,ae=_.nextSibling,ue=ae.firstChild,pe=ae.nextSibling,ve=pe.firstChild,he=pe.nextSibling,Le=he.nextSibling,Ie=Le.firstChild,Re=Le.nextSibling,Qe=Re.firstChild,Me=Re.nextSibling,We=Me.firstChild,$=We.nextSibling,Pe=$.nextSibling,de=Pe.nextSibling,na=de.nextSibling,Y=Me.nextSibling,gt=Y.firstChild,He=Y.nextSibling,Ua=He.firstChild,lt=He.nextSibling,sa=lt.firstChild,Ia=sa.nextSibling,Bt=Ia.nextSibling,wt=Bt.firstChild,qt=wt.nextSibling,q=qt.nextSibling,xe=q.nextSibling,je=xe.nextSibling,be=je.nextSibling,ge=be.nextSibling,we=ge.nextSibling,Be=we.nextSibling,ce=Be.nextSibling,zt=ce.nextSibling,Ut=zt.nextSibling,ht=lt.nextSibling,wa=ht.firstChild,Nt=ht.nextSibling,Sa=Nt.firstChild,Ht=Nt.nextSibling,la=Ht.firstChild,sr=la.nextSibling,po=Ht.nextSibling,lr=po.firstChild,Na=po.nextSibling,ir=Na.firstChild,mo=Na.nextSibling,go=mo.firstChild,ho=go.nextSibling,Ha=ho.nextSibling,Ms=Ha.nextSibling,Ds=Ms.nextSibling,As=Ds.nextSibling,Ts=As.nextSibling,Rs=Ts.nextSibling,Es=Rs.nextSibling,Fs=Es.nextSibling,$s=Fs.nextSibling,Os=$s.nextSibling,Bs=Os.nextSibling,qs=Bs.nextSibling,zs=qs.nextSibling,Us=zs.nextSibling,Ns=Us.nextSibling,Mf=Ns.nextSibling;return R(a,"id",`a-${e}`),R(o,"fill",`url(#a-${e})`),R(n,"id",`am-${e}`),R(s,"id",`b-${e}`),R(i,"filter",`url(#am-${e})`),R(l,"mask",`url(#b-${e})`),R(f,"id",`ah-${e}`),R(d,"id",`k-${e}`),R(p,"filter",`url(#ah-${e})`),R(c,"mask",`url(#k-${e})`),R(g,"id",`ae-${e}`),R(h,"id",`j-${e}`),R(y,"filter",`url(#ae-${e})`),R(C,"mask",`url(#j-${e})`),R(L,"id",`ai-${e}`),R(b,"id",`i-${e}`),R(D,"filter",`url(#ai-${e})`),R(I,"mask",`url(#i-${e})`),R(w,"id",`aj-${e}`),R(M,"id",`h-${e}`),R(N,"filter",`url(#aj-${e})`),R(_,"mask",`url(#h-${e})`),R(ue,"id",`ag-${e}`),R(pe,"id",`g-${e}`),R(ve,"filter",`url(#ag-${e})`),R(he,"mask",`url(#g-${e})`),R(Ie,"id",`af-${e}`),R(Re,"id",`f-${e}`),R(Qe,"filter",`url(#af-${e})`),R(Me,"mask",`url(#f-${e})`),R(de,"id",`m-${e}`),R(na,"fill",`url(#m-${e})`),R(gt,"id",`ak-${e}`),R(He,"id",`e-${e}`),R(Ua,"filter",`url(#ak-${e})`),R(lt,"mask",`url(#e-${e})`),R(sa,"id",`n-${e}`),R(Ia,"fill",`url(#n-${e})`),R(wt,"id",`r-${e}`),R(qt,"fill",`url(#r-${e})`),R(q,"id",`s-${e}`),R(xe,"fill",`url(#s-${e})`),R(je,"id",`q-${e}`),R(be,"fill",`url(#q-${e})`),R(ge,"id",`p-${e}`),R(we,"fill",`url(#p-${e})`),R(Be,"id",`o-${e}`),R(ce,"fill",`url(#o-${e})`),R(zt,"id",`l-${e}`),R(Ut,"fill",`url(#l-${e})`),R(wa,"id",`al-${e}`),R(Nt,"id",`d-${e}`),R(Sa,"filter",`url(#al-${e})`),R(Ht,"mask",`url(#d-${e})`),R(la,"id",`u-${e}`),R(sr,"fill",`url(#u-${e})`),R(lr,"id",`ad-${e}`),R(Na,"id",`c-${e}`),R(ir,"filter",`url(#ad-${e})`),R(mo,"mask",`url(#c-${e})`),R(go,"id",`t-${e}`),R(ho,"fill",`url(#t-${e})`),R(Ha,"id",`v-${e}`),R(Ms,"stroke",`url(#v-${e})`),R(Ds,"id",`aa-${e}`),R(As,"stroke",`url(#aa-${e})`),R(Ts,"id",`w-${e}`),R(Rs,"stroke",`url(#w-${e})`),R(Es,"id",`ac-${e}`),R(Fs,"stroke",`url(#ac-${e})`),R($s,"id",`ab-${e}`),R(Os,"stroke",`url(#ab-${e})`),R(Bs,"id",`y-${e}`),R(qs,"stroke",`url(#y-${e})`),R(zs,"id",`x-${e}`),R(Us,"stroke",`url(#x-${e})`),R(Ns,"id",`z-${e}`),R(Mf,"stroke",`url(#z-${e})`),t})()}function L0(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function $i(e){return Symbol.iterator in e}function fa(e){let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?ro(a):oo(a)),r=W().client,[n,s]=B((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=B([]),f=S(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&$i(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})):[]),d=S(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&$i(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=S(()=>L0(f(),100)),c=e.dataPath??[];return(()=>{var m=Eo();return k(m,x(K,{get when(){return p().length},get children(){return[(()=>{var g=x0(),h=g.firstChild,y=h.firstChild,C=y.nextSibling,v=C.nextSibling,L=v.nextSibling,b=L.firstChild;return h.$$click=()=>i(),k(h,x(Ei,{get expanded(){return n()}}),y),k(C,()=>e.label),k(L,()=>String(d()).toLowerCase()==="iterable"?"(Iterable) ":"",b),k(L,()=>f().length,b),k(L,()=>f().length>1?"items":"item",null),k(g,x(K,{get when(){return e.editable},get children(){var D=Eo();return k(D,x(b0,{get value(){return e.value}}),null),k(D,x(K,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return x(Fi,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),k(D,x(K,{get when(){return d()==="array"&&e.activeQuery!==void 0},get children(){return x(I0,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),k(D,x(K,{get when(){return S(()=>!!e.onEdit)()&&!kn(e.value).meta},get children(){var I=h0();return I.$$click=()=>{e.onEdit?.()},k(I,x(a0,{})),V(()=>F(I,o().actionButton)),I}}),null),V(()=>F(D,o().actions)),D}}),null),V(D=>{var I=o().expanderButtonContainer,E=o().expanderButton,w=o().info;return I!==D.e&&F(g,D.e=I),E!==D.t&&F(h,D.t=E),w!==D.a&&F(L,D.a=w),D},{e:void 0,t:void 0,a:void 0}),g})(),x(K,{get when(){return n()},get children(){return[x(K,{get when(){return p().length===1},get children(){var g=Eo();return k(g,x(Tr,{get each(){return f()},by:h=>h.label,children:h=>x(fa,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...c,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return d()==="array"||d()==="Iterable"||d()==="object"}})})),V(()=>F(g,o().subEntry)),g}}),x(K,{get when(){return p().length>1},get children(){var g=Eo();return k(g,x(hl,{get each(){return p()},children:(h,y)=>(()=>{var C=v0(),v=C.firstChild,L=v.firstChild,b=L.firstChild,D=b.nextSibling,I=D.nextSibling,E=I.nextSibling;return E.nextSibling,L.$$click=()=>u(w=>w.includes(y)?w.filter(M=>M!==y):[...w,y]),k(L,x(Ei,{get expanded(){return l().includes(y)}}),b),k(L,y*100,D),k(L,y*100+100-1,E),k(v,x(K,{get when(){return l().includes(y)},get children(){var w=Eo();return k(w,x(Tr,{get each(){return h()},by:M=>M.label,children:M=>x(fa,{get defaultExpanded(){return e.defaultExpanded},get label(){return M().label},get value(){return M().value},get editable(){return e.editable},get dataPath(){return[...c,M().label]},get activeQuery(){return e.activeQuery}})})),V(()=>F(w,o().subEntry)),w}}),null),V(w=>{var M=o().entry,N=o().expanderButton;return M!==w.e&&F(v,w.e=M),N!==w.t&&F(L,w.t=N),w},{e:void 0,t:void 0}),C})()})),V(()=>F(g,o().subEntry)),g}})]}})]}}),null),k(m,x(K,{get when(){return p().length===0},get children(){var g=C0(),h=g.firstChild,y=h.firstChild;return k(h,()=>e.label,y),k(g,x(K,{get when(){return S(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number"||d()==="boolean")},get fallback(){return(()=>{var C=Ri();return k(C,()=>Do(e.value)),V(()=>F(C,o().value)),C})()},get children(){return[x(K,{get when(){return S(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number")},get children(){var C=y0();return C.addEventListener("change",v=>{let L=e.activeQuery.state.data,b=ia(L,c,d()==="number"?v.target.valueAsNumber:v.target.value);r.setQueryData(e.activeQuery.queryKey,b)}),V(v=>{var L=d()==="number"?"number":"text",b=z(o().value,o().editableInput);return L!==v.e&&R(C,"type",v.e=L),b!==v.t&&F(C,v.t=b),v},{e:void 0,t:void 0}),V(()=>C.value=e.value),C}}),x(K,{get when(){return d()==="boolean"},get children(){var C=Ri();return k(C,x(w0,{get activeQuery(){return e.activeQuery},dataPath:c,get value(){return e.value}}),null),k(C,()=>Do(e.value),null),V(()=>F(C,z(o().value,o().actions,o().editableInput))),C}})]}}),null),k(g,x(K,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return x(Fi,{get activeQuery(){return e.activeQuery},dataPath:c})}}),null),V(C=>{var v=o().row,L=o().label;return v!==C.e&&F(g,C.e=v),L!==C.t&&F(h,C.t=L),C},{e:void 0,t:void 0}),g}}),null),V(()=>F(m,o().entry)),m})()}var jc,Xc,_l,Qc,Zc,T,Fn,ep,qr,op,Vl,it,rp,Ra,Gn,np,$n,zr,sp,qi,lp,zi,ip,Gl,up,No,Ui,Ur,Kn,Ho,Ni,dp,fp,Ye,Xl,yp,Cp,vp,Lp,Ql,Ta,Vt,Hi,bp,Ip,Zl,Yl,Dn,Ep,Wn,Mr,Wi,Kp,Xn,Wp,To,oi,Qi,am,Zi,dm,Vr,tu,vm,Lm,zn,$o,Sm,An,Gt,Fm,ui,Ge,Om,Bm,du,Rr,fu,Un,Wt,at,Km,Wm,Xm,Qm,Mt,rt,Er,Dr,pa,Zm,Ym,rg,ng,sg,lg,ug,dg,fg,mg,Sg,Iu,Dg,Ag,Tg,Rg,Eg,Fg,$g,rs,Og,_n,hi,Bg,Hg,wu,yi,Ci,Su,dt,Pu,Du,Xg,Qg,Rn,En,vi,Li,Jg,Ro,ut,Ar,ah,bi,oh,rh,nh,Ii,wi,sh,lh,ih,Si,ki,Vn,uh,dh,qu,Uu,Nu,fh,Uo,Pi,ch,Ku,ed,yh,Mi,Ch,Lh,bh,Te,Ih,P,wh,Sh,kh,Ph,ds,Mh,Dh,Ah,Th,Rh,Eh,Fh,$h,Oh,ud,Bh,qh,zh,Uh,Nh,Hh,_h,Vh,f0,c0,p0,m0,g0,h0,Eo,x0,y0,Ri,C0,v0,Ei,b0,I0,Fi,w0,fd,oo,ro,S0,jo,k0,P0,M0,D0,A0,T0,R0,E0,F0,$0,O0,B0,q0,z0,U0,N0,H0,_0,V0,Oi,G0,cd,K0,W0,j0,X0,Q0,Z0,Y0,J0,e1,t1,ot,Xr,ca,pd,yt,fs,Qa,Bi,md,a1,gd,o1,Qr,r1,n1,s1,l1,Kt,i1,u1,Or,d1,Ne,Br,f1,xt,hd,pt,mt,cs=xo(()=>{"use strict";A();Ao();jc=!Ve,Xc=jc&&!!yl,_l=()=>{},Qc=e=>e!=null,Zc=e=>e.filter(Qc);T=e=>typeof e=="function"&&!e.length?e():e,Fn=e=>Array.isArray(e)?e:e?[e]:[];ep=Xc?e=>xr()?j(e):e:j;qr=ap,op=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Vl=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},it=op({_cookies:[globalThis.document,"cookie"],getItem:e=>it._cookies[0][it._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=it.getItem(e);it._cookies[0][it._cookies[1]]=`${e}=${t}${Vl(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:it});window.dispatchEvent(r)},removeItem:e=>{it._cookies[0][it._cookies[1]]=`${e}=deleted${Vl({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return it._cookies[0][it._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return it._cookies[0][it._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),rp=1024,Ra=796,Gn=700,np="bottom-right",$n="bottom",zr="system",sp=!1,qi=500,lp=500,zi=500,ip=Object.keys(Sr)[0],Gl=1,up=Object.keys(kr)[0],No=qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Ui=qe(void 0),Ur=e=>{let[t,a]=B(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="",Cl(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(W().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let f=[...u.cssRules].map(m=>m.cssText).join(""),d=document.createElement("style"),p=u.ownerNode,c="";p&&"id"in p&&(c=p.id),c&&d.setAttribute("id",c),d.textContent=f,l.document.head.appendChild(d)}catch{let d=document.createElement("link");if(u.href==null)return;d.rel="stylesheet",d.type=u.type,d.media=u.media.toString(),d.href=u.href,l.document.head.appendChild(d)}}),Mo(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};G(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||lp))}),G(()=>{let s=(W().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(W().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),j(()=>{l.disconnect()})}});let n=S(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return x(Ui.Provider,{value:n,get children(){return e.children}})},Kn=()=>S(()=>{let t=Ae(Ui);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Ho=qe(()=>"dark");Ni={\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"},dp=Object.keys(Ni).join("|"),fp=new RegExp(dp,"g");Ye={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Xl={maxRanking:1/0,minRanking:-1/0};yp={data:""},Cp=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||yp,vp=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Lp=/\/\*[^]*?\*\/| +/g,Ql=/\n+/g,Ta=(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"?Ta(s,n):n+"{"+Ta(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=Ta(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+=Ta.p?Ta.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},Vt={},Hi=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+Hi(e[a]);return t}return e},bp=(e,t,a,o,r)=>{let n=Hi(e),s=Vt[n]||(Vt[n]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(n));if(!Vt[s]){let l=n!==e?e:(u=>{let f,d,p=[{}];for(;f=vp.exec(u.replace(Lp,""));)f[4]?p.shift():f[3]?(d=f[3].replace(Ql," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(Ql," ").trim();return p[0]})(e);Vt[s]=Ta(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&Vt.g?Vt.g:null;return a&&(Vt.g=Vt[s]),((l,u,f,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(Vt[s],t,o,i),s},Ip=(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?"":Ta(i,""):i===!1?"":i}return o+r+(s??"")},"");ee.bind({g:1});ee.bind({k:1});Zl=Ve?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Yl=e=>{let t=kp(e);return wp(Sp(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)Pp(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:f}of i)if(u.isConnected){let d=u.getBoundingClientRect(),p=f.left-d.left,c=f.top-d.top;(p||c)&&(u.style.transform=`translate(${p}px, ${c}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let f=function(d){(d.target===u||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",f)}});for(let l of o)Mp(s,e,l,()=>r([l]))}})},Dn=Symbol("fallback");Ep=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Wn=(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))(Wn||{});Mr=null;Wi=["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'])"],Kp=[...Wi,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Xn=Wi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Wp=Kp.join(':not([hidden]):not([tabindex="-1"]),');To=new Map,oi=new Set;typeof document<"u"&&(document.readyState!=="loading"?ri():document.addEventListener("DOMContentLoaded",ri));Qi={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"};am=["id","name","validationState","required","disabled","readOnly"];Zi=qe();dm=Object.defineProperty,Vr=(e,t)=>{for(var a in t)dm(e,a,{get:t[a],enumerable:!0})},tu=qe();vm=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Lm=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);zn=su(),$o=new Set;Sm=qe();An=new Map;Gt=class lu extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof lu?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};Fm=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 Gt(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 Gt(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 Gt([t],t,t):new Gt;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new Gt;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 Gt)}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}},ui=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])}};Ge=e=>typeof e=="function"?e():e,Om=e=>{let t=S(()=>{let s=Ge(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=B(Ge(e.show)?"present":"hidden"),n="none";return G(s=>{let i=Ge(e.show);return ye(()=>{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}),G(()=>{let s=Ge(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let d=a().includes(u.animationName);u.target===s&&d&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),j(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},Bm=Om,du=Bm,Rr="data-kb-top-layer",Un=!1,Wt=[];at={layers:Wt,isTopMostLayer:zm,hasPointerBlockingLayer:Zn,isBelowPointerBlockingLayer:pu,addLayer:Nm,removeLayer:Hm,indexOf:Bo,find:qm,assignPointerEventToLayers:_m,disableBodyPointerEvents:Vm,restoreBodyPointerEvents:Gm},Km={};Vr(Km,{Button:()=>Xm,Root:()=>Yn});Wm=["button","color","file","image","reset","submit"];Xm=Yn,Qm=["top","right","bottom","left"],Mt=Math.min,rt=Math.max,Er=Math.round,Dr=Math.floor,pa=e=>({x:e,y:e}),Zm={left:"right",right:"left",bottom:"top",top:"bottom"},Ym={start:"end",end:"start"};rg=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:f,y:d}=di(u,o,l),p=o,c={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:y}=i[g],{x:C,y:v,data:L,reset:b}=await y({x:f,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:c,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,d=v??d,c={...c,[h]:{...c[h],...L}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(u=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:f,y:d}=di(u,p,l)),g=-1)}return{x:f,y:d,placement:p,strategy:r,middlewareData:c}};ng=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:f=0}=$a(e,t)||{};if(u==null)return{};let d=gu(f),p={x:a,y:o},c=es(r),m=Jn(c),g=await s.getDimensions(u),h=c==="y",y=h?"top":"left",C=h?"bottom":"right",v=h?"clientHeight":"clientWidth",L=n.reference[m]+n.reference[c]-p[c]-n.floating[m],b=p[c]-n.reference[c],D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),I=D?D[v]:0;(!I||!await(s.isElement==null?void 0:s.isElement(D)))&&(I=i.floating[v]||n.floating[m]);let E=L/2-b/2,w=I/2-g[m]/2-1,M=Mt(d[y],w),N=Mt(d[C],w),_=M,ae=I-g[m]-N,ue=I/2-g[m]/2+E,pe=Nn(_,ue,ae),ve=!l.arrow&&to(r)!=null&&ue!==pe&&n.reference[m]/2-(ue<_?M:N)-g[m]/2<0,he=ve?ue<_?ue-_:ue-ae:0;return{[c]:p[c]+he,data:{[c]:pe,centerOffset:ue-pe-he,...ve&&{alignmentOffset:he}},reset:ve}}}),sg=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:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=$a(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let y=ma(r),C=Ea(i),v=ma(i)===i,L=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=p||(v||!g?[Fr(i)]:eg(i)),D=m!=="none";!p&&D&&b.push(...ag(i,g,m,L));let I=[i,...b],E=await qo(t,h),w=[],M=((o=n.flip)==null?void 0:o.overflows)||[];if(f&&w.push(E[y]),d){let ue=Jm(r,s,L);w.push(E[ue[0]],E[ue[1]])}if(M=[...M,{placement:r,overflows:w}],!w.every(ue=>ue<=0)){var N,_;let ue=(((N=n.flip)==null?void 0:N.index)||0)+1,pe=I[ue];if(pe)return{data:{index:ue,overflows:M},reset:{placement:pe}};let ve=(_=M.filter(he=>he.overflows[0]<=0).sort((he,Le)=>he.overflows[1]-Le.overflows[1])[0])==null?void 0:_.placement;if(!ve)switch(c){case"bestFit":{var ae;let he=(ae=M.filter(Le=>{if(D){let Ie=Ea(Le.placement);return Ie===C||Ie==="y"}return!0}).map(Le=>[Le.placement,Le.overflows.filter(Ie=>Ie>0).reduce((Ie,Re)=>Ie+Re,0)]).sort((Le,Ie)=>Le[1]-Ie[1])[0])==null?void 0:ae[0];he&&(ve=he);break}case"initialPlacement":ve=i;break}if(r!==ve)return{reset:{placement:ve}}}return{}}}};lg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=$a(e,t);switch(o){case"referenceHidden":{let n=await qo(t,{...r,elementContext:"reference"}),s=fi(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ci(s)}}}case"escaped":{let n=await qo(t,{...r,altBoundary:!0}),s=fi(n,a.floating);return{data:{escapedOffsets:s,escaped:ci(s)}}}default:return{}}}}};ug=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 ig(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}}}}},dg=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,y:C}=h;return{x:y,y:C}}},...l}=$a(e,t),u={x:a,y:o},f=await qo(t,l),d=Ea(ma(r)),p=mu(d),c=u[p],m=u[d];if(n){let h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",C=c+f[h],v=c-f[y];c=Nn(C,c,v)}if(s){let h=d==="y"?"top":"left",y=d==="y"?"bottom":"right",C=m+f[h],v=m-f[y];m=Nn(C,m,v)}let g=i.fn({...t,[p]:c,[d]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},fg=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}=$a(e,t),l=await qo(t,i),u=ma(a),f=to(a),d=Ea(a)==="y",{width:p,height:c}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=f===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=f==="end"?"top":"bottom");let h=c-l.top-l.bottom,y=p-l.left-l.right,C=Mt(c-l[m],h),v=Mt(p-l[g],y),L=!t.middlewareData.shift,b=C,D=v;if(d?D=f||L?Mt(v,y):y:b=f||L?Mt(C,h):h,L&&!f){let E=rt(l.left,0),w=rt(l.right,0),M=rt(l.top,0),N=rt(l.bottom,0);d?D=p-2*(E!==0||w!==0?E+w:rt(l.left,l.right)):b=c-2*(M!==0||N!==0?M+N:rt(l.top,l.bottom))}await s({...t,availableWidth:D,availableHeight:b});let I=await r.getDimensions(n.floating);return p!==I.width||c!==I.height?{reset:{rects:!0}}:{}}}};mg=pa(0);Sg=async function(e){let t=this.getOffsetParent||bu,a=this.getDimensions,o=await a(e.floating);return{reference:wg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};Iu={convertOffsetParentRelativeRectToViewportRelativeRect:hg,getDocumentElement:jt,getClippingRect:bg,getOffsetParent:bu,getElementRects:Sg,getClientRects:xg,getDimensions:Ig,getScale:Ja,isElement:Ct,isRTL:kg};Dg=ug,Ag=dg,Tg=sg,Rg=fg,Eg=lg,Fg=ng,$g=(e,t,a)=>{let o=new Map,r={platform:Iu,...a},n={...r.platform,_c:o};return rg(e,t,{...r,platform:n})},rs=qe();Og=H('<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">'),_n=30,hi=_n/2,Bg={top:180,right:-90,bottom:0,left:90};Hg={top:"bottom",right:"left",bottom:"top",left:"right"};wu=Object.assign(Vg,{Arrow:ss,Context:rs,usePopperContext:ns,Positioner:zg});yi="interactOutside.pointerDownOutside",Ci="interactOutside.focusOutside";Su=qe();dt={};Vr(dt,{Description:()=>Yi,ErrorMessage:()=>Ji,Item:()=>Au,ItemControl:()=>Tu,ItemDescription:()=>Ru,ItemIndicator:()=>Eu,ItemInput:()=>Fu,ItemLabel:()=>$u,Label:()=>Ou,RadioGroup:()=>Xg,Root:()=>Bu});Pu=qe();Du=qe();Xg=Object.assign(Bu,{Description:Yi,ErrorMessage:Ji,Item:Au,ItemControl:Tu,ItemDescription:Ru,ItemIndicator:Eu,ItemInput:Fu,ItemLabel:$u,Label:Ou}),Qg=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)}}};Rn="focusScope.autoFocusOnMount",En="focusScope.autoFocusOnUnmount",vi={bubbles:!1,cancelable:!0},Li={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Bn(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Bn(this.stack,e),this.active()?.resume()}};Jg="data-live-announcer";Ro=new WeakMap,ut=[];Ar=new Map,ah=e=>{G(()=>{let t=Ge(e.style)??{},a=Ge(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=Ar.get(e.key);r?r.activeCount++:Ar.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);j(()=>{let n=Ar.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Ar.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?.()}})})},bi=ah,oh=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},rh=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},nh=(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,f]=oh(r,t),d=f-l-o*u;(u!==0||d!==0)&&rh(r,t)&&(n+=d,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[Ii,wi]=B([]),sh=e=>Ii().indexOf(e)===Ii().length-1,lh=e=>{let t=J({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=tt(),o=[0,0],r=null,n=null;G(()=>{Ge(t.enabled)&&(wi(u=>[...u,a]),j(()=>{wi(u=>u.filter(f=>f!==a))}))}),G(()=>{if(!Ge(t.enabled)||!Ge(t.hideScrollbar))return;let{body:u}=document,f=window.innerWidth-u.offsetWidth;if(Ge(t.preventScrollbarShift)){let d={overflow:"hidden"},p=[];f>0&&(Ge(t.preventScrollbarShiftMode)==="padding"?d.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${f}px)`:d.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${f}px)`,p.push({key:"--scrollbar-width",value:`${f}px`}));let c=window.scrollY,m=window.scrollX;bi({key:"prevent-scroll",element:u,style:d,properties:p,cleanup:()=>{Ge(t.restoreScrollPosition)&&f>0&&window.scrollTo(m,c)}})}else bi({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),G(()=>{!sh(a)||!Ge(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),j(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=Si(u),r=null,n=null},i=u=>{let f=u.target,d=Ge(t.element),p=ih(u),c=Math.abs(p[0])>Math.abs(p[1])?"x":"y",m=c==="x"?p[0]:p[1],g=ki(f,c,m,d),h;d&&Vn(d,f)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let f=Ge(t.element),d=u.target,p;if(u.touches.length===2)p=!Ge(t.allowPinchZoom);else{if(r==null||n===null){let c=Si(u).map((g,h)=>o[h]-g),m=Math.abs(c[0])>Math.abs(c[1])?"x":"y";r=m,n=m==="x"?c[0]:c[1]}if(d.type==="range")p=!1;else{let c=ki(d,r,n,f);f&&Vn(f,d)?p=!c:p=!0}}p&&u.cancelable&&u.preventDefault()}},ih=e=>[e.deltaX,e.deltaY],Si=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],ki=(e,t,a,o)=>{let r=o!==null&&Vn(o,e),[n,s]=nh(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Vn=(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},uh=lh,dh=uh,qu=qe();Uu=qe();Nu=qe();fh=qe();Uo={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Uo.next(e==="ltr"?"rtl":"ltr",t)},Pi={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};ch=qe();Ku=qe();ed=qe();yh={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};Mi=["Enter"," "],Ch={open:(e,t)=>e==="ltr"?[...Mi,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Mi,t==="horizontal"?"ArrowLeft":"ArrowUp"]};Lh={};Vr(Lh,{Root:()=>jr,Separator:()=>bh});bh=jr,Te={};Vr(Te,{Arrow:()=>ss,CheckboxItem:()=>Hu,Content:()=>ld,DropdownMenu:()=>Ih,Group:()=>us,GroupLabel:()=>Wu,Icon:()=>ju,Item:()=>Xu,ItemDescription:()=>Qu,ItemIndicator:()=>Zu,ItemLabel:()=>Yu,Portal:()=>Ju,RadioGroup:()=>td,RadioItem:()=>ad,Root:()=>id,Separator:()=>jr,Sub:()=>rd,SubContent:()=>nd,SubTrigger:()=>sd,Trigger:()=>_u});Ih=Object.assign(id,{Arrow:ss,CheckboxItem:Hu,Content:ld,Group:us,GroupLabel:Wu,Icon:ju,Item:Xu,ItemDescription:Qu,ItemIndicator:Zu,ItemLabel:Yu,Portal:Ju,RadioGroup:td,RadioItem:ad,Separator:jr,Sub:rd,SubContent:nd,SubTrigger:sd,Trigger:_u}),P={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}},wh=H('<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>'),Sh=H('<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>'),kh=H('<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>'),Ph=H('<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>'),ds=H('<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>'),Mh=H('<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>'),Dh=H('<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>'),Ah=H('<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>'),Th=H('<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">'),Rh=H('<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">'),Eh=H('<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>'),Fh=H('<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>'),$h=H('<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>'),Oh=H('<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>'),ud=H('<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>'),Bh=H('<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>'),qh=H('<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>'),zh=H('<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>'),Uh=H('<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>'),Nh=H('<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>'),Hh=H('<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>'),_h=H('<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>'),Vh=H('<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>');f0=H('<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>'),c0=H('<button title="Copy object to clipboard">'),p0=H('<button title="Remove all items"aria-label="Remove all items">'),m0=H('<button title="Delete item"aria-label="Delete item">'),g0=H('<button title="Toggle value"aria-label="Toggle value">'),h0=H('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),Eo=H("<div>"),x0=H("<div><button> <span></span> <span> "),y0=H("<input>"),Ri=H("<span>"),C0=H("<div><span>:"),v0=H("<div><div><button> [<!>...<!>]");Ei=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?ro(a):oo(a));return(()=>{var r=f0();return V(()=>F(r,z(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})()},b0=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?ro(a):oo(a)),[r,n]=B("NoCopy");return(()=>{var s=c0();return In(s,"click",r()==="NoCopy"?()=>{navigator.clipboard.writeText(Bl(e.value)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},i=>{n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,!0),k(s,x(xl,{get children(){return[x(Ir,{get when(){return r()==="NoCopy"},get children(){return x(t0,{})}}),x(Ir,{get when(){return r()==="SuccessCopy"},get children(){return x(o0,{get theme(){return t()}})}}),x(Ir,{get when(){return r()==="ErrorCopy"},get children(){return x(r0,{})}})]}})),V(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&&F(s,i.e=l),u!==i.t&&R(s,"aria-label",i.t=u),i},{e:void 0,t:void 0}),s})()},I0=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?ro(a):oo(a)),r=W().client;return(()=>{var n=p0();return n.$$click=()=>{let s=e.activeQuery.state.data,i=ia(s,e.dataPath,[]);r.setQueryData(e.activeQuery.queryKey,i)},k(n,x(n0,{})),V(()=>F(n,o().actionButton)),n})()},Fi=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?ro(a):oo(a)),r=W().client;return(()=>{var n=m0();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Ga(s,e.dataPath);r.setQueryData(e.activeQuery.queryKey,i)},k(n,x(dd,{})),V(()=>F(n,z(o().actionButton))),n})()},w0=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?ro(a):oo(a)),r=W().client;return(()=>{var n=g0();return n.$$click=()=>{let s=e.activeQuery.state.data,i=ia(s,e.dataPath,!e.value);r.setQueryData(e.activeQuery.queryKey,i)},k(n,x(s0,{get theme(){return t()},get checked(){return e.value}})),V(()=>F(n,z(o().actionButton,a`
|
|
8
|
+
width: ${P.size[3.5]};
|
|
9
|
+
height: ${P.size[3.5]};
|
|
10
|
+
`))),n})()};fd=(e,t)=>{let{colors:a,font:o,size:r,border:n}=P,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
|
-
`}},oo=e=>
|
|
121
|
+
`}},oo=e=>fd("light",e),ro=e=>fd("dark",e);Mo(["click"]);S0=H('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),jo=H("<div>"),k0=H('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),P0=H("<select name=tsqd-queries-filter-sort>"),M0=H("<select name=tsqd-mutations-filter-sort>"),D0=H("<span>Asc"),A0=H("<span>Desc"),T0=H('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),R0=H("<div>Settings"),E0=H("<span>Position"),F0=H("<span>Top"),$0=H("<span>Bottom"),O0=H("<span>Left"),B0=H("<span>Right"),q0=H("<span>Theme"),z0=H("<span>Light"),U0=H("<span>Dark"),N0=H("<span>System"),H0=H("<div><div class=tsqd-queries-container>"),_0=H("<div><div class=tsqd-mutations-container>"),V0=H('<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>'),Oi=H("<option>Sort by "),G0=H("<div class=tsqd-query-disabled-indicator>disabled"),cd=H("<button><div></div><code class=tsqd-query-hash>"),K0=H("<div role=tooltip id=tsqd-status-tooltip>"),W0=H("<span>"),j0=H("<button><span></span><span>"),X0=H("<button><span></span> Error"),Q0=H('<div><span></span>Trigger Error<select><option value=""disabled selected>'),Z0=H('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),Y0=H("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),J0=H('<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">'),e1=H("<option>"),t1=H('<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">'),[ot,Xr]=B(null),[ca,pd]=B(null),[yt,fs]=B(0),[Qa,Bi]=B(!1),md=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?mt(a):pt(a)),r=Kn(),n=S(()=>W().buttonPosition||np),s=S(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:W().initialIsOpen||sp),i=S(()=>e.localStore.position||W().position||$n),l;G(()=>{let f=l.parentElement,d=e.localStore.height||qi,p=e.localStore.width||zi,c=i();f.style.setProperty("--tsqd-panel-height",`${c==="top"?"-":""}${d}px`),f.style.setProperty("--tsqd-panel-width",`${c==="left"?"-":""}${p}px`)}),_t(()=>{let f=()=>{let d=l.parentElement,p=getComputedStyle(d).fontSize;d.style.setProperty("--tsqd-font-size",p)};f(),window.addEventListener("focus",f),j(()=>{window.removeEventListener("focus",f)})});let u=S(()=>e.localStore.pip_open??"false");return[x(K,{get when(){return S(()=>!!r().pipWindow)()&&u()=="true"},get children(){return x(Sn,{get mount(){return r().pipWindow?.document.body},get children(){return x(a1,{get children(){return x(Qr,e)}})}})}}),(()=>{var f=jo(),d=l;return typeof d=="function"?Pa(d,f):l=f,k(f,x(Yl,{name:"tsqd-panel-transition",get children(){return x(K,{get when(){return S(()=>!!(s()&&!r().pipWindow))()&&u()=="false"},get children(){return x(o1,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),k(f,x(Yl,{name:"tsqd-button-transition",get children(){return x(K,{get when(){return!s()},get children(){var p=S0(),c=p.firstChild,m=c.nextSibling;return k(c,x(Ti,{})),m.$$click=()=>e.setLocalStore("open","true"),k(m,x(Ti,{})),V(()=>F(p,z(o().devtoolsBtn,o()[`devtoolsBtn-position-${n()}`],"tsqd-open-btn-container"))),p}})}}),null),V(()=>F(f,z(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"))),f})()]},
|
|
147
|
+
`,"tsqd-transitions-container"))),f})()]},a1=e=>{let t=Kn(),a=Ue(),o=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,r=S(()=>a()==="dark"?mt(o):pt(o)),n=()=>{let{colors:s}=P,i=(l,u)=>a()==="dark"?u:l;return yt()<Ra?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 G(()=>{let s=t().pipWindow,i=()=>{s&&
|
|
153
|
+
`};return G(()=>{let s=t().pipWindow,i=()=>{s&&fs(s.innerWidth)};s&&(s.addEventListener("resize",i),i()),j(()=>{s&&s.removeEventListener("resize",i)})}),(()=>{var s=jo();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),k(s,()=>e.children),V(()=>F(s,z(r().panel,n(),{[o`
|
|
154
154
|
min-width: min-content;
|
|
155
|
-
`]:yt()<
|
|
155
|
+
`]:yt()<Gn},"tsqd-main-panel"))),s})()},gd=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?mt(a):pt(a)),r;_t(()=>{Gi(r,({width:s},i)=>{i===r&&fs(s)})});let n=()=>{let{colors:s}=P,i=(l,u)=>t()==="dark"?u:l;return yt()<Ra?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=jo(),i=r;return typeof i=="function"?Pa(i,s):r=s,s.style.setProperty("--tsqd-font-size","16px"),k(s,()=>e.children),V(()=>F(s,z(o().parentPanel,n(),{[a`
|
|
162
162
|
min-width: min-content;
|
|
163
|
-
`]:yt()<
|
|
163
|
+
`]:yt()<Gn},"tsqd-main-panel"))),s})()},o1=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?mt(a):pt(a)),[r,n]=B(!1),s=S(()=>e.localStore.position||W().position||$n),i=f=>{let d=f.currentTarget.parentElement;if(!d)return;n(!0);let{height:p,width:c}=d.getBoundingClientRect(),m=f.clientX,g=f.clientY,h=0,y=Pn(3.5),C=Pn(12),v=b=>{if(b.preventDefault(),s()==="left"||s()==="right"){let D=s()==="right"?m-b.clientX:b.clientX-m;h=Math.round(c+D),h<C&&(h=C),e.setLocalStore("width",String(Math.round(h)));let I=d.getBoundingClientRect().width;Number(e.localStore.width)<I&&e.setLocalStore("width",String(I))}else{let D=s()==="bottom"?g-b.clientY:b.clientY-g;h=Math.round(p+D),h<y&&(h=y,Xr(null)),e.setLocalStore("height",String(Math.round(h)))}},L=()=>{r()&&n(!1),document.removeEventListener("mousemove",v,!1),document.removeEventListener("mouseUp",L,!1)};document.addEventListener("mousemove",v,!1),document.addEventListener("mouseup",L,!1)},l;_t(()=>{Gi(l,({width:f},d)=>{d===l&&fs(f)})}),G(()=>{let f=l.parentElement?.parentElement?.parentElement;if(!f)return;let d=e.localStore.position||$n,p=ql("padding",d),c=e.localStore.position==="left"||e.localStore.position==="right",m=(({padding:g,paddingTop:h,paddingBottom:y,paddingLeft:C,paddingRight:v})=>({padding:g,paddingTop:h,paddingBottom:y,paddingLeft:C,paddingRight:v}))(f.style);f.style[p]=`${c?e.localStore.width:e.localStore.height}px`,j(()=>{Object.entries(m).forEach(([g,h])=>{f.style[g]=h})})});let u=()=>{let{colors:f}=P,d=(p,c)=>t()==="dark"?c:p;return yt()<Ra?a`
|
|
164
164
|
flex-direction: column;
|
|
165
165
|
background-color: ${d(f.gray[300],f.gray[600])};
|
|
166
166
|
`:a`
|
|
167
167
|
flex-direction: row;
|
|
168
168
|
background-color: ${d(f.gray[200],f.darkGray[900])};
|
|
169
|
-
`};return(()=>{var f=
|
|
169
|
+
`};return(()=>{var f=k0(),d=f.firstChild,p=d.nextSibling,c=l;return typeof c=="function"?Pa(c,f):l=f,d.$$mousedown=i,p.$$click=()=>e.setLocalStore("open","false"),k(p,x(Oo,{})),k(f,x(Qr,e),null),V(m=>{var g=z(o().panel,o()[`panel-position-${s()}`],u(),{[a`
|
|
170
170
|
min-width: min-content;
|
|
171
|
-
`]:yt()<
|
|
171
|
+
`]:yt()<Gn&&(s()==="right"||s()==="left")},"tsqd-main-panel"),h=s()==="bottom"||s()==="top"?`${e.localStore.height||qi}px`:"auto",y=s()==="right"||s()==="left"?`${e.localStore.width||zi}px`:"auto",C=z(o().dragHandle,o()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),v=z(o().closeBtn,o()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return g!==m.e&&F(f,m.e=g),h!==m.t&&((m.t=h)!=null?f.style.setProperty("height",h):f.style.removeProperty("height")),y!==m.a&&((m.a=y)!=null?f.style.setProperty("width",y):f.style.removeProperty("width")),C!==m.o&&F(d,m.o=C),v!==m.i&&F(p,m.i=v),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),f})()},Qr=e=>{d1(),f1();let t,a=Ue(),o=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,r=S(()=>a()==="dark"?mt(o):pt(o)),n=Kn(),[s,i]=B("queries"),l=S(()=>e.localStore.sort||ip),u=S(()=>Number(e.localStore.sortOrder)||Gl),f=S(()=>e.localStore.mutationSort||up),d=S(()=>Number(e.localStore.mutationSortOrder)||Gl),p=S(()=>Sr[l()]),c=S(()=>kr[f()]),m=S(()=>W().onlineManager),g=S(()=>W().client.getQueryCache()),h=S(()=>W().client.getMutationCache()),y=Ne(I=>I().getAll().length,!1),C=S(Pt(()=>[y(),e.localStore.filter,l(),u()],()=>{let I=g().getAll(),E=e.localStore.filter?I.filter(M=>Kl(M.queryHash,e.localStore.filter||"").passed):[...I];return p()?E.sort((M,N)=>p()(M,N)*u()):E})),v=xt(I=>I().getAll().length,!1),L=S(Pt(()=>[v(),e.localStore.mutationFilter,f(),d()],()=>{let I=h().getAll(),E=e.localStore.mutationFilter?I.filter(M=>{let N=`${M.options.mutationKey?JSON.stringify(M.options.mutationKey)+" - ":""}${new Date(M.state.submittedAt).toLocaleString()}`;return Kl(N,e.localStore.mutationFilter||"").passed}):[...I];return c()?E.sort((M,N)=>c()(M,N)*d()):E})),b=I=>{e.setLocalStore("position",I)},D=I=>{let w=getComputedStyle(t).getPropertyValue("--tsqd-font-size");I.style.setProperty("--tsqd-font-size",w)};return[(()=>{var I=V0(),E=I.firstChild,w=E.firstChild,M=w.firstChild,N=M.firstChild,_=N.nextSibling,ae=_.firstChild,ue=E.nextSibling,pe=ue.firstChild,ve=pe.firstChild,he=ve.firstChild,Le=ve.nextSibling,Ie=Le.nextSibling,Re=pe.nextSibling,Qe=Re.firstChild,Me=Qe.nextSibling,We=t;return typeof We=="function"?Pa(We,I):t=I,M.$$click=()=>{if(!n().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},k(_,()=>W().queryFlavor,ae),k(_,()=>W().version,null),k(w,x(dt.Root,{get class(){return z(r().viewToggle)},get value(){return s()},onChange:$=>{i($),Xr(null),pd(null)},get children(){return[x(dt.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[x(dt.ItemInput,{}),x(dt.ItemControl,{get children(){return x(dt.ItemIndicator,{})}}),x(dt.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),x(dt.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[x(dt.ItemInput,{}),x(dt.ItemControl,{get children(){return x(dt.ItemIndicator,{})}}),x(dt.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),k(E,x(K,{get when(){return s()==="queries"},get children(){return x(s1,{})}}),null),k(E,x(K,{get when(){return s()==="mutations"},get children(){return x(l1,{})}}),null),k(ve,x(Gh,{}),he),he.$$input=$=>{s()==="queries"?e.setLocalStore("filter",$.currentTarget.value):e.setLocalStore("mutationFilter",$.currentTarget.value)},k(Le,x(K,{get when(){return s()==="queries"},get children(){var $=P0();return $.addEventListener("change",Pe=>{e.setLocalStore("sort",Pe.currentTarget.value)}),k($,()=>Object.keys(Sr).map(Pe=>(()=>{var de=Oi();return de.firstChild,de.value=Pe,k(de,Pe,null),de})())),V(()=>$.value=l()),$}}),null),k(Le,x(K,{get when(){return s()==="mutations"},get children(){var $=M0();return $.addEventListener("change",Pe=>{e.setLocalStore("mutationSort",Pe.currentTarget.value)}),k($,()=>Object.keys(kr).map(Pe=>(()=>{var de=Oi();return de.firstChild,de.value=Pe,k(de,Pe,null),de})())),V(()=>$.value=f()),$}}),null),k(Le,x(Oo,{}),null),Ie.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(d()*-1))},k(Ie,x(K,{get when(){return(s()==="queries"?u():d())===1},get children(){return[D0(),x(Di,{})]}}),null),k(Ie,x(K,{get when(){return(s()==="queries"?u():d())===-1},get children(){return[A0(),x(Ai,{})]}}),null),Qe.$$click=()=>{s()==="queries"?g().clear():h().clear()},k(Qe,x(dd,{})),Me.$$click=()=>{Qa()?(m().setOnline(!0),Bi(!1)):(m().setOnline(!1),Bi(!0))},k(Me,(()=>{var $=S(()=>!!Qa());return()=>$()?x(Yh,{}):x(Zh,{})})()),k(Re,x(K,{get when(){return S(()=>!n().pipWindow)()&&!n().disabled},get children(){var $=T0();return $.$$click=()=>{n().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},k($,x(e0,{})),V(()=>F($,z(r().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),$}}),null),k(Re,x(Te.Root,{gutter:4,get children(){return[x(Te.Trigger,{get class(){return z(r().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return x(Jh,{})}}),x(Te.Portal,{ref:$=>D($),get mount(){return S(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return x(Te.Content,{get class(){return z(r().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var $=R0();return V(()=>F($,z(r().settingsMenuHeader,"tsqd-settings-menu-header"))),$})(),x(K,{get when(){return!e.showPanelViewOnly},get children(){return x(Te.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[x(Te.SubTrigger,{get class(){return z(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[E0(),x(Oo,{})]}}),x(Te.Portal,{ref:$=>D($),get mount(){return S(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return x(Te.SubContent,{get class(){return z(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[x(Te.Item,{onSelect:()=>{b("top")},as:"button",get class(){return z(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[F0(),x(Di,{})]}}),x(Te.Item,{onSelect:()=>{b("bottom")},as:"button",get class(){return z(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[$0(),x(Ai,{})]}}),x(Te.Item,{onSelect:()=>{b("left")},as:"button",get class(){return z(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[O0(),x(Kh,{})]}}),x(Te.Item,{onSelect:()=>{b("right")},as:"button",get class(){return z(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[B0(),x(Wh,{})]}})]}})}})]}})}}),x(Te.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[x(Te.SubTrigger,{get class(){return z(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[q0(),x(Oo,{})]}}),x(Te.Portal,{ref:$=>D($),get mount(){return S(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return x(Te.SubContent,{get class(){return z(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[x(Te.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return z(r().settingsSubButton,e.localStore.theme_preference==="light"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[z0(),x(jh,{})]}}),x(Te.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return z(r().settingsSubButton,e.localStore.theme_preference==="dark"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[U0(),x(Xh,{})]}}),x(Te.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return z(r().settingsSubButton,e.localStore.theme_preference==="system"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[N0(),x(Qh,{})]}})]}})}})]}})]}})}})]}}),null),k(I,x(K,{get when(){return s()==="queries"},get children(){var $=H0(),Pe=$.firstChild;return k(Pe,x(Tr,{by:de=>de.queryHash,get each(){return C()},children:de=>x(r1,{get query(){return de()}})})),V(()=>F($,z(r().overflowQueryContainer,"tsqd-queries-overflow-container"))),$}}),null),k(I,x(K,{get when(){return s()==="mutations"},get children(){var $=_0(),Pe=$.firstChild;return k(Pe,x(Tr,{by:de=>de.mutationId,get each(){return L()},children:de=>x(n1,{get mutation(){return de()}})})),V(()=>F($,z(r().overflowQueryContainer,"tsqd-mutations-overflow-container"))),$}}),null),V($=>{var Pe=z(r().queriesContainer,yt()<Ra&&(ot()||ca())&&o`
|
|
172
172
|
height: 50%;
|
|
173
173
|
max-height: 50%;
|
|
174
|
-
`,yt()<Ra&&!(ot()||
|
|
174
|
+
`,yt()<Ra&&!(ot()||ca())&&o`
|
|
175
175
|
height: 100%;
|
|
176
176
|
max-height: 100%;
|
|
177
|
-
`,"tsqd-queries-container"),
|
|
177
|
+
`,"tsqd-queries-container"),de=z(r().row,"tsqd-header"),na=r().logoAndToggleContainer,Y=z(r().logo,"tsqd-text-logo-container"),gt=z(r().tanstackLogo,"tsqd-text-logo-tanstack"),He=z(r().queryFlavorLogo,"tsqd-text-logo-query-flavor"),Ua=z(r().row,"tsqd-filters-actions-container"),lt=z(r().filtersContainer,"tsqd-filters-container"),sa=z(r().filterInput,"tsqd-query-filter-textfield-container"),Ia=z("tsqd-query-filter-textfield"),Bt=z(r().filterSelect,"tsqd-query-filter-sort-container"),wt=`Sort order ${(s()==="queries"?u():d())===-1?"descending":"ascending"}`,qt=(s()==="queries"?u():d())===-1,q=z(r().actionsContainer,"tsqd-actions-container"),xe=z(r().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),je=`Clear ${s()} cache`,be=z(r().actionsBtn,Qa()&&r().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),ge=`${Qa()?"Unset offline mocking behavior":"Mock offline behavior"}`,we=Qa(),Be=`${Qa()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Pe!==$.e&&F(I,$.e=Pe),de!==$.t&&F(E,$.t=de),na!==$.a&&F(w,$.a=na),Y!==$.o&&F(M,$.o=Y),gt!==$.i&&F(N,$.i=gt),He!==$.n&&F(_,$.n=He),Ua!==$.s&&F(ue,$.s=Ua),lt!==$.h&&F(pe,$.h=lt),sa!==$.r&&F(ve,$.r=sa),Ia!==$.d&&F(he,$.d=Ia),Bt!==$.l&&F(Le,$.l=Bt),wt!==$.u&&R(Ie,"aria-label",$.u=wt),qt!==$.c&&R(Ie,"aria-pressed",$.c=qt),q!==$.w&&F(Re,$.w=q),xe!==$.m&&F(Qe,$.m=xe),je!==$.f&&R(Qe,"title",$.f=je),be!==$.y&&F(Me,$.y=be),ge!==$.g&&R(Me,"aria-label",$.g=ge),we!==$.p&&R(Me,"aria-pressed",$.p=we),Be!==$.b&&R(Me,"title",$.b=Be),$},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),V(()=>he.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),I})(),x(K,{get when(){return S(()=>s()==="queries")()&&ot()},get children(){return x(i1,{})}}),x(K,{get when(){return S(()=>s()==="mutations")()&&ca()},get children(){return x(u1,{})}})]},r1=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?mt(a):pt(a)),{colors:r,alpha:n}=P,s=(c,m)=>t()==="dark"?m:c,i=Ne(c=>c().find({queryKey:e.query.queryKey})?.state,!0,c=>c.query.queryHash===e.query.queryHash),l=Ne(c=>c().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,c=>c.query.queryHash===e.query.queryHash),u=Ne(c=>c().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,c=>c.query.queryHash===e.query.queryHash),f=Ne(c=>c().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,c=>c.query.queryHash===e.query.queryHash),d=S(()=>zl({queryState:i(),observerCount:f(),isStale:u()})),p=()=>d()==="gray"?a`
|
|
178
178
|
background-color: ${s(r[d()][200],r[d()][700])};
|
|
179
179
|
color: ${s(r[d()][700],r[d()][300])};
|
|
180
180
|
`:a`
|
|
181
181
|
background-color: ${s(r[d()][200]+n[80],r[d()][900])};
|
|
182
182
|
color: ${s(r[d()][800],r[d()][300])};
|
|
183
|
-
`;return x(K,{get when(){return i()},get children(){var c=
|
|
183
|
+
`;return x(K,{get when(){return i()},get children(){var c=cd(),m=c.firstChild,g=m.nextSibling;return c.$$click=()=>Xr(e.query.queryHash===ot()?null:e.query.queryHash),k(m,f),k(g,()=>e.query.queryHash),k(c,x(K,{get when(){return l()},get children(){return G0()}}),null),V(h=>{var y=z(o().queryRow,ot()===e.query.queryHash&&o().selectedQueryRow,"tsqd-query-row"),C=`Query key ${e.query.queryHash}`,v=z(p(),"tsqd-query-observer-count");return y!==h.e&&F(c,h.e=y),C!==h.t&&R(c,"aria-label",h.t=C),v!==h.a&&F(m,h.a=v),h},{e:void 0,t:void 0,a:void 0}),c}})},n1=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?mt(a):pt(a)),{colors:r,alpha:n}=P,s=(p,c)=>t()==="dark"?c:p,i=xt(p=>p().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),l=xt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.isPaused:!1}),u=xt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.status:"idle"}),f=S(()=>Aa({isPaused:l(),status:u()})),d=()=>f()==="gray"?a`
|
|
184
184
|
background-color: ${s(r[f()][200],r[f()][700])};
|
|
185
185
|
color: ${s(r[f()][700],r[f()][300])};
|
|
186
186
|
`:a`
|
|
187
187
|
background-color: ${s(r[f()][200]+n[80],r[f()][900])};
|
|
188
188
|
color: ${s(r[f()][800],r[f()][300])};
|
|
189
|
-
`;return x(K,{get when(){return i()},get children(){var p=
|
|
189
|
+
`;return x(K,{get when(){return i()},get children(){var p=cd(),c=p.firstChild,m=c.nextSibling;return p.$$click=()=>{pd(e.mutation.mutationId===ca()?null:e.mutation.mutationId)},k(c,x(K,{get when(){return f()==="purple"},get children(){return x(d0,{})}}),null),k(c,x(K,{get when(){return f()==="green"},get children(){return x(l0,{})}}),null),k(c,x(K,{get when(){return f()==="red"},get children(){return x(u0,{})}}),null),k(c,x(K,{get when(){return f()==="yellow"},get children(){return x(i0,{})}}),null),k(m,x(K,{get when(){return e.mutation.options.mutationKey},get children(){return[S(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),k(m,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),V(g=>{var h=z(o().queryRow,ca()===e.mutation.mutationId&&o().selectedQueryRow,"tsqd-query-row"),y=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,C=z(d(),"tsqd-query-observer-count");return h!==g.e&&F(p,g.e=h),y!==g.t&&R(p,"aria-label",g.t=y),C!==g.a&&F(c,g.a=C),g},{e:void 0,t:void 0,a:void 0}),p}})},s1=()=>{let e=Ne(l=>l().getAll().filter(u=>Da(u)==="stale").length),t=Ne(l=>l().getAll().filter(u=>Da(u)==="fresh").length),a=Ne(l=>l().getAll().filter(u=>Da(u)==="fetching").length),o=Ne(l=>l().getAll().filter(u=>Da(u)==="paused").length),r=Ne(l=>l().getAll().filter(u=>Da(u)==="inactive").length),n=Ue(),s=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,i=S(()=>n()==="dark"?mt(s):pt(s));return(()=>{var l=jo();return k(l,x(Kt,{label:"Fresh",color:"green",get count(){return t()}}),null),k(l,x(Kt,{label:"Fetching",color:"blue",get count(){return a()}}),null),k(l,x(Kt,{label:"Paused",color:"purple",get count(){return o()}}),null),k(l,x(Kt,{label:"Stale",color:"yellow",get count(){return e()}}),null),k(l,x(Kt,{label:"Inactive",color:"gray",get count(){return r()}}),null),V(()=>F(l,z(i().queryStatusContainer,"tsqd-query-status-container"))),l})()},l1=()=>{let e=xt(i=>i().getAll().filter(l=>Aa({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=xt(i=>i().getAll().filter(l=>Aa({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),a=xt(i=>i().getAll().filter(l=>Aa({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),o=xt(i=>i().getAll().filter(l=>Aa({isPaused:l.state.isPaused,status:l.state.status})==="red").length),r=Ue(),n=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,s=S(()=>r()==="dark"?mt(n):pt(n));return(()=>{var i=jo();return k(i,x(Kt,{label:"Paused",color:"purple",get count(){return a()}}),null),k(i,x(Kt,{label:"Pending",color:"yellow",get count(){return t()}}),null),k(i,x(Kt,{label:"Success",color:"green",get count(){return e()}}),null),k(i,x(Kt,{label:"Error",color:"red",get count(){return o()}}),null),V(()=>F(i,z(s().queryStatusContainer,"tsqd-query-status-container"))),i})()},Kt=e=>{let t=Ue(),a=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,o=S(()=>t()==="dark"?mt(a):pt(a)),{colors:r,alpha:n}=P,s=(c,m)=>t()==="dark"?m:c,i,[l,u]=B(!1),[f,d]=B(!1),p=S(()=>!(ot()&&yt()<rp&&yt()>Ra||yt()<Ra));return(()=>{var c=j0(),m=c.firstChild,g=m.nextSibling,h=i;return typeof h=="function"?Pa(h,c):i=c,c.addEventListener("mouseleave",()=>{u(!1),d(!1)}),c.addEventListener("mouseenter",()=>u(!0)),c.addEventListener("blur",()=>d(!1)),c.addEventListener("focus",()=>d(!0)),wn(c,J({get disabled(){return p()},get class(){return z(o().queryStatusTag,!p()&&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()||f()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),
|
|
195
|
-
width: ${
|
|
196
|
-
height: ${
|
|
197
|
-
border-radius: ${
|
|
198
|
-
background-color: ${
|
|
194
|
+
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||f()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),k(c,x(K,{get when(){return S(()=>!p())()&&(l()||f())},get children(){var y=K0();return k(y,()=>e.label),V(()=>F(y,z(o().statusTooltip,"tsqd-query-status-tooltip"))),y}}),m),k(c,x(K,{get when(){return p()},get children(){var y=W0();return k(y,()=>e.label),V(()=>F(y,z(o().queryStatusTagLabel,"tsqd-query-status-tag-label"))),y}}),g),k(g,()=>e.count),V(y=>{var C=z(a`
|
|
195
|
+
width: ${P.size[1.5]};
|
|
196
|
+
height: ${P.size[1.5]};
|
|
197
|
+
border-radius: ${P.border.radius.full};
|
|
198
|
+
background-color: ${P.colors[e.color][500]};
|
|
199
199
|
`,"tsqd-query-status-tag-dot"),v=z(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 C!==y.e&&
|
|
202
|
+
`,"tsqd-query-status-tag-count");return C!==y.e&&F(m,y.e=C),v!==y.t&&F(g,y.t=v),y},{e:void 0,t:void 0}),c})()},i1=()=>{let e=Ue(),t=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,a=S(()=>e()==="dark"?mt(t):pt(t)),{colors:o}=P,r=(w,M)=>e()==="dark"?M:w,n=W().client,[s,i]=B(!1),[l,u]=B("view"),[f,d]=B(!1),p=S(()=>W().errorTypes||[]),c=Ne(w=>w().getAll().find(M=>M.queryHash===ot()),!1),m=Ne(w=>w().getAll().find(M=>M.queryHash===ot()),!1),g=Ne(w=>w().getAll().find(M=>M.queryHash===ot())?.state,!1),h=Ne(w=>w().getAll().find(M=>M.queryHash===ot())?.state.data,!1),y=Ne(w=>{let M=w().getAll().find(N=>N.queryHash===ot());return M?Da(M):"inactive"}),C=Ne(w=>{let M=w().getAll().find(N=>N.queryHash===ot());return M?M.state.status:"pending"}),v=Ne(w=>w().getAll().find(M=>M.queryHash===ot())?.getObserversCount()??0),L=S(()=>Ul(y())),b=()=>{c()?.fetch()?.catch(()=>{})},D=w=>{let M=w?.initializer(c())??new Error("Unknown error from devtools"),N=c().options;c().setState({status:"error",error:M,fetchMeta:{...c().state.fetchMeta,__previousQueryOptions:N}})},I=()=>{let w=c(),M=w.state,N=w.state.fetchMeta?w.state.fetchMeta.__previousQueryOptions:null;w.cancel({silent:!0}),w.setState({...M,fetchStatus:"idle",fetchMeta:null}),N&&w.fetch(N)};G(()=>{y()!=="fetching"&&i(!1)});let E=()=>L()==="gray"?t`
|
|
203
203
|
background-color: ${r(o[L()][200],o[L()][700])};
|
|
204
204
|
color: ${r(o[L()][700],o[L()][300])};
|
|
205
205
|
border-color: ${r(o[L()][400],o[L()][600])};
|
|
@@ -207,17 +207,17 @@
|
|
|
207
207
|
background-color: ${r(o[L()][100],o[L()][900])};
|
|
208
208
|
color: ${r(o[L()][700],o[L()][300])};
|
|
209
209
|
border-color: ${r(o[L()][400],o[L()][600])};
|
|
210
|
-
`;return x(K,{get when(){return
|
|
210
|
+
`;return x(K,{get when(){return S(()=>!!c())()&&g()},get children(){var w=J0(),M=w.firstChild,N=M.nextSibling,_=N.firstChild,ae=_.firstChild,ue=ae.firstChild,pe=ae.nextSibling,ve=_.nextSibling,he=ve.firstChild,Le=he.nextSibling,Ie=ve.nextSibling,Re=Ie.firstChild,Qe=Re.nextSibling,Me=N.nextSibling,We=Me.nextSibling,$=We.firstChild,Pe=$.firstChild,de=$.nextSibling,na=de.firstChild,Y=de.nextSibling,gt=Y.firstChild,He=Y.nextSibling,Ua=He.firstChild,lt=He.nextSibling,sa=lt.firstChild,Ia=sa.nextSibling,Bt=We.nextSibling;Bt.firstChild;var wt=Bt.nextSibling,qt=wt.nextSibling;return k(ue,()=>Do(c().queryKey,!0)),k(pe,y),k(Le,v),k(Qe,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),$.$$click=b,de.$$click=()=>n.invalidateQueries(c()),Y.$$click=()=>n.resetQueries(c()),He.$$click=()=>{n.removeQueries(c()),Xr(null)},lt.$$click=()=>{if(c()?.state.data===void 0)i(!0),I();else{let q=c();if(!q)return;let xe=q.options;q.fetch({...xe,queryFn:()=>new Promise(()=>{}),gcTime:-1}),q.setState({data:void 0,status:"pending",fetchMeta:{...q.state.fetchMeta,__previousQueryOptions:xe}})}},k(lt,()=>C()==="pending"?"Restore":"Trigger",Ia),k(We,x(K,{get when(){return p().length===0||C()==="error"},get children(){var q=X0(),xe=q.firstChild,je=xe.nextSibling;return q.$$click=()=>{c().state.error?n.resetQueries(c()):D()},k(q,()=>C()==="error"?"Restore":"Trigger",je),V(be=>{var ge=z(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"),we=C()==="pending",Be=t`
|
|
213
213
|
background-color: ${r(o.red[500],o.red[400])};
|
|
214
|
-
`;return
|
|
215
|
-
background-color: ${
|
|
216
|
-
`,
|
|
214
|
+
`;return ge!==be.e&&F(q,be.e=ge),we!==be.t&&(q.disabled=be.t=we),Be!==be.a&&F(xe,be.a=Be),be},{e:void 0,t:void 0,a:void 0}),q}}),null),k(We,x(K,{get when(){return!(p().length===0||C()==="error")},get children(){var q=Q0(),xe=q.firstChild,je=xe.nextSibling,be=je.nextSibling;return be.firstChild,be.addEventListener("change",ge=>{let we=p().find(Be=>Be.name===ge.currentTarget.value);D(we)}),k(be,x(gl,{get each(){return p()},children:ge=>(()=>{var we=e1();return k(we,()=>ge.name),V(()=>we.value=ge.name),we})()}),null),k(q,x(Oo,{}),null),V(ge=>{var we=z(a().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),Be=t`
|
|
215
|
+
background-color: ${P.colors.red[400]};
|
|
216
|
+
`,ce=C()==="pending";return we!==ge.e&&F(q,ge.e=we),Be!==ge.t&&F(xe,ge.t=Be),ce!==ge.a&&(be.disabled=ge.a=ce),ge},{e:void 0,t:void 0,a:void 0}),q}}),null),k(Bt,()=>l()==="view"?"Explorer":"Editor",null),k(w,x(K,{get when(){return l()==="view"},get children(){var q=Z0();return k(q,x(fa,{label:"Data",defaultExpanded:["Data"],get value(){return h()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return c()}})),V(xe=>(xe=P.size[2])!=null?q.style.setProperty("padding",xe):q.style.removeProperty("padding")),q}}),wt),k(w,x(K,{get when(){return l()==="edit"},get children(){var q=Y0(),xe=q.firstChild,je=xe.nextSibling,be=je.firstChild,ge=be.nextSibling,we=ge.firstChild,Be=we.nextSibling;return q.addEventListener("submit",ce=>{ce.preventDefault();let Ut=new FormData(ce.currentTarget).get("data");try{let ht=JSON.parse(Ut);c().setState({...c().state,data:ht}),u("view")}catch{d(!0)}}),xe.addEventListener("focus",()=>d(!1)),k(be,()=>f()?"Invalid Value":""),we.$$click=()=>u("view"),V(ce=>{var zt=z(a().devtoolsEditForm,"tsqd-query-details-data-editor"),Ut=a().devtoolsEditTextarea,ht=f(),wa=a().devtoolsEditFormActions,Nt=a().devtoolsEditFormError,Sa=a().devtoolsEditFormActionContainer,Ht=z(a().devtoolsEditFormAction,t`
|
|
217
217
|
color: ${r(o.gray[600],o.gray[300])};
|
|
218
|
-
`),
|
|
218
|
+
`),la=z(a().devtoolsEditFormAction,t`
|
|
219
219
|
color: ${r(o.blue[600],o.blue[400])};
|
|
220
|
-
`);return zt!==
|
|
220
|
+
`);return zt!==ce.e&&F(q,ce.e=zt),Ut!==ce.t&&F(xe,ce.t=Ut),ht!==ce.a&&R(xe,"data-error",ce.a=ht),wa!==ce.o&&F(je,ce.o=wa),Nt!==ce.i&&F(be,ce.i=Nt),Sa!==ce.n&&F(ge,ce.n=Sa),Ht!==ce.s&&F(we,ce.s=Ht),la!==ce.h&&F(Be,ce.h=la),ce},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),V(()=>xe.value=JSON.stringify(h(),null,2)),q}}),wt),k(qt,x(fa,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return m()}})),V(q=>{var xe=z(a().detailsContainer,"tsqd-query-details-container"),je=z(a().detailsHeader,"tsqd-query-details-header"),be=z(a().detailsBody,"tsqd-query-details-summary-container"),ge=z(a().queryDetailsStatus,E()),we=z(a().detailsHeader,"tsqd-query-details-header"),Be=z(a().actionsBody,"tsqd-query-details-actions-container"),ce=z(t`
|
|
221
221
|
color: ${r(o.blue[600],o.blue[400])};
|
|
222
222
|
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),zt=y()==="fetching",Ut=t`
|
|
223
223
|
background-color: ${r(o.blue[600],o.blue[400])};
|
|
@@ -227,17 +227,17 @@
|
|
|
227
227
|
background-color: ${r(o.yellow[600],o.yellow[400])};
|
|
228
228
|
`,Sa=z(t`
|
|
229
229
|
color: ${r(o.gray[600],o.gray[300])};
|
|
230
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),Ht=C()==="pending",
|
|
230
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),Ht=C()==="pending",la=t`
|
|
231
231
|
background-color: ${r(o.gray[600],o.gray[400])};
|
|
232
|
-
`,
|
|
232
|
+
`,sr=z(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"),po=y()==="fetching",lr=t`
|
|
235
235
|
background-color: ${r(o.pink[500],o.pink[400])};
|
|
236
236
|
`,Na=z(t`
|
|
237
237
|
color: ${r(o.cyan[500],o.cyan[400])};
|
|
238
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),
|
|
238
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),ir=s(),mo=t`
|
|
239
239
|
background-color: ${r(o.cyan[500],o.cyan[400])};
|
|
240
|
-
`,
|
|
240
|
+
`,go=z(a().detailsHeader,"tsqd-query-details-header"),ho=z(a().detailsHeader,"tsqd-query-details-header"),Ha=P.size[2];return xe!==q.e&&F(w,q.e=xe),je!==q.t&&F(M,q.t=je),be!==q.a&&F(N,q.a=be),ge!==q.o&&F(pe,q.o=ge),we!==q.i&&F(Me,q.i=we),Be!==q.n&&F(We,q.n=Be),ce!==q.s&&F($,q.s=ce),zt!==q.h&&($.disabled=q.h=zt),Ut!==q.r&&F(Pe,q.r=Ut),ht!==q.d&&F(de,q.d=ht),wa!==q.l&&(de.disabled=q.l=wa),Nt!==q.u&&F(na,q.u=Nt),Sa!==q.c&&F(Y,q.c=Sa),Ht!==q.w&&(Y.disabled=q.w=Ht),la!==q.m&&F(gt,q.m=la),sr!==q.f&&F(He,q.f=sr),po!==q.y&&(He.disabled=q.y=po),lr!==q.g&&F(Ua,q.g=lr),Na!==q.p&&F(lt,q.p=Na),ir!==q.b&&(lt.disabled=q.b=ir),mo!==q.T&&F(sa,q.T=mo),go!==q.A&&F(Bt,q.A=go),ho!==q.O&&F(wt,q.O=ho),Ha!==q.I&&((q.I=Ha)!=null?qt.style.setProperty("padding",Ha):qt.style.removeProperty("padding")),q},{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}),w}})},u1=()=>{let e=Ue(),t=W().shadowDOMTarget?ee.bind({target:W().shadowDOMTarget}):ee,a=S(()=>e()==="dark"?mt(t):pt(t)),{colors:o}=P,r=(f,d)=>e()==="dark"?d:f,n=xt(f=>{let p=f().getAll().find(c=>c.mutationId===ca());return p?p.state.isPaused:!1}),s=xt(f=>{let p=f().getAll().find(c=>c.mutationId===ca());return p?p.state.status:"idle"}),i=S(()=>Aa({isPaused:n(),status:s()})),l=xt(f=>f().getAll().find(d=>d.mutationId===ca()),!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 x(K,{get when(){return l()},get children(){var f=
|
|
248
|
+
`;return x(K,{get when(){return l()},get children(){var f=t1(),d=f.firstChild,p=d.nextSibling,c=p.firstChild,m=c.firstChild,g=m.firstChild,h=m.nextSibling,y=c.nextSibling,C=y.firstChild,v=C.nextSibling,L=p.nextSibling,b=L.nextSibling,D=b.nextSibling,I=D.nextSibling,E=I.nextSibling,w=E.nextSibling,M=w.nextSibling,N=M.nextSibling;return k(g,x(K,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return Do(l().options.mutationKey,!0)}})),k(h,x(K,{get when(){return i()==="purple"},children:"pending"}),null),k(h,x(K,{get when(){return i()!=="purple"},get children(){return s()}}),null),k(v,()=>new Date(l().state.submittedAt).toLocaleTimeString()),k(b,x(fa,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),k(I,x(fa,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),k(w,x(fa,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),k(N,x(fa,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),V(_=>{var ae=z(a().detailsContainer,"tsqd-query-details-container"),ue=z(a().detailsHeader,"tsqd-query-details-header"),pe=z(a().detailsBody,"tsqd-query-details-summary-container"),ve=z(a().queryDetailsStatus,u()),he=z(a().detailsHeader,"tsqd-query-details-header"),Le=P.size[2],Ie=z(a().detailsHeader,"tsqd-query-details-header"),Re=P.size[2],Qe=z(a().detailsHeader,"tsqd-query-details-header"),Me=P.size[2],We=z(a().detailsHeader,"tsqd-query-details-header"),$=P.size[2];return ae!==_.e&&F(f,_.e=ae),ue!==_.t&&F(d,_.t=ue),pe!==_.a&&F(p,_.a=pe),ve!==_.o&&F(h,_.o=ve),he!==_.i&&F(L,_.i=he),Le!==_.n&&((_.n=Le)!=null?b.style.setProperty("padding",Le):b.style.removeProperty("padding")),Ie!==_.s&&F(D,_.s=Ie),Re!==_.h&&((_.h=Re)!=null?I.style.setProperty("padding",Re):I.style.removeProperty("padding")),Qe!==_.r&&F(E,_.r=Qe),Me!==_.d&&((_.d=Me)!=null?w.style.setProperty("padding",Me):w.style.removeProperty("padding")),We!==_.l&&F(M,_.l=We),$!==_.u&&((_.u=$)!=null?N.style.setProperty("padding",$):N.style.removeProperty("padding")),_},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),f}})},Or=new Map,d1=()=>{let e=S(()=>W().client.getQueryCache()),t=e().subscribe(a=>{nl(()=>{for(let[o,r]of Or.entries())r.shouldUpdate(a)&&r.setter(o(e))})});return j(()=>{Or.clear(),t()}),t},Ne=(e,t=!0,a=()=>!0)=>{let o=S(()=>W().client.getQueryCache()),[r,n]=B(e(o),t?void 0:{equals:!1});return G(()=>{n(e(o))}),Or.set(e,{setter:n,shouldUpdate:a}),j(()=>{Or.delete(e)}),r},Br=new Map,f1=()=>{let e=S(()=>W().client.getMutationCache()),t=e().subscribe(()=>{for(let[a,o]of Br.entries())queueMicrotask(()=>{o(a(e))})});return j(()=>{Br.clear(),t()}),t},xt=(e,t=!0)=>{let a=S(()=>W().client.getMutationCache()),[o,r]=B(e(a),t?void 0:{equals:!1});return G(()=>{r(e(a))}),Br.set(e,r),j(()=>{Br.delete(e)}),o},hd=(e,t)=>{let{colors:a,font:o,size:r,alpha:n,shadow:s,border:i}=P,l=(u,f)=>e==="light"?u:f;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: ${P.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: ${P.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: ${P.size[2]} ${P.size[2.5]};
|
|
537
|
+
gap: ${P.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: ${P.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: ${P.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: ${P.size[2]};
|
|
589
589
|
height: min-content;
|
|
590
590
|
`,queryStatusTag:t`
|
|
591
591
|
display: flex;
|
|
592
|
-
gap: ${
|
|
592
|
+
gap: ${P.size[1.5]};
|
|
593
593
|
box-sizing: border-box;
|
|
594
|
-
height: ${
|
|
594
|
+
height: ${P.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: ${P.border.radius.sm};
|
|
598
598
|
font-size: ${o.size.sm};
|
|
599
|
-
padding: ${
|
|
600
|
-
padding-left: ${
|
|
599
|
+
padding: ${P.size[1]};
|
|
600
|
+
padding-left: ${P.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: ${P.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(${P.size[2]}));
|
|
630
|
+
padding: ${P.size[.5]} ${P.size[2]};
|
|
631
|
+
border-radius: ${P.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: ${P.size[2]};
|
|
665
665
|
& > button {
|
|
666
666
|
cursor: pointer;
|
|
667
|
-
padding: ${
|
|
668
|
-
${
|
|
669
|
-
border-radius: ${
|
|
667
|
+
padding: ${P.size[.5]} ${P.size[1.5]} ${P.size[.5]}
|
|
668
|
+
${P.size[2]};
|
|
669
|
+
border-radius: ${P.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: ${P.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: ${P.size[3]};
|
|
686
|
+
height: ${P.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: ${P.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: ${P.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: ${P.size[.5]} ${P.size[2]};
|
|
730
|
+
border-radius: ${P.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: ${P.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: ${P.size[2]};
|
|
742
|
+
height: ${P.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: ${P.size[2]};
|
|
764
764
|
`,actionsBtn:t`
|
|
765
|
-
border-radius: ${
|
|
765
|
+
border-radius: ${P.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: ${P.size[6.5]};
|
|
769
|
+
height: ${P.size[6.5]};
|
|
770
770
|
justify-content: center;
|
|
771
771
|
display: flex;
|
|
772
772
|
align-items: center;
|
|
773
|
-
gap: ${
|
|
773
|
+
gap: ${P.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: ${P.size[3]};
|
|
783
|
+
height: ${P.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 ${P.size[1]};
|
|
825
825
|
user-select: none;
|
|
826
|
-
min-width: ${
|
|
826
|
+
min-width: ${P.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: ${P.size[6]};
|
|
843
843
|
flex: 1;
|
|
844
|
-
padding: ${
|
|
844
|
+
padding: ${P.size[1]} ${P.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 ${P.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: ${P.size[1.5]} ${P.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: ${P.size[1.5]} 0px ${P.size[2]} 0px;
|
|
888
888
|
& > div {
|
|
889
889
|
display: flex;
|
|
890
890
|
align-items: stretch;
|
|
891
|
-
padding: 0 ${
|
|
891
|
+
padding: 0 ${P.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: ${P.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: ${P.border.radius.sm};
|
|
922
922
|
font-weight: ${o.weight.medium};
|
|
923
|
-
padding: ${
|
|
923
|
+
padding: ${P.size[1]} ${P.size[2.5]};
|
|
924
924
|
`,actionsBody:t`
|
|
925
925
|
flex-wrap: wrap;
|
|
926
|
-
margin: ${
|
|
926
|
+
margin: ${P.size[2]} 0px ${P.size[2]} 0px;
|
|
927
927
|
display: flex;
|
|
928
|
-
gap: ${
|
|
929
|
-
padding: 0px ${
|
|
928
|
+
gap: ${P.size[2]};
|
|
929
|
+
padding: 0px ${P.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: ${P.size[1]} ${P.size[2]};
|
|
934
934
|
display: flex;
|
|
935
|
-
border-radius: ${
|
|
935
|
+
border-radius: ${P.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: ${P.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: ${P.border.radius.full};
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
`,actionsSelect:t`
|
|
964
964
|
font-size: ${o.size.xs};
|
|
965
|
-
padding: ${
|
|
965
|
+
padding: ${P.size[.5]} ${P.size[2]};
|
|
966
966
|
display: flex;
|
|
967
|
-
border-radius: ${
|
|
967
|
+
border-radius: ${P.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: ${P.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: ${P.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: ${P.colors.red[400]};
|
|
1006
1006
|
}
|
|
1007
1007
|
& svg {
|
|
1008
|
-
width: ${
|
|
1009
|
-
height: ${
|
|
1008
|
+
width: ${P.size[2]};
|
|
1009
|
+
height: ${P.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: ${P.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: ${P.border.radius.xs};
|
|
1031
|
+
padding: ${P.size[1]} ${P.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: ${P.size[2]};
|
|
1040
|
+
height: ${P.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: ${P.size[1]} ${P.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: ${P.border.radius.xs};
|
|
1066
|
+
padding: ${P.size[1]} ${P.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: ${P.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 ${P.size[1.5]} 0 ${P.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 ${P.size[2]} 0 ${P.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]} ${P.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,7 +1197,7 @@
|
|
|
1197
1197
|
opacity: 0.6;
|
|
1198
1198
|
cursor: not-allowed;
|
|
1199
1199
|
}
|
|
1200
|
-
`}},pt=e=>gd("light",e),mt=e=>gd("dark",e);Po(["click","mousedown","input"]);});var hd={};sn(hd,{default:()=>f1});var d1,f1,xd=ho(()=>{"use strict";M();fs();Do();d1=e=>{let[t,a]=Or({prefix:"TanstackQueryDevtools"}),o=Sr(),r=w(()=>{let n=t.theme_preference||Br;return n!=="system"?n:o()});return x(Uo.Provider,{value:e,get children(){return x(qr,{localStore:t,setLocalStore:a,get children(){return x(No.Provider,{value:r,get children(){return x(pd,{localStore:t,setLocalStore:a})}})}})}})},f1=d1});var yd={};sn(yd,{default:()=>p1});var c1,p1,Cd=ho(()=>{"use strict";M();fs();Do();c1=e=>{let[t,a]=Or({prefix:"TanstackQueryDevtools"}),o=Sr(),r=w(()=>{let n=t.theme_preference||Br;return n!=="system"?n:o()});return x(Uo.Provider,{value:e,get children(){return x(qr,{disabled:!0,localStore:t,setLocalStore:a,get children(){return x(No.Provider,{value:r,get children(){return x(md,{get children(){return x(jr,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},p1=c1});var ax={};sn(ax,{Studio:()=>Sf});module.exports=Rf(ax);M();var qv=require("../index-HBURJFQA.css");M();M();var nn=require("react");M();var Ad=require("@tanstack/react-query");M();var Zr=require("@tanstack/react-query");M();M();var Lt=Ee(require("react"),1),Xr=require("@tanstack/react-query");M();Do();var vd=class{#t;#u;#d;#f;#e=!1;#c;#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:f}=e;this.#t=B(t),this.#d=a,this.#f=o,this.#u=r,this.#c=u,this.#a=f,this.#o=B(n),this.#r=B(s),this.#n=B(i),this.#s=B(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=Ln(()=>{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=vn(()=>Promise.resolve().then(()=>(xd(),hd))),this.#l=l),Pn(this.#c,this.#a),x(l,J({get queryFlavor(){return a.#d},get version(){return a.#f},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}},Ld=class{#t;#u;#d;#f;#e=!1;#c;#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:f,onClose:d}=e;this.#t=B(t),this.#d=a,this.#f=o,this.#u=r,this.#c=u,this.#a=f,this.#o=B(n),this.#r=B(s),this.#n=B(i),this.#s=B(l),this.#l=B(d)}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=Ln(()=>{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=vn(()=>Promise.resolve().then(()=>(Cd(),yd))),this.#i=u),Pn(this.#c,this.#a),x(u,J({get queryFlavor(){return a.#d},get version(){return a.#f},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 bd=require("react/jsx-runtime");function Id(e){let t=(0,Xr.useQueryClient)(e.client),a=Lt.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Lt.useState(new vd({client:t,queryFlavor:"React Query",version:"5",onlineManager:Xr.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Lt.useEffect(()=>{u.setClient(t)},[t,u]),Lt.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Lt.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Lt.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Lt.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Lt.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,bd.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}M();var Qt=Ee(require("react"),1),Qr=require("@tanstack/react-query");var wd=require("react/jsx-runtime");function Sd(e){let t=(0,Qr.useQueryClient)(e.client),a=Qt.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=Qt.useState(new Ld({client:t,queryFlavor:"React Query",version:"5",onlineManager:Qr.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return Qt.useEffect(()=>{s.setClient(t)},[t,s]),Qt.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),Qt.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),Qt.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,wd.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var kd=process.env.NODE_ENV!=="development"?function(){return null}:Id,Fx=process.env.NODE_ENV!=="development"?function(){return null}:Sd;var Pd=require("nuqs/adapters/react"),so=require("react"),no=require("react/jsx-runtime"),h1=new Zr.QueryClient,Md=(0,so.createContext)(void 0);function Dd(e){let{children:t,...a}=e,[o,r]=(0,so.useState)(null);return(0,no.jsxs)(Zr.QueryClientProvider,{client:h1,children:[(0,no.jsx)(kd,{}),(0,no.jsx)(Pd.NuqsAdapter,{children:(0,no.jsx)(Md.Provider,{value:{...a,activeTable:o,setActiveTable:r},children:t})})]})}function ha(){let e=(0,so.useContext)(Md);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function Td(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=ha();return(0,Ad.useQuery)({enabled:!!r,gcTime:0,placeholderData:(s,i)=>{let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},queryFn:async({signal:s})=>{let[i,l]=await n.query({pageIndex:t,pageSize:a,table:r.name,schema:r.schema,sortOrder:o},{abortSignal:s});if(i)throw i;return l},queryKey:["schema",r?.schema,"table",r?.name,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",t,"pageSize",a],staleTime:1/0})}M();var Ed=require("@tanstack/react-query");var Rd=-1;function Yr(){let{adapter:e}=ha();return(0,Ed.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:Rd,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===Rd?0:1/0})}M();var ba=require("@dnd-kit/core"),uo=require("@dnd-kit/sortable"),Cf=require("@dnd-kit/utilities"),rn=require("@tanstack/react-table");M();var Zt=Ee(require("react"),1),U=Ee(require("react"),1);function xa(){return xa=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},xa.apply(null,arguments)}var x1=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function y1(e,t){let[a,o]=U.default.useState();U.default.useEffect(()=>{let n=x1(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=U.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 Rt={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Od=U.default.createContext(Rt);function Bd(e){let{theme:t,...a}=e;return U.default.createElement(Od.Provider,xa({value:t},a))}function C1(){return U.default.useContext(Od)}function v1(e){let[t,a]=U.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return U.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 L1=typeof window>"u";function bt(e,t,a){return a===void 0&&(a={}),U.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=C1(),l=Object.entries(a).reduce((u,f)=>{let[d,p]=f;return v1(d)?{...u,...typeof p=="function"?p(s,i):p}:u},{});return U.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function b1(){let e=U.default.useRef(!1),t=U.default.useCallback(()=>e.current,[]);return U.default[L1?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var I1=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 w1=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 Fd=bt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Jr=bt("span",{cursor:"pointer",color:"white"}),S1=bt("span",(e,t)=>({color:t.danger})),cs=bt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),k1=bt("span",{color:"grey",fontSize:".7rem"}),$d=e=>{let{expanded:t,style:a={},...o}=e;return U.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},P1=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:f}=e,[d,p]=U.default.useState(void 0),[c,m]=U.default.useState([]),g=()=>{p(o())};return U.default.createElement(Fd,{key:a},n!=null&&n.length?U.default.createElement(U.default.Fragment,null,U.default.createElement(Jr,{onClick:()=>l()},U.default.createElement($d,{expanded:i})," ",a," ",U.default.createElement(k1,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?U.default.createElement(cs,null,r.map(h=>t(h))):U.default.createElement(cs,null,n.map((h,y)=>U.default.createElement("div",{key:y},U.default.createElement(Fd,null,U.default.createElement(Jr,{onClick:()=>m(C=>C.includes(y)?C.filter(v=>v!==y):[...C,y])},U.default.createElement($d,{expanded:i})," [",y*u," ..."," ",y*u+u-1,"]"),c.includes(y)?U.default.createElement(cs,null,h.map(C=>t(C))):null)))):null):s==="function"?U.default.createElement(U.default.Fragment,null,U.default.createElement(Et,{renderer:f,label:U.default.createElement("button",{onClick:g},U.default.createElement(Jr,null,a)," \u{1F504}"," "),value:d,defaultExpanded:{}})):U.default.createElement(U.default.Fragment,null,U.default.createElement(Jr,null,a,":")," ",U.default.createElement(S1,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function Et(e){let{value:t,defaultExpanded:a,renderer:o=P1,pageSize:r=100,depth:n=0,...s}=e,[i,l]=U.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},f=[],d=typeof t,p,c=[],m=g=>{let h=f.concat(g.label),y=a===!0?{[g.label]:!0}:a?.[g.label];return{...g,subPath:g,path:h,depth:n+1,defaultExpanded:y}};if(Array.isArray(t)?(d="array",p=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(d="Iterable",p=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?d="function":typeof t=="object"&&t!==null&&(d="object",p=Object.entries(t).map(g=>{let[h,y]=g;return m({label:h,value:y})})),p){let g=0;for(;g<p.length;)c.push(p.slice(g,g+r)),g=g+r}return o({handleEntry:g=>U.default.createElement(Et,xa({key:g.label,renderer:o},s,g)),type:d,subEntries:p,subEntryPages:c,depth:n,value:t,path:f,expanded:i,toggle:u,pageSize:r,...s})}function qd(e){return Zt.createElement("svg",xa({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),Zt.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Zt.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},Zt.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},Zt.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},Zt.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) "}),Zt.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"}),Zt.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 zd(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=U.default.useRef(null),i=U.default.useRef(null),[l,u]=y1("reactTableDevtoolsOpen",t),f=b1(),{style:d={},...p}=o,{style:c={},onClick:m,...g}=r;return f()?U.default.createElement(n,{ref:s,className:"ReactTableDevtools"},U.default.createElement(Bd,{theme:Rt},l?U.default.createElement(M1,xa({ref:i},p,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...d}})):U.default.createElement("button",xa({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",...c}}),U.default.createElement(qd,{"aria-hidden":!0})))):null}var M1=U.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return U.default.createElement(Bd,{theme:Rt},U.default.createElement(I1,xa({ref:a,className:"ReactTableDevtoolsPanel"},s),U.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1200
|
+
`}},pt=e=>hd("light",e),mt=e=>hd("dark",e);Mo(["click","mousedown","input"]);});var xd={};ln(xd,{default:()=>p1});var c1,p1,yd=xo(()=>{"use strict";A();cs();Ao();c1=e=>{let[t,a]=qr({prefix:"TanstackQueryDevtools"}),o=Pr(),r=S(()=>{let n=t.theme_preference||zr;return n!=="system"?n:o()});return x(No.Provider,{value:e,get children(){return x(Ur,{localStore:t,setLocalStore:a,get children(){return x(Ho.Provider,{value:r,get children(){return x(md,{localStore:t,setLocalStore:a})}})}})}})},p1=c1});var Cd={};ln(Cd,{default:()=>g1});var m1,g1,vd=xo(()=>{"use strict";A();cs();Ao();m1=e=>{let[t,a]=qr({prefix:"TanstackQueryDevtools"}),o=Pr(),r=S(()=>{let n=t.theme_preference||zr;return n!=="system"?n:o()});return x(No.Provider,{value:e,get children(){return x(Ur,{disabled:!0,localStore:t,setLocalStore:a,get children(){return x(Ho.Provider,{value:r,get children(){return x(gd,{get children(){return x(Qr,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},g1=m1});var sx={};ln(sx,{Studio:()=>Pf});module.exports=Ff(sx);A();var Vv=require("../index-HBURJFQA.css");A();A();var fo=require("react");A();var Td=require("@tanstack/react-query");A();var Jr=require("@tanstack/react-query");A();A();var Lt=Ee(require("react"),1),Zr=require("@tanstack/react-query");A();Ao();var Ld=class{#t;#u;#d;#f;#e=!1;#c;#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:f}=e;this.#t=B(t),this.#d=a,this.#f=o,this.#u=r,this.#c=u,this.#a=f,this.#o=B(n),this.#r=B(s),this.#n=B(i),this.#s=B(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=bn(()=>{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=Ln(()=>Promise.resolve().then(()=>(yd(),xd))),this.#l=l),Mn(this.#c,this.#a),x(l,J({get queryFlavor(){return a.#d},get version(){return a.#f},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}},bd=class{#t;#u;#d;#f;#e=!1;#c;#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:f,onClose:d}=e;this.#t=B(t),this.#d=a,this.#f=o,this.#u=r,this.#c=u,this.#a=f,this.#o=B(n),this.#r=B(s),this.#n=B(i),this.#s=B(l),this.#l=B(d)}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=bn(()=>{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=Ln(()=>Promise.resolve().then(()=>(vd(),Cd))),this.#i=u),Mn(this.#c,this.#a),x(u,J({get queryFlavor(){return a.#d},get version(){return a.#f},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 Id=require("react/jsx-runtime");function wd(e){let t=(0,Zr.useQueryClient)(e.client),a=Lt.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Lt.useState(new Ld({client:t,queryFlavor:"React Query",version:"5",onlineManager:Zr.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Lt.useEffect(()=>{u.setClient(t)},[t,u]),Lt.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Lt.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Lt.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Lt.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Lt.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,Id.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}A();var Qt=Ee(require("react"),1),Yr=require("@tanstack/react-query");var Sd=require("react/jsx-runtime");function kd(e){let t=(0,Yr.useQueryClient)(e.client),a=Qt.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=Qt.useState(new bd({client:t,queryFlavor:"React Query",version:"5",onlineManager:Yr.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return Qt.useEffect(()=>{s.setClient(t)},[t,s]),Qt.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),Qt.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),Qt.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,Sd.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var Pd=process.env.NODE_ENV!=="development"?function(){return null}:wd,qx=process.env.NODE_ENV!=="development"?function(){return null}:kd;var Md=require("nuqs/adapters/react"),so=require("react"),no=require("react/jsx-runtime"),y1=new Jr.QueryClient,Dd=(0,so.createContext)(void 0);function Ad(e){let{children:t,...a}=e,[o,r]=(0,so.useState)(null);return(0,no.jsxs)(Jr.QueryClientProvider,{client:y1,children:[(0,no.jsx)(Pd,{}),(0,no.jsx)(Md.NuqsAdapter,{children:(0,no.jsx)(Dd.Provider,{value:{...a,activeTable:o,setActiveTable:r},children:t})})]})}function xa(){let e=(0,so.useContext)(Dd);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function Rd(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=xa();return(0,Td.useQuery)({enabled:!!r,gcTime:0,placeholderData:(s,i)=>{let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},queryFn:async({signal:s})=>{let[i,l]=await n.query({pageIndex:t,pageSize:a,table:r.name,schema:r.schema,sortOrder:o},{abortSignal:s});if(i)throw i;return l},queryKey:["schema",r?.schema,"table",r?.name,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",t,"pageSize",a],staleTime:1/0})}A();var Fd=require("@tanstack/react-query");var Ed=-1;function en(){let{adapter:e}=xa();return(0,Fd.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:Ed,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===Ed?0:1/0})}A();var ba=require("@dnd-kit/core"),uo=require("@dnd-kit/sortable"),Lf=require("@dnd-kit/utilities"),sn=require("@tanstack/react-table");A();var Zt=Ee(require("react"),1),U=Ee(require("react"),1);function ya(){return ya=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},ya.apply(null,arguments)}var C1=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function v1(e,t){let[a,o]=U.default.useState();U.default.useEffect(()=>{let n=C1(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=U.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 Rt={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Bd=U.default.createContext(Rt);function qd(e){let{theme:t,...a}=e;return U.default.createElement(Bd.Provider,ya({value:t},a))}function L1(){return U.default.useContext(Bd)}function b1(e){let[t,a]=U.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return U.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 I1=typeof window>"u";function bt(e,t,a){return a===void 0&&(a={}),U.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=L1(),l=Object.entries(a).reduce((u,f)=>{let[d,p]=f;return b1(d)?{...u,...typeof p=="function"?p(s,i):p}:u},{});return U.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function w1(){let e=U.default.useRef(!1),t=U.default.useCallback(()=>e.current,[]);return U.default[I1?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var S1=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 k1=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 $d=bt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),tn=bt("span",{cursor:"pointer",color:"white"}),P1=bt("span",(e,t)=>({color:t.danger})),ps=bt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),M1=bt("span",{color:"grey",fontSize:".7rem"}),Od=e=>{let{expanded:t,style:a={},...o}=e;return U.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},D1=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:f}=e,[d,p]=U.default.useState(void 0),[c,m]=U.default.useState([]),g=()=>{p(o())};return U.default.createElement($d,{key:a},n!=null&&n.length?U.default.createElement(U.default.Fragment,null,U.default.createElement(tn,{onClick:()=>l()},U.default.createElement(Od,{expanded:i})," ",a," ",U.default.createElement(M1,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?U.default.createElement(ps,null,r.map(h=>t(h))):U.default.createElement(ps,null,n.map((h,y)=>U.default.createElement("div",{key:y},U.default.createElement($d,null,U.default.createElement(tn,{onClick:()=>m(C=>C.includes(y)?C.filter(v=>v!==y):[...C,y])},U.default.createElement(Od,{expanded:i})," [",y*u," ..."," ",y*u+u-1,"]"),c.includes(y)?U.default.createElement(ps,null,h.map(C=>t(C))):null)))):null):s==="function"?U.default.createElement(U.default.Fragment,null,U.default.createElement(Et,{renderer:f,label:U.default.createElement("button",{onClick:g},U.default.createElement(tn,null,a)," \u{1F504}"," "),value:d,defaultExpanded:{}})):U.default.createElement(U.default.Fragment,null,U.default.createElement(tn,null,a,":")," ",U.default.createElement(P1,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function Et(e){let{value:t,defaultExpanded:a,renderer:o=D1,pageSize:r=100,depth:n=0,...s}=e,[i,l]=U.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},f=[],d=typeof t,p,c=[],m=g=>{let h=f.concat(g.label),y=a===!0?{[g.label]:!0}:a?.[g.label];return{...g,subPath:g,path:h,depth:n+1,defaultExpanded:y}};if(Array.isArray(t)?(d="array",p=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(d="Iterable",p=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?d="function":typeof t=="object"&&t!==null&&(d="object",p=Object.entries(t).map(g=>{let[h,y]=g;return m({label:h,value:y})})),p){let g=0;for(;g<p.length;)c.push(p.slice(g,g+r)),g=g+r}return o({handleEntry:g=>U.default.createElement(Et,ya({key:g.label,renderer:o},s,g)),type:d,subEntries:p,subEntryPages:c,depth:n,value:t,path:f,expanded:i,toggle:u,pageSize:r,...s})}function zd(e){return Zt.createElement("svg",ya({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),Zt.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Zt.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},Zt.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},Zt.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},Zt.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) "}),Zt.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"}),Zt.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 Ud(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=U.default.useRef(null),i=U.default.useRef(null),[l,u]=v1("reactTableDevtoolsOpen",t),f=w1(),{style:d={},...p}=o,{style:c={},onClick:m,...g}=r;return f()?U.default.createElement(n,{ref:s,className:"ReactTableDevtools"},U.default.createElement(qd,{theme:Rt},l?U.default.createElement(A1,ya({ref:i},p,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...d}})):U.default.createElement("button",ya({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",...c}}),U.default.createElement(zd,{"aria-hidden":!0})))):null}var A1=U.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return U.default.createElement(qd,{theme:Rt},U.default.createElement(S1,ya({ref:a,className:"ReactTableDevtoolsPanel"},s),U.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1201
1201
|
.ReactTableDevtoolsPanel * {
|
|
1202
1202
|
scrollbar-color: ${Rt.backgroundAlt} ${Rt.gray};
|
|
1203
1203
|
}
|
|
@@ -1216,7 +1216,7 @@
|
|
|
1216
1216
|
border-radius: .5em;
|
|
1217
1217
|
border: 3px solid ${Rt.backgroundAlt};
|
|
1218
1218
|
}
|
|
1219
|
-
`}}),U.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Rt.grayAlt}`,display:"flex",flexDirection:"column"}},U.default.createElement("div",{style:{padding:".5em",background:Rt.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},U.default.createElement(qd,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),U.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",U.default.createElement("span",{style:{fontWeight:100}},"Devtools")),U.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?U.default.createElement(w1,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),U.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},U.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},U.default.createElement(Et,{label:"Instance",value:o,defaultExpanded:!1}),U.default.createElement("div",{style:{height:".5rem"}}),U.default.createElement(Et,{label:"State",value:o.getState(),defaultExpanded:!1}),U.default.createElement("div",{style:{height:".5rem"}}),U.default.createElement(Et,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),U.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},U.default.createElement(Et,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),U.default.createElement(Et,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),U.default.createElement(Et,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),U.default.createElement(Et,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),U.default.createElement(Et,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var La=require("react");M();var Yt=Ee(require("react"),1);M();var Ud=require("clsx"),Nd=require("tailwind-merge");function X(...e){return(0,Nd.twMerge)((0,Ud.clsx)(e))}var Ft=require("react/jsx-runtime"),ps=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,Ft.jsx)("table",{ref:a,className:X("ps-w-full ps-caption-bottom ps-text-sm table-fixed",e),...t})}));ps.displayName="Table";var ms=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("thead",{ref:a,className:X("[&_tr]:ps-border-b",e),...t}));ms.displayName="TableHeader";var gs=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tbody",{ref:a,className:X("[&_tr:last-child]:ps-border-0",e),...t}));gs.displayName="TableBody";var D1=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tfoot",{ref:a,className:X("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));D1.displayName="TableFooter";var jo=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tr",{ref:a,className:X("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));jo.displayName="TableRow";var en=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("th",{ref:a,className:X("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...t}));en.displayName="TableHead";var Xo=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("td",{ref:a,className:X("ps-p-2 ps-align-middle [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...t}));Xo.displayName="TableCell";var A1=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("caption",{ref:a,className:X("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));A1.displayName="TableCaption";M();var nf=require("@uiw/codemirror-theme-tokyo-night"),sf=Ee(require("@uiw/react-codemirror"),1);M();var Jt=Ee(require("@radix-ui/react-popover"),1),Je=Ee(require("react"),1);var lo=require("react/jsx-runtime"),Hd=Je.createContext(null),hs=({children:e,...t})=>{let[a,o]=Je.useState(!1);return(0,lo.jsx)(Hd.Provider,{value:{open:a,setOpen:o},children:(0,lo.jsx)(Jt.Root,{open:a,onOpenChange:o,...t,children:e})})};hs.displayName="PopoverCell";var xs=Je.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=Je.useContext(Hd),[s,i]=Je.useState(!1),l=Je.useRef(null);return Je.useEffect(()=>{let d=p=>{let c=p.target;l.current&&!l.current.contains(c)&&(console.log("Outside click - removing focus"),i(!1))};return document.addEventListener("click",d),()=>document.removeEventListener("click",d)},[]),(0,lo.jsx)(Jt.Trigger,{ref:d=>{typeof r=="function"?r(d):r&&(r.current=d),l.current=d},onClick:d=>{d.preventDefault(),console.log("Click handler - setting focus to true"),i(!0)},onDoubleClick:d=>{d.preventDefault(),n?.setOpen(!0),t?.()},"data-focus":s.toString(),className:X("w-full h-full cursor-pointer",a),...o,children:e})});xs.displayName="PopoverCellTrigger";var ys=Je.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,lo.jsx)(Jt.Portal,{children:(0,lo.jsx)(Jt.Content,{ref:r,align:t,sideOffset:a,className:X("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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),...o})}));ys.displayName=Jt.Content.displayName;M();var Cs=e=>{if(e==null)return"NULL";if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch(t){return console.error("Error stringifying value:",t),String(e)}return String(e)};M();M();var io=Ee(require("dayjs"),1),_d=Ee(require("dayjs/plugin/localizedFormat"),1),Vd=Ee(require("dayjs/plugin/relativeTime"),1),Gd=Ee(require("dayjs/plugin/timezone"),1),Kd=Ee(require("dayjs/plugin/utc"),1);io.default.extend(Vd.default);io.default.extend(_d.default);io.default.extend(Gd.default);io.default.extend(Kd.default);var vs="YYYY-MM-DD HH:mm:ss";function Wd(e,t){let a=io.default.utc(e);return{databaseTime:a.tz(t).format(vs),local:a.local().format(vs),milliseconds:a.valueOf(),relative:a.fromNow(),utc:a.format(vs)}}var Xd=require("react/jsx-runtime"),jd=e=>{let{databaseTimezone:t,date:a}=e,{databaseTime:o,local:r,milliseconds:n,relative:s,utc:i}=Wd(a,t);return(0,Xd.jsx)("div",{className:"ps-flex ps-gap-1 ps-items-end","data-date-database":o,"data-date-local":r,"data-date-milliseconds":n,"data-date-relative":s,"data-date-utc":i,"data-timezone":t,children:String(a)})};M();var Zd=require("react/jsx-runtime");function Qd(){return(0,Zd.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})}M();M();M();var an=require("react");M();var Yd=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(" ");M();var Qo=require("react");M();var Jd={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 ef=(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,...Jd,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:tn("lucide",r),...i},[...s.map(([u,f])=>(0,Qo.createElement)(u,f)),...Array.isArray(n)?n:[n]]));var Se=(e,t)=>{let a=(0,an.forwardRef)(({className:o,...r},n)=>(0,an.createElement)(ef,{ref:n,iconNode:t,className:tn(`lucide-${Yd(e)}`,o),...r}));return a.displayName=`${e}`,a};M();var ya=Se("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"}]]);M();var Zo=Se("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"}]]);M();var Oa=Se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);M();var Yo=Se("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);M();var ea=Se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);M();var Jo=Se("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);M();var er=Se("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);M();var Ba=Se("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);M();var tr=Se("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"}]]);M();var Ca=Se("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);M();var ar=Se("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"}]]);M();var or=Se("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"}]]);var of=require("react");M();var ae=Ee(require("@radix-ui/react-context-menu"),1);var ta=Ee(require("react"),1);var Fe=require("react/jsx-runtime"),tf=ae.Root,af=ae.Trigger;var T1=ta.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Fe.jsxs)(ae.SubTrigger,{ref:r,className:X("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,Fe.jsx)(ea,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));T1.displayName=ae.SubTrigger.displayName;var R1=ta.forwardRef(({className:e,...t},a)=>(0,Fe.jsx)(ae.SubContent,{ref:a,className:X("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}));R1.displayName=ae.SubContent.displayName;var Ls=ta.forwardRef(({className:e,...t},a)=>(0,Fe.jsx)(ae.Portal,{children:(0,Fe.jsx)(ae.Content,{ref:a,className:X("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})}));Ls.displayName=ae.Content.displayName;var bs=ta.forwardRef(({className:e,inset:t,...a},o)=>(0,Fe.jsx)(ae.Item,{ref:o,className:X("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}));bs.displayName=ae.Item.displayName;var E1=ta.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Fe.jsxs)(ae.CheckboxItem,{ref:r,className:X("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,Fe.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,Fe.jsx)(ae.ItemIndicator,{children:(0,Fe.jsx)(Oa,{className:"ps-h-4 ps-w-4"})})}),t]}));E1.displayName=ae.CheckboxItem.displayName;var F1=ta.forwardRef(({className:e,children:t,...a},o)=>(0,Fe.jsxs)(ae.RadioItem,{ref:o,className:X("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,Fe.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,Fe.jsx)(ae.ItemIndicator,{children:(0,Fe.jsx)(Ba,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));F1.displayName=ae.RadioItem.displayName;var $1=ta.forwardRef(({className:e,inset:t,...a},o)=>(0,Fe.jsx)(ae.Label,{ref:o,className:X("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));$1.displayName=ae.Label.displayName;var O1=ta.forwardRef(({className:e,...t},a)=>(0,Fe.jsx)(ae.Separator,{ref:a,className:X("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));O1.displayName=ae.Separator.displayName;var B1=({className:e,...t})=>(0,Fe.jsx)("span",{className:X("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});B1.displayName="ContextMenuShortcut";var qa=require("react/jsx-runtime");function rf(e){let{children:t}=e;return(0,qa.jsxs)(tf,{children:[(0,qa.jsx)(af,{className:"ps-block ps-w-full ps-p-[var(--studio-cell-spacing)]",children:t}),(0,qa.jsx)(Ls,{children:(0,qa.jsxs)(bs,{onClick:()=>{let a=Is(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,qa.jsx)(tr,{size:12}),"Copy"]})})]})}function Is(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,of.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?Is(t.children):""}return Array.isArray(e)?e.map(Is).join(""):""}M();function va(e){let t=e.getIsPinned(),a=t==="left"&&e.getIsLastColumn("left"),o=t==="right"&&e.getIsFirstColumn("right");return{className:X("ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",t&&["ps-sticky ps-bg-background ps-shadow-[1px_0_0_0_hsl(var(--border))]",t==="left"?"ps-left-0":"ps-right-0","ps-z-20"],!t&&"ps-relative ps-z-10",a&&"ps-shadow-[1px_0_0_0_hsl(var(--border))]",o&&"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 st=require("react/jsx-runtime");function q1(e,t,a){if(e==null)return(0,st.jsx)(Qd,{});switch(t){case"datetime":return(0,st.jsx)(jd,{date:e,databaseTimezone:a});case"string":return(0,st.jsx)("div",{children:String(e)});case"time":return(0,st.jsx)("div",{children:String(e)});case"raw":return(0,st.jsx)("div",{children:Cs(e)});default:z1(t)}}function z1(e){throw new Error(`Unhandled datatype group: ${String(e)}`)}function lf(e){let{cell:t,databaseTimezone:a}=e,o=t.getValue(),r=t.column.columnDef.meta,n=r.datatype.group;return(0,st.jsxs)(hs,{children:[(0,st.jsx)(xs,{asChild:!0,children:(0,st.jsx)(Xo,{...va(t.column),className:X(va(t.column).className,"ps-p-0",t.column.getIsPinned()&&"ps-sticky"),"data-type":n,"data-column":r.name,children:(0,st.jsx)(rf,{children:q1(o,n,a)})})}),(0,st.jsx)(ys,{align:"start",alignOffset:0,sideOffset:0,className:"ps-min-w-(--radix-popover-trigger-width) ps-rounded-none ps-bg-muted ps-p-0 ps-z-10",children:(0,st.jsx)(sf.default,{value:Cs(o),theme:nf.tokyoNight,height:"100px",basicSetup:{lineNumbers:!0,foldGutter:!1,dropCursor:!1,allowMultipleSelections:!1,indentOnInput:!1},onChange:s=>{console.log("New value:",s)}})})]},t.id)}M();var gf=require("@tanstack/react-table");M();var uf=require("@radix-ui/react-slot"),df=require("class-variance-authority"),ff=Ee(require("react"),1);var cf=require("react/jsx-runtime"),U1=(0,df.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"}}),$t=ff.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,cf.jsx)(o?uf.Slot:"button",{className:X(U1({variant:t,size:a,className:e})),ref:n,...r}));$t.displayName="Button";M();var oe=Ee(require("@radix-ui/react-dropdown-menu"),1);var aa=Ee(require("react"),1);var $e=require("react/jsx-runtime"),pf=oe.Root,mf=oe.Trigger;var N1=aa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,$e.jsxs)(oe.SubTrigger,{ref:r,className:X("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,$e.jsx)(ea,{className:"ps-ml-auto"})]}));N1.displayName=oe.SubTrigger.displayName;var H1=aa.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(oe.SubContent,{ref:a,className:X("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}));H1.displayName=oe.SubContent.displayName;var ws=aa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,$e.jsx)(oe.Portal,{children:(0,$e.jsx)(oe.Content,{ref:o,sideOffset:t,className:X("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})}));ws.displayName=oe.Content.displayName;var on=aa.forwardRef(({className:e,inset:t,...a},o)=>(0,$e.jsx)(oe.Item,{ref:o,className:X("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}));on.displayName=oe.Item.displayName;var _1=aa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,$e.jsxs)(oe.CheckboxItem,{ref:r,className:X("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,$e.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,$e.jsx)(oe.ItemIndicator,{children:(0,$e.jsx)(Oa,{className:"ps-h-4 ps-w-4"})})}),t]}));_1.displayName=oe.CheckboxItem.displayName;var V1=aa.forwardRef(({className:e,children:t,...a},o)=>(0,$e.jsxs)(oe.RadioItem,{ref:o,className:X("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,$e.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,$e.jsx)(oe.ItemIndicator,{children:(0,$e.jsx)(Ba,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));V1.displayName=oe.RadioItem.displayName;var G1=aa.forwardRef(({className:e,inset:t,...a},o)=>(0,$e.jsx)(oe.Label,{ref:o,className:X("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));G1.displayName=oe.Label.displayName;var K1=aa.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(oe.Separator,{ref:a,className:X("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));K1.displayName=oe.Separator.displayName;var W1=({className:e,...t})=>(0,$e.jsx)("span",{className:X("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});W1.displayName="DropdownMenuShortcut";var ke=require("react/jsx-runtime");function Ss(e){let{header:t}=e;return(0,ke.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-h-full",children:[(0,ke.jsxs)("div",{className:"ps-flex-1 ps-flex ps-items-center ps-justify-between",children:[(0,ke.jsxs)("div",{className:"ps-align-text-bottom ps-leading-none ps-h-[20px]",children:[(0,ke.jsx)("span",{className:"ps-inline-block ps-text-foreground ps-font-bold ps-text-sm",children:t.isPlaceholder?null:(0,gf.flexRender)(t.column.columnDef.header,t.getContext())}),(0,ke.jsx)("span",{className:"ps-inline-block ps-ml-2 ps-text-xs ps-font-mono ps-text-muted-foreground/70 ps-lowercase",children:t.column.columnDef.meta.datatype.name})]}),(0,ke.jsx)("span",{className:"ps-flex ps-items-center ps-gap-1",children:t.column.getCanPin()&&t.column.id!=="select"&&(0,ke.jsxs)(pf,{children:[(0,ke.jsx)(mf,{asChild:!0,children:(0,ke.jsx)($t,{variant:"ghost",size:"icon",children:(0,ke.jsx)(Ca,{size:16})})}),(0,ke.jsxs)(ws,{children:[t.column.getCanSort()&&(0,ke.jsx)(on,{onClick:()=>t.column.toggleSorting(t.column.getIsSorted()==="asc"),children:(0,ke.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[t.column.getIsSorted()==="asc"?(0,ke.jsx)(ya,{size:16}):(0,ke.jsx)(Zo,{size:16}),t.column.getIsSorted()==="asc"?"Sort descending":"Sort ascending"]})}),(0,ke.jsx)(on,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,ke.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ke.jsx)(ar,{size:16}),"Unpin column"]}):(0,ke.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ke.jsx)(or,{size:16}),"Pin column"]})})]})]})})]}),t.column.getCanResize()&&(0,ke.jsx)("button",{type:"button",tabIndex:0,onMouseDown:a=>{a.stopPropagation(),t.getResizeHandler()(a)},onTouchStart:a=>{a.stopPropagation(),t.getResizeHandler()(a)},onClick:a=>a.stopPropagation(),onKeyDown:a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),a.stopPropagation(),t.getResizeHandler()(a))},className:X("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-3 ps-cursor-col-resize","ps-select-none ps-touch-none ps-transition-colors ps-group","ps-border-0 ps-bg-transparent",t.column.getIsResizing()&&"ps-bg-gray-300","before:ps-absolute before:ps-right-[3px] before:ps-top-1/2 before:ps--translate-y-1/2","after:ps-absolute after:ps-right-[7px] after:ps-top-1/2 after:ps--translate-y-1/2","before:ps-w-[2px] before:ps-h-0 before:ps-bg-gray-400 before:ps-rounded-full before:ps-opacity-0","after:ps-w-[2px] after:ps-h-0 after:ps-bg-gray-400 after:ps-rounded-full after:ps-opacity-0","before:ps-transition-all before:ps-duration-200","after:ps-transition-all after:ps-duration-200","group-hover:before:ps-opacity-100","group-hover:after:ps-opacity-100","group-hover:before:ps-h-4","group-hover:after:ps-h-4","group-active:ps-bg-transparent group-active:before:ps-bg-white group-active:after:ps-bg-white",t.column.getIsResizing()&&"before:ps-opacity-100"),"aria-label":"Resize column"})]})}M();M();var hf=Ee(require("react"),1);var xf=require("react/jsx-runtime"),ks=hf.forwardRef(({className:e,type:t,...a},o)=>(0,xf.jsx)("input",{type:t,className:X("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-text-base 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 md:ps-text-sm",e),ref:o,...a}));ks.displayName="Input";var Oe=require("react/jsx-runtime");function yf(e){let{className:t,table:a,variant:o="basic"}=e,{pageIndex:r}=a.getState().pagination,n=a.getPageCount();return(0,Oe.jsx)("div",{className:X("ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-4 ps-px-4",t),children:o==="basic"?(0,Oe.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Oe.jsx)($t,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>a.previousPage(),disabled:!a.getCanPreviousPage(),children:"Previous"}),(0,Oe.jsx)($t,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>a.nextPage(),disabled:!a.getCanNextPage(),children:"Next"})]}):(0,Oe.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Oe.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Oe.jsx)($t,{variant:"outline",onClick:()=>a.setPageIndex(0),disabled:!a.getCanPreviousPage(),children:(0,Oe.jsx)(Jo,{className:"ps-w-4 ps-h-4"})}),(0,Oe.jsx)($t,{variant:"outline",onClick:()=>a.previousPage(),disabled:!a.getCanPreviousPage(),children:(0,Oe.jsx)(Yo,{className:"ps-w-4 ps-h-4"})}),(0,Oe.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Oe.jsx)(ks,{type:"number",min:1,max:n,value:r+1,className:"ps-w-16",onChange:s=>{let i=s.target.value?Number(s.target.value)-1:0;a.setPageIndex(i)}}),(0,Oe.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",n]})]}),(0,Oe.jsx)($t,{variant:"outline",onClick:()=>a.nextPage(),disabled:!a.getCanNextPage(),children:(0,Oe.jsx)(ea,{className:"ps-w-4 ps-h-4"})}),(0,Oe.jsx)($t,{variant:"outline",onClick:()=>a.setPageIndex(n-1),disabled:!a.getCanNextPage(),children:(0,Oe.jsx)(er,{className:"ps-w-4 ps-h-4"})})]})})})}var fe=require("react/jsx-runtime"),j1=e=>{let{children:t,className:a,header:o,style:r}=e,{attributes:n,listeners:s,transform:i,transition:l,setNodeRef:u,isDragging:f,isOver:d}=(0,uo.useSortable)({id:o.id});return(0,fe.jsxs)(en,{ref:u,...n,...s,style:{cursor:"grab",touchAction:"none",transform:Cf.CSS.Transform.toString(i),transition:l,...r},className:X("ps-group",a,f&&"ps-opacity-50",d&&"ps-bg-gray-100","ps-select-none ps-touch-none ps-relative",o.column.getIsPinned()&&"ps-sticky"),children:[t,d&&(0,fe.jsx)("div",{className:"ps-absolute ps-inset-0 ps-border-2 ps-border-primary ps-rounded-sm ps-pointer-events-none"})]})};function vf(e){let{columns:t,databaseTimezone:a,isLoading:o,onPaginationChange:r,pageCount:n,paginationState:s,rows:i}=e,[l,u]=(0,La.useState)([]),[f,d]=(0,La.useState)({left:[],right:[]}),[p,c]=(0,La.useState)({}),m=(0,La.useMemo)(()=>Object.values(t).map(v=>({accessorKey:v.name,header:()=>(0,fe.jsx)("div",{className:"ps-font-medium",children:v.name}),meta:v})),[t]);(0,La.useEffect)(()=>{let v=m.map(A=>A.accessorKey);if(l.length===0){u(v);return}let L=[...l],b=L.filter(A=>!m.some($=>$.accessorKey===A));b.forEach(A=>{let $=L.indexOf(A);$!==-1&&L.splice($,1)});let R=v.filter(A=>!L.includes(A));R.length>0&&L.push(...R),(b.length>0||R.length>0)&&u(L)},[m,l]);let g=(0,ba.useSensor)(ba.MouseSensor,{activationConstraint:{distance:10}}),h=(0,ba.useSensors)(g),y=v=>{let{active:L,over:b}=v;if(b&&L.id!==b.id){let R=C.getColumn(L.id),A=C.getColumn(b.id);if(!R||!A)return;let $=R.getIsPinned(),I=A.getIsPinned();if($!==I)return;let P=l.indexOf(L.id),_=l.indexOf(b.id);if(P===-1||_===-1)return;let N=[...l];N.splice(P,1),N.splice(_,0,L.id),u(N)}},C=(0,rn.useReactTable)({columnResizeMode:"onChange",columns:m,data:i,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,getCoreRowModel:(0,rn.getCoreRowModel)(),manualPagination:!0,onColumnPinningChange:d,onColumnSizingChange:c,onPaginationChange:r,pageCount:n,state:{columnOrder:l,columnPinning:f,columnSizing:p,pagination:s}});return!o&&!i.length?(0,fe.jsx)("div",{className:"ps-p-4 ps-border ps-rounded-md ps-w-full",children:(0,fe.jsx)("p",{className:"ps-text-lg ps-font-semibold",children:"No data available."})}):(0,fe.jsxs)(fe.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,fe.jsx)(zd,{table:C}),(0,fe.jsx)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full",children:(0,fe.jsxs)("div",{className:"ps-flex ps-flex-col ps-w-full ps-h-full ps-overflow-scroll",children:[(0,fe.jsx)(ba.DndContext,{sensors:h,onDragEnd:y,children:(0,fe.jsxs)(ps,{children:[(0,fe.jsx)(ms,{children:C.getHeaderGroups().map(v=>(0,fe.jsx)(jo,{className:X("ps-relative",C.getLeftLeafHeaders().some(L=>L.column.getIsPinned()==="left")&&`ps-pl-[${C.getLeftLeafHeaders().filter(L=>L.column.getIsPinned()==="left").reduce((L,b)=>L+b.getSize(),0)}px]`),children:(0,fe.jsx)(uo.SortableContext,{items:v.headers.map(L=>L.id),strategy:uo.horizontalListSortingStrategy,children:v.headers.map(L=>L.column.id==="select"?(0,fe.jsx)(en,{className:X("ps-px-[var(--studio-cell-spacing)]",va(L.column).className,L.column.getIsPinned()&&"ps-sticky"),style:va(L.column).style,"data-cell-type":"select",children:(0,fe.jsx)(Ss,{header:L})},L.id):(0,fe.jsx)(j1,{header:L,table:C,...va(L.column),children:(0,fe.jsx)(Ss,{header:L})},L.id))})},v.id))}),(0,fe.jsx)(gs,{children:C.getRowModel().rows?.length?C.getRowModel().rows.map(v=>(0,fe.jsx)(jo,{className:X("ps-bg-table-row ps-odd:bg-table-row-odd ps-group"),children:v.getVisibleCells().map(L=>(0,fe.jsx)(lf,{cell:L,databaseTimezone:a,...va(L.column)},L.id))},v.id)):(0,fe.jsx)(jo,{children:(0,fe.jsx)(Xo,{colSpan:m.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})})]})}),!n||n<2?null:(0,fe.jsx)(yf,{table:C,variant:"numeric"})]})})]})}var It=require("react/jsx-runtime"),X1=25;function Lf(e){let{activeTable:t}=ha(),{paginationState:a,setPaginationState:o}=Q1(t),{data:r,isLoading:n}=Td({...a,sortOrder:[]}),{data:{timezone:s}}=Yr();return t?(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b",children:(0,It.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,It.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2",children:(0,It.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:(0,It.jsx)("h1",{className:"ps-text-sm ps-font-medium",children:t.name})})})})}),(0,It.jsx)(vf,{columns:t.columns,databaseTimezone:s,isLoading:n,onPaginationChange:o,pageCount:Z1(r?.filteredRowCount??1/0,a.pageSize),paginationState:a,rows:r?.rows||[]})]}):null}function Q1(e){let[t,a]=(0,nn.useState)({pageIndex:0,pageSize:X1});function o(){t.pageIndex>0&&a(r=>({...r,pageIndex:0}))}return(0,nn.useEffect)(()=>{o()},[e,t.pageSize]),{paginationState:t,resetPageIndex:o,setPaginationState:a}}function Z1(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}M();var bf=require("@radix-ui/react-slot");var Ot=require("react/jsx-runtime");function fo(){let{data:e}=Yr(),{activeTable:t,adapter:a,setActiveTable:o}=ha(),r=Object.values(e.schemas[a.defaultSchema||"db"].tables),[n]=r;return n?.schema!==t?.schema&&n?.schema!==t?.name&&o(n||null),(0,Ot.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,Ot.jsx)(fo.Block,{label:"Tables",children:r.map(s=>(0,Ot.jsx)(fo.Item,{isActive:t===s,onClick:i=>{i.preventDefault(),t!==s&&o(s)},className:`ps-px-2 ps-py-1 ps-cursor-pointer ps-rounded ${t===s?"ps-bg-primary ps-text-white":"ps-hover:ps-bg-gray-100"}`,children:s.name},`${s.schema}-${s.name}`))})})}var Y1=({className:e,label:t,children:a,...o})=>(0,Ot.jsxs)("div",{className:X("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",e),...o,children:[(0,Ot.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,Ot.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,Ot.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),J1=({className:e,asChild:t=!1,isActive:a,size:o,...r})=>(0,Ot.jsx)(t?bf.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:X("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});fo.Block=Y1;fo.Item=J1;M();var za=require("react"),wf=require("react/jsx-runtime"),ex={theme:"system",setTheme:()=>null},tx=(0,za.createContext)(ex);function If({children:e,defaultTheme:t="system",storageKey:a="vite-ui-theme",...o}){let[r,n]=(0,za.useState)(()=>localStorage.getItem(a)||t);(0,za.useEffect)(()=>{let i=window.document.documentElement;if(i.classList.remove("light","dark"),r==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(l);return}i.classList.add(r)},[r]);let s={theme:r,setTheme:i=>{localStorage.setItem(a,i),n(i)}};return(0,wf.jsx)(tx.Provider,{...o,value:s,children:e})}var oa=require("react/jsx-runtime");function Sf(e){let{adapter:t}=e;return t?(0,oa.jsx)(If,{children:(0,oa.jsx)(Dd,{adapter:t,children:(0,oa.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-rounded-sm ps-bg-background ps-p-4 ps-relative",children:[(0,oa.jsx)(fo,{}),(0,oa.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg",children:(0,oa.jsx)(Lf,{})})]})})}):(console.error("No adapter provided to Studio component"),(0,oa.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1219
|
+
`}}),U.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Rt.grayAlt}`,display:"flex",flexDirection:"column"}},U.default.createElement("div",{style:{padding:".5em",background:Rt.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},U.default.createElement(zd,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),U.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",U.default.createElement("span",{style:{fontWeight:100}},"Devtools")),U.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?U.default.createElement(k1,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),U.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},U.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},U.default.createElement(Et,{label:"Instance",value:o,defaultExpanded:!1}),U.default.createElement("div",{style:{height:".5rem"}}),U.default.createElement(Et,{label:"State",value:o.getState(),defaultExpanded:!1}),U.default.createElement("div",{style:{height:".5rem"}}),U.default.createElement(Et,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),U.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},U.default.createElement(Et,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),U.default.createElement(Et,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),U.default.createElement(Et,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),U.default.createElement(Et,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),U.default.createElement(Et,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var oa=require("react");A();var Yt=Ee(require("react"),1);A();var Nd=require("clsx"),Hd=require("tailwind-merge");function X(...e){return(0,Hd.twMerge)((0,Nd.clsx)(e))}var Ft=require("react/jsx-runtime"),ms=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,Ft.jsx)("table",{ref:a,className:X("ps-w-full ps-caption-bottom ps-text-sm table-fixed",e),...t})}));ms.displayName="Table";var gs=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("thead",{ref:a,className:X("[&_tr]:ps-border-b",e),...t}));gs.displayName="TableHeader";var hs=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tbody",{ref:a,className:X("[&_tr:last-child]:ps-border-0",e),...t}));hs.displayName="TableBody";var T1=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tfoot",{ref:a,className:X("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));T1.displayName="TableFooter";var Xo=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("tr",{ref:a,className:X("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));Xo.displayName="TableRow";var an=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("th",{ref:a,className:X("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...t}));an.displayName="TableHead";var Qo=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("td",{ref:a,className:X("ps-p-2 ps-align-middle [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...t}));Qo.displayName="TableCell";var R1=Yt.forwardRef(({className:e,...t},a)=>(0,Ft.jsx)("caption",{ref:a,className:X("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));R1.displayName="TableCaption";A();var sf=require("@uiw/codemirror-theme-tokyo-night"),lf=Ee(require("@uiw/react-codemirror"),1);A();var Jt=Ee(require("@radix-ui/react-popover"),1),Je=Ee(require("react"),1);var lo=require("react/jsx-runtime"),_d=Je.createContext(null),xs=({children:e,...t})=>{let[a,o]=Je.useState(!1);return(0,lo.jsx)(_d.Provider,{value:{open:a,setOpen:o},children:(0,lo.jsx)(Jt.Root,{open:a,onOpenChange:o,...t,children:e})})};xs.displayName="PopoverCell";var ys=Je.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=Je.useContext(_d),[s,i]=Je.useState(!1),l=Je.useRef(null);return Je.useEffect(()=>{let d=p=>{let c=p.target;l.current&&!l.current.contains(c)&&(console.log("Outside click - removing focus"),i(!1))};return document.addEventListener("click",d),()=>document.removeEventListener("click",d)},[]),(0,lo.jsx)(Jt.Trigger,{ref:d=>{typeof r=="function"?r(d):r&&(r.current=d),l.current=d},onClick:d=>{d.preventDefault(),console.log("Click handler - setting focus to true"),i(!0)},onDoubleClick:d=>{d.preventDefault(),n?.setOpen(!0),t?.()},"data-focus":s.toString(),className:X("w-full h-full cursor-pointer",a),...o,children:e})});ys.displayName="PopoverCellTrigger";var Cs=Je.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,lo.jsx)(Jt.Portal,{children:(0,lo.jsx)(Jt.Content,{ref:r,align:t,sideOffset:a,className:X("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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),...o})}));Cs.displayName=Jt.Content.displayName;A();var vs=e=>{if(e==null)return"NULL";if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch(t){return console.error("Error stringifying value:",t),String(e)}return String(e)};A();A();var io=Ee(require("dayjs"),1),Vd=Ee(require("dayjs/plugin/localizedFormat"),1),Gd=Ee(require("dayjs/plugin/relativeTime"),1),Kd=Ee(require("dayjs/plugin/timezone"),1),Wd=Ee(require("dayjs/plugin/utc"),1);io.default.extend(Gd.default);io.default.extend(Vd.default);io.default.extend(Kd.default);io.default.extend(Wd.default);var Ls="YYYY-MM-DD HH:mm:ss";function jd(e,t){let a=io.default.utc(e);return{databaseTime:a.tz(t).format(Ls),local:a.local().format(Ls),milliseconds:a.valueOf(),relative:a.fromNow(),utc:a.format(Ls)}}var Qd=require("react/jsx-runtime"),Xd=e=>{let{databaseTimezone:t,date:a}=e,{databaseTime:o,local:r,milliseconds:n,relative:s,utc:i}=jd(a,t);return(0,Qd.jsx)("div",{className:"ps-flex ps-gap-1 ps-items-end","data-date-database":o,"data-date-local":r,"data-date-milliseconds":n,"data-date-relative":s,"data-date-utc":i,"data-timezone":t,children:String(a)})};A();var Yd=require("react/jsx-runtime");function Zd(){return(0,Yd.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})}A();A();A();var rn=require("react");A();var Jd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),on=(...e)=>e.filter((t,a,o)=>!!t&&o.indexOf(t)===a).join(" ");A();var Zo=require("react");A();var ef={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 tf=(0,Zo.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,Zo.createElement)("svg",{ref:l,...ef,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:on("lucide",r),...i},[...s.map(([u,f])=>(0,Zo.createElement)(u,f)),...Array.isArray(n)?n:[n]]));var Ce=(e,t)=>{let a=(0,rn.forwardRef)(({className:o,...r},n)=>(0,rn.createElement)(tf,{ref:n,iconNode:t,className:on(`lucide-${Jd(e)}`,o),...r}));return a.displayName=`${e}`,a};A();var Ca=Ce("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"}]]);A();var Yo=Ce("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"}]]);A();var Oa=Ce("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);A();var Jo=Ce("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);A();var ea=Ce("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);A();var er=Ce("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);A();var tr=Ce("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);A();var Ba=Ce("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);A();var ar=Ce("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"}]]);A();var va=Ce("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);A();var or=Ce("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"}]]);A();var rr=Ce("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"}]]);A();var nr=Ce("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var rf=require("react");A();var oe=Ee(require("@radix-ui/react-context-menu"),1);var ta=Ee(require("react"),1);var Fe=require("react/jsx-runtime"),af=oe.Root,of=oe.Trigger;var E1=ta.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Fe.jsxs)(oe.SubTrigger,{ref:r,className:X("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,Fe.jsx)(ea,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));E1.displayName=oe.SubTrigger.displayName;var F1=ta.forwardRef(({className:e,...t},a)=>(0,Fe.jsx)(oe.SubContent,{ref:a,className:X("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}));F1.displayName=oe.SubContent.displayName;var bs=ta.forwardRef(({className:e,...t},a)=>(0,Fe.jsx)(oe.Portal,{children:(0,Fe.jsx)(oe.Content,{ref:a,className:X("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})}));bs.displayName=oe.Content.displayName;var Is=ta.forwardRef(({className:e,inset:t,...a},o)=>(0,Fe.jsx)(oe.Item,{ref:o,className:X("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}));Is.displayName=oe.Item.displayName;var $1=ta.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Fe.jsxs)(oe.CheckboxItem,{ref:r,className:X("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,Fe.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,Fe.jsx)(oe.ItemIndicator,{children:(0,Fe.jsx)(Oa,{className:"ps-h-4 ps-w-4"})})}),t]}));$1.displayName=oe.CheckboxItem.displayName;var O1=ta.forwardRef(({className:e,children:t,...a},o)=>(0,Fe.jsxs)(oe.RadioItem,{ref:o,className:X("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,Fe.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,Fe.jsx)(oe.ItemIndicator,{children:(0,Fe.jsx)(Ba,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));O1.displayName=oe.RadioItem.displayName;var B1=ta.forwardRef(({className:e,inset:t,...a},o)=>(0,Fe.jsx)(oe.Label,{ref:o,className:X("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));B1.displayName=oe.Label.displayName;var q1=ta.forwardRef(({className:e,...t},a)=>(0,Fe.jsx)(oe.Separator,{ref:a,className:X("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));q1.displayName=oe.Separator.displayName;var z1=({className:e,...t})=>(0,Fe.jsx)("span",{className:X("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});z1.displayName="ContextMenuShortcut";var qa=require("react/jsx-runtime");function nf(e){let{children:t}=e;return(0,qa.jsxs)(af,{children:[(0,qa.jsx)(of,{className:"ps-block ps-w-full ps-p-[var(--studio-cell-spacing)]",children:t}),(0,qa.jsx)(bs,{children:(0,qa.jsxs)(Is,{onClick:()=>{let a=ws(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,qa.jsx)(ar,{size:12}),"Copy"]})})]})}function ws(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,rf.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?ws(t.children):""}return Array.isArray(e)?e.map(ws).join(""):""}A();function La(e){let t=e.getIsPinned(),a=t==="left"&&e.getIsLastColumn("left"),o=t==="right"&&e.getIsFirstColumn("right");return{className:X("ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",t&&["ps-sticky ps-bg-background ps-shadow-[1px_0_0_0_hsl(var(--border))]",t==="left"?"ps-left-0":"ps-right-0","ps-z-20"],!t&&"ps-relative ps-z-10",a&&"ps-shadow-[1px_0_0_0_hsl(var(--border))]",o&&"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 st=require("react/jsx-runtime");function U1(e,t,a){if(e==null)return(0,st.jsx)(Zd,{});switch(t){case"datetime":return(0,st.jsx)(Xd,{date:e,databaseTimezone:a});case"string":return(0,st.jsx)("div",{children:String(e)});case"time":return(0,st.jsx)("div",{children:String(e)});case"raw":return(0,st.jsx)("div",{children:vs(e)});default:N1(t)}}function N1(e){throw new Error(`Unhandled datatype group: ${String(e)}`)}function uf(e){let{cell:t,databaseTimezone:a}=e,o=t.getValue(),r=t.column.columnDef.meta,n=r.datatype.group;return(0,st.jsxs)(xs,{children:[(0,st.jsx)(ys,{asChild:!0,children:(0,st.jsx)(Qo,{...La(t.column),className:X(La(t.column).className,"ps-p-0",t.column.getIsPinned()&&"ps-sticky"),"data-type":n,"data-column":r.name,children:(0,st.jsx)(nf,{children:U1(o,n,a)})})}),(0,st.jsx)(Cs,{align:"start",alignOffset:0,sideOffset:0,className:"ps-min-w-(--radix-popover-trigger-width) ps-rounded-none ps-bg-muted ps-p-0 ps-z-10",children:(0,st.jsx)(lf.default,{value:vs(o),theme:sf.tokyoNight,height:"100px",basicSetup:{lineNumbers:!0,foldGutter:!1,dropCursor:!1,allowMultipleSelections:!1,indentOnInput:!1},onChange:s=>{console.log("New value:",s)}})})]},t.id)}A();var hf=require("@tanstack/react-table");A();var df=require("@radix-ui/react-slot"),ff=require("class-variance-authority"),cf=Ee(require("react"),1);var pf=require("react/jsx-runtime"),H1=(0,ff.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"}}),$t=cf.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,pf.jsx)(o?df.Slot:"button",{className:X(H1({variant:t,size:a,className:e})),ref:n,...r}));$t.displayName="Button";A();var re=Ee(require("@radix-ui/react-dropdown-menu"),1);var aa=Ee(require("react"),1);var $e=require("react/jsx-runtime"),mf=re.Root,gf=re.Trigger;var _1=aa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,$e.jsxs)(re.SubTrigger,{ref:r,className:X("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,$e.jsx)(ea,{className:"ps-ml-auto"})]}));_1.displayName=re.SubTrigger.displayName;var V1=aa.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(re.SubContent,{ref:a,className:X("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}));V1.displayName=re.SubContent.displayName;var Ss=aa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,$e.jsx)(re.Portal,{children:(0,$e.jsx)(re.Content,{ref:o,sideOffset:t,className:X("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})}));Ss.displayName=re.Content.displayName;var nn=aa.forwardRef(({className:e,inset:t,...a},o)=>(0,$e.jsx)(re.Item,{ref:o,className:X("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}));nn.displayName=re.Item.displayName;var G1=aa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,$e.jsxs)(re.CheckboxItem,{ref:r,className:X("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,$e.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,$e.jsx)(re.ItemIndicator,{children:(0,$e.jsx)(Oa,{className:"ps-h-4 ps-w-4"})})}),t]}));G1.displayName=re.CheckboxItem.displayName;var K1=aa.forwardRef(({className:e,children:t,...a},o)=>(0,$e.jsxs)(re.RadioItem,{ref:o,className:X("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,$e.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,$e.jsx)(re.ItemIndicator,{children:(0,$e.jsx)(Ba,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));K1.displayName=re.RadioItem.displayName;var W1=aa.forwardRef(({className:e,inset:t,...a},o)=>(0,$e.jsx)(re.Label,{ref:o,className:X("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));W1.displayName=re.Label.displayName;var j1=aa.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(re.Separator,{ref:a,className:X("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));j1.displayName=re.Separator.displayName;var X1=({className:e,...t})=>(0,$e.jsx)("span",{className:X("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});X1.displayName="DropdownMenuShortcut";var ie=require("react/jsx-runtime");function ks(e){let{header:t}=e;return(0,ie.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-h-full",children:[(0,ie.jsxs)("div",{className:"ps-flex-1 ps-flex ps-items-center ps-justify-between",children:[(0,ie.jsxs)("div",{className:"ps-align-text-bottom ps-leading-none ps-h-[20px]",children:[(0,ie.jsx)("span",{className:"ps-inline-block ps-text-foreground ps-font-bold ps-text-sm",children:t.isPlaceholder?null:(0,hf.flexRender)(t.column.columnDef.header,t.getContext())}),(0,ie.jsx)("span",{className:"ps-inline-block ps-ml-2 ps-text-xs ps-font-mono ps-text-muted-foreground/70 ps-lowercase",children:t.column.columnDef.meta.datatype.name})]}),(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-gap-1",children:t.column.getCanPin()&&t.column.id!=="select"&&(0,ie.jsxs)(mf,{children:[(0,ie.jsx)(gf,{asChild:!0,children:(0,ie.jsx)($t,{variant:"ghost",size:"icon",children:(0,ie.jsx)(va,{size:16})})}),(0,ie.jsxs)(Ss,{children:[t.column.getCanSort()&&(0,ie.jsx)(nn,{onClick:()=>t.column.toggleSorting(),children:(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Ca,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Yo,{size:16}),"Sort ascending"]}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(nr,{size:16}),"Cancel sorting"]})})}),(0,ie.jsx)(nn,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(or,{size:16}),"Unpin column"]}):(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(rr,{size:16}),"Pin column"]})})]})]})})]}),t.column.getCanResize()&&(0,ie.jsx)("button",{type:"button",tabIndex:0,onMouseDown:a=>{a.stopPropagation(),t.getResizeHandler()(a)},onTouchStart:a=>{a.stopPropagation(),t.getResizeHandler()(a)},onClick:a=>a.stopPropagation(),onKeyDown:a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),a.stopPropagation(),t.getResizeHandler()(a))},className:X("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-3 ps-cursor-col-resize","ps-select-none ps-touch-none ps-transition-colors ps-group","ps-border-0 ps-bg-transparent",t.column.getIsResizing()&&"ps-bg-gray-300","before:ps-absolute before:ps-right-[3px] before:ps-top-1/2 before:ps--translate-y-1/2","after:ps-absolute after:ps-right-[7px] after:ps-top-1/2 after:ps--translate-y-1/2","before:ps-w-[2px] before:ps-h-0 before:ps-bg-gray-400 before:ps-rounded-full before:ps-opacity-0","after:ps-w-[2px] after:ps-h-0 after:ps-bg-gray-400 after:ps-rounded-full after:ps-opacity-0","before:ps-transition-all before:ps-duration-200","after:ps-transition-all after:ps-duration-200","group-hover:before:ps-opacity-100","group-hover:after:ps-opacity-100","group-hover:before:ps-h-4","group-hover:after:ps-h-4","group-active:ps-bg-transparent group-active:before:ps-bg-white group-active:after:ps-bg-white",t.column.getIsResizing()&&"before:ps-opacity-100"),"aria-label":"Resize column"})]})}A();A();var xf=Ee(require("react"),1);var yf=require("react/jsx-runtime"),Ps=xf.forwardRef(({className:e,type:t,...a},o)=>(0,yf.jsx)("input",{type:t,className:X("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-text-base 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 md:ps-text-sm",e),ref:o,...a}));Ps.displayName="Input";var Oe=require("react/jsx-runtime");function Cf(e){let{className:t,table:a,variant:o="basic"}=e,{pageIndex:r}=a.getState().pagination,n=a.getPageCount();return(0,Oe.jsx)("div",{className:X("ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-4 ps-px-4",t),children:o==="basic"?(0,Oe.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Oe.jsx)($t,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>a.previousPage(),disabled:!a.getCanPreviousPage(),children:"Previous"}),(0,Oe.jsx)($t,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>a.nextPage(),disabled:!a.getCanNextPage(),children:"Next"})]}):(0,Oe.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Oe.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Oe.jsx)($t,{variant:"outline",onClick:()=>a.setPageIndex(0),disabled:!a.getCanPreviousPage(),children:(0,Oe.jsx)(er,{className:"ps-w-4 ps-h-4"})}),(0,Oe.jsx)($t,{variant:"outline",onClick:()=>a.previousPage(),disabled:!a.getCanPreviousPage(),children:(0,Oe.jsx)(Jo,{className:"ps-w-4 ps-h-4"})}),(0,Oe.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Oe.jsx)(Ps,{type:"number",min:1,max:n,value:r+1,className:"ps-w-16",onChange:s=>{let i=s.target.value?Number(s.target.value)-1:0;a.setPageIndex(i)}}),(0,Oe.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",n]})]}),(0,Oe.jsx)($t,{variant:"outline",onClick:()=>a.nextPage(),disabled:!a.getCanNextPage(),children:(0,Oe.jsx)(ea,{className:"ps-w-4 ps-h-4"})}),(0,Oe.jsx)($t,{variant:"outline",onClick:()=>a.setPageIndex(n-1),disabled:!a.getCanNextPage(),children:(0,Oe.jsx)(tr,{className:"ps-w-4 ps-h-4"})})]})})})}var me=require("react/jsx-runtime"),Q1=e=>{let{children:t,className:a,header:o,style:r}=e,{attributes:n,listeners:s,transform:i,transition:l,setNodeRef:u,isDragging:f,isOver:d}=(0,uo.useSortable)({id:o.id});return(0,me.jsxs)(an,{ref:u,...n,...s,style:{cursor:"grab",touchAction:"none",transform:Lf.CSS.Transform.toString(i),transition:l,...r},className:X("ps-group",a,f&&"ps-opacity-50",d&&"ps-bg-gray-100","ps-select-none ps-touch-none ps-relative",o.column.getIsPinned()&&"ps-sticky"),children:[t,d&&(0,me.jsx)("div",{className:"ps-absolute ps-inset-0 ps-border-2 ps-border-primary ps-rounded-sm ps-pointer-events-none"})]})};function bf(e){let{columns:t,databaseTimezone:a,isLoading:o,onPaginationChange:r,onSortingChange:n,pageCount:s,paginationState:i,rows:l,sortingState:u}=e,[f,d]=(0,oa.useState)([]),[p,c]=(0,oa.useState)({left:[],right:[]}),[m,g]=(0,oa.useState)({}),h=(0,oa.useMemo)(()=>vf(u),[u]),y=(0,oa.useMemo)(()=>Object.values(t).map(D=>({accessorKey:D.name,header:()=>(0,me.jsx)("div",{className:"ps-font-medium",children:D.name}),meta:D})),[t]);(0,oa.useEffect)(()=>{let D=y.map(M=>M.accessorKey);if(f.length===0){d(D);return}let I=[...f],E=I.filter(M=>!y.some(N=>N.accessorKey===M));E.forEach(M=>{let N=I.indexOf(M);N!==-1&&I.splice(N,1)});let w=D.filter(M=>!I.includes(M));w.length>0&&I.push(...w),(E.length>0||w.length>0)&&d(I)},[y,f]);let C=(0,ba.useSensor)(ba.MouseSensor,{activationConstraint:{distance:10}}),v=(0,ba.useSensors)(C),L=D=>{let{active:I,over:E}=D;if(E&&I.id!==E.id){let w=b.getColumn(I.id),M=b.getColumn(E.id);if(!w||!M)return;let N=w.getIsPinned(),_=M.getIsPinned();if(N!==_)return;let ae=f.indexOf(I.id),ue=f.indexOf(E.id);if(ae===-1||ue===-1)return;let pe=[...f];pe.splice(ae,1),pe.splice(ue,0,I.id),d(pe)}},b=(0,sn.useReactTable)({columnResizeMode:"onChange",columns:y,data:l,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableSorting:!!(n&&u),getCoreRowModel:(0,sn.getCoreRowModel)(),manualPagination:!0,manualSorting:!0,onColumnPinningChange:c,onColumnSizingChange:g,onPaginationChange:r,onSortingChange:D=>n?.(I=>(typeof D=="function"&&(D=D(vf(I))),Z1(D))),pageCount:s,state:{columnOrder:f,columnPinning:p,columnSizing:m,pagination:i,sorting:h}});return!o&&!l.length?(0,me.jsx)("div",{className:"ps-p-4 ps-border ps-rounded-md ps-w-full",children:(0,me.jsx)("p",{className:"ps-text-lg ps-font-semibold",children:"No data available."})}):(0,me.jsxs)(me.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,me.jsx)(Ud,{table:b}),(0,me.jsx)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full",children:(0,me.jsxs)("div",{className:"ps-flex ps-flex-col ps-w-full ps-h-full ps-overflow-scroll",children:[(0,me.jsx)(ba.DndContext,{sensors:v,onDragEnd:L,children:(0,me.jsxs)(ms,{children:[(0,me.jsx)(gs,{children:b.getHeaderGroups().map(D=>(0,me.jsx)(Xo,{className:X("ps-relative",b.getLeftLeafHeaders().some(I=>I.column.getIsPinned()==="left")&&`ps-pl-[${b.getLeftLeafHeaders().filter(I=>I.column.getIsPinned()==="left").reduce((I,E)=>I+E.getSize(),0)}px]`),children:(0,me.jsx)(uo.SortableContext,{items:D.headers.map(I=>I.id),strategy:uo.horizontalListSortingStrategy,children:D.headers.map(I=>I.column.id==="select"?(0,me.jsx)(an,{className:X("ps-px-[var(--studio-cell-spacing)]",La(I.column).className,I.column.getIsPinned()&&"ps-sticky"),style:La(I.column).style,"data-cell-type":"select",children:(0,me.jsx)(ks,{header:I})},I.id):(0,me.jsx)(Q1,{header:I,table:b,...La(I.column),children:(0,me.jsx)(ks,{header:I})},I.id))})},D.id))}),(0,me.jsx)(hs,{children:b.getRowModel().rows?.length?b.getRowModel().rows.map(D=>(0,me.jsx)(Xo,{className:X("ps-bg-table-row ps-odd:bg-table-row-odd ps-group"),children:D.getVisibleCells().map(I=>(0,me.jsx)(uf,{cell:I,databaseTimezone:a,...La(I.column)},I.id))},D.id)):(0,me.jsx)(Xo,{children:(0,me.jsx)(Qo,{colSpan:y.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})})]})}),!s||s<2?null:(0,me.jsx)(Cf,{table:b,variant:"numeric"})]})})]})}function vf(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function Z1(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}var It=require("react/jsx-runtime"),Y1=25;function If(e){let{activeTable:t}=xa(),{sortingState:a,setSortingState:o}=ex(t),{paginationState:r,setPaginationState:n}=J1(t,a),{data:s,isLoading:i}=Rd({...r,sortOrder:a}),{data:{timezone:l}}=en();return t?(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b",children:(0,It.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,It.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2",children:(0,It.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:(0,It.jsx)("h1",{className:"ps-text-sm ps-font-medium",children:t.name})})})})}),(0,It.jsx)(bf,{columns:t.columns,databaseTimezone:l,isLoading:i,onPaginationChange:n,onSortingChange:o,pageCount:tx(s?.filteredRowCount??1/0,r.pageSize),paginationState:r,rows:s?.rows||[],sortingState:a})]}):null}function J1(e,t){let[a,o]=(0,fo.useState)({pageIndex:0,pageSize:Y1});return(0,fo.useEffect)(()=>{a.pageIndex>0&&o(r=>({...r,pageIndex:0}))},[e,a.pageSize,t]),{paginationState:a,setPaginationState:o}}function ex(e){let[t,a]=(0,fo.useState)([]);return(0,fo.useEffect)(()=>{t.length>0&&a([])},[e]),{setSortingState:a,sortingState:t}}function tx(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}A();var wf=require("@radix-ui/react-slot");var Ot=require("react/jsx-runtime");function co(){let{data:e}=en(),{activeTable:t,adapter:a,setActiveTable:o}=xa(),r=Object.values(e.schemas[a.defaultSchema||"db"].tables),[n]=r;return n?.schema!==t?.schema&&n?.schema!==t?.name&&o(n||null),(0,Ot.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,Ot.jsx)(co.Block,{label:"Tables",children:r.map(s=>(0,Ot.jsx)(co.Item,{isActive:t===s,onClick:i=>{i.preventDefault(),t!==s&&o(s)},className:`ps-px-2 ps-py-1 ps-cursor-pointer ps-rounded ${t===s?"ps-bg-primary ps-text-white":"ps-hover:ps-bg-gray-100"}`,children:s.name},`${s.schema}-${s.name}`))})})}var ax=({className:e,label:t,children:a,...o})=>(0,Ot.jsxs)("div",{className:X("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",e),...o,children:[(0,Ot.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,Ot.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,Ot.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),ox=({className:e,asChild:t=!1,isActive:a,size:o,...r})=>(0,Ot.jsx)(t?wf.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:X("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});co.Block=ax;co.Item=ox;A();var za=require("react"),kf=require("react/jsx-runtime"),rx={theme:"system",setTheme:()=>null},nx=(0,za.createContext)(rx);function Sf({children:e,defaultTheme:t="system",storageKey:a="vite-ui-theme",...o}){let[r,n]=(0,za.useState)(()=>localStorage.getItem(a)||t);(0,za.useEffect)(()=>{let i=window.document.documentElement;if(i.classList.remove("light","dark"),r==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(l);return}i.classList.add(r)},[r]);let s={theme:r,setTheme:i=>{localStorage.setItem(a,i),n(i)}};return(0,kf.jsx)(nx.Provider,{...o,value:s,children:e})}var ra=require("react/jsx-runtime");function Pf(e){let{adapter:t}=e;return t?(0,ra.jsx)(Sf,{children:(0,ra.jsx)(Ad,{adapter:t,children:(0,ra.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-rounded-sm ps-bg-background ps-p-4 ps-relative",children:[(0,ra.jsx)(co,{}),(0,ra.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg",children:(0,ra.jsx)(If,{})})]})})}):(console.error("No adapter provided to Studio component"),(0,ra.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1220
1220
|
/*! Bundled license information:
|
|
1221
1221
|
|
|
1222
1222
|
@tanstack/query-devtools/build/chunk/WXAWMS3D.js:
|
|
@@ -1489,6 +1489,14 @@ lucide-react/dist/esm/icons/pin.js:
|
|
|
1489
1489
|
* See the LICENSE file in the root directory of this source tree.
|
|
1490
1490
|
*)
|
|
1491
1491
|
|
|
1492
|
+
lucide-react/dist/esm/icons/x.js:
|
|
1493
|
+
(**
|
|
1494
|
+
* @license lucide-react v0.427.0 - ISC
|
|
1495
|
+
*
|
|
1496
|
+
* This source code is licensed under the ISC license.
|
|
1497
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1498
|
+
*)
|
|
1499
|
+
|
|
1492
1500
|
lucide-react/dist/esm/lucide-react.js:
|
|
1493
1501
|
(**
|
|
1494
1502
|
* @license lucide-react v0.427.0 - ISC
|