react-toolkits 2.22.1 → 2.22.3

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/lib/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useEffect,lazy,useContext,useState,useImperativeHandle,cloneElement,Fragment as Fragment$1,Suspense,createContext,useTransition}from'react';import {useQuery,useInfiniteQuery,useQueryClient,useMutation,QueryClient,QueryClientProvider,onlineManager}from'@tanstack/react-query';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {jwtDecode}from'jwt-decode';import {create,useStore,createStore}from'zustand';import {persist,createJSONStorage,devtools,subscribeWithSelector}from'zustand/middleware';import*as jo from'antd';import {Spin,Menu,Modal,Form,Button,Drawer,Result,Table,Card,Input,Select,App,Space,Popconfirm,Switch,InputNumber,theme,Tag,Typography,Empty,Dropdown,Divider,Alert,notification,Row,Col,Breadcrumb,Descriptions,Skeleton,Tooltip,Checkbox,Collapse}from'antd';import {isEqual,has,template,get,last,first}from'lodash-es';import {flushSync}from'react-dom';import {createRoot}from'react-dom/client';import O4 from'ky';import {Link,useLocation,Routes,Route,Navigate,useNavigate,useParams}from'react-router-dom';import {Editor}from'@monaco-editor/react';import {PlusOutlined,LogoutOutlined,UserOutlined,MenuUnfoldOutlined,MenuFoldOutlined,UserAddOutlined,UsergroupAddOutlined,MinusCircleOutlined}from'@ant-design/icons';import q5 from'./logo-L6MFCL6M.png';import xv from'dayjs';var $l=Object.defineProperty;var Ml=e=>{throw TypeError(e)};var Hf=(e,t,n)=>t in e?$l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t)=>()=>(e&&(t=e(e=0)),t);var cn=(e,t)=>{for(var n in t)$l(e,n,{get:t[n],enumerable:!0});};var It=(e,t,n)=>Hf(e,typeof t!="symbol"?t+"":t,n),_l=(e,t,n)=>t.has(e)||Ml("Cannot "+n);var ee=(e,t,n)=>(_l(e,t,"read from private field"),n?n.call(e):t.get(e)),ke=(e,t,n)=>t.has(e)?Ml("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Se=(e,t,n,r)=>(_l(e,t,"write to private field"),t.set(e,n),n);var Fl,Qf,ii,Jr=Q(()=>{Fl={getItem:e=>sessionStorage.getItem(e)||localStorage.getItem(e),setItem:(e,t)=>{sessionStorage.setItem(e,t),localStorage.setItem(e,t);},removeItem(e){sessionStorage.removeItem(e),localStorage.removeItem(e);}},Qf=0,ii=()=>{let e=Date.now(),t=Math.floor(Math.random()*1e3),n=++Qf%1e3;return e*1e6+t*1e3+n};});function Al(e){let t=String(e),n=t.length-1;return te.context.id+(n?String.fromCharCode(96+n):"")+t}function zn(e){te.context=e;}function op(){return {...te.context,id:te.getNextContextId(),count:0}}function Wt(e,t){let n=Ie,r=ae,o=e.length===0,i=t===void 0?r:t,s=o?Yl:{owned:null,cleanups:null,context:i?i.context:null,owner:i},l=o?e:()=>e(()=>$e(()=>In(s)));ae=s,Ie=null;try{return ft(l,!0)}finally{Ie=n,ae=r;}}function q(e,t){t=t?Object.assign({},pi,t):pi;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(R&&R.running&&R.sources.has(n)?o=o(n.tValue):o=o(n.value)),rc(n,o));return [nc.bind(n),r]}function mi(e,t,n){let r=bi(e,t,!0,gt);ur&&R&&R.running?Ne.push(r):dr(r);}function G(e,t,n){let r=bi(e,t,!1,gt);ur&&R&&R.running?Ne.push(r):dr(r);}function j(e,t,n){Wl=dp;let r=bi(e,t,!1,gt);(!n||!n.render)&&(r.user=!0),et?et.push(r):dr(r);}function F(e,t,n){n=n?Object.assign({},pi,n):pi;let r=bi(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ur&&R&&R.running?(r.tState=gt,Ne.push(r)):dr(r),nc.bind(r)}function sp(e){return e&&typeof e=="object"&&"then"in e}function ap(e,t,n){let r,o,i;r=!0,o=e,i={};let s=null,l=ks,a=null,u=!1,c=!1,d="initialValue"in i,p=typeof r=="function"&&F(r),m=new Set,[f,g]=(i.storage||q)(i.initialValue),[v,h]=q(void 0),[y,b]=q(void 0,{equals:!1}),[w,S]=q(d?"ready":"unresolved");te.context&&(a=te.getNextContextId(),i.ssrLoadFrom==="initial"?l=i.initialValue:te.load&&te.has(a)&&(l=te.load(a)));function C(V,L,H,K){return s===V&&(s=null,K!==void 0&&(d=!0),(V===l||L===l)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(K,{value:L})),l=ks,R&&V&&u?(R.promises.delete(V),u=!1,ft(()=>{R.running=!0,k(L,H);},!1)):k(L,H)),L}function k(V,L){ft(()=>{L===void 0&&g(()=>V),S(L!==void 0?"errored":d?"ready":"unresolved"),h(L);for(let H of m.keys())H.decrement();m.clear();},!1);}function E(){let V=ro,L=f(),H=v();if(H!==void 0&&!s)throw H;return Ie&&!Ie.user&&V&&mi(()=>{y(),s&&(V.resolved?R.promises.add(s):m.has(V)||(V.increment(),m.add(V)));}),L}function I(V=!0){if(V!==!1&&c)return;c=!1;let L=p?p():r;if(u=R&&R.running,L==null||L===!1){C(s,$e(f));return}R&&s&&R.promises.delete(s);let H,K=l!==ks?l:$e(()=>{try{return o(L,{value:f(),refetching:V})}catch(oe){H=oe;}});if(H!==void 0){C(s,void 0,ui(H),L);return}else if(!sp(K))return C(s,K,void 0,L),K;return s=K,"v"in K?(K.s===1?C(s,K.v,void 0,L):C(s,void 0,ui(K.v),L),K):(c=!0,queueMicrotask(()=>c=!1),ft(()=>{S(d?"refreshing":"pending"),b();},!1),K.then(oe=>C(K,oe,void 0,L),oe=>C(K,void 0,ui(oe),L)))}Object.defineProperties(E,{state:{get:()=>w()},error:{get:()=>v()},loading:{get(){let V=w();return V==="pending"||V==="refreshing"}},latest:{get(){if(!d)return E();let V=v();if(V&&!s)throw V;return f()}}});let P=ae;return p?mi(()=>(P=ae,I(!1))):I(!1),[E,{refetch:V=>Zl(P,()=>I(V)),mutate:g}]}function Xl(e){return ft(e,!1)}function $e(e){if(!lr&&Ie===null)return e();let t=Ie;Ie=null;try{return lr?lr.untrack(e):e()}finally{Ie=t;}}function Yt(e,t,n){let r=Array.isArray(e),o,i=n&&n.defer;return s=>{let l;if(r){l=Array(e.length);for(let u=0;u<e.length;u++)l[u]=e[u]();}else l=e();if(i)return i=!1,s;let a=$e(()=>t(l,o,s));return o=l,a}}function Xt(e){j(()=>$e(e));}function W(e){return ae===null||(ae.cleanups===null?ae.cleanups=[e]:ae.cleanups.push(e)),e}function gi(){return ae}function Zl(e,t){let n=ae,r=Ie;ae=e,Ie=null;try{return ft(t,!0)}catch(o){xi(o);}finally{ae=n,Ie=r;}}function Jl(e){if(R&&R.running)return e(),R.done;let t=Ie,n=ae;return Promise.resolve().then(()=>{Ie=t,ae=n;let r;return (ur||ro)&&(r=R||(R={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(o=>r.resolve=o)),r.running=!0),ft(e,!1),Ie=ae=null,r?r.done:void 0})}function ec(){return [lp,Jl]}function Qe(e,t){let n=Symbol("context");return {id:n,Provider:fp(n),defaultValue:e}}function Ke(e){let t;return ae&&ae.context&&(t=ae.context[e.id])!==void 0?t:e.defaultValue}function tc(e){let t=F(e),n=F(()=>Ps(t()));return n.toArray=()=>{let r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function nc(){let e=R&&R.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===gt)dr(this);else {let t=Ne;Ne=null,ft(()=>hi(this),!1),Ne=t;}if(Ie){let t=this.observers?this.observers.length:0;Ie.sources?(Ie.sources.push(this),Ie.sourceSlots.push(t)):(Ie.sources=[this],Ie.sourceSlots=[t]),this.observers?(this.observers.push(Ie),this.observerSlots.push(Ie.sources.length-1)):(this.observers=[Ie],this.observerSlots=[Ie.sources.length-1]);}return e&&R.sources.has(this)?this.tValue:this.value}function rc(e,t,n){let r=R&&R.running&&R.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(R){let o=R.running;(o||!n&&R.sources.has(e))&&(R.sources.add(e),e.tValue=t),o||(e.value=t);}else e.value=t;e.observers&&e.observers.length&&ft(()=>{for(let o=0;o<e.observers.length;o+=1){let i=e.observers[o],s=R&&R.running;s&&R.disposed.has(i)||((s?!i.tState:!i.state)&&(i.pure?Ne.push(i):et.push(i),i.observers&&ic(i)),s?i.tState=gt:i.state=gt);}if(Ne.length>1e6)throw Ne=[],new Error},!1);}return t}function dr(e){if(!e.fn)return;In(e);let t=vi;ql(e,R&&R.running&&R.sources.has(e)?e.tValue:e.value,t),R&&!R.running&&R.sources.has(e)&&queueMicrotask(()=>{ft(()=>{R&&(R.running=!0),Ie=ae=e,ql(e,e.tValue,t),Ie=ae=null;},!1);});}function ql(e,t,n){let r,o=ae,i=Ie;Ie=ae=e;try{r=e.fn(t);}catch(s){return e.pure&&(R&&R.running?(e.tState=gt,e.tOwned&&e.tOwned.forEach(In),e.tOwned=void 0):(e.state=gt,e.owned&&e.owned.forEach(In),e.owned=null)),e.updatedAt=n+1,xi(s)}finally{Ie=i,ae=o;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?rc(e,r,!0):R&&R.running&&e.pure?(R.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n);}function bi(e,t,n,r=gt,o){let i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ae,context:ae?ae.context:null,pure:n};if(R&&R.running&&(i.state=0,i.tState=r),ae===null||ae!==Yl&&(R&&R.running&&ae.pure?ae.tOwned?ae.tOwned.push(i):ae.tOwned=[i]:ae.owned?ae.owned.push(i):ae.owned=[i]),lr&&i.fn){let[s,l]=q(void 0,{equals:!1}),a=lr.factory(i.fn,l);W(()=>a.dispose());let u=()=>Jl(l).then(()=>c.dispose()),c=lr.factory(i.fn,u);i.fn=d=>(s(),R&&R.running?c.track(d):a.track(d));}return i}function oo(e){let t=R&&R.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===no)return hi(e);if(e.suspense&&$e(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<vi);){if(t&&R.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let o=e,i=n[r+1];for(;(o=o.owner)&&o!==i;)if(R.disposed.has(o))return}if((t?e.tState:e.state)===gt)dr(e);else if((t?e.tState:e.state)===no){let o=Ne;Ne=null,ft(()=>hi(e,n[0]),!1),Ne=o;}}}function ft(e,t){if(Ne)return e();let n=!1;t||(Ne=[]),et?n=!0:et=[],vi++;try{let r=e();return cp(n),r}catch(r){n||(et=null),Ne=null,xi(r);}}function cp(e){if(Ne&&(ur&&R&&R.running?up(Ne):oc(Ne),Ne=null),e)return;let t;if(R){if(!R.promises.size&&!R.queue.size){let r=R.sources,o=R.disposed;et.push.apply(et,R.effects),t=R.resolve;for(let i of et)"tState"in i&&(i.state=i.tState),delete i.tState;R=null,ft(()=>{for(let i of o)In(i);for(let i of r){if(i.value=i.tValue,i.owned)for(let s=0,l=i.owned.length;s<l;s++)In(i.owned[s]);i.tOwned&&(i.owned=i.tOwned),delete i.tValue,delete i.tOwned,i.tState=0;}Rl(!1);},!1);}else if(R.running){R.running=!1,R.effects.push.apply(R.effects,et),et=null,Rl(!0);return}}let n=et;et=null,n.length&&ft(()=>Wl(n),!1),t&&t();}function oc(e){for(let t=0;t<e.length;t++)oo(e[t]);}function up(e){for(let t=0;t<e.length;t++){let n=e[t],r=R.queue;r.has(n)||(r.add(n),ur(()=>{r.delete(n),ft(()=>{R.running=!0,oo(n);},!1),R&&(R.running=!1);}));}}function dp(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:oo(r);}if(te.context){if(te.count){te.effects||(te.effects=[]),te.effects.push(...e.slice(0,n));return}zn();}for(te.effects&&(te.done||!te.count)&&(e=[...te.effects,...e],n+=te.effects.length,delete te.effects),t=0;t<n;t++)oo(e[t]);}function hi(e,t){let n=R&&R.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let o=e.sources[r];if(o.sources){let i=n?o.tState:o.state;i===gt?o!==t&&(!o.updatedAt||o.updatedAt<vi)&&oo(o):i===no&&hi(o,t);}}}function ic(e){let t=R&&R.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=no:r.state=no,r.pure?Ne.push(r):et.push(r),r.observers&&ic(r));}}function In(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){let i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)In(e.tOwned[t]);delete e.tOwned;}if(R&&R.running&&e.pure)sc(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)In(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}R&&R.running?e.tState=0:e.state=0;}function sc(e,t){if(t||(e.tState=0,R.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)sc(e.owned[n]);}function ui(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function zl(e,t,n){try{for(let r of t)r(e);}catch(r){xi(r,n&&n.owner||null);}}function xi(e,t=ae){let n=Ol&&t&&t.context&&t.context[Ol],r=ui(e);if(!n)throw r;et?et.push({fn(){zl(r,n,t);},state:gt}):zl(r,n,t);}function Ps(e){if(typeof e=="function"&&!e.length)return Ps(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=Ps(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r);}return t}return e}function fp(e,t){return function(r){let o;return G(()=>o=$e(()=>(ae.context={...ae.context,[e]:r.value},tc(()=>r.children))),void 0),o}}function yi(e){for(let t=0;t<e.length;t++)e[t]();}function pp(e,t,n={}){let r=[],o=[],i=[],s=0,l=t.length>1?[]:null;return W(()=>yi(i)),()=>{let a=e()||[],u=a.length,c,d;return a[co],$e(()=>{let m,f,g,v,h,y,b,w,S;if(u===0)s!==0&&(yi(i),i=[],r=[],o=[],s=0,l&&(l=[])),n.fallback&&(r=[Ts],o[0]=Wt(C=>(i[0]=C,n.fallback())),s=1);else if(s===0){for(o=new Array(u),d=0;d<u;d++)r[d]=a[d],o[d]=Wt(p);s=u;}else {for(g=new Array(u),v=new Array(u),l&&(h=new Array(u)),y=0,b=Math.min(s,u);y<b&&r[y]===a[y];y++);for(b=s-1,w=u-1;b>=y&&w>=y&&r[b]===a[w];b--,w--)g[w]=o[b],v[w]=i[b],l&&(h[w]=l[b]);for(m=new Map,f=new Array(w+1),d=w;d>=y;d--)S=a[d],c=m.get(S),f[d]=c===void 0?-1:c,m.set(S,d);for(c=y;c<=b;c++)S=r[c],d=m.get(S),d!==void 0&&d!==-1?(g[d]=o[c],v[d]=i[c],l&&(h[d]=l[c]),d=f[d],m.set(S,d)):i[c]();for(d=y;d<u;d++)d in g?(o[d]=g[d],i[d]=v[d],l&&(l[d]=h[d],l[d](d))):o[d]=Wt(p);o=o.slice(0,s=u),r=a.slice(0);}return o});function p(m){if(i[d]=m,l){let[f,g]=q(d);return l[d]=g,t(a[d],f)}return t(a[d])}}}function mp(e,t,n={}){let r=[],o=[],i=[],s=[],l=0,a;return W(()=>yi(i)),()=>{let u=e()||[],c=u.length;return u[co],$e(()=>{if(c===0)return l!==0&&(yi(i),i=[],r=[],o=[],l=0,s=[]),n.fallback&&(r=[Ts],o[0]=Wt(p=>(i[0]=p,n.fallback())),l=1),o;for(r[0]===Ts&&(i[0](),i=[],r=[],o=[],l=0),a=0;a<c;a++)a<r.length&&r[a]!==u[a]?s[a](()=>u[a]):a>=r.length&&(o[a]=Wt(d));for(;a<r.length;a++)i[a]();return l=s.length=i.length=c,r=u.slice(0),o=o.slice(0,l)});function d(p){i[a]=p;let[m,f]=q(u[a]);return s[a]=f,t(m,a)}}}function x(e,t){if(gp&&te.context){let n=te.context;zn(op());let r=$e(()=>e(t||{}));return zn(n),r}return $e(()=>e(t||{}))}function ai(){return !0}function Is(e){return (e=typeof e=="function"?e():e)?e:{}}function hp(){for(let e=0,t=this.length;e<t;++e){let n=this[e]();if(n!==void 0)return n}}function re(...e){let t=!1;for(let s=0;s<e.length;s++){let l=e[s];t=t||!!l&&fi in l,e[s]=typeof l=="function"?(t=!0,F(l)):l;}if(jl&&t)return new Proxy({get(s){for(let l=e.length-1;l>=0;l--){let a=Is(e[l])[s];if(a!==void 0)return a}},has(s){for(let l=e.length-1;l>=0;l--)if(s in Is(e[l]))return !0;return !1},keys(){let s=[];for(let l=0;l<e.length;l++)s.push(...Object.keys(Is(e[l])));return [...new Set(s)]}},$s);let n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){let l=e[s];if(!l)continue;let a=Object.getOwnPropertyNames(l);for(let u=a.length-1;u>=0;u--){let c=a[u];if(c==="__proto__"||c==="constructor")continue;let d=Object.getOwnPropertyDescriptor(l,c);if(!r[c])r[c]=d.get?{enumerable:!0,configurable:!0,get:hp.bind(n[c]=[d.get.bind(l)])}:d.value!==void 0?d:void 0;else {let p=n[c];p&&(d.get?p.push(d.get.bind(l)):d.value!==void 0&&p.push(()=>d.value));}}}let o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){let l=i[s],a=r[l];a&&a.get?Object.defineProperty(o,l,a):o[l]=a?a.value:void 0;}return o}function Ce(e,...t){if(jl&&fi in e){let o=new Set(t.length>1?t.flat():t[0]),i=t.map(s=>new Proxy({get(l){return s.includes(l)?e[l]:void 0},has(l){return s.includes(l)&&l in e},keys(){return s.filter(l=>l in e)}},$s));return i.push(new Proxy({get(s){return o.has(s)?void 0:e[s]},has(s){return o.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.has(s))}},$s)),i}let n={},r=t.map(()=>({}));for(let o of Object.getOwnPropertyNames(e)){let i=Object.getOwnPropertyDescriptor(e,o),s=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable,l=!1,a=0;for(let u of t)u.includes(o)&&(l=!0,s?r[a][o]=i.value:Object.defineProperty(r[a],o,i)),++a;l||(s?n[o]=i.value:Object.defineProperty(n,o,i));}return [...r,n]}function As(e){let t,n,r=o=>{let i=te.context;if(i){let[l,a]=q();te.count||(te.count=0),te.count++,(n||(n=e())).then(u=>{!te.done&&zn(i),te.count--,a(()=>u.default),zn();}),t=l;}else if(!t){let[l]=ap(()=>(n||(n=e())).then(a=>a.default));t=l;}let s;return F(()=>(s=t())?$e(()=>{if(!i||te.done)return s(o);let l=te.context;zn(i);let a=s(o);return zn(l),a}):"")};return r.preload=()=>n||((n=e()).then(o=>t=()=>o.default),n),r}function ht(){return te.context?te.getNextContextId():`cl-${yp++}`}function lc(e){let t="fallback"in e&&{fallback:()=>e.fallback};return F(pp(()=>e.each,e.children,t||void 0))}function cc(e){let t="fallback"in e&&{fallback:()=>e.fallback};return F(mp(()=>e.each,e.children,t||void 0))}function B(e){let t=e.keyed,n=F(()=>e.when,void 0,void 0),r=t?n:F(n,void 0,{equals:(o,i)=>!o==!i});return F(()=>{let o=r();if(o){let i=e.children;return typeof i=="function"&&i.length>0?$e(()=>i(t?o:()=>{if(!$e(r))throw ac("Show");return n()})):i}return e.fallback},void 0,void 0)}function uc(e){let t=tc(()=>e.children),n=F(()=>{let r=t(),o=Array.isArray(r)?r:[r],i=()=>{};for(let s=0;s<o.length;s++){let l=s,a=o[s],u=i,c=F(()=>u()?void 0:a.when,void 0,void 0),d=a.keyed?c:F(c,void 0,{equals:(p,m)=>!p==!m});i=()=>u()||(d()?[l,c,a]:void 0);}return i});return F(()=>{let r=n()();if(!r)return e.fallback;let[o,i,s]=r,l=s.children;return typeof l=="function"&&l.length>0?$e(()=>l(s.keyed?i():()=>{if($e(n)()?.[0]!==o)throw ac("Match");return i()})):l},void 0,void 0)}function wi(e){return e}function Cp(e,t){let n=Sp[e];return typeof n=="object"?n[t]?n.$:void 0:n}function Pp(e,t,n){let r=n.length,o=t.length,i=r,s=0,l=0,a=t[o-1].nextSibling,u=null;for(;s<o||l<i;){if(t[s]===n[l]){s++,l++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){let c=i<r?l?n[l-1].nextSibling:n[i-l]:a;for(;l<i;)e.insertBefore(n[l++],c);}else if(i===l)for(;s<o;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[l]===t[o-1]){let c=t[--o].nextSibling;e.insertBefore(n[l++],t[s++].nextSibling),e.insertBefore(n[--i],c),t[o]=n[i];}else {if(!u){u=new Map;let d=l;for(;d<i;)u.set(n[d],d++);}let c=u.get(t[s]);if(c!=null)if(l<c&&c<i){let d=s,p=1,m;for(;++d<o&&d<i&&!((m=u.get(t[d]))==null||m!==c+p);)p++;if(p>c-l){let f=t[s];for(;l<c;)e.insertBefore(n[l++],f);}else e.replaceChild(n[l++],t[s++]);}else s++;else t[s++].remove();}}}function Os(e,t,n,r={}){let o;return Wt(i=>{o=i,t===document?e():T(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{o(),t.textContent="";}}function N(e,t,n,r){let o,i=()=>{let l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},s=t?()=>$e(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function uo(e,t=window.document){let n=t[eo]||(t[eo]=new Set);for(let r=0,o=e.length;r<o;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,pc));}}function fc(e=window.document){if(e[eo]){for(let t of e[eo].keys())e.removeEventListener(t,pc);delete e[eo];}}function D(e,t,n){Nn(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function Tp(e,t,n,r){Nn(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r));}function $p(e,t,n){Nn(e)||(n?e.setAttribute(t,""):e.removeAttribute(t));}function A(e,t){Nn(e)||(t==null?e.removeAttribute("class"):e.className=t);}function Rs(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i));}else e.addEventListener(t,n,typeof n!="function"&&n);}function Mp(e,t,n={}){let r=Object.keys(t||{}),o=Object.keys(n),i,s;for(i=0,s=o.length;i<s;i++){let l=o[i];!l||l==="undefined"||t[l]||(Vl(e,l,!1),delete n[l]);}for(i=0,s=r.length;i<s;i++){let l=r[i],a=!!t[l];!l||l==="undefined"||n[l]===a||!a||(Vl(e,l,!0),n[l]=a);}return n}function _p(e,t,n){if(!t)return n?D(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function qs(e,t={},n,r){let o={};return r||G(()=>o.children=io(e,t.children,o.children)),G(()=>typeof t.ref=="function"&&Vn(t.ref,e)),G(()=>Fp(e,t,n,!0,o,!0)),o}function Vn(e,t,n){return $e(()=>e(t,n))}function T(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return io(e,t,r,n);G(o=>io(e,t(),o,n),r);}function Fp(e,t,n,r,o={},i=!1){t||(t={});for(let s in o)if(!(s in t)){if(s==="children")continue;o[s]=Nl(e,s,null,o[s],n,i,t);}for(let s in t){if(s==="children")continue;let l=t[s];o[s]=Nl(e,s,l,o[s],n,i,t);}}function Dp(e){let t,n;return !Nn()||!(t=te.registry.get(n=Ap()))?e():(te.completed&&te.completed.add(t),te.registry.delete(n),t)}function Nn(e){return !!te.context&&!te.done&&(!e||e.isConnected)}function Lp(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Vl(e,t,n){let r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n);}function Nl(e,t,n,r,o,i,s){let l,a,u,c,d;if(t==="style")return _p(e,n,r);if(t==="classList")return Mp(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){let p=t.slice(3);r&&e.removeEventListener(p,r,typeof r!="function"&&r),n&&e.addEventListener(p,n,typeof n!="function"&&n);}else if(t.slice(0,10)==="oncapture:"){let p=t.slice(10);r&&e.removeEventListener(p,r,!0),n&&e.addEventListener(p,n,!0);}else if(t.slice(0,2)==="on"){let p=t.slice(2).toLowerCase(),m=kp.has(p);if(!m&&r){let f=Array.isArray(r)?r[0]:r;e.removeEventListener(p,f);}(m||n)&&(Rs(e,p,n,m),m&&uo([p]));}else if(t.slice(0,5)==="attr:")D(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")$p(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(u=xp.has(t))||!o&&((c=Cp(t,e.tagName))||(a=bp.has(t)))||(l=e.nodeName.includes("-")||"is"in s)){if(d)t=t.slice(5),a=!0;else if(Nn(e))return n;t==="class"||t==="className"?A(e,n):l&&!a&&!u?e[Lp(t)]=n:e[c||t]=n;}else {let p=o&&t.indexOf(":")>-1&&Ep[t.split(":")[0]];p?Tp(e,p,t,n):D(e,wp[t]||t,n);}return n}function pc(e){if(te.registry&&te.events&&te.events.find(([a,u])=>u===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),s=()=>{let a=t[n];if(a&&!t.disabled){let u=t[`${n}Data`];if(u!==void 0?a.call(t,u,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},l=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),te.registry&&!te.done&&(te.done=_$HY.done=!0),e.composedPath){let a=e.composedPath();i(a[0]);for(let u=0;u<a.length-2&&(t=a[u],!!s());u++){if(t._$host){t=t._$host,l();break}if(t.parentNode===o)break}}else l();i(r);}function io(e,t,n,r,o){let i=Nn(e);if(i){!n&&(n=[...e.childNodes]);let a=[];for(let u=0;u<n.length;u++){let c=n[u];c.nodeType===8&&c.data.slice(0,2)==="!$"?c.remove():a.push(c);}n=a;}for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(i||s==="number"&&(t=t.toString(),t===n))return n;if(l){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=ir(e,n,r,a);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||s==="boolean"){if(i)return n;n=ir(e,n,r);}else {if(s==="function")return G(()=>{let a=t();for(;typeof a=="function";)a=a();n=io(e,a,n,r);}),()=>n;if(Array.isArray(t)){let a=[],u=n&&Array.isArray(n);if(Ms(a,t,n,o))return G(()=>n=io(e,a,n,r,!0)),()=>n;if(i){if(!a.length)return n;if(r===void 0)return n=[...e.childNodes];let c=a[0];if(c.parentNode!==e)return n;let d=[c];for(;(c=c.nextSibling)!==r;)d.push(c);return n=d}if(a.length===0){if(n=ir(e,n,r),l)return n}else u?n.length===0?Kl(e,a,r):Pp(e,n,a):(n&&ir(e),Kl(e,a));n=a;}else if(t.nodeType){if(i&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=ir(e,n,r,t);ir(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function Ms(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let l=t[i],a=n&&n[e.length],u;if(!(l==null||l===!0||l===!1))if((u=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))o=Ms(e,l,a)||o;else if(u==="function")if(r){for(;typeof l=="function";)l=l();o=Ms(e,Array.isArray(l)?l:[l],Array.isArray(a)?a:[a])||o;}else e.push(l),o=!0;else {let c=String(l);a&&a.nodeType===3&&a.data===c?e.push(a):e.push(document.createTextNode(c));}}return o}function Kl(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n);}function ir(e,t,n,r){if(n===void 0)return e.textContent="";let o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){let l=t[s];if(o!==l){let a=l.parentNode===e;!i&&!s?a?e.replaceChild(o,l):e.insertBefore(o,n):a&&l.remove();}else i=!0;}}else e.insertBefore(o,n);return [o]}function Ap(){return te.getNextContextId()}function mc(e,t=!1){return t?document.createElementNS(Op,e):document.createElement(e)}function zs(e){let{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=gi(),i,s=!!te.context;return j(()=>{s&&(gi().user=s=!1),i||(i=Zl(o,()=>F(()=>e.children)));let l=r();if(l instanceof HTMLHeadElement){let[a,u]=q(!1),c=()=>u(!0);Wt(d=>T(l,()=>a()?d():i(),null)),W(c);}else {let a=mc(e.isSVG?"g":"div",e.isSVG),u=t&&a.attachShadow?a.attachShadow({mode:"open"}):a;Object.defineProperty(a,"_$host",{get(){return n.parentNode},configurable:!0}),T(u,i),l.appendChild(a),e.ref&&e.ref(a),W(()=>l.removeChild(a));}},void 0,{render:!s}),n}function Rp(e,t){let n=F(e);return F(()=>{let r=n();switch(typeof r){case"function":return $e(()=>r(t));case"string":let o=Ip.has(r),i=te.context?Dp():mc(r,o);return qs(i,t,o),i}})}function gc(e){let[,t]=Ce(e,["component"]);return Rp(()=>e.component,t)}function Vp(e){if("values"in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Np(e,t){let n=Vp(e);if("find"in n)return n.find(t);let r=n;for(let o=0;o<r.length;o++){let i=r[o];if(t(i))return i}}function cr(e,t){Object.entries(e).forEach(([n,r])=>t(r,n));}function di(e,t){return e.indexOf(t)!==-1}function Bl(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}function jt(e,t,n,r){return {isApplicable:e,annotation:t,transform:n,untransform:r}}function Si(e,t,n,r){return {isApplicable:e,annotation:t,transform:n,untransform:r}}function Cc(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function Pc(e){if(di(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(di(e,"prototype"))throw new Error("prototype is not allowed as a property");if(di(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Ds(e,t,n=[]){if(!e)return;if(!En(e)){cr(e,(i,s)=>Ds(i,t,[...n,...to(s)]));return}let[r,o]=e;o&&cr(o,(i,s)=>{Ds(i,t,[...n,...to(s)]);}),t(r,n);}function s2(e,t,n){return Ds(t,(r,o)=>{e=Fs(e,o,i=>o2(i,r,n));}),e}function a2(e,t){function n(r,o){let i=i2(e,to(o));r.map(to).forEach(s=>{e=Fs(e,s,()=>i);});}if(En(t)){let[r,o]=t;r.forEach(i=>{e=Fs(e,to(i),()=>e);}),o&&cr(o,n);}else cr(t,n);return e}function c2(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t]);}function u2(e,t){let n={},r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(l=>l.map(String)).sort((l,a)=>l.length-a.length));let[i,...s]=o;i.length===0?r=s.map(Es):n[Es(i)]=s.map(Es);}),r?_s(n)?[r]:[r,n]:_s(n)?void 0:n}function $c(e){return Object.prototype.toString.call(e).slice(8,-1)}function Hl(e){return $c(e)==="Array"}function d2(e){if($c(e)!=="Object")return !1;let t=Object.getPrototypeOf(e);return !!t&&t.constructor===Object&&t===Object.prototype}function f2(e,t,n,r,o){let i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0});}function Ls(e,t={}){if(Hl(e))return e.map(o=>Ls(o,t));if(!d2(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return [...n,...r].reduce((o,i)=>{if(Hl(t.props)&&!t.props.includes(i))return o;let s=e[i],l=Ls(s,t);return f2(o,i,l,e,t.nonenumerable),o},{})}function Kn(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function _c(e,t){return `${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function Fc({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":n?"yellow":"green":"gray"}function Bn({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Dc(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var te,ip,fi,jl,co,pi,Ol,Wl,gt,no,Yl,ks,ae,R,ur,lr,Ie,Ne,et,vi,lp,Rl,ro,Ts,gp,$s,yp,ac,dc,vp,bp,xp,wp,Sp,kp,Ip,Ep,ze,eo,tt,Op,qp,hc,zp,Kp,Bp,yc,Gp,so,_s,En,Up,Hp,Qp,jp,ao,lo,vc,Wp,Yp,Gl,Xp,Zp,Jp,e2,t2,bc,Es,to,xc,wc,n2,Sc,kc,Ic,r2,Ul,Ec,o2,sr,i2,Fs,l2,Tc,ge,Vs,Mc,fo,li,p2,Lc,m2,Ci,ci,Ac,g2,ki,Ns,Ii,kn,ar,Ks,po=Q(()=>{te={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Al(this.context.count)},getNextContextId(){return Al(this.context.count++)}};ip=(e,t)=>e===t,fi=Symbol("solid-proxy"),jl=typeof Proxy=="function",co=Symbol("solid-track"),pi={equals:ip},Ol=null,Wl=oc,gt=1,no=2,Yl={owned:null,cleanups:null,context:null,owner:null},ks={},ae=null,R=null,ur=null,lr=null,Ie=null,Ne=null,et=null,vi=0;[lp,Rl]=q(!1);Ts=Symbol("fallback");gp=!1;$s={get(e,t,n){return t===fi?n:e.get(t)},has(e,t){return t===fi?!0:e.has(t)},set:ai,deleteProperty:ai,getOwnPropertyDescriptor(e,t){return {configurable:!0,enumerable:!0,get(){return e.get(t)},set:ai,deleteProperty:ai}},ownKeys(e){return e.keys()}};yp=0;ac=e=>`Stale read from <${e}>.`;dc=void 0,vp=["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"],bp=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline",...vp]),xp=new Set(["innerHTML","textContent","innerText","children"]),wp=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Sp=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});kp=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Ip=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"]),Ep={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},ze=e=>F(()=>e());eo="_$DX_DELEGATE";tt=!1,Op="http://www.w3.org/2000/svg";qp=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();}},hc=class{constructor(e){this.generateIdentifier=e,this.kv=new qp;}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)}},zp=class extends hc{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)}};Kp=class{constructor(){this.transfomers={};}register(e){this.transfomers[e.name]=e;}findApplicable(e){return Np(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Bp=e=>Object.prototype.toString.call(e).slice(8,-1),yc=e=>typeof e>"u",Gp=e=>e===null,so=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,_s=e=>so(e)&&Object.keys(e).length===0,En=e=>Array.isArray(e),Up=e=>typeof e=="string",Hp=e=>typeof e=="number"&&!isNaN(e),Qp=e=>typeof e=="boolean",jp=e=>e instanceof RegExp,ao=e=>e instanceof Map,lo=e=>e instanceof Set,vc=e=>Bp(e)==="Symbol",Wp=e=>e instanceof Date&&!isNaN(e.valueOf()),Yp=e=>e instanceof Error,Gl=e=>typeof e=="number"&&isNaN(e),Xp=e=>Qp(e)||Gp(e)||yc(e)||Hp(e)||Up(e)||vc(e),Zp=e=>typeof e=="bigint",Jp=e=>e===1/0||e===-1/0,e2=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),t2=e=>e instanceof URL,bc=e=>e.replace(/\./g,"\\."),Es=e=>e.map(String).map(bc).join("."),to=e=>{let t=[],n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i;}let r=n;return t.push(r),t};xc=[jt(yc,"undefined",()=>null,()=>{}),jt(Zp,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),jt(Wp,"Date",e=>e.toISOString(),e=>new Date(e)),jt(Yp,"Error",(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r];}),n},(e,t)=>{let n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r];}),n}),jt(jp,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),jt(lo,"set",e=>[...e.values()],e=>new Set(e)),jt(ao,"map",e=>[...e.entries()],e=>new Map(e)),jt(e=>Gl(e)||Jp(e),"number",e=>Gl(e)?"NaN":e>0?"Infinity":"-Infinity",Number),jt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),jt(t2,"URL",e=>e.toString(),e=>new URL(e))];wc=Si((e,t)=>vc(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),n2=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Sc=Si(e2,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let n=n2[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});kc=Si(Cc,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return {...e};let r={};return n.forEach(o=>{r[o]=e[o];}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Ic=Si((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),r2=[kc,wc,Ic,Sc],Ul=(e,t)=>{let n=Bl(r2,o=>o.isApplicable(e,t));if(n)return {value:n.transform(e,t),type:n.annotation(e,t)};let r=Bl(xc,o=>o.isApplicable(e,t));if(r)return {value:r.transform(e,t),type:r.annotation}},Ec={};xc.forEach(e=>{Ec[e.annotation]=e;});o2=(e,t,n)=>{if(En(t))switch(t[0]){case"symbol":return wc.untransform(e,t,n);case"class":return kc.untransform(e,t,n);case"custom":return Ic.untransform(e,t,n);case"typed-array":return Sc.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else {let r=Ec[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},sr=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};i2=(e,t)=>{Pc(t);for(let n=0;n<t.length;n++){let r=t[n];if(lo(e))e=sr(e,+r);else if(ao(e)){let o=+r,i=+t[++n]==0?"key":"value",s=sr(e,o);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r];}return e},Fs=(e,t,n)=>{if(Pc(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){let s=t[i];if(En(r)){let l=+s;r=r[l];}else if(so(r))r=r[s];else if(lo(r)){let l=+s;r=sr(r,l);}else if(ao(r)){if(i===t.length-2)break;let a=+s,u=+t[++i]==0?"key":"value",c=sr(r,a);switch(u){case"key":r=c;break;case"value":r=r.get(c);break}}}let o=t[t.length-1];if(En(r)?r[+o]=n(r[+o]):so(r)&&(r[o]=n(r[o])),lo(r)){let i=sr(r,+o),s=n(i);i!==s&&(r.delete(i),r.add(s));}if(ao(r)){let i=+t[t.length-2],s=sr(r,i);switch(+o==0?"key":"value"){case"key":{let a=n(s);r.set(a,r.get(s)),a!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};l2=(e,t)=>so(e)||En(e)||ao(e)||lo(e)||Cc(e,t);Tc=(e,t,n,r,o=[],i=[],s=new Map)=>{let l=Xp(e);if(!l){c2(e,o,t);let m=s.get(e);if(m)return r?{transformedValue:null}:m}if(!l2(e,n)){let m=Ul(e,n),f=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:e};return l||s.set(e,f),f}if(di(i,e))return {transformedValue:null};let a=Ul(e,n),u=a?.value??e,c=En(u)?[]:{},d={};cr(u,(m,f)=>{if(f==="__proto__"||f==="constructor"||f==="prototype")throw new Error(`Detected property ${f}. This is a prototype pollution risk, please remove it from your object.`);let g=Tc(m,t,n,r,[...o,f],[...i,e],s);c[f]=g.transformedValue,En(g.annotations)?d[f]=g.annotations:so(g.annotations)&&cr(g.annotations,(v,h)=>{d[bc(f)+"."+h]=v;});});let p=_s(d)?{transformedValue:c,annotations:a?[a.type]:void 0}:{transformedValue:c,annotations:a?[a.type,d]:d};return l||s.set(e,p),p};ge=class{constructor({dedupe:e=!1}={}){this.classRegistry=new zp,this.symbolRegistry=new hc(t=>t.description??""),this.customTransformerRegistry=new Kp,this.allowedErrorProps=[],this.dedupe=e;}serialize(e){let t=new Map,n=Tc(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let o=u2(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){let{json:t,meta:n}=e,r=Ls(t);return n?.values&&(r=s2(r,n.values,this)),n?.referentialEqualities&&(r=a2(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t);}registerSymbol(e,t){this.symbolRegistry.register(e,t);}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e});}allowErrorProps(...e){this.allowedErrorProps.push(...e);}};ge.defaultInstance=new ge;ge.serialize=ge.defaultInstance.serialize.bind(ge.defaultInstance);ge.deserialize=ge.defaultInstance.deserialize.bind(ge.defaultInstance);ge.stringify=ge.defaultInstance.stringify.bind(ge.defaultInstance);ge.parse=ge.defaultInstance.parse.bind(ge.defaultInstance);ge.registerClass=ge.defaultInstance.registerClass.bind(ge.defaultInstance);ge.registerSymbol=ge.defaultInstance.registerSymbol.bind(ge.defaultInstance);ge.registerCustom=ge.defaultInstance.registerCustom.bind(ge.defaultInstance);ge.allowErrorProps=ge.defaultInstance.allowErrorProps.bind(ge.defaultInstance);Vs=ge.serialize;ge.deserialize;Mc=ge.stringify;ge.parse;ge.registerClass;ge.registerCustom;ge.registerSymbol;ge.allowErrorProps;fo=(e,t=!1)=>{let{json:n}=Vs(e);return JSON.stringify(n,null,t?2:void 0)},li=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,p2=(e,t)=>e.queryHash.localeCompare(t.queryHash),Lc=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,m2=(e,t)=>li(e)===li(t)?Lc(e,t):li(e)>li(t)?1:-1,Ci={status:m2,"query hash":p2,"last updated":Lc},ci=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Ac=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,g2=(e,t)=>ci(e)===ci(t)?Ac(e,t):ci(e)>ci(t)?1:-1,ki={status:g2,"last updated":Ac},Ns=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Ii=()=>{let[e,t]=q("dark");return Xt(()=>{let n=window.matchMedia("(prefers-color-scheme: dark)");t(n.matches?"dark":"light");let r=o=>{t(o.matches?"dark":"light");};n.addEventListener("change",r),W(()=>n.removeEventListener("change",r));}),e},kn=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){let r=new Map(e);if(t.length===1)return r.set(t[0],n),r;let[o,...i]=t;return r.set(o,kn(r.get(o),i,n)),r}if(e instanceof Set){let r=kn(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=kn(r[o],i,n),r}if(e instanceof Object){let r={...e};if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=kn(r[o],i,n),r}return e},ar=(e,t)=>{if(e instanceof Map){let n=new Map(e);if(t.length===1)return n.delete(t[0]),n;let[r,...o]=t;return n.set(r,ar(n.get(r),o)),n}if(e instanceof Set){let n=ar(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){let n=[...e];if(t.length===1)return n.filter((i,s)=>s.toString()!==t[0]);let[r,...o]=t;return n[r]=ar(n[r],o),n}if(e instanceof Object){let n={...e};if(t.length===1)return delete n[t[0]],n;let[r,...o]=t;return n[r]=ar(n[r],o),n}return e},Ks=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let r=document.createElement("style"),o=document.createTextNode("");r.appendChild(o),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r);};});function x2(e){return (...t)=>{for(let n of e)n&&n(...t);}}function w2(e,...t){return typeof e=="function"?e(...t):e}function C2(e,t,n,r){let o=e.length,i=t.length,s=0;if(!i){for(;s<o;s++)n(e[s]);return}if(!o){for(;s<i;s++)r(t[s]);return}for(;s<i&&t[s]===e[s];s++);let l,a;t=t.slice(s),e=e.slice(s);for(l of t)e.includes(l)||r(l);for(a of e)t.includes(a)||n(a);}function k2(e){let[t,n]=q(),r=e?.throw?(p,m)=>{throw n(p instanceof Error?p:new Error(m)),p}:(p,m)=>{n(p instanceof Error?p:new Error(m));},o=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),i=e?.prefix?`${e.prefix}.`:"",s=new Map,l=new Proxy({},{get(p,m){let f=s.get(m);f||(f=q(void 0,{equals:!1}),s.set(m,f)),f[0]();let g=o.reduce((v,h)=>{if(v!==null||!h)return v;try{return h.getItem(`${i}${m}`)}catch(y){return r(y,`Error reading ${i}${m} from ${h.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,m,e.options):g}}),a=(p,m,f)=>{let g=e?.serializer?e.serializer(m,p,f??e.options):m,v=`${i}${p}`;o.forEach(y=>{try{y.getItem(v)!==g&&y.setItem(v,g);}catch(b){r(b,`Error setting ${i}${p} to ${g} in ${y.name}`);}});let h=s.get(p);h&&h[1]();},u=p=>o.forEach(m=>{try{m.removeItem(`${i}${p}`);}catch(f){r(f,`Error removing ${i}${p} from ${m.name}`);}}),c=()=>o.forEach(p=>{try{p.clear();}catch(m){r(m,`Error clearing ${p.name}`);}}),d=()=>{let p={},m=(f,g)=>{if(!p.hasOwnProperty(f)){let v=g&&e?.deserializer?e.deserializer(g,f,e.options):g;v&&(p[f]=v);}};return o.forEach(f=>{if(typeof f.getAll=="function"){let g;try{g=f.getAll();}catch(v){r(v,`Error getting all values from in ${f.name}`);}for(let v of g)m(v,g[v]);}else {let g=0,v;try{for(;v=f.key(g++);)p.hasOwnProperty(v)||m(v,f.getItem(v));}catch(h){r(h,`Error getting all values from ${f.name}`);}}}),p};return e?.sync!==!1&&Xt(()=>{let p=m=>{let f=!1;o.forEach(g=>{try{g!==m.storageArea&&m.key&&m.newValue!==g.getItem(m.key)&&(m.newValue?g.setItem(m.key,m.newValue):g.removeItem(m.key),f=!0);}catch(v){r(v,`Error synching api ${g.name} from storage event (${m.key}=${m.newValue})`);}}),f&&m.key&&s.get(m.key)?.[1]();};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),W(()=>globalThis.removeEventListener("storage",p))):(o.forEach(m=>m.addEventListener?.("storage",p)),W(()=>o.forEach(m=>m.removeEventListener?.("storage",p))));}),[l,a,{clear:c,error:t,remove:u,toJSON:d}]}function U(){return Ke(ko)}function Ye(){return Ke(Io)}function L2(e){return e.replace(D2,t=>Du[t])}function zc(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:pt.MATCHES,!n.accessors){let s=Vc(e,t,n);return {rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}let o=q2(e,n.accessors),i={rankedValue:e,rank:pt.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s<o.length;s++){let l=o[s],a=Vc(l.itemValue,t,n),{minRanking:u,maxRanking:c,threshold:d=n.threshold}=l.attributes;a<u&&a>=pt.MATCHES?a=u:a>c&&(a=c),a=Math.min(a,c),a>=d&&a>i.rank&&(i.rank=a,i.passed=!0,i.accessorIndex=s,i.accessorThreshold=d,i.rankedValue=l.itemValue);}return i}function Vc(e,t,n){return e=Nc(e,n),t=Nc(t,n),t.length>e.length?pt.NO_MATCH:e===t?pt.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?pt.EQUAL:e.startsWith(t)?pt.STARTS_WITH:e.includes(` ${t}`)?pt.WORD_STARTS_WITH:e.includes(t)?pt.CONTAINS:t.length===1?pt.NO_MATCH:A2(e).includes(t)?pt.ACRONYM:O2(e,t))}function A2(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(i=>{t+=i.substr(0,1);});}),t}function O2(e,t){let n=0,r=0;function o(a,u,c){for(let d=c,p=u.length;d<p;d++)if(u[d]===a)return n+=1,d+1;return -1}function i(a){let u=1/a,c=n/t.length;return pt.MATCHES+c*u}let s=o(t[0],e,0);if(s<0)return pt.NO_MATCH;r=s;for(let a=1,u=t.length;a<u;a++){let c=t[a];if(r=o(c,e,r),!(r>-1))return pt.NO_MATCH}let l=r-s;return i(l)}function Nc(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=L2(e)),e}function R2(e,t){let n=t;typeof t=="object"&&(n=t.accessor);let r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function q2(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let i=t[r],s=z2(i),l=R2(e,i);for(let a=0,u=l.length;a<u;a++)n.push({itemValue:l[a],attributes:s});}return n}function z2(e){return typeof e=="function"?Kc:{...Kc,...e}}function ce(e){let t=this||{},n=e.call?e(t.p):e;return G2(n.unshift?n.raw?U2(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,N2(t.target),t.g,t.o,t.k)}function Au(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Au(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function z(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Au(e))&&(r&&(r+=" "),r+=t);return r}function H2(e,t){let n=$e(e);if(tt){let d=n.slice();return ()=>d}let{onChange:r}=t,o=new Set(t.appear?void 0:n),i=new WeakSet,[s,l]=q([],{equals:!1}),[a]=ec(),u=d=>{l(p=>(p.push.apply(p,d),p));for(let p of d)i.delete(p);},c=(d,p,m)=>d.splice(m,0,p);return F(d=>{let p=s(),m=e();if(m[co],$e(a))return a(),d;if(p.length){let f=d.filter(g=>!p.includes(g));return p.length=0,r({list:f,added:[],removed:[],unchanged:f,finishRemoved:u}),f}return $e(()=>{let f=new Set(m),g=m.slice(),v=[],h=[],y=[];for(let w of m)(o.has(w)?y:v).push(w);let b=!v.length;for(let w=0;w<d.length;w++){let S=d[w];f.has(S)||(i.has(S)||(h.push(S),i.add(S)),c(g,S,w)),b&&S!==g[w]&&(b=!1);}return !h.length&&b?d:(r({list:g,added:v,removed:h,unchanged:y,finishRemoved:u}),o=f,g)})},t.appear?[]:n.slice())}function st(...e){return x2(e)}function Ys(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Ys(e(),t);if(Array.isArray(e)){let n=[];for(let r of e){let o=Ys(r,t);o&&(Array.isArray(o)?n.push.apply(n,o):n.push(o));}return n.length?n:null}return null}function Q2(e,t=Gc,n=Gc){let r=F(e),o=F(()=>Ys(r(),tt?n:t));return o.toArray=()=>{let i=o();return Array.isArray(i)?i:i?[i]:[]},o}function j2(e){return F(()=>{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 Ou(e){requestAnimationFrame(()=>requestAnimationFrame(e));}function W2(e,t,n,r){let{onBeforeEnter:o,onEnter:i,onAfterEnter:s}=t;o?.(n),n.classList.add(...e.enter),n.classList.add(...e.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r?.();i?.(n,()=>l());}),Ou(()=>{n.classList.remove(...e.enter),n.classList.add(...e.enterTo),(!i||i.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l));});function l(a){(!a||a.target===n)&&(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...e.enterActive),n.classList.remove(...e.enterTo),s?.(n));}}function Y2(e,t,n,r){let{onBeforeExit:o,onExit:i,onAfterExit:s}=t;if(!n.parentNode)return r?.();o?.(n),n.classList.add(...e.exit),n.classList.add(...e.exitActive),i?.(n,()=>l()),Ou(()=>{n.classList.remove(...e.exit),n.classList.add(...e.exitTo),(!i||i.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l));});function l(a){(!a||a.target===n)&&(r?.(),n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...e.exitActive),n.classList.remove(...e.exitTo),s?.(n));}}function Hc(e){for(let t of e)t.dispose();}function X2(e,t,n,r={}){if(tt){let s=e(),l=[];if(s&&s.length)for(let a=0,u=s.length;a<u;a++)l.push(n(()=>s[a],()=>a));else r.fallback&&(l=[r.fallback()]);return ()=>l}let o=new Map;return W(()=>Hc(o.values())),()=>{let s=e()||[];return s[co],$e(()=>{if(!s.length)return Hc(o.values()),o.clear(),r.fallback?[Wt(d=>(o.set(Bs,{dispose:d}),r.fallback()))]:[];let l=new Array(s.length),a=o.get(Bs);if(!o.size||a){a?.dispose(),o.delete(Bs);for(let c=0;c<s.length;c++){let d=s[c],p=t(d,c);i(l,d,c,p);}return l}let u=new Set(o.keys());for(let c=0;c<s.length;c++){let d=s[c],p=t(d,c);u.delete(p);let m=o.get(p);m?(l[c]=m.mapped,m.setIndex?.(c),m.setItem(()=>d)):i(l,d,c,p);}for(let c of u)o.get(c)?.dispose(),o.delete(c);return l})};function i(s,l,a,u){Wt(c=>{let[d,p]=q(l),m={setItem:p,dispose:c};if(n.length>1){let[f,g]=q(a);m.setIndex=g,m.mapped=n(d,f);}else m.mapped=n(d);o.set(u,m),s[a]=m.mapped;});}}function $i(e){let{by:t}=e;return F(X2(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Z2(e,t,n,r){return e.addEventListener(t,n,r),S2(e.removeEventListener.bind(e,t,n,r))}function J2(e,t,n,r){if(tt)return;let o=()=>{js(M(e)).forEach(i=>{i&&js(M(t)).forEach(s=>Z2(i,s,n,r));});};typeof e=="function"?j(o):G(o);}function em(e,t){if(tt)return {observe:Oc,unobserve:Oc};let n=new ResizeObserver(e);return W(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function Ru(e,t,n){if(tt)return;let r=new WeakMap,{observe:o,unobserve:i}=em(s=>{for(let l of s){let{contentRect:a,target:u}=l,c=Math.round(a.width),d=Math.round(a.height),p=r.get(u);(!p||p.width!==c||p.height!==d)&&(t(a,u,l),r.set(u,{width:c,height:d}));}},n);j(s=>{let l=b2(js(M(e)));return C2(l,s,o,i),l},[]);}function Qc(e){let t={},n;for(;n=tm.exec(e);)t[n[1]]=n[2];return t}function zi(e,t){if(typeof e=="string"){if(typeof t=="string")return `${e};${t}`;e=Qc(e);}else typeof t=="string"&&(t=Qc(t));return {...e,...t}}function nm(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function Xs(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rm(e){return typeof e=="number"}function fr(e){return Object.prototype.toString.call(e)==="[object String]"}function om(e){return typeof e=="function"}function Eo(e){return t=>`${e()}-${t}`}function $t(e,t){return e?e===t||e.contains(t):!1}function vo(e,t=!1){let{activeElement:n}=en(e);if(!n?.nodeName)return null;if(qu(n)&&n.contentDocument)return vo(n.contentDocument.body,t);if(t){let r=n.getAttribute("aria-activedescendant");if(r){let o=en(n).getElementById(r);if(o)return o}}return n}function im(e){return en(e).defaultView||window}function en(e){return e?e.ownerDocument||e:document}function qu(e){return e.tagName==="IFRAME"}function ca(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Vi(){return ca(/^Mac/i)}function sm(){return ca(/^iPhone/i)}function am(){return ca(/^iPad/i)||Vi()&&navigator.maxTouchPoints>1}function lm(){return sm()||am()}function cm(){return Vi()||lm()}function De(e,t){return t&&(om(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function We(e){return t=>{for(let n of e)De(t,n);}}function um(e){return Vi()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function rt(e){if(e)if(dm())e.focus({preventScroll:!0});else {let t=fm(e);e.focus(),pm(t);}}function dm(){if(Ei==null){Ei=!1;try{document.createElement("div").focus({get preventScroll(){return Ei=!0,!0}});}catch{}}return Ei}function fm(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function pm(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r;}function Vu(e,t){let r=Array.from(e.querySelectorAll(ua)).filter(jc);return t&&jc(e)&&r.unshift(e),r.forEach((o,i)=>{if(qu(o)&&o.contentDocument){let s=o.contentDocument.body,l=Vu(s,!1);r.splice(i,1,...l);}}),r}function jc(e){return Nu(e)&&!hm(e)}function Nu(e){return e.matches(ua)&&da(e)}function hm(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function da(e,t){return e.nodeName!=="#comment"&&ym(e)&&vm(e,t)&&(!e.parentElement||da(e.parentElement,e))}function ym(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return !1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;let{getComputedStyle:o}=e.ownerDocument.defaultView,{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse";}return r}function vm(e,t){return !e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function bm(e,t,n){let r=t?.tabbable?gm:ua,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){return t?.from?.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&da(i)&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function Wc(e){for(;e&&!xm(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function xm(e){let t=window.getComputedStyle(e);return /(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function wm(){}function Sm(e,t){let[n,r]=e,o=!1,i=t.length;for(let s=i,l=0,a=s-1;l<s;a=l++){let[u,c]=t[l],[d,p]=t[a],[,m]=t[a===0?s-1:a-1]||[0,0],f=(c-p)*(n-u)-(u-d)*(r-c);if(p<c){if(r>=p&&r<c){if(f===0)return !0;f>0&&(r===p?r>m&&(o=!o):o=!o);}}else if(c<p){if(r>c&&r<=p){if(f===0)return !0;f<0&&(r===p?r<m&&(o=!o):o=!o);}}else if(r==c&&(n>=d&&n<=u||n>=u&&n<=d))return !0}return o}function be(e,t){return re(e,t)}function Xc(){if(typeof window>"u")return;let e=n=>{if(!n.target)return;let r=mo.get(n.target);r||(r=new Set,mo.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName);},t=n=>{if(!n.target)return;let r=mo.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),mo.delete(n.target)),mo.size===0)){for(let o of Yc)o();Yc.clear();}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t);}function Zs(e,t){let n=Zc(e,t,"left"),r=Zc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,l=e.scrollTop,a=s+e.offsetWidth,u=l+e.offsetHeight;n<=s?s=n:n+o>a&&(s+=n+o-a),r<=l?l=r:r+i>u&&(l+=r+i-u),e.scrollLeft=s,e.scrollTop=l;}function Zc(e,t,n){let r=n==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent;}return o}function Cm(e,t){if(document.contains(e)){let n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let o=Wc(e);for(;e&&o&&e!==n&&o!==n;)Zs(o,e),e=o,o=Wc(e);}else {let{left:o,top:i}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:l}=e.getBoundingClientRect();(Math.abs(o-s)>1||Math.abs(i-l)>1)&&e.scrollIntoView?.({block:"nearest"});}}}function Mt(e){return t=>(e(t),()=>e(void 0))}function Ni(e,t){let[n,r]=q(Jc(t?.()));return j(()=>{r(e()?.tagName.toLowerCase()||Jc(t?.()));}),n}function Jc(e){return fr(e)?e:void 0}function Le(e){let[t,n]=Ce(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return x(gc,re(n,{get component(){return t.as}}))}function Im(e){let t=`form-control-${ht()}`,n=be({id:t},e),[r,o]=q(),[i,s]=q(),[l,a]=q(),[u,c]=q(),d=(g,v,h)=>{let y=h!=null||r()!=null;return [h,r(),y&&v!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[l(),u(),g].filter(Boolean).join(" ")||void 0,m=F(()=>({"data-valid":M(n.validationState)==="valid"?"":void 0,"data-invalid":M(n.validationState)==="invalid"?"":void 0,"data-required":M(n.required)?"":void 0,"data-disabled":M(n.disabled)?"":void 0,"data-readonly":M(n.readOnly)?"":void 0}));return {formControlContext:{name:()=>M(n.name)??M(n.id),dataset:m,validationState:()=>M(n.validationState),isRequired:()=>M(n.required),isDisabled:()=>M(n.disabled),isReadOnly:()=>M(n.readOnly),labelId:r,fieldId:i,descriptionId:l,errorMessageId:u,getAriaLabelledBy:d,getAriaDescribedBy:p,generateId:Eo(()=>M(n.id)),registerLabel:Mt(o),registerField:Mt(s),registerDescription:Mt(a),registerErrorMessage:Mt(c)}}}function Po(){let e=Ke(Bu);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Gu(e){let t=Po(),n=be({id:t.generateId("description")},e);return j(()=>W(t.registerDescription(n.id))),x(Le,re({as:"div"},()=>t.dataset(),n))}function Uu(e){let t=Po(),n=be({id:t.generateId("error-message")},e),[r,o]=Ce(n,["forceMount"]),i=()=>t.validationState()==="invalid";return j(()=>{i()&&W(t.registerErrorMessage(o.id));}),x(B,{get when(){return r.forceMount||i()},get children(){return x(Le,re({as:"div"},()=>t.dataset(),o))}})}function Em(e){let t,n=Po(),r=be({id:n.generateId("label")},e),[o,i]=Ce(r,["ref"]),s=Ni(()=>t,()=>"label");return j(()=>W(n.registerLabel(i.id))),x(Le,re({as:"label",ref(l){let a=st(u=>t=u,o.ref);typeof a=="function"&&a(l);},get for(){return ze(()=>s()==="label")()?n.fieldId():void 0}},()=>n.dataset(),i))}function Pm(e,t){j(Yt(e,n=>{if(n==null)return;let r=Tm(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),W(()=>{r.removeEventListener("reset",t);}));}));}function Tm(e){return $m(e)?e.form:e.closest("form")}function $m(e){return e.matches("textarea, input, select, button")}function To(e){let[t,n]=q(e.defaultValue?.()),r=F(()=>e.value?.()!==void 0),o=F(()=>r()?e.value?.():t());return [o,s=>{$e(()=>{let l=w2(s,o());return Object.is(l,o())||(r()||n(l),e.onChange?.(l)),l});}]}function Hu(e){let[t,n]=To(e);return [()=>t()??!1,n]}function Mm(e){let[t,n]=To(e);return [()=>t()??[],n]}function _m(e={}){let[t,n]=Hu({value:()=>M(e.isSelected),defaultValue:()=>!!M(e.defaultIsSelected),onChange:i=>e.onSelectedChange?.(i)});return {isSelected:t,setIsSelected:i=>{!M(e.isReadOnly)&&!M(e.isDisabled)&&n(i);},toggle:()=>{!M(e.isReadOnly)&&!M(e.isDisabled)&&n(!t());}}}function ju(){return Ke(Qu)}function Dm(){let e=ju();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Wu(e,t){return !!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Lm(e,t){let n=t.ref();if(!n)return -1;let r=e.length;if(!r)return -1;for(;r--;){let o=e[r]?.ref();if(o&&Wu(o,n))return r+1}return 0}function Am(e){let t=e.map((r,o)=>[o,r]),n=!1;return t.sort(([r,o],[i,s])=>{let l=o.ref(),a=s.ref();return l===a||!l||!a?0:Wu(l,a)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function Yu(e,t){let n=Am(e);e!==n&&t(n);}function Om(e){let t=e[0],n=e[e.length-1]?.ref(),r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement;}return en(r).body}function Rm(e,t){j(()=>{let n=setTimeout(()=>{Yu(e(),t);});W(()=>clearTimeout(n));});}function qm(e,t){if(typeof IntersectionObserver!="function"){Rm(e,t);return}let n=[];j(()=>{let r=()=>{let s=!!n.length;n=e(),s&&Yu(e(),t);},o=Om(e()),i=new IntersectionObserver(r,{root:o});for(let s of e()){let l=s.ref();l&&i.observe(l);}W(()=>i.disconnect());});}function zm(e={}){let[t,n]=Mm({value:()=>M(e.items),onChange:i=>e.onItemsChange?.(i)});qm(t,n);let r=i=>(n(s=>{let l=Lm(s,i);return nm(s,i,l)}),()=>{n(s=>{let l=s.filter(a=>a.ref()!==i.ref());return s.length===l.length?s:l});});return {DomCollectionProvider:i=>x(Qu.Provider,{value:{registerItem:r},get children(){return i.children}})}}function Vm(e){let t=Dm(),n=be({shouldRegisterItem:!0},e);j(()=>{if(!n.shouldRegisterItem)return;let r=t.registerItem(n.getItem());W(r);});}function Xu(e){let t=e.startIndex??0,n=e.startLevel??0,r=[],o=a=>{if(a==null)return "";let u=e.getKey??"key",c=fr(u)?a[u]:u(a);return c!=null?String(c):""},i=a=>{if(a==null)return "";let u=e.getTextValue??"textValue",c=fr(u)?a[u]:u(a);return c!=null?String(c):""},s=a=>{if(a==null)return !1;let u=e.getDisabled??"disabled";return (fr(u)?a[u]:u(a))??!1},l=a=>{if(a!=null)return fr(e.getSectionChildren)?a[e.getSectionChildren]:e.getSectionChildren?.(a)};for(let a of e.dataSource){if(fr(a)||rm(a)){r.push({type:"item",rawValue:a,key:String(a),textValue:String(a),disabled:s(a),level:n,index:t}),t++;continue}if(l(a)!=null){r.push({type:"section",rawValue:a,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;let u=l(a)??[];if(u.length>0){let c=Xu({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...c),t+=c.length;}}else r.push({type:"item",rawValue:a,key:o(a),textValue:i(a),disabled:s(a),level:n,index:t}),t++;}return r}function Nm(e,t=[]){return F(()=>{let n=Xu({dataSource:M(e.dataSource),getKey:M(e.getKey),getTextValue:M(e.getTextValue),getDisabled:M(e.getDisabled),getSectionChildren:M(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}function Gm(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script??"";return Km.has(n)}let t=e.split("-")[0];return Bm.has(t)}function Um(e){return Gm(e)?"rtl":"ltr"}function Zu(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return {locale:e,direction:Um(e)}}function eu(){Js=Zu();for(let e of bo)e(Js);}function Hm(){let e={locale:"en-US",direction:"ltr"},[t,n]=q(Js),r=F(()=>tt?e:t());return Xt(()=>{bo.size===0&&window.addEventListener("languagechange",eu),bo.add(n),W(()=>{bo.delete(n),bo.size===0&&window.removeEventListener("languagechange",eu);});}),{locale:()=>r().locale,direction:()=>r().direction}}function Fn(){let e=Hm();return Ke(Qm)||e}function jm(e){let{locale:t}=Fn(),n=F(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return F(()=>{let r=n(),o;return Gs.has(r)&&(o=Gs.get(r)),o||(o=new Intl.Collator(t(),e),Gs.set(r,o)),o})}function Wm(e){let[t,n]=To(e);return [()=>t()??new dn,n]}function ed(e){return cm()?e.altKey:e.ctrlKey}function pr(e){return Vi()?e.metaKey:e.ctrlKey}function tu(e){return new dn(e)}function Ym(e,t){if(e.size!==t.size)return !1;for(let n of e)if(!t.has(n))return !1;return !0}function Xm(e){let t=be({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=q(!1),[o,i]=q(),s=F(()=>{let g=M(t.selectedKeys);return g!=null?tu(g):g}),l=F(()=>{let g=M(t.defaultSelectedKeys);return g!=null?tu(g):new dn}),[a,u]=Wm({value:s,defaultValue:l,onChange:g=>t.onSelectionChange?.(g)}),[c,d]=q(M(t.selectionBehavior)),p=()=>M(t.selectionMode),m=()=>M(t.disallowEmptySelection)??!1,f=g=>{(M(t.allowDuplicateSelectionEvents)||!Ym(g,a()))&&u(g);};return j(()=>{let g=a();M(t.selectionBehavior)==="replace"&&c()==="toggle"&&typeof g=="object"&&g.size===0&&d("replace");}),j(()=>{d(M(t.selectionBehavior)??"toggle");}),{selectionMode:p,disallowEmptySelection:m,selectionBehavior:c,setSelectionBehavior:d,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:a,setSelectedKeys:f}}function Zm(e){let[t,n]=q(""),[r,o]=q(-1);return {typeSelectHandlers:{onKeyDown:s=>{if(M(e.isDisabled))return;let l=M(e.keyboardDelegate),a=M(e.selectionManager);if(!l.getKeyForSearch)return;let u=Jm(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let c=n(p=>p+u),d=l.getKeyForSearch(c,a.focusedKey())??l.getKeyForSearch(c);d==null&&eg(c)&&(c=c[0],d=l.getKeyForSearch(c,a.focusedKey())??l.getKeyForSearch(c)),d!=null&&(a.setFocusedKey(d),e.onTypeSelect?.(d)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500));}}}}function Jm(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function eg(e){return e.split("").every(t=>t===e[0])}function tg(e,t,n){let o=re({selectOnFocus:()=>M(e.selectionManager).selectionBehavior()==="replace"},e),i=()=>t(),{direction:s}=Fn(),l={top:0,left:0};J2(()=>M(o.isVirtualized)?void 0:i(),"scroll",()=>{let v=i();v&&(l={top:v.scrollTop,left:v.scrollLeft});});let{typeSelectHandlers:a}=Zm({isDisabled:()=>M(o.disallowTypeAhead),keyboardDelegate:()=>M(o.keyboardDelegate),selectionManager:()=>M(o.selectionManager)}),u=()=>M(o.orientation)??"vertical",c=v=>{De(v,a.onKeyDown),v.altKey&&v.key==="Tab"&&v.preventDefault();let h=t();if(!h?.contains(v.target))return;let y=M(o.selectionManager),b=M(o.selectOnFocus),w=E=>{E!=null&&(y.setFocusedKey(E),v.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):b&&!ed(v)&&y.replaceSelection(E));},S=M(o.keyboardDelegate),C=M(o.shouldFocusWrap),k=y.focusedKey();switch(v.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(S.getKeyBelow){v.preventDefault();let E;k!=null?E=S.getKeyBelow(k):E=S.getFirstKey?.(),E==null&&C&&(E=S.getFirstKey?.(k)),w(E);}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(S.getKeyAbove){v.preventDefault();let E;k!=null?E=S.getKeyAbove(k):E=S.getLastKey?.(),E==null&&C&&(E=S.getLastKey?.(k)),w(E);}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(S.getKeyLeftOf){v.preventDefault();let E=s()==="rtl",I;k!=null?I=S.getKeyLeftOf(k):I=E?S.getFirstKey?.():S.getLastKey?.(),w(I);}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(S.getKeyRightOf){v.preventDefault();let E=s()==="rtl",I;k!=null?I=S.getKeyRightOf(k):I=E?S.getLastKey?.():S.getFirstKey?.(),w(I);}break}case"Home":if(S.getFirstKey){v.preventDefault();let E=S.getFirstKey(k,pr(v));E!=null&&(y.setFocusedKey(E),pr(v)&&v.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):b&&y.replaceSelection(E));}break;case"End":if(S.getLastKey){v.preventDefault();let E=S.getLastKey(k,pr(v));E!=null&&(y.setFocusedKey(E),pr(v)&&v.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):b&&y.replaceSelection(E));}break;case"PageDown":if(S.getKeyPageBelow&&k!=null){v.preventDefault();let E=S.getKeyPageBelow(k);w(E);}break;case"PageUp":if(S.getKeyPageAbove&&k!=null){v.preventDefault();let E=S.getKeyPageAbove(k);w(E);}break;case"a":pr(v)&&y.selectionMode()==="multiple"&&M(o.disallowSelectAll)!==!0&&(v.preventDefault(),y.selectAll());break;case"Escape":v.defaultPrevented||(v.preventDefault(),M(o.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!M(o.allowsTabNavigation)){if(v.shiftKey)h.focus();else {let E=bm(h,{tabbable:!0}),I,P;do P=E.lastChild(),P&&(I=P);while(P);I&&!I.contains(document.activeElement)&&rt(I);}break}}},d=v=>{let h=M(o.selectionManager),y=M(o.keyboardDelegate),b=M(o.selectOnFocus);if(h.isFocused()){v.currentTarget.contains(v.target)||h.setFocused(!1);return}if(v.currentTarget.contains(v.target)){if(h.setFocused(!0),h.focusedKey()==null){let w=C=>{C!=null&&(h.setFocusedKey(C),b&&h.replaceSelection(C));},S=v.relatedTarget;S&&v.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?w(h.lastSelectedKey()??y.getLastKey?.()):w(h.firstSelectedKey()??y.getFirstKey?.());}else if(!M(o.isVirtualized)){let w=i();if(w){w.scrollTop=l.top,w.scrollLeft=l.left;let S=w.querySelector(`[data-key="${h.focusedKey()}"]`);S&&(rt(S),Zs(w,S));}}}},p=v=>{let h=M(o.selectionManager);v.currentTarget.contains(v.relatedTarget)||h.setFocused(!1);},m=v=>{i()===v.target&&v.preventDefault();},f=()=>{let v=M(o.autoFocus);if(!v)return;let h=M(o.selectionManager),y=M(o.keyboardDelegate),b;v==="first"&&(b=y.getFirstKey?.()),v==="last"&&(b=y.getLastKey?.());let w=h.selectedKeys();w.size&&(b=w.values().next().value),h.setFocused(!0),h.setFocusedKey(b);let S=t();S&&b==null&&!M(o.shouldUseVirtualFocus)&&rt(S);};return Xt(()=>{o.deferAutoFocus?setTimeout(f,0):f();}),j(Yt([i,()=>M(o.isVirtualized),()=>M(o.selectionManager).focusedKey()],v=>{let[h,y,b]=v;if(y)b&&o.scrollToKey?.(b);else if(b&&h){let w=h.querySelector(`[data-key="${b}"]`);w&&Zs(h,w);}})),{tabIndex:F(()=>{if(!M(o.shouldUseVirtualFocus))return M(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:c,onMouseDown:m,onFocusIn:d,onFocusOut:p}}function td(e,t){let n=()=>M(e.selectionManager),r=()=>M(e.key),o=()=>M(e.shouldUseVirtualFocus),i=y=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):y?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||pr(y)||"pointerType"in y&&y.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()));},s=()=>n().isSelected(r()),l=()=>M(e.disabled)||n().isDisabled(r()),a=()=>!l()&&n().canSelectItem(r()),u=null,c=y=>{a()&&(u=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!M(e.shouldSelectOnPressUp)&&i(y));},d=y=>{a()&&y.pointerType==="mouse"&&y.button===0&&M(e.shouldSelectOnPressUp)&&M(e.allowsDifferentPressOrigin)&&i(y);},p=y=>{a()&&(M(e.shouldSelectOnPressUp)&&!M(e.allowsDifferentPressOrigin)||u!=="mouse")&&i(y);},m=y=>{!a()||!["Enter"," "].includes(y.key)||(ed(y)?n().toggleSelection(r()):i(y));},f=y=>{l()&&y.preventDefault();},g=y=>{let b=t();o()||l()||!b||y.target===b&&n().setFocusedKey(r());},v=F(()=>{if(!(o()||l()))return r()===n().focusedKey()?0:-1}),h=F(()=>M(e.virtualized)?void 0:r());return j(Yt([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([y,b,w,S,C])=>{y&&b===S&&C&&!w&&document.activeElement!==y&&(e.focus?e.focus():rt(y));})),{isSelected:s,isDisabled:l,allowsSelection:a,tabIndex:v,dataKey:h,onPointerDown:c,onPointerUp:d,onClick:p,onKeyDown:m,onMouseDown:f,onFocus:g}}function rg(e){let t=Xm(e),r=Nm({dataSource:()=>M(e.dataSource),getKey:()=>M(e.getKey),getTextValue:()=>M(e.getTextValue),getDisabled:()=>M(e.getDisabled),getSectionChildren:()=>M(e.getSectionChildren),factory:i=>e.filter?new nu(e.filter(i)):new nu(i)},[()=>e.filter]),o=new ng(r,t);return mi(()=>{let i=t.focusedKey();i!=null&&!r().getItem(i)&&t.setFocusedKey(void 0);}),{collection:r,selectionManager:()=>o}}function xo(e){return pn.findIndex(t=>t.node===e)}function sg(e){return pn[xo(e)]}function ag(e){return pn[pn.length-1].node===e}function od(){return pn.filter(e=>e.isPointerBlocking)}function lg(){return [...od()].slice(-1)[0]}function fa(){return od().length>0}function id(e){let t=xo(lg()?.node);return xo(e)<t}function cg(e){pn.push(e);}function ug(e){let t=xo(e);t<0||pn.splice(t,1);}function dg(){for(let{node:e}of pn)e.style.pointerEvents=id(e)?"none":"auto";}function fg(e){if(fa()&&!ea){let t=en(e);rd=document.body.style.pointerEvents,t.body.style.pointerEvents="none",ea=!0;}}function pg(e){if(fa())return;let t=en(e);t.body.style.pointerEvents=rd,t.body.style.length===0&&t.body.removeAttribute("style"),ea=!1;}function hg(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?gg.indexOf(e.type)!==-1:!1}function pa(e){let t,n=be({type:"button"},e),[r,o]=Ce(n,["ref","type","disabled"]),i=Ni(()=>t,()=>"button"),s=F(()=>{let u=i();return u==null?!1:hg({tagName:u,type:r.type})}),l=F(()=>i()==="input"),a=F(()=>i()==="a"&&t?.getAttribute("href")!=null);return x(Le,re({as:"button",ref(u){let c=st(d=>t=d,r.ref);typeof c=="function"&&c(u);},get type(){return s()||l()?r.type:void 0},get role(){return !s()&&!a()?"button":void 0},get tabIndex(){return !s()&&!a()&&!r.disabled?0:void 0},get disabled(){return s()||l()?r.disabled:void 0},get"aria-disabled"(){return !s()&&!l()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}function ta(e,t,n){return bt(e,Jt(t,n))}function jn(e,t){return typeof e=="function"?e(t):e}function Mn(e){return e.split("-")[0]}function yr(e){return e.split("-")[1]}function sd(e){return e==="x"?"y":"x"}function ma(e){return e==="y"?"height":"width"}function Hn(e){return ["top","bottom"].includes(Mn(e))?"y":"x"}function ga(e){return sd(Hn(e))}function wg(e,t,n){n===void 0&&(n=!1);let r=yr(e),o=ga(e),i=ma(o),s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Fi(s)),[s,Fi(s)]}function Sg(e){let t=Fi(e);return [na(e),t,na(t)]}function na(e){return e.replace(/start|end/g,t=>xg[t])}function Cg(e,t,n){let r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return []}}function kg(e,t,n,r){let o=yr(e),i=Cg(Mn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(na)))),i}function Fi(e){return e.replace(/left|right|bottom|top/g,t=>bg[t])}function Ig(e){return {top:0,right:0,bottom:0,left:0,...e}}function ad(e){return typeof e!="number"?Ig(e):{top:e,right:e,bottom:e,left:e}}function Di(e){let{x:t,y:n,width:r,height:o}=e;return {width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ru(e,t,n){let{reference:r,floating:o}=e,i=Hn(t),s=ga(t),l=ma(s),a=Mn(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2,m;switch(a){case"top":m={x:c,y:r.y-o.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y};}switch(yr(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}async function wo(e,t){var n;t===void 0&&(t={});let{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=jn(t,e),f=ad(m),v=l[p?d==="floating"?"reference":"floating":d],h=Di(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),y=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Di(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:a}):y);return {top:(h.top-S.top+f.top)/w.y,bottom:(S.bottom-h.bottom+f.bottom)/w.y,left:(h.left-S.left+f.left)/w.x,right:(S.right-h.right+f.right)/w.x}}function ou(e,t){return {top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function iu(e){return vg.some(t=>e[t]>=0)}async function Mg(e,t){let{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Mn(n),l=yr(n),a=Hn(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&a?-1:1,d=jn(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof f=="number"&&(m=l==="end"?f*-1:f),a?{x:m*c,y:p*u}:{x:p*u,y:m*c}}function vr(e){return ld(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return (e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mn(e){var t;return (t=(ld(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ld(e){return e instanceof Node||e instanceof xt(e).Node}function zt(e){return e instanceof Element||e instanceof xt(e).Element}function tn(e){return e instanceof HTMLElement||e instanceof xt(e).HTMLElement}function su(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot}function $o(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=Vt(e);return /auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Lg(e){return ["table","td","th"].includes(vr(e))}function Bi(e){return [":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return !1}})}function ha(e){let t=ya(),n=zt(e)?Vt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ag(e){let t=_n(e);for(;tn(t)&&!hr(t);){if(ha(t))return t;if(Bi(t))return null;t=_n(t);}return null}function ya(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hr(e){return ["html","body","#document"].includes(vr(e))}function Vt(e){return xt(e).getComputedStyle(e)}function Gi(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _n(e){if(vr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||su(e)&&e.host||mn(e);return su(t)?t.host:t}function cd(e){let t=_n(e);return hr(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&$o(t)?t:cd(t)}function So(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let o=cd(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=xt(o);return i?t.concat(s,s.visualViewport||[],$o(o)?o:[],s.frameElement&&n?So(s.frameElement):[]):t.concat(o,So(o,[],n))}function ud(e){let t=Vt(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=tn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=_i(n)!==i||_i(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function va(e){return zt(e)?e:e.contextElement}function gr(e){let t=va(e);if(!tn(t))return $n(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ud(t),s=(i?_i(n.width):n.width)/r,l=(i?_i(n.height):n.height)/o;return (!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function dd(e){let t=xt(e);return !ya()||!t.visualViewport?Og:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xt(e)?!1:t}function Qn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let o=e.getBoundingClientRect(),i=va(e),s=$n(1);t&&(r?zt(r)&&(s=gr(r)):s=gr(e));let l=Rg(i,n,r)?dd(i):$n(0),a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){let p=xt(i),m=r&&zt(r)?xt(r):r,f=p,g=f.frameElement;for(;g&&r&&m!==f;){let v=gr(g),h=g.getBoundingClientRect(),y=Vt(g),b=h.left+(g.clientLeft+parseFloat(y.paddingLeft))*v.x,w=h.top+(g.clientTop+parseFloat(y.paddingTop))*v.y;a*=v.x,u*=v.y,c*=v.x,d*=v.y,a+=b,u+=w,f=xt(g),g=f.frameElement;}}return Di({width:c,height:d,x:a,y:u})}function qg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i=o==="fixed",s=mn(r),l=t?Bi(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=$n(1),c=$n(0),d=tn(r);if((d||!d&&!i)&&((vr(r)!=="body"||$o(s))&&(a=Gi(r)),tn(r))){let p=Qn(r);u=gr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop;}return {width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function zg(e){return Array.from(e.getClientRects())}function fd(e){return Qn(mn(e)).left+Gi(e).scrollLeft}function Vg(e){let t=mn(e),n=Gi(e),r=e.ownerDocument.body,o=bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+fd(e),l=-n.scrollTop;return Vt(r).direction==="rtl"&&(s+=bt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Ng(e,t){let n=xt(e),r=mn(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;let u=ya();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop);}return {width:i,height:s,x:l,y:a}}function Kg(e,t){let n=Qn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=tn(e)?gr(e):$n(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return {width:s,height:l,x:a,y:u}}function au(e,t,n){let r;if(t==="viewport")r=Ng(e,n);else if(t==="document")r=Vg(mn(e));else if(zt(t))r=Kg(t,n);else {let o=dd(e);r={...t,x:t.x-o.x,y:t.y-o.y};}return Di(r)}function pd(e,t){let n=_n(e);return n===t||!zt(n)||hr(n)?!1:Vt(n).position==="fixed"||pd(n,t)}function Bg(e,t){let n=t.get(e);if(n)return n;let r=So(e,[],!1).filter(l=>zt(l)&&vr(l)!=="body"),o=null,i=Vt(e).position==="fixed",s=i?_n(e):e;for(;zt(s)&&!hr(s);){let l=Vt(s),a=ha(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||$o(s)&&!a&&pd(e,s))?r=r.filter(c=>c!==s):o=l,s=_n(s);}return t.set(e,r),r}function Gg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,s=[...n==="clippingAncestors"?Bi(t)?[]:Bg(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{let d=au(t,c,o);return u.top=bt(d.top,u.top),u.right=Jt(d.right,u.right),u.bottom=Jt(d.bottom,u.bottom),u.left=bt(d.left,u.left),u},au(t,l,o));return {width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Ug(e){let{width:t,height:n}=ud(e);return {width:t,height:n}}function Hg(e,t,n){let r=tn(t),o=mn(t),i=n==="fixed",s=Qn(e,!0,i,t),l={scrollLeft:0,scrollTop:0},a=$n(0);if(r||!r&&!i)if((vr(t)!=="body"||$o(o))&&(l=Gi(t)),r){let d=Qn(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop;}else o&&(a.x=fd(o));let u=s.left+l.scrollLeft-a.x,c=s.top+l.scrollTop-a.y;return {x:u,y:c,width:s.width,height:s.height}}function Us(e){return Vt(e).position==="static"}function lu(e,t){return !tn(e)||Vt(e).position==="fixed"?null:t?t(e):e.offsetParent}function md(e,t){let n=xt(e);if(Bi(e))return n;if(!tn(e)){let o=_n(e);for(;o&&!hr(o);){if(zt(o)&&!Us(o))return o;o=_n(o);}return n}let r=lu(e,t);for(;r&&Lg(r)&&Us(r);)r=lu(r,t);return r&&hr(r)&&Us(r)&&!ha(r)?n:r||Ag(e)||n}function jg(e){return Vt(e).direction==="rtl"}function Wg(e,t){let n=null,r,o=mn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null;}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();let{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;let m=Pi(c),f=Pi(o.clientWidth-(u+d)),g=Pi(o.clientHeight-(c+p)),v=Pi(u),y={rootMargin:-m+"px "+-f+"px "+-g+"px "+-v+"px",threshold:bt(0,Jt(1,a))||1},b=!0;function w(S){let C=S[0].intersectionRatio;if(C!==a){if(!b)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7);},1e3);}b=!1;}try{n=new IntersectionObserver(w,{...y,root:o.ownerDocument});}catch{n=new IntersectionObserver(w,y);}n.observe(e);}return s(!0),i}function Yg(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=va(e),c=o||i?[...u?So(u):[],...So(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n);});let d=u&&l?Wg(u,n):null,p=-1,m=null;s&&(m=new ResizeObserver(h=>{let[y]=h;y&&y.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t);})),n();}),u&&!a&&m.observe(u),m.observe(t));let f,g=a?Qn(e):null;a&&v();function v(){let h=Qn(e);g&&(h.x!==g.x||h.y!==g.y||h.width!==g.width||h.height!==g.height)&&n(),g=h,f=requestAnimationFrame(v);}return n(),()=>{var h;c.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n);}),d?.(),(h=m)==null||h.disconnect(),m=null,a&&cancelAnimationFrame(f);}}function xa(){let e=Ke(ba);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function wa(e){let t=xa(),n=be({size:ra},e),[r,o]=Ce(n,["ref","style","size"]),i=()=>t.currentPlacement().split("-")[0],s=sh(t.contentRef),l=()=>s()?.getPropertyValue("background-color")||"none",a=()=>s()?.getPropertyValue(`border-${i()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${i()}-width`)||"0px",c=()=>Number.parseInt(u())*2*(ra/r.size),d=()=>`rotate(${ih[i()]} ${cu} ${cu}) translate(0 2)`;return x(Le,re({as:"div",ref(p){let m=st(t.setArrowRef,r.ref);typeof m=="function"&&m(p);},"aria-hidden":"true",get style(){return zi({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:l(),stroke:a(),"stroke-width":c()},r.style)}},o,{get children(){let p=oh(),m=p.firstChild;return G(()=>D(m,"transform",d())),p}}))}function sh(e){let[t,n]=q();return j(()=>{let r=e();r&&n(im(r).getComputedStyle(r));}),t}function ah(e){let t=xa(),[n,r]=Ce(e,["ref","style"]);return x(Le,re({as:"div",ref(o){let i=st(t.setPositionerRef,n.ref);typeof i=="function"&&i(o);},"data-popper-positioner":"",get style(){return zi({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function uu(e){let{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);let i={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return {...i,toJSON:()=>i}}function lh(e,t){return {contextElement:e,getBoundingClientRect:()=>{let r=t(e);return r?uu(r):e?e.getBoundingClientRect():uu()}}}function ch(e){return /^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function dh(e,t){let[n,r]=e.split("-"),o=uh[n];return r?n==="left"||n==="right"?`${o} ${r==="start"?"top":"bottom"}`:r==="start"?`${o} ${t==="rtl"?"right":"left"}`:`${o} ${t==="rtl"?"left":"right"}`:`${o} center`}function fh(e){let t=be({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),[n,r]=q(),[o,i]=q(),[s,l]=q(t.placement),a=()=>lh(t.anchorRef?.(),t.getAnchorRect),{direction:u}=Fn();async function c(){let p=a(),m=n(),f=o();if(!p||!m)return;let g=(f?.clientHeight||0)/2,v=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;m.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let h=[Xg(({placement:C})=>{let k=!!C.split("-")[1];return {mainAxis:v,crossAxis:k?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let C=typeof t.flip=="string"?t.flip.split(" "):void 0;if(C!==void 0&&!C.every(ch))throw new Error("`flip` expects a spaced-delimited list of placements");h.push(Jg({padding:t.overflowPadding,fallbackPlacements:C}));}(t.slide||t.overlap)&&h.push(Zg({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),h.push(eh({padding:t.overflowPadding,apply({availableWidth:C,availableHeight:k,rects:E}){let I=Math.round(E.reference.width);C=Math.floor(C),k=Math.floor(k),m.style.setProperty("--kb-popper-anchor-width",`${I}px`),m.style.setProperty("--kb-popper-content-available-width",`${C}px`),m.style.setProperty("--kb-popper-content-available-height",`${k}px`),t.sameWidth&&(m.style.width=`${I}px`),t.fitViewport&&(m.style.maxWidth=`${C}px`,m.style.maxHeight=`${k}px`);}})),t.hideWhenDetached&&h.push(th({padding:t.detachedPadding})),f&&h.push(nh({element:f,padding:t.arrowPadding}));let y=await rh(p,m,{placement:t.placement,strategy:"absolute",middleware:h,platform:{...gd,isRTL:()=>u()==="rtl"}});if(l(y.placement),t.onCurrentPlacementChange?.(y.placement),!m)return;m.style.setProperty("--kb-popper-content-transform-origin",dh(y.placement,u()));let b=Math.round(y.x),w=Math.round(y.y),S;if(t.hideWhenDetached&&(S=y.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(m.style,{top:"0",left:"0",transform:`translate3d(${b}px, ${w}px, 0)`,visibility:S}),f&&y.middlewareData.arrow){let{x:C,y:k}=y.middlewareData.arrow,E=y.placement.split("-")[0];Object.assign(f.style,{left:C!=null?`${C}px`:"",top:k!=null?`${k}px`:"",[E]:"100%"});}}j(()=>{let p=a(),m=n();if(!p||!m)return;let f=Yg(p,m,c,{elementResize:typeof ResizeObserver=="function"});W(f);}),j(()=>{let p=n(),m=t.contentRef?.();!p||!m||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(m).zIndex;});});let d={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:i};return x(ba.Provider,{value:d,get children(){return t.children}})}function ph(e){let t=n=>{n.key===la.Escape&&e.onEscapeKeyDown?.(n);};j(()=>{if(tt||M(e.isDisabled))return;let n=e.ownerDocument?.()??en();n.addEventListener("keydown",t),W(()=>{n.removeEventListener("keydown",t);});});}function mh(e,t){let n,r=wm,o=()=>en(t()),i=d=>e.onPointerDownOutside?.(d),s=d=>e.onFocusOutside?.(d),l=d=>e.onInteractOutside?.(d),a=d=>{let p=d.target;return !(p instanceof HTMLElement)||p.closest(`[${Mi}]`)||!$t(o(),p)||$t(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=d=>{function p(){let m=t(),f=d.target;if(!m||!f||!a(d))return;let g=We([i,l]);f.addEventListener(du,g,{once:!0});let v=new CustomEvent(du,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:d.button===2||um(d)&&d.button===0}});f.dispatchEvent(v);}d.pointerType==="touch"?(o().removeEventListener("click",p),r=p,o().addEventListener("click",p,{once:!0})):p();},c=d=>{let p=t(),m=d.target;if(!p||!m||!a(d))return;let f=We([s,l]);m.addEventListener(fu,f,{once:!0});let g=new CustomEvent(fu,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:!1}});m.dispatchEvent(g);};j(()=>{tt||M(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",u,!0);},0),o().addEventListener("focusin",c,!0),W(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",u,!0),o().removeEventListener("focusin",c,!0);}));});}function gh(){return Ke(yd)}function hh(e){let t,n=gh(),[r,o]=Ce(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),i=new Set([]),s=d=>{i.add(d);let p=n?.registerNestedLayer(d);return ()=>{i.delete(d),p?.();}};mh({shouldExcludeElement:d=>t?r.excludedElements?.some(p=>$t(p(),d))||[...i].some(p=>$t(p,d)):!1,onPointerDownOutside:d=>{!t||yt.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!yt.isTopMostLayer(t)||(r.onPointerDownOutside?.(d),r.onInteractOutside?.(d),d.defaultPrevented||r.onDismiss?.());},onFocusOutside:d=>{r.onFocusOutside?.(d),r.onInteractOutside?.(d),d.defaultPrevented||r.onDismiss?.();}},()=>t),ph({ownerDocument:()=>en(t),onEscapeKeyDown:d=>{!t||!yt.isTopMostLayer(t)||(r.onEscapeKeyDown?.(d),!d.defaultPrevented&&r.onDismiss&&(d.preventDefault(),r.onDismiss()));}}),Xt(()=>{if(!t)return;yt.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let d=n?.registerNestedLayer(t);yt.assignPointerEventToLayers(),yt.disableBodyPointerEvents(t),W(()=>{t&&(yt.removeLayer(t),d?.(),yt.assignPointerEventToLayers(),yt.restoreBodyPointerEvents(t));});}),j(Yt([()=>t,()=>r.disableOutsidePointerEvents],([d,p])=>{if(!d)return;let m=yt.find(d);m&&m.isPointerBlocking!==p&&(m.isPointerBlocking=p,yt.assignPointerEventToLayers()),p&&yt.disableBodyPointerEvents(d),W(()=>{yt.restoreBodyPointerEvents(d);});},{defer:!0}));let c={registerNestedLayer:s};return x(yd.Provider,{value:c,get children(){return x(Le,re({as:"div",ref(d){let p=st(m=>t=m,r.ref);typeof p=="function"&&p(d);}},o))}})}function vd(e={}){let[t,n]=Hu({value:()=>M(e.open),defaultValue:()=>!!M(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),r=()=>{n(!0);},o=()=>{n(!1);};return {isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r();}}}function xd(){let e=Ke(bd);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Mo(){let e=Ke(wd);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Sd(e){let t=Po(),n=xd(),r=`${t.generateId("item")}-${ht()}`,o=be({id:r},e),[i,s]=Ce(o,["value","disabled","onPointerDown"]),[l,a]=q(),[u,c]=q(),[d,p]=q(),[m,f]=q(),[g,v]=q(!1),h=F(()=>n.isSelectedValue(i.value)),y=F(()=>i.disabled||t.isDisabled()||!1),b=C=>{De(C,i.onPointerDown),g()&&C.preventDefault();},w=F(()=>({...t.dataset(),"data-disabled":y()?"":void 0,"data-checked":h()?"":void 0})),S={value:()=>i.value,dataset:w,isSelected:h,isDisabled:y,inputId:l,labelId:u,descriptionId:d,inputRef:m,select:()=>n.setSelectedValue(i.value),generateId:Eo(()=>s.id),registerInput:Mt(a),registerLabel:Mt(c),registerDescription:Mt(p),setIsFocused:v,setInputRef:f};return x(wd.Provider,{value:S,get children(){return x(Le,re({as:"div",role:"group",onPointerDown:b},w,s))}})}function Cd(e){let t=Mo(),n=be({id:t.generateId("control")},e),[r,o]=Ce(n,["onClick","onKeyDown"]);return x(Le,re({as:"div",onClick:l=>{De(l,r.onClick),t.select(),t.inputRef()?.focus();},onKeyDown:l=>{De(l,r.onKeyDown),l.key===la.Space&&(t.select(),t.inputRef()?.focus());}},()=>t.dataset(),o))}function kd(e){let t=Mo(),n=be({id:t.generateId("description")},e);return j(()=>W(t.registerDescription(n.id))),x(Le,re({as:"div"},()=>t.dataset(),n))}function Id(e){let t=Mo(),n=be({id:t.generateId("indicator")},e),[r,o]=Ce(n,["ref","forceMount"]),[i,s]=q(),{present:l}=nd({show:()=>r.forceMount||t.isSelected(),element:()=>i()??null});return x(B,{get when(){return l()},get children(){return x(Le,re({as:"div",ref(a){let u=st(s,r.ref);typeof u=="function"&&u(a);}},()=>t.dataset(),o))}})}function Ed(e){let t=Po(),n=xd(),r=Mo(),o=be({id:r.generateId("input")},e),[i,s]=Ce(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),l=()=>[i["aria-labelledby"],r.labelId(),i["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,a=()=>[i["aria-describedby"],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[u,c]=q(!1),d=f=>{if(De(f,i.onChange),f.stopPropagation(),!u()){n.setSelectedValue(r.value());let g=f.target;g.checked=r.isSelected();}c(!1);},p=f=>{De(f,i.onFocus),r.setIsFocused(!0);},m=f=>{De(f,i.onBlur),r.setIsFocused(!1);};return j(Yt([()=>r.isSelected(),()=>r.value()],f=>{if(!f[0]&&f[1]===r.value())return;c(!0);let g=r.inputRef();g?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),g?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}));},{defer:!0})),j(()=>W(r.registerInput(s.id))),x(Le,re({as:"input",ref(f){let g=st(r.setInputRef,i.ref);typeof g=="function"&&g(f);},type:"radio",get name(){return t.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return t.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return zi({...Ku},i.style)},get"aria-labelledby"(){return l()},get"aria-describedby"(){return a()},onChange:d,onFocus:p,onBlur:m},()=>r.dataset(),s))}function Pd(e){let t=Mo(),n=be({id:t.generateId("label")},e);return j(()=>W(t.registerLabel(n.id))),x(Le,re({as:"label",get for(){return t.inputId()}},()=>t.dataset(),n))}function Td(e){return x(Em,re({as:"span"},e))}function $d(e){let t,n=`radiogroup-${ht()}`,r=be({id:n,orientation:"vertical"},e),[o,i,s]=Ce(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],km),[l,a]=To({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:f=>o.onChange?.(f)}),{formControlContext:u}=Im(i);Pm(()=>t,()=>a(o.defaultValue??""));let c=()=>u.getAriaLabelledBy(M(i.id),s["aria-label"],o["aria-labelledby"]),d=()=>u.getAriaDescribedBy(o["aria-describedby"]),p=f=>f===l(),m={ariaDescribedBy:d,isSelectedValue:p,setSelectedValue:f=>{if(!(u.isReadOnly()||u.isDisabled())&&(a(f),t))for(let g of t.querySelectorAll("[type='radio']")){let v=g;v.checked=p(v.value);}}};return x(Bu.Provider,{value:u,get children(){return x(bd.Provider,{value:m,get children(){return x(Le,re({as:"div",ref(f){let g=st(v=>t=v,o.ref);typeof g=="function"&&g(f);},role:"radiogroup",get id(){return M(i.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 o.orientation},get"aria-labelledby"(){return c()},get"aria-describedby"(){return d()}},()=>u.dataset(),s))}})}})}function bh(e,t,n){let r=jm({usage:"search",sensitivity:"base"}),o=F(()=>{let i=M(e.keyboardDelegate);return i||new vh(e.collection,t,r)});return tg({selectionManager:()=>M(e.selectionManager),keyboardDelegate:o,autoFocus:()=>M(e.autoFocus),deferAutoFocus:()=>M(e.deferAutoFocus),shouldFocusWrap:()=>M(e.shouldFocusWrap),disallowEmptySelection:()=>M(e.disallowEmptySelection),selectOnFocus:()=>M(e.selectOnFocus),disallowTypeAhead:()=>M(e.disallowTypeAhead),shouldUseVirtualFocus:()=>M(e.shouldUseVirtualFocus),allowsTabNavigation:()=>M(e.allowsTabNavigation),isVirtualized:()=>M(e.isVirtualized),scrollToKey:i=>M(e.scrollToKey)?.(i),orientation:()=>M(e.orientation)},t)}function xh(e,t){let[n,r]=q(!1),o={pause(){r(!0);},resume(){r(!1);}},i=null,s=f=>e.onMountAutoFocus?.(f),l=f=>e.onUnmountAutoFocus?.(f),a=()=>en(t()),u=()=>{let f=a().createElement("span");return f.setAttribute("data-focus-trap",""),f.tabIndex=0,Object.assign(f.style,Ku),f},c=()=>{let f=t();return f?Vu(f,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},d=()=>{let f=c();return f.length>0?f[0]:null},p=()=>{let f=c();return f.length>0?f[f.length-1]:null},m=()=>{let f=t();if(!f)return !1;let g=vo(f);return !g||$t(f,g)?!1:Nu(g)};j(()=>{if(tt)return;let f=t();if(!f)return;mu.add(o);let g=vo(f);if(!$t(f,g)){let h=new CustomEvent(Hs,pu);f.addEventListener(Hs,s),f.dispatchEvent(h),h.defaultPrevented||setTimeout(()=>{rt(d()),vo(f)===g&&rt(f);},0);}W(()=>{f.removeEventListener(Hs,s),setTimeout(()=>{let h=new CustomEvent(Qs,pu);m()&&h.preventDefault(),f.addEventListener(Qs,l),f.dispatchEvent(h),h.defaultPrevented||rt(g??a().body),f.removeEventListener(Qs,l),mu.remove(o);},0);});}),j(()=>{if(tt)return;let f=t();if(!f||!M(e.trapFocus)||n())return;let g=h=>{let y=h.target;y?.closest(`[${Mi}]`)||($t(f,y)?i=y:rt(i));},v=h=>{let b=h.relatedTarget??vo(f);b?.closest(`[${Mi}]`)||$t(f,b)||rt(i);};a().addEventListener("focusin",g),a().addEventListener("focusout",v),W(()=>{a().removeEventListener("focusin",g),a().removeEventListener("focusout",v);});}),j(()=>{if(tt)return;let f=t();if(!f||!M(e.trapFocus)||n())return;let g=u();f.insertAdjacentElement("afterbegin",g);let v=u();f.insertAdjacentElement("beforeend",v);function h(b){let w=d(),S=p();b.relatedTarget===w?rt(S):rt(w);}g.addEventListener("focusin",h),v.addEventListener("focusin",h);let y=new MutationObserver(b=>{for(let w of b)w.previousSibling===v&&(v.remove(),f.insertAdjacentElement("beforeend",v)),w.nextSibling===g&&(g.remove(),f.insertAdjacentElement("afterbegin",g));});y.observe(f,{childList:!0,subtree:!1}),W(()=>{g.removeEventListener("focusin",h),v.removeEventListener("focusin",h),g.remove(),v.remove(),y.disconnect();});});}function Sh(e){j(()=>{M(e.isDisabled)||W(Ch(M(e.targets),M(e.root)));});}function Ch(e,t=document.body){let n=new Set(e),r=new Set,o=a=>{for(let p of a.querySelectorAll(`[${wh}], [${Mi}]`))n.add(p);let u=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of n)if(p.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(a);if(d===NodeFilter.FILTER_ACCEPT&&i(a),d!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)i(p),p=c.nextNode();}},i=a=>{let u=go.get(a)??0;a.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&a.setAttribute("aria-hidden","true"),r.add(a),go.set(a,u+1));};Pt.length&&Pt[Pt.length-1].disconnect(),o(t);let s=new MutationObserver(a=>{for(let u of a)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c);}});s.observe(t,{childList:!0,subtree:!0});let l={observe(){s.observe(t,{childList:!0,subtree:!0});},disconnect(){s.disconnect();}};return Pt.push(l),()=>{s.disconnect();for(let a of r){let u=go.get(a);if(u==null)return;u===1?(a.removeAttribute("aria-hidden"),go.delete(a)):go.set(a,u-1);}l===Pt[Pt.length-1]?(Pt.pop(),Pt.length&&Pt[Pt.length-1].observe()):Pt.splice(Pt.indexOf(l),1);}}function _d(){return Ke(Md)}function gn(){let e=_d();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function Sa(){let e=Ke(Fd);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function nn(){let e=Ke(Dd);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Ca(e){let t,n=nn(),r=gn(),o=be({id:n.generateId(`item-${ht()}`)},e),[i,s]=Ce(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[l,a]=q(),[u,c]=q(),[d,p]=q(),m=()=>r.listState().selectionManager(),f=()=>s.id,g=()=>m().focusedKey()===f(),v=()=>{i.onSelect?.(),i.closeOnSelect&&setTimeout(()=>{r.close(!0);});};Vm({getItem:()=>({ref:()=>t,type:"item",key:f(),textValue:i.textValue??d()?.textContent??t?.textContent??"",disabled:i.disabled??!1})});let h=td({key:f,selectionManager:m,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),y=I=>{De(I,i.onPointerMove),I.pointerType==="mouse"&&(i.disabled?r.onItemLeave(I):(r.onItemEnter(I),I.defaultPrevented||(rt(I.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(f()))));},b=I=>{De(I,i.onPointerLeave),I.pointerType==="mouse"&&r.onItemLeave(I);},w=I=>{De(I,i.onPointerUp),!i.disabled&&I.button===0&&v();},S=I=>{if(De(I,i.onKeyDown),!I.repeat&&!i.disabled)switch(I.key){case"Enter":case" ":v();break}},C=F(()=>{if(i.indeterminate)return "mixed";if(i.checked!=null)return i.checked}),k=F(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":g()?"":void 0})),E={isChecked:()=>i.checked,dataset:k,setLabelRef:p,generateId:Eo(()=>s.id),registerLabel:Mt(a),registerDescription:Mt(c)};return x(Fd.Provider,{value:E,get children(){return x(Le,re({as:"div",ref(I){let P=st(V=>t=V,i.ref);typeof P=="function"&&P(I);},get tabIndex(){return h.tabIndex()},get"aria-checked"(){return C()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return l()},get"aria-describedby"(){return u()},get"data-key"(){return h.dataKey()},get onPointerDown(){return We([i.onPointerDown,h.onPointerDown])},get onPointerUp(){return We([w,h.onPointerUp])},get onClick(){return We([i.onClick,h.onClick])},get onKeyDown(){return We([S,h.onKeyDown])},get onMouseDown(){return We([i.onMouseDown,h.onMouseDown])},get onFocus(){return We([i.onFocus,h.onFocus])},onPointerMove:y,onPointerLeave:b},k,s))}})}function Ld(e){let t=be({closeOnSelect:!1},e),[n,r]=Ce(t,["checked","defaultChecked","onChange","onSelect"]),o=_m({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:s=>n.onChange?.(s),isDisabled:()=>r.disabled});return x(Ca,re({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{n.onSelect?.(),o.toggle();}},r))}function Ui(){return Ke(Dh)}function Ad(e){let t=nn(),n=gn(),r=Ui(),{direction:o}=Fn(),i=be({id:t.generateId("trigger")},e),[s,l]=Ce(i,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),a=()=>t.value();r!==void 0&&(a=()=>t.value()??s.id,r.lastValue()===void 0&&r.setLastValue(a));let u=Ni(()=>n.triggerRef(),()=>"button"),c=F(()=>u()==="a"&&n.triggerRef()?.getAttribute("href")!=null);j(Yt(()=>r?.value(),h=>{c()&&h===a()&&n.triggerRef()?.focus();}));let d=()=>{r!==void 0?n.isOpen()?r.value()===a()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0);},p=h=>{De(h,s.onPointerDown),h.currentTarget.dataset.pointerType=h.pointerType,!s.disabled&&h.pointerType!=="touch"&&h.button===0&&d();},m=h=>{De(h,s.onClick),s.disabled||h.currentTarget.dataset.pointerType==="touch"&&d();},f=h=>{if(De(h,s.onKeyDown),!s.disabled){if(c())switch(h.key){case"Enter":case" ":return}switch(h.key){case"Enter":case" ":case xu.first(t.orientation()):h.stopPropagation(),h.preventDefault(),Cm(h.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(a);break;case xu.last(t.orientation()):h.stopPropagation(),h.preventDefault(),n.open("last");break;case Co.next(o(),t.orientation()):if(r===void 0)break;h.stopPropagation(),h.preventDefault(),r.nextMenu();break;case Co.previous(o(),t.orientation()):if(r===void 0)break;h.stopPropagation(),h.preventDefault(),r.previousMenu();break}}},g=h=>{De(h,s.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(a);},v=h=>{De(h,s.onFocus),r!==void 0&&h.currentTarget.dataset.pointerType!=="touch"&&r.setValue(a);};return j(()=>W(n.registerTriggerId(s.id))),x(pa,re({ref(h){let y=st(n.setTriggerRef,s.ref);typeof y=="function"&&y(h);},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return s.id},get disabled(){return s.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return ze(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return a()!==void 0&&r?.value()===a()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===a()||r.lastValue()===a()?0:-1:void 0},onPointerDown:p,onMouseOver:g,onClick:m,onKeyDown:f,onFocus:v,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),l))}function Od(){return Ke(Lh)}function Rd(e){let t,n=nn(),r=gn(),o=Ui(),i=Od(),{direction:s}=Fn(),l=be({id:n.generateId(`content-${ht()}`)},e),[a,u]=Ce(l,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),c=0,d=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),p=bh({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);xh({trapFocus:()=>d()&&r.isOpen(),onMountAutoFocus:b=>{o===void 0&&a.onOpenAutoFocus?.(b);},onUnmountAutoFocus:a.onCloseAutoFocus},()=>t);let m=b=>{if($t(b.currentTarget,b.target)&&(b.key==="Tab"&&r.isOpen()&&b.preventDefault(),o!==void 0&&b.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(b.key){case Co.next(s(),n.orientation()):b.stopPropagation(),b.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case Co.previous(s(),n.orientation()):if(b.currentTarget.hasAttribute("data-closed"))break;b.stopPropagation(),b.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},f=b=>{a.onEscapeKeyDown?.(b),o?.setAutoFocusMenu(!1),r.close(!0);},g=b=>{a.onFocusOutside?.(b),n.isModal()&&b.preventDefault();},v=b=>{De(b,a.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0));},h=b=>{if(De(b,a.onPointerMove),b.pointerType!=="mouse")return;let w=b.target,S=c!==b.clientX;$t(b.currentTarget,w)&&S&&(r.setPointerDir(b.clientX>c?"right":"left"),c=b.clientX);};j(()=>W(r.registerContentId(a.id)));let y={ref:st(b=>{r.setContentRef(b),t=b;},a.ref),role:"menu",get id(){return a.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:We([a.onKeyDown,p.onKeyDown,m]),onMouseDown:We([a.onMouseDown,p.onMouseDown]),onFocusIn:We([a.onFocusIn,p.onFocusIn]),onFocusOut:We([a.onFocusOut,p.onFocusOut]),onPointerEnter:v,onPointerMove:h,get"data-orientation"(){return n.orientation()}};return x(B,{get when(){return r.contentPresent()},get children(){return x(B,{get when(){return i===void 0||r.parentMenuContext()!=null},get fallback(){return x(Le,re({as:"div"},()=>r.dataset(),y,u))},get children(){return x(hd.Positioner,{get children(){return x(hh,re({get disableOutsidePointerEvents(){return ze(()=>!!d())()&&r.isOpen()},get excludedElements(){return [r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return zi({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},a.style)},onEscapeKeyDown:f,onFocusOutside:g,get onDismiss(){return r.close}},()=>r.dataset(),y,u))}})}})}})}function Ah(e){let t,n=nn(),r=gn(),[o,i]=Ce(e,["ref"]);return Fh({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),x(Rd,re({ref(s){let l=st(a=>{t=a;},o.ref);typeof l=="function"&&l(s);}},i))}function Oh(){let e=Ke(qd);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function ka(e){let t=nn(),n=be({id:t.generateId(`group-${ht()}`)},e),[r,o]=q(),i={generateId:Eo(()=>n.id),registerLabelId:Mt(o)};return x(qd.Provider,{value:i,get children(){return x(Le,re({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function zd(e){let t=Oh(),n=be({id:t.generateId("label")},e),[r,o]=Ce(n,["id"]);return j(()=>W(t.registerLabelId(r.id))),x(Le,re({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function Vd(e){let t=gn(),n=be({children:"\u25BC"},e);return x(Le,re({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function Nd(e){return x(Ca,re({role:"menuitem",closeOnSelect:!0},e))}function Kd(e){let t=Sa(),n=be({id:t.generateId("description")},e),[r,o]=Ce(n,["id"]);return j(()=>W(t.registerDescription(r.id))),x(Le,re({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function Bd(e){let t=Sa(),n=be({id:t.generateId("indicator")},e),[r,o]=Ce(n,["forceMount"]);return x(B,{get when(){return r.forceMount||t.isChecked()},get children(){return x(Le,re({as:"div"},()=>t.dataset(),o))}})}function Gd(e){let t=Sa(),n=be({id:t.generateId("label")},e),[r,o]=Ce(n,["ref","id"]);return j(()=>W(t.registerLabel(r.id))),x(Le,re({as:"div",ref(i){let s=st(t.setLabelRef,r.ref);typeof s=="function"&&s(i);},get id(){return r.id}},()=>t.dataset(),o))}function Ud(e){let t=gn();return x(B,{get when(){return t.contentPresent()},get children(){return x(zs,e)}})}function Rh(){let e=Ke(Hd);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Qd(e){let n=nn().generateId(`radiogroup-${ht()}`),r=be({id:n},e),[o,i]=Ce(r,["value","defaultValue","onChange","disabled"]),[s,l]=To({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:u=>o.onChange?.(u)}),a={isDisabled:()=>o.disabled,isSelectedValue:u=>u===s(),setSelectedValue:l};return x(Hd.Provider,{value:a,get children(){return x(ka,i)}})}function jd(e){let t=Rh(),n=be({closeOnSelect:!1},e),[r,o]=Ce(n,["value","onSelect"]);return x(Ca,re({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value);}},o))}function qh(e,t,n){let r=e.split("-")[0],o=n.getBoundingClientRect(),i=[],s=t.clientX,l=t.clientY;switch(r){case"top":i.push([s,l+5]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]);break;case"right":i.push([s-5,l]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]);break;case"bottom":i.push([s,l-5]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]);break;case"left":i.push([s+5,l]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]);break}return i}function zh(e,t){return t?Sm([e.clientX,e.clientY],t):!1}function Wd(e){let t=nn(),n=ju(),r=_d(),o=Ui(),i=Od(),s=be({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[l,a]=Ce(s,["open","defaultOpen","onOpenChange"]),u=0,c=null,d="right",[p,m]=q(),[f,g]=q(),[v,h]=q(),[y,b]=q(),[w,S]=q(!0),[C,k]=q(a.placement),[E,I]=q([]),[P,V]=q([]),{DomCollectionProvider:L}=zm({items:P,onItemsChange:V}),H=vd({open:()=>l.open,defaultOpen:()=>l.defaultOpen,onOpenChange:X=>l.onOpenChange?.(X)}),{present:K}=nd({show:()=>t.forceMount()||H.isOpen(),element:()=>y()??null}),oe=rg({selectionMode:"none",dataSource:P}),de=X=>{S(X),H.open();},he=(X=!1)=>{H.close(),X&&r&&r.close(!0);},xe=X=>{S(X),H.toggle();},we=()=>{let X=y();X&&(rt(X),oe.selectionManager().setFocused(!0),oe.selectionManager().setFocusedKey(void 0));},Pe=()=>{i!=null?setTimeout(()=>we()):we();},qe=X=>{I(Ae=>[...Ae,X]);let He=r?.registerNestedMenu(X);return ()=>{I(Ae=>Xs(Ae,X)),He?.();}},Ee=X=>d===c?.side&&zh(X,c?.area),Re=X=>{Ee(X)&&X.preventDefault();},_=X=>{Ee(X)||Pe();},Te=X=>{Ee(X)&&X.preventDefault();};Sh({isDisabled:()=>!(r==null&&H.isOpen()&&t.isModal()),targets:()=>[y(),...E()].filter(Boolean)}),j(()=>{let X=y();if(!X||!r)return;let He=r.registerNestedMenu(X);W(()=>{He();});}),j(()=>{r===void 0&&o?.registerMenu(t.value(),[y(),...E()]);}),j(()=>{r!==void 0||o===void 0||(o.value()===t.value()?(v()?.focus(),o.autoFocusMenu()&&de(!0)):he());}),j(()=>{r!==void 0||o===void 0||H.isOpen()&&o.setValue(t.value());}),W(()=>{r===void 0&&o?.unregisterMenu(t.value());});let Ue={dataset:F(()=>({"data-expanded":H.isOpen()?"":void 0,"data-closed":H.isOpen()?void 0:""})),isOpen:H.isOpen,contentPresent:K,nestedMenus:E,currentPlacement:C,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>oe,parentMenuContext:()=>r,triggerRef:v,contentRef:y,triggerId:p,contentId:f,setTriggerRef:h,setContentRef:b,open:de,close:he,toggle:xe,focusContent:Pe,onItemEnter:Re,onItemLeave:_,onTriggerLeave:Te,setPointerDir:X=>d=X,setPointerGraceTimeoutId:X=>u=X,setPointerGraceIntent:X=>c=X,registerNestedMenu:qe,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:Mt(m),registerContentId:Mt(g)};return x(L,{get children(){return x(Md.Provider,{value:Ue,get children(){return x(B,{when:i===void 0,get fallback(){return a.children},get children(){return x(hd,re({anchorRef:v,contentRef:y,onCurrentPlacementChange:k},a))}})}})}})}function Yd(e){let{direction:t}=Fn();return x(Wd,re({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Xd(e){let t=gn(),n=nn(),[r,o]=Ce(e,["onFocusOutside","onKeyDown"]),{direction:i}=Fn();return x(Rd,re({onOpenAutoFocus:c=>{c.preventDefault();},onCloseAutoFocus:c=>{c.preventDefault();},onFocusOutside:c=>{r.onFocusOutside?.(c);let d=c.target;$t(t.triggerRef(),d)||t.close();},onKeyDown:c=>{De(c,r.onKeyDown);let d=$t(c.currentTarget,c.target),p=Vh.close(i(),n.orientation()).includes(c.key),m=t.parentMenuContext()!=null;d&&p&&m&&(t.close(),rt(t.triggerRef()));}},o))}function Zd(e){let t,n=nn(),r=gn(),o=be({id:n.generateId(`sub-trigger-${ht()}`)},e),[i,s]=Ce(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),l=null,a=()=>{tt||(l&&window.clearTimeout(l),l=null);},{direction:u}=Fn(),c=()=>i.id,d=()=>{let b=r.parentMenuContext();if(b==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return b.listState().selectionManager()},p=()=>r.listState().collection(),m=()=>d().focusedKey()===c(),f=td({key:c,selectionManager:d,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),g=b=>{De(b,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0);},v=b=>{if(De(b,i.onPointerMove),b.pointerType!=="mouse")return;let w=r.parentMenuContext();if(w?.onItemEnter(b),!b.defaultPrevented){if(i.disabled){w?.onItemLeave(b);return}!r.isOpen()&&!l&&(r.parentMenuContext()?.setPointerGraceIntent(null),l=window.setTimeout(()=>{r.open(!1),a();},100)),w?.onItemEnter(b),b.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),rt(b.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(c()));}},h=b=>{if(De(b,i.onPointerLeave),b.pointerType!=="mouse")return;a();let w=r.parentMenuContext(),S=r.contentRef();if(S){w?.setPointerGraceIntent({area:qh(r.currentPlacement(),b,S),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let C=window.setTimeout(()=>{w?.setPointerGraceIntent(null);},300);w?.setPointerGraceTimeoutId(C);}else {if(w?.onTriggerLeave(b),b.defaultPrevented)return;w?.setPointerGraceIntent(null);}w?.onItemLeave(b);},y=b=>{De(b,i.onKeyDown),!b.repeat&&(i.disabled||Nh.open(u(),n.orientation()).includes(b.key)&&(b.stopPropagation(),b.preventDefault(),d().setFocused(!1),d().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(p().getFirstKey())));};return j(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let b=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:c(),textValue:i.textValue??t?.textContent??"",disabled:i.disabled??!1});W(b);}),j(Yt(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),b=>{W(()=>{window.clearTimeout(b),r.parentMenuContext()?.setPointerGraceIntent(null);});})),j(()=>W(r.registerTriggerId(i.id))),W(()=>{a();}),x(Le,re({as:"div",ref(b){let w=st(S=>{r.setTriggerRef(S),t=S;},i.ref);typeof w=="function"&&w(b);},get id(){return i.id},role:"menuitem",get tabIndex(){return f.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return ze(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return f.dataKey()},get"data-highlighted"(){return m()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return We([i.onPointerDown,f.onPointerDown])},get onPointerUp(){return We([i.onPointerUp,f.onPointerUp])},get onClick(){return We([g,f.onClick])},get onKeyDown(){return We([y,f.onKeyDown])},get onMouseDown(){return We([i.onMouseDown,f.onMouseDown])},get onFocus(){return We([i.onFocus,f.onFocus])},onPointerMove:v,onPointerLeave:h},()=>r.dataset(),s))}function Kh(e){let t=Ui(),n=`menu-${ht()}`,r=be({id:n,modal:!0},e),[o,i]=Ce(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=vd({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:a=>o.onOpenChange?.(a)}),l={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??l.isModal(),forceMount:()=>o.forceMount??!1,generateId:Eo(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??t?.orientation()??"horizontal"};return x(Dd.Provider,{value:l,get children(){return x(Wd,re({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},i))}})}function Hi(e){let t,n=be({orientation:"horizontal"},e),[r,o]=Ce(n,["ref","orientation"]),i=Ni(()=>t,()=>"hr");return x(Le,re({as:"hr",ref(s){let l=st(a=>t=a,r.ref);typeof l=="function"&&l(s);},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}function Jd(e){let t=nn(),n=gn(),[r,o]=Ce(e,["onCloseAutoFocus","onInteractOutside"]),i=!1;return x(Ah,re({onCloseAutoFocus:a=>{r.onCloseAutoFocus?.(a),i||rt(n.triggerRef()),i=!1,a.preventDefault();},onInteractOutside:a=>{r.onInteractOutside?.(a),(!t.isModal()||a.detail.isContextMenu)&&(i=!0);}},o))}function e1(e){let t=`dropdownmenu-${ht()}`,n=be({id:t},e);return x(Kh,n)}function py(){return Hh()}function n1(){return Qh()}function mr(){return jh()}function Su(){return Wh()}function Cu(){return Ia()}function my(){return (()=>{var e=Ia();return e.style.setProperty("transform","rotate(90deg)"),e})()}function gy(){return (()=>{var e=Ia();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function hy(){return Yh()}function yy(){return Xh()}function vy(){return Zh()}function by(){return Jh()}function xy(){return ey()}function wy(){return ty()}function Sy(){return ny()}function Cy(){return ry()}function ky(){return oy()}function Iy(e){return (()=>{var t=t1(),n=t.firstChild;return G(()=>D(n,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Ey(){return iy()}function Py(){return sy()}function Ty(e){return [x(B,{get when(){return e.checked},get children(){var t=t1(),n=t.firstChild;return G(()=>D(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),x(B,{get when(){return !e.checked},get children(){var t=ay(),n=t.firstChild;return G(()=>D(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function ia(){return ly()}function $y(){return cy()}function My(){return uy()}function _y(){return dy()}function ku(){let e=ht();return (()=>{var t=fy(),n=t.firstChild,r=n.nextSibling,o=r.nextSibling,i=o.firstChild,s=o.nextSibling,l=s.firstChild,a=s.nextSibling,u=a.nextSibling,c=u.firstChild,d=u.nextSibling,p=d.firstChild,m=d.nextSibling,f=m.nextSibling,g=f.firstChild,v=f.nextSibling,h=v.firstChild,y=v.nextSibling,b=y.nextSibling,w=b.firstChild,S=b.nextSibling,C=S.firstChild,k=S.nextSibling,E=k.nextSibling,I=E.firstChild,P=E.nextSibling,V=P.firstChild,L=P.nextSibling,H=L.nextSibling,K=H.firstChild,oe=H.nextSibling,de=oe.firstChild,he=oe.nextSibling,xe=he.nextSibling,we=xe.firstChild,Pe=xe.nextSibling,qe=Pe.firstChild,Ee=Pe.nextSibling,Re=Ee.firstChild,_=Re.nextSibling,Te=_.nextSibling,le=Te.nextSibling,Ue=le.nextSibling,X=Ee.nextSibling,He=X.firstChild,Ae=X.nextSibling,mt=Ae.firstChild,_e=Ae.nextSibling,ct=_e.firstChild,ut=ct.nextSibling,Ze=ut.nextSibling,Je=Ze.firstChild,dt=Je.nextSibling,O=dt.nextSibling,Y=O.nextSibling,ue=Y.nextSibling,ye=ue.nextSibling,fe=ye.nextSibling,ve=fe.nextSibling,J=ve.nextSibling,ne=J.nextSibling,At=ne.nextSibling,sn=At.nextSibling,Ot=_e.nextSibling,Rn=Ot.firstChild,an=Ot.nextSibling,qn=an.firstChild,ln=an.nextSibling,Cn=ln.firstChild,ni=Cn.nextSibling,Wr=ln.nextSibling,ri=Wr.firstChild,rr=Wr.nextSibling,oi=rr.firstChild,Yr=rr.nextSibling,Xr=Yr.firstChild,Zr=Xr.nextSibling,or=Zr.nextSibling,gl=or.nextSibling,hl=gl.nextSibling,yl=hl.nextSibling,vl=yl.nextSibling,bl=vl.nextSibling,xl=bl.nextSibling,wl=xl.nextSibling,Sl=wl.nextSibling,Cl=Sl.nextSibling,kl=Cl.nextSibling,Il=kl.nextSibling,El=Il.nextSibling,Pl=El.nextSibling,Tl=Pl.nextSibling,Uf=Tl.nextSibling;return D(n,"id",`a-${e}`),D(r,"fill",`url(#a-${e})`),D(i,"id",`am-${e}`),D(s,"id",`b-${e}`),D(l,"filter",`url(#am-${e})`),D(a,"mask",`url(#b-${e})`),D(c,"id",`ah-${e}`),D(d,"id",`k-${e}`),D(p,"filter",`url(#ah-${e})`),D(m,"mask",`url(#k-${e})`),D(g,"id",`ae-${e}`),D(v,"id",`j-${e}`),D(h,"filter",`url(#ae-${e})`),D(y,"mask",`url(#j-${e})`),D(w,"id",`ai-${e}`),D(S,"id",`i-${e}`),D(C,"filter",`url(#ai-${e})`),D(k,"mask",`url(#i-${e})`),D(I,"id",`aj-${e}`),D(P,"id",`h-${e}`),D(V,"filter",`url(#aj-${e})`),D(L,"mask",`url(#h-${e})`),D(K,"id",`ag-${e}`),D(oe,"id",`g-${e}`),D(de,"filter",`url(#ag-${e})`),D(he,"mask",`url(#g-${e})`),D(we,"id",`af-${e}`),D(Pe,"id",`f-${e}`),D(qe,"filter",`url(#af-${e})`),D(Ee,"mask",`url(#f-${e})`),D(le,"id",`m-${e}`),D(Ue,"fill",`url(#m-${e})`),D(He,"id",`ak-${e}`),D(Ae,"id",`e-${e}`),D(mt,"filter",`url(#ak-${e})`),D(_e,"mask",`url(#e-${e})`),D(ct,"id",`n-${e}`),D(ut,"fill",`url(#n-${e})`),D(Je,"id",`r-${e}`),D(dt,"fill",`url(#r-${e})`),D(O,"id",`s-${e}`),D(Y,"fill",`url(#s-${e})`),D(ue,"id",`q-${e}`),D(ye,"fill",`url(#q-${e})`),D(fe,"id",`p-${e}`),D(ve,"fill",`url(#p-${e})`),D(J,"id",`o-${e}`),D(ne,"fill",`url(#o-${e})`),D(At,"id",`l-${e}`),D(sn,"fill",`url(#l-${e})`),D(Rn,"id",`al-${e}`),D(an,"id",`d-${e}`),D(qn,"filter",`url(#al-${e})`),D(ln,"mask",`url(#d-${e})`),D(Cn,"id",`u-${e}`),D(ni,"fill",`url(#u-${e})`),D(ri,"id",`ad-${e}`),D(rr,"id",`c-${e}`),D(oi,"filter",`url(#ad-${e})`),D(Yr,"mask",`url(#c-${e})`),D(Xr,"id",`t-${e}`),D(Zr,"fill",`url(#t-${e})`),D(or,"id",`v-${e}`),D(gl,"stroke",`url(#v-${e})`),D(hl,"id",`aa-${e}`),D(yl,"stroke",`url(#aa-${e})`),D(vl,"id",`w-${e}`),D(bl,"stroke",`url(#w-${e})`),D(xl,"id",`ac-${e}`),D(wl,"stroke",`url(#ac-${e})`),D(Sl,"id",`ab-${e}`),D(Cl,"stroke",`url(#ab-${e})`),D(kl,"id",`y-${e}`),D(Il,"stroke",`url(#y-${e})`),D(El,"id",`x-${e}`),D(Pl,"stroke",`url(#x-${e})`),D(Tl,"id",`z-${e}`),D(Uf,"stroke",`url(#z-${e})`),t})()}function Ky(e,t){let n=0,r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n=n+t;return r}function Tu(e){return Symbol.iterator in e}function Pn(e){let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),o=U().client,[i,s]=q((e.defaultExpanded||[]).includes(e.label)),l=()=>s(f=>!f),[a,u]=q([]),c=F(()=>Array.isArray(e.value)?e.value.map((f,g)=>({label:g.toString(),value:f})):e.value!==null&&typeof e.value=="object"&&Tu(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([f,g])=>({label:f,value:g})):Array.from(e.value,(f,g)=>({label:g.toString(),value:f})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([f,g])=>({label:f,value:g})):[]),d=F(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&Tu(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=F(()=>Ky(c(),100)),m=e.dataPath??[];return (()=>{var f=ho();return T(f,x(B,{get when(){return p().length},get children(){return [(()=>{var g=qy(),v=g.firstChild,h=v.firstChild,y=h.nextSibling,b=y.nextSibling,w=b.nextSibling,S=w.firstChild;return v.$$click=()=>l(),T(v,x(Eu,{get expanded(){return i()}}),h),T(y,()=>e.label),T(w,()=>String(d()).toLowerCase()==="iterable"?"(Iterable) ":"",S),T(w,()=>c().length,S),T(w,()=>c().length>1?"items":"item",null),T(g,x(B,{get when(){return e.editable},get children(){var C=ho();return T(C,x(By,{get value(){return e.value}}),null),T(C,x(B,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return x(Pu,{get activeQuery(){return e.activeQuery},dataPath:m})}}),null),T(C,x(B,{get when(){return d()==="array"&&e.activeQuery!==void 0},get children(){return x(Gy,{get activeQuery(){return e.activeQuery},dataPath:m})}}),null),T(C,x(B,{get when(){return ze(()=>!!e.onEdit)()&&!Vs(e.value).meta},get children(){var k=Ry();return k.$$click=()=>{e.onEdit?.();},T(k,x(ky,{})),G(()=>A(k,r().actionButton)),k}}),null),G(()=>A(C,r().actions)),C}}),null),G(C=>{var k=r().expanderButtonContainer,E=r().expanderButton,I=r().info;return k!==C.e&&A(g,C.e=k),E!==C.t&&A(v,C.t=E),I!==C.a&&A(w,C.a=I),C},{e:void 0,t:void 0,a:void 0}),g})(),x(B,{get when(){return i()},get children(){return [x(B,{get when(){return p().length===1},get children(){var g=ho();return T(g,x($i,{get each(){return c()},by:v=>v.label,children:v=>x(Pn,{get defaultExpanded(){return e.defaultExpanded},get label(){return v().label},get value(){return v().value},get editable(){return e.editable},get dataPath(){return [...m,v().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return d()==="array"||d()==="Iterable"||d()==="object"}})})),G(()=>A(g,r().subEntry)),g}}),x(B,{get when(){return p().length>1},get children(){var g=ho();return T(g,x(cc,{get each(){return p()},children:(v,h)=>(()=>{var y=Ny(),b=y.firstChild,w=b.firstChild,S=w.firstChild,C=S.nextSibling,k=C.nextSibling,E=k.nextSibling;return E.nextSibling,w.$$click=()=>u(I=>I.includes(h)?I.filter(P=>P!==h):[...I,h]),T(w,x(Eu,{get expanded(){return a().includes(h)}}),S),T(w,h*100,C),T(w,h*100+100-1,E),T(b,x(B,{get when(){return a().includes(h)},get children(){var I=ho();return T(I,x($i,{get each(){return v()},by:P=>P.label,children:P=>x(Pn,{get defaultExpanded(){return e.defaultExpanded},get label(){return P().label},get value(){return P().value},get editable(){return e.editable},get dataPath(){return [...m,P().label]},get activeQuery(){return e.activeQuery}})})),G(()=>A(I,r().subEntry)),I}}),null),G(I=>{var P=r().entry,V=r().expanderButton;return P!==I.e&&A(b,I.e=P),V!==I.t&&A(w,I.t=V),I},{e:void 0,t:void 0}),y})()})),G(()=>A(g,r().subEntry)),g}})]}})]}}),null),T(f,x(B,{get when(){return p().length===0},get children(){var g=Vy(),v=g.firstChild,h=v.firstChild;return T(v,()=>e.label,h),T(g,x(B,{get when(){return ze(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number"||d()==="boolean")},get fallback(){return (()=>{var y=Iu();return T(y,()=>fo(e.value)),G(()=>A(y,r().value)),y})()},get children(){return [x(B,{get when(){return ze(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number")},get children(){var y=zy();return y.addEventListener("change",b=>{let w=e.activeQuery.state.data,S=kn(w,m,d()==="number"?b.target.valueAsNumber:b.target.value);o.setQueryData(e.activeQuery.queryKey,S);}),G(b=>{var w=d()==="number"?"number":"text",S=z(r().value,r().editableInput);return w!==b.e&&D(y,"type",b.e=w),S!==b.t&&A(y,b.t=S),b},{e:void 0,t:void 0}),G(()=>y.value=e.value),y}}),x(B,{get when(){return d()==="boolean"},get children(){var y=Iu();return T(y,x(Uy,{get activeQuery(){return e.activeQuery},dataPath:m,get value(){return e.value}}),null),T(y,()=>fo(e.value),null),G(()=>A(y,z(r().value,r().actions,r().editableInput))),y}})]}}),null),T(g,x(B,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return x(Pu,{get activeQuery(){return e.activeQuery},dataPath:m})}}),null),G(y=>{var b=r().row,w=r().label;return b!==y.e&&A(g,y.e=b),w!==y.t&&A(v,y.t=w),y},{e:void 0,t:void 0}),g}}),null),G(()=>A(f,r().entry)),f})()}var h2,y2,Oc,v2,b2,M,js,S2,Oi,I2,Rc,Et,E2,Un,sa,P2,Ws,Ri,T2,Mu,$2,_u,M2,qc,_2,ko,Fu,qi,aa,Io,Du,F2,D2,pt,Kc,V2,N2,K2,B2,Bc,Gn,un,Lu,G2,U2,Gc,Uc,Bs,tm,la,Ei,zu,mm,ua,gm,mo,Yc,Ku,km,Bu,Fm,Ki,Qu,Km,Bm,Js,bo,Qm,Gs,dn,ng,nu,nt,og,ig,nd,Mi,rd,ea,pn,yt,mg,gg,yg,vg,Jt,bt,_i,Pi,$n,bg,xg,Eg,Pg,Tg,$g,_g,Fg,Dg,Og,Qg,gd,Xg,Zg,Jg,eh,th,nh,rh,ba,oh,ra,cu,ih,uh,hd,du,fu,yd,Tt,bd,wd,yh,vh,Hs,Qs,pu,mu,wh,go,Pt,Ti,kh,gu,Ih,Eh,Ph,hu,yu,Th,$h,Mh,vu,bu,oa,_h,Fh,Md,Fd,Dd,Dh,Co,xu,Lh,qd,Hd,Vh,wu,Nh,Bh,Gh,Me,Uh,$,Hh,Qh,jh,Wh,Ia,Yh,Xh,Zh,Jh,ey,ty,ny,ry,oy,t1,iy,sy,ay,ly,cy,uy,dy,fy,Fy,Dy,Ly,Ay,Oy,Ry,ho,qy,zy,Iu,Vy,Ny,Eu,By,Gy,Pu,Uy,r1,br,xr,Hy,_o,Qy,jy,Wy,Yy,Xy,Zy,Jy,e3,t3,n3,r3,o3,i3,s3,a3,l3,c3,u3,d3,f3,p3,m3,$u,g3,h3,o1,y3,v3,b3,x3,w3,S3,C3,k3,I3,E3,vt,Qi,Tn,i1,qt,Ea,yo,P3,s1,T3,a1,$3,ji,M3,_3,F3,D3,fn,L3,A3,Li,O3,je,Ai,R3,Rt,q3,Zt,l1,_t,Ft,Pa=Q(()=>{po();h2=!tt,y2=h2&&!!dc,Oc=()=>{},v2=e=>e!=null,b2=e=>e.filter(v2);M=e=>typeof e=="function"&&!e.length?e():e,js=e=>Array.isArray(e)?e:e?[e]:[];S2=y2?e=>gi()?W(e):e:W;Oi=k2,I2=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t);}),e),Rc=e=>{if(!e)return "";let t="";for(let n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`;}return t},Et=I2({_cookies:[globalThis.document,"cookie"],getItem:e=>Et._cookies[0][Et._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,n)=>{let r=Et.getItem(e);Et._cookies[0][Et._cookies[1]]=`${e}=${t}${Rc(n)}`;let o=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:Et});window.dispatchEvent(o);},removeItem:e=>{Et._cookies[0][Et._cookies[1]]=`${e}=deleted${Rc({expires:new Date(0)})}`;},key:e=>{let t=null,n=0;return Et._cookies[0][Et._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,o)=>(!t&&o&&n++===e&&(t=o),"")),t},get length(){let e=0;return Et._cookies[0][Et._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),E2=1024,Un=796,sa=700,P2="bottom-right",Ws="bottom",Ri="system",T2=!1,Mu=500,$2=500,_u=500,M2=Object.keys(Ci)[0],qc=1,_2=Object.keys(ki)[0],ko=Qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Fu=Qe(void 0),qi=e=>{let[t,n]=q(null),r=()=>{let s=t();s!=null&&(s.close(),n(null));},o=(s,l)=>{if(t()!=null)return;let a=window.open("","TSQD-Devtools-Panel",`width=${s},height=${l},popup`);if(!a)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");a.document.head.innerHTML="",a.document.body.innerHTML="",fc(a.document),a.document.title="TanStack Query Devtools",a.document.body.style.margin="0",a.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),n(null);}),[...(U().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let c=[...u.cssRules].map(f=>f.cssText).join(""),d=document.createElement("style"),p=u.ownerNode,m="";p&&"id"in p&&(m=p.id),m&&d.setAttribute("id",m),d.textContent=c,a.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,a.document.head.appendChild(d);}}),uo(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],a.document),e.setLocalStore("pip_open","true"),n(a);};j(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&o(Number(window.innerWidth),Number(e.localStore.height||$2));}),j(()=>{let s=(U().shadowDOMTarget||document).querySelector("#_goober"),l=t();if(s&&l){let a=new MutationObserver(()=>{let u=(U().shadowDOMTarget||l.document).querySelector("#_goober");u&&(u.textContent=s.textContent);});a.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),W(()=>{a.disconnect();});}});let i=F(()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:r,disabled:e.disabled??!1}));return x(Fu.Provider,{value:i,get children(){return e.children}})},aa=()=>F(()=>{let t=Ke(Fu);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Io=Qe(()=>"dark");Du={\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"},F2=Object.keys(Du).join("|"),D2=new RegExp(F2,"g");pt={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Kc={maxRanking:1/0,minRanking:-1/0};V2={data:""},N2=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||V2,K2=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,B2=/\/\*[^]*?\*\/| +/g,Bc=/\n+/g,Gn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Gn(s,i):i+"{"+Gn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Gn(s,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Gn.p?Gn.p(i,s):i+":"+s+";");}return n+(t&&o?t+"{"+o+"}":o)+r},un={},Lu=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Lu(e[n]);return t}return e},G2=(e,t,n,r,o)=>{let i=Lu(e),s=un[i]||(un[i]=(a=>{let u=0,c=11;for(;u<a.length;)c=101*c+a.charCodeAt(u++)>>>0;return "go"+c})(i));if(!un[s]){let a=i!==e?e:(u=>{let c,d,p=[{}];for(;c=K2.exec(u.replace(B2,""));)c[4]?p.shift():c[3]?(d=c[3].replace(Bc," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][c[1]]=c[2].replace(Bc," ").trim();return p[0]})(e);un[s]=Gn(o?{["@keyframes "+s]:a}:a,n?"":"."+s);}let l=n&&un.g?un.g:null;return n&&(un.g=un[s]),((a,u,c,d)=>{d?u.data=u.data.replace(d,a):u.data.indexOf(a)===-1&&(u.data=c?a+u.data:u.data+a);})(un[s],t,r,l),s},U2=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=a?"."+a:l&&typeof l=="object"?l.props?"":Gn(l,""):l===!1?"":l;}return r+o+(s??"")},"");ce.bind({g:1});ce.bind({k:1});Gc=tt?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Uc=e=>{let t=j2(e);return H2(Q2(()=>e.children).toArray,{appear:e.appear,onChange({added:n,removed:r,finishRemoved:o,list:i}){let s=t();for(let a of n)W2(s,e,a);let l=[];for(let a of i)a.isConnected&&(a instanceof HTMLElement||a instanceof SVGElement)&&l.push({el:a,rect:a.getBoundingClientRect()});queueMicrotask(()=>{let a=[];for(let{el:u,rect:c}of l)if(u.isConnected){let d=u.getBoundingClientRect(),p=c.left-d.left,m=c.top-d.top;(p||m)&&(u.style.transform=`translate(${p}px, ${m}px)`,u.style.transitionDuration="0s",a.push(u));}document.body.offsetHeight;for(let u of a){let c=function(d){(d.target===u||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",c),u.classList.remove(...s.move));};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",c);}});for(let a of r)Y2(s,e,a,()=>o([a]));}})},Bs=Symbol("fallback");tm=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;la=(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))(la||{});Ei=null;zu=["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'])"],mm=[...zu,'[tabindex]:not([tabindex="-1"]):not([disabled])'],ua=zu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",gm=mm.join(':not([hidden]):not([tabindex="-1"]),');mo=new Map,Yc=new Set;typeof document<"u"&&(document.readyState!=="loading"?Xc():document.addEventListener("DOMContentLoaded",Xc));Ku={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"};km=["id","name","validationState","required","disabled","readOnly"];Bu=Qe();Fm=Object.defineProperty,Ki=(e,t)=>{for(var n in t)Fm(e,n,{get:t[n],enumerable:!0});},Qu=Qe();Km=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Bm=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Js=Zu(),bo=new Set;Qm=Qe();Gs=new Map;dn=class Ju extends Set{constructor(n,r,o){super(n);It(this,"anchorKey");It(this,"currentKey");n instanceof Ju?(this.anchorKey=r||n.anchorKey,this.currentKey=o||n.currentKey):(this.anchorKey=r,this.currentKey=o);}};ng=class{constructor(e,t){It(this,"collection");It(this,"state");this.collection=e,this.state=t;}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e);}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e);}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e);}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return !1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return !1;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n);}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n);}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=this.state.selectedKeys(),r=n.anchorKey||t,o=new dn(n,r,t);for(let i of this.getKeyRange(r,n.currentKey||t))o.delete(i);for(let i of this.getKeyRange(t,r))this.canSelectItem(i)&&o.add(i);this.state.setSelectedKeys(o);}getKeyRange(e,t){let n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r!=null;){let o=this.collection().getItem(r);if(o&&o.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r);}return []}getKey(e){let t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new dn(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n);}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new dn([t],t,t):new dn;this.state.setSelectedKeys(n);}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new dn;for(let n of e){let r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t);}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()));}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new dn);}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll();}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e));}isSelectionEqual(e){if(e===this.state.selectedKeys())return !0;let t=this.selectedKeys();if(e.size!==t.size)return !1;for(let n of e)if(!t.has(n))return !1;for(let n of t)if(!e.has(n))return !1;return !0}canSelectItem(e){if(this.state.selectionMode()==="none")return !1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return !t||t.disabled}getAllSelectableKeys(){let e=[];return (n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n);}n=this.collection().getKeyAfter(n);}})(this.collection().getFirstKey()),e}},nu=class{constructor(e){It(this,"keyMap",new Map);It(this,"iterable");It(this,"firstKey");It(this,"lastKey");this.iterable=e;for(let r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(let[r,o]of this.keyMap)t?(t.nextKey=r,o.prevKey=t.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=n++),t=o,t.nextKey=void 0;this.lastKey=t.key;}*[Symbol.iterator](){yield*this.iterable;}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};nt=e=>typeof e=="function"?e():e,og=e=>{let t=F(()=>{let s=nt(e.element);if(s)return getComputedStyle(s)}),n=()=>t()?.animationName??"none",[r,o]=q(nt(e.show)?"present":"hidden"),i="none";return j(s=>{let l=nt(e.show);return $e(()=>{if(s===l)return l;let a=i,u=n();l?o("present"):u==="none"||t()?.display==="none"?o("hidden"):o(s===!0&&a!==u?"hiding":"hidden");}),l}),j(()=>{let s=nt(e.element);if(!s)return;let l=u=>{u.target===s&&(i=n());},a=u=>{let d=n().includes(u.animationName);u.target===s&&d&&r()==="hiding"&&o("hidden");};s.addEventListener("animationstart",l),s.addEventListener("animationcancel",a),s.addEventListener("animationend",a),W(()=>{s.removeEventListener("animationstart",l),s.removeEventListener("animationcancel",a),s.removeEventListener("animationend",a);});}),{present:()=>r()==="present"||r()==="hiding",state:r}},ig=og,nd=ig,Mi="data-kb-top-layer",ea=!1,pn=[];yt={layers:pn,isTopMostLayer:ag,hasPointerBlockingLayer:fa,isBelowPointerBlockingLayer:id,addLayer:cg,removeLayer:ug,indexOf:xo,find:sg,assignPointerEventToLayers:dg,disableBodyPointerEvents:fg,restoreBodyPointerEvents:pg},mg={};Ki(mg,{Button:()=>yg,Root:()=>pa});gg=["button","color","file","image","reset","submit"];yg=pa,vg=["top","right","bottom","left"],Jt=Math.min,bt=Math.max,_i=Math.round,Pi=Math.floor,$n=e=>({x:e,y:e}),bg={left:"right",right:"left",bottom:"top",top:"bottom"},xg={start:"end",end:"start"};Eg=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=ru(u,r,a),p=r,m={},f=0;for(let g=0;g<l.length;g++){let{name:v,fn:h}=l[g],{x:y,y:b,data:w,reset:S}=await h({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,d=b??d,m={...m,[v]:{...m[v],...w}},S&&f<=50&&(f++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:c,y:d}=ru(u,p,a)),g=-1);}return {x:c,y:d,placement:p,strategy:o,middlewareData:m}};Pg=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=jn(e,t)||{};if(u==null)return {};let d=ad(c),p={x:n,y:r},m=ga(o),f=ma(m),g=await s.getDimensions(u),v=m==="y",h=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[m]-p[m]-i.floating[f],S=p[m]-i.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),k=C?C[b]:0;(!k||!await(s.isElement==null?void 0:s.isElement(C)))&&(k=l.floating[b]||i.floating[f]);let E=w/2-S/2,I=k/2-g[f]/2-1,P=Jt(d[h],I),V=Jt(d[y],I),L=P,H=k-g[f]-V,K=k/2-g[f]/2+E,oe=ta(L,K,H),de=!a.arrow&&yr(o)!=null&&K!==oe&&i.reference[f]/2-(K<L?P:V)-g[f]/2<0,he=de?K<L?K-L:K-H:0;return {[m]:p[m]+he,data:{[m]:oe,centerOffset:K-oe-he,...de&&{alignmentOffset:he}},reset:de}}}),Tg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;let{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...v}=jn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return {};let h=Mn(o),y=Hn(l),b=Mn(l)===l,w=await(a.isRTL==null?void 0:a.isRTL(u.floating)),S=p||(b||!g?[Fi(l)]:Sg(l)),C=f!=="none";!p&&C&&S.push(...kg(l,g,f,w));let k=[l,...S],E=await wo(t,v),I=[],P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&I.push(E[h]),d){let K=wg(o,s,w);I.push(E[K[0]],E[K[1]]);}if(P=[...P,{placement:o,overflows:I}],!I.every(K=>K<=0)){var V,L;let K=(((V=i.flip)==null?void 0:V.index)||0)+1,oe=k[K];if(oe)return {data:{index:K,overflows:P},reset:{placement:oe}};let de=(L=P.filter(he=>he.overflows[0]<=0).sort((he,xe)=>he.overflows[1]-xe.overflows[1])[0])==null?void 0:L.placement;if(!de)switch(m){case"bestFit":{var H;let he=(H=P.filter(xe=>{if(C){let we=Hn(xe.placement);return we===y||we==="y"}return !0}).map(xe=>[xe.placement,xe.overflows.filter(we=>we>0).reduce((we,Pe)=>we+Pe,0)]).sort((xe,we)=>xe[1]-we[1])[0])==null?void 0:H[0];he&&(de=he);break}case"initialPlacement":de=l;break}if(o!==de)return {reset:{placement:de}}}return {}}}};$g=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=jn(e,t);switch(r){case"referenceHidden":{let i=await wo(t,{...o,elementContext:"reference"}),s=ou(i,n.reference);return {data:{referenceHiddenOffsets:s,referenceHidden:iu(s)}}}case"escaped":{let i=await wo(t,{...o,altBoundary:!0}),s=ou(i,n.floating);return {data:{escapedOffsets:s,escaped:iu(s)}}}default:return {}}}}};_g=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:s,middlewareData:l}=t,a=await Mg(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Fg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x:h,y}=v;return {x:h,y}}},...a}=jn(e,t),u={x:n,y:r},c=await wo(t,a),d=Hn(Mn(o)),p=sd(d),m=u[p],f=u[d];if(i){let v=p==="y"?"top":"left",h=p==="y"?"bottom":"right",y=m+c[v],b=m-c[h];m=ta(y,m,b);}if(s){let v=d==="y"?"top":"left",h=d==="y"?"bottom":"right",y=f+c[v],b=f-c[h];f=ta(y,f,b);}let g=l.fn({...t,[p]:m,[d]:f});return {...g,data:{x:g.x-n,y:g.y-r}}}}},Dg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...l}=jn(e,t),a=await wo(t,l),u=Mn(n),c=yr(n),d=Hn(n)==="y",{width:p,height:m}=r.floating,f,g;u==="top"||u==="bottom"?(f=u,g=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,f=c==="end"?"top":"bottom");let v=m-a.top-a.bottom,h=p-a.left-a.right,y=Jt(m-a[f],v),b=Jt(p-a[g],h),w=!t.middlewareData.shift,S=y,C=b;if(d?C=c||w?Jt(b,h):h:S=c||w?Jt(y,v):v,w&&!c){let E=bt(a.left,0),I=bt(a.right,0),P=bt(a.top,0),V=bt(a.bottom,0);d?C=p-2*(E!==0||I!==0?E+I:bt(a.left,a.right)):S=m-2*(P!==0||V!==0?P+V:bt(a.top,a.bottom));}await s({...t,availableWidth:C,availableHeight:S});let k=await o.getDimensions(i.floating);return p!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};Og=$n(0);Qg=async function(e){let t=this.getOffsetParent||md,n=this.getDimensions,r=await n(e.floating);return {reference:Hg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};gd={convertOffsetParentRelativeRectToViewportRelativeRect:qg,getDocumentElement:mn,getClippingRect:Gg,getOffsetParent:md,getElementRects:Qg,getClientRects:zg,getDimensions:Ug,getScale:gr,isElement:zt,isRTL:jg};Xg=_g,Zg=Fg,Jg=Tg,eh=Dg,th=$g,nh=Pg,rh=(e,t,n)=>{let r=new Map,o={platform:gd,...n},i={...o.platform,_c:r};return Eg(e,t,{...o,platform:i})},ba=Qe();oh=N('<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">'),ra=30,cu=ra/2,ih={top:180,right:-90,bottom:0,left:90};uh={top:"bottom",right:"left",bottom:"top",left:"right"};hd=Object.assign(fh,{Arrow:wa,Context:ba,usePopperContext:xa,Positioner:ah});du="interactOutside.pointerDownOutside",fu="interactOutside.focusOutside";yd=Qe();Tt={};Ki(Tt,{Description:()=>Gu,ErrorMessage:()=>Uu,Item:()=>Sd,ItemControl:()=>Cd,ItemDescription:()=>kd,ItemIndicator:()=>Id,ItemInput:()=>Ed,ItemLabel:()=>Pd,Label:()=>Td,RadioGroup:()=>yh,Root:()=>$d});bd=Qe();wd=Qe();yh=Object.assign($d,{Description:Gu,ErrorMessage:Uu,Item:Sd,ItemControl:Cd,ItemDescription:kd,ItemIndicator:Id,ItemInput:Ed,ItemLabel:Pd,Label:Td}),vh=class{constructor(e,t,n){It(this,"collection");It(this,"ref");It(this,"collator");this.collection=e,this.ref=t,this.collator=n;}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t);}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t);}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e);}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e);}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight),o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight),o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){let n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){let o=this.collection().getItem(r);if(o){let i=o.textValue.slice(0,e.length);if(o.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r);}}};Hs="focusScope.autoFocusOnMount",Qs="focusScope.autoFocusOnUnmount",pu={bubbles:!1,cancelable:!0},mu={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Xs(this.stack,e),this.stack.unshift(e);},remove(e){this.stack=Xs(this.stack,e),this.active()?.resume();}};wh="data-live-announcer";go=new WeakMap,Pt=[];Ti=new Map,kh=e=>{j(()=>{let t=nt(e.style)??{},n=nt(e.properties)??[],r={};for(let i in t)r[i]=e.element.style[i];let o=Ti.get(e.key);o?o.activeCount++:Ti.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(i=>i.key)}),Object.assign(e.element.style,e.style);for(let i of n)e.element.style.setProperty(i.key,i.value);W(()=>{let i=Ti.get(e.key);if(i){if(i.activeCount!==1){i.activeCount--;return}Ti.delete(e.key);for(let[s,l]of Object.entries(i.originalStyles))e.element.style[s]=l;for(let s of i.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.();}});});},gu=kh,Ih=(e,t)=>{switch(t){case"x":return [e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return [e.clientHeight,e.scrollTop,e.scrollHeight]}},Eh=(e,t)=>{let n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},Ph=(e,t,n)=>{let r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,o=e,i=0,s=0,l=!1;do{let[a,u,c]=Ih(o,t),d=c-a-r*u;(u!==0||d!==0)&&Eh(o,t)&&(i+=d,s+=u),o===(n??document.documentElement)?l=!0:o=o._$host??o.parentElement;}while(o&&!l);return [i,s]},[hu,yu]=q([]),Th=e=>hu().indexOf(e)===hu().length-1,$h=e=>{let t=re({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=ht(),r=[0,0],o=null,i=null;j(()=>{nt(t.enabled)&&(yu(u=>[...u,n]),W(()=>{yu(u=>u.filter(c=>c!==n));}));}),j(()=>{if(!nt(t.enabled)||!nt(t.hideScrollbar))return;let{body:u}=document,c=window.innerWidth-u.offsetWidth;if(nt(t.preventScrollbarShift)){let d={overflow:"hidden"},p=[];c>0&&(nt(t.preventScrollbarShiftMode)==="padding"?d.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${c}px)`:d.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${c}px)`,p.push({key:"--scrollbar-width",value:`${c}px`}));let m=window.scrollY,f=window.scrollX;gu({key:"prevent-scroll",element:u,style:d,properties:p,cleanup:()=>{nt(t.restoreScrollPosition)&&c>0&&window.scrollTo(f,m);}});}else gu({key:"prevent-scroll",element:u,style:{overflow:"hidden"}});}),j(()=>{!Th(n)||!nt(t.enabled)||(document.addEventListener("wheel",l,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",a,{passive:!1}),W(()=>{document.removeEventListener("wheel",l),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",a);}));});let s=u=>{r=vu(u),o=null,i=null;},l=u=>{let c=u.target,d=nt(t.element),p=Mh(u),m=Math.abs(p[0])>Math.abs(p[1])?"x":"y",f=m==="x"?p[0]:p[1],g=bu(c,m,f,d),v;d&&oa(d,c)?v=!g:v=!0,v&&u.cancelable&&u.preventDefault();},a=u=>{let c=nt(t.element),d=u.target,p;if(u.touches.length===2)p=!nt(t.allowPinchZoom);else {if(o==null||i===null){let m=vu(u).map((g,v)=>r[v]-g),f=Math.abs(m[0])>Math.abs(m[1])?"x":"y";o=f,i=f==="x"?m[0]:m[1];}if(d.type==="range")p=!1;else {let m=bu(d,o,i,c);c&&oa(c,d)?p=!m:p=!0;}}p&&u.cancelable&&u.preventDefault();};},Mh=e=>[e.deltaX,e.deltaY],vu=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],bu=(e,t,n,r)=>{let o=r!==null&&oa(r,e),[i,s]=Ph(e,t,o?r:void 0);return !(n>0&&Math.abs(i)<=1||n<0&&Math.abs(s)<1)},oa=(e,t)=>{if(e.contains(t))return !0;let n=t;for(;n;){if(n===e)return !0;n=n._$host??n.parentElement;}return !1},_h=$h,Fh=_h,Md=Qe();Fd=Qe();Dd=Qe();Dh=Qe();Co={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Co.next(e==="ltr"?"rtl":"ltr",t)},xu={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};Lh=Qe();qd=Qe();Hd=Qe();Vh={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};wu=["Enter"," "],Nh={open:(e,t)=>e==="ltr"?[...wu,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...wu,t==="horizontal"?"ArrowLeft":"ArrowUp"]};Bh={};Ki(Bh,{Root:()=>Hi,Separator:()=>Gh});Gh=Hi,Me={};Ki(Me,{Arrow:()=>wa,CheckboxItem:()=>Ld,Content:()=>Jd,DropdownMenu:()=>Uh,Group:()=>ka,GroupLabel:()=>zd,Icon:()=>Vd,Item:()=>Nd,ItemDescription:()=>Kd,ItemIndicator:()=>Bd,ItemLabel:()=>Gd,Portal:()=>Ud,RadioGroup:()=>Qd,RadioItem:()=>jd,Root:()=>e1,Separator:()=>Hi,Sub:()=>Yd,SubContent:()=>Xd,SubTrigger:()=>Zd,Trigger:()=>Ad});Uh=Object.assign(e1,{Arrow:wa,CheckboxItem:Ld,Content:Jd,Group:ka,GroupLabel:zd,Icon:Vd,Item:Nd,ItemDescription:Kd,ItemIndicator:Bd,ItemLabel:Gd,Portal:Ud,RadioGroup:Qd,RadioItem:jd,Separator:Hi,Sub:Yd,SubContent:Xd,SubTrigger:Zd,Trigger:Ad}),$={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}},Hh=N('<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>'),Qh=N('<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>'),jh=N('<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>'),Wh=N('<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>'),Ia=N('<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>'),Yh=N('<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>'),Xh=N('<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>'),Zh=N('<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>'),Jh=N('<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">'),ey=N('<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">'),ty=N('<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>'),ny=N('<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>'),ry=N('<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>'),oy=N('<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>'),t1=N('<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>'),iy=N('<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>'),sy=N('<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>'),ay=N('<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>'),ly=N('<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>'),cy=N('<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>'),uy=N('<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>'),dy=N('<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>'),fy=N('<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>');Fy=N('<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>'),Dy=N('<button title="Copy object to clipboard">'),Ly=N('<button title="Remove all items"aria-label="Remove all items">'),Ay=N('<button title="Delete item"aria-label="Delete item">'),Oy=N('<button title="Toggle value"aria-label="Toggle value">'),Ry=N('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),ho=N("<div>"),qy=N("<div><button> <span></span> <span> "),zy=N("<input>"),Iu=N("<span>"),Vy=N("<div><span>:"),Ny=N("<div><div><button> [<!>...<!>]");Eu=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n));return (()=>{var o=Fy();return G(()=>A(o,z(r().expander,n`
1
+ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useEffect,lazy,useContext,useState,useImperativeHandle,cloneElement,Fragment as Fragment$1,Suspense,createContext,useTransition}from'react';import {useQuery,useInfiniteQuery,useQueryClient,useMutation,QueryClient,QueryClientProvider,onlineManager}from'@tanstack/react-query';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {jwtDecode}from'jwt-decode';import {create,useStore,createStore}from'zustand';import {persist,createJSONStorage,devtools,subscribeWithSelector}from'zustand/middleware';import*as jo from'antd';import {Spin,Menu,Modal,Form,Button,Drawer,Result,Table,Card,Input,Select,App,Space,Popconfirm,Switch,InputNumber,theme,Tag,Typography,Empty,Dropdown,Divider,Alert,notification,Row,Col,Breadcrumb,Descriptions,Skeleton,Tooltip,Checkbox,Collapse}from'antd';import {isEqual,has,template,get,last,first}from'lodash-es';import {flushSync}from'react-dom';import {createRoot}from'react-dom/client';import R4 from'ky';import {Link,useLocation,Routes,Route,Navigate,useNavigate,useParams}from'react-router-dom';import {Editor}from'@monaco-editor/react';import {PlusOutlined,LogoutOutlined,UserOutlined,MenuUnfoldOutlined,MenuFoldOutlined,UserAddOutlined,UsergroupAddOutlined,MinusCircleOutlined}from'@ant-design/icons';import z5 from'./logo-L6MFCL6M.png';import wv from'dayjs';var $l=Object.defineProperty;var Ml=e=>{throw TypeError(e)};var Qf=(e,t,n)=>t in e?$l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t)=>()=>(e&&(t=e(e=0)),t);var cn=(e,t)=>{for(var n in t)$l(e,n,{get:t[n],enumerable:!0});};var It=(e,t,n)=>Qf(e,typeof t!="symbol"?t+"":t,n),_l=(e,t,n)=>t.has(e)||Ml("Cannot "+n);var ee=(e,t,n)=>(_l(e,t,"read from private field"),n?n.call(e):t.get(e)),ke=(e,t,n)=>t.has(e)?Ml("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ce=(e,t,n,r)=>(_l(e,t,"write to private field"),t.set(e,n),n);var Fl,jf,ii,Jr=Q(()=>{Fl={getItem:e=>sessionStorage.getItem(e)||localStorage.getItem(e),setItem:(e,t)=>{sessionStorage.setItem(e,t),localStorage.setItem(e,t);},removeItem(e){sessionStorage.removeItem(e),localStorage.removeItem(e);}},jf=0,ii=()=>{let e=Date.now(),t=Math.floor(Math.random()*1e3),n=++jf%1e3;return e*1e6+t*1e3+n};});function Al(e){let t=String(e),n=t.length-1;return te.context.id+(n?String.fromCharCode(96+n):"")+t}function zn(e){te.context=e;}function ip(){return {...te.context,id:te.getNextContextId(),count:0}}function Wt(e,t){let n=Ie,r=ae,o=e.length===0,i=t===void 0?r:t,s=o?Yl:{owned:null,cleanups:null,context:i?i.context:null,owner:i},l=o?e:()=>e(()=>$e(()=>In(s)));ae=s,Ie=null;try{return dt(l,!0)}finally{Ie=n,ae=r;}}function q(e,t){t=t?Object.assign({},pi,t):pi;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(R&&R.running&&R.sources.has(n)?o=o(n.tValue):o=o(n.value)),rc(n,o));return [nc.bind(n),r]}function mi(e,t,n){let r=bi(e,t,!0,mt);ur&&R&&R.running?Ne.push(r):dr(r);}function G(e,t,n){let r=bi(e,t,!1,mt);ur&&R&&R.running?Ne.push(r):dr(r);}function j(e,t,n){Wl=fp;let r=bi(e,t,!1,mt);(!n||!n.render)&&(r.user=!0),et?et.push(r):dr(r);}function F(e,t,n){n=n?Object.assign({},pi,n):pi;let r=bi(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ur&&R&&R.running?(r.tState=mt,Ne.push(r)):dr(r),nc.bind(r)}function ap(e){return e&&typeof e=="object"&&"then"in e}function lp(e,t,n){let r,o,i;r=!0,o=e,i={};let s=null,l=ks,a=null,u=!1,c=!1,d="initialValue"in i,p=typeof r=="function"&&F(r),m=new Set,[f,g]=(i.storage||q)(i.initialValue),[v,h]=q(void 0),[y,b]=q(void 0,{equals:!1}),[w,C]=q(d?"ready":"unresolved");te.context&&(a=te.getNextContextId(),i.ssrLoadFrom==="initial"?l=i.initialValue:te.load&&te.has(a)&&(l=te.load(a)));function S(V,L,H,K){return s===V&&(s=null,K!==void 0&&(d=!0),(V===l||L===l)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(K,{value:L})),l=ks,R&&V&&u?(R.promises.delete(V),u=!1,dt(()=>{R.running=!0,k(L,H);},!1)):k(L,H)),L}function k(V,L){dt(()=>{L===void 0&&g(()=>V),C(L!==void 0?"errored":d?"ready":"unresolved"),h(L);for(let H of m.keys())H.decrement();m.clear();},!1);}function E(){let V=ro,L=f(),H=v();if(H!==void 0&&!s)throw H;return Ie&&!Ie.user&&V&&mi(()=>{y(),s&&(V.resolved?R.promises.add(s):m.has(V)||(V.increment(),m.add(V)));}),L}function I(V=!0){if(V!==!1&&c)return;c=!1;let L=p?p():r;if(u=R&&R.running,L==null||L===!1){S(s,$e(f));return}R&&s&&R.promises.delete(s);let H,K=l!==ks?l:$e(()=>{try{return o(L,{value:f(),refetching:V})}catch(oe){H=oe;}});if(H!==void 0){S(s,void 0,ui(H),L);return}else if(!ap(K))return S(s,K,void 0,L),K;return s=K,"v"in K?(K.s===1?S(s,K.v,void 0,L):S(s,void 0,ui(K.v),L),K):(c=!0,queueMicrotask(()=>c=!1),dt(()=>{C(d?"refreshing":"pending"),b();},!1),K.then(oe=>S(K,oe,void 0,L),oe=>S(K,void 0,ui(oe),L)))}Object.defineProperties(E,{state:{get:()=>w()},error:{get:()=>v()},loading:{get(){let V=w();return V==="pending"||V==="refreshing"}},latest:{get(){if(!d)return E();let V=v();if(V&&!s)throw V;return f()}}});let P=ae;return p?mi(()=>(P=ae,I(!1))):I(!1),[E,{refetch:V=>Zl(P,()=>I(V)),mutate:g}]}function Xl(e){return dt(e,!1)}function $e(e){if(!lr&&Ie===null)return e();let t=Ie;Ie=null;try{return lr?lr.untrack(e):e()}finally{Ie=t;}}function Yt(e,t,n){let r=Array.isArray(e),o,i=n&&n.defer;return s=>{let l;if(r){l=Array(e.length);for(let u=0;u<e.length;u++)l[u]=e[u]();}else l=e();if(i)return i=!1,s;let a=$e(()=>t(l,o,s));return o=l,a}}function Xt(e){j(()=>$e(e));}function W(e){return ae===null||(ae.cleanups===null?ae.cleanups=[e]:ae.cleanups.push(e)),e}function gi(){return ae}function Zl(e,t){let n=ae,r=Ie;ae=e,Ie=null;try{return dt(t,!0)}catch(o){xi(o);}finally{ae=n,Ie=r;}}function Jl(e){if(R&&R.running)return e(),R.done;let t=Ie,n=ae;return Promise.resolve().then(()=>{Ie=t,ae=n;let r;return (ur||ro)&&(r=R||(R={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(o=>r.resolve=o)),r.running=!0),dt(e,!1),Ie=ae=null,r?r.done:void 0})}function ec(){return [cp,Jl]}function Qe(e,t){let n=Symbol("context");return {id:n,Provider:pp(n),defaultValue:e}}function Ke(e){let t;return ae&&ae.context&&(t=ae.context[e.id])!==void 0?t:e.defaultValue}function tc(e){let t=F(e),n=F(()=>Ps(t()));return n.toArray=()=>{let r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function nc(){let e=R&&R.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===mt)dr(this);else {let t=Ne;Ne=null,dt(()=>hi(this),!1),Ne=t;}if(Ie){let t=this.observers?this.observers.length:0;Ie.sources?(Ie.sources.push(this),Ie.sourceSlots.push(t)):(Ie.sources=[this],Ie.sourceSlots=[t]),this.observers?(this.observers.push(Ie),this.observerSlots.push(Ie.sources.length-1)):(this.observers=[Ie],this.observerSlots=[Ie.sources.length-1]);}return e&&R.sources.has(this)?this.tValue:this.value}function rc(e,t,n){let r=R&&R.running&&R.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(R){let o=R.running;(o||!n&&R.sources.has(e))&&(R.sources.add(e),e.tValue=t),o||(e.value=t);}else e.value=t;e.observers&&e.observers.length&&dt(()=>{for(let o=0;o<e.observers.length;o+=1){let i=e.observers[o],s=R&&R.running;s&&R.disposed.has(i)||((s?!i.tState:!i.state)&&(i.pure?Ne.push(i):et.push(i),i.observers&&ic(i)),s?i.tState=mt:i.state=mt);}if(Ne.length>1e6)throw Ne=[],new Error},!1);}return t}function dr(e){if(!e.fn)return;In(e);let t=vi;ql(e,R&&R.running&&R.sources.has(e)?e.tValue:e.value,t),R&&!R.running&&R.sources.has(e)&&queueMicrotask(()=>{dt(()=>{R&&(R.running=!0),Ie=ae=e,ql(e,e.tValue,t),Ie=ae=null;},!1);});}function ql(e,t,n){let r,o=ae,i=Ie;Ie=ae=e;try{r=e.fn(t);}catch(s){return e.pure&&(R&&R.running?(e.tState=mt,e.tOwned&&e.tOwned.forEach(In),e.tOwned=void 0):(e.state=mt,e.owned&&e.owned.forEach(In),e.owned=null)),e.updatedAt=n+1,xi(s)}finally{Ie=i,ae=o;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?rc(e,r,!0):R&&R.running&&e.pure?(R.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n);}function bi(e,t,n,r=mt,o){let i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ae,context:ae?ae.context:null,pure:n};if(R&&R.running&&(i.state=0,i.tState=r),ae===null||ae!==Yl&&(R&&R.running&&ae.pure?ae.tOwned?ae.tOwned.push(i):ae.tOwned=[i]:ae.owned?ae.owned.push(i):ae.owned=[i]),lr&&i.fn){let[s,l]=q(void 0,{equals:!1}),a=lr.factory(i.fn,l);W(()=>a.dispose());let u=()=>Jl(l).then(()=>c.dispose()),c=lr.factory(i.fn,u);i.fn=d=>(s(),R&&R.running?c.track(d):a.track(d));}return i}function oo(e){let t=R&&R.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===no)return hi(e);if(e.suspense&&$e(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<vi);){if(t&&R.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let o=e,i=n[r+1];for(;(o=o.owner)&&o!==i;)if(R.disposed.has(o))return}if((t?e.tState:e.state)===mt)dr(e);else if((t?e.tState:e.state)===no){let o=Ne;Ne=null,dt(()=>hi(e,n[0]),!1),Ne=o;}}}function dt(e,t){if(Ne)return e();let n=!1;t||(Ne=[]),et?n=!0:et=[],vi++;try{let r=e();return up(n),r}catch(r){n||(et=null),Ne=null,xi(r);}}function up(e){if(Ne&&(ur&&R&&R.running?dp(Ne):oc(Ne),Ne=null),e)return;let t;if(R){if(!R.promises.size&&!R.queue.size){let r=R.sources,o=R.disposed;et.push.apply(et,R.effects),t=R.resolve;for(let i of et)"tState"in i&&(i.state=i.tState),delete i.tState;R=null,dt(()=>{for(let i of o)In(i);for(let i of r){if(i.value=i.tValue,i.owned)for(let s=0,l=i.owned.length;s<l;s++)In(i.owned[s]);i.tOwned&&(i.owned=i.tOwned),delete i.tValue,delete i.tOwned,i.tState=0;}Rl(!1);},!1);}else if(R.running){R.running=!1,R.effects.push.apply(R.effects,et),et=null,Rl(!0);return}}let n=et;et=null,n.length&&dt(()=>Wl(n),!1),t&&t();}function oc(e){for(let t=0;t<e.length;t++)oo(e[t]);}function dp(e){for(let t=0;t<e.length;t++){let n=e[t],r=R.queue;r.has(n)||(r.add(n),ur(()=>{r.delete(n),dt(()=>{R.running=!0,oo(n);},!1),R&&(R.running=!1);}));}}function fp(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:oo(r);}if(te.context){if(te.count){te.effects||(te.effects=[]),te.effects.push(...e.slice(0,n));return}zn();}for(te.effects&&(te.done||!te.count)&&(e=[...te.effects,...e],n+=te.effects.length,delete te.effects),t=0;t<n;t++)oo(e[t]);}function hi(e,t){let n=R&&R.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let o=e.sources[r];if(o.sources){let i=n?o.tState:o.state;i===mt?o!==t&&(!o.updatedAt||o.updatedAt<vi)&&oo(o):i===no&&hi(o,t);}}}function ic(e){let t=R&&R.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=no:r.state=no,r.pure?Ne.push(r):et.push(r),r.observers&&ic(r));}}function In(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){let i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)In(e.tOwned[t]);delete e.tOwned;}if(R&&R.running&&e.pure)sc(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)In(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}R&&R.running?e.tState=0:e.state=0;}function sc(e,t){if(t||(e.tState=0,R.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)sc(e.owned[n]);}function ui(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function zl(e,t,n){try{for(let r of t)r(e);}catch(r){xi(r,n&&n.owner||null);}}function xi(e,t=ae){let n=Ol&&t&&t.context&&t.context[Ol],r=ui(e);if(!n)throw r;et?et.push({fn(){zl(r,n,t);},state:mt}):zl(r,n,t);}function Ps(e){if(typeof e=="function"&&!e.length)return Ps(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=Ps(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r);}return t}return e}function pp(e,t){return function(r){let o;return G(()=>o=$e(()=>(ae.context={...ae.context,[e]:r.value},tc(()=>r.children))),void 0),o}}function yi(e){for(let t=0;t<e.length;t++)e[t]();}function mp(e,t,n={}){let r=[],o=[],i=[],s=0,l=t.length>1?[]:null;return W(()=>yi(i)),()=>{let a=e()||[],u=a.length,c,d;return a[co],$e(()=>{let m,f,g,v,h,y,b,w,C;if(u===0)s!==0&&(yi(i),i=[],r=[],o=[],s=0,l&&(l=[])),n.fallback&&(r=[Ts],o[0]=Wt(S=>(i[0]=S,n.fallback())),s=1);else if(s===0){for(o=new Array(u),d=0;d<u;d++)r[d]=a[d],o[d]=Wt(p);s=u;}else {for(g=new Array(u),v=new Array(u),l&&(h=new Array(u)),y=0,b=Math.min(s,u);y<b&&r[y]===a[y];y++);for(b=s-1,w=u-1;b>=y&&w>=y&&r[b]===a[w];b--,w--)g[w]=o[b],v[w]=i[b],l&&(h[w]=l[b]);for(m=new Map,f=new Array(w+1),d=w;d>=y;d--)C=a[d],c=m.get(C),f[d]=c===void 0?-1:c,m.set(C,d);for(c=y;c<=b;c++)C=r[c],d=m.get(C),d!==void 0&&d!==-1?(g[d]=o[c],v[d]=i[c],l&&(h[d]=l[c]),d=f[d],m.set(C,d)):i[c]();for(d=y;d<u;d++)d in g?(o[d]=g[d],i[d]=v[d],l&&(l[d]=h[d],l[d](d))):o[d]=Wt(p);o=o.slice(0,s=u),r=a.slice(0);}return o});function p(m){if(i[d]=m,l){let[f,g]=q(d);return l[d]=g,t(a[d],f)}return t(a[d])}}}function gp(e,t,n={}){let r=[],o=[],i=[],s=[],l=0,a;return W(()=>yi(i)),()=>{let u=e()||[],c=u.length;return u[co],$e(()=>{if(c===0)return l!==0&&(yi(i),i=[],r=[],o=[],l=0,s=[]),n.fallback&&(r=[Ts],o[0]=Wt(p=>(i[0]=p,n.fallback())),l=1),o;for(r[0]===Ts&&(i[0](),i=[],r=[],o=[],l=0),a=0;a<c;a++)a<r.length&&r[a]!==u[a]?s[a](()=>u[a]):a>=r.length&&(o[a]=Wt(d));for(;a<r.length;a++)i[a]();return l=s.length=i.length=c,r=u.slice(0),o=o.slice(0,l)});function d(p){i[a]=p;let[m,f]=q(u[a]);return s[a]=f,t(m,a)}}}function x(e,t){if(hp&&te.context){let n=te.context;zn(ip());let r=$e(()=>e(t||{}));return zn(n),r}return $e(()=>e(t||{}))}function ai(){return !0}function Is(e){return (e=typeof e=="function"?e():e)?e:{}}function yp(){for(let e=0,t=this.length;e<t;++e){let n=this[e]();if(n!==void 0)return n}}function re(...e){let t=!1;for(let s=0;s<e.length;s++){let l=e[s];t=t||!!l&&fi in l,e[s]=typeof l=="function"?(t=!0,F(l)):l;}if(jl&&t)return new Proxy({get(s){for(let l=e.length-1;l>=0;l--){let a=Is(e[l])[s];if(a!==void 0)return a}},has(s){for(let l=e.length-1;l>=0;l--)if(s in Is(e[l]))return !0;return !1},keys(){let s=[];for(let l=0;l<e.length;l++)s.push(...Object.keys(Is(e[l])));return [...new Set(s)]}},$s);let n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){let l=e[s];if(!l)continue;let a=Object.getOwnPropertyNames(l);for(let u=a.length-1;u>=0;u--){let c=a[u];if(c==="__proto__"||c==="constructor")continue;let d=Object.getOwnPropertyDescriptor(l,c);if(!r[c])r[c]=d.get?{enumerable:!0,configurable:!0,get:yp.bind(n[c]=[d.get.bind(l)])}:d.value!==void 0?d:void 0;else {let p=n[c];p&&(d.get?p.push(d.get.bind(l)):d.value!==void 0&&p.push(()=>d.value));}}}let o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){let l=i[s],a=r[l];a&&a.get?Object.defineProperty(o,l,a):o[l]=a?a.value:void 0;}return o}function Se(e,...t){if(jl&&fi in e){let o=new Set(t.length>1?t.flat():t[0]),i=t.map(s=>new Proxy({get(l){return s.includes(l)?e[l]:void 0},has(l){return s.includes(l)&&l in e},keys(){return s.filter(l=>l in e)}},$s));return i.push(new Proxy({get(s){return o.has(s)?void 0:e[s]},has(s){return o.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.has(s))}},$s)),i}let n={},r=t.map(()=>({}));for(let o of Object.getOwnPropertyNames(e)){let i=Object.getOwnPropertyDescriptor(e,o),s=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable,l=!1,a=0;for(let u of t)u.includes(o)&&(l=!0,s?r[a][o]=i.value:Object.defineProperty(r[a],o,i)),++a;l||(s?n[o]=i.value:Object.defineProperty(n,o,i));}return [...r,n]}function As(e){let t,n,r=o=>{let i=te.context;if(i){let[l,a]=q();te.count||(te.count=0),te.count++,(n||(n=e())).then(u=>{!te.done&&zn(i),te.count--,a(()=>u.default),zn();}),t=l;}else if(!t){let[l]=lp(()=>(n||(n=e())).then(a=>a.default));t=l;}let s;return F(()=>(s=t())?$e(()=>{if(!i||te.done)return s(o);let l=te.context;zn(i);let a=s(o);return zn(l),a}):"")};return r.preload=()=>n||((n=e()).then(o=>t=()=>o.default),n),r}function gt(){return te.context?te.getNextContextId():`cl-${vp++}`}function lc(e){let t="fallback"in e&&{fallback:()=>e.fallback};return F(mp(()=>e.each,e.children,t||void 0))}function cc(e){let t="fallback"in e&&{fallback:()=>e.fallback};return F(gp(()=>e.each,e.children,t||void 0))}function B(e){let t=e.keyed,n=F(()=>e.when,void 0,void 0),r=t?n:F(n,void 0,{equals:(o,i)=>!o==!i});return F(()=>{let o=r();if(o){let i=e.children;return typeof i=="function"&&i.length>0?$e(()=>i(t?o:()=>{if(!$e(r))throw ac("Show");return n()})):i}return e.fallback},void 0,void 0)}function uc(e){let t=tc(()=>e.children),n=F(()=>{let r=t(),o=Array.isArray(r)?r:[r],i=()=>{};for(let s=0;s<o.length;s++){let l=s,a=o[s],u=i,c=F(()=>u()?void 0:a.when,void 0,void 0),d=a.keyed?c:F(c,void 0,{equals:(p,m)=>!p==!m});i=()=>u()||(d()?[l,c,a]:void 0);}return i});return F(()=>{let r=n()();if(!r)return e.fallback;let[o,i,s]=r,l=s.children;return typeof l=="function"&&l.length>0?$e(()=>l(s.keyed?i():()=>{if($e(n)()?.[0]!==o)throw ac("Match");return i()})):l},void 0,void 0)}function wi(e){return e}function kp(e,t){let n=Sp[e];return typeof n=="object"?n[t]?n.$:void 0:n}function Tp(e,t,n){let r=n.length,o=t.length,i=r,s=0,l=0,a=t[o-1].nextSibling,u=null;for(;s<o||l<i;){if(t[s]===n[l]){s++,l++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){let c=i<r?l?n[l-1].nextSibling:n[i-l]:a;for(;l<i;)e.insertBefore(n[l++],c);}else if(i===l)for(;s<o;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[l]===t[o-1]){let c=t[--o].nextSibling;e.insertBefore(n[l++],t[s++].nextSibling),e.insertBefore(n[--i],c),t[o]=n[i];}else {if(!u){u=new Map;let d=l;for(;d<i;)u.set(n[d],d++);}let c=u.get(t[s]);if(c!=null)if(l<c&&c<i){let d=s,p=1,m;for(;++d<o&&d<i&&!((m=u.get(t[d]))==null||m!==c+p);)p++;if(p>c-l){let f=t[s];for(;l<c;)e.insertBefore(n[l++],f);}else e.replaceChild(n[l++],t[s++]);}else s++;else t[s++].remove();}}}function Os(e,t,n,r={}){let o;return Wt(i=>{o=i,t===document?e():T(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{o(),t.textContent="";}}function N(e,t,n,r){let o,i=()=>{let l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},s=t?()=>$e(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function uo(e,t=window.document){let n=t[eo]||(t[eo]=new Set);for(let r=0,o=e.length;r<o;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,pc));}}function fc(e=window.document){if(e[eo]){for(let t of e[eo].keys())e.removeEventListener(t,pc);delete e[eo];}}function D(e,t,n){Nn(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function $p(e,t,n,r){Nn(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r));}function Mp(e,t,n){Nn(e)||(n?e.setAttribute(t,""):e.removeAttribute(t));}function A(e,t){Nn(e)||(t==null?e.removeAttribute("class"):e.className=t);}function Rs(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i));}else e.addEventListener(t,n,typeof n!="function"&&n);}function _p(e,t,n={}){let r=Object.keys(t||{}),o=Object.keys(n),i,s;for(i=0,s=o.length;i<s;i++){let l=o[i];!l||l==="undefined"||t[l]||(Vl(e,l,!1),delete n[l]);}for(i=0,s=r.length;i<s;i++){let l=r[i],a=!!t[l];!l||l==="undefined"||n[l]===a||!a||(Vl(e,l,!0),n[l]=a);}return n}function Fp(e,t,n){if(!t)return n?D(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function qs(e,t={},n,r){let o={};return r||G(()=>o.children=io(e,t.children,o.children)),G(()=>typeof t.ref=="function"&&Vn(t.ref,e)),G(()=>Dp(e,t,n,!0,o,!0)),o}function Vn(e,t,n){return $e(()=>e(t,n))}function T(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return io(e,t,r,n);G(o=>io(e,t(),o,n),r);}function Dp(e,t,n,r,o={},i=!1){t||(t={});for(let s in o)if(!(s in t)){if(s==="children")continue;o[s]=Nl(e,s,null,o[s],n,i,t);}for(let s in t){if(s==="children")continue;let l=t[s];o[s]=Nl(e,s,l,o[s],n,i,t);}}function Lp(e){let t,n;return !Nn()||!(t=te.registry.get(n=Op()))?e():(te.completed&&te.completed.add(t),te.registry.delete(n),t)}function Nn(e){return !!te.context&&!te.done&&(!e||e.isConnected)}function Ap(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Vl(e,t,n){let r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n);}function Nl(e,t,n,r,o,i,s){let l,a,u,c,d;if(t==="style")return Fp(e,n,r);if(t==="classList")return _p(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){let p=t.slice(3);r&&e.removeEventListener(p,r,typeof r!="function"&&r),n&&e.addEventListener(p,n,typeof n!="function"&&n);}else if(t.slice(0,10)==="oncapture:"){let p=t.slice(10);r&&e.removeEventListener(p,r,!0),n&&e.addEventListener(p,n,!0);}else if(t.slice(0,2)==="on"){let p=t.slice(2).toLowerCase(),m=Ip.has(p);if(!m&&r){let f=Array.isArray(r)?r[0]:r;e.removeEventListener(p,f);}(m||n)&&(Rs(e,p,n,m),m&&uo([p]));}else if(t.slice(0,5)==="attr:")D(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")Mp(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(u=wp.has(t))||!o&&((c=kp(t,e.tagName))||(a=xp.has(t)))||(l=e.nodeName.includes("-")||"is"in s)){if(d)t=t.slice(5),a=!0;else if(Nn(e))return n;t==="class"||t==="className"?A(e,n):l&&!a&&!u?e[Ap(t)]=n:e[c||t]=n;}else {let p=o&&t.indexOf(":")>-1&&Pp[t.split(":")[0]];p?$p(e,p,t,n):D(e,Cp[t]||t,n);}return n}function pc(e){if(te.registry&&te.events&&te.events.find(([a,u])=>u===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),s=()=>{let a=t[n];if(a&&!t.disabled){let u=t[`${n}Data`];if(u!==void 0?a.call(t,u,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},l=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),te.registry&&!te.done&&(te.done=_$HY.done=!0),e.composedPath){let a=e.composedPath();i(a[0]);for(let u=0;u<a.length-2&&(t=a[u],!!s());u++){if(t._$host){t=t._$host,l();break}if(t.parentNode===o)break}}else l();i(r);}function io(e,t,n,r,o){let i=Nn(e);if(i){!n&&(n=[...e.childNodes]);let a=[];for(let u=0;u<n.length;u++){let c=n[u];c.nodeType===8&&c.data.slice(0,2)==="!$"?c.remove():a.push(c);}n=a;}for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(i||s==="number"&&(t=t.toString(),t===n))return n;if(l){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=ir(e,n,r,a);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||s==="boolean"){if(i)return n;n=ir(e,n,r);}else {if(s==="function")return G(()=>{let a=t();for(;typeof a=="function";)a=a();n=io(e,a,n,r);}),()=>n;if(Array.isArray(t)){let a=[],u=n&&Array.isArray(n);if(Ms(a,t,n,o))return G(()=>n=io(e,a,n,r,!0)),()=>n;if(i){if(!a.length)return n;if(r===void 0)return n=[...e.childNodes];let c=a[0];if(c.parentNode!==e)return n;let d=[c];for(;(c=c.nextSibling)!==r;)d.push(c);return n=d}if(a.length===0){if(n=ir(e,n,r),l)return n}else u?n.length===0?Kl(e,a,r):Tp(e,n,a):(n&&ir(e),Kl(e,a));n=a;}else if(t.nodeType){if(i&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=ir(e,n,r,t);ir(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function Ms(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let l=t[i],a=n&&n[e.length],u;if(!(l==null||l===!0||l===!1))if((u=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))o=Ms(e,l,a)||o;else if(u==="function")if(r){for(;typeof l=="function";)l=l();o=Ms(e,Array.isArray(l)?l:[l],Array.isArray(a)?a:[a])||o;}else e.push(l),o=!0;else {let c=String(l);a&&a.nodeType===3&&a.data===c?e.push(a):e.push(document.createTextNode(c));}}return o}function Kl(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n);}function ir(e,t,n,r){if(n===void 0)return e.textContent="";let o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){let l=t[s];if(o!==l){let a=l.parentNode===e;!i&&!s?a?e.replaceChild(o,l):e.insertBefore(o,n):a&&l.remove();}else i=!0;}}else e.insertBefore(o,n);return [o]}function Op(){return te.getNextContextId()}function mc(e,t=!1){return t?document.createElementNS(Rp,e):document.createElement(e)}function zs(e){let{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=gi(),i,s=!!te.context;return j(()=>{s&&(gi().user=s=!1),i||(i=Zl(o,()=>F(()=>e.children)));let l=r();if(l instanceof HTMLHeadElement){let[a,u]=q(!1),c=()=>u(!0);Wt(d=>T(l,()=>a()?d():i(),null)),W(c);}else {let a=mc(e.isSVG?"g":"div",e.isSVG),u=t&&a.attachShadow?a.attachShadow({mode:"open"}):a;Object.defineProperty(a,"_$host",{get(){return n.parentNode},configurable:!0}),T(u,i),l.appendChild(a),e.ref&&e.ref(a),W(()=>l.removeChild(a));}},void 0,{render:!s}),n}function qp(e,t){let n=F(e);return F(()=>{let r=n();switch(typeof r){case"function":return $e(()=>r(t));case"string":let o=Ep.has(r),i=te.context?Lp():mc(r,o);return qs(i,t,o),i}})}function gc(e){let[,t]=Se(e,["component"]);return qp(()=>e.component,t)}function Np(e){if("values"in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Kp(e,t){let n=Np(e);if("find"in n)return n.find(t);let r=n;for(let o=0;o<r.length;o++){let i=r[o];if(t(i))return i}}function cr(e,t){Object.entries(e).forEach(([n,r])=>t(r,n));}function di(e,t){return e.indexOf(t)!==-1}function Bl(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}function jt(e,t,n,r){return {isApplicable:e,annotation:t,transform:n,untransform:r}}function Ci(e,t,n,r){return {isApplicable:e,annotation:t,transform:n,untransform:r}}function Sc(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function Pc(e){if(di(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(di(e,"prototype"))throw new Error("prototype is not allowed as a property");if(di(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Ds(e,t,n=[]){if(!e)return;if(!En(e)){cr(e,(i,s)=>Ds(i,t,[...n,...to(s)]));return}let[r,o]=e;o&&cr(o,(i,s)=>{Ds(i,t,[...n,...to(s)]);}),t(r,n);}function a2(e,t,n){return Ds(t,(r,o)=>{e=Fs(e,o,i=>i2(i,r,n));}),e}function l2(e,t){function n(r,o){let i=s2(e,to(o));r.map(to).forEach(s=>{e=Fs(e,s,()=>i);});}if(En(t)){let[r,o]=t;r.forEach(i=>{e=Fs(e,to(i),()=>e);}),o&&cr(o,n);}else cr(t,n);return e}function u2(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t]);}function d2(e,t){let n={},r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(l=>l.map(String)).sort((l,a)=>l.length-a.length));let[i,...s]=o;i.length===0?r=s.map(Es):n[Es(i)]=s.map(Es);}),r?_s(n)?[r]:[r,n]:_s(n)?void 0:n}function $c(e){return Object.prototype.toString.call(e).slice(8,-1)}function Hl(e){return $c(e)==="Array"}function f2(e){if($c(e)!=="Object")return !1;let t=Object.getPrototypeOf(e);return !!t&&t.constructor===Object&&t===Object.prototype}function p2(e,t,n,r,o){let i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0});}function Ls(e,t={}){if(Hl(e))return e.map(o=>Ls(o,t));if(!f2(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return [...n,...r].reduce((o,i)=>{if(Hl(t.props)&&!t.props.includes(i))return o;let s=e[i],l=Ls(s,t);return p2(o,i,l,e,t.nonenumerable),o},{})}function Kn(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function _c(e,t){return `${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function Fc({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":n?"yellow":"green":"gray"}function Bn({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Dc(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var te,sp,fi,jl,co,pi,Ol,Wl,mt,no,Yl,ks,ae,R,ur,lr,Ie,Ne,et,vi,cp,Rl,ro,Ts,hp,$s,vp,ac,dc,bp,xp,wp,Cp,Sp,Ip,Ep,Pp,ze,eo,tt,Rp,zp,hc,Vp,Bp,Gp,yc,Up,so,_s,En,Hp,Qp,jp,Wp,ao,lo,vc,Yp,Xp,Gl,Zp,Jp,e2,t2,n2,bc,Es,to,xc,wc,r2,Cc,kc,Ic,o2,Ul,Ec,i2,sr,s2,Fs,c2,Tc,ge,Vs,Mc,fo,li,m2,Lc,g2,Si,ci,Ac,h2,ki,Ns,Ii,kn,ar,Ks,po=Q(()=>{te={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Al(this.context.count)},getNextContextId(){return Al(this.context.count++)}};sp=(e,t)=>e===t,fi=Symbol("solid-proxy"),jl=typeof Proxy=="function",co=Symbol("solid-track"),pi={equals:sp},Ol=null,Wl=oc,mt=1,no=2,Yl={owned:null,cleanups:null,context:null,owner:null},ks={},ae=null,R=null,ur=null,lr=null,Ie=null,Ne=null,et=null,vi=0;[cp,Rl]=q(!1);Ts=Symbol("fallback");hp=!1;$s={get(e,t,n){return t===fi?n:e.get(t)},has(e,t){return t===fi?!0:e.has(t)},set:ai,deleteProperty:ai,getOwnPropertyDescriptor(e,t){return {configurable:!0,enumerable:!0,get(){return e.get(t)},set:ai,deleteProperty:ai}},ownKeys(e){return e.keys()}};vp=0;ac=e=>`Stale read from <${e}>.`;dc=void 0,bp=["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"],xp=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline",...bp]),wp=new Set(["innerHTML","textContent","innerText","children"]),Cp=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Sp=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});Ip=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Ep=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"]),Pp={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},ze=e=>F(()=>e());eo="_$DX_DELEGATE";tt=!1,Rp="http://www.w3.org/2000/svg";zp=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();}},hc=class{constructor(e){this.generateIdentifier=e,this.kv=new zp;}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)}},Vp=class extends hc{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)}};Bp=class{constructor(){this.transfomers={};}register(e){this.transfomers[e.name]=e;}findApplicable(e){return Kp(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Gp=e=>Object.prototype.toString.call(e).slice(8,-1),yc=e=>typeof e>"u",Up=e=>e===null,so=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,_s=e=>so(e)&&Object.keys(e).length===0,En=e=>Array.isArray(e),Hp=e=>typeof e=="string",Qp=e=>typeof e=="number"&&!isNaN(e),jp=e=>typeof e=="boolean",Wp=e=>e instanceof RegExp,ao=e=>e instanceof Map,lo=e=>e instanceof Set,vc=e=>Gp(e)==="Symbol",Yp=e=>e instanceof Date&&!isNaN(e.valueOf()),Xp=e=>e instanceof Error,Gl=e=>typeof e=="number"&&isNaN(e),Zp=e=>jp(e)||Up(e)||yc(e)||Qp(e)||Hp(e)||vc(e),Jp=e=>typeof e=="bigint",e2=e=>e===1/0||e===-1/0,t2=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),n2=e=>e instanceof URL,bc=e=>e.replace(/\./g,"\\."),Es=e=>e.map(String).map(bc).join("."),to=e=>{let t=[],n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i;}let r=n;return t.push(r),t};xc=[jt(yc,"undefined",()=>null,()=>{}),jt(Jp,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),jt(Yp,"Date",e=>e.toISOString(),e=>new Date(e)),jt(Xp,"Error",(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r];}),n},(e,t)=>{let n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r];}),n}),jt(Wp,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),jt(lo,"set",e=>[...e.values()],e=>new Set(e)),jt(ao,"map",e=>[...e.entries()],e=>new Map(e)),jt(e=>Gl(e)||e2(e),"number",e=>Gl(e)?"NaN":e>0?"Infinity":"-Infinity",Number),jt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),jt(n2,"URL",e=>e.toString(),e=>new URL(e))];wc=Ci((e,t)=>vc(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),r2=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Cc=Ci(t2,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let n=r2[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});kc=Ci(Sc,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return {...e};let r={};return n.forEach(o=>{r[o]=e[o];}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Ic=Ci((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),o2=[kc,wc,Ic,Cc],Ul=(e,t)=>{let n=Bl(o2,o=>o.isApplicable(e,t));if(n)return {value:n.transform(e,t),type:n.annotation(e,t)};let r=Bl(xc,o=>o.isApplicable(e,t));if(r)return {value:r.transform(e,t),type:r.annotation}},Ec={};xc.forEach(e=>{Ec[e.annotation]=e;});i2=(e,t,n)=>{if(En(t))switch(t[0]){case"symbol":return wc.untransform(e,t,n);case"class":return kc.untransform(e,t,n);case"custom":return Ic.untransform(e,t,n);case"typed-array":return Cc.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else {let r=Ec[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},sr=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};s2=(e,t)=>{Pc(t);for(let n=0;n<t.length;n++){let r=t[n];if(lo(e))e=sr(e,+r);else if(ao(e)){let o=+r,i=+t[++n]==0?"key":"value",s=sr(e,o);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r];}return e},Fs=(e,t,n)=>{if(Pc(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){let s=t[i];if(En(r)){let l=+s;r=r[l];}else if(so(r))r=r[s];else if(lo(r)){let l=+s;r=sr(r,l);}else if(ao(r)){if(i===t.length-2)break;let a=+s,u=+t[++i]==0?"key":"value",c=sr(r,a);switch(u){case"key":r=c;break;case"value":r=r.get(c);break}}}let o=t[t.length-1];if(En(r)?r[+o]=n(r[+o]):so(r)&&(r[o]=n(r[o])),lo(r)){let i=sr(r,+o),s=n(i);i!==s&&(r.delete(i),r.add(s));}if(ao(r)){let i=+t[t.length-2],s=sr(r,i);switch(+o==0?"key":"value"){case"key":{let a=n(s);r.set(a,r.get(s)),a!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};c2=(e,t)=>so(e)||En(e)||ao(e)||lo(e)||Sc(e,t);Tc=(e,t,n,r,o=[],i=[],s=new Map)=>{let l=Zp(e);if(!l){u2(e,o,t);let m=s.get(e);if(m)return r?{transformedValue:null}:m}if(!c2(e,n)){let m=Ul(e,n),f=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:e};return l||s.set(e,f),f}if(di(i,e))return {transformedValue:null};let a=Ul(e,n),u=a?.value??e,c=En(u)?[]:{},d={};cr(u,(m,f)=>{if(f==="__proto__"||f==="constructor"||f==="prototype")throw new Error(`Detected property ${f}. This is a prototype pollution risk, please remove it from your object.`);let g=Tc(m,t,n,r,[...o,f],[...i,e],s);c[f]=g.transformedValue,En(g.annotations)?d[f]=g.annotations:so(g.annotations)&&cr(g.annotations,(v,h)=>{d[bc(f)+"."+h]=v;});});let p=_s(d)?{transformedValue:c,annotations:a?[a.type]:void 0}:{transformedValue:c,annotations:a?[a.type,d]:d};return l||s.set(e,p),p};ge=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Vp,this.symbolRegistry=new hc(t=>t.description??""),this.customTransformerRegistry=new Bp,this.allowedErrorProps=[],this.dedupe=e;}serialize(e){let t=new Map,n=Tc(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let o=d2(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){let{json:t,meta:n}=e,r=Ls(t);return n?.values&&(r=a2(r,n.values,this)),n?.referentialEqualities&&(r=l2(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t);}registerSymbol(e,t){this.symbolRegistry.register(e,t);}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e});}allowErrorProps(...e){this.allowedErrorProps.push(...e);}};ge.defaultInstance=new ge;ge.serialize=ge.defaultInstance.serialize.bind(ge.defaultInstance);ge.deserialize=ge.defaultInstance.deserialize.bind(ge.defaultInstance);ge.stringify=ge.defaultInstance.stringify.bind(ge.defaultInstance);ge.parse=ge.defaultInstance.parse.bind(ge.defaultInstance);ge.registerClass=ge.defaultInstance.registerClass.bind(ge.defaultInstance);ge.registerSymbol=ge.defaultInstance.registerSymbol.bind(ge.defaultInstance);ge.registerCustom=ge.defaultInstance.registerCustom.bind(ge.defaultInstance);ge.allowErrorProps=ge.defaultInstance.allowErrorProps.bind(ge.defaultInstance);Vs=ge.serialize;ge.deserialize;Mc=ge.stringify;ge.parse;ge.registerClass;ge.registerCustom;ge.registerSymbol;ge.allowErrorProps;fo=(e,t=!1)=>{let{json:n}=Vs(e);return JSON.stringify(n,null,t?2:void 0)},li=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,m2=(e,t)=>e.queryHash.localeCompare(t.queryHash),Lc=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,g2=(e,t)=>li(e)===li(t)?Lc(e,t):li(e)>li(t)?1:-1,Si={status:g2,"query hash":m2,"last updated":Lc},ci=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Ac=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,h2=(e,t)=>ci(e)===ci(t)?Ac(e,t):ci(e)>ci(t)?1:-1,ki={status:h2,"last updated":Ac},Ns=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Ii=()=>{let[e,t]=q("dark");return Xt(()=>{let n=window.matchMedia("(prefers-color-scheme: dark)");t(n.matches?"dark":"light");let r=o=>{t(o.matches?"dark":"light");};n.addEventListener("change",r),W(()=>n.removeEventListener("change",r));}),e},kn=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){let r=new Map(e);if(t.length===1)return r.set(t[0],n),r;let[o,...i]=t;return r.set(o,kn(r.get(o),i,n)),r}if(e instanceof Set){let r=kn(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=kn(r[o],i,n),r}if(e instanceof Object){let r={...e};if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=kn(r[o],i,n),r}return e},ar=(e,t)=>{if(e instanceof Map){let n=new Map(e);if(t.length===1)return n.delete(t[0]),n;let[r,...o]=t;return n.set(r,ar(n.get(r),o)),n}if(e instanceof Set){let n=ar(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){let n=[...e];if(t.length===1)return n.filter((i,s)=>s.toString()!==t[0]);let[r,...o]=t;return n[r]=ar(n[r],o),n}if(e instanceof Object){let n={...e};if(t.length===1)return delete n[t[0]],n;let[r,...o]=t;return n[r]=ar(n[r],o),n}return e},Ks=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let r=document.createElement("style"),o=document.createTextNode("");r.appendChild(o),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r);};});function w2(e){return (...t)=>{for(let n of e)n&&n(...t);}}function C2(e,...t){return typeof e=="function"?e(...t):e}function k2(e,t,n,r){let o=e.length,i=t.length,s=0;if(!i){for(;s<o;s++)n(e[s]);return}if(!o){for(;s<i;s++)r(t[s]);return}for(;s<i&&t[s]===e[s];s++);let l,a;t=t.slice(s),e=e.slice(s);for(l of t)e.includes(l)||r(l);for(a of e)t.includes(a)||n(a);}function I2(e){let[t,n]=q(),r=e?.throw?(p,m)=>{throw n(p instanceof Error?p:new Error(m)),p}:(p,m)=>{n(p instanceof Error?p:new Error(m));},o=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),i=e?.prefix?`${e.prefix}.`:"",s=new Map,l=new Proxy({},{get(p,m){let f=s.get(m);f||(f=q(void 0,{equals:!1}),s.set(m,f)),f[0]();let g=o.reduce((v,h)=>{if(v!==null||!h)return v;try{return h.getItem(`${i}${m}`)}catch(y){return r(y,`Error reading ${i}${m} from ${h.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,m,e.options):g}}),a=(p,m,f)=>{let g=e?.serializer?e.serializer(m,p,f??e.options):m,v=`${i}${p}`;o.forEach(y=>{try{y.getItem(v)!==g&&y.setItem(v,g);}catch(b){r(b,`Error setting ${i}${p} to ${g} in ${y.name}`);}});let h=s.get(p);h&&h[1]();},u=p=>o.forEach(m=>{try{m.removeItem(`${i}${p}`);}catch(f){r(f,`Error removing ${i}${p} from ${m.name}`);}}),c=()=>o.forEach(p=>{try{p.clear();}catch(m){r(m,`Error clearing ${p.name}`);}}),d=()=>{let p={},m=(f,g)=>{if(!p.hasOwnProperty(f)){let v=g&&e?.deserializer?e.deserializer(g,f,e.options):g;v&&(p[f]=v);}};return o.forEach(f=>{if(typeof f.getAll=="function"){let g;try{g=f.getAll();}catch(v){r(v,`Error getting all values from in ${f.name}`);}for(let v of g)m(v,g[v]);}else {let g=0,v;try{for(;v=f.key(g++);)p.hasOwnProperty(v)||m(v,f.getItem(v));}catch(h){r(h,`Error getting all values from ${f.name}`);}}}),p};return e?.sync!==!1&&Xt(()=>{let p=m=>{let f=!1;o.forEach(g=>{try{g!==m.storageArea&&m.key&&m.newValue!==g.getItem(m.key)&&(m.newValue?g.setItem(m.key,m.newValue):g.removeItem(m.key),f=!0);}catch(v){r(v,`Error synching api ${g.name} from storage event (${m.key}=${m.newValue})`);}}),f&&m.key&&s.get(m.key)?.[1]();};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),W(()=>globalThis.removeEventListener("storage",p))):(o.forEach(m=>m.addEventListener?.("storage",p)),W(()=>o.forEach(m=>m.removeEventListener?.("storage",p))));}),[l,a,{clear:c,error:t,remove:u,toJSON:d}]}function U(){return Ke(ko)}function Ye(){return Ke(Io)}function A2(e){return e.replace(L2,t=>Du[t])}function zc(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:ft.MATCHES,!n.accessors){let s=Vc(e,t,n);return {rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}let o=z2(e,n.accessors),i={rankedValue:e,rank:ft.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s<o.length;s++){let l=o[s],a=Vc(l.itemValue,t,n),{minRanking:u,maxRanking:c,threshold:d=n.threshold}=l.attributes;a<u&&a>=ft.MATCHES?a=u:a>c&&(a=c),a=Math.min(a,c),a>=d&&a>i.rank&&(i.rank=a,i.passed=!0,i.accessorIndex=s,i.accessorThreshold=d,i.rankedValue=l.itemValue);}return i}function Vc(e,t,n){return e=Nc(e,n),t=Nc(t,n),t.length>e.length?ft.NO_MATCH:e===t?ft.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ft.EQUAL:e.startsWith(t)?ft.STARTS_WITH:e.includes(` ${t}`)?ft.WORD_STARTS_WITH:e.includes(t)?ft.CONTAINS:t.length===1?ft.NO_MATCH:O2(e).includes(t)?ft.ACRONYM:R2(e,t))}function O2(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(i=>{t+=i.substr(0,1);});}),t}function R2(e,t){let n=0,r=0;function o(a,u,c){for(let d=c,p=u.length;d<p;d++)if(u[d]===a)return n+=1,d+1;return -1}function i(a){let u=1/a,c=n/t.length;return ft.MATCHES+c*u}let s=o(t[0],e,0);if(s<0)return ft.NO_MATCH;r=s;for(let a=1,u=t.length;a<u;a++){let c=t[a];if(r=o(c,e,r),!(r>-1))return ft.NO_MATCH}let l=r-s;return i(l)}function Nc(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=A2(e)),e}function q2(e,t){let n=t;typeof t=="object"&&(n=t.accessor);let r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function z2(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let i=t[r],s=V2(i),l=q2(e,i);for(let a=0,u=l.length;a<u;a++)n.push({itemValue:l[a],attributes:s});}return n}function V2(e){return typeof e=="function"?Kc:{...Kc,...e}}function ce(e){let t=this||{},n=e.call?e(t.p):e;return U2(n.unshift?n.raw?H2(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,K2(t.target),t.g,t.o,t.k)}function Au(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Au(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function z(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Au(e))&&(r&&(r+=" "),r+=t);return r}function Q2(e,t){let n=$e(e);if(tt){let d=n.slice();return ()=>d}let{onChange:r}=t,o=new Set(t.appear?void 0:n),i=new WeakSet,[s,l]=q([],{equals:!1}),[a]=ec(),u=d=>{l(p=>(p.push.apply(p,d),p));for(let p of d)i.delete(p);},c=(d,p,m)=>d.splice(m,0,p);return F(d=>{let p=s(),m=e();if(m[co],$e(a))return a(),d;if(p.length){let f=d.filter(g=>!p.includes(g));return p.length=0,r({list:f,added:[],removed:[],unchanged:f,finishRemoved:u}),f}return $e(()=>{let f=new Set(m),g=m.slice(),v=[],h=[],y=[];for(let w of m)(o.has(w)?y:v).push(w);let b=!v.length;for(let w=0;w<d.length;w++){let C=d[w];f.has(C)||(i.has(C)||(h.push(C),i.add(C)),c(g,C,w)),b&&C!==g[w]&&(b=!1);}return !h.length&&b?d:(r({list:g,added:v,removed:h,unchanged:y,finishRemoved:u}),o=f,g)})},t.appear?[]:n.slice())}function st(...e){return w2(e)}function Ys(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Ys(e(),t);if(Array.isArray(e)){let n=[];for(let r of e){let o=Ys(r,t);o&&(Array.isArray(o)?n.push.apply(n,o):n.push(o));}return n.length?n:null}return null}function j2(e,t=Gc,n=Gc){let r=F(e),o=F(()=>Ys(r(),tt?n:t));return o.toArray=()=>{let i=o();return Array.isArray(i)?i:i?[i]:[]},o}function W2(e){return F(()=>{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 Ou(e){requestAnimationFrame(()=>requestAnimationFrame(e));}function Y2(e,t,n,r){let{onBeforeEnter:o,onEnter:i,onAfterEnter:s}=t;o?.(n),n.classList.add(...e.enter),n.classList.add(...e.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r?.();i?.(n,()=>l());}),Ou(()=>{n.classList.remove(...e.enter),n.classList.add(...e.enterTo),(!i||i.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l));});function l(a){(!a||a.target===n)&&(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...e.enterActive),n.classList.remove(...e.enterTo),s?.(n));}}function X2(e,t,n,r){let{onBeforeExit:o,onExit:i,onAfterExit:s}=t;if(!n.parentNode)return r?.();o?.(n),n.classList.add(...e.exit),n.classList.add(...e.exitActive),i?.(n,()=>l()),Ou(()=>{n.classList.remove(...e.exit),n.classList.add(...e.exitTo),(!i||i.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l));});function l(a){(!a||a.target===n)&&(r?.(),n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...e.exitActive),n.classList.remove(...e.exitTo),s?.(n));}}function Hc(e){for(let t of e)t.dispose();}function Z2(e,t,n,r={}){if(tt){let s=e(),l=[];if(s&&s.length)for(let a=0,u=s.length;a<u;a++)l.push(n(()=>s[a],()=>a));else r.fallback&&(l=[r.fallback()]);return ()=>l}let o=new Map;return W(()=>Hc(o.values())),()=>{let s=e()||[];return s[co],$e(()=>{if(!s.length)return Hc(o.values()),o.clear(),r.fallback?[Wt(d=>(o.set(Bs,{dispose:d}),r.fallback()))]:[];let l=new Array(s.length),a=o.get(Bs);if(!o.size||a){a?.dispose(),o.delete(Bs);for(let c=0;c<s.length;c++){let d=s[c],p=t(d,c);i(l,d,c,p);}return l}let u=new Set(o.keys());for(let c=0;c<s.length;c++){let d=s[c],p=t(d,c);u.delete(p);let m=o.get(p);m?(l[c]=m.mapped,m.setIndex?.(c),m.setItem(()=>d)):i(l,d,c,p);}for(let c of u)o.get(c)?.dispose(),o.delete(c);return l})};function i(s,l,a,u){Wt(c=>{let[d,p]=q(l),m={setItem:p,dispose:c};if(n.length>1){let[f,g]=q(a);m.setIndex=g,m.mapped=n(d,f);}else m.mapped=n(d);o.set(u,m),s[a]=m.mapped;});}}function $i(e){let{by:t}=e;return F(Z2(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function J2(e,t,n,r){return e.addEventListener(t,n,r),S2(e.removeEventListener.bind(e,t,n,r))}function em(e,t,n,r){if(tt)return;let o=()=>{js(M(e)).forEach(i=>{i&&js(M(t)).forEach(s=>J2(i,s,n,r));});};typeof e=="function"?j(o):G(o);}function tm(e,t){if(tt)return {observe:Oc,unobserve:Oc};let n=new ResizeObserver(e);return W(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function Ru(e,t,n){if(tt)return;let r=new WeakMap,{observe:o,unobserve:i}=tm(s=>{for(let l of s){let{contentRect:a,target:u}=l,c=Math.round(a.width),d=Math.round(a.height),p=r.get(u);(!p||p.width!==c||p.height!==d)&&(t(a,u,l),r.set(u,{width:c,height:d}));}},n);j(s=>{let l=x2(js(M(e)));return k2(l,s,o,i),l},[]);}function Qc(e){let t={},n;for(;n=nm.exec(e);)t[n[1]]=n[2];return t}function zi(e,t){if(typeof e=="string"){if(typeof t=="string")return `${e};${t}`;e=Qc(e);}else typeof t=="string"&&(t=Qc(t));return {...e,...t}}function rm(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function Xs(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function om(e){return typeof e=="number"}function fr(e){return Object.prototype.toString.call(e)==="[object String]"}function im(e){return typeof e=="function"}function Eo(e){return t=>`${e()}-${t}`}function $t(e,t){return e?e===t||e.contains(t):!1}function vo(e,t=!1){let{activeElement:n}=en(e);if(!n?.nodeName)return null;if(qu(n)&&n.contentDocument)return vo(n.contentDocument.body,t);if(t){let r=n.getAttribute("aria-activedescendant");if(r){let o=en(n).getElementById(r);if(o)return o}}return n}function sm(e){return en(e).defaultView||window}function en(e){return e?e.ownerDocument||e:document}function qu(e){return e.tagName==="IFRAME"}function ca(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Vi(){return ca(/^Mac/i)}function am(){return ca(/^iPhone/i)}function lm(){return ca(/^iPad/i)||Vi()&&navigator.maxTouchPoints>1}function cm(){return am()||lm()}function um(){return Vi()||cm()}function De(e,t){return t&&(im(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function We(e){return t=>{for(let n of e)De(t,n);}}function dm(e){return Vi()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function rt(e){if(e)if(fm())e.focus({preventScroll:!0});else {let t=pm(e);e.focus(),mm(t);}}function fm(){if(Ei==null){Ei=!1;try{document.createElement("div").focus({get preventScroll(){return Ei=!0,!0}});}catch{}}return Ei}function pm(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function mm(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r;}function Vu(e,t){let r=Array.from(e.querySelectorAll(ua)).filter(jc);return t&&jc(e)&&r.unshift(e),r.forEach((o,i)=>{if(qu(o)&&o.contentDocument){let s=o.contentDocument.body,l=Vu(s,!1);r.splice(i,1,...l);}}),r}function jc(e){return Nu(e)&&!ym(e)}function Nu(e){return e.matches(ua)&&da(e)}function ym(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function da(e,t){return e.nodeName!=="#comment"&&vm(e)&&bm(e,t)&&(!e.parentElement||da(e.parentElement,e))}function vm(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return !1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;let{getComputedStyle:o}=e.ownerDocument.defaultView,{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse";}return r}function bm(e,t){return !e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function xm(e,t,n){let r=t?.tabbable?hm:ua,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){return t?.from?.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&da(i)&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function Wc(e){for(;e&&!wm(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function wm(e){let t=window.getComputedStyle(e);return /(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Cm(){}function Sm(e,t){let[n,r]=e,o=!1,i=t.length;for(let s=i,l=0,a=s-1;l<s;a=l++){let[u,c]=t[l],[d,p]=t[a],[,m]=t[a===0?s-1:a-1]||[0,0],f=(c-p)*(n-u)-(u-d)*(r-c);if(p<c){if(r>=p&&r<c){if(f===0)return !0;f>0&&(r===p?r>m&&(o=!o):o=!o);}}else if(c<p){if(r>c&&r<=p){if(f===0)return !0;f<0&&(r===p?r<m&&(o=!o):o=!o);}}else if(r==c&&(n>=d&&n<=u||n>=u&&n<=d))return !0}return o}function be(e,t){return re(e,t)}function Xc(){if(typeof window>"u")return;let e=n=>{if(!n.target)return;let r=mo.get(n.target);r||(r=new Set,mo.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName);},t=n=>{if(!n.target)return;let r=mo.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),mo.delete(n.target)),mo.size===0)){for(let o of Yc)o();Yc.clear();}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t);}function Zs(e,t){let n=Zc(e,t,"left"),r=Zc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,l=e.scrollTop,a=s+e.offsetWidth,u=l+e.offsetHeight;n<=s?s=n:n+o>a&&(s+=n+o-a),r<=l?l=r:r+i>u&&(l+=r+i-u),e.scrollLeft=s,e.scrollTop=l;}function Zc(e,t,n){let r=n==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent;}return o}function km(e,t){if(document.contains(e)){let n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let o=Wc(e);for(;e&&o&&e!==n&&o!==n;)Zs(o,e),e=o,o=Wc(e);}else {let{left:o,top:i}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:l}=e.getBoundingClientRect();(Math.abs(o-s)>1||Math.abs(i-l)>1)&&e.scrollIntoView?.({block:"nearest"});}}}function Mt(e){return t=>(e(t),()=>e(void 0))}function Ni(e,t){let[n,r]=q(Jc(t?.()));return j(()=>{r(e()?.tagName.toLowerCase()||Jc(t?.()));}),n}function Jc(e){return fr(e)?e:void 0}function Le(e){let[t,n]=Se(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return x(gc,re(n,{get component(){return t.as}}))}function Em(e){let t=`form-control-${gt()}`,n=be({id:t},e),[r,o]=q(),[i,s]=q(),[l,a]=q(),[u,c]=q(),d=(g,v,h)=>{let y=h!=null||r()!=null;return [h,r(),y&&v!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[l(),u(),g].filter(Boolean).join(" ")||void 0,m=F(()=>({"data-valid":M(n.validationState)==="valid"?"":void 0,"data-invalid":M(n.validationState)==="invalid"?"":void 0,"data-required":M(n.required)?"":void 0,"data-disabled":M(n.disabled)?"":void 0,"data-readonly":M(n.readOnly)?"":void 0}));return {formControlContext:{name:()=>M(n.name)??M(n.id),dataset:m,validationState:()=>M(n.validationState),isRequired:()=>M(n.required),isDisabled:()=>M(n.disabled),isReadOnly:()=>M(n.readOnly),labelId:r,fieldId:i,descriptionId:l,errorMessageId:u,getAriaLabelledBy:d,getAriaDescribedBy:p,generateId:Eo(()=>M(n.id)),registerLabel:Mt(o),registerField:Mt(s),registerDescription:Mt(a),registerErrorMessage:Mt(c)}}}function Po(){let e=Ke(Bu);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Gu(e){let t=Po(),n=be({id:t.generateId("description")},e);return j(()=>W(t.registerDescription(n.id))),x(Le,re({as:"div"},()=>t.dataset(),n))}function Uu(e){let t=Po(),n=be({id:t.generateId("error-message")},e),[r,o]=Se(n,["forceMount"]),i=()=>t.validationState()==="invalid";return j(()=>{i()&&W(t.registerErrorMessage(o.id));}),x(B,{get when(){return r.forceMount||i()},get children(){return x(Le,re({as:"div"},()=>t.dataset(),o))}})}function Pm(e){let t,n=Po(),r=be({id:n.generateId("label")},e),[o,i]=Se(r,["ref"]),s=Ni(()=>t,()=>"label");return j(()=>W(n.registerLabel(i.id))),x(Le,re({as:"label",ref(l){let a=st(u=>t=u,o.ref);typeof a=="function"&&a(l);},get for(){return ze(()=>s()==="label")()?n.fieldId():void 0}},()=>n.dataset(),i))}function Tm(e,t){j(Yt(e,n=>{if(n==null)return;let r=$m(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),W(()=>{r.removeEventListener("reset",t);}));}));}function $m(e){return Mm(e)?e.form:e.closest("form")}function Mm(e){return e.matches("textarea, input, select, button")}function To(e){let[t,n]=q(e.defaultValue?.()),r=F(()=>e.value?.()!==void 0),o=F(()=>r()?e.value?.():t());return [o,s=>{$e(()=>{let l=C2(s,o());return Object.is(l,o())||(r()||n(l),e.onChange?.(l)),l});}]}function Hu(e){let[t,n]=To(e);return [()=>t()??!1,n]}function _m(e){let[t,n]=To(e);return [()=>t()??[],n]}function Fm(e={}){let[t,n]=Hu({value:()=>M(e.isSelected),defaultValue:()=>!!M(e.defaultIsSelected),onChange:i=>e.onSelectedChange?.(i)});return {isSelected:t,setIsSelected:i=>{!M(e.isReadOnly)&&!M(e.isDisabled)&&n(i);},toggle:()=>{!M(e.isReadOnly)&&!M(e.isDisabled)&&n(!t());}}}function ju(){return Ke(Qu)}function Lm(){let e=ju();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Wu(e,t){return !!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Am(e,t){let n=t.ref();if(!n)return -1;let r=e.length;if(!r)return -1;for(;r--;){let o=e[r]?.ref();if(o&&Wu(o,n))return r+1}return 0}function Om(e){let t=e.map((r,o)=>[o,r]),n=!1;return t.sort(([r,o],[i,s])=>{let l=o.ref(),a=s.ref();return l===a||!l||!a?0:Wu(l,a)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function Yu(e,t){let n=Om(e);e!==n&&t(n);}function Rm(e){let t=e[0],n=e[e.length-1]?.ref(),r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement;}return en(r).body}function qm(e,t){j(()=>{let n=setTimeout(()=>{Yu(e(),t);});W(()=>clearTimeout(n));});}function zm(e,t){if(typeof IntersectionObserver!="function"){qm(e,t);return}let n=[];j(()=>{let r=()=>{let s=!!n.length;n=e(),s&&Yu(e(),t);},o=Rm(e()),i=new IntersectionObserver(r,{root:o});for(let s of e()){let l=s.ref();l&&i.observe(l);}W(()=>i.disconnect());});}function Vm(e={}){let[t,n]=_m({value:()=>M(e.items),onChange:i=>e.onItemsChange?.(i)});zm(t,n);let r=i=>(n(s=>{let l=Am(s,i);return rm(s,i,l)}),()=>{n(s=>{let l=s.filter(a=>a.ref()!==i.ref());return s.length===l.length?s:l});});return {DomCollectionProvider:i=>x(Qu.Provider,{value:{registerItem:r},get children(){return i.children}})}}function Nm(e){let t=Lm(),n=be({shouldRegisterItem:!0},e);j(()=>{if(!n.shouldRegisterItem)return;let r=t.registerItem(n.getItem());W(r);});}function Xu(e){let t=e.startIndex??0,n=e.startLevel??0,r=[],o=a=>{if(a==null)return "";let u=e.getKey??"key",c=fr(u)?a[u]:u(a);return c!=null?String(c):""},i=a=>{if(a==null)return "";let u=e.getTextValue??"textValue",c=fr(u)?a[u]:u(a);return c!=null?String(c):""},s=a=>{if(a==null)return !1;let u=e.getDisabled??"disabled";return (fr(u)?a[u]:u(a))??!1},l=a=>{if(a!=null)return fr(e.getSectionChildren)?a[e.getSectionChildren]:e.getSectionChildren?.(a)};for(let a of e.dataSource){if(fr(a)||om(a)){r.push({type:"item",rawValue:a,key:String(a),textValue:String(a),disabled:s(a),level:n,index:t}),t++;continue}if(l(a)!=null){r.push({type:"section",rawValue:a,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;let u=l(a)??[];if(u.length>0){let c=Xu({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...c),t+=c.length;}}else r.push({type:"item",rawValue:a,key:o(a),textValue:i(a),disabled:s(a),level:n,index:t}),t++;}return r}function Km(e,t=[]){return F(()=>{let n=Xu({dataSource:M(e.dataSource),getKey:M(e.getKey),getTextValue:M(e.getTextValue),getDisabled:M(e.getDisabled),getSectionChildren:M(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}function Um(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script??"";return Bm.has(n)}let t=e.split("-")[0];return Gm.has(t)}function Hm(e){return Um(e)?"rtl":"ltr"}function Zu(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return {locale:e,direction:Hm(e)}}function eu(){Js=Zu();for(let e of bo)e(Js);}function Qm(){let e={locale:"en-US",direction:"ltr"},[t,n]=q(Js),r=F(()=>tt?e:t());return Xt(()=>{bo.size===0&&window.addEventListener("languagechange",eu),bo.add(n),W(()=>{bo.delete(n),bo.size===0&&window.removeEventListener("languagechange",eu);});}),{locale:()=>r().locale,direction:()=>r().direction}}function Fn(){let e=Qm();return Ke(jm)||e}function Wm(e){let{locale:t}=Fn(),n=F(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return F(()=>{let r=n(),o;return Gs.has(r)&&(o=Gs.get(r)),o||(o=new Intl.Collator(t(),e),Gs.set(r,o)),o})}function Ym(e){let[t,n]=To(e);return [()=>t()??new dn,n]}function ed(e){return um()?e.altKey:e.ctrlKey}function pr(e){return Vi()?e.metaKey:e.ctrlKey}function tu(e){return new dn(e)}function Xm(e,t){if(e.size!==t.size)return !1;for(let n of e)if(!t.has(n))return !1;return !0}function Zm(e){let t=be({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=q(!1),[o,i]=q(),s=F(()=>{let g=M(t.selectedKeys);return g!=null?tu(g):g}),l=F(()=>{let g=M(t.defaultSelectedKeys);return g!=null?tu(g):new dn}),[a,u]=Ym({value:s,defaultValue:l,onChange:g=>t.onSelectionChange?.(g)}),[c,d]=q(M(t.selectionBehavior)),p=()=>M(t.selectionMode),m=()=>M(t.disallowEmptySelection)??!1,f=g=>{(M(t.allowDuplicateSelectionEvents)||!Xm(g,a()))&&u(g);};return j(()=>{let g=a();M(t.selectionBehavior)==="replace"&&c()==="toggle"&&typeof g=="object"&&g.size===0&&d("replace");}),j(()=>{d(M(t.selectionBehavior)??"toggle");}),{selectionMode:p,disallowEmptySelection:m,selectionBehavior:c,setSelectionBehavior:d,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:a,setSelectedKeys:f}}function Jm(e){let[t,n]=q(""),[r,o]=q(-1);return {typeSelectHandlers:{onKeyDown:s=>{if(M(e.isDisabled))return;let l=M(e.keyboardDelegate),a=M(e.selectionManager);if(!l.getKeyForSearch)return;let u=eg(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let c=n(p=>p+u),d=l.getKeyForSearch(c,a.focusedKey())??l.getKeyForSearch(c);d==null&&tg(c)&&(c=c[0],d=l.getKeyForSearch(c,a.focusedKey())??l.getKeyForSearch(c)),d!=null&&(a.setFocusedKey(d),e.onTypeSelect?.(d)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500));}}}}function eg(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function tg(e){return e.split("").every(t=>t===e[0])}function ng(e,t,n){let o=re({selectOnFocus:()=>M(e.selectionManager).selectionBehavior()==="replace"},e),i=()=>t(),{direction:s}=Fn(),l={top:0,left:0};em(()=>M(o.isVirtualized)?void 0:i(),"scroll",()=>{let v=i();v&&(l={top:v.scrollTop,left:v.scrollLeft});});let{typeSelectHandlers:a}=Jm({isDisabled:()=>M(o.disallowTypeAhead),keyboardDelegate:()=>M(o.keyboardDelegate),selectionManager:()=>M(o.selectionManager)}),u=()=>M(o.orientation)??"vertical",c=v=>{De(v,a.onKeyDown),v.altKey&&v.key==="Tab"&&v.preventDefault();let h=t();if(!h?.contains(v.target))return;let y=M(o.selectionManager),b=M(o.selectOnFocus),w=E=>{E!=null&&(y.setFocusedKey(E),v.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):b&&!ed(v)&&y.replaceSelection(E));},C=M(o.keyboardDelegate),S=M(o.shouldFocusWrap),k=y.focusedKey();switch(v.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(C.getKeyBelow){v.preventDefault();let E;k!=null?E=C.getKeyBelow(k):E=C.getFirstKey?.(),E==null&&S&&(E=C.getFirstKey?.(k)),w(E);}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(C.getKeyAbove){v.preventDefault();let E;k!=null?E=C.getKeyAbove(k):E=C.getLastKey?.(),E==null&&S&&(E=C.getLastKey?.(k)),w(E);}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(C.getKeyLeftOf){v.preventDefault();let E=s()==="rtl",I;k!=null?I=C.getKeyLeftOf(k):I=E?C.getFirstKey?.():C.getLastKey?.(),w(I);}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(C.getKeyRightOf){v.preventDefault();let E=s()==="rtl",I;k!=null?I=C.getKeyRightOf(k):I=E?C.getLastKey?.():C.getFirstKey?.(),w(I);}break}case"Home":if(C.getFirstKey){v.preventDefault();let E=C.getFirstKey(k,pr(v));E!=null&&(y.setFocusedKey(E),pr(v)&&v.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):b&&y.replaceSelection(E));}break;case"End":if(C.getLastKey){v.preventDefault();let E=C.getLastKey(k,pr(v));E!=null&&(y.setFocusedKey(E),pr(v)&&v.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):b&&y.replaceSelection(E));}break;case"PageDown":if(C.getKeyPageBelow&&k!=null){v.preventDefault();let E=C.getKeyPageBelow(k);w(E);}break;case"PageUp":if(C.getKeyPageAbove&&k!=null){v.preventDefault();let E=C.getKeyPageAbove(k);w(E);}break;case"a":pr(v)&&y.selectionMode()==="multiple"&&M(o.disallowSelectAll)!==!0&&(v.preventDefault(),y.selectAll());break;case"Escape":v.defaultPrevented||(v.preventDefault(),M(o.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!M(o.allowsTabNavigation)){if(v.shiftKey)h.focus();else {let E=xm(h,{tabbable:!0}),I,P;do P=E.lastChild(),P&&(I=P);while(P);I&&!I.contains(document.activeElement)&&rt(I);}break}}},d=v=>{let h=M(o.selectionManager),y=M(o.keyboardDelegate),b=M(o.selectOnFocus);if(h.isFocused()){v.currentTarget.contains(v.target)||h.setFocused(!1);return}if(v.currentTarget.contains(v.target)){if(h.setFocused(!0),h.focusedKey()==null){let w=S=>{S!=null&&(h.setFocusedKey(S),b&&h.replaceSelection(S));},C=v.relatedTarget;C&&v.currentTarget.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING?w(h.lastSelectedKey()??y.getLastKey?.()):w(h.firstSelectedKey()??y.getFirstKey?.());}else if(!M(o.isVirtualized)){let w=i();if(w){w.scrollTop=l.top,w.scrollLeft=l.left;let C=w.querySelector(`[data-key="${h.focusedKey()}"]`);C&&(rt(C),Zs(w,C));}}}},p=v=>{let h=M(o.selectionManager);v.currentTarget.contains(v.relatedTarget)||h.setFocused(!1);},m=v=>{i()===v.target&&v.preventDefault();},f=()=>{let v=M(o.autoFocus);if(!v)return;let h=M(o.selectionManager),y=M(o.keyboardDelegate),b;v==="first"&&(b=y.getFirstKey?.()),v==="last"&&(b=y.getLastKey?.());let w=h.selectedKeys();w.size&&(b=w.values().next().value),h.setFocused(!0),h.setFocusedKey(b);let C=t();C&&b==null&&!M(o.shouldUseVirtualFocus)&&rt(C);};return Xt(()=>{o.deferAutoFocus?setTimeout(f,0):f();}),j(Yt([i,()=>M(o.isVirtualized),()=>M(o.selectionManager).focusedKey()],v=>{let[h,y,b]=v;if(y)b&&o.scrollToKey?.(b);else if(b&&h){let w=h.querySelector(`[data-key="${b}"]`);w&&Zs(h,w);}})),{tabIndex:F(()=>{if(!M(o.shouldUseVirtualFocus))return M(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:c,onMouseDown:m,onFocusIn:d,onFocusOut:p}}function td(e,t){let n=()=>M(e.selectionManager),r=()=>M(e.key),o=()=>M(e.shouldUseVirtualFocus),i=y=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):y?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||pr(y)||"pointerType"in y&&y.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()));},s=()=>n().isSelected(r()),l=()=>M(e.disabled)||n().isDisabled(r()),a=()=>!l()&&n().canSelectItem(r()),u=null,c=y=>{a()&&(u=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!M(e.shouldSelectOnPressUp)&&i(y));},d=y=>{a()&&y.pointerType==="mouse"&&y.button===0&&M(e.shouldSelectOnPressUp)&&M(e.allowsDifferentPressOrigin)&&i(y);},p=y=>{a()&&(M(e.shouldSelectOnPressUp)&&!M(e.allowsDifferentPressOrigin)||u!=="mouse")&&i(y);},m=y=>{!a()||!["Enter"," "].includes(y.key)||(ed(y)?n().toggleSelection(r()):i(y));},f=y=>{l()&&y.preventDefault();},g=y=>{let b=t();o()||l()||!b||y.target===b&&n().setFocusedKey(r());},v=F(()=>{if(!(o()||l()))return r()===n().focusedKey()?0:-1}),h=F(()=>M(e.virtualized)?void 0:r());return j(Yt([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([y,b,w,C,S])=>{y&&b===C&&S&&!w&&document.activeElement!==y&&(e.focus?e.focus():rt(y));})),{isSelected:s,isDisabled:l,allowsSelection:a,tabIndex:v,dataKey:h,onPointerDown:c,onPointerUp:d,onClick:p,onKeyDown:m,onMouseDown:f,onFocus:g}}function og(e){let t=Zm(e),r=Km({dataSource:()=>M(e.dataSource),getKey:()=>M(e.getKey),getTextValue:()=>M(e.getTextValue),getDisabled:()=>M(e.getDisabled),getSectionChildren:()=>M(e.getSectionChildren),factory:i=>e.filter?new nu(e.filter(i)):new nu(i)},[()=>e.filter]),o=new rg(r,t);return mi(()=>{let i=t.focusedKey();i!=null&&!r().getItem(i)&&t.setFocusedKey(void 0);}),{collection:r,selectionManager:()=>o}}function xo(e){return pn.findIndex(t=>t.node===e)}function ag(e){return pn[xo(e)]}function lg(e){return pn[pn.length-1].node===e}function od(){return pn.filter(e=>e.isPointerBlocking)}function cg(){return [...od()].slice(-1)[0]}function fa(){return od().length>0}function id(e){let t=xo(cg()?.node);return xo(e)<t}function ug(e){pn.push(e);}function dg(e){let t=xo(e);t<0||pn.splice(t,1);}function fg(){for(let{node:e}of pn)e.style.pointerEvents=id(e)?"none":"auto";}function pg(e){if(fa()&&!ea){let t=en(e);rd=document.body.style.pointerEvents,t.body.style.pointerEvents="none",ea=!0;}}function mg(e){if(fa())return;let t=en(e);t.body.style.pointerEvents=rd,t.body.style.length===0&&t.body.removeAttribute("style"),ea=!1;}function yg(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?hg.indexOf(e.type)!==-1:!1}function pa(e){let t,n=be({type:"button"},e),[r,o]=Se(n,["ref","type","disabled"]),i=Ni(()=>t,()=>"button"),s=F(()=>{let u=i();return u==null?!1:yg({tagName:u,type:r.type})}),l=F(()=>i()==="input"),a=F(()=>i()==="a"&&t?.getAttribute("href")!=null);return x(Le,re({as:"button",ref(u){let c=st(d=>t=d,r.ref);typeof c=="function"&&c(u);},get type(){return s()||l()?r.type:void 0},get role(){return !s()&&!a()?"button":void 0},get tabIndex(){return !s()&&!a()&&!r.disabled?0:void 0},get disabled(){return s()||l()?r.disabled:void 0},get"aria-disabled"(){return !s()&&!l()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}function ta(e,t,n){return vt(e,Jt(t,n))}function jn(e,t){return typeof e=="function"?e(t):e}function Mn(e){return e.split("-")[0]}function yr(e){return e.split("-")[1]}function sd(e){return e==="x"?"y":"x"}function ma(e){return e==="y"?"height":"width"}function Hn(e){return ["top","bottom"].includes(Mn(e))?"y":"x"}function ga(e){return sd(Hn(e))}function Cg(e,t,n){n===void 0&&(n=!1);let r=yr(e),o=ga(e),i=ma(o),s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Fi(s)),[s,Fi(s)]}function Sg(e){let t=Fi(e);return [na(e),t,na(t)]}function na(e){return e.replace(/start|end/g,t=>wg[t])}function kg(e,t,n){let r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return []}}function Ig(e,t,n,r){let o=yr(e),i=kg(Mn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(na)))),i}function Fi(e){return e.replace(/left|right|bottom|top/g,t=>xg[t])}function Eg(e){return {top:0,right:0,bottom:0,left:0,...e}}function ad(e){return typeof e!="number"?Eg(e):{top:e,right:e,bottom:e,left:e}}function Di(e){let{x:t,y:n,width:r,height:o}=e;return {width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ru(e,t,n){let{reference:r,floating:o}=e,i=Hn(t),s=ga(t),l=ma(s),a=Mn(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2,m;switch(a){case"top":m={x:c,y:r.y-o.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y};}switch(yr(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}async function wo(e,t){var n;t===void 0&&(t={});let{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=jn(t,e),f=ad(m),v=l[p?d==="floating"?"reference":"floating":d],h=Di(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),y=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},C=Di(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:a}):y);return {top:(h.top-C.top+f.top)/w.y,bottom:(C.bottom-h.bottom+f.bottom)/w.y,left:(h.left-C.left+f.left)/w.x,right:(C.right-h.right+f.right)/w.x}}function ou(e,t){return {top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function iu(e){return bg.some(t=>e[t]>=0)}async function _g(e,t){let{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Mn(n),l=yr(n),a=Hn(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&a?-1:1,d=jn(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof f=="number"&&(m=l==="end"?f*-1:f),a?{x:m*c,y:p*u}:{x:p*u,y:m*c}}function vr(e){return ld(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return (e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mn(e){var t;return (t=(ld(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ld(e){return e instanceof Node||e instanceof bt(e).Node}function zt(e){return e instanceof Element||e instanceof bt(e).Element}function tn(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function su(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function $o(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=Vt(e);return /auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ag(e){return ["table","td","th"].includes(vr(e))}function Bi(e){return [":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return !1}})}function ha(e){let t=ya(),n=zt(e)?Vt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Og(e){let t=_n(e);for(;tn(t)&&!hr(t);){if(ha(t))return t;if(Bi(t))return null;t=_n(t);}return null}function ya(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hr(e){return ["html","body","#document"].includes(vr(e))}function Vt(e){return bt(e).getComputedStyle(e)}function Gi(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _n(e){if(vr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||su(e)&&e.host||mn(e);return su(t)?t.host:t}function cd(e){let t=_n(e);return hr(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&$o(t)?t:cd(t)}function Co(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let o=cd(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=bt(o);return i?t.concat(s,s.visualViewport||[],$o(o)?o:[],s.frameElement&&n?Co(s.frameElement):[]):t.concat(o,Co(o,[],n))}function ud(e){let t=Vt(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=tn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=_i(n)!==i||_i(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function va(e){return zt(e)?e:e.contextElement}function gr(e){let t=va(e);if(!tn(t))return $n(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ud(t),s=(i?_i(n.width):n.width)/r,l=(i?_i(n.height):n.height)/o;return (!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function dd(e){let t=bt(e);return !ya()||!t.visualViewport?Rg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function Qn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let o=e.getBoundingClientRect(),i=va(e),s=$n(1);t&&(r?zt(r)&&(s=gr(r)):s=gr(e));let l=qg(i,n,r)?dd(i):$n(0),a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){let p=bt(i),m=r&&zt(r)?bt(r):r,f=p,g=f.frameElement;for(;g&&r&&m!==f;){let v=gr(g),h=g.getBoundingClientRect(),y=Vt(g),b=h.left+(g.clientLeft+parseFloat(y.paddingLeft))*v.x,w=h.top+(g.clientTop+parseFloat(y.paddingTop))*v.y;a*=v.x,u*=v.y,c*=v.x,d*=v.y,a+=b,u+=w,f=bt(g),g=f.frameElement;}}return Di({width:c,height:d,x:a,y:u})}function zg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i=o==="fixed",s=mn(r),l=t?Bi(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=$n(1),c=$n(0),d=tn(r);if((d||!d&&!i)&&((vr(r)!=="body"||$o(s))&&(a=Gi(r)),tn(r))){let p=Qn(r);u=gr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop;}return {width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function Vg(e){return Array.from(e.getClientRects())}function fd(e){return Qn(mn(e)).left+Gi(e).scrollLeft}function Ng(e){let t=mn(e),n=Gi(e),r=e.ownerDocument.body,o=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+fd(e),l=-n.scrollTop;return Vt(r).direction==="rtl"&&(s+=vt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Kg(e,t){let n=bt(e),r=mn(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;let u=ya();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop);}return {width:i,height:s,x:l,y:a}}function Bg(e,t){let n=Qn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=tn(e)?gr(e):$n(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return {width:s,height:l,x:a,y:u}}function au(e,t,n){let r;if(t==="viewport")r=Kg(e,n);else if(t==="document")r=Ng(mn(e));else if(zt(t))r=Bg(t,n);else {let o=dd(e);r={...t,x:t.x-o.x,y:t.y-o.y};}return Di(r)}function pd(e,t){let n=_n(e);return n===t||!zt(n)||hr(n)?!1:Vt(n).position==="fixed"||pd(n,t)}function Gg(e,t){let n=t.get(e);if(n)return n;let r=Co(e,[],!1).filter(l=>zt(l)&&vr(l)!=="body"),o=null,i=Vt(e).position==="fixed",s=i?_n(e):e;for(;zt(s)&&!hr(s);){let l=Vt(s),a=ha(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||$o(s)&&!a&&pd(e,s))?r=r.filter(c=>c!==s):o=l,s=_n(s);}return t.set(e,r),r}function Ug(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,s=[...n==="clippingAncestors"?Bi(t)?[]:Gg(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{let d=au(t,c,o);return u.top=vt(d.top,u.top),u.right=Jt(d.right,u.right),u.bottom=Jt(d.bottom,u.bottom),u.left=vt(d.left,u.left),u},au(t,l,o));return {width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Hg(e){let{width:t,height:n}=ud(e);return {width:t,height:n}}function Qg(e,t,n){let r=tn(t),o=mn(t),i=n==="fixed",s=Qn(e,!0,i,t),l={scrollLeft:0,scrollTop:0},a=$n(0);if(r||!r&&!i)if((vr(t)!=="body"||$o(o))&&(l=Gi(t)),r){let d=Qn(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop;}else o&&(a.x=fd(o));let u=s.left+l.scrollLeft-a.x,c=s.top+l.scrollTop-a.y;return {x:u,y:c,width:s.width,height:s.height}}function Us(e){return Vt(e).position==="static"}function lu(e,t){return !tn(e)||Vt(e).position==="fixed"?null:t?t(e):e.offsetParent}function md(e,t){let n=bt(e);if(Bi(e))return n;if(!tn(e)){let o=_n(e);for(;o&&!hr(o);){if(zt(o)&&!Us(o))return o;o=_n(o);}return n}let r=lu(e,t);for(;r&&Ag(r)&&Us(r);)r=lu(r,t);return r&&hr(r)&&Us(r)&&!ha(r)?n:r||Og(e)||n}function Wg(e){return Vt(e).direction==="rtl"}function Yg(e,t){let n=null,r,o=mn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null;}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();let{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;let m=Pi(c),f=Pi(o.clientWidth-(u+d)),g=Pi(o.clientHeight-(c+p)),v=Pi(u),y={rootMargin:-m+"px "+-f+"px "+-g+"px "+-v+"px",threshold:vt(0,Jt(1,a))||1},b=!0;function w(C){let S=C[0].intersectionRatio;if(S!==a){if(!b)return s();S?s(!1,S):r=setTimeout(()=>{s(!1,1e-7);},1e3);}b=!1;}try{n=new IntersectionObserver(w,{...y,root:o.ownerDocument});}catch{n=new IntersectionObserver(w,y);}n.observe(e);}return s(!0),i}function Xg(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=va(e),c=o||i?[...u?Co(u):[],...Co(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n);});let d=u&&l?Yg(u,n):null,p=-1,m=null;s&&(m=new ResizeObserver(h=>{let[y]=h;y&&y.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t);})),n();}),u&&!a&&m.observe(u),m.observe(t));let f,g=a?Qn(e):null;a&&v();function v(){let h=Qn(e);g&&(h.x!==g.x||h.y!==g.y||h.width!==g.width||h.height!==g.height)&&n(),g=h,f=requestAnimationFrame(v);}return n(),()=>{var h;c.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n);}),d?.(),(h=m)==null||h.disconnect(),m=null,a&&cancelAnimationFrame(f);}}function xa(){let e=Ke(ba);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function wa(e){let t=xa(),n=be({size:ra},e),[r,o]=Se(n,["ref","style","size"]),i=()=>t.currentPlacement().split("-")[0],s=ah(t.contentRef),l=()=>s()?.getPropertyValue("background-color")||"none",a=()=>s()?.getPropertyValue(`border-${i()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${i()}-width`)||"0px",c=()=>Number.parseInt(u())*2*(ra/r.size),d=()=>`rotate(${sh[i()]} ${cu} ${cu}) translate(0 2)`;return x(Le,re({as:"div",ref(p){let m=st(t.setArrowRef,r.ref);typeof m=="function"&&m(p);},"aria-hidden":"true",get style(){return zi({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:l(),stroke:a(),"stroke-width":c()},r.style)}},o,{get children(){let p=ih(),m=p.firstChild;return G(()=>D(m,"transform",d())),p}}))}function ah(e){let[t,n]=q();return j(()=>{let r=e();r&&n(sm(r).getComputedStyle(r));}),t}function lh(e){let t=xa(),[n,r]=Se(e,["ref","style"]);return x(Le,re({as:"div",ref(o){let i=st(t.setPositionerRef,n.ref);typeof i=="function"&&i(o);},"data-popper-positioner":"",get style(){return zi({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function uu(e){let{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);let i={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return {...i,toJSON:()=>i}}function ch(e,t){return {contextElement:e,getBoundingClientRect:()=>{let r=t(e);return r?uu(r):e?e.getBoundingClientRect():uu()}}}function uh(e){return /^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function fh(e,t){let[n,r]=e.split("-"),o=dh[n];return r?n==="left"||n==="right"?`${o} ${r==="start"?"top":"bottom"}`:r==="start"?`${o} ${t==="rtl"?"right":"left"}`:`${o} ${t==="rtl"?"left":"right"}`:`${o} center`}function ph(e){let t=be({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),[n,r]=q(),[o,i]=q(),[s,l]=q(t.placement),a=()=>ch(t.anchorRef?.(),t.getAnchorRect),{direction:u}=Fn();async function c(){let p=a(),m=n(),f=o();if(!p||!m)return;let g=(f?.clientHeight||0)/2,v=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;m.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let h=[Zg(({placement:S})=>{let k=!!S.split("-")[1];return {mainAxis:v,crossAxis:k?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let S=typeof t.flip=="string"?t.flip.split(" "):void 0;if(S!==void 0&&!S.every(uh))throw new Error("`flip` expects a spaced-delimited list of placements");h.push(eh({padding:t.overflowPadding,fallbackPlacements:S}));}(t.slide||t.overlap)&&h.push(Jg({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),h.push(th({padding:t.overflowPadding,apply({availableWidth:S,availableHeight:k,rects:E}){let I=Math.round(E.reference.width);S=Math.floor(S),k=Math.floor(k),m.style.setProperty("--kb-popper-anchor-width",`${I}px`),m.style.setProperty("--kb-popper-content-available-width",`${S}px`),m.style.setProperty("--kb-popper-content-available-height",`${k}px`),t.sameWidth&&(m.style.width=`${I}px`),t.fitViewport&&(m.style.maxWidth=`${S}px`,m.style.maxHeight=`${k}px`);}})),t.hideWhenDetached&&h.push(nh({padding:t.detachedPadding})),f&&h.push(rh({element:f,padding:t.arrowPadding}));let y=await oh(p,m,{placement:t.placement,strategy:"absolute",middleware:h,platform:{...gd,isRTL:()=>u()==="rtl"}});if(l(y.placement),t.onCurrentPlacementChange?.(y.placement),!m)return;m.style.setProperty("--kb-popper-content-transform-origin",fh(y.placement,u()));let b=Math.round(y.x),w=Math.round(y.y),C;if(t.hideWhenDetached&&(C=y.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(m.style,{top:"0",left:"0",transform:`translate3d(${b}px, ${w}px, 0)`,visibility:C}),f&&y.middlewareData.arrow){let{x:S,y:k}=y.middlewareData.arrow,E=y.placement.split("-")[0];Object.assign(f.style,{left:S!=null?`${S}px`:"",top:k!=null?`${k}px`:"",[E]:"100%"});}}j(()=>{let p=a(),m=n();if(!p||!m)return;let f=Xg(p,m,c,{elementResize:typeof ResizeObserver=="function"});W(f);}),j(()=>{let p=n(),m=t.contentRef?.();!p||!m||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(m).zIndex;});});let d={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:i};return x(ba.Provider,{value:d,get children(){return t.children}})}function mh(e){let t=n=>{n.key===la.Escape&&e.onEscapeKeyDown?.(n);};j(()=>{if(tt||M(e.isDisabled))return;let n=e.ownerDocument?.()??en();n.addEventListener("keydown",t),W(()=>{n.removeEventListener("keydown",t);});});}function gh(e,t){let n,r=Cm,o=()=>en(t()),i=d=>e.onPointerDownOutside?.(d),s=d=>e.onFocusOutside?.(d),l=d=>e.onInteractOutside?.(d),a=d=>{let p=d.target;return !(p instanceof HTMLElement)||p.closest(`[${Mi}]`)||!$t(o(),p)||$t(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=d=>{function p(){let m=t(),f=d.target;if(!m||!f||!a(d))return;let g=We([i,l]);f.addEventListener(du,g,{once:!0});let v=new CustomEvent(du,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:d.button===2||dm(d)&&d.button===0}});f.dispatchEvent(v);}d.pointerType==="touch"?(o().removeEventListener("click",p),r=p,o().addEventListener("click",p,{once:!0})):p();},c=d=>{let p=t(),m=d.target;if(!p||!m||!a(d))return;let f=We([s,l]);m.addEventListener(fu,f,{once:!0});let g=new CustomEvent(fu,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:!1}});m.dispatchEvent(g);};j(()=>{tt||M(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",u,!0);},0),o().addEventListener("focusin",c,!0),W(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",u,!0),o().removeEventListener("focusin",c,!0);}));});}function hh(){return Ke(yd)}function yh(e){let t,n=hh(),[r,o]=Se(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),i=new Set([]),s=d=>{i.add(d);let p=n?.registerNestedLayer(d);return ()=>{i.delete(d),p?.();}};gh({shouldExcludeElement:d=>t?r.excludedElements?.some(p=>$t(p(),d))||[...i].some(p=>$t(p,d)):!1,onPointerDownOutside:d=>{!t||ht.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!ht.isTopMostLayer(t)||(r.onPointerDownOutside?.(d),r.onInteractOutside?.(d),d.defaultPrevented||r.onDismiss?.());},onFocusOutside:d=>{r.onFocusOutside?.(d),r.onInteractOutside?.(d),d.defaultPrevented||r.onDismiss?.();}},()=>t),mh({ownerDocument:()=>en(t),onEscapeKeyDown:d=>{!t||!ht.isTopMostLayer(t)||(r.onEscapeKeyDown?.(d),!d.defaultPrevented&&r.onDismiss&&(d.preventDefault(),r.onDismiss()));}}),Xt(()=>{if(!t)return;ht.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let d=n?.registerNestedLayer(t);ht.assignPointerEventToLayers(),ht.disableBodyPointerEvents(t),W(()=>{t&&(ht.removeLayer(t),d?.(),ht.assignPointerEventToLayers(),ht.restoreBodyPointerEvents(t));});}),j(Yt([()=>t,()=>r.disableOutsidePointerEvents],([d,p])=>{if(!d)return;let m=ht.find(d);m&&m.isPointerBlocking!==p&&(m.isPointerBlocking=p,ht.assignPointerEventToLayers()),p&&ht.disableBodyPointerEvents(d),W(()=>{ht.restoreBodyPointerEvents(d);});},{defer:!0}));let c={registerNestedLayer:s};return x(yd.Provider,{value:c,get children(){return x(Le,re({as:"div",ref(d){let p=st(m=>t=m,r.ref);typeof p=="function"&&p(d);}},o))}})}function vd(e={}){let[t,n]=Hu({value:()=>M(e.open),defaultValue:()=>!!M(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),r=()=>{n(!0);},o=()=>{n(!1);};return {isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r();}}}function xd(){let e=Ke(bd);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Mo(){let e=Ke(wd);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Cd(e){let t=Po(),n=xd(),r=`${t.generateId("item")}-${gt()}`,o=be({id:r},e),[i,s]=Se(o,["value","disabled","onPointerDown"]),[l,a]=q(),[u,c]=q(),[d,p]=q(),[m,f]=q(),[g,v]=q(!1),h=F(()=>n.isSelectedValue(i.value)),y=F(()=>i.disabled||t.isDisabled()||!1),b=S=>{De(S,i.onPointerDown),g()&&S.preventDefault();},w=F(()=>({...t.dataset(),"data-disabled":y()?"":void 0,"data-checked":h()?"":void 0})),C={value:()=>i.value,dataset:w,isSelected:h,isDisabled:y,inputId:l,labelId:u,descriptionId:d,inputRef:m,select:()=>n.setSelectedValue(i.value),generateId:Eo(()=>s.id),registerInput:Mt(a),registerLabel:Mt(c),registerDescription:Mt(p),setIsFocused:v,setInputRef:f};return x(wd.Provider,{value:C,get children(){return x(Le,re({as:"div",role:"group",onPointerDown:b},w,s))}})}function Sd(e){let t=Mo(),n=be({id:t.generateId("control")},e),[r,o]=Se(n,["onClick","onKeyDown"]);return x(Le,re({as:"div",onClick:l=>{De(l,r.onClick),t.select(),t.inputRef()?.focus();},onKeyDown:l=>{De(l,r.onKeyDown),l.key===la.Space&&(t.select(),t.inputRef()?.focus());}},()=>t.dataset(),o))}function kd(e){let t=Mo(),n=be({id:t.generateId("description")},e);return j(()=>W(t.registerDescription(n.id))),x(Le,re({as:"div"},()=>t.dataset(),n))}function Id(e){let t=Mo(),n=be({id:t.generateId("indicator")},e),[r,o]=Se(n,["ref","forceMount"]),[i,s]=q(),{present:l}=nd({show:()=>r.forceMount||t.isSelected(),element:()=>i()??null});return x(B,{get when(){return l()},get children(){return x(Le,re({as:"div",ref(a){let u=st(s,r.ref);typeof u=="function"&&u(a);}},()=>t.dataset(),o))}})}function Ed(e){let t=Po(),n=xd(),r=Mo(),o=be({id:r.generateId("input")},e),[i,s]=Se(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),l=()=>[i["aria-labelledby"],r.labelId(),i["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,a=()=>[i["aria-describedby"],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[u,c]=q(!1),d=f=>{if(De(f,i.onChange),f.stopPropagation(),!u()){n.setSelectedValue(r.value());let g=f.target;g.checked=r.isSelected();}c(!1);},p=f=>{De(f,i.onFocus),r.setIsFocused(!0);},m=f=>{De(f,i.onBlur),r.setIsFocused(!1);};return j(Yt([()=>r.isSelected(),()=>r.value()],f=>{if(!f[0]&&f[1]===r.value())return;c(!0);let g=r.inputRef();g?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),g?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}));},{defer:!0})),j(()=>W(r.registerInput(s.id))),x(Le,re({as:"input",ref(f){let g=st(r.setInputRef,i.ref);typeof g=="function"&&g(f);},type:"radio",get name(){return t.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return t.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return zi({...Ku},i.style)},get"aria-labelledby"(){return l()},get"aria-describedby"(){return a()},onChange:d,onFocus:p,onBlur:m},()=>r.dataset(),s))}function Pd(e){let t=Mo(),n=be({id:t.generateId("label")},e);return j(()=>W(t.registerLabel(n.id))),x(Le,re({as:"label",get for(){return t.inputId()}},()=>t.dataset(),n))}function Td(e){return x(Pm,re({as:"span"},e))}function $d(e){let t,n=`radiogroup-${gt()}`,r=be({id:n,orientation:"vertical"},e),[o,i,s]=Se(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Im),[l,a]=To({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:f=>o.onChange?.(f)}),{formControlContext:u}=Em(i);Tm(()=>t,()=>a(o.defaultValue??""));let c=()=>u.getAriaLabelledBy(M(i.id),s["aria-label"],o["aria-labelledby"]),d=()=>u.getAriaDescribedBy(o["aria-describedby"]),p=f=>f===l(),m={ariaDescribedBy:d,isSelectedValue:p,setSelectedValue:f=>{if(!(u.isReadOnly()||u.isDisabled())&&(a(f),t))for(let g of t.querySelectorAll("[type='radio']")){let v=g;v.checked=p(v.value);}}};return x(Bu.Provider,{value:u,get children(){return x(bd.Provider,{value:m,get children(){return x(Le,re({as:"div",ref(f){let g=st(v=>t=v,o.ref);typeof g=="function"&&g(f);},role:"radiogroup",get id(){return M(i.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 o.orientation},get"aria-labelledby"(){return c()},get"aria-describedby"(){return d()}},()=>u.dataset(),s))}})}})}function xh(e,t,n){let r=Wm({usage:"search",sensitivity:"base"}),o=F(()=>{let i=M(e.keyboardDelegate);return i||new bh(e.collection,t,r)});return ng({selectionManager:()=>M(e.selectionManager),keyboardDelegate:o,autoFocus:()=>M(e.autoFocus),deferAutoFocus:()=>M(e.deferAutoFocus),shouldFocusWrap:()=>M(e.shouldFocusWrap),disallowEmptySelection:()=>M(e.disallowEmptySelection),selectOnFocus:()=>M(e.selectOnFocus),disallowTypeAhead:()=>M(e.disallowTypeAhead),shouldUseVirtualFocus:()=>M(e.shouldUseVirtualFocus),allowsTabNavigation:()=>M(e.allowsTabNavigation),isVirtualized:()=>M(e.isVirtualized),scrollToKey:i=>M(e.scrollToKey)?.(i),orientation:()=>M(e.orientation)},t)}function wh(e,t){let[n,r]=q(!1),o={pause(){r(!0);},resume(){r(!1);}},i=null,s=f=>e.onMountAutoFocus?.(f),l=f=>e.onUnmountAutoFocus?.(f),a=()=>en(t()),u=()=>{let f=a().createElement("span");return f.setAttribute("data-focus-trap",""),f.tabIndex=0,Object.assign(f.style,Ku),f},c=()=>{let f=t();return f?Vu(f,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},d=()=>{let f=c();return f.length>0?f[0]:null},p=()=>{let f=c();return f.length>0?f[f.length-1]:null},m=()=>{let f=t();if(!f)return !1;let g=vo(f);return !g||$t(f,g)?!1:Nu(g)};j(()=>{if(tt)return;let f=t();if(!f)return;mu.add(o);let g=vo(f);if(!$t(f,g)){let h=new CustomEvent(Hs,pu);f.addEventListener(Hs,s),f.dispatchEvent(h),h.defaultPrevented||setTimeout(()=>{rt(d()),vo(f)===g&&rt(f);},0);}W(()=>{f.removeEventListener(Hs,s),setTimeout(()=>{let h=new CustomEvent(Qs,pu);m()&&h.preventDefault(),f.addEventListener(Qs,l),f.dispatchEvent(h),h.defaultPrevented||rt(g??a().body),f.removeEventListener(Qs,l),mu.remove(o);},0);});}),j(()=>{if(tt)return;let f=t();if(!f||!M(e.trapFocus)||n())return;let g=h=>{let y=h.target;y?.closest(`[${Mi}]`)||($t(f,y)?i=y:rt(i));},v=h=>{let b=h.relatedTarget??vo(f);b?.closest(`[${Mi}]`)||$t(f,b)||rt(i);};a().addEventListener("focusin",g),a().addEventListener("focusout",v),W(()=>{a().removeEventListener("focusin",g),a().removeEventListener("focusout",v);});}),j(()=>{if(tt)return;let f=t();if(!f||!M(e.trapFocus)||n())return;let g=u();f.insertAdjacentElement("afterbegin",g);let v=u();f.insertAdjacentElement("beforeend",v);function h(b){let w=d(),C=p();b.relatedTarget===w?rt(C):rt(w);}g.addEventListener("focusin",h),v.addEventListener("focusin",h);let y=new MutationObserver(b=>{for(let w of b)w.previousSibling===v&&(v.remove(),f.insertAdjacentElement("beforeend",v)),w.nextSibling===g&&(g.remove(),f.insertAdjacentElement("afterbegin",g));});y.observe(f,{childList:!0,subtree:!1}),W(()=>{g.removeEventListener("focusin",h),v.removeEventListener("focusin",h),g.remove(),v.remove(),y.disconnect();});});}function Sh(e){j(()=>{M(e.isDisabled)||W(kh(M(e.targets),M(e.root)));});}function kh(e,t=document.body){let n=new Set(e),r=new Set,o=a=>{for(let p of a.querySelectorAll(`[${Ch}], [${Mi}]`))n.add(p);let u=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of n)if(p.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(a);if(d===NodeFilter.FILTER_ACCEPT&&i(a),d!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)i(p),p=c.nextNode();}},i=a=>{let u=go.get(a)??0;a.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&a.setAttribute("aria-hidden","true"),r.add(a),go.set(a,u+1));};Pt.length&&Pt[Pt.length-1].disconnect(),o(t);let s=new MutationObserver(a=>{for(let u of a)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c);}});s.observe(t,{childList:!0,subtree:!0});let l={observe(){s.observe(t,{childList:!0,subtree:!0});},disconnect(){s.disconnect();}};return Pt.push(l),()=>{s.disconnect();for(let a of r){let u=go.get(a);if(u==null)return;u===1?(a.removeAttribute("aria-hidden"),go.delete(a)):go.set(a,u-1);}l===Pt[Pt.length-1]?(Pt.pop(),Pt.length&&Pt[Pt.length-1].observe()):Pt.splice(Pt.indexOf(l),1);}}function _d(){return Ke(Md)}function gn(){let e=_d();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function Ca(){let e=Ke(Fd);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function nn(){let e=Ke(Dd);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Sa(e){let t,n=nn(),r=gn(),o=be({id:n.generateId(`item-${gt()}`)},e),[i,s]=Se(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[l,a]=q(),[u,c]=q(),[d,p]=q(),m=()=>r.listState().selectionManager(),f=()=>s.id,g=()=>m().focusedKey()===f(),v=()=>{i.onSelect?.(),i.closeOnSelect&&setTimeout(()=>{r.close(!0);});};Nm({getItem:()=>({ref:()=>t,type:"item",key:f(),textValue:i.textValue??d()?.textContent??t?.textContent??"",disabled:i.disabled??!1})});let h=td({key:f,selectionManager:m,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),y=I=>{De(I,i.onPointerMove),I.pointerType==="mouse"&&(i.disabled?r.onItemLeave(I):(r.onItemEnter(I),I.defaultPrevented||(rt(I.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(f()))));},b=I=>{De(I,i.onPointerLeave),I.pointerType==="mouse"&&r.onItemLeave(I);},w=I=>{De(I,i.onPointerUp),!i.disabled&&I.button===0&&v();},C=I=>{if(De(I,i.onKeyDown),!I.repeat&&!i.disabled)switch(I.key){case"Enter":case" ":v();break}},S=F(()=>{if(i.indeterminate)return "mixed";if(i.checked!=null)return i.checked}),k=F(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":g()?"":void 0})),E={isChecked:()=>i.checked,dataset:k,setLabelRef:p,generateId:Eo(()=>s.id),registerLabel:Mt(a),registerDescription:Mt(c)};return x(Fd.Provider,{value:E,get children(){return x(Le,re({as:"div",ref(I){let P=st(V=>t=V,i.ref);typeof P=="function"&&P(I);},get tabIndex(){return h.tabIndex()},get"aria-checked"(){return S()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return l()},get"aria-describedby"(){return u()},get"data-key"(){return h.dataKey()},get onPointerDown(){return We([i.onPointerDown,h.onPointerDown])},get onPointerUp(){return We([w,h.onPointerUp])},get onClick(){return We([i.onClick,h.onClick])},get onKeyDown(){return We([C,h.onKeyDown])},get onMouseDown(){return We([i.onMouseDown,h.onMouseDown])},get onFocus(){return We([i.onFocus,h.onFocus])},onPointerMove:y,onPointerLeave:b},k,s))}})}function Ld(e){let t=be({closeOnSelect:!1},e),[n,r]=Se(t,["checked","defaultChecked","onChange","onSelect"]),o=Fm({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:s=>n.onChange?.(s),isDisabled:()=>r.disabled});return x(Sa,re({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{n.onSelect?.(),o.toggle();}},r))}function Ui(){return Ke(Lh)}function Ad(e){let t=nn(),n=gn(),r=Ui(),{direction:o}=Fn(),i=be({id:t.generateId("trigger")},e),[s,l]=Se(i,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),a=()=>t.value();r!==void 0&&(a=()=>t.value()??s.id,r.lastValue()===void 0&&r.setLastValue(a));let u=Ni(()=>n.triggerRef(),()=>"button"),c=F(()=>u()==="a"&&n.triggerRef()?.getAttribute("href")!=null);j(Yt(()=>r?.value(),h=>{c()&&h===a()&&n.triggerRef()?.focus();}));let d=()=>{r!==void 0?n.isOpen()?r.value()===a()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0);},p=h=>{De(h,s.onPointerDown),h.currentTarget.dataset.pointerType=h.pointerType,!s.disabled&&h.pointerType!=="touch"&&h.button===0&&d();},m=h=>{De(h,s.onClick),s.disabled||h.currentTarget.dataset.pointerType==="touch"&&d();},f=h=>{if(De(h,s.onKeyDown),!s.disabled){if(c())switch(h.key){case"Enter":case" ":return}switch(h.key){case"Enter":case" ":case xu.first(t.orientation()):h.stopPropagation(),h.preventDefault(),km(h.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(a);break;case xu.last(t.orientation()):h.stopPropagation(),h.preventDefault(),n.open("last");break;case So.next(o(),t.orientation()):if(r===void 0)break;h.stopPropagation(),h.preventDefault(),r.nextMenu();break;case So.previous(o(),t.orientation()):if(r===void 0)break;h.stopPropagation(),h.preventDefault(),r.previousMenu();break}}},g=h=>{De(h,s.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(a);},v=h=>{De(h,s.onFocus),r!==void 0&&h.currentTarget.dataset.pointerType!=="touch"&&r.setValue(a);};return j(()=>W(n.registerTriggerId(s.id))),x(pa,re({ref(h){let y=st(n.setTriggerRef,s.ref);typeof y=="function"&&y(h);},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return s.id},get disabled(){return s.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return ze(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return a()!==void 0&&r?.value()===a()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===a()||r.lastValue()===a()?0:-1:void 0},onPointerDown:p,onMouseOver:g,onClick:m,onKeyDown:f,onFocus:v,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),l))}function Od(){return Ke(Ah)}function Rd(e){let t,n=nn(),r=gn(),o=Ui(),i=Od(),{direction:s}=Fn(),l=be({id:n.generateId(`content-${gt()}`)},e),[a,u]=Se(l,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),c=0,d=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),p=xh({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);wh({trapFocus:()=>d()&&r.isOpen(),onMountAutoFocus:b=>{o===void 0&&a.onOpenAutoFocus?.(b);},onUnmountAutoFocus:a.onCloseAutoFocus},()=>t);let m=b=>{if($t(b.currentTarget,b.target)&&(b.key==="Tab"&&r.isOpen()&&b.preventDefault(),o!==void 0&&b.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(b.key){case So.next(s(),n.orientation()):b.stopPropagation(),b.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case So.previous(s(),n.orientation()):if(b.currentTarget.hasAttribute("data-closed"))break;b.stopPropagation(),b.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},f=b=>{a.onEscapeKeyDown?.(b),o?.setAutoFocusMenu(!1),r.close(!0);},g=b=>{a.onFocusOutside?.(b),n.isModal()&&b.preventDefault();},v=b=>{De(b,a.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0));},h=b=>{if(De(b,a.onPointerMove),b.pointerType!=="mouse")return;let w=b.target,C=c!==b.clientX;$t(b.currentTarget,w)&&C&&(r.setPointerDir(b.clientX>c?"right":"left"),c=b.clientX);};j(()=>W(r.registerContentId(a.id)));let y={ref:st(b=>{r.setContentRef(b),t=b;},a.ref),role:"menu",get id(){return a.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:We([a.onKeyDown,p.onKeyDown,m]),onMouseDown:We([a.onMouseDown,p.onMouseDown]),onFocusIn:We([a.onFocusIn,p.onFocusIn]),onFocusOut:We([a.onFocusOut,p.onFocusOut]),onPointerEnter:v,onPointerMove:h,get"data-orientation"(){return n.orientation()}};return x(B,{get when(){return r.contentPresent()},get children(){return x(B,{get when(){return i===void 0||r.parentMenuContext()!=null},get fallback(){return x(Le,re({as:"div"},()=>r.dataset(),y,u))},get children(){return x(hd.Positioner,{get children(){return x(yh,re({get disableOutsidePointerEvents(){return ze(()=>!!d())()&&r.isOpen()},get excludedElements(){return [r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return zi({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},a.style)},onEscapeKeyDown:f,onFocusOutside:g,get onDismiss(){return r.close}},()=>r.dataset(),y,u))}})}})}})}function Oh(e){let t,n=nn(),r=gn(),[o,i]=Se(e,["ref"]);return Dh({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),x(Rd,re({ref(s){let l=st(a=>{t=a;},o.ref);typeof l=="function"&&l(s);}},i))}function Rh(){let e=Ke(qd);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function ka(e){let t=nn(),n=be({id:t.generateId(`group-${gt()}`)},e),[r,o]=q(),i={generateId:Eo(()=>n.id),registerLabelId:Mt(o)};return x(qd.Provider,{value:i,get children(){return x(Le,re({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function zd(e){let t=Rh(),n=be({id:t.generateId("label")},e),[r,o]=Se(n,["id"]);return j(()=>W(t.registerLabelId(r.id))),x(Le,re({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function Vd(e){let t=gn(),n=be({children:"\u25BC"},e);return x(Le,re({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function Nd(e){return x(Sa,re({role:"menuitem",closeOnSelect:!0},e))}function Kd(e){let t=Ca(),n=be({id:t.generateId("description")},e),[r,o]=Se(n,["id"]);return j(()=>W(t.registerDescription(r.id))),x(Le,re({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function Bd(e){let t=Ca(),n=be({id:t.generateId("indicator")},e),[r,o]=Se(n,["forceMount"]);return x(B,{get when(){return r.forceMount||t.isChecked()},get children(){return x(Le,re({as:"div"},()=>t.dataset(),o))}})}function Gd(e){let t=Ca(),n=be({id:t.generateId("label")},e),[r,o]=Se(n,["ref","id"]);return j(()=>W(t.registerLabel(r.id))),x(Le,re({as:"div",ref(i){let s=st(t.setLabelRef,r.ref);typeof s=="function"&&s(i);},get id(){return r.id}},()=>t.dataset(),o))}function Ud(e){let t=gn();return x(B,{get when(){return t.contentPresent()},get children(){return x(zs,e)}})}function qh(){let e=Ke(Hd);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Qd(e){let n=nn().generateId(`radiogroup-${gt()}`),r=be({id:n},e),[o,i]=Se(r,["value","defaultValue","onChange","disabled"]),[s,l]=To({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:u=>o.onChange?.(u)}),a={isDisabled:()=>o.disabled,isSelectedValue:u=>u===s(),setSelectedValue:l};return x(Hd.Provider,{value:a,get children(){return x(ka,i)}})}function jd(e){let t=qh(),n=be({closeOnSelect:!1},e),[r,o]=Se(n,["value","onSelect"]);return x(Sa,re({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value);}},o))}function zh(e,t,n){let r=e.split("-")[0],o=n.getBoundingClientRect(),i=[],s=t.clientX,l=t.clientY;switch(r){case"top":i.push([s,l+5]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]);break;case"right":i.push([s-5,l]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]);break;case"bottom":i.push([s,l-5]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]);break;case"left":i.push([s+5,l]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]);break}return i}function Vh(e,t){return t?Sm([e.clientX,e.clientY],t):!1}function Wd(e){let t=nn(),n=ju(),r=_d(),o=Ui(),i=Od(),s=be({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[l,a]=Se(s,["open","defaultOpen","onOpenChange"]),u=0,c=null,d="right",[p,m]=q(),[f,g]=q(),[v,h]=q(),[y,b]=q(),[w,C]=q(!0),[S,k]=q(a.placement),[E,I]=q([]),[P,V]=q([]),{DomCollectionProvider:L}=Vm({items:P,onItemsChange:V}),H=vd({open:()=>l.open,defaultOpen:()=>l.defaultOpen,onOpenChange:Z=>l.onOpenChange?.(Z)}),{present:K}=nd({show:()=>t.forceMount()||H.isOpen(),element:()=>y()??null}),oe=og({selectionMode:"none",dataSource:P}),de=Z=>{C(Z),H.open();},he=(Z=!1)=>{H.close(),Z&&r&&r.close(!0);},xe=Z=>{C(Z),H.toggle();},we=()=>{let Z=y();Z&&(rt(Z),oe.selectionManager().setFocused(!0),oe.selectionManager().setFocusedKey(void 0));},Pe=()=>{i!=null?setTimeout(()=>we()):we();},qe=Z=>{I(Ae=>[...Ae,Z]);let He=r?.registerNestedMenu(Z);return ()=>{I(Ae=>Xs(Ae,Z)),He?.();}},Ee=Z=>d===c?.side&&Vh(Z,c?.area),Re=Z=>{Ee(Z)&&Z.preventDefault();},_=Z=>{Ee(Z)||Pe();},Te=Z=>{Ee(Z)&&Z.preventDefault();};Sh({isDisabled:()=>!(r==null&&H.isOpen()&&t.isModal()),targets:()=>[y(),...E()].filter(Boolean)}),j(()=>{let Z=y();if(!Z||!r)return;let He=r.registerNestedMenu(Z);W(()=>{He();});}),j(()=>{r===void 0&&o?.registerMenu(t.value(),[y(),...E()]);}),j(()=>{r!==void 0||o===void 0||(o.value()===t.value()?(v()?.focus(),o.autoFocusMenu()&&de(!0)):he());}),j(()=>{r!==void 0||o===void 0||H.isOpen()&&o.setValue(t.value());}),W(()=>{r===void 0&&o?.unregisterMenu(t.value());});let Ue={dataset:F(()=>({"data-expanded":H.isOpen()?"":void 0,"data-closed":H.isOpen()?void 0:""})),isOpen:H.isOpen,contentPresent:K,nestedMenus:E,currentPlacement:S,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>oe,parentMenuContext:()=>r,triggerRef:v,contentRef:y,triggerId:p,contentId:f,setTriggerRef:h,setContentRef:b,open:de,close:he,toggle:xe,focusContent:Pe,onItemEnter:Re,onItemLeave:_,onTriggerLeave:Te,setPointerDir:Z=>d=Z,setPointerGraceTimeoutId:Z=>u=Z,setPointerGraceIntent:Z=>c=Z,registerNestedMenu:qe,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:Mt(m),registerContentId:Mt(g)};return x(L,{get children(){return x(Md.Provider,{value:Ue,get children(){return x(B,{when:i===void 0,get fallback(){return a.children},get children(){return x(hd,re({anchorRef:v,contentRef:y,onCurrentPlacementChange:k},a))}})}})}})}function Yd(e){let{direction:t}=Fn();return x(Wd,re({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Xd(e){let t=gn(),n=nn(),[r,o]=Se(e,["onFocusOutside","onKeyDown"]),{direction:i}=Fn();return x(Rd,re({onOpenAutoFocus:c=>{c.preventDefault();},onCloseAutoFocus:c=>{c.preventDefault();},onFocusOutside:c=>{r.onFocusOutside?.(c);let d=c.target;$t(t.triggerRef(),d)||t.close();},onKeyDown:c=>{De(c,r.onKeyDown);let d=$t(c.currentTarget,c.target),p=Nh.close(i(),n.orientation()).includes(c.key),m=t.parentMenuContext()!=null;d&&p&&m&&(t.close(),rt(t.triggerRef()));}},o))}function Zd(e){let t,n=nn(),r=gn(),o=be({id:n.generateId(`sub-trigger-${gt()}`)},e),[i,s]=Se(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),l=null,a=()=>{tt||(l&&window.clearTimeout(l),l=null);},{direction:u}=Fn(),c=()=>i.id,d=()=>{let b=r.parentMenuContext();if(b==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return b.listState().selectionManager()},p=()=>r.listState().collection(),m=()=>d().focusedKey()===c(),f=td({key:c,selectionManager:d,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),g=b=>{De(b,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0);},v=b=>{if(De(b,i.onPointerMove),b.pointerType!=="mouse")return;let w=r.parentMenuContext();if(w?.onItemEnter(b),!b.defaultPrevented){if(i.disabled){w?.onItemLeave(b);return}!r.isOpen()&&!l&&(r.parentMenuContext()?.setPointerGraceIntent(null),l=window.setTimeout(()=>{r.open(!1),a();},100)),w?.onItemEnter(b),b.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),rt(b.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(c()));}},h=b=>{if(De(b,i.onPointerLeave),b.pointerType!=="mouse")return;a();let w=r.parentMenuContext(),C=r.contentRef();if(C){w?.setPointerGraceIntent({area:zh(r.currentPlacement(),b,C),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let S=window.setTimeout(()=>{w?.setPointerGraceIntent(null);},300);w?.setPointerGraceTimeoutId(S);}else {if(w?.onTriggerLeave(b),b.defaultPrevented)return;w?.setPointerGraceIntent(null);}w?.onItemLeave(b);},y=b=>{De(b,i.onKeyDown),!b.repeat&&(i.disabled||Kh.open(u(),n.orientation()).includes(b.key)&&(b.stopPropagation(),b.preventDefault(),d().setFocused(!1),d().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(p().getFirstKey())));};return j(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let b=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:c(),textValue:i.textValue??t?.textContent??"",disabled:i.disabled??!1});W(b);}),j(Yt(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),b=>{W(()=>{window.clearTimeout(b),r.parentMenuContext()?.setPointerGraceIntent(null);});})),j(()=>W(r.registerTriggerId(i.id))),W(()=>{a();}),x(Le,re({as:"div",ref(b){let w=st(C=>{r.setTriggerRef(C),t=C;},i.ref);typeof w=="function"&&w(b);},get id(){return i.id},role:"menuitem",get tabIndex(){return f.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return ze(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return f.dataKey()},get"data-highlighted"(){return m()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return We([i.onPointerDown,f.onPointerDown])},get onPointerUp(){return We([i.onPointerUp,f.onPointerUp])},get onClick(){return We([g,f.onClick])},get onKeyDown(){return We([y,f.onKeyDown])},get onMouseDown(){return We([i.onMouseDown,f.onMouseDown])},get onFocus(){return We([i.onFocus,f.onFocus])},onPointerMove:v,onPointerLeave:h},()=>r.dataset(),s))}function Bh(e){let t=Ui(),n=`menu-${gt()}`,r=be({id:n,modal:!0},e),[o,i]=Se(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=vd({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:a=>o.onOpenChange?.(a)}),l={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??l.isModal(),forceMount:()=>o.forceMount??!1,generateId:Eo(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??t?.orientation()??"horizontal"};return x(Dd.Provider,{value:l,get children(){return x(Wd,re({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},i))}})}function Hi(e){let t,n=be({orientation:"horizontal"},e),[r,o]=Se(n,["ref","orientation"]),i=Ni(()=>t,()=>"hr");return x(Le,re({as:"hr",ref(s){let l=st(a=>t=a,r.ref);typeof l=="function"&&l(s);},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}function Jd(e){let t=nn(),n=gn(),[r,o]=Se(e,["onCloseAutoFocus","onInteractOutside"]),i=!1;return x(Oh,re({onCloseAutoFocus:a=>{r.onCloseAutoFocus?.(a),i||rt(n.triggerRef()),i=!1,a.preventDefault();},onInteractOutside:a=>{r.onInteractOutside?.(a),(!t.isModal()||a.detail.isContextMenu)&&(i=!0);}},o))}function e1(e){let t=`dropdownmenu-${gt()}`,n=be({id:t},e);return x(Bh,n)}function my(){return Qh()}function n1(){return jh()}function mr(){return Wh()}function Cu(){return Yh()}function Su(){return Ia()}function gy(){return (()=>{var e=Ia();return e.style.setProperty("transform","rotate(90deg)"),e})()}function hy(){return (()=>{var e=Ia();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function yy(){return Xh()}function vy(){return Zh()}function by(){return Jh()}function xy(){return ey()}function wy(){return ty()}function Cy(){return ny()}function Sy(){return ry()}function ky(){return oy()}function Iy(){return iy()}function Ey(e){return (()=>{var t=t1(),n=t.firstChild;return G(()=>D(n,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Py(){return sy()}function Ty(){return ay()}function $y(e){return [x(B,{get when(){return e.checked},get children(){var t=t1(),n=t.firstChild;return G(()=>D(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),x(B,{get when(){return !e.checked},get children(){var t=ly(),n=t.firstChild;return G(()=>D(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function ia(){return cy()}function My(){return uy()}function _y(){return dy()}function Fy(){return fy()}function ku(){let e=gt();return (()=>{var t=py(),n=t.firstChild,r=n.nextSibling,o=r.nextSibling,i=o.firstChild,s=o.nextSibling,l=s.firstChild,a=s.nextSibling,u=a.nextSibling,c=u.firstChild,d=u.nextSibling,p=d.firstChild,m=d.nextSibling,f=m.nextSibling,g=f.firstChild,v=f.nextSibling,h=v.firstChild,y=v.nextSibling,b=y.nextSibling,w=b.firstChild,C=b.nextSibling,S=C.firstChild,k=C.nextSibling,E=k.nextSibling,I=E.firstChild,P=E.nextSibling,V=P.firstChild,L=P.nextSibling,H=L.nextSibling,K=H.firstChild,oe=H.nextSibling,de=oe.firstChild,he=oe.nextSibling,xe=he.nextSibling,we=xe.firstChild,Pe=xe.nextSibling,qe=Pe.firstChild,Ee=Pe.nextSibling,Re=Ee.firstChild,_=Re.nextSibling,Te=_.nextSibling,le=Te.nextSibling,Ue=le.nextSibling,Z=Ee.nextSibling,He=Z.firstChild,Ae=Z.nextSibling,kt=Ae.firstChild,_e=Ae.nextSibling,ct=_e.firstChild,pt=ct.nextSibling,Ze=pt.nextSibling,Je=Ze.firstChild,ut=Je.nextSibling,O=ut.nextSibling,Y=O.nextSibling,ue=Y.nextSibling,ye=ue.nextSibling,fe=ye.nextSibling,ve=fe.nextSibling,X=ve.nextSibling,ne=X.nextSibling,At=ne.nextSibling,sn=At.nextSibling,Ot=_e.nextSibling,Rn=Ot.firstChild,an=Ot.nextSibling,qn=an.firstChild,ln=an.nextSibling,Sn=ln.firstChild,ni=Sn.nextSibling,Wr=ln.nextSibling,ri=Wr.firstChild,rr=Wr.nextSibling,oi=rr.firstChild,Yr=rr.nextSibling,Xr=Yr.firstChild,Zr=Xr.nextSibling,or=Zr.nextSibling,gl=or.nextSibling,hl=gl.nextSibling,yl=hl.nextSibling,vl=yl.nextSibling,bl=vl.nextSibling,xl=bl.nextSibling,wl=xl.nextSibling,Cl=wl.nextSibling,Sl=Cl.nextSibling,kl=Sl.nextSibling,Il=kl.nextSibling,El=Il.nextSibling,Pl=El.nextSibling,Tl=Pl.nextSibling,Hf=Tl.nextSibling;return D(n,"id",`a-${e}`),D(r,"fill",`url(#a-${e})`),D(i,"id",`am-${e}`),D(s,"id",`b-${e}`),D(l,"filter",`url(#am-${e})`),D(a,"mask",`url(#b-${e})`),D(c,"id",`ah-${e}`),D(d,"id",`k-${e}`),D(p,"filter",`url(#ah-${e})`),D(m,"mask",`url(#k-${e})`),D(g,"id",`ae-${e}`),D(v,"id",`j-${e}`),D(h,"filter",`url(#ae-${e})`),D(y,"mask",`url(#j-${e})`),D(w,"id",`ai-${e}`),D(C,"id",`i-${e}`),D(S,"filter",`url(#ai-${e})`),D(k,"mask",`url(#i-${e})`),D(I,"id",`aj-${e}`),D(P,"id",`h-${e}`),D(V,"filter",`url(#aj-${e})`),D(L,"mask",`url(#h-${e})`),D(K,"id",`ag-${e}`),D(oe,"id",`g-${e}`),D(de,"filter",`url(#ag-${e})`),D(he,"mask",`url(#g-${e})`),D(we,"id",`af-${e}`),D(Pe,"id",`f-${e}`),D(qe,"filter",`url(#af-${e})`),D(Ee,"mask",`url(#f-${e})`),D(le,"id",`m-${e}`),D(Ue,"fill",`url(#m-${e})`),D(He,"id",`ak-${e}`),D(Ae,"id",`e-${e}`),D(kt,"filter",`url(#ak-${e})`),D(_e,"mask",`url(#e-${e})`),D(ct,"id",`n-${e}`),D(pt,"fill",`url(#n-${e})`),D(Je,"id",`r-${e}`),D(ut,"fill",`url(#r-${e})`),D(O,"id",`s-${e}`),D(Y,"fill",`url(#s-${e})`),D(ue,"id",`q-${e}`),D(ye,"fill",`url(#q-${e})`),D(fe,"id",`p-${e}`),D(ve,"fill",`url(#p-${e})`),D(X,"id",`o-${e}`),D(ne,"fill",`url(#o-${e})`),D(At,"id",`l-${e}`),D(sn,"fill",`url(#l-${e})`),D(Rn,"id",`al-${e}`),D(an,"id",`d-${e}`),D(qn,"filter",`url(#al-${e})`),D(ln,"mask",`url(#d-${e})`),D(Sn,"id",`u-${e}`),D(ni,"fill",`url(#u-${e})`),D(ri,"id",`ad-${e}`),D(rr,"id",`c-${e}`),D(oi,"filter",`url(#ad-${e})`),D(Yr,"mask",`url(#c-${e})`),D(Xr,"id",`t-${e}`),D(Zr,"fill",`url(#t-${e})`),D(or,"id",`v-${e}`),D(gl,"stroke",`url(#v-${e})`),D(hl,"id",`aa-${e}`),D(yl,"stroke",`url(#aa-${e})`),D(vl,"id",`w-${e}`),D(bl,"stroke",`url(#w-${e})`),D(xl,"id",`ac-${e}`),D(wl,"stroke",`url(#ac-${e})`),D(Cl,"id",`ab-${e}`),D(Sl,"stroke",`url(#ab-${e})`),D(kl,"id",`y-${e}`),D(Il,"stroke",`url(#y-${e})`),D(El,"id",`x-${e}`),D(Pl,"stroke",`url(#x-${e})`),D(Tl,"id",`z-${e}`),D(Hf,"stroke",`url(#z-${e})`),t})()}function By(e,t){let n=0,r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n=n+t;return r}function Tu(e){return Symbol.iterator in e}function Pn(e){let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),o=U().client,[i,s]=q((e.defaultExpanded||[]).includes(e.label)),l=()=>s(f=>!f),[a,u]=q([]),c=F(()=>Array.isArray(e.value)?e.value.map((f,g)=>({label:g.toString(),value:f})):e.value!==null&&typeof e.value=="object"&&Tu(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([f,g])=>({label:f,value:g})):Array.from(e.value,(f,g)=>({label:g.toString(),value:f})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([f,g])=>({label:f,value:g})):[]),d=F(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&Tu(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=F(()=>By(c(),100)),m=e.dataPath??[];return (()=>{var f=ho();return T(f,x(B,{get when(){return p().length},get children(){return [(()=>{var g=zy(),v=g.firstChild,h=v.firstChild,y=h.nextSibling,b=y.nextSibling,w=b.nextSibling,C=w.firstChild;return v.$$click=()=>l(),T(v,x(Eu,{get expanded(){return i()}}),h),T(y,()=>e.label),T(w,()=>String(d()).toLowerCase()==="iterable"?"(Iterable) ":"",C),T(w,()=>c().length,C),T(w,()=>c().length>1?"items":"item",null),T(g,x(B,{get when(){return e.editable},get children(){var S=ho();return T(S,x(Gy,{get value(){return e.value}}),null),T(S,x(B,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return x(Pu,{get activeQuery(){return e.activeQuery},dataPath:m})}}),null),T(S,x(B,{get when(){return d()==="array"&&e.activeQuery!==void 0},get children(){return x(Uy,{get activeQuery(){return e.activeQuery},dataPath:m})}}),null),T(S,x(B,{get when(){return ze(()=>!!e.onEdit)()&&!Vs(e.value).meta},get children(){var k=qy();return k.$$click=()=>{e.onEdit?.();},T(k,x(Iy,{})),G(()=>A(k,r().actionButton)),k}}),null),G(()=>A(S,r().actions)),S}}),null),G(S=>{var k=r().expanderButtonContainer,E=r().expanderButton,I=r().info;return k!==S.e&&A(g,S.e=k),E!==S.t&&A(v,S.t=E),I!==S.a&&A(w,S.a=I),S},{e:void 0,t:void 0,a:void 0}),g})(),x(B,{get when(){return i()},get children(){return [x(B,{get when(){return p().length===1},get children(){var g=ho();return T(g,x($i,{get each(){return c()},by:v=>v.label,children:v=>x(Pn,{get defaultExpanded(){return e.defaultExpanded},get label(){return v().label},get value(){return v().value},get editable(){return e.editable},get dataPath(){return [...m,v().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return d()==="array"||d()==="Iterable"||d()==="object"}})})),G(()=>A(g,r().subEntry)),g}}),x(B,{get when(){return p().length>1},get children(){var g=ho();return T(g,x(cc,{get each(){return p()},children:(v,h)=>(()=>{var y=Ky(),b=y.firstChild,w=b.firstChild,C=w.firstChild,S=C.nextSibling,k=S.nextSibling,E=k.nextSibling;return E.nextSibling,w.$$click=()=>u(I=>I.includes(h)?I.filter(P=>P!==h):[...I,h]),T(w,x(Eu,{get expanded(){return a().includes(h)}}),C),T(w,h*100,S),T(w,h*100+100-1,E),T(b,x(B,{get when(){return a().includes(h)},get children(){var I=ho();return T(I,x($i,{get each(){return v()},by:P=>P.label,children:P=>x(Pn,{get defaultExpanded(){return e.defaultExpanded},get label(){return P().label},get value(){return P().value},get editable(){return e.editable},get dataPath(){return [...m,P().label]},get activeQuery(){return e.activeQuery}})})),G(()=>A(I,r().subEntry)),I}}),null),G(I=>{var P=r().entry,V=r().expanderButton;return P!==I.e&&A(b,I.e=P),V!==I.t&&A(w,I.t=V),I},{e:void 0,t:void 0}),y})()})),G(()=>A(g,r().subEntry)),g}})]}})]}}),null),T(f,x(B,{get when(){return p().length===0},get children(){var g=Ny(),v=g.firstChild,h=v.firstChild;return T(v,()=>e.label,h),T(g,x(B,{get when(){return ze(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number"||d()==="boolean")},get fallback(){return (()=>{var y=Iu();return T(y,()=>fo(e.value)),G(()=>A(y,r().value)),y})()},get children(){return [x(B,{get when(){return ze(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number")},get children(){var y=Vy();return y.addEventListener("change",b=>{let w=e.activeQuery.state.data,C=kn(w,m,d()==="number"?b.target.valueAsNumber:b.target.value);o.setQueryData(e.activeQuery.queryKey,C);}),G(b=>{var w=d()==="number"?"number":"text",C=z(r().value,r().editableInput);return w!==b.e&&D(y,"type",b.e=w),C!==b.t&&A(y,b.t=C),b},{e:void 0,t:void 0}),G(()=>y.value=e.value),y}}),x(B,{get when(){return d()==="boolean"},get children(){var y=Iu();return T(y,x(Hy,{get activeQuery(){return e.activeQuery},dataPath:m,get value(){return e.value}}),null),T(y,()=>fo(e.value),null),G(()=>A(y,z(r().value,r().actions,r().editableInput))),y}})]}}),null),T(g,x(B,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return x(Pu,{get activeQuery(){return e.activeQuery},dataPath:m})}}),null),G(y=>{var b=r().row,w=r().label;return b!==y.e&&A(g,y.e=b),w!==y.t&&A(v,y.t=w),y},{e:void 0,t:void 0}),g}}),null),G(()=>A(f,r().entry)),f})()}var y2,v2,Oc,b2,x2,M,js,S2,Oi,E2,Rc,Et,P2,Un,sa,T2,Ws,Ri,$2,Mu,M2,_u,_2,qc,F2,ko,Fu,qi,aa,Io,Du,D2,L2,ft,Kc,N2,K2,B2,G2,Bc,Gn,un,Lu,U2,H2,Gc,Uc,Bs,nm,la,Ei,zu,gm,ua,hm,mo,Yc,Ku,Im,Bu,Dm,Ki,Qu,Bm,Gm,Js,bo,jm,Gs,dn,rg,nu,nt,ig,sg,nd,Mi,rd,ea,pn,ht,gg,hg,vg,bg,Jt,vt,_i,Pi,$n,xg,wg,Pg,Tg,$g,Mg,Fg,Dg,Lg,Rg,jg,gd,Zg,Jg,eh,th,nh,rh,oh,ba,ih,ra,cu,sh,dh,hd,du,fu,yd,Tt,bd,wd,vh,bh,Hs,Qs,pu,mu,Ch,go,Pt,Ti,Ih,gu,Eh,Ph,Th,hu,yu,$h,Mh,_h,vu,bu,oa,Fh,Dh,Md,Fd,Dd,Lh,So,xu,Ah,qd,Hd,Nh,wu,Kh,Gh,Uh,Me,Hh,$,Qh,jh,Wh,Yh,Ia,Xh,Zh,Jh,ey,ty,ny,ry,oy,iy,t1,sy,ay,ly,cy,uy,dy,fy,py,Dy,Ly,Ay,Oy,Ry,qy,ho,zy,Vy,Iu,Ny,Ky,Eu,Gy,Uy,Pu,Hy,r1,br,xr,Qy,_o,jy,Wy,Yy,Xy,Zy,Jy,e3,t3,n3,r3,o3,i3,s3,a3,l3,c3,u3,d3,f3,p3,m3,g3,$u,h3,y3,o1,v3,b3,x3,w3,C3,S3,k3,I3,E3,P3,yt,Qi,Tn,i1,qt,Ea,yo,T3,s1,$3,a1,M3,ji,_3,F3,D3,L3,fn,A3,O3,Li,R3,je,Ai,q3,Rt,z3,Zt,l1,_t,Ft,Pa=Q(()=>{po();y2=!tt,v2=y2&&!!dc,Oc=()=>{},b2=e=>e!=null,x2=e=>e.filter(b2);M=e=>typeof e=="function"&&!e.length?e():e,js=e=>Array.isArray(e)?e:e?[e]:[];S2=v2?e=>gi()?W(e):e:W;Oi=I2,E2=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t);}),e),Rc=e=>{if(!e)return "";let t="";for(let n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`;}return t},Et=E2({_cookies:[globalThis.document,"cookie"],getItem:e=>Et._cookies[0][Et._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,n)=>{let r=Et.getItem(e);Et._cookies[0][Et._cookies[1]]=`${e}=${t}${Rc(n)}`;let o=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:Et});window.dispatchEvent(o);},removeItem:e=>{Et._cookies[0][Et._cookies[1]]=`${e}=deleted${Rc({expires:new Date(0)})}`;},key:e=>{let t=null,n=0;return Et._cookies[0][Et._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,o)=>(!t&&o&&n++===e&&(t=o),"")),t},get length(){let e=0;return Et._cookies[0][Et._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),P2=1024,Un=796,sa=700,T2="bottom-right",Ws="bottom",Ri="system",$2=!1,Mu=500,M2=500,_u=500,_2=Object.keys(Si)[0],qc=1,F2=Object.keys(ki)[0],ko=Qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Fu=Qe(void 0),qi=e=>{let[t,n]=q(null),r=()=>{let s=t();s!=null&&(s.close(),n(null));},o=(s,l)=>{if(t()!=null)return;let a=window.open("","TSQD-Devtools-Panel",`width=${s},height=${l},popup`);if(!a)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");a.document.head.innerHTML="",a.document.body.innerHTML="",fc(a.document),a.document.title="TanStack Query Devtools",a.document.body.style.margin="0",a.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),n(null);}),[...(U().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let c=[...u.cssRules].map(f=>f.cssText).join(""),d=document.createElement("style"),p=u.ownerNode,m="";p&&"id"in p&&(m=p.id),m&&d.setAttribute("id",m),d.textContent=c,a.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,a.document.head.appendChild(d);}}),uo(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],a.document),e.setLocalStore("pip_open","true"),n(a);};j(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&o(Number(window.innerWidth),Number(e.localStore.height||M2));}),j(()=>{let s=(U().shadowDOMTarget||document).querySelector("#_goober"),l=t();if(s&&l){let a=new MutationObserver(()=>{let u=(U().shadowDOMTarget||l.document).querySelector("#_goober");u&&(u.textContent=s.textContent);});a.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),W(()=>{a.disconnect();});}});let i=F(()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:r,disabled:e.disabled??!1}));return x(Fu.Provider,{value:i,get children(){return e.children}})},aa=()=>F(()=>{let t=Ke(Fu);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Io=Qe(()=>"dark");Du={\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"},D2=Object.keys(Du).join("|"),L2=new RegExp(D2,"g");ft={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Kc={maxRanking:1/0,minRanking:-1/0};N2={data:""},K2=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||N2,B2=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,G2=/\/\*[^]*?\*\/| +/g,Bc=/\n+/g,Gn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Gn(s,i):i+"{"+Gn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Gn(s,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Gn.p?Gn.p(i,s):i+":"+s+";");}return n+(t&&o?t+"{"+o+"}":o)+r},un={},Lu=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Lu(e[n]);return t}return e},U2=(e,t,n,r,o)=>{let i=Lu(e),s=un[i]||(un[i]=(a=>{let u=0,c=11;for(;u<a.length;)c=101*c+a.charCodeAt(u++)>>>0;return "go"+c})(i));if(!un[s]){let a=i!==e?e:(u=>{let c,d,p=[{}];for(;c=B2.exec(u.replace(G2,""));)c[4]?p.shift():c[3]?(d=c[3].replace(Bc," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][c[1]]=c[2].replace(Bc," ").trim();return p[0]})(e);un[s]=Gn(o?{["@keyframes "+s]:a}:a,n?"":"."+s);}let l=n&&un.g?un.g:null;return n&&(un.g=un[s]),((a,u,c,d)=>{d?u.data=u.data.replace(d,a):u.data.indexOf(a)===-1&&(u.data=c?a+u.data:u.data+a);})(un[s],t,r,l),s},H2=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=a?"."+a:l&&typeof l=="object"?l.props?"":Gn(l,""):l===!1?"":l;}return r+o+(s??"")},"");ce.bind({g:1});ce.bind({k:1});Gc=tt?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Uc=e=>{let t=W2(e);return Q2(j2(()=>e.children).toArray,{appear:e.appear,onChange({added:n,removed:r,finishRemoved:o,list:i}){let s=t();for(let a of n)Y2(s,e,a);let l=[];for(let a of i)a.isConnected&&(a instanceof HTMLElement||a instanceof SVGElement)&&l.push({el:a,rect:a.getBoundingClientRect()});queueMicrotask(()=>{let a=[];for(let{el:u,rect:c}of l)if(u.isConnected){let d=u.getBoundingClientRect(),p=c.left-d.left,m=c.top-d.top;(p||m)&&(u.style.transform=`translate(${p}px, ${m}px)`,u.style.transitionDuration="0s",a.push(u));}document.body.offsetHeight;for(let u of a){let c=function(d){(d.target===u||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",c),u.classList.remove(...s.move));};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",c);}});for(let a of r)X2(s,e,a,()=>o([a]));}})},Bs=Symbol("fallback");nm=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;la=(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))(la||{});Ei=null;zu=["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'])"],gm=[...zu,'[tabindex]:not([tabindex="-1"]):not([disabled])'],ua=zu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",hm=gm.join(':not([hidden]):not([tabindex="-1"]),');mo=new Map,Yc=new Set;typeof document<"u"&&(document.readyState!=="loading"?Xc():document.addEventListener("DOMContentLoaded",Xc));Ku={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"};Im=["id","name","validationState","required","disabled","readOnly"];Bu=Qe();Dm=Object.defineProperty,Ki=(e,t)=>{for(var n in t)Dm(e,n,{get:t[n],enumerable:!0});},Qu=Qe();Bm=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Gm=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Js=Zu(),bo=new Set;jm=Qe();Gs=new Map;dn=class Ju extends Set{constructor(n,r,o){super(n);It(this,"anchorKey");It(this,"currentKey");n instanceof Ju?(this.anchorKey=r||n.anchorKey,this.currentKey=o||n.currentKey):(this.anchorKey=r,this.currentKey=o);}};rg=class{constructor(e,t){It(this,"collection");It(this,"state");this.collection=e,this.state=t;}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e);}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e);}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e);}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return !1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return !1;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n);}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n);}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=this.state.selectedKeys(),r=n.anchorKey||t,o=new dn(n,r,t);for(let i of this.getKeyRange(r,n.currentKey||t))o.delete(i);for(let i of this.getKeyRange(t,r))this.canSelectItem(i)&&o.add(i);this.state.setSelectedKeys(o);}getKeyRange(e,t){let n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r!=null;){let o=this.collection().getItem(r);if(o&&o.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r);}return []}getKey(e){let t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new dn(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n);}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new dn([t],t,t):new dn;this.state.setSelectedKeys(n);}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new dn;for(let n of e){let r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t);}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()));}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new dn);}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll();}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e));}isSelectionEqual(e){if(e===this.state.selectedKeys())return !0;let t=this.selectedKeys();if(e.size!==t.size)return !1;for(let n of e)if(!t.has(n))return !1;for(let n of t)if(!e.has(n))return !1;return !0}canSelectItem(e){if(this.state.selectionMode()==="none")return !1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return !t||t.disabled}getAllSelectableKeys(){let e=[];return (n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n);}n=this.collection().getKeyAfter(n);}})(this.collection().getFirstKey()),e}},nu=class{constructor(e){It(this,"keyMap",new Map);It(this,"iterable");It(this,"firstKey");It(this,"lastKey");this.iterable=e;for(let r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(let[r,o]of this.keyMap)t?(t.nextKey=r,o.prevKey=t.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=n++),t=o,t.nextKey=void 0;this.lastKey=t.key;}*[Symbol.iterator](){yield*this.iterable;}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};nt=e=>typeof e=="function"?e():e,ig=e=>{let t=F(()=>{let s=nt(e.element);if(s)return getComputedStyle(s)}),n=()=>t()?.animationName??"none",[r,o]=q(nt(e.show)?"present":"hidden"),i="none";return j(s=>{let l=nt(e.show);return $e(()=>{if(s===l)return l;let a=i,u=n();l?o("present"):u==="none"||t()?.display==="none"?o("hidden"):o(s===!0&&a!==u?"hiding":"hidden");}),l}),j(()=>{let s=nt(e.element);if(!s)return;let l=u=>{u.target===s&&(i=n());},a=u=>{let d=n().includes(u.animationName);u.target===s&&d&&r()==="hiding"&&o("hidden");};s.addEventListener("animationstart",l),s.addEventListener("animationcancel",a),s.addEventListener("animationend",a),W(()=>{s.removeEventListener("animationstart",l),s.removeEventListener("animationcancel",a),s.removeEventListener("animationend",a);});}),{present:()=>r()==="present"||r()==="hiding",state:r}},sg=ig,nd=sg,Mi="data-kb-top-layer",ea=!1,pn=[];ht={layers:pn,isTopMostLayer:lg,hasPointerBlockingLayer:fa,isBelowPointerBlockingLayer:id,addLayer:ug,removeLayer:dg,indexOf:xo,find:ag,assignPointerEventToLayers:fg,disableBodyPointerEvents:pg,restoreBodyPointerEvents:mg},gg={};Ki(gg,{Button:()=>vg,Root:()=>pa});hg=["button","color","file","image","reset","submit"];vg=pa,bg=["top","right","bottom","left"],Jt=Math.min,vt=Math.max,_i=Math.round,Pi=Math.floor,$n=e=>({x:e,y:e}),xg={left:"right",right:"left",bottom:"top",top:"bottom"},wg={start:"end",end:"start"};Pg=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=ru(u,r,a),p=r,m={},f=0;for(let g=0;g<l.length;g++){let{name:v,fn:h}=l[g],{x:y,y:b,data:w,reset:C}=await h({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,d=b??d,m={...m,[v]:{...m[v],...w}},C&&f<=50&&(f++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:c,y:d}=ru(u,p,a)),g=-1);}return {x:c,y:d,placement:p,strategy:o,middlewareData:m}};Tg=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=jn(e,t)||{};if(u==null)return {};let d=ad(c),p={x:n,y:r},m=ga(o),f=ma(m),g=await s.getDimensions(u),v=m==="y",h=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[m]-p[m]-i.floating[f],C=p[m]-i.reference[m],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),k=S?S[b]:0;(!k||!await(s.isElement==null?void 0:s.isElement(S)))&&(k=l.floating[b]||i.floating[f]);let E=w/2-C/2,I=k/2-g[f]/2-1,P=Jt(d[h],I),V=Jt(d[y],I),L=P,H=k-g[f]-V,K=k/2-g[f]/2+E,oe=ta(L,K,H),de=!a.arrow&&yr(o)!=null&&K!==oe&&i.reference[f]/2-(K<L?P:V)-g[f]/2<0,he=de?K<L?K-L:K-H:0;return {[m]:p[m]+he,data:{[m]:oe,centerOffset:K-oe-he,...de&&{alignmentOffset:he}},reset:de}}}),$g=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;let{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...v}=jn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return {};let h=Mn(o),y=Hn(l),b=Mn(l)===l,w=await(a.isRTL==null?void 0:a.isRTL(u.floating)),C=p||(b||!g?[Fi(l)]:Sg(l)),S=f!=="none";!p&&S&&C.push(...Ig(l,g,f,w));let k=[l,...C],E=await wo(t,v),I=[],P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&I.push(E[h]),d){let K=Cg(o,s,w);I.push(E[K[0]],E[K[1]]);}if(P=[...P,{placement:o,overflows:I}],!I.every(K=>K<=0)){var V,L;let K=(((V=i.flip)==null?void 0:V.index)||0)+1,oe=k[K];if(oe)return {data:{index:K,overflows:P},reset:{placement:oe}};let de=(L=P.filter(he=>he.overflows[0]<=0).sort((he,xe)=>he.overflows[1]-xe.overflows[1])[0])==null?void 0:L.placement;if(!de)switch(m){case"bestFit":{var H;let he=(H=P.filter(xe=>{if(S){let we=Hn(xe.placement);return we===y||we==="y"}return !0}).map(xe=>[xe.placement,xe.overflows.filter(we=>we>0).reduce((we,Pe)=>we+Pe,0)]).sort((xe,we)=>xe[1]-we[1])[0])==null?void 0:H[0];he&&(de=he);break}case"initialPlacement":de=l;break}if(o!==de)return {reset:{placement:de}}}return {}}}};Mg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=jn(e,t);switch(r){case"referenceHidden":{let i=await wo(t,{...o,elementContext:"reference"}),s=ou(i,n.reference);return {data:{referenceHiddenOffsets:s,referenceHidden:iu(s)}}}case"escaped":{let i=await wo(t,{...o,altBoundary:!0}),s=ou(i,n.floating);return {data:{escapedOffsets:s,escaped:iu(s)}}}default:return {}}}}};Fg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:s,middlewareData:l}=t,a=await _g(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Dg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x:h,y}=v;return {x:h,y}}},...a}=jn(e,t),u={x:n,y:r},c=await wo(t,a),d=Hn(Mn(o)),p=sd(d),m=u[p],f=u[d];if(i){let v=p==="y"?"top":"left",h=p==="y"?"bottom":"right",y=m+c[v],b=m-c[h];m=ta(y,m,b);}if(s){let v=d==="y"?"top":"left",h=d==="y"?"bottom":"right",y=f+c[v],b=f-c[h];f=ta(y,f,b);}let g=l.fn({...t,[p]:m,[d]:f});return {...g,data:{x:g.x-n,y:g.y-r}}}}},Lg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...l}=jn(e,t),a=await wo(t,l),u=Mn(n),c=yr(n),d=Hn(n)==="y",{width:p,height:m}=r.floating,f,g;u==="top"||u==="bottom"?(f=u,g=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,f=c==="end"?"top":"bottom");let v=m-a.top-a.bottom,h=p-a.left-a.right,y=Jt(m-a[f],v),b=Jt(p-a[g],h),w=!t.middlewareData.shift,C=y,S=b;if(d?S=c||w?Jt(b,h):h:C=c||w?Jt(y,v):v,w&&!c){let E=vt(a.left,0),I=vt(a.right,0),P=vt(a.top,0),V=vt(a.bottom,0);d?S=p-2*(E!==0||I!==0?E+I:vt(a.left,a.right)):C=m-2*(P!==0||V!==0?P+V:vt(a.top,a.bottom));}await s({...t,availableWidth:S,availableHeight:C});let k=await o.getDimensions(i.floating);return p!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};Rg=$n(0);jg=async function(e){let t=this.getOffsetParent||md,n=this.getDimensions,r=await n(e.floating);return {reference:Qg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};gd={convertOffsetParentRelativeRectToViewportRelativeRect:zg,getDocumentElement:mn,getClippingRect:Ug,getOffsetParent:md,getElementRects:jg,getClientRects:Vg,getDimensions:Hg,getScale:gr,isElement:zt,isRTL:Wg};Zg=Fg,Jg=Dg,eh=$g,th=Lg,nh=Mg,rh=Tg,oh=(e,t,n)=>{let r=new Map,o={platform:gd,...n},i={...o.platform,_c:r};return Pg(e,t,{...o,platform:i})},ba=Qe();ih=N('<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">'),ra=30,cu=ra/2,sh={top:180,right:-90,bottom:0,left:90};dh={top:"bottom",right:"left",bottom:"top",left:"right"};hd=Object.assign(ph,{Arrow:wa,Context:ba,usePopperContext:xa,Positioner:lh});du="interactOutside.pointerDownOutside",fu="interactOutside.focusOutside";yd=Qe();Tt={};Ki(Tt,{Description:()=>Gu,ErrorMessage:()=>Uu,Item:()=>Cd,ItemControl:()=>Sd,ItemDescription:()=>kd,ItemIndicator:()=>Id,ItemInput:()=>Ed,ItemLabel:()=>Pd,Label:()=>Td,RadioGroup:()=>vh,Root:()=>$d});bd=Qe();wd=Qe();vh=Object.assign($d,{Description:Gu,ErrorMessage:Uu,Item:Cd,ItemControl:Sd,ItemDescription:kd,ItemIndicator:Id,ItemInput:Ed,ItemLabel:Pd,Label:Td}),bh=class{constructor(e,t,n){It(this,"collection");It(this,"ref");It(this,"collator");this.collection=e,this.ref=t,this.collator=n;}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t);}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t);}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e);}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e);}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight),o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight),o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){let n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){let o=this.collection().getItem(r);if(o){let i=o.textValue.slice(0,e.length);if(o.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r);}}};Hs="focusScope.autoFocusOnMount",Qs="focusScope.autoFocusOnUnmount",pu={bubbles:!1,cancelable:!0},mu={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Xs(this.stack,e),this.stack.unshift(e);},remove(e){this.stack=Xs(this.stack,e),this.active()?.resume();}};Ch="data-live-announcer";go=new WeakMap,Pt=[];Ti=new Map,Ih=e=>{j(()=>{let t=nt(e.style)??{},n=nt(e.properties)??[],r={};for(let i in t)r[i]=e.element.style[i];let o=Ti.get(e.key);o?o.activeCount++:Ti.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(i=>i.key)}),Object.assign(e.element.style,e.style);for(let i of n)e.element.style.setProperty(i.key,i.value);W(()=>{let i=Ti.get(e.key);if(i){if(i.activeCount!==1){i.activeCount--;return}Ti.delete(e.key);for(let[s,l]of Object.entries(i.originalStyles))e.element.style[s]=l;for(let s of i.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.();}});});},gu=Ih,Eh=(e,t)=>{switch(t){case"x":return [e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return [e.clientHeight,e.scrollTop,e.scrollHeight]}},Ph=(e,t)=>{let n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},Th=(e,t,n)=>{let r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,o=e,i=0,s=0,l=!1;do{let[a,u,c]=Eh(o,t),d=c-a-r*u;(u!==0||d!==0)&&Ph(o,t)&&(i+=d,s+=u),o===(n??document.documentElement)?l=!0:o=o._$host??o.parentElement;}while(o&&!l);return [i,s]},[hu,yu]=q([]),$h=e=>hu().indexOf(e)===hu().length-1,Mh=e=>{let t=re({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=gt(),r=[0,0],o=null,i=null;j(()=>{nt(t.enabled)&&(yu(u=>[...u,n]),W(()=>{yu(u=>u.filter(c=>c!==n));}));}),j(()=>{if(!nt(t.enabled)||!nt(t.hideScrollbar))return;let{body:u}=document,c=window.innerWidth-u.offsetWidth;if(nt(t.preventScrollbarShift)){let d={overflow:"hidden"},p=[];c>0&&(nt(t.preventScrollbarShiftMode)==="padding"?d.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${c}px)`:d.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${c}px)`,p.push({key:"--scrollbar-width",value:`${c}px`}));let m=window.scrollY,f=window.scrollX;gu({key:"prevent-scroll",element:u,style:d,properties:p,cleanup:()=>{nt(t.restoreScrollPosition)&&c>0&&window.scrollTo(f,m);}});}else gu({key:"prevent-scroll",element:u,style:{overflow:"hidden"}});}),j(()=>{!$h(n)||!nt(t.enabled)||(document.addEventListener("wheel",l,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",a,{passive:!1}),W(()=>{document.removeEventListener("wheel",l),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",a);}));});let s=u=>{r=vu(u),o=null,i=null;},l=u=>{let c=u.target,d=nt(t.element),p=_h(u),m=Math.abs(p[0])>Math.abs(p[1])?"x":"y",f=m==="x"?p[0]:p[1],g=bu(c,m,f,d),v;d&&oa(d,c)?v=!g:v=!0,v&&u.cancelable&&u.preventDefault();},a=u=>{let c=nt(t.element),d=u.target,p;if(u.touches.length===2)p=!nt(t.allowPinchZoom);else {if(o==null||i===null){let m=vu(u).map((g,v)=>r[v]-g),f=Math.abs(m[0])>Math.abs(m[1])?"x":"y";o=f,i=f==="x"?m[0]:m[1];}if(d.type==="range")p=!1;else {let m=bu(d,o,i,c);c&&oa(c,d)?p=!m:p=!0;}}p&&u.cancelable&&u.preventDefault();};},_h=e=>[e.deltaX,e.deltaY],vu=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],bu=(e,t,n,r)=>{let o=r!==null&&oa(r,e),[i,s]=Th(e,t,o?r:void 0);return !(n>0&&Math.abs(i)<=1||n<0&&Math.abs(s)<1)},oa=(e,t)=>{if(e.contains(t))return !0;let n=t;for(;n;){if(n===e)return !0;n=n._$host??n.parentElement;}return !1},Fh=Mh,Dh=Fh,Md=Qe();Fd=Qe();Dd=Qe();Lh=Qe();So={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>So.next(e==="ltr"?"rtl":"ltr",t)},xu={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};Ah=Qe();qd=Qe();Hd=Qe();Nh={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};wu=["Enter"," "],Kh={open:(e,t)=>e==="ltr"?[...wu,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...wu,t==="horizontal"?"ArrowLeft":"ArrowUp"]};Gh={};Ki(Gh,{Root:()=>Hi,Separator:()=>Uh});Uh=Hi,Me={};Ki(Me,{Arrow:()=>wa,CheckboxItem:()=>Ld,Content:()=>Jd,DropdownMenu:()=>Hh,Group:()=>ka,GroupLabel:()=>zd,Icon:()=>Vd,Item:()=>Nd,ItemDescription:()=>Kd,ItemIndicator:()=>Bd,ItemLabel:()=>Gd,Portal:()=>Ud,RadioGroup:()=>Qd,RadioItem:()=>jd,Root:()=>e1,Separator:()=>Hi,Sub:()=>Yd,SubContent:()=>Xd,SubTrigger:()=>Zd,Trigger:()=>Ad});Hh=Object.assign(e1,{Arrow:wa,CheckboxItem:Ld,Content:Jd,Group:ka,GroupLabel:zd,Icon:Vd,Item:Nd,ItemDescription:Kd,ItemIndicator:Bd,ItemLabel:Gd,Portal:Ud,RadioGroup:Qd,RadioItem:jd,Separator:Hi,Sub:Yd,SubContent:Xd,SubTrigger:Zd,Trigger:Ad}),$={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}},Qh=N('<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>'),jh=N('<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=N('<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>'),Yh=N('<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>'),Ia=N('<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>'),Xh=N('<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>'),Zh=N('<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>'),Jh=N('<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>'),ey=N('<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">'),ty=N('<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">'),ny=N('<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>'),ry=N('<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>'),oy=N('<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>'),iy=N('<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>'),t1=N('<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>'),sy=N('<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>'),ay=N('<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>'),ly=N('<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>'),cy=N('<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>'),uy=N('<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>'),dy=N('<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>'),fy=N('<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>'),py=N('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');Dy=N('<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>'),Ly=N('<button title="Copy object to clipboard">'),Ay=N('<button title="Remove all items"aria-label="Remove all items">'),Oy=N('<button title="Delete item"aria-label="Delete item">'),Ry=N('<button title="Toggle value"aria-label="Toggle value">'),qy=N('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),ho=N("<div>"),zy=N("<div><button> <span></span> <span> "),Vy=N("<input>"),Iu=N("<span>"),Ny=N("<div><span>:"),Ky=N("<div><div><button> [<!>...<!>]");Eu=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n));return (()=>{var o=Dy();return G(()=>A(o,z(r().expander,n`
2
2
  transform: rotate(${e.expanded?90:0}deg);
3
3
  `,e.expanded&&n`
4
4
  & svg {
5
5
  top: -1px;
6
6
  }
7
- `))),o})()},By=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),[o,i]=q("NoCopy");return (()=>{var s=Dy();return Rs(s,"click",o()==="NoCopy"?()=>{navigator.clipboard.writeText(Mc(e.value)).then(()=>{i("SuccessCopy"),setTimeout(()=>{i("NoCopy");},1500);},l=>{i("ErrorCopy"),setTimeout(()=>{i("NoCopy");},1500);});}:void 0,!0),T(s,x(uc,{get children(){return [x(wi,{get when(){return o()==="NoCopy"},get children(){return x(Cy,{})}}),x(wi,{get when(){return o()==="SuccessCopy"},get children(){return x(Iy,{get theme(){return t()}})}}),x(wi,{get when(){return o()==="ErrorCopy"},get children(){return x(Ey,{})}})]}})),G(l=>{var a=r().actionButton,u=`${o()==="NoCopy"?"Copy object to clipboard":o()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return a!==l.e&&A(s,l.e=a),u!==l.t&&D(s,"aria-label",l.t=u),l},{e:void 0,t:void 0}),s})()},Gy=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),o=U().client;return (()=>{var i=Ly();return i.$$click=()=>{let s=e.activeQuery.state.data,l=kn(s,e.dataPath,[]);o.setQueryData(e.activeQuery.queryKey,l);},T(i,x(Py,{})),G(()=>A(i,r().actionButton)),i})()},Pu=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),o=U().client;return (()=>{var i=Ay();return i.$$click=()=>{let s=e.activeQuery.state.data,l=ar(s,e.dataPath);o.setQueryData(e.activeQuery.queryKey,l);},T(i,x(n1,{})),G(()=>A(i,z(r().actionButton))),i})()},Uy=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),o=U().client;return (()=>{var i=Oy();return i.$$click=()=>{let s=e.activeQuery.state.data,l=kn(s,e.dataPath,!e.value);o.setQueryData(e.activeQuery.queryKey,l);},T(i,x(Ty,{get theme(){return t()},get checked(){return e.value}})),G(()=>A(i,z(r().actionButton,n`
7
+ `))),o})()},Gy=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),[o,i]=q("NoCopy");return (()=>{var s=Ly();return Rs(s,"click",o()==="NoCopy"?()=>{navigator.clipboard.writeText(Mc(e.value)).then(()=>{i("SuccessCopy"),setTimeout(()=>{i("NoCopy");},1500);},l=>{i("ErrorCopy"),setTimeout(()=>{i("NoCopy");},1500);});}:void 0,!0),T(s,x(uc,{get children(){return [x(wi,{get when(){return o()==="NoCopy"},get children(){return x(ky,{})}}),x(wi,{get when(){return o()==="SuccessCopy"},get children(){return x(Ey,{get theme(){return t()}})}}),x(wi,{get when(){return o()==="ErrorCopy"},get children(){return x(Py,{})}})]}})),G(l=>{var a=r().actionButton,u=`${o()==="NoCopy"?"Copy object to clipboard":o()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return a!==l.e&&A(s,l.e=a),u!==l.t&&D(s,"aria-label",l.t=u),l},{e:void 0,t:void 0}),s})()},Uy=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),o=U().client;return (()=>{var i=Ay();return i.$$click=()=>{let s=e.activeQuery.state.data,l=kn(s,e.dataPath,[]);o.setQueryData(e.activeQuery.queryKey,l);},T(i,x(Ty,{})),G(()=>A(i,r().actionButton)),i})()},Pu=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),o=U().client;return (()=>{var i=Oy();return i.$$click=()=>{let s=e.activeQuery.state.data,l=ar(s,e.dataPath);o.setQueryData(e.activeQuery.queryKey,l);},T(i,x(n1,{})),G(()=>A(i,z(r().actionButton))),i})()},Hy=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?xr(n):br(n)),o=U().client;return (()=>{var i=Ry();return i.$$click=()=>{let s=e.activeQuery.state.data,l=kn(s,e.dataPath,!e.value);o.setQueryData(e.activeQuery.queryKey,l);},T(i,x($y,{get theme(){return t()},get checked(){return e.value}})),G(()=>A(i,z(r().actionButton,n`
8
8
  width: ${$.size[3.5]};
9
9
  height: ${$.size[3.5]};
10
10
  `))),i})()};r1=(e,t)=>{let{colors:n,font:r,size:o,border:i}=$,s=(l,a)=>e==="light"?l:a;return {entry:t`
@@ -119,7 +119,7 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
119
119
  outline: 2px solid ${n.blue[800]};
120
120
  outline-offset: 2px;
121
121
  }
122
- `}},br=e=>r1("light",e),xr=e=>r1("dark",e);uo(["click"]);Hy=N('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),_o=N("<div>"),Qy=N('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),jy=N("<select name=tsqd-queries-filter-sort>"),Wy=N("<select name=tsqd-mutations-filter-sort>"),Yy=N("<span>Asc"),Xy=N("<span>Desc"),Zy=N('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Jy=N("<div>Settings"),e3=N("<span>Position"),t3=N("<span>Top"),n3=N("<span>Bottom"),r3=N("<span>Left"),o3=N("<span>Right"),i3=N("<span>Theme"),s3=N("<span>Light"),a3=N("<span>Dark"),l3=N("<span>System"),c3=N("<span>Disabled Queries"),u3=N("<span>Show"),d3=N("<span>Hide"),f3=N("<div><div class=tsqd-queries-container>"),p3=N("<div><div class=tsqd-mutations-container>"),m3=N('<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>'),$u=N("<option>Sort by "),g3=N("<div class=tsqd-query-disabled-indicator>disabled"),h3=N("<div class=tsqd-query-static-indicator>static"),o1=N("<button><div></div><code class=tsqd-query-hash>"),y3=N("<div role=tooltip id=tsqd-status-tooltip>"),v3=N("<span>"),b3=N("<button><span></span><span>"),x3=N("<button><span></span> Error"),w3=N('<div><span></span>Trigger Error<select><option value=""disabled selected>'),S3=N('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),C3=N("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),k3=N('<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">'),I3=N("<option>"),E3=N('<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">'),[vt,Qi]=q(null),[Tn,i1]=q(null),[qt,Ea]=q(0),[yo,P3]=q(!1),s1=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),o=F(()=>U().onlineManager);Xt(()=>{let d=o().subscribe(p=>{P3(!p);});W(()=>{d();});});let i=aa(),s=F(()=>U().buttonPosition||P2),l=F(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:U().initialIsOpen||T2),a=F(()=>e.localStore.position||U().position||Ws),u;j(()=>{let d=u.parentElement,p=e.localStore.height||Mu,m=e.localStore.width||_u,f=a();d.style.setProperty("--tsqd-panel-height",`${f==="top"?"-":""}${p}px`),d.style.setProperty("--tsqd-panel-width",`${f==="left"?"-":""}${m}px`);}),Xt(()=>{let d=()=>{let p=u.parentElement,m=getComputedStyle(p).fontSize;p.style.setProperty("--tsqd-font-size",m);};d(),window.addEventListener("focus",d),W(()=>{window.removeEventListener("focus",d);});});let c=F(()=>e.localStore.pip_open??"false");return [x(B,{get when(){return ze(()=>!!i().pipWindow)()&&c()=="true"},get children(){return x(zs,{get mount(){return i().pipWindow?.document.body},get children(){return x(T3,{get children(){return x(ji,e)}})}})}}),(()=>{var d=_o(),p=u;return typeof p=="function"?Vn(p,d):u=d,T(d,x(Uc,{name:"tsqd-panel-transition",get children(){return x(B,{get when(){return ze(()=>!!(l()&&!i().pipWindow))()&&c()=="false"},get children(){return x($3,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),T(d,x(Uc,{name:"tsqd-button-transition",get children(){return x(B,{get when(){return !l()},get children(){var m=Hy(),f=m.firstChild,g=f.nextSibling;return T(f,x(ku,{})),g.$$click=()=>e.setLocalStore("open","true"),T(g,x(ku,{})),G(()=>A(m,z(r().devtoolsBtn,r()[`devtoolsBtn-position-${s()}`],"tsqd-open-btn-container"))),m}})}}),null),G(()=>A(d,z(n`
122
+ `}},br=e=>r1("light",e),xr=e=>r1("dark",e);uo(["click"]);Qy=N('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),_o=N("<div>"),jy=N('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),Wy=N("<select name=tsqd-queries-filter-sort>"),Yy=N("<select name=tsqd-mutations-filter-sort>"),Xy=N("<span>Asc"),Zy=N("<span>Desc"),Jy=N('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),e3=N("<div>Settings"),t3=N("<span>Position"),n3=N("<span>Top"),r3=N("<span>Bottom"),o3=N("<span>Left"),i3=N("<span>Right"),s3=N("<span>Theme"),a3=N("<span>Light"),l3=N("<span>Dark"),c3=N("<span>System"),u3=N("<span>Disabled Queries"),d3=N("<span>Show"),f3=N("<span>Hide"),p3=N("<div><div class=tsqd-queries-container>"),m3=N("<div><div class=tsqd-mutations-container>"),g3=N('<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>'),$u=N("<option>Sort by "),h3=N("<div class=tsqd-query-disabled-indicator>disabled"),y3=N("<div class=tsqd-query-static-indicator>static"),o1=N("<button><div></div><code class=tsqd-query-hash>"),v3=N("<div role=tooltip id=tsqd-status-tooltip>"),b3=N("<span>"),x3=N("<button><span></span><span>"),w3=N("<button><span></span> Error"),C3=N('<div><span></span>Trigger Error<select><option value=""disabled selected>'),S3=N('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),k3=N("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),I3=N('<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">'),E3=N("<option>"),P3=N('<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">'),[yt,Qi]=q(null),[Tn,i1]=q(null),[qt,Ea]=q(0),[yo,T3]=q(!1),s1=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),o=F(()=>U().onlineManager);Xt(()=>{let d=o().subscribe(p=>{T3(!p);});W(()=>{d();});});let i=aa(),s=F(()=>U().buttonPosition||T2),l=F(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:U().initialIsOpen||$2),a=F(()=>e.localStore.position||U().position||Ws),u;j(()=>{let d=u.parentElement,p=e.localStore.height||Mu,m=e.localStore.width||_u,f=a();d.style.setProperty("--tsqd-panel-height",`${f==="top"?"-":""}${p}px`),d.style.setProperty("--tsqd-panel-width",`${f==="left"?"-":""}${m}px`);}),Xt(()=>{let d=()=>{let p=u.parentElement,m=getComputedStyle(p).fontSize;p.style.setProperty("--tsqd-font-size",m);};d(),window.addEventListener("focus",d),W(()=>{window.removeEventListener("focus",d);});});let c=F(()=>e.localStore.pip_open??"false");return [x(B,{get when(){return ze(()=>!!i().pipWindow)()&&c()=="true"},get children(){return x(zs,{get mount(){return i().pipWindow?.document.body},get children(){return x($3,{get children(){return x(ji,e)}})}})}}),(()=>{var d=_o(),p=u;return typeof p=="function"?Vn(p,d):u=d,T(d,x(Uc,{name:"tsqd-panel-transition",get children(){return x(B,{get when(){return ze(()=>!!(l()&&!i().pipWindow))()&&c()=="false"},get children(){return x(M3,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),T(d,x(Uc,{name:"tsqd-button-transition",get children(){return x(B,{get when(){return !l()},get children(){var m=Qy(),f=m.firstChild,g=f.nextSibling;return T(f,x(ku,{})),g.$$click=()=>e.setLocalStore("open","true"),T(g,x(ku,{})),G(()=>A(m,z(r().devtoolsBtn,r()[`devtoolsBtn-position-${s()}`],"tsqd-open-btn-container"))),m}})}}),null),G(()=>A(d,z(n`
123
123
  & .tsqd-panel-transition-exit-active,
124
124
  & .tsqd-panel-transition-enter-active {
125
125
  transition:
@@ -145,7 +145,7 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
145
145
  transform: ${s()==="relative"?"none;":s()==="top-left"?"translateX(-72px);":s()==="top-right"?"translateX(72px);":"translateY(72px);"};
146
146
  opacity: 0;
147
147
  }
148
- `,"tsqd-transitions-container"))),d})()]},T3=e=>{let t=aa(),n=Ye(),r=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,o=F(()=>n()==="dark"?Ft(r):_t(r)),i=()=>{let{colors:s}=$,l=(a,u)=>n()==="dark"?u:a;return qt()<Un?r`
148
+ `,"tsqd-transitions-container"))),d})()]},$3=e=>{let t=aa(),n=Ye(),r=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,o=F(()=>n()==="dark"?Ft(r):_t(r)),i=()=>{let{colors:s}=$,l=(a,u)=>n()==="dark"?u:a;return qt()<Un?r`
149
149
  flex-direction: column;
150
150
  background-color: ${l(s.gray[300],s.gray[600])};
151
151
  `:r`
@@ -161,38 +161,38 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
161
161
  background-color: ${l(s.gray[200],s.darkGray[900])};
162
162
  `};return (()=>{var s=_o(),l=o;return typeof l=="function"?Vn(l,s):o=s,s.style.setProperty("--tsqd-font-size","16px"),T(s,()=>e.children),G(()=>A(s,z(r().parentPanel,i(),{[n`
163
163
  min-width: min-content;
164
- `]:qt()<sa},"tsqd-main-panel"))),s})()},$3=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),[o,i]=q(!1),s=F(()=>e.localStore.position||U().position||Ws),l=c=>{let d=c.currentTarget.parentElement;if(!d)return;i(!0);let{height:p,width:m}=d.getBoundingClientRect(),f=c.clientX,g=c.clientY,v=0,h=Ns(3.5),y=Ns(12),b=S=>{if(S.preventDefault(),s()==="left"||s()==="right"){let C=s()==="right"?f-S.clientX:S.clientX-f;v=Math.round(m+C),v<y&&(v=y),e.setLocalStore("width",String(Math.round(v)));let k=d.getBoundingClientRect().width;Number(e.localStore.width)<k&&e.setLocalStore("width",String(k));}else {let C=s()==="bottom"?g-S.clientY:S.clientY-g;v=Math.round(p+C),v<h&&(v=h,Qi(null)),e.setLocalStore("height",String(Math.round(v)));}},w=()=>{o()&&i(!1),document.removeEventListener("mousemove",b,!1),document.removeEventListener("mouseUp",w,!1);};document.addEventListener("mousemove",b,!1),document.addEventListener("mouseup",w,!1);},a;Xt(()=>{Ru(a,({width:c},d)=>{d===a&&Ea(c);});}),j(()=>{let c=a.parentElement?.parentElement?.parentElement;if(!c)return;let d=e.localStore.position||Ws,p=_c("padding",d),m=e.localStore.position==="left"||e.localStore.position==="right",f=(({padding:g,paddingTop:v,paddingBottom:h,paddingLeft:y,paddingRight:b})=>({padding:g,paddingTop:v,paddingBottom:h,paddingLeft:y,paddingRight:b}))(c.style);c.style[p]=`${m?e.localStore.width:e.localStore.height}px`,W(()=>{Object.entries(f).forEach(([g,v])=>{c.style[g]=v;});});});let u=()=>{let{colors:c}=$,d=(p,m)=>t()==="dark"?m:p;return qt()<Un?n`
164
+ `]:qt()<sa},"tsqd-main-panel"))),s})()},M3=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),[o,i]=q(!1),s=F(()=>e.localStore.position||U().position||Ws),l=c=>{let d=c.currentTarget.parentElement;if(!d)return;i(!0);let{height:p,width:m}=d.getBoundingClientRect(),f=c.clientX,g=c.clientY,v=0,h=Ns(3.5),y=Ns(12),b=C=>{if(C.preventDefault(),s()==="left"||s()==="right"){let S=s()==="right"?f-C.clientX:C.clientX-f;v=Math.round(m+S),v<y&&(v=y),e.setLocalStore("width",String(Math.round(v)));let k=d.getBoundingClientRect().width;Number(e.localStore.width)<k&&e.setLocalStore("width",String(k));}else {let S=s()==="bottom"?g-C.clientY:C.clientY-g;v=Math.round(p+S),v<h&&(v=h,Qi(null)),e.setLocalStore("height",String(Math.round(v)));}},w=()=>{o()&&i(!1),document.removeEventListener("mousemove",b,!1),document.removeEventListener("mouseUp",w,!1);};document.addEventListener("mousemove",b,!1),document.addEventListener("mouseup",w,!1);},a;Xt(()=>{Ru(a,({width:c},d)=>{d===a&&Ea(c);});}),j(()=>{let c=a.parentElement?.parentElement?.parentElement;if(!c)return;let d=e.localStore.position||Ws,p=_c("padding",d),m=e.localStore.position==="left"||e.localStore.position==="right",f=(({padding:g,paddingTop:v,paddingBottom:h,paddingLeft:y,paddingRight:b})=>({padding:g,paddingTop:v,paddingBottom:h,paddingLeft:y,paddingRight:b}))(c.style);c.style[p]=`${m?e.localStore.width:e.localStore.height}px`,W(()=>{Object.entries(f).forEach(([g,v])=>{c.style[g]=v;});});});let u=()=>{let{colors:c}=$,d=(p,m)=>t()==="dark"?m:p;return qt()<Un?n`
165
165
  flex-direction: column;
166
166
  background-color: ${d(c.gray[300],c.gray[600])};
167
167
  `:n`
168
168
  flex-direction: row;
169
169
  background-color: ${d(c.gray[200],c.darkGray[900])};
170
- `};return (()=>{var c=Qy(),d=c.firstChild,p=d.nextSibling,m=a;return typeof m=="function"?Vn(m,c):a=c,d.$$mousedown=l,p.$$click=()=>e.setLocalStore("open","false"),T(p,x(mr,{})),T(c,x(ji,e),null),G(f=>{var g=z(r().panel,r()[`panel-position-${s()}`],u(),{[n`
170
+ `};return (()=>{var c=jy(),d=c.firstChild,p=d.nextSibling,m=a;return typeof m=="function"?Vn(m,c):a=c,d.$$mousedown=l,p.$$click=()=>e.setLocalStore("open","false"),T(p,x(mr,{})),T(c,x(ji,e),null),G(f=>{var g=z(r().panel,r()[`panel-position-${s()}`],u(),{[n`
171
171
  min-width: min-content;
172
- `]:qt()<sa&&(s()==="right"||s()==="left")},"tsqd-main-panel"),v=s()==="bottom"||s()==="top"?`${e.localStore.height||Mu}px`:"auto",h=s()==="right"||s()==="left"?`${e.localStore.width||_u}px`:"auto",y=z(r().dragHandle,r()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),b=z(r().closeBtn,r()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return g!==f.e&&A(c,f.e=g),v!==f.t&&((f.t=v)!=null?c.style.setProperty("height",v):c.style.removeProperty("height")),h!==f.a&&((f.a=h)!=null?c.style.setProperty("width",h):c.style.removeProperty("width")),y!==f.o&&A(d,f.o=y),b!==f.i&&A(p,f.i=b),f},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),c})()},ji=e=>{O3(),R3();let t,n=Ye(),r=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,o=F(()=>n()==="dark"?Ft(r):_t(r)),i=aa(),[s,l]=q("queries"),a=F(()=>e.localStore.sort||M2),u=F(()=>Number(e.localStore.sortOrder)||qc),c=F(()=>e.localStore.mutationSort||_2),d=F(()=>Number(e.localStore.mutationSortOrder)||qc),p=F(()=>Ci[a()]),m=F(()=>ki[c()]),f=F(()=>U().onlineManager),g=F(()=>U().client.getQueryCache()),v=F(()=>U().client.getMutationCache()),h=je(k=>k().getAll().length,!1),y=F(Yt(()=>[h(),e.localStore.filter,a(),u(),e.localStore.hideDisabledQueries],()=>{let k=g().getAll(),E=e.localStore.filter?k.filter(P=>zc(P.queryHash,e.localStore.filter||"").passed):[...k];return e.localStore.hideDisabledQueries==="true"&&(E=E.filter(P=>!P.isDisabled())),p()?E.sort((P,V)=>p()(P,V)*u()):E})),b=Rt(k=>k().getAll().length,!1),w=F(Yt(()=>[b(),e.localStore.mutationFilter,c(),d()],()=>{let k=v().getAll(),E=e.localStore.mutationFilter?k.filter(P=>{let V=`${P.options.mutationKey?JSON.stringify(P.options.mutationKey)+" - ":""}${new Date(P.state.submittedAt).toLocaleString()}`;return zc(V,e.localStore.mutationFilter||"").passed}):[...k];return m()?E.sort((P,V)=>m()(P,V)*d()):E})),S=k=>{e.setLocalStore("position",k);},C=k=>{let I=getComputedStyle(t).getPropertyValue("--tsqd-font-size");k.style.setProperty("--tsqd-font-size",I);};return [(()=>{var k=m3(),E=k.firstChild,I=E.firstChild,P=I.firstChild,V=P.firstChild,L=V.nextSibling,H=L.firstChild,K=E.nextSibling,oe=K.firstChild,de=oe.firstChild,he=de.firstChild,xe=de.nextSibling,we=xe.nextSibling,Pe=oe.nextSibling,qe=Pe.firstChild,Ee=qe.nextSibling,Re=t;return typeof Re=="function"?Vn(Re,k):t=k,P.$$click=()=>{if(!i().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose();},T(L,()=>U().queryFlavor,H),T(L,()=>U().version,null),T(I,x(Tt.Root,{get class(){return z(o().viewToggle)},get value(){return s()},onChange:_=>{l(_),Qi(null),i1(null);},get children(){return [x(Tt.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return [x(Tt.ItemInput,{}),x(Tt.ItemControl,{get children(){return x(Tt.ItemIndicator,{})}}),x(Tt.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),x(Tt.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return [x(Tt.ItemInput,{}),x(Tt.ItemControl,{get children(){return x(Tt.ItemIndicator,{})}}),x(Tt.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),T(E,x(B,{get when(){return s()==="queries"},get children(){return x(F3,{})}}),null),T(E,x(B,{get when(){return s()==="mutations"},get children(){return x(D3,{})}}),null),T(de,x(py,{}),he),he.$$input=_=>{s()==="queries"?e.setLocalStore("filter",_.currentTarget.value):e.setLocalStore("mutationFilter",_.currentTarget.value);},T(xe,x(B,{get when(){return s()==="queries"},get children(){var _=jy();return _.addEventListener("change",Te=>{e.setLocalStore("sort",Te.currentTarget.value);}),T(_,()=>Object.keys(Ci).map(Te=>(()=>{var le=$u();return le.firstChild,le.value=Te,T(le,Te,null),le})())),G(()=>_.value=a()),_}}),null),T(xe,x(B,{get when(){return s()==="mutations"},get children(){var _=Wy();return _.addEventListener("change",Te=>{e.setLocalStore("mutationSort",Te.currentTarget.value);}),T(_,()=>Object.keys(ki).map(Te=>(()=>{var le=$u();return le.firstChild,le.value=Te,T(le,Te,null),le})())),G(()=>_.value=c()),_}}),null),T(xe,x(mr,{}),null),we.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(d()*-1));},T(we,x(B,{get when(){return (s()==="queries"?u():d())===1},get children(){return [Yy(),x(Su,{})]}}),null),T(we,x(B,{get when(){return (s()==="queries"?u():d())===-1},get children(){return [Xy(),x(Cu,{})]}}),null),qe.$$click=()=>{s()==="queries"?(Zt({type:"CLEAR_QUERY_CACHE"}),g().clear()):(Zt({type:"CLEAR_MUTATION_CACHE"}),v().clear());},T(qe,x(n1,{})),Ee.$$click=()=>{f().setOnline(!f().isOnline());},T(Ee,(()=>{var _=ze(()=>!!yo());return ()=>_()?x(xy,{}):x(by,{})})()),T(Pe,x(B,{get when(){return ze(()=>!i().pipWindow)()&&!i().disabled},get children(){var _=Zy();return _.$$click=()=>{i().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500));},T(_,x(Sy,{})),G(()=>A(_,z(o().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),_}}),null),T(Pe,x(Me.Root,{gutter:4,get children(){return [x(Me.Trigger,{get class(){return z(o().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return x(wy,{})}}),x(Me.Portal,{ref:_=>C(_),get mount(){return ze(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return x(Me.Content,{get class(){return z(o().settingsMenu,"tsqd-settings-menu")},get children(){return [(()=>{var _=Jy();return G(()=>A(_,z(o().settingsMenuHeader,"tsqd-settings-menu-header"))),_})(),x(B,{get when(){return !e.showPanelViewOnly},get children(){return x(Me.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [x(Me.SubTrigger,{get class(){return z(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return [e3(),x(mr,{})]}}),x(Me.Portal,{ref:_=>C(_),get mount(){return ze(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return x(Me.SubContent,{get class(){return z(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [x(Me.Item,{onSelect:()=>{S("top");},as:"button",get class(){return z(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return [t3(),x(Su,{})]}}),x(Me.Item,{onSelect:()=>{S("bottom");},as:"button",get class(){return z(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return [n3(),x(Cu,{})]}}),x(Me.Item,{onSelect:()=>{S("left");},as:"button",get class(){return z(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return [r3(),x(my,{})]}}),x(Me.Item,{onSelect:()=>{S("right");},as:"button",get class(){return z(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return [o3(),x(gy,{})]}})]}})}})]}})}}),x(Me.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [x(Me.SubTrigger,{get class(){return z(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return [i3(),x(mr,{})]}}),x(Me.Portal,{ref:_=>C(_),get mount(){return ze(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return x(Me.SubContent,{get class(){return z(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [x(Me.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.theme_preference==="light"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return [s3(),x(hy,{})]}}),x(Me.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.theme_preference==="dark"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return [a3(),x(yy,{})]}}),x(Me.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.theme_preference==="system"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return [l3(),x(vy,{})]}})]}})}})]}}),x(Me.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [x(Me.SubTrigger,{get class(){return z(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-disabled-queries")},get children(){return [c3(),x(mr,{})]}}),x(Me.Portal,{ref:_=>C(_),get mount(){return ze(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return x(Me.SubContent,{get class(){return z(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [x(Me.Item,{onSelect:()=>{e.setLocalStore("hideDisabledQueries","false");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.hideDisabledQueries!=="true"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-show")},get children(){return [u3(),x(B,{get when(){return e.localStore.hideDisabledQueries!=="true"},get children(){return x(ia,{})}})]}}),x(Me.Item,{onSelect:()=>{e.setLocalStore("hideDisabledQueries","true");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.hideDisabledQueries==="true"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-hide")},get children(){return [d3(),x(B,{get when(){return e.localStore.hideDisabledQueries==="true"},get children(){return x(ia,{})}})]}})]}})}})]}})]}})}})]}}),null),T(k,x(B,{get when(){return s()==="queries"},get children(){var _=f3(),Te=_.firstChild;return T(Te,x($i,{by:le=>le.queryHash,get each(){return y()},children:le=>x(M3,{get query(){return le()}})})),G(()=>A(_,z(o().overflowQueryContainer,"tsqd-queries-overflow-container"))),_}}),null),T(k,x(B,{get when(){return s()==="mutations"},get children(){var _=p3(),Te=_.firstChild;return T(Te,x($i,{by:le=>le.mutationId,get each(){return w()},children:le=>x(_3,{get mutation(){return le()}})})),G(()=>A(_,z(o().overflowQueryContainer,"tsqd-mutations-overflow-container"))),_}}),null),G(_=>{var Te=z(o().queriesContainer,qt()<Un&&(vt()||Tn())&&r`
172
+ `]:qt()<sa&&(s()==="right"||s()==="left")},"tsqd-main-panel"),v=s()==="bottom"||s()==="top"?`${e.localStore.height||Mu}px`:"auto",h=s()==="right"||s()==="left"?`${e.localStore.width||_u}px`:"auto",y=z(r().dragHandle,r()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),b=z(r().closeBtn,r()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return g!==f.e&&A(c,f.e=g),v!==f.t&&((f.t=v)!=null?c.style.setProperty("height",v):c.style.removeProperty("height")),h!==f.a&&((f.a=h)!=null?c.style.setProperty("width",h):c.style.removeProperty("width")),y!==f.o&&A(d,f.o=y),b!==f.i&&A(p,f.i=b),f},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),c})()},ji=e=>{R3(),q3();let t,n=Ye(),r=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,o=F(()=>n()==="dark"?Ft(r):_t(r)),i=aa(),[s,l]=q("queries"),a=F(()=>e.localStore.sort||_2),u=F(()=>Number(e.localStore.sortOrder)||qc),c=F(()=>e.localStore.mutationSort||F2),d=F(()=>Number(e.localStore.mutationSortOrder)||qc),p=F(()=>Si[a()]),m=F(()=>ki[c()]),f=F(()=>U().onlineManager),g=F(()=>U().client.getQueryCache()),v=F(()=>U().client.getMutationCache()),h=je(k=>k().getAll().length,!1),y=F(Yt(()=>[h(),e.localStore.filter,a(),u(),e.localStore.hideDisabledQueries],()=>{let k=g().getAll(),E=e.localStore.filter?k.filter(P=>zc(P.queryHash,e.localStore.filter||"").passed):[...k];return e.localStore.hideDisabledQueries==="true"&&(E=E.filter(P=>!P.isDisabled())),p()?E.sort((P,V)=>p()(P,V)*u()):E})),b=Rt(k=>k().getAll().length,!1),w=F(Yt(()=>[b(),e.localStore.mutationFilter,c(),d()],()=>{let k=v().getAll(),E=e.localStore.mutationFilter?k.filter(P=>{let V=`${P.options.mutationKey?JSON.stringify(P.options.mutationKey)+" - ":""}${new Date(P.state.submittedAt).toLocaleString()}`;return zc(V,e.localStore.mutationFilter||"").passed}):[...k];return m()?E.sort((P,V)=>m()(P,V)*d()):E})),C=k=>{e.setLocalStore("position",k);},S=k=>{let I=getComputedStyle(t).getPropertyValue("--tsqd-font-size");k.style.setProperty("--tsqd-font-size",I);};return [(()=>{var k=g3(),E=k.firstChild,I=E.firstChild,P=I.firstChild,V=P.firstChild,L=V.nextSibling,H=L.firstChild,K=E.nextSibling,oe=K.firstChild,de=oe.firstChild,he=de.firstChild,xe=de.nextSibling,we=xe.nextSibling,Pe=oe.nextSibling,qe=Pe.firstChild,Ee=qe.nextSibling,Re=t;return typeof Re=="function"?Vn(Re,k):t=k,P.$$click=()=>{if(!i().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose();},T(L,()=>U().queryFlavor,H),T(L,()=>U().version,null),T(I,x(Tt.Root,{get class(){return z(o().viewToggle)},get value(){return s()},onChange:_=>{l(_),Qi(null),i1(null);},get children(){return [x(Tt.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return [x(Tt.ItemInput,{}),x(Tt.ItemControl,{get children(){return x(Tt.ItemIndicator,{})}}),x(Tt.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),x(Tt.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return [x(Tt.ItemInput,{}),x(Tt.ItemControl,{get children(){return x(Tt.ItemIndicator,{})}}),x(Tt.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),T(E,x(B,{get when(){return s()==="queries"},get children(){return x(D3,{})}}),null),T(E,x(B,{get when(){return s()==="mutations"},get children(){return x(L3,{})}}),null),T(de,x(my,{}),he),he.$$input=_=>{s()==="queries"?e.setLocalStore("filter",_.currentTarget.value):e.setLocalStore("mutationFilter",_.currentTarget.value);},T(xe,x(B,{get when(){return s()==="queries"},get children(){var _=Wy();return _.addEventListener("change",Te=>{e.setLocalStore("sort",Te.currentTarget.value);}),T(_,()=>Object.keys(Si).map(Te=>(()=>{var le=$u();return le.firstChild,le.value=Te,T(le,Te,null),le})())),G(()=>_.value=a()),_}}),null),T(xe,x(B,{get when(){return s()==="mutations"},get children(){var _=Yy();return _.addEventListener("change",Te=>{e.setLocalStore("mutationSort",Te.currentTarget.value);}),T(_,()=>Object.keys(ki).map(Te=>(()=>{var le=$u();return le.firstChild,le.value=Te,T(le,Te,null),le})())),G(()=>_.value=c()),_}}),null),T(xe,x(mr,{}),null),we.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(d()*-1));},T(we,x(B,{get when(){return (s()==="queries"?u():d())===1},get children(){return [Xy(),x(Cu,{})]}}),null),T(we,x(B,{get when(){return (s()==="queries"?u():d())===-1},get children(){return [Zy(),x(Su,{})]}}),null),qe.$$click=()=>{s()==="queries"?(Zt({type:"CLEAR_QUERY_CACHE"}),g().clear()):(Zt({type:"CLEAR_MUTATION_CACHE"}),v().clear());},T(qe,x(n1,{})),Ee.$$click=()=>{f().setOnline(!f().isOnline());},T(Ee,(()=>{var _=ze(()=>!!yo());return ()=>_()?x(wy,{}):x(xy,{})})()),T(Pe,x(B,{get when(){return ze(()=>!i().pipWindow)()&&!i().disabled},get children(){var _=Jy();return _.$$click=()=>{i().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500));},T(_,x(Sy,{})),G(()=>A(_,z(o().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),_}}),null),T(Pe,x(Me.Root,{gutter:4,get children(){return [x(Me.Trigger,{get class(){return z(o().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return x(Cy,{})}}),x(Me.Portal,{ref:_=>S(_),get mount(){return ze(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return x(Me.Content,{get class(){return z(o().settingsMenu,"tsqd-settings-menu")},get children(){return [(()=>{var _=e3();return G(()=>A(_,z(o().settingsMenuHeader,"tsqd-settings-menu-header"))),_})(),x(B,{get when(){return !e.showPanelViewOnly},get children(){return x(Me.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [x(Me.SubTrigger,{get class(){return z(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return [t3(),x(mr,{})]}}),x(Me.Portal,{ref:_=>S(_),get mount(){return ze(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return x(Me.SubContent,{get class(){return z(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [x(Me.Item,{onSelect:()=>{C("top");},as:"button",get class(){return z(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return [n3(),x(Cu,{})]}}),x(Me.Item,{onSelect:()=>{C("bottom");},as:"button",get class(){return z(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return [r3(),x(Su,{})]}}),x(Me.Item,{onSelect:()=>{C("left");},as:"button",get class(){return z(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return [o3(),x(gy,{})]}}),x(Me.Item,{onSelect:()=>{C("right");},as:"button",get class(){return z(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return [i3(),x(hy,{})]}})]}})}})]}})}}),x(Me.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [x(Me.SubTrigger,{get class(){return z(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return [s3(),x(mr,{})]}}),x(Me.Portal,{ref:_=>S(_),get mount(){return ze(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return x(Me.SubContent,{get class(){return z(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [x(Me.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.theme_preference==="light"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return [a3(),x(yy,{})]}}),x(Me.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.theme_preference==="dark"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return [l3(),x(vy,{})]}}),x(Me.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.theme_preference==="system"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return [c3(),x(by,{})]}})]}})}})]}}),x(Me.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return [x(Me.SubTrigger,{get class(){return z(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-disabled-queries")},get children(){return [u3(),x(mr,{})]}}),x(Me.Portal,{ref:_=>S(_),get mount(){return ze(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return x(Me.SubContent,{get class(){return z(o().settingsMenu,"tsqd-settings-submenu")},get children(){return [x(Me.Item,{onSelect:()=>{e.setLocalStore("hideDisabledQueries","false");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.hideDisabledQueries!=="true"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-show")},get children(){return [d3(),x(B,{get when(){return e.localStore.hideDisabledQueries!=="true"},get children(){return x(ia,{})}})]}}),x(Me.Item,{onSelect:()=>{e.setLocalStore("hideDisabledQueries","true");},as:"button",get class(){return z(o().settingsSubButton,e.localStore.hideDisabledQueries==="true"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-hide")},get children(){return [f3(),x(B,{get when(){return e.localStore.hideDisabledQueries==="true"},get children(){return x(ia,{})}})]}})]}})}})]}})]}})}})]}}),null),T(k,x(B,{get when(){return s()==="queries"},get children(){var _=p3(),Te=_.firstChild;return T(Te,x($i,{by:le=>le.queryHash,get each(){return y()},children:le=>x(_3,{get query(){return le()}})})),G(()=>A(_,z(o().overflowQueryContainer,"tsqd-queries-overflow-container"))),_}}),null),T(k,x(B,{get when(){return s()==="mutations"},get children(){var _=m3(),Te=_.firstChild;return T(Te,x($i,{by:le=>le.mutationId,get each(){return w()},children:le=>x(F3,{get mutation(){return le()}})})),G(()=>A(_,z(o().overflowQueryContainer,"tsqd-mutations-overflow-container"))),_}}),null),G(_=>{var Te=z(o().queriesContainer,qt()<Un&&(yt()||Tn())&&r`
173
173
  height: 50%;
174
174
  max-height: 50%;
175
- `,qt()<Un&&!(vt()||Tn())&&r`
175
+ `,qt()<Un&&!(yt()||Tn())&&r`
176
176
  height: 100%;
177
177
  max-height: 100%;
178
- `,"tsqd-queries-container"),le=z(o().row,"tsqd-header"),Ue=o().logoAndToggleContainer,X=z(o().logo,"tsqd-text-logo-container"),He=z(o().tanstackLogo,"tsqd-text-logo-tanstack"),Ae=z(o().queryFlavorLogo,"tsqd-text-logo-query-flavor"),mt=z(o().row,"tsqd-filters-actions-container"),_e=z(o().filtersContainer,"tsqd-filters-container"),ct=z(o().filterInput,"tsqd-query-filter-textfield-container"),ut=z("tsqd-query-filter-textfield"),Ze=z(o().filterSelect,"tsqd-query-filter-sort-container"),Je=`Sort order ${(s()==="queries"?u():d())===-1?"descending":"ascending"}`,dt=(s()==="queries"?u():d())===-1,O=z(o().actionsContainer,"tsqd-actions-container"),Y=z(o().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),ue=`Clear ${s()} cache`,ye=z(o().actionsBtn,yo()&&o().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),fe=`${yo()?"Unset offline mocking behavior":"Mock offline behavior"}`,ve=yo(),J=`${yo()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Te!==_.e&&A(k,_.e=Te),le!==_.t&&A(E,_.t=le),Ue!==_.a&&A(I,_.a=Ue),X!==_.o&&A(P,_.o=X),He!==_.i&&A(V,_.i=He),Ae!==_.n&&A(L,_.n=Ae),mt!==_.s&&A(K,_.s=mt),_e!==_.h&&A(oe,_.h=_e),ct!==_.r&&A(de,_.r=ct),ut!==_.d&&A(he,_.d=ut),Ze!==_.l&&A(xe,_.l=Ze),Je!==_.u&&D(we,"aria-label",_.u=Je),dt!==_.c&&D(we,"aria-pressed",_.c=dt),O!==_.w&&A(Pe,_.w=O),Y!==_.m&&A(qe,_.m=Y),ue!==_.f&&D(qe,"title",_.f=ue),ye!==_.y&&A(Ee,_.y=ye),fe!==_.g&&D(Ee,"aria-label",_.g=fe),ve!==_.p&&D(Ee,"aria-pressed",_.p=ve),J!==_.b&&D(Ee,"title",_.b=J),_},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),G(()=>he.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),k})(),x(B,{get when(){return ze(()=>s()==="queries")()&&vt()},get children(){return x(L3,{})}}),x(B,{get when(){return ze(()=>s()==="mutations")()&&Tn()},get children(){return x(A3,{})}})]},M3=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),{colors:o,alpha:i}=$,s=(f,g)=>t()==="dark"?g:f,l=je(f=>f().find({queryKey:e.query.queryKey})?.state,!0,f=>f.query.queryHash===e.query.queryHash),a=je(f=>f().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,f=>f.query.queryHash===e.query.queryHash),u=je(f=>f().find({queryKey:e.query.queryKey})?.isStatic()??!1,!0,f=>f.query.queryHash===e.query.queryHash),c=je(f=>f().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,f=>f.query.queryHash===e.query.queryHash),d=je(f=>f().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,f=>f.query.queryHash===e.query.queryHash),p=F(()=>Fc({queryState:l(),observerCount:d(),isStale:c()})),m=()=>p()==="gray"?n`
178
+ `,"tsqd-queries-container"),le=z(o().row,"tsqd-header"),Ue=o().logoAndToggleContainer,Z=z(o().logo,"tsqd-text-logo-container"),He=z(o().tanstackLogo,"tsqd-text-logo-tanstack"),Ae=z(o().queryFlavorLogo,"tsqd-text-logo-query-flavor"),kt=z(o().row,"tsqd-filters-actions-container"),_e=z(o().filtersContainer,"tsqd-filters-container"),ct=z(o().filterInput,"tsqd-query-filter-textfield-container"),pt=z("tsqd-query-filter-textfield"),Ze=z(o().filterSelect,"tsqd-query-filter-sort-container"),Je=`Sort order ${(s()==="queries"?u():d())===-1?"descending":"ascending"}`,ut=(s()==="queries"?u():d())===-1,O=z(o().actionsContainer,"tsqd-actions-container"),Y=z(o().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),ue=`Clear ${s()} cache`,ye=z(o().actionsBtn,yo()&&o().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),fe=`${yo()?"Unset offline mocking behavior":"Mock offline behavior"}`,ve=yo(),X=`${yo()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Te!==_.e&&A(k,_.e=Te),le!==_.t&&A(E,_.t=le),Ue!==_.a&&A(I,_.a=Ue),Z!==_.o&&A(P,_.o=Z),He!==_.i&&A(V,_.i=He),Ae!==_.n&&A(L,_.n=Ae),kt!==_.s&&A(K,_.s=kt),_e!==_.h&&A(oe,_.h=_e),ct!==_.r&&A(de,_.r=ct),pt!==_.d&&A(he,_.d=pt),Ze!==_.l&&A(xe,_.l=Ze),Je!==_.u&&D(we,"aria-label",_.u=Je),ut!==_.c&&D(we,"aria-pressed",_.c=ut),O!==_.w&&A(Pe,_.w=O),Y!==_.m&&A(qe,_.m=Y),ue!==_.f&&D(qe,"title",_.f=ue),ye!==_.y&&A(Ee,_.y=ye),fe!==_.g&&D(Ee,"aria-label",_.g=fe),ve!==_.p&&D(Ee,"aria-pressed",_.p=ve),X!==_.b&&D(Ee,"title",_.b=X),_},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),G(()=>he.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),k})(),x(B,{get when(){return ze(()=>s()==="queries")()&&yt()},get children(){return x(A3,{})}}),x(B,{get when(){return ze(()=>s()==="mutations")()&&Tn()},get children(){return x(O3,{})}})]},_3=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),{colors:o,alpha:i}=$,s=(f,g)=>t()==="dark"?g:f,l=je(f=>f().find({queryKey:e.query.queryKey})?.state,!0,f=>f.query.queryHash===e.query.queryHash),a=je(f=>f().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,f=>f.query.queryHash===e.query.queryHash),u=je(f=>f().find({queryKey:e.query.queryKey})?.isStatic()??!1,!0,f=>f.query.queryHash===e.query.queryHash),c=je(f=>f().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,f=>f.query.queryHash===e.query.queryHash),d=je(f=>f().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,f=>f.query.queryHash===e.query.queryHash),p=F(()=>Fc({queryState:l(),observerCount:d(),isStale:c()})),m=()=>p()==="gray"?n`
179
179
  background-color: ${s(o[p()][200],o[p()][700])};
180
180
  color: ${s(o[p()][700],o[p()][300])};
181
181
  `:n`
182
182
  background-color: ${s(o[p()][200]+i[80],o[p()][900])};
183
183
  color: ${s(o[p()][800],o[p()][300])};
184
- `;return x(B,{get when(){return l()},get children(){var f=o1(),g=f.firstChild,v=g.nextSibling;return f.$$click=()=>Qi(e.query.queryHash===vt()?null:e.query.queryHash),T(g,d),T(v,()=>e.query.queryHash),T(f,x(B,{get when(){return a()},get children(){return g3()}}),null),T(f,x(B,{get when(){return u()},get children(){return h3()}}),null),G(h=>{var y=z(r().queryRow,vt()===e.query.queryHash&&r().selectedQueryRow,"tsqd-query-row"),b=`Query key ${e.query.queryHash}`,w=z(m(),"tsqd-query-observer-count");return y!==h.e&&A(f,h.e=y),b!==h.t&&D(f,"aria-label",h.t=b),w!==h.a&&A(g,h.a=w),h},{e:void 0,t:void 0,a:void 0}),f}})},_3=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),{colors:o,alpha:i}=$,s=(p,m)=>t()==="dark"?m:p,l=Rt(p=>p().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),a=Rt(p=>{let f=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return f?f.state.isPaused:!1}),u=Rt(p=>{let f=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return f?f.state.status:"idle"}),c=F(()=>Bn({isPaused:a(),status:u()})),d=()=>c()==="gray"?n`
184
+ `;return x(B,{get when(){return l()},get children(){var f=o1(),g=f.firstChild,v=g.nextSibling;return f.$$click=()=>Qi(e.query.queryHash===yt()?null:e.query.queryHash),T(g,d),T(v,()=>e.query.queryHash),T(f,x(B,{get when(){return a()},get children(){return h3()}}),null),T(f,x(B,{get when(){return u()},get children(){return y3()}}),null),G(h=>{var y=z(r().queryRow,yt()===e.query.queryHash&&r().selectedQueryRow,"tsqd-query-row"),b=`Query key ${e.query.queryHash}`,w=z(m(),"tsqd-query-observer-count");return y!==h.e&&A(f,h.e=y),b!==h.t&&D(f,"aria-label",h.t=b),w!==h.a&&A(g,h.a=w),h},{e:void 0,t:void 0,a:void 0}),f}})},F3=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),{colors:o,alpha:i}=$,s=(p,m)=>t()==="dark"?m:p,l=Rt(p=>p().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),a=Rt(p=>{let f=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return f?f.state.isPaused:!1}),u=Rt(p=>{let f=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return f?f.state.status:"idle"}),c=F(()=>Bn({isPaused:a(),status:u()})),d=()=>c()==="gray"?n`
185
185
  background-color: ${s(o[c()][200],o[c()][700])};
186
186
  color: ${s(o[c()][700],o[c()][300])};
187
187
  `:n`
188
188
  background-color: ${s(o[c()][200]+i[80],o[c()][900])};
189
189
  color: ${s(o[c()][800],o[c()][300])};
190
- `;return x(B,{get when(){return l()},get children(){var p=o1(),m=p.firstChild,f=m.nextSibling;return p.$$click=()=>{i1(e.mutation.mutationId===Tn()?null:e.mutation.mutationId);},T(m,x(B,{get when(){return c()==="purple"},get children(){return x(_y,{})}}),null),T(m,x(B,{get when(){return c()==="green"},get children(){return x(ia,{})}}),null),T(m,x(B,{get when(){return c()==="red"},get children(){return x(My,{})}}),null),T(m,x(B,{get when(){return c()==="yellow"},get children(){return x($y,{})}}),null),T(f,x(B,{get when(){return e.mutation.options.mutationKey},get children(){return [ze(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),T(f,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),G(g=>{var v=z(r().queryRow,Tn()===e.mutation.mutationId&&r().selectedQueryRow,"tsqd-query-row"),h=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,y=z(d(),"tsqd-query-observer-count");return v!==g.e&&A(p,g.e=v),h!==g.t&&D(p,"aria-label",g.t=h),y!==g.a&&A(m,g.a=y),g},{e:void 0,t:void 0,a:void 0}),p}})},F3=()=>{let e=je(a=>a().getAll().filter(u=>Kn(u)==="stale").length),t=je(a=>a().getAll().filter(u=>Kn(u)==="fresh").length),n=je(a=>a().getAll().filter(u=>Kn(u)==="fetching").length),r=je(a=>a().getAll().filter(u=>Kn(u)==="paused").length),o=je(a=>a().getAll().filter(u=>Kn(u)==="inactive").length),i=Ye(),s=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,l=F(()=>i()==="dark"?Ft(s):_t(s));return (()=>{var a=_o();return T(a,x(fn,{label:"Fresh",color:"green",get count(){return t()}}),null),T(a,x(fn,{label:"Fetching",color:"blue",get count(){return n()}}),null),T(a,x(fn,{label:"Paused",color:"purple",get count(){return r()}}),null),T(a,x(fn,{label:"Stale",color:"yellow",get count(){return e()}}),null),T(a,x(fn,{label:"Inactive",color:"gray",get count(){return o()}}),null),G(()=>A(a,z(l().queryStatusContainer,"tsqd-query-status-container"))),a})()},D3=()=>{let e=Rt(l=>l().getAll().filter(a=>Bn({isPaused:a.state.isPaused,status:a.state.status})==="green").length),t=Rt(l=>l().getAll().filter(a=>Bn({isPaused:a.state.isPaused,status:a.state.status})==="yellow").length),n=Rt(l=>l().getAll().filter(a=>Bn({isPaused:a.state.isPaused,status:a.state.status})==="purple").length),r=Rt(l=>l().getAll().filter(a=>Bn({isPaused:a.state.isPaused,status:a.state.status})==="red").length),o=Ye(),i=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,s=F(()=>o()==="dark"?Ft(i):_t(i));return (()=>{var l=_o();return T(l,x(fn,{label:"Paused",color:"purple",get count(){return n()}}),null),T(l,x(fn,{label:"Pending",color:"yellow",get count(){return t()}}),null),T(l,x(fn,{label:"Success",color:"green",get count(){return e()}}),null),T(l,x(fn,{label:"Error",color:"red",get count(){return r()}}),null),G(()=>A(l,z(s().queryStatusContainer,"tsqd-query-status-container"))),l})()},fn=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),{colors:o,alpha:i}=$,s=(m,f)=>t()==="dark"?f:m,l,[a,u]=q(!1),[c,d]=q(!1),p=F(()=>!(vt()&&qt()<E2&&qt()>Un||qt()<Un));return (()=>{var m=b3(),f=m.firstChild,g=f.nextSibling,v=l;return typeof v=="function"?Vn(v,m):l=m,m.addEventListener("mouseleave",()=>{u(!1),d(!1);}),m.addEventListener("mouseenter",()=>u(!0)),m.addEventListener("blur",()=>d(!1)),m.addEventListener("focus",()=>d(!0)),qs(m,re({get disabled(){return p()},get class(){return z(r().queryStatusTag,!p()&&n`
190
+ `;return x(B,{get when(){return l()},get children(){var p=o1(),m=p.firstChild,f=m.nextSibling;return p.$$click=()=>{i1(e.mutation.mutationId===Tn()?null:e.mutation.mutationId);},T(m,x(B,{get when(){return c()==="purple"},get children(){return x(Fy,{})}}),null),T(m,x(B,{get when(){return c()==="green"},get children(){return x(ia,{})}}),null),T(m,x(B,{get when(){return c()==="red"},get children(){return x(_y,{})}}),null),T(m,x(B,{get when(){return c()==="yellow"},get children(){return x(My,{})}}),null),T(f,x(B,{get when(){return e.mutation.options.mutationKey},get children(){return [ze(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),T(f,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),G(g=>{var v=z(r().queryRow,Tn()===e.mutation.mutationId&&r().selectedQueryRow,"tsqd-query-row"),h=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,y=z(d(),"tsqd-query-observer-count");return v!==g.e&&A(p,g.e=v),h!==g.t&&D(p,"aria-label",g.t=h),y!==g.a&&A(m,g.a=y),g},{e:void 0,t:void 0,a:void 0}),p}})},D3=()=>{let e=je(a=>a().getAll().filter(u=>Kn(u)==="stale").length),t=je(a=>a().getAll().filter(u=>Kn(u)==="fresh").length),n=je(a=>a().getAll().filter(u=>Kn(u)==="fetching").length),r=je(a=>a().getAll().filter(u=>Kn(u)==="paused").length),o=je(a=>a().getAll().filter(u=>Kn(u)==="inactive").length),i=Ye(),s=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,l=F(()=>i()==="dark"?Ft(s):_t(s));return (()=>{var a=_o();return T(a,x(fn,{label:"Fresh",color:"green",get count(){return t()}}),null),T(a,x(fn,{label:"Fetching",color:"blue",get count(){return n()}}),null),T(a,x(fn,{label:"Paused",color:"purple",get count(){return r()}}),null),T(a,x(fn,{label:"Stale",color:"yellow",get count(){return e()}}),null),T(a,x(fn,{label:"Inactive",color:"gray",get count(){return o()}}),null),G(()=>A(a,z(l().queryStatusContainer,"tsqd-query-status-container"))),a})()},L3=()=>{let e=Rt(l=>l().getAll().filter(a=>Bn({isPaused:a.state.isPaused,status:a.state.status})==="green").length),t=Rt(l=>l().getAll().filter(a=>Bn({isPaused:a.state.isPaused,status:a.state.status})==="yellow").length),n=Rt(l=>l().getAll().filter(a=>Bn({isPaused:a.state.isPaused,status:a.state.status})==="purple").length),r=Rt(l=>l().getAll().filter(a=>Bn({isPaused:a.state.isPaused,status:a.state.status})==="red").length),o=Ye(),i=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,s=F(()=>o()==="dark"?Ft(i):_t(i));return (()=>{var l=_o();return T(l,x(fn,{label:"Paused",color:"purple",get count(){return n()}}),null),T(l,x(fn,{label:"Pending",color:"yellow",get count(){return t()}}),null),T(l,x(fn,{label:"Success",color:"green",get count(){return e()}}),null),T(l,x(fn,{label:"Error",color:"red",get count(){return r()}}),null),G(()=>A(l,z(s().queryStatusContainer,"tsqd-query-status-container"))),l})()},fn=e=>{let t=Ye(),n=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,r=F(()=>t()==="dark"?Ft(n):_t(n)),{colors:o,alpha:i}=$,s=(m,f)=>t()==="dark"?f:m,l,[a,u]=q(!1),[c,d]=q(!1),p=F(()=>!(yt()&&qt()<P2&&qt()>Un||qt()<Un));return (()=>{var m=x3(),f=m.firstChild,g=f.nextSibling,v=l;return typeof v=="function"?Vn(v,m):l=m,m.addEventListener("mouseleave",()=>{u(!1),d(!1);}),m.addEventListener("mouseenter",()=>u(!0)),m.addEventListener("blur",()=>d(!1)),m.addEventListener("focus",()=>d(!0)),qs(m,re({get disabled(){return p()},get class(){return z(r().queryStatusTag,!p()&&n`
191
191
  cursor: pointer;
192
192
  &:hover {
193
193
  background: ${s(o.gray[200],o.darkGray[400])}${i[80]};
194
194
  }
195
- `,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>a()||c()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),T(m,x(B,{get when(){return ze(()=>!p())()&&(a()||c())},get children(){var h=y3();return T(h,()=>e.label),G(()=>A(h,z(r().statusTooltip,"tsqd-query-status-tooltip"))),h}}),f),T(m,x(B,{get when(){return p()},get children(){var h=v3();return T(h,()=>e.label),G(()=>A(h,z(r().queryStatusTagLabel,"tsqd-query-status-tag-label"))),h}}),g),T(g,()=>e.count),G(h=>{var y=z(n`
195
+ `,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>a()||c()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),T(m,x(B,{get when(){return ze(()=>!p())()&&(a()||c())},get children(){var h=v3();return T(h,()=>e.label),G(()=>A(h,z(r().statusTooltip,"tsqd-query-status-tooltip"))),h}}),f),T(m,x(B,{get when(){return p()},get children(){var h=b3();return T(h,()=>e.label),G(()=>A(h,z(r().queryStatusTagLabel,"tsqd-query-status-tag-label"))),h}}),g),T(g,()=>e.count),G(h=>{var y=z(n`
196
196
  width: ${$.size[1.5]};
197
197
  height: ${$.size[1.5]};
198
198
  border-radius: ${$.border.radius.full};
@@ -200,7 +200,7 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
200
200
  `,"tsqd-query-status-tag-dot"),b=z(r().queryStatusCount,e.count>0&&e.color!=="gray"&&n`
201
201
  background-color: ${s(o[e.color][100],o[e.color][900])};
202
202
  color: ${s(o[e.color][700],o[e.color][300])};
203
- `,"tsqd-query-status-tag-count");return y!==h.e&&A(f,h.e=y),b!==h.t&&A(g,h.t=b),h},{e:void 0,t:void 0}),m})()},L3=()=>{let e=Ye(),t=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,n=F(()=>e()==="dark"?Ft(t):_t(t)),{colors:r}=$,o=(I,P)=>e()==="dark"?P:I,i=U().client,[s,l]=q(!1),[a,u]=q("view"),[c,d]=q(!1),p=F(()=>U().errorTypes||[]),m=je(I=>I().getAll().find(P=>P.queryHash===vt()),!1),f=je(I=>I().getAll().find(P=>P.queryHash===vt()),!1),g=je(I=>I().getAll().find(P=>P.queryHash===vt())?.state,!1),v=je(I=>I().getAll().find(P=>P.queryHash===vt())?.state.data,!1),h=je(I=>{let P=I().getAll().find(V=>V.queryHash===vt());return P?Kn(P):"inactive"}),y=je(I=>{let P=I().getAll().find(V=>V.queryHash===vt());return P?P.state.status:"pending"}),b=je(I=>I().getAll().find(P=>P.queryHash===vt())?.getObserversCount()??0),w=F(()=>Dc(h())),S=()=>{Zt({type:"REFETCH",queryHash:m()?.queryHash}),m()?.fetch()?.catch(()=>{});},C=I=>{let P=m();if(!P)return;Zt({type:"TRIGGER_ERROR",queryHash:P.queryHash,metadata:{error:I?.name}});let V=I?.initializer(P)??new Error("Unknown error from devtools"),L=P.options;P.setState({status:"error",error:V,fetchMeta:{...P.state.fetchMeta,__previousQueryOptions:L}});},k=()=>{let I=m();if(!I)return;Zt({type:"RESTORE_LOADING",queryHash:I.queryHash});let P=I.state,V=I.state.fetchMeta?I.state.fetchMeta.__previousQueryOptions:null;I.cancel({silent:!0}),I.setState({...P,fetchStatus:"idle",fetchMeta:null}),V&&I.fetch(V);};j(()=>{h()!=="fetching"&&l(!1);});let E=()=>w()==="gray"?t`
203
+ `,"tsqd-query-status-tag-count");return y!==h.e&&A(f,h.e=y),b!==h.t&&A(g,h.t=b),h},{e:void 0,t:void 0}),m})()},A3=()=>{let e=Ye(),t=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,n=F(()=>e()==="dark"?Ft(t):_t(t)),{colors:r}=$,o=(I,P)=>e()==="dark"?P:I,i=U().client,[s,l]=q(!1),[a,u]=q("view"),[c,d]=q(!1),p=F(()=>U().errorTypes||[]),m=je(I=>I().getAll().find(P=>P.queryHash===yt()),!1),f=je(I=>I().getAll().find(P=>P.queryHash===yt()),!1),g=je(I=>I().getAll().find(P=>P.queryHash===yt())?.state,!1),v=je(I=>I().getAll().find(P=>P.queryHash===yt())?.state.data,!1),h=je(I=>{let P=I().getAll().find(V=>V.queryHash===yt());return P?Kn(P):"inactive"}),y=je(I=>{let P=I().getAll().find(V=>V.queryHash===yt());return P?P.state.status:"pending"}),b=je(I=>I().getAll().find(P=>P.queryHash===yt())?.getObserversCount()??0),w=F(()=>Dc(h())),C=()=>{Zt({type:"REFETCH",queryHash:m()?.queryHash}),m()?.fetch()?.catch(()=>{});},S=I=>{let P=m();if(!P)return;Zt({type:"TRIGGER_ERROR",queryHash:P.queryHash,metadata:{error:I?.name}});let V=I?.initializer(P)??new Error("Unknown error from devtools"),L=P.options;P.setState({status:"error",error:V,fetchMeta:{...P.state.fetchMeta,__previousQueryOptions:L}});},k=()=>{let I=m();if(!I)return;Zt({type:"RESTORE_LOADING",queryHash:I.queryHash});let P=I.state,V=I.state.fetchMeta?I.state.fetchMeta.__previousQueryOptions:null;I.cancel({silent:!0}),I.setState({...P,fetchStatus:"idle",fetchMeta:null}),V&&I.fetch(V);};j(()=>{h()!=="fetching"&&l(!1);});let E=()=>w()==="gray"?t`
204
204
  background-color: ${o(r[w()][200],r[w()][700])};
205
205
  color: ${o(r[w()][700],r[w()][300])};
206
206
  border-color: ${o(r[w()][400],r[w()][600])};
@@ -208,17 +208,17 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
208
208
  background-color: ${o(r[w()][100],r[w()][900])};
209
209
  color: ${o(r[w()][700],r[w()][300])};
210
210
  border-color: ${o(r[w()][400],r[w()][600])};
211
- `;return x(B,{get when(){return ze(()=>!!m())()&&g()},get children(){var I=k3(),P=I.firstChild,V=P.nextSibling,L=V.firstChild,H=L.firstChild,K=H.firstChild,oe=H.nextSibling,de=L.nextSibling,he=de.firstChild,xe=he.nextSibling,we=de.nextSibling,Pe=we.firstChild,qe=Pe.nextSibling,Ee=V.nextSibling,Re=Ee.nextSibling,_=Re.firstChild,Te=_.firstChild,le=_.nextSibling,Ue=le.firstChild,X=le.nextSibling,He=X.firstChild,Ae=X.nextSibling,mt=Ae.firstChild,_e=Ae.nextSibling,ct=_e.firstChild,ut=ct.nextSibling,Ze=Re.nextSibling;Ze.firstChild;var Je=Ze.nextSibling,dt=Je.nextSibling;return T(K,()=>fo(m().queryKey,!0)),T(oe,h),T(xe,b),T(qe,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),_.$$click=S,le.$$click=()=>{Zt({type:"INVALIDATE",queryHash:m()?.queryHash}),i.invalidateQueries(m());},X.$$click=()=>{Zt({type:"RESET",queryHash:m()?.queryHash}),i.resetQueries(m());},Ae.$$click=()=>{Zt({type:"REMOVE",queryHash:m()?.queryHash}),i.removeQueries(m()),Qi(null);},_e.$$click=()=>{if(m()?.state.data===void 0)l(!0),k();else {let O=m();if(!O)return;Zt({type:"TRIGGER_LOADING",queryHash:O.queryHash});let Y=O.options;O.fetch({...Y,queryFn:()=>new Promise(()=>{}),gcTime:-1}),O.setState({data:void 0,status:"pending",fetchMeta:{...O.state.fetchMeta,__previousQueryOptions:Y}});}},T(_e,()=>y()==="pending"?"Restore":"Trigger",ut),T(Re,x(B,{get when(){return p().length===0||y()==="error"},get children(){var O=x3(),Y=O.firstChild,ue=Y.nextSibling;return O.$$click=()=>{m().state.error?(Zt({type:"RESTORE_ERROR",queryHash:m()?.queryHash}),i.resetQueries(m())):C();},T(O,()=>y()==="error"?"Restore":"Trigger",ue),G(ye=>{var fe=z(t`
211
+ `;return x(B,{get when(){return ze(()=>!!m())()&&g()},get children(){var I=I3(),P=I.firstChild,V=P.nextSibling,L=V.firstChild,H=L.firstChild,K=H.firstChild,oe=H.nextSibling,de=L.nextSibling,he=de.firstChild,xe=he.nextSibling,we=de.nextSibling,Pe=we.firstChild,qe=Pe.nextSibling,Ee=V.nextSibling,Re=Ee.nextSibling,_=Re.firstChild,Te=_.firstChild,le=_.nextSibling,Ue=le.firstChild,Z=le.nextSibling,He=Z.firstChild,Ae=Z.nextSibling,kt=Ae.firstChild,_e=Ae.nextSibling,ct=_e.firstChild,pt=ct.nextSibling,Ze=Re.nextSibling;Ze.firstChild;var Je=Ze.nextSibling,ut=Je.nextSibling;return T(K,()=>fo(m().queryKey,!0)),T(oe,h),T(xe,b),T(qe,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),_.$$click=C,le.$$click=()=>{Zt({type:"INVALIDATE",queryHash:m()?.queryHash}),i.invalidateQueries(m());},Z.$$click=()=>{Zt({type:"RESET",queryHash:m()?.queryHash}),i.resetQueries(m());},Ae.$$click=()=>{Zt({type:"REMOVE",queryHash:m()?.queryHash}),i.removeQueries(m()),Qi(null);},_e.$$click=()=>{if(m()?.state.data===void 0)l(!0),k();else {let O=m();if(!O)return;Zt({type:"TRIGGER_LOADING",queryHash:O.queryHash});let Y=O.options;O.fetch({...Y,queryFn:()=>new Promise(()=>{}),gcTime:-1}),O.setState({data:void 0,status:"pending",fetchMeta:{...O.state.fetchMeta,__previousQueryOptions:Y}});}},T(_e,()=>y()==="pending"?"Restore":"Trigger",pt),T(Re,x(B,{get when(){return p().length===0||y()==="error"},get children(){var O=w3(),Y=O.firstChild,ue=Y.nextSibling;return O.$$click=()=>{m().state.error?(Zt({type:"RESTORE_ERROR",queryHash:m()?.queryHash}),i.resetQueries(m())):S();},T(O,()=>y()==="error"?"Restore":"Trigger",ue),G(ye=>{var fe=z(t`
212
212
  color: ${o(r.red[500],r.red[400])};
213
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),ve=y()==="pending",J=t`
213
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),ve=y()==="pending",X=t`
214
214
  background-color: ${o(r.red[500],r.red[400])};
215
- `;return fe!==ye.e&&A(O,ye.e=fe),ve!==ye.t&&(O.disabled=ye.t=ve),J!==ye.a&&A(Y,ye.a=J),ye},{e:void 0,t:void 0,a:void 0}),O}}),null),T(Re,x(B,{get when(){return !(p().length===0||y()==="error")},get children(){var O=w3(),Y=O.firstChild,ue=Y.nextSibling,ye=ue.nextSibling;return ye.firstChild,ye.addEventListener("change",fe=>{let ve=p().find(J=>J.name===fe.currentTarget.value);C(ve);}),T(ye,x(lc,{get each(){return p()},children:fe=>(()=>{var ve=I3();return T(ve,()=>fe.name),G(()=>ve.value=fe.name),ve})()}),null),T(O,x(mr,{}),null),G(fe=>{var ve=z(n().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),J=t`
215
+ `;return fe!==ye.e&&A(O,ye.e=fe),ve!==ye.t&&(O.disabled=ye.t=ve),X!==ye.a&&A(Y,ye.a=X),ye},{e:void 0,t:void 0,a:void 0}),O}}),null),T(Re,x(B,{get when(){return !(p().length===0||y()==="error")},get children(){var O=C3(),Y=O.firstChild,ue=Y.nextSibling,ye=ue.nextSibling;return ye.firstChild,ye.addEventListener("change",fe=>{let ve=p().find(X=>X.name===fe.currentTarget.value);S(ve);}),T(ye,x(lc,{get each(){return p()},children:fe=>(()=>{var ve=E3();return T(ve,()=>fe.name),G(()=>ve.value=fe.name),ve})()}),null),T(O,x(mr,{}),null),G(fe=>{var ve=z(n().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),X=t`
216
216
  background-color: ${$.colors.red[400]};
217
- `,ne=y()==="pending";return ve!==fe.e&&A(O,fe.e=ve),J!==fe.t&&A(Y,fe.t=J),ne!==fe.a&&(ye.disabled=fe.a=ne),fe},{e:void 0,t:void 0,a:void 0}),O}}),null),T(Ze,()=>a()==="view"?"Explorer":"Editor",null),T(I,x(B,{get when(){return a()==="view"},get children(){var O=S3();return T(O,x(Pn,{label:"Data",defaultExpanded:["Data"],get value(){return v()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return m()}})),G(Y=>(Y=$.size[2])!=null?O.style.setProperty("padding",Y):O.style.removeProperty("padding")),O}}),Je),T(I,x(B,{get when(){return a()==="edit"},get children(){var O=C3(),Y=O.firstChild,ue=Y.nextSibling,ye=ue.firstChild,fe=ye.nextSibling,ve=fe.firstChild,J=ve.nextSibling;return O.addEventListener("submit",ne=>{ne.preventDefault();let sn=new FormData(ne.currentTarget).get("data");try{let Ot=JSON.parse(sn);m().setState({...m().state,data:Ot}),u("view");}catch{d(!0);}}),Y.addEventListener("focus",()=>d(!1)),T(ye,()=>c()?"Invalid Value":""),ve.$$click=()=>u("view"),G(ne=>{var At=z(n().devtoolsEditForm,"tsqd-query-details-data-editor"),sn=n().devtoolsEditTextarea,Ot=c(),Rn=n().devtoolsEditFormActions,an=n().devtoolsEditFormError,qn=n().devtoolsEditFormActionContainer,ln=z(n().devtoolsEditFormAction,t`
217
+ `,ne=y()==="pending";return ve!==fe.e&&A(O,fe.e=ve),X!==fe.t&&A(Y,fe.t=X),ne!==fe.a&&(ye.disabled=fe.a=ne),fe},{e:void 0,t:void 0,a:void 0}),O}}),null),T(Ze,()=>a()==="view"?"Explorer":"Editor",null),T(I,x(B,{get when(){return a()==="view"},get children(){var O=S3();return T(O,x(Pn,{label:"Data",defaultExpanded:["Data"],get value(){return v()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return m()}})),G(Y=>(Y=$.size[2])!=null?O.style.setProperty("padding",Y):O.style.removeProperty("padding")),O}}),Je),T(I,x(B,{get when(){return a()==="edit"},get children(){var O=k3(),Y=O.firstChild,ue=Y.nextSibling,ye=ue.firstChild,fe=ye.nextSibling,ve=fe.firstChild,X=ve.nextSibling;return O.addEventListener("submit",ne=>{ne.preventDefault();let sn=new FormData(ne.currentTarget).get("data");try{let Ot=JSON.parse(sn);m().setState({...m().state,data:Ot}),u("view");}catch{d(!0);}}),Y.addEventListener("focus",()=>d(!1)),T(ye,()=>c()?"Invalid Value":""),ve.$$click=()=>u("view"),G(ne=>{var At=z(n().devtoolsEditForm,"tsqd-query-details-data-editor"),sn=n().devtoolsEditTextarea,Ot=c(),Rn=n().devtoolsEditFormActions,an=n().devtoolsEditFormError,qn=n().devtoolsEditFormActionContainer,ln=z(n().devtoolsEditFormAction,t`
218
218
  color: ${o(r.gray[600],r.gray[300])};
219
- `),Cn=z(n().devtoolsEditFormAction,t`
219
+ `),Sn=z(n().devtoolsEditFormAction,t`
220
220
  color: ${o(r.blue[600],r.blue[400])};
221
- `);return At!==ne.e&&A(O,ne.e=At),sn!==ne.t&&A(Y,ne.t=sn),Ot!==ne.a&&D(Y,"data-error",ne.a=Ot),Rn!==ne.o&&A(ue,ne.o=Rn),an!==ne.i&&A(ye,ne.i=an),qn!==ne.n&&A(fe,ne.n=qn),ln!==ne.s&&A(ve,ne.s=ln),Cn!==ne.h&&A(J,ne.h=Cn),ne},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),G(()=>Y.value=JSON.stringify(v(),null,2)),O}}),Je),T(dt,x(Pn,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return f()}})),G(O=>{var Y=z(n().detailsContainer,"tsqd-query-details-container"),ue=z(n().detailsHeader,"tsqd-query-details-header"),ye=z(n().detailsBody,"tsqd-query-details-summary-container"),fe=z(n().queryDetailsStatus,E()),ve=z(n().detailsHeader,"tsqd-query-details-header"),J=z(n().actionsBody,"tsqd-query-details-actions-container"),ne=z(t`
221
+ `);return At!==ne.e&&A(O,ne.e=At),sn!==ne.t&&A(Y,ne.t=sn),Ot!==ne.a&&D(Y,"data-error",ne.a=Ot),Rn!==ne.o&&A(ue,ne.o=Rn),an!==ne.i&&A(ye,ne.i=an),qn!==ne.n&&A(fe,ne.n=qn),ln!==ne.s&&A(ve,ne.s=ln),Sn!==ne.h&&A(X,ne.h=Sn),ne},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),G(()=>Y.value=JSON.stringify(v(),null,2)),O}}),Je),T(ut,x(Pn,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return f()}})),G(O=>{var Y=z(n().detailsContainer,"tsqd-query-details-container"),ue=z(n().detailsHeader,"tsqd-query-details-header"),ye=z(n().detailsBody,"tsqd-query-details-summary-container"),fe=z(n().queryDetailsStatus,E()),ve=z(n().detailsHeader,"tsqd-query-details-header"),X=z(n().actionsBody,"tsqd-query-details-actions-container"),ne=z(t`
222
222
  color: ${o(r.blue[600],r.blue[400])};
223
223
  `,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),At=h()==="fetching",sn=t`
224
224
  background-color: ${o(r.blue[600],r.blue[400])};
@@ -228,7 +228,7 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
228
228
  background-color: ${o(r.yellow[600],r.yellow[400])};
229
229
  `,qn=z(t`
230
230
  color: ${o(r.gray[600],r.gray[300])};
231
- `,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),ln=y()==="pending",Cn=t`
231
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),ln=y()==="pending",Sn=t`
232
232
  background-color: ${o(r.gray[600],r.gray[400])};
233
233
  `,ni=z(t`
234
234
  color: ${o(r.pink[500],r.pink[400])};
@@ -238,7 +238,7 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
238
238
  color: ${o(r.cyan[500],r.cyan[400])};
239
239
  `,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),oi=s(),Yr=t`
240
240
  background-color: ${o(r.cyan[500],r.cyan[400])};
241
- `,Xr=z(n().detailsHeader,"tsqd-query-details-header"),Zr=z(n().detailsHeader,"tsqd-query-details-header"),or=$.size[2];return Y!==O.e&&A(I,O.e=Y),ue!==O.t&&A(P,O.t=ue),ye!==O.a&&A(V,O.a=ye),fe!==O.o&&A(oe,O.o=fe),ve!==O.i&&A(Ee,O.i=ve),J!==O.n&&A(Re,O.n=J),ne!==O.s&&A(_,O.s=ne),At!==O.h&&(_.disabled=O.h=At),sn!==O.r&&A(Te,O.r=sn),Ot!==O.d&&A(le,O.d=Ot),Rn!==O.l&&(le.disabled=O.l=Rn),an!==O.u&&A(Ue,O.u=an),qn!==O.c&&A(X,O.c=qn),ln!==O.w&&(X.disabled=O.w=ln),Cn!==O.m&&A(He,O.m=Cn),ni!==O.f&&A(Ae,O.f=ni),Wr!==O.y&&(Ae.disabled=O.y=Wr),ri!==O.g&&A(mt,O.g=ri),rr!==O.p&&A(_e,O.p=rr),oi!==O.b&&(_e.disabled=O.b=oi),Yr!==O.T&&A(ct,O.T=Yr),Xr!==O.A&&A(Ze,O.A=Xr),Zr!==O.O&&A(Je,O.O=Zr),or!==O.I&&((O.I=or)!=null?dt.style.setProperty("padding",or):dt.style.removeProperty("padding")),O},{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}),I}})},A3=()=>{let e=Ye(),t=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,n=F(()=>e()==="dark"?Ft(t):_t(t)),{colors:r}=$,o=(c,d)=>e()==="dark"?d:c,i=Rt(c=>{let p=c().getAll().find(m=>m.mutationId===Tn());return p?p.state.isPaused:!1}),s=Rt(c=>{let p=c().getAll().find(m=>m.mutationId===Tn());return p?p.state.status:"idle"}),l=F(()=>Bn({isPaused:i(),status:s()})),a=Rt(c=>c().getAll().find(d=>d.mutationId===Tn()),!1),u=()=>l()==="gray"?t`
241
+ `,Xr=z(n().detailsHeader,"tsqd-query-details-header"),Zr=z(n().detailsHeader,"tsqd-query-details-header"),or=$.size[2];return Y!==O.e&&A(I,O.e=Y),ue!==O.t&&A(P,O.t=ue),ye!==O.a&&A(V,O.a=ye),fe!==O.o&&A(oe,O.o=fe),ve!==O.i&&A(Ee,O.i=ve),X!==O.n&&A(Re,O.n=X),ne!==O.s&&A(_,O.s=ne),At!==O.h&&(_.disabled=O.h=At),sn!==O.r&&A(Te,O.r=sn),Ot!==O.d&&A(le,O.d=Ot),Rn!==O.l&&(le.disabled=O.l=Rn),an!==O.u&&A(Ue,O.u=an),qn!==O.c&&A(Z,O.c=qn),ln!==O.w&&(Z.disabled=O.w=ln),Sn!==O.m&&A(He,O.m=Sn),ni!==O.f&&A(Ae,O.f=ni),Wr!==O.y&&(Ae.disabled=O.y=Wr),ri!==O.g&&A(kt,O.g=ri),rr!==O.p&&A(_e,O.p=rr),oi!==O.b&&(_e.disabled=O.b=oi),Yr!==O.T&&A(ct,O.T=Yr),Xr!==O.A&&A(Ze,O.A=Xr),Zr!==O.O&&A(Je,O.O=Zr),or!==O.I&&((O.I=or)!=null?ut.style.setProperty("padding",or):ut.style.removeProperty("padding")),O},{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}),I}})},O3=()=>{let e=Ye(),t=U().shadowDOMTarget?ce.bind({target:U().shadowDOMTarget}):ce,n=F(()=>e()==="dark"?Ft(t):_t(t)),{colors:r}=$,o=(c,d)=>e()==="dark"?d:c,i=Rt(c=>{let p=c().getAll().find(m=>m.mutationId===Tn());return p?p.state.isPaused:!1}),s=Rt(c=>{let p=c().getAll().find(m=>m.mutationId===Tn());return p?p.state.status:"idle"}),l=F(()=>Bn({isPaused:i(),status:s()})),a=Rt(c=>c().getAll().find(d=>d.mutationId===Tn()),!1),u=()=>l()==="gray"?t`
242
242
  background-color: ${o(r[l()][200],r[l()][700])};
243
243
  color: ${o(r[l()][700],r[l()][300])};
244
244
  border-color: ${o(r[l()][400],r[l()][600])};
@@ -246,7 +246,7 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
246
246
  background-color: ${o(r[l()][100],r[l()][900])};
247
247
  color: ${o(r[l()][700],r[l()][300])};
248
248
  border-color: ${o(r[l()][400],r[l()][600])};
249
- `;return x(B,{get when(){return a()},get children(){var c=E3(),d=c.firstChild,p=d.nextSibling,m=p.firstChild,f=m.firstChild,g=f.firstChild,v=f.nextSibling,h=m.nextSibling,y=h.firstChild,b=y.nextSibling,w=p.nextSibling,S=w.nextSibling,C=S.nextSibling,k=C.nextSibling,E=k.nextSibling,I=E.nextSibling,P=I.nextSibling,V=P.nextSibling;return T(g,x(B,{get when(){return a().options.mutationKey},fallback:"No mutationKey found",get children(){return fo(a().options.mutationKey,!0)}})),T(v,x(B,{get when(){return l()==="purple"},children:"pending"}),null),T(v,x(B,{get when(){return l()!=="purple"},get children(){return s()}}),null),T(b,()=>new Date(a().state.submittedAt).toLocaleTimeString()),T(S,x(Pn,{label:"Variables",defaultExpanded:["Variables"],get value(){return a().state.variables}})),T(k,x(Pn,{label:"Context",defaultExpanded:["Context"],get value(){return a().state.context}})),T(I,x(Pn,{label:"Data",defaultExpanded:["Data"],get value(){return a().state.data}})),T(V,x(Pn,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return a()}})),G(L=>{var H=z(n().detailsContainer,"tsqd-query-details-container"),K=z(n().detailsHeader,"tsqd-query-details-header"),oe=z(n().detailsBody,"tsqd-query-details-summary-container"),de=z(n().queryDetailsStatus,u()),he=z(n().detailsHeader,"tsqd-query-details-header"),xe=$.size[2],we=z(n().detailsHeader,"tsqd-query-details-header"),Pe=$.size[2],qe=z(n().detailsHeader,"tsqd-query-details-header"),Ee=$.size[2],Re=z(n().detailsHeader,"tsqd-query-details-header"),_=$.size[2];return H!==L.e&&A(c,L.e=H),K!==L.t&&A(d,L.t=K),oe!==L.a&&A(p,L.a=oe),de!==L.o&&A(v,L.o=de),he!==L.i&&A(w,L.i=he),xe!==L.n&&((L.n=xe)!=null?S.style.setProperty("padding",xe):S.style.removeProperty("padding")),we!==L.s&&A(C,L.s=we),Pe!==L.h&&((L.h=Pe)!=null?k.style.setProperty("padding",Pe):k.style.removeProperty("padding")),qe!==L.r&&A(E,L.r=qe),Ee!==L.d&&((L.d=Ee)!=null?I.style.setProperty("padding",Ee):I.style.removeProperty("padding")),Re!==L.l&&A(P,L.l=Re),_!==L.u&&((L.u=_)!=null?V.style.setProperty("padding",_):V.style.removeProperty("padding")),L},{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}})},Li=new Map,O3=()=>{let e=F(()=>U().client.getQueryCache()),t=e().subscribe(n=>{Xl(()=>{for(let[r,o]of Li.entries())o.shouldUpdate(n)&&o.setter(r(e));});});return W(()=>{Li.clear(),t();}),t},je=(e,t=!0,n=()=>!0)=>{let r=F(()=>U().client.getQueryCache()),[o,i]=q(e(r),t?void 0:{equals:!1});return j(()=>{i(e(r));}),Li.set(e,{setter:i,shouldUpdate:n}),W(()=>{Li.delete(e);}),o},Ai=new Map,R3=()=>{let e=F(()=>U().client.getMutationCache()),t=e().subscribe(()=>{for(let[n,r]of Ai.entries())queueMicrotask(()=>{r(n(e));});});return W(()=>{Ai.clear(),t();}),t},Rt=(e,t=!0)=>{let n=F(()=>U().client.getMutationCache()),[r,o]=q(e(n),t?void 0:{equals:!1});return j(()=>{o(e(n));}),Ai.set(e,o),W(()=>{Ai.delete(e);}),r},q3="@tanstack/query-devtools-event",Zt=({type:e,queryHash:t,metadata:n})=>{let r=new CustomEvent(q3,{detail:{type:e,queryHash:t,metadata:n},bubbles:!0,cancelable:!0});window.dispatchEvent(r);},l1=(e,t)=>{let{colors:n,font:r,size:o,alpha:i,shadow:s,border:l}=$,a=(u,c)=>e==="light"?u:c;return {devtoolsBtn:t`
249
+ `;return x(B,{get when(){return a()},get children(){var c=P3(),d=c.firstChild,p=d.nextSibling,m=p.firstChild,f=m.firstChild,g=f.firstChild,v=f.nextSibling,h=m.nextSibling,y=h.firstChild,b=y.nextSibling,w=p.nextSibling,C=w.nextSibling,S=C.nextSibling,k=S.nextSibling,E=k.nextSibling,I=E.nextSibling,P=I.nextSibling,V=P.nextSibling;return T(g,x(B,{get when(){return a().options.mutationKey},fallback:"No mutationKey found",get children(){return fo(a().options.mutationKey,!0)}})),T(v,x(B,{get when(){return l()==="purple"},children:"pending"}),null),T(v,x(B,{get when(){return l()!=="purple"},get children(){return s()}}),null),T(b,()=>new Date(a().state.submittedAt).toLocaleTimeString()),T(C,x(Pn,{label:"Variables",defaultExpanded:["Variables"],get value(){return a().state.variables}})),T(k,x(Pn,{label:"Context",defaultExpanded:["Context"],get value(){return a().state.context}})),T(I,x(Pn,{label:"Data",defaultExpanded:["Data"],get value(){return a().state.data}})),T(V,x(Pn,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return a()}})),G(L=>{var H=z(n().detailsContainer,"tsqd-query-details-container"),K=z(n().detailsHeader,"tsqd-query-details-header"),oe=z(n().detailsBody,"tsqd-query-details-summary-container"),de=z(n().queryDetailsStatus,u()),he=z(n().detailsHeader,"tsqd-query-details-header"),xe=$.size[2],we=z(n().detailsHeader,"tsqd-query-details-header"),Pe=$.size[2],qe=z(n().detailsHeader,"tsqd-query-details-header"),Ee=$.size[2],Re=z(n().detailsHeader,"tsqd-query-details-header"),_=$.size[2];return H!==L.e&&A(c,L.e=H),K!==L.t&&A(d,L.t=K),oe!==L.a&&A(p,L.a=oe),de!==L.o&&A(v,L.o=de),he!==L.i&&A(w,L.i=he),xe!==L.n&&((L.n=xe)!=null?C.style.setProperty("padding",xe):C.style.removeProperty("padding")),we!==L.s&&A(S,L.s=we),Pe!==L.h&&((L.h=Pe)!=null?k.style.setProperty("padding",Pe):k.style.removeProperty("padding")),qe!==L.r&&A(E,L.r=qe),Ee!==L.d&&((L.d=Ee)!=null?I.style.setProperty("padding",Ee):I.style.removeProperty("padding")),Re!==L.l&&A(P,L.l=Re),_!==L.u&&((L.u=_)!=null?V.style.setProperty("padding",_):V.style.removeProperty("padding")),L},{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}})},Li=new Map,R3=()=>{let e=F(()=>U().client.getQueryCache()),t=e().subscribe(n=>{Xl(()=>{for(let[r,o]of Li.entries())o.shouldUpdate(n)&&o.setter(r(e));});});return W(()=>{Li.clear(),t();}),t},je=(e,t=!0,n=()=>!0)=>{let r=F(()=>U().client.getQueryCache()),[o,i]=q(e(r),t?void 0:{equals:!1});return j(()=>{i(e(r));}),Li.set(e,{setter:i,shouldUpdate:n}),W(()=>{Li.delete(e);}),o},Ai=new Map,q3=()=>{let e=F(()=>U().client.getMutationCache()),t=e().subscribe(()=>{for(let[n,r]of Ai.entries())queueMicrotask(()=>{r(n(e));});});return W(()=>{Ai.clear(),t();}),t},Rt=(e,t=!0)=>{let n=F(()=>U().client.getMutationCache()),[r,o]=q(e(n),t?void 0:{equals:!1});return j(()=>{o(e(n));}),Ai.set(e,o),W(()=>{Ai.delete(e);}),r},z3="@tanstack/query-devtools-event",Zt=({type:e,queryHash:t,metadata:n})=>{let r=new CustomEvent(z3,{detail:{type:e,queryHash:t,metadata:n},bubbles:!0,cancelable:!0});window.dispatchEvent(r);},l1=(e,t)=>{let{colors:n,font:r,size:o,alpha:i,shadow:s,border:l}=$,a=(u,c)=>e==="light"?u:c;return {devtoolsBtn:t`
250
250
  z-index: 100000;
251
251
  position: fixed;
252
252
  padding: 4px;
@@ -1215,7 +1215,7 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
1215
1215
  opacity: 0.6;
1216
1216
  cursor: not-allowed;
1217
1217
  }
1218
- `}},_t=e=>l1("light",e),Ft=e=>l1("dark",e);uo(["click","mousedown","input"]);});var c1={};cn(c1,{default:()=>V3});var z3,V3,u1=Q(()=>{Pa();po();z3=e=>{let[t,n]=Oi({prefix:"TanstackQueryDevtools"}),r=Ii(),o=F(()=>{let i=t.theme_preference||Ri;return i!=="system"?i:r()});return x(ko.Provider,{value:e,get children(){return x(qi,{localStore:t,setLocalStore:n,get children(){return x(Io.Provider,{value:o,get children(){return x(s1,{localStore:t,setLocalStore:n})}})}})}})},V3=z3;});var d1={};cn(d1,{default:()=>K3});var N3,K3,f1=Q(()=>{Pa();po();N3=e=>{let[t,n]=Oi({prefix:"TanstackQueryDevtools"}),r=Ii(),o=F(()=>{let i=t.theme_preference||Ri;return i!=="system"?i:r()});return x(ko.Provider,{value:e,get children(){return x(qi,{disabled:!0,localStore:t,setLocalStore:n,get children(){return x(Io.Provider,{value:o,get children(){return x(a1,{get children(){return x(ji,{localStore:t,setLocalStore:n,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},K3=N3;});var wr,Fo,Do,Lo,Wn,Ao,Sr,Cr,kr,Ir,Er,Oo,Pr,Ro,p1,g1,Tr,qo,zo,Vo,Yn,No,$r,Mr,_r,Fr,Dr,Ko,Lr,Ar,Bo,m1,h1,Ta=Q(()=>{po();g1=(p1=class{constructor(e){ke(this,wr);ke(this,Fo);ke(this,Do);ke(this,Lo);ke(this,Wn,!1);ke(this,Ao);ke(this,Sr);ke(this,Cr);ke(this,kr);ke(this,Ir);ke(this,Er);ke(this,Oo);ke(this,Pr);ke(this,Ro);let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:l,errorTypes:a,styleNonce:u,shadowDOMTarget:c,hideDisabledQueries:d}=e;Se(this,wr,q(t)),Se(this,Do,n),Se(this,Lo,r),Se(this,Fo,o),Se(this,Ao,u),Se(this,Sr,c),Se(this,Cr,q(i)),Se(this,kr,q(s)),Se(this,Ir,q(l)),Se(this,Er,q(a)),Se(this,Oo,q(d));}setButtonPosition(e){ee(this,Cr)[1](e);}setPosition(e){ee(this,kr)[1](e);}setInitialIsOpen(e){ee(this,Ir)[1](e);}setErrorTypes(e){ee(this,Er)[1](e);}setClient(e){ee(this,wr)[1](e);}mount(e){if(ee(this,Wn))throw new Error("Devtools is already mounted");let t=Os(()=>{let n=this,[r]=ee(this,Cr),[o]=ee(this,kr),[i]=ee(this,Ir),[s]=ee(this,Er),[l]=ee(this,Oo),[a]=ee(this,wr),u;return ee(this,Pr)?u=ee(this,Pr):(u=As(()=>Promise.resolve().then(()=>(u1(),c1))),Se(this,Pr,u)),Ks(ee(this,Ao),ee(this,Sr)),x(u,re({get queryFlavor(){return ee(n,Do)},get version(){return ee(n,Lo)},get onlineManager(){return ee(n,Fo)},get shadowDOMTarget(){return ee(n,Sr)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get hideDisabledQueries(){return l()}}))},e);Se(this,Wn,!0),Se(this,Ro,t);}unmount(){var e;if(!ee(this,Wn))throw new Error("Devtools is not mounted");(e=ee(this,Ro))==null||e.call(this),Se(this,Wn,!1);}},wr=new WeakMap,Fo=new WeakMap,Do=new WeakMap,Lo=new WeakMap,Wn=new WeakMap,Ao=new WeakMap,Sr=new WeakMap,Cr=new WeakMap,kr=new WeakMap,Ir=new WeakMap,Er=new WeakMap,Oo=new WeakMap,Pr=new WeakMap,Ro=new WeakMap,p1),h1=(m1=class{constructor(e){ke(this,Tr);ke(this,qo);ke(this,zo);ke(this,Vo);ke(this,Yn,!1);ke(this,No);ke(this,$r);ke(this,Mr);ke(this,_r);ke(this,Fr);ke(this,Dr);ke(this,Ko);ke(this,Lr);ke(this,Ar);ke(this,Bo);let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:l,errorTypes:a,styleNonce:u,shadowDOMTarget:c,onClose:d,hideDisabledQueries:p}=e;Se(this,Tr,q(t)),Se(this,zo,n),Se(this,Vo,r),Se(this,qo,o),Se(this,No,u),Se(this,$r,c),Se(this,Mr,q(i)),Se(this,_r,q(s)),Se(this,Fr,q(l)),Se(this,Dr,q(a)),Se(this,Ko,q(p)),Se(this,Lr,q(d));}setButtonPosition(e){ee(this,Mr)[1](e);}setPosition(e){ee(this,_r)[1](e);}setInitialIsOpen(e){ee(this,Fr)[1](e);}setErrorTypes(e){ee(this,Dr)[1](e);}setClient(e){ee(this,Tr)[1](e);}setOnClose(e){ee(this,Lr)[1](()=>e);}mount(e){if(ee(this,Yn))throw new Error("Devtools is already mounted");let t=Os(()=>{let n=this,[r]=ee(this,Mr),[o]=ee(this,_r),[i]=ee(this,Fr),[s]=ee(this,Dr),[l]=ee(this,Ko),[a]=ee(this,Tr),[u]=ee(this,Lr),c;return ee(this,Ar)?c=ee(this,Ar):(c=As(()=>Promise.resolve().then(()=>(f1(),d1))),Se(this,Ar,c)),Ks(ee(this,No),ee(this,$r)),x(c,re({get queryFlavor(){return ee(n,zo)},get version(){return ee(n,Vo)},get onlineManager(){return ee(n,qo)},get shadowDOMTarget(){return ee(n,$r)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get hideDisabledQueries(){return l()},get onClose(){return u()}}))},e);Se(this,Yn,!0),Se(this,Bo,t);}unmount(){var e;if(!ee(this,Yn))throw new Error("Devtools is not mounted");(e=ee(this,Bo))==null||e.call(this),Se(this,Yn,!1);}},Tr=new WeakMap,qo=new WeakMap,zo=new WeakMap,Vo=new WeakMap,Yn=new WeakMap,No=new WeakMap,$r=new WeakMap,Mr=new WeakMap,_r=new WeakMap,Fr=new WeakMap,Dr=new WeakMap,Ko=new WeakMap,Lr=new WeakMap,Ar=new WeakMap,Bo=new WeakMap,m1);});function y1(e){let t=useQueryClient(e.client),n=Nt.useRef(null),{buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:l,shadowDOMTarget:a,hideDisabledQueries:u}=e,[c]=Nt.useState(new g1({client:t,queryFlavor:"React Query",version:"5",onlineManager:onlineManager,buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:l,shadowDOMTarget:a,hideDisabledQueries:u}));return Nt.useEffect(()=>{c.setClient(t);},[t,c]),Nt.useEffect(()=>{r&&c.setButtonPosition(r);},[r,c]),Nt.useEffect(()=>{o&&c.setPosition(o);},[o,c]),Nt.useEffect(()=>{c.setInitialIsOpen(i||!1);},[i,c]),Nt.useEffect(()=>{c.setErrorTypes(s||[]);},[s,c]),Nt.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount();}),[c]),jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})}var v1=Q(()=>{"use client";Ta();});function b1(e){let t=useQueryClient(e.client),n=Nt.useRef(null),{errorTypes:r,styleNonce:o,shadowDOMTarget:i,hideDisabledQueries:s}=e,[l]=Nt.useState(new h1({client:t,queryFlavor:"React Query",version:"5",onlineManager:onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:o,shadowDOMTarget:i,onClose:e.onClose,hideDisabledQueries:s}));return Nt.useEffect(()=>{l.setClient(t);},[t,l]),Nt.useEffect(()=>{l.setOnClose(e.onClose??(()=>{}));},[e.onClose,l]),Nt.useEffect(()=>{l.setErrorTypes(r||[]);},[r,l]),Nt.useEffect(()=>(n.current&&l.mount(n.current),()=>{l.unmount();}),[l]),jsx("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:n})}var x1=Q(()=>{"use client";Ta();});var w1,S1=Q(()=>{"use client";v1();x1();w1=process.env.NODE_ENV!=="development"?function(){return null}:y1,process.env.NODE_ENV!=="development"?function(){return null}:b1;});var C1,k1=Q(()=>{S1();C1=({children:e})=>{let[t]=useState(()=>new QueryClient({defaultOptions:{queries:{staleTime:3e5,gcTime:6e5,retry:3,retryDelay:n=>Math.min(1e3*2**n,3e4),refetchOnWindowFocus:!1,refetchOnReconnect:!0},mutations:{retry:1,retryDelay:1e3}}}));return jsxs(QueryClientProvider,{client:t,children:[e,process.env.NODE_ENV==="development"&&jsx(w1,{initialIsOpen:!1})]})};});var n4,I1,E1=Q(()=>{n4={global:{noEntitlement:"No permission, please contact the administrator.",name:"Name",creationTime:"Creation Time",operation:"Operation",update:"Update",edit:"Edit",delete:"Delete",selectAll:"Select All",game:"Game",user:"User",role:"Role",username:"Username",password:"Password",label:"Label",method:"Method",route:"Route",request:"Request",response:"Response",add:"Add",signIn:"Sign In",projectGroup:"Project Group",view:"View"},SignIn:{title:"Sign In Method",thirdParty:"Third party sign in",signInWithIDass:"Sign in with IDass",unregistered:"You are not yet registered on the platform, please contact the administrator",welcome:"Welcome"},NotFound:{subTitle:"The page you visited does not exist",buttonText:"Return to homepage"},FilterFormWrapper:{confirmText:"Search",resetText:"Reset"},FormModal:{confirmText:"Confirm",cancelText:"Cancel"},GameSelect:{label:"Current Game",placeholder:"Please select a game"},RequireGame:{description:"Please select a game"},UserWidget:{signOutText:"Sign Out"},User:{createTitle:"Create User",createSuccessfully:"User created successfully",updateTitle:"Update User",updateSuccessfully:"User updated successfully",deleteTitle:"Delete User",deleteContent:"Are you sure you want to delete user <%= user %>?",deleteSuccessfully:"User deleted successfully"},Role:{createTitle:"Create Role",createSuccessfully:"Role created successfully",updateTitle:"Update Role",updateSuccessfully:"Role updated successfully",deleteTitle:"Delete Role",deleteContent:"Are you sure you want to delete role <%= role %>?",deleteSuccessfully:"Role deleted successfully"},PermissionList:{failedDescription:"Failed to get permission list",baseSectionTitle:"Platform Basic Permissions",gameSectionTitle:"Game Permissions",gameSectionDescription:"Please select a game first",gameSelectPlaceholder:"Please select a game first",removeText:"Remove",addText:"Add Game Permissions"},RoleDetail:{title:"Role Details"},InfiniteList:{loadingText:"Loading...",reachEndText:"You've reached the end",loadMoreText:"Load more"}},I1=n4;});var $a,Xn,Zn,Ma,Kt,yn=Q(()=>{$a="https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1",Xn="App-ID",Zn="/console/",Ma=(r=>(r.V1="v1",r.V2="v2",r.V3="v3",r))(Ma||{}),Kt="*";});var P1,T1=Q(()=>{E1();P1=e=>({locale:I1,gameApiV2:!1,isGlobal:!1,signInPath:"/sign_in",mainPagePath:"/",permissionVersion:"v1",setContext(t){e(n=>({...n,...t}));}});});var $1,M1=Q(()=>{$1=e=>({setGameId:t=>{e({gameId:t});}});});var _1,F1=Q(()=>{_1=(e,t)=>({getUser:()=>{let n=t().token;if(n)try{return jwtDecode(n)}catch{return null}return null},setToken:n=>e({token:n})});});var D1,L1=Q(()=>{Jr();T1();M1();F1();D1=e=>createStore()(persist((...t)=>{let[,n,r]=t,o=()=>{n().setToken(""),r.persist.clearStorage();};return {..._1(...t),...$1(...t),...P1(...t),clearToken:o,...e}},{name:"toolkits",storage:createJSONStorage(()=>Fl),partialize:t=>({token:t.token,gameId:t.gameId,collapsed:t.collapsed})}));});function pe(e){let t=useContext(_a);if(!t)throw new Error("Missing ToolkitsProvider in the tree");return useStore(t,e||(n=>n))}var _a,Fa,at,d4,O1=Q(()=>{k1();L1();_a=createContext(null);Fa=e=>{let{children:t,...n}=e,r=useRef(),o=useContext(_a)?.getState();if(r.current||(r.current=D1({...o,...n})),!r.current.getState().signInPath)throw new Error('ToolkitsProvider: \u8BF7\u914D\u7F6E "signInPath"');return jsx(C1,{children:jsx(_a.Provider,{value:r.current,children:jsx(App,{children:t})})})},at=(e,t)=>{let n=r=>jsx(Fa,{...t,children:jsx(e,{...r})});return n.displayName=`withContext(${e.displayName||e.name||"Component"})`,n};process.env.NODE_ENV!=="production"&&(Fa.displayName="ToolkitsProvider");d4=Fa;});var Ve=Q(()=>{O1();});function Z(){let e=pe(n=>n.locale);return {t:useMemo(()=>(n,r)=>has(e,n)?template(get(e,n))(r):n,[e])}}var R1=Q(()=>{Ve();});var Oe=Q(()=>{R1();});var P4,Ho,U1=Q(()=>{Oe();P4=e=>{let{extras:t,isConfirming:n,onConfirm:r,onReset:o,children:i,buttonsAlign:s="left",showReset:l}=e,{t:a}=Z(),{token:{colorFillAlter:u,lineWidth:c,lineType:d,colorBorder:p,borderRadiusLG:m}}=theme.useToken();return jsx("div",{style:{maxWidth:"none",background:u,borderWidth:c,borderStyle:d,borderColor:p,borderRadius:m,padding:24,marginBottom:24},children:jsxs("div",{className:`flex ${s==="bottom"?"flex-col":"flex-row"}`,children:[jsx("div",{className:`${s==="left"?"flex-grow-0":"flex-1"}`,children:i}),jsx("div",{className:`${s==="bottom"?"text-end":"text-start"} ml-4`,children:jsxs(Space,{children:[jsx(Button,{type:"primary",disabled:n,onClick:r,children:a("FilterFormWrapper.confirmText")}),t?.map(g=>jsx(Fragment$1,{children:g.children},g.key)),l&&jsx(Button,{onClick:o,children:a("FilterFormWrapper.resetText")})]})})]})})},Ho=P4;});var Yi=Q(()=>{U1();});function D4(e){let t=document.createElement("div"),n=createRoot(t);return new Promise(r=>{setTimeout(()=>{flushSync(()=>{n.render(e);}),r(t.innerHTML);});})}var F4,L4,Jn,H1=Q(()=>{F4=e=>{let t=/(<[^>]*>)/;return e.split(t).filter(n=>n!=="")};L4=e=>{let{texts:t,children:n}=e,[r,o]=useState("");return useEffect(()=>{D4(n).then(i=>{let s=F4(i);for(let l of t)for(let a=0;a<s.length;a++)s[a]=s[a].replace(String(l),`<span style='color: #DC143C;'>${l}</span>`);o(s.join(""));});},[n,t]),jsx("div",{dangerouslySetInnerHTML:{__html:r}})},Jn=L4;});var Qo=Q(()=>{H1();});var La,Zi,R4,j1,q4,z4,V4,N4,me,W1=Q(()=>{Ve();yn();La=[0,1,200],Zi={OK:200,UNAUTHORIZED:401,FORBIDDEN:403,UNREGISTERED:412},R4=3e4,j1=e=>!e||typeof e!="object"?"Unknown error":e.msg||e.message||e.error||"Unknown error",q4=e=>{let{value:t,allowedCodes:n}=e;return t==null||typeof t!="number"?!1:n.includes(t)},z4=(e,t)=>t>=Zi.OK&&t<300?!0:!e||typeof e!="object"?!1:[{field:"code",value:e.code,allowedCodes:La},{field:"status",value:e.status,allowedCodes:La},{field:"errno",value:e.errno,allowedCodes:La}].some(q4),V4=async(e,t)=>{switch(t){case"blob":return e.blob();case"text":return e.text();case"arrayBuffer":return e.arrayBuffer();case"formData":return e.formData();case"json":default:return e.json()}},N4=e=>async(t,n,r)=>{if(e==="blob"||e==="arrayBuffer"||e==="text"||e==="formData")return r;let o;try{o=await r.clone().json();}catch{return r}if(z4(o,r.status)){let l=o.data!==void 0?o.data:o;return new Response(JSON.stringify(l),{status:r.status,statusText:r.statusText,headers:r.headers})}let i=j1(o);notification.error({message:"Request failed",description:i});let s=new Error(i);throw s.response=r,s.data=o,s},me=e=>{let t=pe(),{token:n,isGlobal:r,gameId:o,permissionVersion:i,signInPath:s,clearToken:l}=t,a=useCallback(()=>{l(),s&&(window.location.href=s);},[l,s]),u=useCallback(()=>{if(l(),s){let C=new URL(s,window.location.origin);C.searchParams.set("unregistered","true"),window.location.href=C.toString();}},[l,s]),c=useCallback(()=>{notification.error({message:"\u8BBF\u95EE\u88AB\u7981\u6B62",description:"\u60A8\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u6B64\u8D44\u6E90\u3002"});},[]),d=useCallback((C,k)=>{switch(C){case Zi.UNAUTHORIZED:a();break;case Zi.UNREGISTERED:u();break;case Zi.FORBIDDEN:c();break;default:{let E=j1(k)||`HTTP ${C} Error`;notification.error({message:"Request failed",description:E});break}}},[a,u,c]),p=useMemo(()=>O4.create({prefixUrl:e,timeout:R4,headers:{Accept:"application/json","Content-Type":"application/json"},hooks:{beforeRequest:[k=>{n&&k.headers.set("Authorization",`Bearer ${n}`),!k.headers.has(Xn)&&i!=="v1"&&(r||!o?k.headers.set(Xn,"global"):k.headers.set(Xn,encodeURIComponent(String(o))));}],beforeError:[async k=>{let{response:E}=k;if(E){let I=E.status,P;try{let V=E.headers.get("content-type")||"";(V.includes("application/json")||V.startsWith("text/"))&&(P=await E.clone().json());}catch{}d(I,P);}else notification.error({message:"Network Error",description:k.message||"Network request failed"});return k}]}}),[e,n,r,o,i,d]),m=useCallback(async(C,k,E,I)=>{let{responseType:P,...V}=I||{},L={...V,hooks:{...V.hooks,afterResponse:[...V.hooks?.afterResponse||[],N4(P)]}},H;return E?H=await p(k,{method:C,json:E,...L}):H=await p(k,{method:C,...L}),V4(H,P)},[p]),f=useCallback((C,k)=>m("GET",C,void 0,k),[m]),g=useCallback((C,k,E)=>m("POST",C,k,E),[m]),v=useCallback((C,k,E)=>m("PUT",C,k,E),[m]),h=useCallback((C,k)=>m("DELETE",C,void 0,k),[m]),y=useCallback((C,k,E)=>m("PATCH",C,k,E),[m]),b=useCallback((C,k)=>m("OPTIONS",C,void 0,k),[m]),w=useCallback((C,k)=>m("HEAD",C,void 0,k),[m]),S=useCallback(C=>{let{url:k,...E}=C;return m(E.method||"GET",k,void 0,E)},[m]);return useMemo(()=>({get:f,post:g,put:v,delete:h,patch:y,options:b,head:w,request:S,instance:p}),[f,g,v,h,y,b,w,S,p])};});var Bt=Q(()=>{W1();});var ie,Dn=Q(()=>{ie={permissions:{check:(e,t)=>["permissions","check",e,t],allPermissions:["permissions","all"],allPermissionsV2:["permissions","allV2"]},users:{all:["users"],detail:e=>["users","detail",e],create:["users","create"],update:["users","update"],delete:["users","delete"]},roles:{all:["roles"],detail:(e,t)=>["roles","detail",e,t],create:e=>["roles","create",e],update:e=>["roles","update",e],delete:["roles","delete"]},menus:{all:["menus"],navbar:e=>["menus","navbar",e],detail:e=>["menus","detail",e],create:["menus","create"],update:["menus","update"],delete:["menus","delete"]},enums:{gameGroups:["enums","gameGroups"],gameIds:e=>["enums","gameIds",e]}};});function Dt(e,t){let n=me(),{permissionVersion:r}=pe(),o=r!=="v1"?"/api/usystem/user/checkV2":"/api/usystem/user/check",i=typeof e<"u"?typeof e=="string"?[e]:e:[],s=r!=="v1"?"v2":"v1",{data:l,...a}=useQuery({queryKey:i.length>0?ie.permissions.check(i,s):["permissions","disabled"],queryFn:()=>n.post(o,{json:{permissions:i},...t}),enabled:i.length>0}),u=!0;return typeof e=="string"?u=l?.has_all?!0:l?.[e]??!1:Array.isArray(e)&&e.length>0&&(u=i.reduce((c,d)=>(c[d]=l?.has_all?!0:l?.[d]??!1,c),{})),{...a,data:u}}function Ji(){let{signInPath:e,gameId:t}=pe(),n=me();return useQuery({queryKey:ie.menus.navbar(t?String(t):void 0),queryFn:()=>n.get("/api/usystem/menu/navbar",{headers:{[Xn]:t?encodeURIComponent(String(t)):"global"}}),enabled:window.location.pathname!==e})}var Ln,St=Q(()=>{Ve();yn();Bt();Dn();Ln=()=>{let{gameApiV2:e,permissionVersion:t}=pe(),n=me(),r=t!=="v1"?e?"/api/game/list":"/api/usystem/game/all":null;return useQuery({queryKey:ie.enums.gameGroups,queryFn:async()=>{if(!r)return [];let o={headers:{[Xn]:"global"}};return e?(await n.get(r,o))?.list??[]:await n.get(r,o)??[]},enabled:!!r,staleTime:1/0})};});var Na,Ka=Q(()=>{Na=create((e,t)=>({open:new Map,usedIds:new Set,isOpen:n=>t().open.get(n)??!1,show(n){e({open:new Map(t().open).set(n,!0)});},hide(n){e({open:new Map(t().open).set(n,!1)});},hideAll(){e({open:new Map});},checkUniqueness(n){let{usedIds:r}=t();return !r.has(n)},registerIds(n){let{usedIds:r}=t();return r.has(n)?!1:(e({usedIds:new Set(r).add(n)}),!0)},cleanup(n){let{open:r,usedIds:o}=t(),i=new Map(r),s=new Set(o);i.delete(n),s.delete(n),e({open:i,usedIds:s});}}));});function Ba(e){let{content:t,onConfirm:n,afterOpen:r,afterClose:o,...i}=e,s=useMemo(()=>ii(),[]),{show:l,hide:a,isOpen:u,cleanup:c}=Na();useEffect(()=>()=>{c(s);},[s,c]);let d=u(s),[p,m]=useState(!1),f=typeof t=="function",g=useCallback(async()=>{l(s),await r?.();},[s,l,r]),v=useCallback(()=>{a(s);},[s,a]),h=useCallback(async()=>{v(),await o?.();},[v,o]),y=useCallback(async()=>{try{m(!0),await n?.(),v(),await o?.();}catch(w){throw console.error("Modal confirm error:",w),w}finally{m(!1);}},[n,v,o]),b=jsx(Modal,{...i,open:d,confirmLoading:p,onOk:y,onCancel:h,children:f?t({hide:v}):t});return {id:s,show:g,hide:v,modal:b}}var Ga=Q(()=>{Jr();Ka();});function bn(e){let{content:t,form:n,formProps:r,onConfirm:o,onSuccess:i,afterClose:s,...l}=e,[a,u]=useState({}),[c]=Form.useForm();c=n||c;let d=typeof t=="function",{id:p,show:m,hide:f,modal:g}=Ba({...l,content:h=>jsx(Form,{...r,form:c,children:d?t(a,h):t}),onConfirm:async()=>{try{let h=await c.validateFields();await o?.(h,a),i?.(),f();}catch(h){throw console.error("Form validation or submission error:",h),h}},afterClose:()=>{s?.(c);}}),v=useCallback(h=>{let{initialValues:y,extraValues:b}=h||{};b&&u(b),y&&c.setFieldsValue(y),m();},[c,m]);return {id:p,show:v,hide:f,modal:g}}var g0=Q(()=>{Ga();});var is=Q(()=>{g0();Ga();Ka();});var u6,Ct,h0=Q(()=>{Oe();St();u6=e=>{let{children:t,code:n,showLoading:r,disabled:o,config:i,...s}=e,l=n?Array.isArray(n)?n:[n]:[],{data:a,isLoading:u}=Dt(l,i),{t:c}=Z();return u?jsx(Button,{loading:r,disabled:!r,...s,children:t}):typeof a=="boolean"||a&&Object.values(a).some(Boolean)?jsx(Button,{disabled:o,...s,children:t}):jsx(Tooltip,{defaultOpen:!1,title:c("global.noEntitlement"),children:jsx(Button,{disabled:!0,...s,children:t})})},Ct=u6;});var Vr=Q(()=>{h0();});var m6,g6,lt,as=Q(()=>{m6=()=>create()(devtools(subscribeWithSelector((e,t)=>({instances:new Map,registerInstance(n,r,o,i){e(s=>{let l=s.instances.get(n);if(l){let c={...l,refetch:i},d=new Map(s.instances);return d.set(n,c),{instances:d}}let a={id:n,url:r,queryKey:o,payload:{page:1,size:10,formValue:{}},refetch:i},u=new Map(s.instances);return u.set(n,a),{instances:u}});},unregisterInstance(n){e(r=>{let o=new Map(r.instances);return o.delete(n)?{instances:o}:r});},updatePayload(n,r){e(o=>{let i=o.instances.get(n);if(!i)return o;let s={...i.payload,...r};if(!isEqual(i.payload,s)){let l={...i,payload:s},a=new Map(o.instances);return a.set(n,l),{instances:a}}return o});},getPayload(n){return t().instances.get(n)?.payload??{page:1,size:10,formValue:{}}},async refetch(n,r){let o=t().instances.get(n);if(!o){console.warn(`QueryList instance with id "${n}" not found`);return}if(r){let i=o.payload,s={...i,...r};isEqual(i,s)||t().updatePayload(n,r);}try{await o.refetch();}catch(i){throw console.error(`Failed to refetch QueryList instance "${n}":`,i),i}},getInstance(n){return t().instances.get(n)},getAllInstances(){return Array.from(t().instances.values())}})),{name:"query-list-store"})),g6=m6(),lt=g6;});var w0,k6,I6,E6,P6,T6,$6,M6,xn,S0=Q(()=>{Yi();Oe();Bt();St();as();w0=(o=>(o[o.Confirm=0]="Confirm",o[o.Reset=1]="Reset",o[o.Jump=2]="Jump",o[o.Init=3]="Init",o))(w0||{}),k6=5*60*1e3,I6=30*1e3,E6={display:"flex",justifyContent:"center",alignItems:"center",height:300},P6=0,T6=()=>`queryList_${Date.now()}_${++P6}`,$6=(e,t)=>{let{t:n}=Z(),{form:r,identifier:o,code:i,onePage:s,buttonsAlign:l,showReset:a,defaultSize:u=10,refreshInterval:c=0,tableExtra:d,renderForm:p,afterSuccess:m,afterError:f,footer:g,pageSizeOptions:v,request:h,dataAdapter:y,...b}=e,[w]=Form.useForm(r),S=useMemo(()=>o||T6(),[o]),C=useRef(3),{data:k,isLoading:E}=Dt(i),[I,P]=useState(!1),V=lt(),L=me(),H=useRef(!1),{page:K,size:oe=u,formValue:de}=V.getPayload(S),he={page:K,size:oe,formValue:de},xe=useMemo(()=>typeof h=="function"?h(he):h,[h,he]),{url:we,method:Pe="GET",body:qe,searchParams:Ee,headers:Re,cacheTime:_=k6,staleTime:Te=I6}=xe,le=useMemo(()=>({...de,...!s&&{page:K,size:oe}}),[de,s,K,oe]),Ue=useMemo(()=>qe??(Pe==="POST"?le:void 0),[qe,Pe,le]),X=useMemo(()=>Ee??(Pe==="GET"?le:void 0),[Ee,Pe,le]),He=Re,Ae=useRef(!1),mt=useMemo(()=>{let J=["queryList",we,S];return !k||!I?[...J,"disabled"]:[...J,K,oe,de]},[we,S,k,I,K,oe,de]),{data:_e,isLoading:ct,refetch:ut}=useQuery({queryKey:mt,queryFn:async()=>{try{let J={method:Pe,searchParams:X,headers:He};Ue&&(Ue instanceof FormData?J.body=Ue:J.json=Ue);let ne=await L.request({url:we,...J});return Ae.current=!0,m?.(C.current,w,ne),ne}catch(J){let ne=J instanceof Error?J:new Error(String(J));throw f?.(ne,C.current,w),ne}},enabled:k&&I,retry:(J,ne)=>!(J>=3||ne?.message?.includes("401")),retryDelay:J=>Math.min(1e3*2**J,3e4),refetchOnWindowFocus:!1,refetchInterval:Ae.current?c:0,gcTime:_,staleTime:Te}),Ze=useMemo(()=>{let J=y,ne={total:_e?.total,items:_e?.list};return typeof J=="function"?{...ne,...J(w,_e)}:{...ne,...J}},[y,w,_e]);useEffect(()=>(lt.getState().registerInstance(S,we,mt,ut),()=>{lt.getState().unregisterInstance(S);}),[S,we,mt,ut]);let{dataSource:Je,total:dt}=useMemo(()=>({dataSource:Ze.items,total:Ze.total}),[Ze.items,Ze.total]),O=useMemo(()=>s?!1:{pageSizeOptions:v,showSizeChanger:!0,showQuickJumper:!0,current:K,pageSize:oe,total:dt,onChange:async(J,ne)=>{C.current=2,lt.getState().refetch(S,{page:J,size:ne});}},[s,v,K,oe,dt,S]),Y=useCallback(async()=>{C.current=0;try{await w.validateFields(),P(!0),lt.getState().refetch(S,{page:1,formValue:w.getFieldsValue()});}catch{P(!1);}},[w,S]),ue=useCallback(async()=>{C.current=1,w.resetFields();try{await w.validateFields({validateOnly:!0}),P(!0),lt.getState().refetch(S,{page:1,formValue:w.getFieldsValue()});}catch{P(!1);}},[w,S]),ye=typeof p=="function"?jsx(Ho,{showReset:a,buttonsAlign:l,isConfirming:ct,onReset:ue,onConfirm:Y,children:cloneElement(p(w),{onKeyUp:J=>{J.key==="Enter"&&Y();}})}):jsx(Form,{form:w}),fe=useMemo(()=>typeof d=="function"?d(w,_e):d,[d,w,_e]),ve=useMemo(()=>g?()=>g(_e):void 0,[g,_e]);return useEffect(()=>{if(!k||H.current)return;let J=async()=>{try{w.resetFields();let At=await w.validateFields({validateOnly:!0});lt.getState().refetch(S,{page:1,formValue:At}),P(!0),H.current=!0;}catch{P(!1),H.current=!0;}},ne=requestAnimationFrame(()=>{Promise.resolve().then(J);});return ()=>{ne&&cancelAnimationFrame(ne);}},[k,S,w]),useImperativeHandle(t,()=>({data:_e,dataSource:Je,form:w,refetch:ut}),[_e,Je,w,ut]),E?jsx(Spin,{style:E6}):k?jsxs("div",{children:[ye,fe,jsx(Table,{...b,dataSource:Je,loading:ct,pagination:O,footer:ve})]}):jsx(Result,{status:403,subTitle:n("global.noEntitlement")})},M6=forwardRef($6),xn=M6;});var Nr=Q(()=>{S0();as();});var ja,C0=Q(()=>{ja="/api/usystem/menu/list";});function k0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.menus.create,mutationFn:n=>e.post("/api/usystem/menu/set",{...n,id:0,is_model:!0}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.menus.all}),t.invalidateQueries({queryKey:ie.menus.navbar()});}})}function I0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.menus.update,mutationFn:n=>e.post("/api/usystem/menu/set",{...n,is_model:!0}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.menus.all}),t.invalidateQueries({queryKey:ie.menus.navbar()});}})}function E0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.menus.delete,mutationFn:n=>e.post("/api/usystem/menu/delete",null,{searchParams:{id:n}}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.menus.all}),t.invalidateQueries({queryKey:ie.menus.navbar()});}})}var Xa=Q(()=>{Bt();Dn();});var ls=Q(()=>{C0();Xa();});var T0={};cn(T0,{default:()=>B6});var K6,B6,$0=Q(()=>{Qo();Oe();Nr();Ve();ls();Xa();St();K6=at(()=>{let{t:e}=Z(),{message:t}=App.useApp(),n=E0(),r=lt(),{refetch:o}=Ji(),i=useNavigate();return jsx(Fragment,{children:jsx(Card,{title:"\u83DC\u5355\u7BA1\u7406",extra:jsx(Button,{type:"primary",onClick:()=>{i("./create");},children:"\u521B\u5EFA\u83DC\u5355\u9879"}),children:jsx(xn,{identifier:"menu-item-list",onePage:!0,code:"9900001",rowKey:"id",columns:[{title:"\u83DC\u5355\u540D\u79F0",dataIndex:"category",key:"category"},{title:"\u524D\u7AEF\u8DEF\u7531",dataIndex:"front_route"},{title:"Order",dataIndex:"order"},{title:"Is Common",dataIndex:"is_common",key:"is_common",render:l=>l?"\u662F":"\u5426"},{title:"\u6A21\u677F\u540D\u79F0",dataIndex:"model_name",key:"model_name"},{title:"\u64CD\u4F5C",key:"action",width:150,align:"center",render(l,a){return a.is_model?jsxs(Space,{size:"small",children:[jsx(Button,{type:"link",onClick:()=>{i(`./update/${a.id}`);},children:e("global.update")}),jsx(Popconfirm,{title:"\u5220\u9664\u83DC\u5355",placement:"topRight",description:jsxs(Jn,{texts:[a.category],children:["\u786E\u5B9A\u8981\u5220\u9664\u83DC\u5355 ",a.category," \u5417\uFF1F"]}),onConfirm:async()=>{await n.mutate(a.id),r.getAllInstances().filter(u=>u.url===ja).forEach(u=>r.refetch(u.id)),o(),t.success("\u5220\u9664\u6210\u529F");},children:jsx(Button,{danger:!0,type:"link",size:"small",children:e("global.delete")})})]}):null}}],request:{url:ja,method:"GET"},dataAdapter:(l,a)=>({items:a})})})})},{isGlobal:!0}),B6=K6;});var D0={};cn(D0,{default:()=>X6});var Y6,X6,L0=Q(()=>{Ve();yn();ls();Y6=at(()=>{let{message:e}=App.useApp(),[t]=Form.useForm(),n=useNavigate(),{mutate:r}=k0();return jsx(Card,{title:"\u521B\u5EFA\u83DC\u5355\u9879",children:jsxs(Form,{scrollToFirstError:!0,form:t,labelCol:{flex:"120px"},initialValues:{is_common:!1,is_model:!1,order:0},onFinish:async i=>{let{permissions:s,front_route:l,...a}=i;await r({...a,front_route:Zn+l,permissions:s?JSON.parse(s):void 0}),e.success("\u521B\u5EFA\u6210\u529F",.8,()=>n("..",{relative:"route"}));},children:[jsx(Form.Item,{label:"\u83DC\u5355\u9879\u540D\u79F0",name:"category",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:"\u524D\u7AEF\u8DEF\u7531",name:"front_route",rules:[{required:!0}],children:jsx(Input,{prefix:Zn})}),jsx(Form.Item,{label:"\u6A21\u677F\u540D\u79F0",name:"model_name",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:"Is Common",name:"is_common",rules:[{required:!0}],valuePropName:"checked",children:jsx(Switch,{})}),jsx(Form.Item,{label:"Order",name:"order",children:jsx(InputNumber,{className:"w-full"})}),jsx(Form.Item,{label:"\u63A5\u53E3\u89C4\u5219",name:"permissions",children:jsx(Editor,{theme:"vs-dark",height:"300px",language:"json",options:{minimap:{enabled:!1}}})}),jsx(Form.Item,{label:"Schema",name:"scheme",rules:[{required:!0}],children:jsx(Editor,{theme:"vs-dark",height:"600px",language:"json",options:{minimap:{enabled:!1}}})}),jsx(Form.Item,{label:"Ext",name:"ext",children:jsx(Input.TextArea,{rows:5})}),jsx(Form.Item,{children:jsxs("div",{className:"flex justify-center gap-8",children:[jsx(Button,{type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"}),jsx(Button,{onClick:()=>{n("..",{relative:"path"});},children:"\u53D6\u6D88"})]})})]})})},{isGlobal:!0}),X6=Y6;});var q0={};cn(q0,{default:()=>av});var sv,av,z0=Q(()=>{Ve();yn();ls();Bt();Dn();St();sv=at(()=>{let{message:e}=App.useApp(),[t]=Form.useForm(),n=useNavigate(),{mutate:r}=I0(),o=useParams(),{refetch:i}=Ji(),s=me(),{data:l,isLoading:a}=useQuery({queryKey:ie.menus.detail(Number(o.id)),queryFn:()=>s.get(`/api/usystem/menu/info?id=${o.id}`),enabled:!!o.id}),u=async c=>{let{permissions:d,front_route:p,...m}=c;await r({...m,permissions:d?JSON.parse(d):void 0,front_route:Zn+p,id:+o.id}),i(),e.success("\u66F4\u65B0\u6210\u529F",.8,()=>n("../..",{relative:"route"}));};return useEffect(()=>{let{permissions:c,front_route:d,...p}=l??{},m=JSON.stringify(c||[],null,2),f=d?.replace(Zn,"");t.setFieldsValue({...p,permissions:m,front_route:f});},[l,t]),jsx(Card,{title:"\u66F4\u65B0\u83DC\u5355\u9879",loading:a,children:jsxs(Form,{scrollToFirstError:!0,form:t,labelCol:{flex:"120px"},initialValues:{is_common:!1,is_model:!1,order:0},onFinish:u,children:[jsx(Form.Item,{label:"\u83DC\u5355\u9879\u540D\u79F0",name:"category",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:"\u524D\u7AEF\u8DEF\u7531",name:"front_route",rules:[{required:!0}],children:jsx(Input,{prefix:Zn})}),jsx(Form.Item,{label:"\u6A21\u677F\u540D\u79F0",name:"model_name",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:"Is Common",name:"is_common",rules:[{required:!0}],valuePropName:"checked",children:jsx(Switch,{})}),jsx(Form.Item,{label:"Order",name:"order",children:jsx(InputNumber,{className:"w-full"})}),jsx(Form.Item,{label:"\u63A5\u53E3\u89C4\u5219",name:"permissions",children:jsx(Editor,{theme:"vs-dark",height:"300px",language:"json",options:{minimap:{enabled:!1}}})}),jsx(Form.Item,{label:"Schema",name:"scheme",rules:[{required:!0}],children:jsx(Editor,{theme:"vs-dark",height:"600px",language:"json",options:{minimap:{enabled:!1}}})}),jsx(Form.Item,{label:"Ext",name:"ext",children:jsx(Input.TextArea,{rows:5})}),jsx(Form.Item,{children:jsxs("div",{className:"flex justify-center gap-8",children:[jsx(Button,{type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"}),jsx(Button,{onClick:()=>{n("../..",{relative:"path"});},children:"\u53D6\u6D88"})]})})]})})},{isGlobal:!0}),av=sv;});function fs(){let e=me();return useQuery({queryKey:ie.roles.all,queryFn:()=>e.get("/api/usystem/role/all")})}function B0(e){let t=pe(o=>o.permissionVersion),n=me(),r=t==="v2"?"v2":"v1";return useQuery({queryKey:ie.roles.detail(e,r),queryFn:()=>n.get(`/api/usystem/role/${r==="v2"?"infoV2":"info"}?name=${e}`)})}function G0(){let{permissionVersion:e}=pe(o=>o),t=me(),n=useQueryClient(),r=e==="v2"?"v2":"v1";return useMutation({mutationKey:ie.roles.create(r),mutationFn:({name:o,permissions:i})=>t.post(r==="v2"?"/api/usystem/role/createV2":"/api/usystem/role/create",{name:o,permissions:i}),onSuccess:()=>{n.invalidateQueries({queryKey:ie.roles.all});}})}function U0(){let{permissionVersion:e}=pe(o=>o),t=me(),n=useQueryClient(),r=e==="v2"?"v2":"v1";return useMutation({mutationKey:ie.roles.update(r),mutationFn:({id:o,name:i,permissions:s})=>t.post(r==="v2"?"/api/usystem/role/updateV2":"/api/usystem/role/update",{id:o,name:i,permissions:s}),onSuccess:()=>{n.invalidateQueries({queryKey:ie.roles.all});}})}function H0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.roles.delete,mutationFn:({id:n,name:r})=>e.post("/api/usystem/role/delete",{id:n,name:r}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.roles.all});}})}function rl(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.users.create,mutationFn:n=>e.post("/api/usystem/user/create",n),onSuccess:()=>{t.invalidateQueries({queryKey:ie.users.all});}})}function ol(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.users.update,mutationFn:n=>e.post("/api/usystem/user/update",n),onSuccess:()=>{t.invalidateQueries({queryKey:ie.users.all});}})}function Q0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.users.delete,mutationFn:({id:n,name:r})=>e.post("/api/usystem/user/delete",{id:n,name:r}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.users.all});}})}function j0(){let e=me();return useQuery({queryKey:ie.permissions.allPermissions,queryFn:()=>e.get("/api/usystem/user/allPermssions"),staleTime:1/0})}function W0(){let e=me();return useQuery({queryKey:ie.permissions.allPermissionsV2,queryFn:()=>e.get("/api/usystem/user/allPermssionsV2"),staleTime:1/0})}var Ur=Q(()=>{Ve();Bt();Dn();});var Tv,Xo,ll=Q(()=>{Oe();Tv=e=>{let{permissions:t,readonly:n,expand:r,value:o,onChange:i}=e,[s,l]=useState([]),[a,u]=useState({}),[c,d]=useState(o??[]),{t:p}=Z(),[,m]=useTransition(),f=useCallback(y=>{l(y);},[]),g=(y,b)=>{let w=[];return y?w=[...new Set(c.concat(b))]:(w=c.slice(),b.forEach(S=>{let C=w.findIndex(k=>k===S);C>-1&&w.splice(C,1);})),w},v=(y,b)=>{let w=g(y.target.checked,b);d(w),i?.(w);};useEffect(()=>{d(o??[]);},[o]),useEffect(()=>{r&&m(()=>{l((t??[]).map(({category:y})=>y));});},[r,t]),useEffect(()=>{let y=(t??[]).reduce((b,w)=>(b[w.category]=w.permissions.every(S=>c?.includes(S.value)),b),{});u(y);},[c,t]);let h=(t??[]).map(y=>({key:y.category,label:y.category,extra:!n&&jsx(Checkbox,{checked:a[y.category],onChange:b=>{v(b,y.permissions?.map(w=>w.value));},children:p("global.selectAll")}),children:jsx(Checkbox.Group,{style:{width:"100%"},value:c,disabled:n,children:jsx(Row,{gutter:[10,10],style:{width:"100%"},children:y.permissions?.map(b=>jsx(Col,{span:6,children:jsx(Checkbox,{value:b.value,onChange:w=>{v(w,[b.value]);},children:b.label})},b.value))})})}));return jsx(Collapse,{style:{width:"100%"},collapsible:"header",activeKey:s,items:h,onChange:f})},Xo=Tv;});var cl,Av,Ov,tf,nf=Q(()=>{Oe();St();Ur();ll();(({Text:cl}=Typography)),{Option:Av}=Select,Ov=e=>{let{expand:t=!0,value:n,readonly:r,onChange:o}=e,{data:i,isLoading:s,error:l}=W0(),{data:a,isLoading:u}=Ln(),[c,d]=useState([]),p=i?.filter(y=>y.is_common),m=i?.filter(y=>!y.is_common),f=s||u,{t:g}=Z();if(useEffect(()=>{let y=[];Object.keys(n??{}).forEach(b=>{b!=="global"&&y.push({gameId:b,permissions:n?.[b]??[]});}),d(y);},[n]),l)return jsx("div",{className:"flex justify-center",children:jsx(cl,{type:"danger",children:g("PermissionList.failedDescription")})});let v=()=>{d(y=>[...y,{gameId:"",permissions:[]}]);},h=y=>{d(b=>b.filter((w,S)=>S!==y));};return jsxs("div",{className:"flex flex-col w-full",children:[jsx("div",{className:"mb-12",children:jsx(Divider,{dashed:!0,children:g("PermissionList.baseSectionTitle")})}),jsx(Skeleton,{active:!0,loading:f,children:jsx(Xo,{value:n?.global,readonly:r,permissions:p,expand:t,onChange:y=>{o?.({...n,global:y});}})}),jsx("div",{className:"my-12",children:jsx(Divider,{dashed:!0,children:g("PermissionList.gameSectionTitle")})}),c.map((y,b)=>jsx(Card,{title:jsxs(Space,{children:[jsx(cl,{children:g("global.game")}),r?jsx(cl,{children:a?.find(w=>String(w.id)===y.gameId)?.name}):jsx(Select,{disabled:r,value:c[b].gameId||void 0,style:{width:"160px"},placeholder:g("PermissionList.gameSelectPlaceholder"),onChange:w=>{d(S=>{let C=S.slice();return C[b].gameId=w,C});},children:a?.map(w=>jsx(Av,{value:w.id,disabled:c.some(({gameId:S})=>S===String(w.id)),children:w.name},w.id))})]}),className:"mb-6",extra:!r&&jsx(Button,{type:"link",onClick:()=>{h(b);},children:g("PermissionList.removeText")}),children:c[b].gameId?jsx(Skeleton,{active:!0,loading:f,children:jsx(Xo,{value:n?.[c[b].gameId],readonly:r,expand:t,permissions:m,onChange:w=>{o?.({...n,[c[b].gameId]:w});}})}):jsx(Empty,{description:g("PermissionList.gameSectionDescription")})},b)),!r&&jsx(Button,{block:!0,type:"dashed",onClick:v,children:g("PermissionList.addText")})]})},tf=Ov;});var zv,Vv,rf,of=Q(()=>{Oe();Ur();ll();(({Text:zv}=Typography)),Vv=e=>{let{expand:t=!0,value:n,readonly:r,onChange:o}=e,{data:i,isLoading:s,error:l}=j0(),{t:a}=Z();return l?jsx("div",{className:"flex justify-center",children:jsx(zv,{type:"danger",children:a("PermissionList.failedDescription")})}):jsx(Skeleton,{active:!0,loading:s,children:jsx(Xo,{value:n,permissions:i,readonly:r,expand:t,onChange:o})})},rf=Vv;});var Nv,Qr,ul=Q(()=>{Ve();nf();of();Nv=e=>{let{value:t}=e;console.log("value",typeof t,t===null,JSON.stringify(t));let{permissionVersion:n}=pe();return n==="v2"?jsx(tf,{...e,value:t}):jsx(rf,{...e,value:t})},Qr=Nv;});var af=Q(()=>{ul();});var cf,gs,ff=Q(()=>{Oe();is();ul();Ur();cf=({onSuccess:e}={})=>{let{t}=Z(),{mutateAsync:n}=G0();return bn({title:t("Role.createTitle"),width:"50vw",formProps:{layout:"vertical"},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{addonBefore:"role_"})}),jsx(Form.Item,{name:"permissions",children:jsx(Qr,{})})]}),onConfirm:async r=>{await n({name:`role_${r.name}`,permissions:r.permissions}),e?.();}})},gs=({onSuccess:e}={})=>{let{t}=Z(),{mutateAsync:n}=U0();return bn({title:t("Role.updateTitle"),width:"50vw",formProps:{layout:"vertical"},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:!0,addonBefore:"role_"})}),jsx(Form.Item,{name:"permissions",children:jsx(Qr,{})})]}),onConfirm:async(r,o)=>{await n({id:o?.id,name:`role_${r.name}`,permissions:r.permissions}),e?.();}})};});var jv,Wv,hf,yf,dl,vf,bf,hs,xf=Q(()=>{Oe();is();yn();Bt();Dn();Ur();jv=e=>{let{onChange:t,...n}=e,r=me(),{data:o,isLoading:i}=useQuery({queryKey:ie.enums.gameGroups,queryFn:()=>r.get("/api/enum/get?enum=game_group&type=all")}),s=[{label:"\u901A\u7528",value:Kt}].concat(o?.map(a=>({label:a,value:a}))??[]);return jsx(Select,{...n,allowClear:!0,showSearch:!0,mode:"tags",optionFilterProp:"label",loading:i,options:s,onChange:a=>{last(a)===Kt?t?.([Kt]):first(a)===Kt?t?.(a.slice(1)):t?.(a);}})},Wv=e=>{let{groups:t,onChange:n,...r}=e,o=me(),{data:i,isLoading:s}=useQuery({queryKey:ie.enums.gameIds(t||[]),queryFn:()=>o.get(`/api/enum/game_group/get_game_ids?game_groups=${t?.join(",")}`).then(u=>u?.list),enabled:!!t?.length}),l=i?.map(u=>({label:u.name,value:u.id}));return jsx(Select,{...r,allowClear:!0,showSearch:!0,optionFilterProp:"label",mode:"tags",loading:s,options:l,onChange:u=>{last(u)===Kt?n?.([Kt]):first(u)===Kt?n?.(u.slice(1)):n?.(u);}})},hf=({onSuccess:e}={})=>{let{t}=Z(),{data:n,isLoading:r}=fs(),{mutateAsync:o}=rl();return bn({title:t("User.createTitle"),width:600,formProps:{autoComplete:"off",labelCol:{flex:"80px"}},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:t("global.role"),name:"roles",children:jsx(Select,{allowClear:!0,showSearch:!0,mode:"multiple",loading:r,optionFilterProp:"label",options:n?.map(i=>({label:i.name,value:i.name}))})})]}),onConfirm:async i=>{await o(i),e?.();}})},yf=({onSuccess:e}={})=>{let{t}=Z(),{data:n,isLoading:r}=fs(),{mutateAsync:o}=ol();return bn({title:t("User.updateTitle"),width:600,formProps:{autoComplete:"off",labelCol:{flex:"80px"}},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:!0})}),jsx(Form.Item,{label:t("global.role"),name:"roles",children:jsx(Select,{allowClear:!0,showSearch:!0,mode:"multiple",loading:r,optionFilterProp:"label",options:n?.map(i=>({label:i.name,value:i.name}))})})]}),onConfirm:async(i,s)=>{await o({...i,id:s?.id}),e?.();}})},{Text:dl}=Typography,vf=({isCreate:e})=>{let{t}=Z(),{data:n,isLoading:r}=fs();return jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:!e})}),jsx(Form.List,{name:"permissions",children:(o,{add:i,remove:s})=>jsxs(Row,{gutter:8,children:[jsx(Col,{span:8,className:"text-center mb-4",children:jsx(dl,{strong:!0,children:t("global.projectGroup")})}),jsx(Col,{span:10,className:"text-center mb-4",children:jsx(dl,{strong:!0,children:t("global.game")})}),jsx(Col,{span:6,className:"text-center mb-4",children:jsx(dl,{strong:!0,children:t("global.role")})}),o.map(l=>jsxs(Fragment$1,{children:[jsx(Col,{span:8,children:jsx(Form.Item,{noStyle:!0,shouldUpdate:!0,children:({setFieldValue:a})=>jsx(Form.Item,{name:[l.name,"game_group"],children:jsx(jv,{onChange:()=>{a(["permissions",l.name,"game_ids"],[]);}})})})}),jsx(Col,{span:10,children:jsx(Form.Item,{noStyle:!0,shouldUpdate:(a,u)=>a.permissions[l.name]?.game_group!==u.permissions[l.name]?.game_group,children:({getFieldValue:a})=>{let u=a(["permissions",l.name,"game_group"]);return jsx(Form.Item,{name:[l.name,"game_ids"],dependencies:[["permissions",l.name,"game_group"]],rules:[{required:u?.length,message:"\u8BF7\u9009\u62E9\u6E38\u620F"}],children:jsx(Wv,{groups:u})})}})}),jsx(Col,{span:6,children:jsxs("div",{className:"flex",children:[jsx("div",{className:"flex-1",children:jsx(Form.Item,{name:[l.name,"role"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u89D2\u8272"},({getFieldValue:a})=>({validator(u,c){return a("permissions").filter((m,f)=>!!m&&f!==l.name).some(m=>m.role===c)?Promise.reject(new Error("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\u89D2\u8272")):Promise.resolve()}})],children:jsx(Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",loading:r,options:n?.map(a=>({label:a.name,value:a.name}))})})}),jsx("div",{className:"w-8 text-center",children:jsx(Form.Item,{children:jsx(MinusCircleOutlined,{onClick:()=>{s(l.name);}})})})]})})]},l.key)),o.length===0&&jsx(Col,{span:24,children:jsx(Empty,{className:"mb-6"})}),jsx(Col,{span:24,children:jsx(Button,{block:!0,type:"dashed",onClick:()=>i(),children:t("global.add")})})]})})]})},bf=({onSuccess:e}={})=>{let{t}=Z(),{mutateAsync:n}=rl();return bn({title:t("User.createTitle"),width:"50vw",formProps:{autoComplete:"off",labelCol:{flex:"80px"}},content:jsx(vf,{isCreate:!0}),onConfirm:async r=>{await n(r),e?.();}})},hs=({onSuccess:e}={})=>{let{t}=Z(),{mutateAsync:n}=ol();return bn({title:t("User.updateTitle"),width:"50vw",formProps:{autoComplete:"off",labelCol:{flex:"80px"}},content:jsx(vf,{}),onConfirm:async(r,o)=>{await n({...r,id:o?.id}),e?.();}})};});var wf=Q(()=>{ff();xf();});var Sf=Q(()=>{});var Jo=Q(()=>{af();wf();Ur();Sf();});var Pf={};cn(Pf,{default:()=>i7});var r7,o7,i7,Tf=Q(()=>{Qo();Oe();Vr();Nr();Ve();Jo();r7="/api/usystem/user/list",o7=()=>{let{modal:e,message:t}=App.useApp(),{t:n}=Z(),r=Q0(),{refetch:o}=lt(),{permissionVersion:i}=pe(h=>h),s=i==="v1",l=i==="v3",{show:a,modal:u}=hf({onSuccess(){o("user-list",{page:1}),t.success(n("User.createSuccessfully"));}}),{show:c,modal:d}=yf({onSuccess(){o("user-list"),t.success(n("User.updateSuccessfully"));}}),{show:p,modal:m}=bf({onSuccess(){o("user-list",{page:1}),t.success(n("User.createSuccessfully"));}}),{show:f,modal:g}=hs({onSuccess(){o("user-list"),t.success(n("User.updateSuccessfully"));}}),v=[{title:n("global.name"),dataIndex:"name",key:"name",render(h,y){return l?jsx(Link,{to:`./${y.id}`,children:h}):h}},{title:"ID",dataIndex:"id",key:"id"},(s||l)&&{title:n("global.role"),dataIndex:"roles",key:"roles",width:"40%",render(h){return jsx(Row,{gutter:[4,4],children:(h||[]).map(y=>jsx(Col,{children:y==="root"?jsx(Tag,{color:"#f50",children:y}):jsx(Tag,{color:"#ff5a00",children:jsx(Link,{to:`../role/${y}`,children:y})})},y))})}},{title:n("global.creationTime"),dataIndex:"Ctime",key:"ctime"},{title:n("global.operation"),width:150,align:"center",render:(h,y)=>{let{name:b,permissions:w,roles:S,id:C}=y;return jsxs(Space,{children:[jsx(Ct,{size:"small",type:"link",code:"100003",onClick:()=>{l?f({initialValues:{name:b,permissions:w},extraValues:{id:C}}):c({initialValues:{name:b,roles:S},extraValues:{id:C}});},children:n("global.update")}),jsx(Ct,{danger:!0,size:"small",code:"100004",type:"link",onClick:()=>{e.confirm({title:n("User.deleteTitle"),content:jsx(Jn,{texts:[b],children:n("User.deleteContent",{user:b})}),async onOk(){await r.mutate({id:C,name:b}),o("user-list"),t.success(n("User.deleteSuccessfully"));}});},children:n("global.delete")})]})}}].filter(Boolean);return jsxs(Fragment,{children:[jsx(Card,{title:n("global.user"),extra:jsx(Ct,{type:"primary",icon:jsx(UserAddOutlined,{}),code:"100002",onClick:()=>{l?p():a();},children:n("User.createTitle")}),children:jsx(xn,{identifier:"user-list",code:"100001",request:{url:r7,method:"GET"},rowKey:"id",columns:v,dataAdapter:(h,y)=>({total:y?.Total,items:y?.List}),renderForm:l?h=>jsx(Form,{form:h,children:jsx(Form.Item,{label:"\u540D\u79F0",name:"name",children:jsx(Input,{})})}):void 0})}),u,d,m,g]})},i7=at(o7,{isGlobal:!0});});var Ff={};cn(Ff,{default:()=>m7});var p7,m7,Df=Q(()=>{Oe();Vr();Ve();yn();Jo();Bt();Dn();St();p7=()=>{let{message:e}=App.useApp(),t=useParams(),{t:n}=Z(),{gameApiV2:r}=pe(),o=me(),{data:i,isLoading:s,refetch:l}=useQuery({queryKey:ie.users.detail(t.id||""),queryFn:()=>o.get(`/api/usystem/user/info?id=${t.id}`),enabled:!!t.id}),{data:a}=Ln(),{data:u}=Dt("200005"),{show:c,modal:d}=hs({onSuccess(){l(),e.success(n("User.updateSuccessfully"));}}),p=[{key:"group",title:n("global.projectGroup"),dataIndex:"game_group",render(m){return m.map(f=>jsx(Tag,{children:f===Kt?"\u901A\u7528":f},f))}},{key:"game",title:n("global.game"),dataIndex:"game_ids",render(m){return m.map(f=>{let g=a?.find(v=>String(r?v.game_id:v.id)===f);return jsx(Tag,{children:g?.name??(f===Kt?"\u901A\u7528":f)},f)})}},{key:"role",title:n("global.role"),dataIndex:"role",render(m){return u?jsx(Link,{to:`../../role/${m}`,relative:"path",children:m}):m}}];return jsxs(Fragment,{children:[jsx(Breadcrumb,{style:{marginBottom:"1.5rem"},items:[{key:"1",title:jsx(Link,{to:"..",relative:"path",children:n("global.user")})},{key:"2",title:"\u7528\u6237\u8BE6\u60C5"}]}),jsx(Card,{title:"\u7528\u6237\u8BE6\u60C5",loading:s,extra:jsx(Ct,{code:"100003",onClick:()=>{c({initialValues:{name:i?.name,permissions:i?.permissions},extraValues:{id:i.id}});},children:n("global.update")}),children:jsxs(Descriptions,{bordered:!0,column:1,children:[jsx(Descriptions.Item,{label:n("global.name"),children:i?.name}),jsx(Descriptions.Item,{label:"ID",children:i?.id}),jsx(Descriptions.Item,{label:n("global.role"),children:jsx(Table,{rowKey:"role",columns:p,dataSource:i?.permissions,pagination:!1})})]})}),d]})},m7=p7;});var Of={};cn(Of,{default:()=>C7});var w7,S7,C7,Rf=Q(()=>{Qo();Oe();Vr();Nr();as();Ve();Jo();Bt();St();w7="/api/usystem/role/list",S7=()=>{let{modal:e,message:t}=App.useApp(),{data:n}=Dt("200005"),{t:r}=Z(),{permissionVersion:o}=pe(f=>f),{refetch:i}=lt(),s=me(),{show:l,modal:a}=cf({onSuccess(){i("role-list",{page:1}),t.success(r("Role.createSuccessfully"));}}),{show:u,modal:c}=gs({onSuccess(){i("role-list"),t.success(r("Role.updateSuccessfully"));}}),d=H0(),p=async f=>{let g=await s.get(`/api/usystem/role/info${o==="v2"?"V2":""}?name=${f.name}`);u({initialValues:{permissions:g.permissions,name:g.name.replace(/^role_/,"")},extraValues:{id:g?.id}});},m=[{title:r("global.name"),key:"name",render(f){return n?jsx(Link,{to:`${f.name}`,relative:"path",children:f.name}):jsx(Fragment,{children:f.name})}},{title:"ID",dataIndex:"id",key:"id"},{title:r("global.creationTime"),dataIndex:"ctime",key:"ctime"},{title:r("global.operation"),width:150,align:"center",render:(f,g)=>jsxs(Space,{size:"small",children:[jsx(Ct,{code:"200003",size:"small",type:"link",onClick:async()=>{p(g);},children:r("global.update")}),jsx(Ct,{danger:!0,code:"200004",size:"small",type:"link",onClick:()=>{e.confirm({title:r("Role.deleteTitle"),content:jsx(Jn,{texts:[g.name],children:r("Role.deleteContent",{role:g.name})}),async onOk(){await d.mutate({id:g.id,name:g.name}),i("role-list"),t.success(r("Role.deleteSuccessfully"));}});},children:r("global.delete")})]})}];return jsxs(Fragment,{children:[jsx(Card,{title:r("global.role"),extra:jsx(Ct,{type:"primary",code:"200002",icon:jsx(UsergroupAddOutlined,{}),onClick:()=>{l();},children:r("Role.createTitle")}),children:jsx(xn,{identifier:"role-list",rowKey:"name",columns:m,code:"200001",request:{url:w7,method:"GET"},dataAdapter:(f,g)=>({total:g?.Total,items:g?.List})})}),a,c]})},C7=at(S7,{isGlobal:!0});});var qf={};cn(qf,{default:()=>D7});var F7,D7,zf=Q(()=>{Oe();Vr();Ve();Jo();Dn();F7=()=>{let{message:e}=App.useApp(),t=useParams(),{t:n}=Z(),r=useQueryClient(),{permissionVersion:o}=pe(),{data:i,isLoading:s}=B0(t.name),{show:l,modal:a}=gs({onSuccess(){let c=o==="v2"?"v2":"v1";r.invalidateQueries({queryKey:ie.roles.detail(t.name,c)}),e.success(n("Role.updateSuccessfully"));}}),u=async()=>{l({initialValues:{permissions:i?.permissions,name:i?.name.replace(/^role_/,"")},extraValues:{id:i.id}});};return jsxs(Fragment,{children:[jsx(Breadcrumb,{style:{marginBottom:"1.5rem"},items:[{key:"1",title:jsx(Link,{to:"..",relative:"path",children:n("global.role")})},{key:"2",title:n("RoleDetail.title")}]}),jsx(Card,{title:n("RoleDetail.title"),extra:jsx(Ct,{code:"200003",onClick:u,children:n("global.update")}),children:jsxs(Skeleton,{loading:s,children:[jsxs(Descriptions,{column:2,layout:"vertical",className:"mb-6",children:[jsx(Descriptions.Item,{label:n("global.name"),children:i?.name}),jsx(Descriptions.Item,{label:"ID",children:i?.id}),jsx(Descriptions.Item,{label:n("global.creationTime"),children:i?.ctime})]}),jsx(Divider,{}),jsx(Qr,{readonly:!0,value:i?.permissions})]})}),a]})},D7=at(F7,{isGlobal:!0});});Jr();var ws=create((e,t)=>({open:new Map,usedIds:new Set,isOpen:n=>t().open.get(n)??!1,show(n){e({open:new Map(t().open).set(n,!0)});},hide(n){e({open:new Map(t().open).set(n,!1)});},hideAll(){e({open:new Map});},checkUniqueness(n){let{usedIds:r}=t();return !r.has(n)},registerIds(n){let{usedIds:r}=t();return r.has(n)?!1:(e({usedIds:new Set(r).add(n)}),!0)},cleanup(n){let{open:r,usedIds:o}=t(),i=new Map(r),s=new Set(o);i.delete(n),s.delete(n),e({open:i,usedIds:s});}}));function Cs(e){let{content:t,onConfirm:n,afterOpen:r,afterClose:o,footer:i,confirmText:s="\u786E\u8BA4",cancelText:l="\u53D6\u6D88",confirmButtonProps:a,cancelButtonProps:u,...c}=e,d=useMemo(()=>ii(),[]),{show:p,hide:m,isOpen:f,cleanup:g}=ws();useEffect(()=>()=>{g(d);},[d,g]);let v=f(d),[h,y]=useState(!1),b=typeof t=="function",w=useCallback(async()=>{p(d),await r?.();},[d,p,r]),S=useCallback(()=>{m(d);},[d,m]),C=useCallback(async()=>{S(),await o?.();},[S,o]),k=useCallback(async()=>{try{y(!0),await n?.();}catch(P){throw console.error("Drawer confirm error:",P),P}finally{y(!1);}},[n]),E=i!==void 0?i:jsxs("div",{className:"flex gap-4 mx-4",children:[jsx(Button,{type:"primary",loading:h,...a,onClick:k,children:s}),jsx(Button,{...u,onClick:C,children:l})]}),I=jsx(Drawer,{...c,open:v,footer:E,onClose:C,children:b?t({hide:S}):t});return {id:d,show:w,hide:S,confirmLoading:h,drawer:I}}function np(e){let{content:t,form:n,formProps:r,onConfirm:o,onSuccess:i,afterClose:s,...l}=e,[a,u]=useState({}),[c]=Form.useForm();c=n||c;let d=typeof t=="function",{id:p,show:m,hide:f,drawer:g}=Cs({...l,content:h=>jsx(Form,{...r,form:c,children:d?t(a,h):t}),onConfirm:async()=>{try{let h=await c.validateFields();await o?.(h,a),i?.(),f();}catch(h){throw console.error("Form validation or submission error:",h),h}},afterClose:()=>{s?.(c);}}),v=useCallback(h=>{let{initialValues:y,extraValues:b}=h||{};b&&u(b),y&&c.setFieldsValue(y),m();},[c,m]);return {id:p,show:v,hide:f,drawer:g}}Oe();var v4=e=>{let{initialTags:t,addable:n,removable:r,addCallback:o,removeCallback:i}=e,{t:s}=Z(),{token:l}=theme.useToken(),[a,u]=useState([]),[c,d]=useState(!1),[p,m]=useState(""),[f,g]=useState(-1),[v,h]=useState(""),y=useRef(null),b=useRef(null);useEffect(()=>{u(t??[]);},[t]),useEffect(()=>{c&&y.current?.focus();},[c]),useEffect(()=>{b.current?.focus();},[p]);let w=async L=>{if(await i?.(L)){let K=a.filter(oe=>oe!==L);u(K);}},S=()=>{d(!0);},C=L=>{m(L.target.value);},k=async()=>{p&&a.indexOf(p)===-1&&await o?.(p)&&u([...a,p]),d(!1),m("");},E=L=>{h(L.target.value);},I=()=>{let L=[...a];L[f]=v,u(L),g(-1),m("");},P={width:78,verticalAlign:"top"},V={background:l.colorBgContainer,borderStyle:"dashed"};return jsxs(Space,{wrap:!0,size:[0,8],children:[jsx(Space,{wrap:!0,size:[0,8],children:a.map((L,H)=>f===H?jsx(Input,{ref:b,size:"small",style:P,value:v,onChange:E,onBlur:I,onPressEnter:I},L):jsx(Tag,{closable:r,style:{userSelect:"none"},onClose:async K=>{K.preventDefault(),await w(L);},children:jsx("span",{onDoubleClick:K=>{H!==0&&(g(H),h(L),K.preventDefault());},children:L})},L))}),n&&(c?jsx(Input,{ref:y,type:"text",size:"small",style:P,value:p,onChange:C,onBlur:k,onPressEnter:k}):jsxs(Tag,{style:V,onClick:S,children:[jsx(PlusOutlined,{}),"\xA0",s("global.add")]}))]})},b4=v4;var S4=e=>{let{children:t,...n}=e,[r,o]=useState(!1);return jsx(Typography.Paragraph,{...n,className:"mb-0",ellipsis:{rows:2,expandable:"collapsible",expanded:r,onExpand:(i,s)=>{o(s.expanded);}},children:t})},Wi=S4;Yi();Qo();Yi();Oe();Bt();St();var U4=()=>create()(devtools(subscribeWithSelector((e,t)=>({instances:new Map,registerInstance(n,r,o,i,s){e(l=>{let a=l.instances.get(n);if(a){let d={...a,refetch:i,fetchNextPage:s},p=new Map(l.instances);return p.set(n,d),{instances:p}}let u={id:n,url:r,queryKey:o,payload:{page:0,formValue:{}},refetch:i,fetchNextPage:s},c=new Map(l.instances);return c.set(n,u),{instances:c}});},unregisterInstance(n){e(r=>{let o=new Map(r.instances);return o.delete(n)?{instances:o}:r});},updatePayload(n,r){e(o=>{let i=o.instances.get(n);if(!i)return o;let s={...i.payload,...r};if(!isEqual(i.payload,s)){let l={...i,payload:s},a=new Map(o.instances);return a.set(n,l),{instances:a}}return o});},getPayload(n){return t().instances.get(n)?.payload??{page:0,formValue:{}}},async refetch(n,r){let o=t().instances.get(n);if(!o){console.warn(`InfiniteList instance with id "${n}" not found`);return}if(r){let i=o.payload,s={...i,...r};isEqual(i,s)||t().updatePayload(n,r);}try{await o.refetch();}catch(i){throw console.error(`Failed to refetch InfiniteList instance "${n}":`,i),i}},async fetchNextPage(n){let r=t().instances.get(n);if(!r){console.warn(`InfiniteList instance with id "${n}" not found`);return}try{await r.fetchNextPage();}catch(o){throw console.error(`Failed to fetch next page for InfiniteList instance "${n}":`,o),o}},getInstance(n){return t().instances.get(n)},getAllInstances(){return Array.from(t().instances.values())}})),{name:"infinite-list-store"})),H4=U4(),rn=H4;var r5=(e,t)=>{let r={refreshInterval:0,initialPageParam:0,...e,dataAdapter:{...{items:Y=>Y?Y.flatMap(ue=>ue?.list||ue||[]):[],hasMore:Y=>{if(!Y)return !1;let ue=Y;return ue?.hasMore||ue?.has_more||!1},nextPageParam:(Y,ue,ye)=>(ve=>{if(!ve)return !1;let J=ve;return J?.hasMore||J?.has_more||!1})(Y)?ue.length:void 0},...e.dataAdapter}},{identifier:o,code:i,buttonsAlign:s,showReset:l,refreshInterval:a,request:u,tableExtra:c,renderForm:d,afterSuccess:p,afterError:m,dataAdapter:f,initialPageParam:g,footer:v,form:h,...y}=r,{t:b}=Z(),[w]=Form.useForm(h),[S,C]=useState(!1),k=useRef(!1),E=useRef(3),I=me(),{data:P,isLoading:V}=Dt(i),L=useCallback(()=>rn.getState().getPayload(o),[o]),H=useMemo(()=>w,[w]),{url:K,method:oe="GET",body:de,params:he,headers:xe,cacheTime:we=5*60*1e3,staleTime:Pe=0}=u,qe=useMemo(()=>typeof xe=="function"?xe(H):xe,[xe,H]),Ee=useMemo(()=>{let Y=L();return [K,o,P,S,Y,qe]},[K,o,P,S,L,qe]),{data:Re,fetchNextPage:_,hasNextPage:Te,isFetchingNextPage:le,refetch:Ue,isFetching:X}=useInfiniteQuery({queryKey:Ee,queryFn:async({pageParam:Y=g})=>{try{let ue=L(),ye=typeof he=="function"?he(ue,Y):he,fe=typeof de=="function"?de(ue,Y):de,ve={method:oe,searchParams:ye,headers:qe};fe&&(fe instanceof FormData?ve.body=fe:ve.json=fe);let J=await I.request({url:K,...ve});return k.current=!0,p?.(E.current,H,[J]),J}catch(ue){let ye=ue instanceof Error?ue:new Error(String(ue));throw m?.(ye,E.current,H),ye}},initialPageParam:g,getNextPageParam:(Y,ue)=>f?.nextPageParam?.(Y,ue,g),enabled:P&&S,retry:(Y,ue)=>!(Y>=3||ue?.message?.includes("401")),retryDelay:Y=>Math.min(1e3*2**Y,3e4),refetchOnWindowFocus:!1,refetchInterval:k.current?a:0,gcTime:we,staleTime:Pe});useEffect(()=>(rn.getState().registerInstance(o,K,Ee,Ue,_),()=>{rn.getState().unregisterInstance(o);}),[o,K,Ee,Ue,_]);let He=f?.items?.(Re?.pages,H),Ae=le,mt=!Te,_e=!He||He.length===0,ct=async()=>{E.current=0;let Y=await w.getFieldsValue();try{await w.validateFields(),C(!0),rn.getState().updatePayload(o,{page:0,formValue:Y}),Ue();}catch{C(!1);}},ut=()=>{E.current=2,_();},Ze=async()=>{E.current=1;try{w.resetFields();let Y=await w.getFieldsValue();rn.getState().updatePayload(o,{page:0,formValue:Y}),await w.validateFields({validateOnly:!0}),Ue();}catch{}};if(useEffect(()=>{setTimeout(()=>{P&&w.validateFields({validateOnly:!0}).then(Y=>{C(!0),rn.getState().updatePayload(o,{page:0,formValue:Y});}).catch(()=>{C(!1);});},300);},[P,w,o]),useImperativeHandle(t,()=>({data:Re?.pages,dataSource:He,form:w,refetch:()=>rn.getState().refetch(o),fetchNextPage:()=>rn.getState().fetchNextPage(o),hasNextPage:!!Te,isFetchingNextPage:le})),V)return jsx(Spin,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:300}});if(!P)return jsx(Result,{status:403,subTitle:b("global.noEntitlement")});let Je=v&&(()=>v(Re?.pages)),dt=()=>typeof c=="function"?c(H,Re?.pages):c,O=typeof d=="function"?jsx(Ho,{showReset:l,buttonsAlign:s,isConfirming:X,onReset:Ze,onConfirm:ct,children:cloneElement(d(w),{onKeyUp:Y=>{Y.key==="Enter"&&ct();}})}):jsx(Form,{form:w});return jsxs(Fragment,{children:[O,dt(),jsx("div",{style:{minHeight:"400px"},children:jsx(Table,{...y,dataSource:He,loading:X,pagination:!1,footer:Je})}),!_e&&jsx(Button,{block:!0,loading:Ae,type:"link",htmlType:"button",disabled:Ae||mt,onClick:ut,children:b(Ae?"InfiniteList.loadingText":mt?"InfiniteList.reachEndText":"InfiniteList.loadMoreText")})]})},o5=forwardRef(r5),i5=o5;var e0=create()(persist((e,t)=>({openKeys:[],setOpenKeys:n=>{let r=t();(r.openKeys.length!==n.length||!r.openKeys.every((o,i)=>o===n[i]))&&e({openKeys:n});},selectedKeys:[],setSelectedKeys:n=>{let r=t();(r.selectedKeys.length!==n.length||!r.selectedKeys.every((o,i)=>o===n[i]))&&e({selectedKeys:n});}}),{name:"nav",storage:createJSONStorage(()=>localStorage),partialize:e=>({openKeys:e.openKeys,selectedKeys:e.selectedKeys}),skipHydration:!1,version:1}));var t0=memo(({to:e,children:t})=>jsx(Link,{to:e,children:t}));t0.displayName="MemoizedLink";function es(e){let t=[];if(e)for(let n=0;n<e.length;n++)if(e[n]===null||e[n].type==="divider")t[n]=e[n];else if(e[n].children){let{children:r,...o}=e[n];t[n]={...o,children:es(r)};}else {let{route:r,label:o,...i}=e[n],s=r?jsx(t0,{to:r,children:o}):o;t[n]={...i,label:s};}return t}function ts(e,t=[],n=[]){for(let r of e){let o=r?.children;if(Array.isArray(o)){let i=r.type!=="group"&&r.key?[...n,r.key]:n;ts(o,t,i);}else r&&t.push(Object.assign(r,{keypath:n}));}return t}var i0=memo(function(t){let{items:n=[],theme:r,loading:o}=t,i=useLocation(),s=useRef(),l=useRef(),a=useMemo(()=>s.current===n?s.current?ts(s.current):[]:(s.current=n,ts(n)),[n]),u=useMemo(()=>s.current===n?s.current?es(s.current):[]:es(n),[n]),{openKeys:c,selectedKeys:d,setOpenKeys:p,setSelectedKeys:m}=e0(),f=useCallback(g=>{let v=g.find(h=>!c.includes(h));if(v){let h=a.find(b=>b.key===v),y=h?.keypath?[...h.keypath,v]:[v];p(y);}else p(g);},[a,c,p]);return useEffect(()=>{if(l.current===i.pathname)return;l.current=i.pathname;let g=a.find(v=>i.pathname===v.route);if(g){let v=g.key,h=g.keypath;(d[0]!==v||!c.every((y,b)=>y===h[b]))&&(m([v]),p(h));}},[a,i.pathname,d,c,m,p]),o?jsx("div",{className:"flex justify-center items-center",style:{height:"calc(100vh - 64px)"},children:jsx(Spin,{})}):jsx(Menu,{theme:r,style:{borderRight:"none"},items:u,mode:"inline",openKeys:c,selectedKeys:d,onOpenChange:f})});process.env.NODE_ENV==="development"&&(i0.displayName="NavMenu");var qa=i0;Oe();Ve();St();var {Spin:w5}=jo,S5=({children:e})=>{let{permissionVersion:t,gameId:n,isGlobal:r}=pe(s=>s),{isLoading:o}=Ln(),{t:i}=Z();return o?jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:400},children:jsx(w5,{})}):t==="v1"||r?e:n?jsx(Fragment$1,{children:e},n):jsx(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,description:i("RequireGame.description")})},za=S5;Ve();Oe();Ve();var T5=()=>{let{t:e}=Z(),t=useNavigate(),{clearToken:n,getUser:r,signInPath:o}=pe(c=>c),i=r(),s=()=>{n(),t(o);},l=c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),s());},a=c=>{(c.key==="Enter"||c.key===" ")&&c.preventDefault();},u=[{key:"1",icon:jsx(LogoutOutlined,{}),label:jsx("a",{role:"button",tabIndex:0,onClick:s,onKeyDown:l,children:e("UserWidget.signOutText")})}];return jsx("div",{children:jsx(Dropdown,{menu:{selectable:!0,items:u},placement:"bottomRight",children:jsx("a",{role:"button",tabIndex:0,onClick:c=>{c.preventDefault();},onKeyDown:a,children:jsxs(Space,{align:"center",children:[jsx("span",{children:i?.authorityId}),jsx(UserOutlined,{style:{fontSize:"16px"}})]})})})})},Va=T5;Oe();Ve();St();var{Text:A5}=Typography,O5=e=>{let{filter:t,options:n}=e,{t:r}=Z(),{gameApiV2:o,gameId:i,setGameId:s}=pe(f=>f),{data:l,isLoading:a}=Ln(),u=useQueryClient(),c=l?.filter(f=>t?.(f)??!0),d=typeof n=="function"?n(c):c?.map(f=>({label:f.name,value:o?f.game_id:f.id})),p=f=>{m(),s(f);},m=()=>{u.removeQueries({predicate:f=>{let g=f.queryKey;return !g.includes("/api/game/list")&&!g.includes("/api/usystem/game/all")}});};return useEffect(()=>{if(l&&l.length>0){let f=o?l[0].game_id:l[0].id;l.every(g=>String(g.game_id||g.id)!==String(i))&&s(f);}},[l]),jsxs(Space,{children:[jsx(A5,{children:r("GameSelect.label")}),jsx(Select,{showSearch:!0,optionFilterProp:"label",value:i,placeholder:r("GameSelect.placeholder"),loading:a,style:{width:"200px"},options:d,onChange:p})]})},l0=O5;var z5=e=>jsx("img",{src:q5,alt:"logo",...e}),qr=z5;var u0=memo(({title:e,subtitle:t,mainPagePath:n,collapsed:r})=>jsxs("div",{className:"px-6 py-2 font-bold relative bg-gradient-to-r from-white to-gray-50/30",style:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},children:[jsxs("div",{className:`flex items-center w-full ${r?"justify-center":""}`,children:[jsx(Link,{to:n,className:"hover:opacity-80 transition-all duration-300 ease-out block rounded-lg p-1 hover:bg-white/50 hover:shadow-sm",style:{transition:"all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)",opacity:r?.8:1,transform:"translateX(0)"},children:jsx(qr,{width:36,style:{objectFit:"contain",display:"block",filter:"drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05))",transition:"all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"}})}),e&&jsx("div",{className:"ml-4 overflow-hidden min-w-0",style:{transition:"all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)",opacity:r?0:1,width:r?"0px":"auto",marginLeft:r?"0px":"16px",transform:r?"translateX(-8px)":"translateX(0)"},children:jsx(Link,{to:n,className:"text-xl leading-tight hover:text-blue-600 transition-all duration-300 font-bold text-ellipsis overflow-hidden whitespace-nowrap block bg-gradient-to-r from-gray-800 to-gray-600 bg-clip-text text-transparent hover:from-blue-600 hover:to-blue-500",title:e,style:{letterSpacing:"0.02em",textShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"},children:e})})]}),jsx("div",{className:"w-full mt-2 overflow-hidden",style:{height:t&&!r?"20px":"1px",transition:"height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:jsxs("div",{className:"flex items-center justify-center h-full w-full",children:[jsx("div",{className:"w-full border-t border-gray-200 absolute",style:{opacity:!t||r?1:0,transition:"opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"}}),t&&jsxs("div",{className:"flex items-center w-full text-sm",style:{opacity:r?0:1,transform:r?"translateY(-3px)":"translateY(0)",transition:"all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:[jsx("div",{className:"flex-1 border-t border-gray-200"}),jsx("span",{className:"px-3 text-gray-500 font-medium whitespace-nowrap",title:t,children:t}),jsx("div",{className:"flex-1 border-t border-gray-200"})]})]})})]}));u0.displayName="LayoutHeader";var d0=u0;var {Spin:Q5,theme:j5}=jo,{Header:W5,Sider:Y5,Content:X5}=jo.Layout,Z5=e=>{let{collapsible:t,isMenuLoading:n,items:r,headerExtra:o,children:i,navWidth:s,filter:l,gameSelectOptions:a,title:u,subtitle:c}=e,{token:{colorBgContainer:d,colorBorder:p}}=j5.useToken(),{permissionVersion:m,navWidth:f,collapsible:g,mainPagePath:v,collapsed:h,setContext:y,isGlobal:b}=pe(),[w,S]=useState(h),C=async()=>{S(!w),y({collapsed:!w});},k=t??g??!1;return jsxs(jo.Layout,{children:[jsxs(Y5,{collapsible:k,theme:"light",trigger:null,collapsed:w,width:s??f,style:{height:"100vh",overflowX:"hidden",overflowY:"auto",borderRightWidth:1,borderRightStyle:"solid",borderRightColor:p,transition:"all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)"},children:[jsx(d0,{title:u,subtitle:c,mainPagePath:v,collapsed:w||!1}),jsx(qa,{items:r,loading:n})]}),jsxs(jo.Layout,{children:[jsx(W5,{style:{padding:"0 24px",background:d},children:jsxs("div",{className:"flex justify-between items-center h-full",children:[jsxs(Space,{size:"small",split:jsx(Divider,{type:"vertical"}),className:"mr-6",children:[k&&jsx(Button,{type:"text",icon:w?jsx(MenuUnfoldOutlined,{}):jsx(MenuFoldOutlined,{}),style:{fontSize:"16px"},onClick:C}),m!=="v1"&&!b&&jsx(l0,{filter:l,options:a}),o?.left?.map(E=>jsx("span",{children:E.children},E.key))]}),jsxs(Space,{size:"small",split:jsx(Divider,{type:"vertical"}),children:[o?.right?.map(E=>jsx("span",{children:E.children},E.key)),jsx(Va,{})]})]})}),jsx(X5,{style:{overflow:"auto",padding:"24px 16px",maxHeight:"calc(100vh - 64px)",transition:"margin-left 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)"},children:jsx(Suspense,{fallback:jsx(Q5,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px"}}),children:jsx(za,{children:i})})})]})]})},J5=Z5;is();Vr();Nr();Oe();St();var L6=e=>{let{code:t,config:n,children:r}=e,{data:o,isLoading:i}=Dt(t,n),{t:s}=Z();return i?jsx(Spin,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:200}}):o?jsx(Fragment,{children:r}):jsx(Result,{status:"403",subTitle:s("global.noEntitlement")})},A6=L6;Ve();yn();var cv=lazy(()=>Promise.resolve().then(()=>($0(),T0))),uv=lazy(()=>Promise.resolve().then(()=>(L0(),D0))),dv=lazy(()=>Promise.resolve().then(()=>(z0(),q0))),fv=jsxs(Routes,{children:[jsx(Route,{index:!0,element:jsx(cv,{})}),jsx(Route,{path:"create",element:jsx(uv,{})}),jsx(Route,{path:"update/:id",element:jsx(dv,{})})]});Oe();var yv=e=>{let{redirectUrl:t}=e,n=useNavigate(),{t:r}=Z();return jsx("div",{className:"text-center",children:jsx(Result,{status:"404",title:"404",subTitle:r("NotFound.subTitle"),extra:t&&jsx(Button,{type:"primary",onClick:()=>{n(t);},children:r("NotFound.buttonText")})})})},vv=yv;Oe();Nr();Ve();var {Option:V0}=Select,wv=()=>{let{t:e}=Z(),t=[{key:"username",title:e("global.username"),dataIndex:"uname",width:100},{key:"label",title:e("global.label"),dataIndex:"label",width:150},{key:"method",title:e("global.method"),dataIndex:"method",width:100},{key:"route",title:e("global.route"),dataIndex:"route",width:200},{key:"request",title:e("global.request"),dataIndex:"request",render(n){return jsx(Wi,{children:n})}},{key:"response",title:e("global.response"),dataIndex:"response",render(n){return jsx(Wi,{children:n})}},{key:"creation_time",title:e("global.creationTime"),dataIndex:"ctime",width:200,render(n){return xv(n).format("YYYY-MM-DD HH:mm:ss")}}];return jsx(Card,{title:"\u64CD\u4F5C\u65E5\u5FD7",children:jsx(xn,{identifier:"operation-log-list",rowKey:"id",code:"300001",columns:t,tableLayout:"fixed",request:{url:"/api/usystem/log/list",method:"GET"},dataAdapter:(n,r)=>({total:r?.Total,items:r?.List}),renderForm:n=>jsxs(Form,{form:n,layout:"inline",children:[jsx(Form.Item,{label:e("global.username"),name:"uname",children:jsx(Input,{allowClear:!0})}),jsx(Form.Item,{label:e("global.route"),name:"route",children:jsx(Input,{allowClear:!0})}),jsx(Form.Item,{label:e("global.method"),name:"method",children:jsxs(Select,{allowClear:!0,style:{width:"100px"},children:[jsx(V0,{value:"get",children:"GET"}),jsx(V0,{value:"post",children:"POST"})]})}),jsx(Form.Item,{label:e("global.label"),name:"label",children:jsx(Input,{allowClear:!0})})]})})})},Sv=at(wv,{isGlobal:!0});var R7=lazy(()=>Promise.resolve().then(()=>(Tf(),Pf))),q7=lazy(()=>Promise.resolve().then(()=>(Df(),Ff))),z7=lazy(()=>Promise.resolve().then(()=>(Rf(),Of))),V7=lazy(()=>Promise.resolve().then(()=>(zf(),qf))),N7=jsxs(Routes,{children:[jsx(Route,{index:!0,element:jsx(Navigate,{to:"user"})}),jsx(Route,{path:"user",element:jsx(R7,{})}),jsx(Route,{path:"user/:id",element:jsx(q7,{})}),jsx(Route,{path:"role",element:jsx(z7,{})}),jsx(Route,{path:"role/:name",element:jsx(V7,{})})]});Oe();Ve();yn();var Vf='data:image/svg+xml,<svg xml:space="preserve" style="enable-background:new 0 0 6000 4000;" viewBox="0 0 6000 4000" y="0px" x="0px" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" id="Layer_1" version="1.1">%0A<style type="text/css">%0A%09.Graphic_x0020_Style_x0020_100{fill:%23FFFFFF;}%0A%09.Graphic_x0020_Style_x0020_101{fill:url(%23SVGID_1_);}%0A%09.Graphic_x0020_Style_x0020_102{fill:url(%23SVGID_2_);}%0A%09.Graphic_x0020_Style_x0020_104{fill:%23DB6767;}%0A%09.Graphic_x0020_Style_x0020_105{fill:%23FFDE70;}%0A%09.Graphic_x0020_Style_x0020_106{fill:%23FFB114;}%0A%09.Graphic_x0020_Style_x0020_107{fill:%236584C6;}%0A%09.Graphic_x0020_Style_x0020_108{fill:%23102140;}%0A%09.Graphic_x0020_Style_x0020_109{fill:%233B546B;}%0A%09.Graphic_x0020_Style_x0020_110{fill:%23152A52;}%0A%09.Graphic_x0020_Style_x0020_111{fill:%23E8766F;}%0A%09.Graphic_x0020_Style_x0020_112{fill:%23EF5668;}%0A%09.Graphic_x0020_Style_x0020_113{fill:%23FC9590;}%0A%09.Graphic_x0020_Style_x0020_114{fill:%23912433;}%0A%09.Graphic_x0020_Style_x0020_115{opacity:0.5;fill:%23FFFFFF;}%0A%09.Graphic_x0020_Style_x0020_116{fill:%231A1A1A;}%0A%09.Graphic_x0020_Style_x0020_117{fill:%23535353;}%0A%09.Graphic_x0020_Style_x0020_118{fill:%23DBD2DB;}%0A%09.Graphic_x0020_Style_x0020_119{fill:%234D73C6;}%0A%09.Graphic_x0020_Style_x0020_120{fill:%23D1334A;}%0A%09.Graphic_x0020_Style_x0020_123{fill:url(%23SVGID_3_);}%0A%09.st0{fill:url(%23SVGID_4_);}%0A%09.st1{fill:url(%23SVGID_5_);}%0A%09.st2{fill:url(%23SVGID_6_);}%0A%09.st3{fill:%239D8A9D;}%0A%09.st4{fill:url(%23SVGID_7_);}%0A%09.st5{fill:url(%23SVGID_8_);}%0A%09.st6{fill:%233B546B;}%0A%09.st7{fill:%23A8A1A8;}%0A%09.st8{fill:%23DBD2DB;}%0A%09.st9{fill:%23FFFFFF;stroke:%231A1A1A;stroke-width:5.3432;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st10{fill:%23339E7E;}%0A%09.st11{fill:none;stroke:%2310663F;stroke-width:5.3432;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st12{fill:%2300593B;}%0A%09.st13{fill:none;stroke:%233DBE88;stroke-width:5.3432;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st14{fill:none;stroke:%23134411;stroke-width:8.0149;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st15{fill:%23EF5668;}%0A%09.st16{fill:%23FC9590;}%0A%09.st17{fill:%23102140;}%0A%09.st18{fill:%23DB6767;}%0A%09.st19{fill:%231A1A1A;stroke:%231A1A1A;stroke-width:5.3432;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st20{fill:%23FFFFFF;}%0A%09.st21{fill:%23535353;}%0A%09.st22{fill:%23F9EBF9;}%0A%09.st23{fill:%23D896D8;}%0A%09.st24{fill:%238E3D8E;}%0A%09.st25{fill:%23CA74CA;}%0A%09.st26{fill:%23D590D5;}%0A%09.st27{fill:%23160A16;}%0A%09.st28{fill:%23384A6E;}%0A%09.st29{fill:%23B7C0D4;}%0A%09.st30{fill:%23E8766F;}%0A%09.st31{fill:%23FFB114;}%0A%09.st32{fill:%23FFDE70;}%0A%09.st33{fill:%23434343;}%0A%09.st34{fill:%23664708;}%0A%09.st35{fill:%23D9D9D9;}%0A%09.st36{fill:url(%23SVGID_9_);}%0A%09.st37{fill:url(%23SVGID_10_);}%0A%09.st38{fill:url(%23SVGID_11_);}%0A%09.st39{fill:url(%23SVGID_12_);}%0A</style>%0A<linearGradient y2="0" x2="1" y1="0" x1="0" gradientUnits="userSpaceOnUse" id="SVGID_1_">%0A%09<stop style="stop-color:%234085F0" offset="0"></stop>%0A%09<stop style="stop-color:%23275DC9" offset="1"></stop>%0A</linearGradient>%0A<linearGradient y2="0" x2="1" y1="0" x1="0" gradientUnits="userSpaceOnUse" id="SVGID_2_">%0A%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09<stop style="stop-color:%23529BF7" offset="1"></stop>%0A</linearGradient>%0A<linearGradient y2="0" x2="1" y1="0" x1="0" gradientUnits="userSpaceOnUse" id="SVGID_3_">%0A%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09<stop style="stop-color:%23EBF0F7" offset="1"></stop>%0A</linearGradient>%0A<g>%0A%09<linearGradient y2="3014.9536" x2="4941.2124" y1="3014.9536" x1="1288.5804" gradientUnits="userSpaceOnUse" id="SVGID_4_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23EBF0F7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M1288.6,2793.9c55.3,134.1,186.5,387.6,453.7,503.3c220.8,95.6,442.9,57.4,694.7,14.2%0A%09%09c343.1-59,344.3-140.4,552.9-134.7c282.5,7.8,357.3,159.3,673.4,219.7c66.5,12.7,309.6,47.5,574.2-28.4%0A%09%09c360.6-103.4,734.8-407.2,701.8-560C4895.4,2605.9,4103.5,2505.3,1288.6,2793.9z" class="st0"></path>%0A%09<linearGradient y2="1994.5433" x2="5456.5684" y1="1994.5433" x1="686.3356" gradientUnits="userSpaceOnUse" id="SVGID_5_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23529BF7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M5428.3,1649.1c-131.4-612.4-697.6-977.3-1155.4-1020.7c-232.1-22-245.1,56.7-616.7,117%0A%09%09c-821.7,133.2-1081-199.5-1850.1-85.1c-341.2,50.8-687.6,102.3-914.4,382.8C519.9,1502.7,718.2,2270,973.9,2621.3%0A%09%09c165.2,227,392.7,363.9,392.7,363.9c68.9,41.5,168.6,100.4,304.8,131.1c237.9,53.7,359.9-29.9,560-42.5%0A%09%09c342.7-21.6,401.6,197.2,772.6,276.4c190.7,40.7,257.4,0.5,1084.5-212.6c811.7-209.1,858.2-198.9,974.7-297.7%0A%09%09C5379.4,2571.8,5521.7,2084.7,5428.3,1649.1z M2709.5,2042.7v-2.7V2042.7z" class="st1"></path>%0A%09<linearGradient y2="1859.5726" x2="5227.9292" y1="1859.5726" x1="1116.5316" gradientUnits="userSpaceOnUse" id="SVGID_6_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23EBF0F7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M5148.1,1664.4c-146.3-421.8-552.5-838.3-943.2-819c-297.4,14.6-412.5,273.3-678.4,215.1%0A%09%09c-227.7-49.8-217.9-255.8-471.6-405.4c-401.7-236.8-1083-107.4-1265.9,223.4c-99.3,179.7-11.7,346.7-173.7,521.2%0A%09%09c-113.5,122.3-192.5,78.9-314.4,198.6c-154.9,152-219.8,410.7-165.5,645.3c73.8,318.7,366.8,477.2,388.9,488.1%0A%09%09c827.4,146.2,1654.7,292.3,2482.1,438.5c80.8,13.1,529.4,77.9,879.7-216.7C5295.8,2609,5272.6,2023.2,5148.1,1664.4z%0A%09%09 M2709.5,2042.7v-2.7V2042.7z" class="st2"></path>%0A%09<path d="M5224.3,2042.5c-143.7-88.6-413.9-68.2-740.1-95.9c-488.7-41.5-1188.7,312.8-1437,221.4%0A%09%09c-95.1-35-167.4-141.7-220.4-260v1053.6c291.4,51.5,582.8,103,874.2,154.4l1292.2-269.1C5190,2615.6,5243.4,2314,5224.3,2042.5z" class="st3"></path>%0A%09<linearGradient y2="1741.7239" x2="2757.678" y1="1741.7239" x1="1116.5317" gradientUnits="userSpaceOnUse" id="SVGID_7_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23529BF7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M1789.1,878.4c-99.3,179.7-11.7,346.7-173.7,521.2c-113.5,122.3-192.5,78.9-314.4,198.6%0A%09%09c-154.9,152-219.8,410.7-165.5,645.3c73.8,318.7,366.8,477.2,388.9,488.1c411.1,72.6,822.2,145.3,1233.4,217.9V550.2%0A%09%09C2377.7,484.9,1931.7,620.4,1789.1,878.4z M2709.5,2042.7v-2.7V2042.7z" class="st4"></path>%0A%09<linearGradient y2="1215.4698" x2="2649.5779" y1="1215.4698" x1="1137.9542" gradientUnits="userSpaceOnUse" id="SVGID_8_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23EBF0F7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M1789.1,878.4c-99.4,179.7-11.7,346.7-173.7,521.2c-113.6,122.3-192.5,78.9-314.4,198.6%0A%09%09c-79.1,77.6-134.7,183-163,298.8c82.9-108.4,187.6-189.5,319.3-210.4c445.6-70.8,892.8,45.1,1192.3-113.7V537.1%0A%09%09C2296.9,511.3,1918.4,644.5,1789.1,878.4z" class="st5"></path>%0A%09<polygon points="1937.1,644.5 1937.1,2265.3 1979.7,2269.9 1983,640.9" class="st6"></polygon>%0A%09<path d="M2757.7,550.2c-35.6-6.1-71.7-10.5-108.1-13.1v1035.7c38.6-20.4,74.7-45.4,108.1-76V550.2z" class="st7"></path>%0A%09<path d="M1117.4,850.5c-15.5,9-30.8,18.5-45.8,28.5v1689.5l42.6,5.1L1117.4,850.5z" class="st6"></path>%0A%09<path d="M2826.8,564.5c-22.7-5.5-45.8-10.3-69.1-14.3v2399.3c23,4.1,46.1,8.1,69.1,12.2V564.5z" class="st8"></path>%0A%09<g>%0A%09%09<path d="M1121,2361c0,0-98.3-110.7,84.2-222.1c-25.3,43.4-118,92.3-52.4,202.9%0A%09%09%09c27.1,62.9-12.8,89.7-12.8,89.7S1080.6,2436.5,1121,2361z" class="Graphic_x0020_Style_x0020_116"></path>%0A%09%09<g>%0A%09%09%09<path d="M1282.2,2470.4c-15.5,28.9-215.1,26.5-315.7,23.4c-1.1-4.4-2.1-8.7-3.1-13c-1.8-7.8-3.5-15.5-5-23.2%0A%09%09%09%09C1035.2,2452.4,1299.9,2437.2,1282.2,2470.4z" class="st9"></path>%0A%09%09%09<path d="M1282.2,2470.4l-16.7,216.9c-25.9,39.1-25.5,89.5-36,137.5c-4.3,22.7-20.4,30.2-38.6,29.2%0A%09%09%09%09c-39.4-34.1-82.1-74.2-124.2-119.9c-50-80.3-81.3-162.6-100.3-240.3C1067.1,2496.9,1266.7,2499.4,1282.2,2470.4z" class="st9"></path>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path d="M1331.3,2151c12.7,12.2,30.7,16,43,17c5.5-2.7,11.1-5.7,16.6-8.9c24.3-13.9,39.8-38.8,49.7-66.7%0A%09%09%09%09c-16.1,5.8-51.8,17.4-67.4,11.2c-20.4-8.1-12.5-17.1-3-14.1c11.7,6,55.7-6.5,75.3-12.5c4.1-14.9,6.8-30.2,8.6-44.8%0A%09%09%09%09c-13.9,8.3-34.9,15.8-44.4,12.6c-12.3-4.2-7.4-14.4,2.7-13.2c7.4,0.8,31.4-12,43.6-18.8c2.2-29.7,0.8-53.4,0.4-59.6%0A%09%09%09%09c-0.1-1-0.1-1.6-0.1-1.6s-29-8.6-66.9-14.1c-8,8.1-19.9,20.8-24.9,29.3c-8,13.3-11.7,24.3-18.1,22.2%0A%09%09%09%09c-12.7-6.6,13.3-37.6,27.8-53.4c-16.5-1.8-34.1-2.9-51.4-2.3c-51.5,40.6-24.5,76.1-44.7,71.8c-17.5-3.7,13.5-51.5,26.6-70.5%0A%09%09%09%09c-16.3,1.8-31.9,5.4-45.3,11.6c-12.1,6.2-22.8,12.2-32.4,18.1c-14.5,34.4,20,53.7,1.7,57.9c-14.3,3.3-16.2-30.4-16.2-48.5%0A%09%09%09%09c-124.9,86.7,2.8,144.8,2.8,144.8c0.1,0.5,0.2,1,0.3,1.6c11.4,70.5,70.1,82,134.6,58.3c-10-8-28.1-22.8-31-26.1%0A%09%09%09%09C1315,2147.7,1321.1,2139.9,1331.3,2151z" class="st10"></path>%0A%09%09%09<path d="M1433.5,1969.4c0,0-146,112.4-218.2,149.3" class="st11"></path>%0A%09%09%09<path d="M1396.4,2051c0,0-33.9,4.5-68.8-3.9" class="st11"></path>%0A%09%09%09<path d="M1316.2,1996.6c0,0-20.5,49.4-10.8,65.9" class="st11"></path>%0A%09%09%09<path d="M1352,2122.6c0,0-59.6-20.8-79-38.4" class="st11"></path>%0A%09%09%09<path d="M1216.4,2052.4c0,0-4.7,37.9,18.4,55.6" class="st11"></path>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path d="M882.7,2066.4c10.6,1.3,21,2.9,31.1,4.8c13.6,13.1,30.4,35.2,30.3,62.7c-1.8,23.8,15.4,19.7,16.3,10%0A%09%09%09%09c0.7-7-2.6-43-4.5-62.6c108.1,32.2,164.1,103.7,86.8,204.4c0,0,80.5,195.4-178.5,184.8c22.7-22.7,62.8-66.9,41.4-76.4%0A%09%09%09%09c-27.3-12.2-10,45.1-70.7,74.5c-19-1.7-39.5-4.4-61.7-8.2c-24-5.1-47.2-15.4-69.1-28.8c39.7-11.4,137-41.9,120.6-63.3%0A%09%09%09%09c-18.9-24.6-31,45.8-143.9,47.6c-21.5-15.8-41.4-33.9-58.9-52.1c37.3-6,107.4-20.1,100.5-40.6c-5.2-8.8-23.3,1.5-49.6,10.6%0A%09%09%09%09c-16.7,5.7-46.9,10.3-66.7,12.9c-38.7-43.2-62.7-81.8-62.7-81.8s30.7-35.6,77.3-76.8c23.3,3.1,68.1,9.9,76,18.1%0A%09%09%09%09c10.7,11.2,29.3,3.1,19.9-14.1c-7.3-13.2-42.1-23.8-69.1-26.7c20.4-16.6,42.9-33.2,66.6-48c31,11.1,99.6,37.5,106.2,56.3%0A%09%09%09%09c7.6,12.8,28.5,9,14.2-20.6c-10.9-22.7-68.4-42.4-95-50.5C786.1,2077.1,836.1,2060.7,882.7,2066.4z" class="st12"></path>%0A%09%09%09<path d="M593.2,2264.5c0,0,316.6-1.6,449.7,21.1" class="st13"></path>%0A%09%09%09<path d="M740.2,2197.3c0,0,46.4,26.9,77.7,70.8" class="st13"></path>%0A%09%09%09<path d="M768.3,2342.5c0,0,86.7-42.5,95.7-72.6" class="st13"></path>%0A%09%09%09<path d="M883.4,2149.7c0,0,45.4,83.2,46.7,123.9" class="st13"></path>%0A%09%09%09<path d="M958.3,2368c0,0,53.3-43.2,47.7-87.5" class="st13"></path>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path d="M924,1810c7.6,5.4,14.9,11,21.8,16.7c4.5,17.1,7.4,43.4-5.2,67.8c-12.3,20.5,2.9,23.7,8,15.4%0A%09%09%09%09c3.7-5.9,17.7-39.3,25.2-57.5c68.8,71.8,79.4,157.7-26.4,216.5c0,0-27.1,205.9-222.4,93.1c27.9-11.1,79.1-34.4,67-51.4%0A%09%09%09%09c-15.5-21.8-28.3,36.1-88.6,38c-13.9-9.1-28.5-19.7-43.9-32c-16.2-14.1-29.4-32.6-40.2-53.2c35.9,5.7,125,17.5,122.1-8.1%0A%09%09%09%09c-3.3-29.5-44.9,28.3-132.9-15.1c-9.4-22.6-16.5-46.7-21.7-69.8c31.6,9.6,92.2,25,96.2,4c0-9.9-18.7-8-43.2-10.4%0A%09%09%09%09c-15.5-1.6-41-9.5-57.5-15.1c-10.2-53.9-11.1-97.8-11.1-97.8s40-19.4,94.8-37.4c16.6,12,48.1,36,50.4,46.4%0A%09%09%09%09c3.2,14.2,21.3,14.5,21.8-4.6c0.4-14.7-21.6-38-41.2-51.3c23.4-6.6,48.4-12.4,73.4-16.1c18.9,22.3,59.8,73.1,56.3,92.5%0A%09%09%09%09c0,14.5,17.9,19.4,20.4-12.7c1.9-24.5-33.5-65-50.3-82.8C844.5,1781,890.6,1786.3,924,1810z" class="st10"></path>%0A%09%09%09<path d="M609.7,1870.6c0,0,245.3,125,337.8,198.4" class="st11"></path>%0A%09%09%09<path d="M754.1,1869.5c0,0,23.6,42.4,27.7,94" class="st11"></path>%0A%09%09%09<path d="M709.4,2009.9c0,0,86.4-3.2,107.1-26.3" class="st11"></path>%0A%09%09%09<path d="M886.5,1884.4c0,0-2.9,92.1-20.5,128.9" class="st11"></path>%0A%09%09%09<path d="M844.5,2108.4c0,0,60.9-17.2,76.8-58.8" class="st11"></path>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path d="M1245.1,1794.2c20.8-5.3,34.8-21,42.5-32.8c-0.2-7.2-0.7-14.6-1.4-22.1c-3.2-32.9-23.8-63.7-50.7-90.6%0A%09%09%09%09c-1.8,19.7-7.4,62.7-22.8,74.5c-20.1,15.5-26.4,2-17.9-5.6c13.2-8.1,22.1-59.9,25.4-83.2c-15-13.2-31.3-25.3-47.2-36%0A%09%09%09%09c2.2,19-0.2,44.7-9,52.2c-11.4,9.8-20.6-1.3-13.9-10.8c4.9-7,2.8-38.8,1.4-55.2c-33.1-20.3-61.3-33.5-68.7-36.8%0A%09%09%09%09c-1.2-0.6-1.9-0.9-1.9-0.9s-25.3,23.8-51.7,58.6c5.2,13,13.5,32.7,20.6,42.9c11.1,16.1,21.9,26.5,16,31.7%0A%09%09%09%09c-14.4,8.7-36.4-36.3-47-60.5c-10.9,15.5-21.4,32.5-29.9,50.2c19.7,76.5,74.9,71.1,59.3,88.7c-13.5,15.3-52.4-45-67.4-69.8%0A%09%09%09%09c-6.6,17.5-10.6,35.3-10.6,52.6c0.7,15.9,2,30.4,3.8,43.6c32.1,35.6,72.7,12.7,67.8,33.6c-3.8,16.4-43.7-2.3-64.6-13.4%0A%09%09%09%09c33.9,178.4,168.8,85.6,168.8,85.6c0.7,0.2,1.3,0.5,2,0.7c87.5,31.6,132-20.3,138.8-99.5c-14.6,5.1-41.3,14.3-46.7,15.2%0A%09%09%09%09C1232.6,1808.5,1226.7,1797.5,1245.1,1794.2z" class="st10"></path>%0A%09%09%09<path d="M1089.2,1580.6c0,0,52.5,215.2,56.8,310.2" class="st11"></path>%0A%09%09%09<path d="M1164,1667.7c0,0-12.8,36.8-41,66.6" class="st11"></path>%0A%09%09%09<path d="M1058.6,1715c0,0,46.2,50.8,70.4,51.1" class="st11"></path>%0A%09%09%09<path d="M1223.1,1755.9c0,0-55.6,47.1-86.3,55.9" class="st11"></path>%0A%09%09%09<path d="M1070,1849.3c0,0,41.4,27.9,74,15.4" class="st11"></path>%0A%09%09</g>%0A%09%09<path d="M1146.1,1890.8c0,0,14.8,158.8-25,350.6" class="st14"></path>%0A%09%09<path d="M937.7,2061.4c0,0,170.2,50.3,183.3,183.5" class="st14"></path>%0A%09%09<path d="M1029.4,2285.6c13.6-4.9,80.6-4.6,99.5,8.8" class="st14"></path>%0A%09%09<path d="M1223.3,2114.4c0,0-98.3,30.9-77.3,232.1" class="st14"></path>%0A%09</g>%0A%09<g>%0A%09%09<path d="M2812.2,2216.6c0,0,60.8,180.6,68.3,350.2c-193.8,44.1-832.8-6.2-832.8-6.2%0A%09%09%09s14-297.1,80.4-332.6C2416.5,2250.4,2812.2,2216.6,2812.2,2216.6z" class="Graphic_x0020_Style_x0020_110"></path>%0A%09%09<path d="M2880.5,2566.9c-7.5-169.6-68.3-350.2-68.3-350.2s-395.8,33.8-684.1,11.4%0A%09%09%09c-17.2,9.2-30.9,36-41.7,70.6c61.5,25.5,298.6,104,672.8-9.3c-4.1,90.6,73.5,94.8,73.5,94.8c12.1,42.2,11.5,131.9,9.7,189.5%0A%09%09%09C2856.4,2571.7,2869.2,2569.4,2880.5,2566.9z" class="Graphic_x0020_Style_x0020_116"></path>%0A%09%09<path d="M2025.5,1497.7c-85.5,55.5-169,100.9-241.9,164.1c7.6,4.2,13.3,9.3,16.2,15.7%0A%09%09%09c0,0,180.9-97,314-235c-1,0.6-1.9,1.2-2.9,1.8C2081.6,1463,2054.9,1479,2025.5,1497.7z" class="Graphic_x0020_Style_x0020_120"></path>%0A%09%09<path d="M2229.4,1095.4c-25.7-0.9-176.5,78.1-272.1,168.2c-95.6,90.1-340.3,323.9-337.5,369.2%0A%09%09%09c19.6,10.4,121.7,5.7,163.9,29c72.9-63.1,156.4-108.6,241.9-164.1c29.4-18.7,56.1-34.7,85.5-53.4c0.9-0.7,1.9-1.2,2.9-1.8%0A%09%09%09c13.7-14.2,26.8-28.8,39.2-43.8C2153.1,1398.7,2255.2,1096.3,2229.4,1095.4z" class="st15"></path>%0A%09%09<path d="M2771.6,1674.1c-70.5,28.9-142.4,50.7-222.4,50.7c-37.4,0-80.1,18.7-104.2,53.4%0A%09%09%09c-61.4,98.9-133.6,184.3-232.4,229.8c-32.1,14.6-74.5,15.6-110.7,1.8c-16.7,87.9-31.4,153-31.4,153s68.3,148.9,349.6,142.7%0A%09%09%09c281.3-6.2,397.1-37.2,407.5-93.1C2841.2,2157.3,2787.4,1837.7,2771.6,1674.1z M2709.5,2042.7v-2.7V2042.7z" class="Graphic_x0020_Style_x0020_120"></path>%0A%09%09<path d="M2767.4,1598.2c4.1-101.3,24.8-260.6-97.2-366.1c-122-105.5-384.9-173.4-473.5-126.7l-76.5,292.8%0A%09%09%09c11.8,55.4,25.9,140.8,27.6,239.6c1.7,97.6-23.8,254.9-46,372c36.3,13.8,78.6,12.7,110.7-1.8c98.9-45.4,171-130.9,232.4-229.8%0A%09%09%09c24-34.7,66.8-53.4,104.2-53.4c80,0,151.9-21.8,222.4-50.7C2768.4,1641.5,2766.7,1615.1,2767.4,1598.2z" class="st15"></path>%0A%09%09<path d="M2357.9,1064.1c0,0-9-52.4-22.1-33.8c-13.1,18.6-10.3,92.4,9,98.6" class="st16"></path>%0A%09%09<path d="M2626.6,1195.8c5.3-16-5.3-34.7-24-34.7c-74.8,5.3-155,13.4-224.4-18.7c-23.9-11-31.4-34.7-32.8-58.9%0A%09%09%09c-12.4,46.4-71.3,284.2,13.2,332.7c71.4,40.9,184.3-8.4,256.1-105.5C2581,1285.5,2613.8,1234.5,2626.6,1195.8z" class="st16"></path>%0A%09%09<path d="M2517.2,949.8c-125.5-23.1-169.6,125.8-169.6,125.8s-0.8,2.8-2.2,7.9%0A%09%09%09c1.4,24.2,8.9,47.9,32.8,58.9c69.5,32.1,149.6,24,224.4,18.7c18.7,0,29.4,18.7,24,34.7c-12.9,38.6-45.6,89.7-12,114.9%0A%09%09%09c22.5-30.4,41-65.6,52.8-104.1C2717.1,1045.3,2621.6,969,2517.2,949.8z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M2650.9,1208c2.1-1.4,41.5-29.8,53.8,4.1c10.6,31.7-40.8,91.7-77.6,80.7l-7.2-3.4" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M2641.7,1253.5c0,0,22.4-60.7,39.3-38c16.9,22.7-50.4,66.6-53,66.6C2625.5,1282,2641.7,1253.5,2641.7,1253.5%0A%09%09%09z" class="st16"></path>%0A%09%09<path d="M2695.3,1256.7L2573,1608.5c0,0-4.1,73.6,8.3,89.5c-74.5,98.7-223.4,363.4-223.4,363.4%0A%09%09%09c93.1,24.8,111.9,120,92.1,155.1c108.5-97.2,400.1-407.5,406.4-575C2879.1,1534.1,2854.6,1361.8,2695.3,1256.7z" class="st15"></path>%0A%09%09<path d="M2837.6,1430.3c30.9,169.9,7.7,183.1-75,353.6%0A%09%09%09c-61.7,127.1-230.6,287.4-312.6,360.9c9.9,28.2,8.9,56.1,0,71.9c108.5-97.2,400.1-407.5,406.4-575%0A%09%09%09C2868.7,1583.2,2867.1,1505.7,2837.6,1430.3z" class="Graphic_x0020_Style_x0020_114"></path>%0A%09%09<path d="M2680.8,1197.5c-6.7,0-12.5,1.5-17.3,3.9c-21.5,10.5-26.4,38.8-26.4,38.8s-8.9,23.1-16.3,12.6%0A%09%09%09c-0.8-1.2-1.6-2.7-2.3-4.8c18.6-24.8,18.6-85.5,11.7-103.4c-6.9-17.9-99.3,26.2-212.3-13.8c-68.9-29.9-68.1-84.2-59.4-118%0A%09%09%09c4.5-17.6,11.1-29.6,11.1-29.6c8.7-20.6,14.7-76,34.2-70.3c40.6,11.7,106.8-29.1,164.9-24.4c49.8,4.1,97.3,36.1,128.3,67.6%0A%09%09%09c18.2,18.5,30.7,36.8,34.4,49.1C2741.5,1038.4,2700.5,1163.4,2680.8,1197.5z" class="st17"></path>%0A%09%09<path d="M2759.2,2289.4c0,0-18.6,62.6,23.2,86c41.8,23.4,50.2,8.7,50.2,8.7S2751.6,2373.8,2759.2,2289.4z" class="st9"></path>%0A%09%09<path d="M1712.9,1890.5c-52.6-85.2-72.3-184.5-63.6-284.7c-5.7,3.2-11.6,6.9-17.5,11%0A%09%09%09c0,0-40.7,64.1,46.2,255.8c-60.7,57.2-63.2,76.8-57.8,148.5c3.8,6,7.7,11.4,11.8,16.3C1628.4,1981.4,1663.8,1922.1,1712.9,1890.5z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M1827.7,1946.4c-2.8-88.2-44.1-69.6-38.6-133.1c5.5-63.4,12.4-109.6,15.9-150.3%0A%09%09%09c3.3-38.4-60.9-110.4-155.6-57.2c-8.8,100.2,10.9,199.5,63.6,284.7c-49.2,31.6-84.5,91-80.9,146.9c42.1,50.6,95,40.7,95,40.7%0A%09%09%09s40.7-51,44.8-68.3c11.7,0.7-32.4,71-32.4,71s7.6,14.2,24.1,13C1780.1,2092.5,1830.4,2034.6,1827.7,1946.4z" class="st16"></path>%0A%09%09<path d="M1679.1,1995l-15.9,55.8c0,0,23.8-50.3,29.3-72C1698.1,1957.1,1679.1,1995,1679.1,1995z" class="st18"></path>%0A%09%09<path d="M1719.7,2081.7c0.5-1.4,56.1-102.4,65.3-88.7c9.2,13.7-42,92.4-42,92.4s-5.3,3.1-3.5-4.7%0A%09%09%09c1.8-7.8,42.7-68.9,35.4-68.5c-7.4,0.5-44.1,60.7-47.8,65.7S1719.7,2081.7,1719.7,2081.7z" class="st18"></path>%0A%09%09<path d="M1686.9,2067.8c0,0,33.5-83.7,43.3-79.9c9.8,3.9-39.4,83.3-39.4,83.3L1686.9,2067.8z" class="st18"></path>%0A%09%09<path d="M1653.4,1961.3c0,0-15.7,62.3-15.2,75C1645.6,2045.3,1657.7,1960.6,1653.4,1961.3z" class="st18"></path>%0A%09%09<path d="M1761.8,2227.6c-54.2-19.3-110.3-23.2-166.4-38.7c-0.1,0-0.2-0.1-0.3-0.1c8.4,8.6,16.7,17.2,25.1,25.7%0A%09%09%09c53.2,60.7,288.8,91.2,288.8,91.2s-10.9-9.9-72.5-89.2c-8.1,3.7-16.2,7.5-24.4,11.1C1796.6,2235.3,1777.3,2233.4,1761.8,2227.6z" class="st19"></path>%0A%09%09<path d="M1267.8,1860.2c0,0,164.6,162.1,327.3,328.6c0.1,0,0.2,0.1,0.3,0.1c56.1,15.5,112.2,19.3,166.4,38.7%0A%09%09%09c15.5,5.8,34.8,7.7,50.3,0c8.2-3.6,16.4-7.4,24.4-11.1c-33.8-43.5-82.8-108-153.6-203.3%0A%09%09%09C1514.7,2038.1,1267.8,1860.2,1267.8,1860.2z" class="st20"></path>%0A%09%09<path d="M1894.6,2339.3c-53.4,8-106.9,10.7-163-2.7c-19-4.7-34.6-13.9-48.5-25.2%0A%09%09%09c15.8,36.7,102.7,87.4,133.9,82.8c31.7-4.6,303.8-96.5,339.7-99.3c35.9-2.8,272.6-59.4,293.2-78.4c6.2-5.7,10.6-21.4,10.5-40.6%0A%09%09%09c-161,58-322,87.3-483.1,141.9C1950.7,2325.9,1921.3,2334,1894.6,2339.3z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M2357.9,2061.5c-149.6,34-453,200.5-549.1,192.3c0,0-60.2,7.5-96.1-8.3c-35.9-15.8-83.7-37.4-96.5-28.9%0A%09%09%09c-10.2,6.8,29.5,56.4,52.7,80.6c6,6.2,10.8,10.8,13.5,12.5c0.2,0.6,0.5,1.1,0.7,1.7c13.9,11.3,29.5,20.5,48.5,25.2%0A%09%09%09c56.1,13.4,109.5,10.7,163,2.7c26.7-5.3,56.1-13.4,82.8-21.4c161-54.5,322-83.8,483.1-141.9%0A%09%09%09C2460.3,2131.9,2436.5,2068.5,2357.9,2061.5z" class="st16"></path>%0A%09</g>%0A%09<path d="M5147.8,2758.7c3.3,42.6-104.8,129-220.1,160.2c-111.1,40.4-316.5,84.1-839.1,218.8%0A%09%09c-356.5,91.9-571.8,151.6-716.6,186.6c-191.1,46.2-259.5,49.2-368,26c-51.4-11-96.9-24.7-137.9-40%0A%09%09c-255-95.3-339.6-255.1-634.7-236.4c-200.1,12.7-322,96.2-560,42.5c-136.3-30.7-235.9-89.6-304.8-131.1%0A%09%09c0,0-186.3-112.1-344.2-301.7c-39.9-42.2-73.3-85.6-94.5-130.9l1061.8-81.6L5147.8,2758.7z" class="Graphic_x0020_Style_x0020_118"></path>%0A%09<polygon points="1909,2627.9 2329.7,2696.9 2880.5,2648.9 2839.9,2636 1902.2,2607.7 1873.4,2616.7" class="st21"></polygon>%0A%09<path d="M2902.4,2554.2c0,0,128.1,29.9,198.1,36.5c16.9,26,103.7,26.1,139.2,31.4c35.5,5.3,64.9,60.1,137.9,65%0A%09%09c73,4.9,88.9,32.2,118.2,30.1c29.2-2.1,39.1-54.7,49.7-59.9c10.6-5.2-32-38.9-10.7-45.5C3396.5,2597.2,2902.4,2554.2,2902.4,2554.2%0A%09%09z" class="st21"></path>%0A%09<path d="M3668.6,2761.4c39.6,3,90.3-36.8,169.2-23.5c88.5,14.9,307.2,32.5,354.3-1.4%0A%09%09c61.3,3.3,696.2,65.4,749.1,44.1c52.9-21.3,68-34.5,68-34.5l-1182-107.2c0,0-299.4,44.5-286.7,84.2%0A%09%09C3547.2,2749,3629,2758.4,3668.6,2761.4z" class="Graphic_x0020_Style_x0020_117"></path>%0A%09<path d="M3779.6,3218.3c-115.9-48.9-340.1-136.6-484.1-148c-201.1-15.9-340.3-109.9-337.2-157.7%0A%09%09c3.1-47.8-605.8-113-946.8-126.3c-204.7-8-676.2-112.3-330.9-291.5l-79,6.1c-81.3,57.9-200.4,165.5-77.3,230.8%0A%09%09c174.8,92.7,1373.9,95.9,1387.8,212c13.2,110.3,575.5,195.9,765.9,301.5C3710,3236.7,3743.7,3227.7,3779.6,3218.3z" class="st22"></path>%0A%09<g>%0A%09%09<path d="M4484.2,1461.7v1181h488.7v-1181H4484.2z M4939.2,2561.4h-421.4v-539.8h421.4%0A%09%09%09V2561.4z M4939.2,1982.4h-421.4v-485.5h421.4V1982.4z" class="Graphic_x0020_Style_x0020_107"></path>%0A%09%09<rect height="485.5" width="355.8" class="Graphic_x0020_Style_x0020_118" y="1496.9" x="4583.5"></rect>%0A%09%09<rect height="485.5" width="65.6" class="Graphic_x0020_Style_x0020_119" y="1496.9" x="4517.8"></rect>%0A%09%09<rect height="539.8" width="80.1" class="Graphic_x0020_Style_x0020_119" y="2021.5" x="4517.8"></rect>%0A%09%09<rect height="539.8" width="341.3" class="Graphic_x0020_Style_x0020_118" y="2021.5" x="4597.9"></rect>%0A%09%09<polygon points="5067.7,1559.5 4972.9,1461.7 4975.8,2765.4 5070.3,2765.4" class="Graphic_x0020_Style_x0020_110"></polygon>%0A%09</g>%0A%09<g>%0A%09%09<polyline points="2442.7,2752.3 2386.8,2825.9 2352.6,2827.7 2416.8,2743.1 2832.6,2738.3 %0A%09%09%092839.9,2747.7" class="Graphic_x0020_Style_x0020_117"></polyline>%0A%09%09<polygon points="2832.6,2738.3 2416.8,2743.1 2352.6,2827.7 2134.5,2839.2 2105.5,2724.6 %0A%09%09%092798.5,2694.4" class="Graphic_x0020_Style_x0020_117"></polygon>%0A%09%09<polygon points="3202.8,2854.8 2364.9,2854.8 2386.8,2825.9 2442.7,2752.3 2839.9,2747.7 %0A%09%09%093134.1,2744.3" class="Graphic_x0020_Style_x0020_117"></polygon>%0A%09%09<polygon points="2839.5,2730.9 2805.3,2687.1 2112.4,2717.2 2141.4,2831.8 2359.4,2820.3 %0A%09%09%092393.7,2818.5 2449.6,2745 2846.8,2740.3" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09%09<polygon points="3202.8,2848.8 2364.9,2848.8 2386.8,2819.9 2442.7,2746.3 2839.9,2741.7 %0A%09%09%093134.1,2738.3" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09</g>%0A%09<g>%0A%09%09<path d="M3326.7,2053.5c67.2,11.8,127,45.4,188.5,75.5c-25.6-21.6-54.4-38-66.9-44.7c-69.9-65-238.4-55.8-331.3-54.5%0A%09%09%09c-56.7,0.8-107.4,28.8-147.4,65.5C3076.9,2034.1,3204.5,2033.1,3326.7,2053.5z" class="st23"></path>%0A%09%09<path d="M3390.7,2125.6c29.4,10.7,40.1,48.1,64.1,69.5c33.5,30.3,76.4,36.8,117.6,27.5c-4-13-8.3-25.7-12.8-37.7%0A%09%09%09c-7.5-20.2-25.1-39.4-44.4-55.7c-61.4-30.2-121.3-63.8-188.5-75.5c-6.7-1.1-13.5-2.2-20.2-3.1c2.5,4.5,4.8,9.1,6.8,13.8%0A%09%09%09c6.9,18.8,10.9,38,12.4,57.2C3347.5,2119.7,3369.7,2120.3,3390.7,2125.6z" class="st23"></path>%0A%09%09<path d="M3454.8,2195c-24-21.4-34.7-58.8-64.1-69.5c-21.1-5.3-43.3-5.9-65.1-4.2c6.4,84.5-36.4,169.9-95.2,228.6%0A%09%09%09c-29.4,32.1-61.4,58.8-101.5,82.8c-32.1,21.4-66.8,37.4-101.5,53.4c-41.6,14.5-81.5,4.8-119.8-10.2c3.7,32.6,11.1,70.7,27.1,85.4%0A%09%09%09c2.2,2,149.9,56.5,246.1,29.3c130.3-36.9,227.4-163.5,314.2-210.2c10.9-5.9,21.4-12.4,31.4-19.5l-0.4-14l53.6-33.2%0A%09%09%09c3.8-4.2,7.6-8.5,11.2-12.9c-4.1-26.8-10.7-53.3-18.4-78.3C3531.3,2231.8,3488.3,2225.3,3454.8,2195z" class="st24"></path>%0A%09%09<path d="M2963.9,2113.7l-74.4,244.3c3.2,19.6,7.7,41,13.7,64.4c0.8-0.5,1.1,24.3,4.3,53.6%0A%09%09%09c38.3,15.1,78.3,24.8,119.8,10.2c34.7-16,69.5-32.1,101.5-53.4c40.1-24,72.1-50.8,101.5-82.8c65-65,110.5-162.6,91.4-255.6%0A%09%09%09C3210,2135.2,3083,2108.6,2963.9,2113.7z" class="st25"></path>%0A%09%09<path d="M3321.8,2094.4c-2.1-10.2-4.9-20.2-8.6-30.2c-2-4.6-4.2-9.2-6.8-13.8c-116-16.9-235.4-12.9-336.9,44.9%0A%09%09%09l-5.6,18.4C3083,2108.6,3210,2135.2,3321.8,2094.4z" class="st26"></path>%0A%09%09<path d="M3590.8,2300.8c-3.6,4.4-7.4,8.7-11.2,12.9l12-7.5C3591.4,2304.4,3591.1,2302.6,3590.8,2300.8z" class="st9"></path>%0A%09%09<g>%0A%09%09%09<path d="M3452.4,2090.3c-50.3-112.2-85.1-243.7-193.4-309.5c-17.4-9.7-50.3-13.5-71.6,3.9%0A%09%09%09%09c-34.5,27-36.4,68-35.6,109.5c51.1,42.2,96.7,74.2,118.4,75.2c65,3,117,150.1,192.8,215.4c35.5,30.6,78.2,23.7,113.6,7.7%0A%09%09%09%09c-19.8-3.7-39.3-11.4-54.6-19C3487.2,2158,3467.9,2123.1,3452.4,2090.3z" class="Graphic_x0020_Style_x0020_116"></path>%0A%09%09%09<path d="M3489,1994.5c-13.8-96.5-49-197.2-111.1-242.1c-62.1-44.9-38.1-160-114.8-199.7%0A%09%09%09%09c-190.3-102-287.5,4.8-333,55.2c-45.5,50.3-4.1,77.2-4.1,77.2s123.9,124.8,225.9,209c-0.9-41.4,1-82.4,35.6-109.5%0A%09%09%09%09c21.3-17.4,54.2-13.5,71.6-3.9c108.3,65.8,143.1,197.3,193.4,309.5c15.5,32.9,34.8,67.7,69.6,83.2c15.3,7.7,34.8,15.3,54.6,19%0A%09%09%09%09c40.3-18.2,71.2-48.2,71.2-48.2S3502.8,2091.1,3489,1994.5z" class="Graphic_x0020_Style_x0020_108"></path>%0A%09%09%09<path d="M3182.3,2144.3c-13.4-74.8,34.7-189.7-58.8-221.7c-16-61.4,5.3-128.2-37.4-184.3%0A%09%09%09%09c-33.7-46.4-75.8-81.1-127.5-97.6c-15.4,4-42.2,14-46.3,24.6c-13.8,35.6-24.4,108.3-3.6,195.1c19.9,94,53.6,191.2,151.7,162.7%0A%09%09%09%09c51,68.9,51,103.4,48.3,128.2c25.3,30.5,60,37.2,94.1,32.1C3192.8,2173.6,3185.5,2160.8,3182.3,2144.3z" class="st16"></path>%0A%09%09%09<path d="M3314.2,2124.9c-5.5-129.6-75.8-207-93.8-211.7c30.3-46.1,33.1-82-6.9-106.8%0A%09%09%09%09c-40-24.8-57.9,67.6-57.9,67.6s-19.3,18-16-3.3c17.7-114.7-62.5-214-170.5-231.9c-1.2-0.2-5.1,0.5-10.4,1.9%0A%09%09%09%09c51.7,16.5,93.8,51.2,127.5,97.6c42.7,56.1,21.4,122.9,37.4,184.3c93.5,32.1,45.4,146.9,58.8,221.7c3.1,16.5,10.5,29.3,20.4,38.9%0A%09%09%09%09C3250.3,2176,3296.5,2145.8,3314.2,2124.9z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09%09<path d="M2969,1635.8c0,0,75.2,27.2,72.4,70.7c-2.8,43.5-9.8,77.5,56.3,98.1c-31.6-35.6-34.2-44-26.9-86.3%0A%09%09%09%09S3035.8,1587.8,2969,1635.8z" class="st17"></path>%0A%09%09%09<path d="M2789.6,2288.5c-77.5,101.5-203,106.9-323.3,128.2c-27.7,5.9-43.7,28.1-64.3,43.4%0A%09%09%09%09c7.2,13.8,19.1,27.9,28,39.8c0.5-0.1,1.1-0.3,1.6-0.4c159.5-16.7,359.4-29.1,470.9-150.7l-0.1-16l61-218.3%0A%09%09%09%09c-27.4,9-56.1,12.8-77.6,32.4C2837.7,2184.3,2824.3,2243.1,2789.6,2288.5z" class="st25"></path>%0A%09%09%09<path d="M3017.4,2050.7c-17.9,4.3-35.5,9.7-52.8,16.1c-58.6,21.8-113.1,55-149.7,106.6%0A%09%09%09%09c-16.4,23.2-29.7,48.3-42.2,73.7c-5.8,11.7-11.7,21.5-19.5,31.9c-8.1,10.8-17.8,20.2-27.8,29.2c-21.9,19.5-47.7,34.4-75.4,44.1%0A%09%09%09%09c-33.1,11.6-67.9,16.1-101.5,25.4c-82.7,23-147.1,41.1-152.6,60.5c-0.2,7,2.3,14.5,6.2,22c20.6-15.4,36.6-37.5,64.3-43.4%0A%09%09%09%09c120.2-21.4,245.8-26.7,323.3-128.2c34.7-45.4,48.1-104.2,96.2-141.6c21.5-19.6,50.2-23.4,77.6-32.4l5.1-18.3%0A%09%09%09%09c11-10.8,16.7-15,29.5-24.1c14.7-10.5,30.5-19.7,47.1-26.7c0.1-0.2,0.2-0.4,0.3-0.6C3036,2046.5,3026.6,2048.4,3017.4,2050.7z" class="st23"></path>%0A%09%09%09<path d="M3045.4,2044.9c-0.1,0.2-0.2,0.4-0.3,0.6c0.7-0.3,1.4-0.6,2.1-0.9%0A%09%09%09%09C3046.6,2044.7,3046,2044.8,3045.4,2044.9z" class="Graphic_x0020_Style_x0020_100"></path>%0A%09%09%09<path d="M2431.6,2499.6c-0.5,0.1-1.1,0.3-1.6,0.4c0.9,1.2,1.8,2.4,2.6,3.6c10.8,15.3,7.8,45,49.1,42.6%0A%09%09%09%09c30.8-6,230-18.7,273.3-29.7c32-8.2,82.2-26.3,148.2-94.1l-0.7-73.5C2791,2470.5,2591.1,2482.9,2431.6,2499.6z" class="st24"></path>%0A%09%09%09<path d="M2398.2,2439.8c0,0,40.7-31.7,69.6,4.1c29,35.9,49.3,96,29,100.7c-20.4,4.6-65.8,2.1-87-35.2%0A%09%09%09%09C2388.5,2472.2,2387.5,2454.3,2398.2,2439.8z" class="st27"></path>%0A%09%09%09<path d="M3350.7,1877.1c18.7-58.6,71.9-104,69.5-165.2c-4.1,1.2-8.2,5.1-10.8,12.5c-7.6,21.4-71.4,103.8-71.4,103.8%0A%09%09%09%09s0,0,3.8-22.1s1.4-35.5-9.7-36.9c-11-1.4-18.3,10.3-18.3,10.3c1-31-13.4-29.3-23.4-27.6c-10,1.7-9.3,51.4-10,64.8%0A%09%09%09%09c-0.7,13.4-15.2,26.9-20-4.1c-2.8-35.9-40.7-71.7-51.7-66.9c-11,4.8,14.8,62,13.1,94.5c-1.7,32.4-20,100.7-5.5,148.2%0A%09%09%09%09c14.5,47.6-3.4,102-3.4,102l85.3,21.2c4.2-67.5,4.5-134.6,44.5-197.1C3350.7,1903.8,3348,1890.5,3350.7,1877.1z" class="st16"></path>%0A%09%09%09<path d="M3420.1,1711.9c2.4,61.2-50.8,106.6-69.5,165.2c-2.7,13.4,0,26.7-8,37.4%0A%09%09%09%09c-40,62.5-40.2,129.7-44.5,197.1l22.9,5.7c0,0-3.5-115.8,17.2-141.3c20.7-25.5,15.2-80,25.3-108.9c10.1-29,71.3-117.9,72-137.2%0A%09%09%09%09C3436,1717.3,3427.9,1709.7,3420.1,1711.9z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09%09<path d="M3305.2,1839.7c-0.4,0.9,11-56.8,9-67.2c4.3,1.6,4.3,1.6,4.3,1.6S3312.8,1824.1,3305.2,1839.7z" class="st9"></path>%0A%09%09%09<g>%0A%09%09%09%09<polygon points="2369.1,2558.8 2880.5,2623.2 2325,2668.2 1891.1,2604.1" class="Graphic_x0020_Style_x0020_115"></polygon>%0A%09%09%09%09<polygon points="2264.3,2566.5 2626.8,2624.8 2334.4,2648.9 2170.4,2611.3" class="Graphic_x0020_Style_x0020_109"></polygon>%0A%09%09%09%09<path d="M2421.8,2452.1c-5.6-0.2-22.6,8.6-22.6,8.6s-13.8-44.1-80.7-43.4s-64.8,65.5-64.8,65.5s5.5,77.2,26.9,93.1%0A%09%09%09%09%09c21.4,15.9,99.3,4.1,102.4,0c3.1-4.1,45.3-6.9,66.9-30.3c21.6-23.4,33.5-24.4,33.5-24.4S2463.5,2453.5,2421.8,2452.1z" class="st16"></path>%0A%09%09%09%09<path d="M2319.3,2460c0,0-45.5,32.4-15.2,90.3c-6.8,0.6-6.8,0.6-6.8,0.6%0A%09%09%09%09%09S2262.7,2493.1,2319.3,2460z" class="Graphic_x0020_Style_x0020_104"></path>%0A%09%09%09%09<path d="M2376.8,2552.2c0,0-56.9-11.2-43.1-33.6c13.8-22.4,45.5-15.9,46.9-24.5%0A%09%09%09%09%09c1.4-8.6-15.9-23.8-21.7-14.5c-5.9,9.3-15.5,25.2-15.5,25.2s-24.1,6.2-17.9,23.1c6.2,16.9,33.8,15.5,6.2,16.9%0A%09%09%09%09%09c-27.6,1.4-39.6,0-39.6,0s-7.4,36.2,7.3,37.5c14.7,1.4,61.6,6.9,105-10.3c43.4-17.2,43.8-24.7,43.8-24.7%0A%09%09%09%09%09S2401.3,2559.2,2376.8,2552.2z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09%09%09<polygon points="2331,2682 2848.1,2642 2880.5,2623.2 2322,2668.2 1885.6,2604.1 %0A%09%09%09%09%091893.9,2613.5" class="Graphic_x0020_Style_x0020_109"></polygon>%0A%09%09%09%09<path d="M1784.9,2001.5l427.1,0.5l15.9,3c18.3,3.5,31.9,18.7,33.5,37.3c9.9,120.2,38.5,538.8,42.7,616.9%0A%09%09%09%09%09c0.3,6.5-11.2,15-17.7,14.2l-444.6-65.8L1784.9,2001.5z" class="st28"></path>%0A%09%09%09%09<path d="M1794.6,1993.3l411.5,8.2c15.8,0.3,28.8,12.5,30.1,28.3c10.4,126.7,52.8,644.5,49.2,643.3%0A%09%09%09%09%09c-3.6-1.2-348.6-51.6-443.5-65.4c-14.1-2.1-24.9-13.4-26.2-27.6l-52.4-553C1761.5,2008.7,1776.2,1992.9,1794.6,1993.3z" class="st29"></path>%0A%09%09%09</g>%0A%09%09%09<path d="M3465.5,2285.9c-5.8-29.1-28.6-54-57-68.5c9.3,57-21.2,85.5-21.2,85.5c-6.8,3.4-40.2,78.1-48.3,71.7%0A%09%09%09%09c-4.1-3.3-5.8-14.7-6.3-29.4c-17.3-67.3-4-136.5-11.5-203.5c-2.3-18.1-0.7-36.2-6.7-52.6c-6.5-5.5-15.7-10.3-27.9-14.4%0A%09%09%09%09c0.8,120.3-17.7,240.4,10.5,355.6c8,37.4,77.5,16,112.2-8C3452.2,2392.7,3478.9,2339.3,3465.5,2285.9z" class="st24"></path>%0A%09%09%09<path d="M3332.7,2345.1c-0.9-27.1,2.3-65.1,1.7-83.5c-0.9-28.4,4.6-84.2-6.4-147.7c-0.5-9.3-4.6-17.6-13.4-24.9%0A%09%09%09%09c5.9,16.5,4.4,34.5,6.7,52.6C3328.7,2208.5,3315.4,2277.8,3332.7,2345.1z" class="st27"></path>%0A%09%09%09<path d="M3591.6,2306.2l-189.3-113.8c2.9,8.8,4.9,17.1,6.2,24.9c28.4,14.5,51.2,39.4,57,68.5%0A%09%09%09%09c4.9,19.6,4.4,39.1-0.3,57.5c36.8,33.3,76.9,62.3,118.5,89.3C3596.9,2393.5,3597.6,2349.6,3591.6,2306.2z" class="st24"></path>%0A%09%09%09<path d="M3226.7,2062.8c-4.2-0.5-8.6-0.9-13.2-1.3c-89.6,102-96.5,485.4-63.4,524c10.1,11.8,36.5,17.9,71.6,18.6%0A%09%09%09%09c-2.7-1.6-5.1-3.5-7.3-5.6C3080,2450.9,3137.9,2222.8,3226.7,2062.8z" class="st23"></path>%0A%09%09%09<path d="M3465.3,2343.4c-8.1,31.8-28.7,60.1-55.8,78.8c-34.7,24-104.2,45.4-112.2,8%0A%09%09%09%09c-28.2-115.2-9.7-235.3-10.5-355.6c-15.1-5.1-34.8-9.1-60-11.8c-88.8,160-146.7,388.1-12.3,535.7c2.1,2.1,4.6,4,7.3,5.6%0A%09%09%09%09c79.8,1.5,205-25.2,288.3-77.9c38.4-24.3,61.5-56.9,73.7-93.5C3542.2,2405.6,3502.1,2376.6,3465.3,2343.4z" class="st25"></path>%0A%09%09</g>%0A%09%09<path d="M3123.6,1922.5c3.2,5.9-36.5,92.1-63.1,100.4c35,56.6,28,41.3,37.6,63.1c63.2-44,78.1-61.9,78.3-92.2%0A%09%09%09C3177.1,1914.4,3123.6,1922.5,3123.6,1922.5z" class="st30"></path>%0A%09</g>%0A%09<g>%0A%09%09<path d="M3972.8,2436.5c-19.3-100.6-1.9-197.3,30.9-292.1c1.9-7.7,9.7-13.5,11.6-23.2%0A%09%09%09c13.5-58,34.8-108.3,58-160.5c1.9-7.7,1.9-15.5,3.9-23.2c1.5-4.4,6.3-7.7,9.3-11.5c-108.6,18.8-247.9,49.9-313.3,64.9%0A%09%09%09c22.2,33.7,40.9,69.3,52.5,109.1c3.9,7.7,13.5,13.5,17.4,21.3c3.9,5.8,0,11.6,3.9,17.4c11.6,15.5,21.3,29,25.1,48.4%0A%09%09%09c1.9,3.9,7.7,5.8,7.7,9.7c0,94.8,7.7,189.6,0,284.3c-6.7,72.9-22.6,143.8-37.3,214.7c84.9-0.2,183-1.6,281.4-2.7%0A%09%09%09c-52.2-58.4-91.1-128-129.9-198.4C3984.4,2475.2,3976.6,2455.8,3972.8,2436.5z" class="Graphic_x0020_Style_x0020_114"></path>%0A%09%09<path d="M4194.9,2483.6c82.8-18.7,163-5.3,237.8,48.1c8,8,26.7,5.3,37.4,0%0A%09%09%09c58.6-34.6,128.4-61.3,198-68.7c-150.8-225.4-393-546.7-446.5-551.9c-23.2-2.2-74.3,4.4-135,14.8c-3.1,3.9-7.9,7.1-9.3,11.5%0A%09%09%09c-1.9,7.7-1.9,15.5-3.9,23.2c-23.2,52.2-44.5,102.5-58,160.5c-1.9,9.7-9.7,15.5-11.6,23.2c-32.9,94.8-50.3,191.5-30.9,292.1%0A%09%09%09c3.3,16.6,9.5,33.3,17.3,49.9C4050.6,2508.5,4130.6,2499.3,4194.9,2483.6z" class="Graphic_x0020_Style_x0020_105"></path>%0A%09%09<path d="M4470.1,2531.7c-10.7,5.3-29.4,8-37.4,0c-74.8-53.4-155-66.8-237.8-48.1%0A%09%09%09c-64.3,15.7-144.3,24.9-204.8,2.8c1.3,2.7,2.6,5.4,3.9,8.1c38.9,70.4,77.7,140.1,129.9,198.4c233-2.6,467.2-3.9,529.1,13.9%0A%09%09%09c110.3,31.7,131,20.7,137.9-30.3c2.3-16.7-49.5-103.7-123-213.5C4598.5,2470.4,4528.6,2497,4470.1,2531.7z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09%09<path d="M3879.9,2196.6c0-3.9-5.8-5.8-7.7-9.7c-3.9-19.3-13.5-32.9-25.1-48.4c-3.9-5.8,0-11.6-3.9-17.4%0A%09%09%09c-3.9-7.7-13.5-13.5-17.4-21.3c-11.6-39.8-30.4-75.4-52.5-109.1c-23.2,5.3-37.1,8.6-37.1,8.6s-76.6,50.8-73.5,108.1%0A%09%09%09c3.1,57.3,7.7,545.5-0.1,585.4c44.9,2.2,107.7,2.8,180,2.6c14.8-70.9,30.6-141.8,37.3-214.7%0A%09%09%09C3887.6,2386.2,3879.9,2291.4,3879.9,2196.6z" class="st31"></path>%0A%09%09<path d="M3622.6,2308.8c7.7-30.9,11.6-63.8,40.6-85.1c3.9-3.9,1.9-9.7,5.8-13.5c21.7-17.1,39.8-41.6,63-53.7%0A%09%09%09c-6.4-58.7-17.6-101.8-29.1-95c-30.3,17.9-474.3,322.7-497.1,369.5s-42.1,123.7,13.1,152.8c0,0-20.7-133.5,59.3-157%0A%09%09%09c80-23.4,155.8,45.5,157.2,51c0.7,2.8,16.3,25.9,31.7,46.8c24.5-12.2,48.8-24.7,72.3-41.8%0A%09%09%09C3593.6,2440.4,3609.1,2376.5,3622.6,2308.8z" class="st32"></path>%0A%09%09<path d="M3669.1,2210.2c-3.9,3.9-1.9,9.7-5.8,13.5c-29,21.3-32.9,54.2-40.6,85.1c-13.5,67.7-29,131.5-83.2,174.1%0A%09%09%09c-23.4,17.1-47.7,29.6-72.3,41.8c14.9,20.3,29.7,38.6,30.4,34.1c1.4-9.2,146.2-90.6,205.5-136.8c36.9-28.8,39.6-168.5,29.1-265.5%0A%09%09%09C3708.8,2168.5,3690.8,2193.1,3669.1,2210.2z" class="st31"></path>%0A%09%09<path d="M3252.8,2424.8c-14.7,6.4-25.2,15.5-32.7,25.8c33.5,31.1,84.8,42,119.8,22.2c22.9-10.4,45.8-17.6,64.9-32.9%0A%09%09%09c-0.9-0.6-1.9-1.3-3.1-2.1C3385.9,2421.4,3321.1,2395.2,3252.8,2424.8z" class="st16"></path>%0A%09%09<path d="M3220.1,2450.6c-5.4,7.5-9.3,15.6-11.9,23.8c11.3,29.8,34.2,55.9,59.6,75.9%0A%09%09%09c39.9,36.8,89.5,48.9,140.2,47.1l4-152.6c0,0,0,0-7.2-4.8c-19.1,15.3-42,22.5-64.9,32.9%0A%09%09%09C3304.9,2492.6,3253.6,2481.7,3220.1,2450.6z" class="Graphic_x0020_Style_x0020_113"></path>%0A%09%09<path d="M3267.8,2550.4c-25.4-20-48.3-46.1-59.6-75.9c-0.6,1.9-1.2,3.9-1.7,5.8%0A%09%09%09c-3.2,12.6-4,25-3.7,35.5c0.4,15.7,3.1,26.9,3.1,26.9s73.1,121.3,186.1,122.7c14.5-13.8,14.5-13.8,14.5-13.8l0.5-17.8l0.7-24.6%0A%09%09%09l0.3-11.9C3357.3,2599.3,3307.7,2587.2,3267.8,2550.4z" class="Graphic_x0020_Style_x0020_104"></path>%0A%09%09<path d="M3235.6,2602c0,0,20.6,1.7,15.5-3.8c-16.6-18-47.6-98.2-21.8-124.8c29.7-30.7,122.5-41.5,160.6-26.4%0A%09%09%09c-3.3-14.6-3.3-14.6-3.3-14.6s-76.5-31-120-13.1c-43.4,17.9-62.2,9.2-63.8,77c-1.7,67.8,9.5,101.6,23.2,107.8%0A%09%09%09C3239.7,2610.3,3235.6,2602,3235.6,2602z" class="st33"></path>%0A%09%09<path d="M3226,2604.1c0,0-34.8-98.6-3.2-143.2s183.6-37.2,209.7,22.5c15.9-4.6,15.9-4.6,15.9-4.6%0A%09%09%09s51.4-54.7-36.3-81.6c-87.8-26.9-216.5,9.7-228.4,92.5S3199.4,2597,3226,2604.1z" class="st20"></path>%0A%09%09<path d="M3340,2529c32.1-10.7,40.1-29.4,53.4-58.8c2.7-5.3,21.4,2.7,32.1-5.3%0A%09%09%09c34.7-32.1,80.1-48.1,120.2-32.1c9,3,17.6,7.1,26,11.5c-6.3-16.9-12.8-29.1-12.8-29.1s-3-1.5-7.6-3.6%0A%09%09%09c-11.7-5.4-33.9-14.8-44.8-14.3c-15.2,0.7-29.9,22.1-29.9,22.1s-32.8-9-49.4,0c-16.5,9-18.5,35.5-18.5,35.5s-15.9-1.7-33.9,7.3%0A%09%09%09s-6.2,37.2-6.2,37.2s-15.2-12.4-42.1,6.2c-20.5,12.6-13.4,51.1-1.3,85.4C3326.1,2565.1,3319.5,2533.5,3340,2529z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M3545.7,2432.8c-40.1-16-85.5,0-120.2,32.1c-10.7,8-29.4,0-32.1,5.3c-13.4,29.4-21.4,48.1-53.4,58.8%0A%09%09%09c-20.4,4.5-13.9,36.1-14.7,61.9c4.6,13,9.9,25.4,14.7,35.5c6.7,14.3,12.4,24,13.6,24.5c32.4,14.5,39.8-12.1,39.8-12.1%0A%09%09%09s7.4,27.2,34.4,26.6c27-0.6,13.8-43.4,13.8-43.4s36.8,33.1,54,29c17.2-4.1,4.1-42.1,4.1-42.1s23.4,27.6,48.3,21.4%0A%09%09%09c24.8-6.2-10.3-94-10.3-94s24.1,13.3,41.4-12.2c10.5-21.9,1.8-55.6-7.2-79.8C3563.2,2439.9,3554.7,2435.8,3545.7,2432.8z" class="st16"></path>%0A%09%09<path d="M3855.6,1746.2c-34.7-66.8-53.4-157.6-120.2-181.7c-70.3-26.7-149.3,8.2-227.2-3%0A%09%09%09c-21.3,43.8-31,95-34.5,140.3c-7.9,103.1,20.2,204.3,82.4,287.5c9.2,12.3,20.1,15.4,35.2,15.3c13.5-0.1,92.2-26.6,94.3-24.1%0A%09%09%09c0,0,89.2,104.8,138.8,155.4c3.9,4,7.6,7.6,11.1,10.9c41,38.7,55.1,33.2,55.1,33.2s66.2-16.5,80-60.7c13.8-44.1,68-261.3,68-261.3%0A%09%09%09s-2.5-6.5-5.6-15.8C3959.1,1845.2,3889.3,1813.7,3855.6,1746.2z" class="st16"></path>%0A%09%09<path d="M4022,1797.7c-2.8-24.8,81.8-357.6-168.2-366.8c-89.9-3.3-189,3.2-269.9,46.9%0A%09%09%09c-34.4,18.6-58.8,48.8-75.7,83.7c77.9,11.2,156.9-23.7,227.2,3c66.8,24,85.5,114.9,120.2,181.7c33.8,67.5,103.5,99,177.4,96.1%0A%09%09%09c-1.2-3.7-2.5-7.7-3.8-12.1C4026.1,1819.7,4023.1,1807.8,4022,1797.7z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M4069.8,1569.7c-23-40.4-27.6-96.5-46-109.4c-0.8-25.3-12.8-44.3-33.2-58.9%0A%09%09%09c-26.3-18.9-66.6-30.6-114.7-39.4c-85.5-15.6-326.4,68.3-388.9,41.2c-46.2-20-44.1,85.7-44.1,85.7s-0.6,8.6,2.7,18.9%0A%09%09%09c0.8,2.6,1.9,5.3,3.4,8c6.8,13.1,21.3,26,51.9,25.5c61.6-0.9,148-35.8,156.3-17.5c8.3,18.4,0.9,143.8,12.9,163.8%0A%09%09%09c4.5,0.7,8.3,1.3,11.5,1.8c16,2.6,16,2.6,16,2.6s1.8-85.5,55.2-84.1c18.2,0.5,37.2,5.3,55.1,14.9c34.5,18.6,64.6,55.2,75.4,113.4%0A%09%09%09c16.6,88.2,147.1,77.2,147.1,77.2s2.3-7.5,5.9-19.9c5.1-17.8,12.8-45.6,20-75.9C4070,1659,4082.1,1591.2,4069.8,1569.7z" class="Graphic_x0020_Style_x0020_108"></path>%0A%09%09<polygon points="3720.5,1573.4 3453,1652.4 3452.3,1641 3736.1,1563.3" class="Graphic_x0020_Style_x0020_110"></polygon>%0A%09%09<path d="M3661.3,2544.8c-2.7-1-5.3-2.4-7.9-4.1c4.4,48.9,8.2,80.7,8.2,80.7l146.2-7.8%0A%09%09%09c0,0,5.8-43,13.8-101.1c-7.6,1.5-15.3,3.9-23,7.2C3756.1,2539,3707.8,2556.4,3661.3,2544.8z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09%09<path d="M3847.5,2157.6c-42.9-65.3-126-117.2-122.4-138.8c-110.1-35.4-87.2,349.7-71.6,521.9%0A%09%09%09c2.6,1.7,5.2,3.1,7.9,4.1c46.4,11.6,94.8-5.8,137.3-25.1c7.7-3.3,15.3-5.7,23-7.2c11.1-80.9,26.4-191.1,35.8-255.6%0A%09%09%09C3859.9,2240.5,3857.5,2172.8,3847.5,2157.6z" class="st32"></path>%0A%09%09<path d="M4242.6,2242.6c0,0,36.8,108.5,119.5,116.7c-13.8,52.4,206.2,183.4,206.2,183.4l9.8-23.8l-239.8-248.8%0A%09%09%09L4242.6,2242.6z" class="st34"></path>%0A%09%09<path d="M3298.6,2799c-8.5,5.6-14.3,9.3-14.8,9.1c-2.1-0.7-22.1,19.3-22.1,19.3%0A%09%09%09s33.8,2.8,36.5,0c0.5-0.5,4.9-3.2,11.4-7C3308.5,2811.6,3304.6,2802.8,3298.6,2799z" class="Graphic_x0020_Style_x0020_108"></path>%0A%09%09<path d="M3379,2744c0,0-53.6,37.3-80.3,55c3.9,2.5,6.9,7,8.8,12.3l95.8-56.5%0A%09%09%09C3402.9,2747.5,3396.9,2742.8,3379,2744z" class="Graphic_x0020_Style_x0020_112"></path>%0A%09%09<path d="M3307.5,2811.4c1.1,2.9,1.8,6,2.3,9.1c26.5-15.5,89.9-50.9,89.9-50.9%0A%09%09%09c2.2-5.4,3.8-10.5,3.6-14.7L3307.5,2811.4z" class="Graphic_x0020_Style_x0020_110"></path>%0A%09%09<path d="M4750.6,2686.6c-104.2,18.7-203,5.3-304.6,0c-109.5-2.7-227.1-26.7-334,16%0A%09%09%09c-80.1,29.4-171-21.4-261.8-2.7c-64.6,14.9-126.9,34.4-189.1,52.1c1.8,0.1,3.8,0.2,6,0.2c37.2,0,155.8-45.5,257.9-29%0A%09%09%09s212.4,30.3,251-6.9c96.5,5.5,601.2,41.4,650.9,26.2c10.9-23.2,13.8-50.2,10.6-77.7C4808.9,2673.1,4780.3,2680.7,4750.6,2686.6z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M4112.1,2702.6c106.9-42.7,224.4-18.7,334-16c101.5,5.3,200.4,18.7,304.6,0c29.7-5.9,58.4-13.5,86.9-21.6%0A%09%09%09c-9.7-83.3-75.3-171.2-141.6-173.3c-45.6,12.2-90.4,22.8-134.1,31.9c-331.1,69.3-596.5,55.3-657.4,37%0A%09%09%09c-68.9-20.7-170.7,19.4-243.8,51.1c-73.1,31.7-122,56.6-95.8,74.6c-0.8,1.2-5,6.1-5.1,9.5c-0.1,3.5-5.8,5.5-8.7,8.7%0A%09%09%09c-8.6,9.5-7.7,26.2,7.4,27.1c1.8,0.1,3.6,0.3,5.3,0.6c20,3.4,31.7,17.6,60.9,4.9c30.3-4.1,30.3-4.1,30.3-4.1s-21.9,17.1,6.4,19.1%0A%09%09%09c62.2-17.7,124.5-37.2,189.1-52.1C3941.1,2681.3,4031.9,2732,4112.1,2702.6z" class="st16"></path>%0A%09%09<path d="M5017.7,2587.8c-2.7-5.3,2.7-13.4,0-18.7c-37.4-72.1-72.1-141.6-130.9-195%0A%09%09%09c-45.4-42.7-96.2-77.5-141.6-120.2c-64.1-53.4-101.5-125.6-173.7-165.6c-80.1-45.4-157.6-88.2-243.1-120.2%0A%09%09%09c-56.1-18.7-114.9-8-173.7-10.7c-8,0-13.4-8-18.7-8c-26.9-3.6-52.7-12-77.2-22.8l-4.1,6.3l-47.1,153.2l241.3,154.8%0A%09%09%09c0.7,4.9,2.5,10,5.3,15.1c70.7-21.4,153.8-12.5,210.4,35.3c58.8,50.8,77.5,133.6,138.9,176.3c50.8,37.4,117.6,48.1,155,101.5%0A%09%09%09c26.3,32.9,23.8,78.3-4.4,111.2c16.3,20,31.9,41.7,46.4,65.4c43.6,17.7,172.5,20.1,226.6-52.4%0A%09%09%09C5038.9,2660.1,5036.7,2621.8,5017.7,2587.8z" class="Graphic_x0020_Style_x0020_105"></path>%0A%09%09<path d="M4666.9,2134.6c-215.1-230.3-311.2-220.2-404.5-226.6%0A%09%09%09c-58.4-29.4-93.8-48.3-120.4-4.6c-12.4-21.6-57-17.5-57-17.5l-26.1,40.5c24.5,10.8,50.2,19.2,77.2,22.8c5.3,0,10.7,8,18.7,8%0A%09%09%09c58.8,2.7,117.6-8,173.7,10.7c85.5,32.1,163,74.8,243.1,120.2c72.1,40.1,109.5,112.2,173.7,165.6c45.4,42.7,96.2,77.5,141.6,120.2%0A%09%09%09c58.8,53.4,93.5,122.9,130.9,195c2.7,5.3-2.7,13.4,0,18.7c18.9,34.1,21.2,72.4,9.5,105.5c14.4-19.2,23.5-43.8,24.4-74.7%0A%09%09%09C5055.7,2471,4882,2364.8,4666.9,2134.6z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09%09<path d="M4758.6,2569.1c-37.4-53.4-104.2-64.1-155-101.5%0A%09%09%09c-61.4-42.7-80.1-125.6-138.9-176.3c-56.5-47.8-139.6-56.7-210.4-35.3c25.1,47.2,127.1,102.1,127.1,102.1s20.7,44.1,55.2,84.1%0A%09%09%09c30.5,35.4,193.5,85.8,317.6,238.2C4782.4,2647.3,4784.9,2601.9,4758.6,2569.1z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09%09<path d="M3715.8,2015.7l-33.4,5.8c0,0,86.9,194.9,81.4,227c99.3-46.4,98.4-56.1,98.4-56.1%0A%09%09%09l-7.4-38.1C3852.2,2113.2,3774.4,2063.6,3715.8,2015.7z" class="Graphic_x0020_Style_x0020_100"></path>%0A%09%09<path d="M4035.3,1825.7c0,0-127.3,345.2-108.9,400.3c60.7-14.7,108.9,4.6,108.9,4.6%0A%09%09%09s-11.5-222.5,55.6-345.6C4061.5,1845.5,4035.3,1825.7,4035.3,1825.7z" class="Graphic_x0020_Style_x0020_100"></path>%0A%09%09<path d="M3654.8,2733l130-51c-71.4,10.3-156.4,53.6-160.3,55.2C3633.4,2740.2,3654.8,2733,3654.8,2733z" class="st18"></path>%0A%09%09<path d="M3576.1,2735.8c0,0,55.9-47.6,182.8-76.5c-16.5-5.5-133.9,28.9-190.4,74.1%0A%09%09%09C3573.4,2738.5,3576.1,2735.8,3576.1,2735.8z" class="st18"></path>%0A%09%09<path d="M3558,2699.3c0,0,110.1-70.4,179-82.8c-35.9-12.4-176.2,71.6-176.2,71.6L3558,2699.3z" class="st18"></path>%0A%09%09<path d="M3834.5,1885.6c0,0-102,90.4-148.9,95c48.7,53.3,78.2,78.6,99.3,89.2%0A%09%09%09c0-99.3,91.9-168.2,83.7-237.2c-8.3-68.9-6.4-64.3-6.4-64.3S3863,1851.2,3834.5,1885.6z" class="Graphic_x0020_Style_x0020_104"></path>%0A%09%09<path d="M4897.2,2712.3c-24.8-45.5-111.6-233-210.3-220.6c0,0-65.2,9.2-99.4,20.8c-1.1,12.9,9.7,22,21.7,26.5%0A%09%09%09c104.1,32,201.6,111.9,214.5,216.4c41.8,6.1,86.6,20.3,88.3-2.4C4912.3,2747.3,4901.4,2720.1,4897.2,2712.3z" class="st20"></path>%0A%09%09<path d="M4609.1,2539c-12-4.5-22.8-13.6-21.7-26.5c-9.2,3.1-16.2,6.4-19,9.7c149.6,89.2,160.1,153.2,228.5,227.8%0A%09%09%09c9,2.3,18,4.1,26.7,5.4C4810.8,2650.9,4713.3,2571,4609.1,2539z" class="st35"></path>%0A%09%09<path d="M3389.9,2642.1c0,0-40.9-81.4-37.1-99.3c3.8-17.9-3.1-35.9,15.9-43.4c-6.2,13.8-11,29-10,45.5%0A%09%09%09c1,16.5,34.6,94,34.6,94L3389.9,2642.1z" class="st18"></path>%0A%09%09<path d="M3407,2460.9c0,0-9.2,34.9-1.9,66.6c7.4,31.7,30.8,93.9,37,97.1c6.2,3.2,6.2,3.2,6.2,3.2%0A%09%09%09S3398.3,2507.3,3407,2460.9z" class="st18"></path>%0A%09%09<path d="M3472.9,2418.4c0,0-17,55.4-15.2,76c1.8,20.7,41.7,120.8,41.7,120.8l2.9-3.5%0A%09%09%09c0,0-42.5-108.1-31.7-146c10.9-37.9,9.3-50.7,9.3-50.7L3472.9,2418.4z" class="Graphic_x0020_Style_x0020_104"></path>%0A%09%09<path d="M3537.6,2454.9c0,0-9.2,72.2,0,81.4s20.4,7.3,20.4,7.3S3539.9,2483.9,3537.6,2454.9z" class="st18"></path>%0A%09%09<path d="M3543.3,2484.1c0,0-7.6,38.4-5.8,52.2c0.7,5.4,2.5,11.2,5.6,16.5c7.7,6.5,16.6,9.4,25.4,1.7%0A%09%09%09c15.6-12.5,17.4-32.6,17.5-52.1c-0.7-2.3-1.4-4.6-2.2-7" class="st16"></path>%0A%09%09<g>%0A%09%09%09<polygon points="3466.8,1624.2 3466.8,1624.2 3466.8,1624.2" class="st9"></polygon>%0A%09%09%09<path d="M3516.4,1675.9c-7.1-21.6-14.1-34.6-21-42.6c-3.4-4-6.9-6.7-10.3-8.4%0A%09%09%09%09c-3.4-1.7-6.8-2.3-9.8-2.3c-3.4,0-6.3,0.8-8.6,1.5c-4.1,1.3-8,4.5-10.7,9.6c-2.7,5.1-4.4,12.1-4.4,21.5%0A%09%09%09%09c0,12.2,2.8,28.6,10.1,50.4c6.4,19,13.3,30.6,20.3,37.6c3.5,3.5,7.1,5.8,10.5,7.3c3.4,1.4,6.8,2,9.7,2c2.7,0,5.1-0.4,7.1-0.9%0A%09%09%09%09c2-0.5,3.5-1.1,4.4-1.4l0,0c2.9-0.9,6.2-3.2,8.5-7.4c2.3-4.2,3.8-10.1,3.8-18.4C3526.2,1713.3,3523.6,1697.9,3516.4,1675.9z%0A%09%09%09%09 M3515.7,1738.9c-1.5,2.6-3.1,3.5-4.1,3.8c-1.2,0.4-2.5,0.9-4,1.3c-1.5,0.4-3.3,0.7-5.1,0.7c-2,0-4.3-0.3-6.7-1.4%0A%09%09%09%09c-3.7-1.5-7.9-4.6-12.5-10.9c-4.6-6.2-9.4-15.6-14-29.3c-7.1-21.2-9.7-36.9-9.7-47.9c0-8.5,1.5-14.2,3.5-17.9%0A%09%09%09%09c2-3.6,4.2-5.2,6.2-5.8l0,0c2-0.6,4.1-1.1,6.3-1.1c2,0,4,0.4,6.3,1.5c3.5,1.7,7.7,5.3,12.4,12.6c4.7,7.2,9.7,18.1,14.9,33.8%0A%09%09%09%09c7.1,21.4,9.4,36.2,9.4,46C3518.5,1731.7,3517.1,1736.3,3515.7,1738.9z" class="Graphic_x0020_Style_x0020_110"></path>%0A%09%09</g>%0A%09</g>%0A%09<polygon points="4535.9,1753.6 4677.9,1982.4 4774.4,1982.4 4597.9,1697.5" class="Graphic_x0020_Style_x0020_109"></polygon>%0A%09<polygon points="4616.6,1659.7 4815.1,1982.4 4916.5,1982.4 4705.5,1586.9" class="Graphic_x0020_Style_x0020_105"></polygon>%0A%09<polygon points="4597.9,1697.5 4644.4,1704.9 4815.1,1982.4 4774.4,1982.4" class="Graphic_x0020_Style_x0020_108"></polygon>%0A%09<polygon points="4791.1,1650.6 4705.5,1586.9 4916.5,1982.4 4939.2,1982.4 4939.2,1925.9" class="Graphic_x0020_Style_x0020_107"></polygon>%0A%09<path d="M4590.7,1773.7c0,0,19.3-16,39,11c19.6,27-20.3,47.3-33.4,30.1%0A%09%09C4583.1,1797.4,4579.5,1778.2,4590.7,1773.7z" class="Graphic_x0020_Style_x0020_100"></path>%0A%09<path d="M4596.3,1780.1c0,0,13.5-11.2,27.3,7.7s-14.2,33.1-23.4,21.1%0A%09%09C4591,1796.7,4588.5,1783.2,4596.3,1780.1z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09<polygon points="4609.5,1841.2 4648,1821.1 4757.4,1982.4 4699.5,1982.4" class="Graphic_x0020_Style_x0020_105"></polygon>%0A%09<ellipse ry="38.6" rx="31.7" cy="1701" cx="4703.2" class="Graphic_x0020_Style_x0020_104"></ellipse>%0A%09<polygon points="4705.5,1762.7 4757.4,1724.1 4766.2,1734.7 4712.4,1768.9" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09<polygon points="4718.4,1793 4770.3,1754.3 4779,1764.9 4725.3,1799.2" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09<polygon points="4731.2,1823.2 4783.2,1784.6 4791.9,1795.1 4738.1,1829.4" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09<g>%0A%09%09<path d="M973.4,2494.7c-1.1-7.7-1.9-15.4-2.3-22.9c9.5-13.4,26.8-31.8,52.9-40.2c23.1-6.1,15.4-16.7,6-14.3%0A%09%09%09c-6.8,1.7-40.3,15-58.6,22.4c6.9-84.5,62.6-145.2,175.4-122.9c0,0,168.2-115.8,215,66.2c-26.6-8.7-77.4-22.7-81.8-5%0A%09%09%09c-5.6,22.6,45.1-7,86.4,25.8c2.5,13.6,4.5,28.6,5.7,45.1c0.4,18.1-4.3,37.3-12.2,56.6c-19.6-23.9-69.9-81.6-86.6-63.7%0A%09%09%09c-19.3,20.6,50.3,7.3,76.9,84.6c-10.3,19.7-23.2,39-36.6,56.7c-13.9-23.9-42.7-67.9-60.7-56.8c-7.2,6.3,6.6,15.6,21,31%0A%09%09%09c9.1,9.8,20.1,29.2,27,42.1c-32.6,40-64,68.5-64,68.5s-40.6-10.2-90-29.6c-2.2-17-5.6-50,0.5-58c8.3-10.9-3.5-21.2-17.7-9.4%0A%09%09%09c-11,9.1-13.4,36.4-10.2,55.9c-20.3-9-41-19.4-60.3-31.1c3.7-24.8,13.8-80.3,30.3-90.6c10.5-9.2,2.3-22.4-22.7-3.4%0A%09%09%09c-19.2,14.5-25.3,60.3-27.2,81.1C1004.8,2558,978.2,2528.6,973.4,2494.7z" class="st10"></path>%0A%09%09<path d="M1225.4,2633.4c0,0-71-217.9-78.6-316.8" class="st11"></path>%0A%09%09<path d="M1129.2,2552.6c0,0,15.4-40.3,50.3-75.4" class="st11"></path>%0A%09%09<path d="M1261.1,2488.4c0,0-59.5-46.7-90-43.7" class="st11"></path>%0A%09%09<path d="M1052.5,2468.5c0,0,69.2-57,107.6-70.5" class="st11"></path>%0A%09%09<path d="M1243.7,2349.5c0,0-52.8-23.4-93.7-5.9" class="st11"></path>%0A%09</g>%0A%09<path d="M3360.2,3327.1c-71.4-58-182.9-129.1-345.1-184.1c-329.3-111.6-176.9-187.3-303.6-225.2%0A%09%09s-430.3-22.5-784.9-68.8s-643.1-33.1-556-162c60.4-89.4,145-152.7,191.1-183.1l-109.7,8.4c-108.3,81.3-312.5,270.2,66.8,308.2%0A%09%09c486.5,48.7,1181.1,101.9,1192.6,208.2c9.2,84.8,440.1,200.1,610.2,307.3C3334,3333.3,3346.8,3330.3,3360.2,3327.1z" class="st22"></path>%0A%09<linearGradient y2="608.8419" x2="3633.9429" y1="608.8419" x1="3431.6741" gradientUnits="userSpaceOnUse" id="SVGID_9_">%0A%09%09<stop style="stop-color:%234085F0" offset="0"></stop>%0A%09%09<stop style="stop-color:%23275DC9" offset="1"></stop>%0A%09</linearGradient>%0A%09<ellipse ry="101.1" rx="101.1" cy="608.8" cx="3532.8" class="st36"></ellipse>%0A%09<linearGradient y2="3174.8586" x2="1457.2415" y1="3174.8586" x1="1136.8959" gradientUnits="userSpaceOnUse" id="SVGID_10_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23529BF7" offset="1"></stop>%0A%09</linearGradient>%0A%09<ellipse ry="106.3" rx="160.2" cy="3174.9" cx="1297.1" class="st37"></ellipse>%0A%09<linearGradient y2="2968.6479" x2="1266.5088" y1="2968.6479" x1="1085.6805" gradientUnits="userSpaceOnUse" id="SVGID_11_">%0A%09%09<stop style="stop-color:%234085F0" offset="0"></stop>%0A%09%09<stop style="stop-color:%23275DC9" offset="1"></stop>%0A%09</linearGradient>%0A%09<ellipse ry="60" rx="90.4" cy="2968.6" cx="1176.1" class="st38"></ellipse>%0A%09<linearGradient y2="3078.0559" x2="5051.6841" y1="3078.0559" x1="4866.0625" gradientUnits="userSpaceOnUse" id="SVGID_12_">%0A%09%09<stop style="stop-color:%234085F0" offset="0"></stop>%0A%09%09<stop style="stop-color:%23275DC9" offset="1"></stop>%0A%09</linearGradient>%0A%09<ellipse ry="92.8" rx="92.8" cy="3078.1" cx="4958.9" class="st39"></ellipse>%0A%09<path d="M2285.6,3438c0,0,206.8,24.5,420.7-87.7c42.5-28.4,62.6,33.1,35.4,53.2%0A%09%09c-27.2,20.1-168.9,100.4-399.3,87.4C2216,3486.1,2239.4,3435.8,2285.6,3438z" class="Graphic_x0020_Style_x0020_100"></path>%0A</g>%0A</svg>%0A';Ve();Bt();function Kf(){let e=me(),{setToken:t}=pe(),{ticket:n,unregisteredFromUrl:r}=useMemo(()=>{let c=new URLSearchParams(window.location.search);return {ticket:c.get("ticket"),unregisteredFromUrl:c.get("unregistered")==="true"}},[]),[o,i]=useState(r),{data:s,isLoading:l,error:a}=useQuery({queryKey:["ticket-login",n],queryFn:()=>e.get(`/api/usystem/user/login?ticket=${n}`),enabled:!!n,retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1});useEffect(()=>{s?.token?t(s.token):a&&"response"in a&&a.response?.status===403&&i(!0);},[s,a,t]);let u=useMemo(()=>()=>{if(i(!1),r){let c=new URL(window.location.href);c.searchParams.delete("unregistered"),window.history.replaceState({},"",c.toString());}},[r]);return {hasTicket:!!n,isLoading:l,error:a,isUnregistered:o,dismissUnregistered:u}}var J7=({extra:e,title:t})=>{let{token:n,mainPagePath:r}=pe(a=>a),{t:o}=Z(),{isLoading:i,isUnregistered:s,dismissUnregistered:l}=Kf();if(i)return jsx("div",{className:"w-screen h-screen flex justify-center items-center",children:jsx(Spin,{})});if(n){let a=!!window.location.hash,u=r;return a?(window.location.href=`${window.location.origin}${window.location.pathname}#${u}`,null):jsx(Navigate,{replace:!0,to:r})}return jsxs("div",{className:"w-screen h-screen relative flex overflow-hidden",children:[jsx("div",{className:"absolute top-16 right-16 z-10",children:e}),jsx("div",{className:"absolute left-14 top-6",children:jsxs(Space,{align:"center",children:[jsx(qr,{width:48}),t&&jsx("span",{className:"text-2xl font-bold",children:t})]})}),jsx("div",{className:"flex-1 flex justify-center items-center bg-slate-50",children:jsx("img",{src:Vf,alt:"background",className:"w-10/12"})}),jsx("div",{className:"w-[650px] relative top-0 left-0 right-0 bottom-0",children:jsx("div",{className:"absolute top-1/2 -translate-y-1/2 left-0 right-0",children:jsx("div",{className:"-translate-y-10 px-36",children:jsxs("div",{className:"flex flex-col justify-center",children:[jsx("div",{className:"h-10",children:s&&jsx(Alert,{banner:!0,closable:!0,message:o("SignIn.unregistered"),type:"error",onClose:l})}),jsx(Typography.Title,{level:2,children:o("SignIn.welcome")}),jsx("div",{className:"mt-4",children:jsxs(Form,{layout:"vertical",autoComplete:"off",children:[jsx(Form.Item,{label:o("global.username"),name:"username",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:o("global.password"),name:"password",rules:[{required:!0}],children:jsx(Input.Password,{})}),jsx(Form.Item,{children:jsx(Button,{block:!0,type:"primary",shape:"round",htmlType:"submit",children:o("global.signIn")})})]})}),jsx(Divider,{plain:!0,dashed:!0,children:o("SignIn.thirdParty")}),jsx("div",{className:"flex justify-center items-center",children:jsxs(Button,{block:!0,shape:"round",href:`${$a}/logout?service=${$a}/login?service=${window.location.href}`,target:"_self",children:[jsx(qr,{width:18}),o("SignIn.signInWithIDass")]})})]})})})})]})},e8=J7;St();Jr();/*! Bundled license information:
1218
+ `}},_t=e=>l1("light",e),Ft=e=>l1("dark",e);uo(["click","mousedown","input"]);});var c1={};cn(c1,{default:()=>N3});var V3,N3,u1=Q(()=>{Pa();po();V3=e=>{let[t,n]=Oi({prefix:"TanstackQueryDevtools"}),r=Ii(),o=F(()=>{let i=t.theme_preference||Ri;return i!=="system"?i:r()});return x(ko.Provider,{value:e,get children(){return x(qi,{localStore:t,setLocalStore:n,get children(){return x(Io.Provider,{value:o,get children(){return x(s1,{localStore:t,setLocalStore:n})}})}})}})},N3=V3;});var d1={};cn(d1,{default:()=>B3});var K3,B3,f1=Q(()=>{Pa();po();K3=e=>{let[t,n]=Oi({prefix:"TanstackQueryDevtools"}),r=Ii(),o=F(()=>{let i=t.theme_preference||Ri;return i!=="system"?i:r()});return x(ko.Provider,{value:e,get children(){return x(qi,{disabled:!0,localStore:t,setLocalStore:n,get children(){return x(Io.Provider,{value:o,get children(){return x(a1,{get children(){return x(ji,{localStore:t,setLocalStore:n,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},B3=K3;});var wr,Fo,Do,Lo,Wn,Ao,Cr,Sr,kr,Ir,Er,Oo,Pr,Ro,p1,g1,Tr,qo,zo,Vo,Yn,No,$r,Mr,_r,Fr,Dr,Ko,Lr,Ar,Bo,m1,h1,Ta=Q(()=>{po();g1=(p1=class{constructor(e){ke(this,wr);ke(this,Fo);ke(this,Do);ke(this,Lo);ke(this,Wn,!1);ke(this,Ao);ke(this,Cr);ke(this,Sr);ke(this,kr);ke(this,Ir);ke(this,Er);ke(this,Oo);ke(this,Pr);ke(this,Ro);let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:l,errorTypes:a,styleNonce:u,shadowDOMTarget:c,hideDisabledQueries:d}=e;Ce(this,wr,q(t)),Ce(this,Do,n),Ce(this,Lo,r),Ce(this,Fo,o),Ce(this,Ao,u),Ce(this,Cr,c),Ce(this,Sr,q(i)),Ce(this,kr,q(s)),Ce(this,Ir,q(l)),Ce(this,Er,q(a)),Ce(this,Oo,q(d));}setButtonPosition(e){ee(this,Sr)[1](e);}setPosition(e){ee(this,kr)[1](e);}setInitialIsOpen(e){ee(this,Ir)[1](e);}setErrorTypes(e){ee(this,Er)[1](e);}setClient(e){ee(this,wr)[1](e);}mount(e){if(ee(this,Wn))throw new Error("Devtools is already mounted");let t=Os(()=>{let n=this,[r]=ee(this,Sr),[o]=ee(this,kr),[i]=ee(this,Ir),[s]=ee(this,Er),[l]=ee(this,Oo),[a]=ee(this,wr),u;return ee(this,Pr)?u=ee(this,Pr):(u=As(()=>Promise.resolve().then(()=>(u1(),c1))),Ce(this,Pr,u)),Ks(ee(this,Ao),ee(this,Cr)),x(u,re({get queryFlavor(){return ee(n,Do)},get version(){return ee(n,Lo)},get onlineManager(){return ee(n,Fo)},get shadowDOMTarget(){return ee(n,Cr)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get hideDisabledQueries(){return l()}}))},e);Ce(this,Wn,!0),Ce(this,Ro,t);}unmount(){var e;if(!ee(this,Wn))throw new Error("Devtools is not mounted");(e=ee(this,Ro))==null||e.call(this),Ce(this,Wn,!1);}},wr=new WeakMap,Fo=new WeakMap,Do=new WeakMap,Lo=new WeakMap,Wn=new WeakMap,Ao=new WeakMap,Cr=new WeakMap,Sr=new WeakMap,kr=new WeakMap,Ir=new WeakMap,Er=new WeakMap,Oo=new WeakMap,Pr=new WeakMap,Ro=new WeakMap,p1),h1=(m1=class{constructor(e){ke(this,Tr);ke(this,qo);ke(this,zo);ke(this,Vo);ke(this,Yn,!1);ke(this,No);ke(this,$r);ke(this,Mr);ke(this,_r);ke(this,Fr);ke(this,Dr);ke(this,Ko);ke(this,Lr);ke(this,Ar);ke(this,Bo);let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:l,errorTypes:a,styleNonce:u,shadowDOMTarget:c,onClose:d,hideDisabledQueries:p}=e;Ce(this,Tr,q(t)),Ce(this,zo,n),Ce(this,Vo,r),Ce(this,qo,o),Ce(this,No,u),Ce(this,$r,c),Ce(this,Mr,q(i)),Ce(this,_r,q(s)),Ce(this,Fr,q(l)),Ce(this,Dr,q(a)),Ce(this,Ko,q(p)),Ce(this,Lr,q(d));}setButtonPosition(e){ee(this,Mr)[1](e);}setPosition(e){ee(this,_r)[1](e);}setInitialIsOpen(e){ee(this,Fr)[1](e);}setErrorTypes(e){ee(this,Dr)[1](e);}setClient(e){ee(this,Tr)[1](e);}setOnClose(e){ee(this,Lr)[1](()=>e);}mount(e){if(ee(this,Yn))throw new Error("Devtools is already mounted");let t=Os(()=>{let n=this,[r]=ee(this,Mr),[o]=ee(this,_r),[i]=ee(this,Fr),[s]=ee(this,Dr),[l]=ee(this,Ko),[a]=ee(this,Tr),[u]=ee(this,Lr),c;return ee(this,Ar)?c=ee(this,Ar):(c=As(()=>Promise.resolve().then(()=>(f1(),d1))),Ce(this,Ar,c)),Ks(ee(this,No),ee(this,$r)),x(c,re({get queryFlavor(){return ee(n,zo)},get version(){return ee(n,Vo)},get onlineManager(){return ee(n,qo)},get shadowDOMTarget(){return ee(n,$r)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get hideDisabledQueries(){return l()},get onClose(){return u()}}))},e);Ce(this,Yn,!0),Ce(this,Bo,t);}unmount(){var e;if(!ee(this,Yn))throw new Error("Devtools is not mounted");(e=ee(this,Bo))==null||e.call(this),Ce(this,Yn,!1);}},Tr=new WeakMap,qo=new WeakMap,zo=new WeakMap,Vo=new WeakMap,Yn=new WeakMap,No=new WeakMap,$r=new WeakMap,Mr=new WeakMap,_r=new WeakMap,Fr=new WeakMap,Dr=new WeakMap,Ko=new WeakMap,Lr=new WeakMap,Ar=new WeakMap,Bo=new WeakMap,m1);});function y1(e){let t=useQueryClient(e.client),n=Nt.useRef(null),{buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:l,shadowDOMTarget:a,hideDisabledQueries:u}=e,[c]=Nt.useState(new g1({client:t,queryFlavor:"React Query",version:"5",onlineManager:onlineManager,buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:l,shadowDOMTarget:a,hideDisabledQueries:u}));return Nt.useEffect(()=>{c.setClient(t);},[t,c]),Nt.useEffect(()=>{r&&c.setButtonPosition(r);},[r,c]),Nt.useEffect(()=>{o&&c.setPosition(o);},[o,c]),Nt.useEffect(()=>{c.setInitialIsOpen(i||!1);},[i,c]),Nt.useEffect(()=>{c.setErrorTypes(s||[]);},[s,c]),Nt.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount();}),[c]),jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})}var v1=Q(()=>{"use client";Ta();});function b1(e){let t=useQueryClient(e.client),n=Nt.useRef(null),{errorTypes:r,styleNonce:o,shadowDOMTarget:i,hideDisabledQueries:s}=e,[l]=Nt.useState(new h1({client:t,queryFlavor:"React Query",version:"5",onlineManager:onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:o,shadowDOMTarget:i,onClose:e.onClose,hideDisabledQueries:s}));return Nt.useEffect(()=>{l.setClient(t);},[t,l]),Nt.useEffect(()=>{l.setOnClose(e.onClose??(()=>{}));},[e.onClose,l]),Nt.useEffect(()=>{l.setErrorTypes(r||[]);},[r,l]),Nt.useEffect(()=>(n.current&&l.mount(n.current),()=>{l.unmount();}),[l]),jsx("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:n})}var x1=Q(()=>{"use client";Ta();});var w1,C1=Q(()=>{"use client";v1();x1();w1=process.env.NODE_ENV!=="development"?function(){return null}:y1,process.env.NODE_ENV!=="development"?function(){return null}:b1;});var S1,k1=Q(()=>{C1();S1=({children:e})=>{let[t]=useState(()=>new QueryClient({defaultOptions:{queries:{staleTime:3e5,gcTime:6e5,retry:3,retryDelay:n=>Math.min(1e3*2**n,3e4),refetchOnWindowFocus:!1,refetchOnReconnect:!0},mutations:{retry:1,retryDelay:1e3}}}));return jsxs(QueryClientProvider,{client:t,children:[e,process.env.NODE_ENV==="development"&&jsx(w1,{initialIsOpen:!1})]})};});var r4,I1,E1=Q(()=>{r4={global:{noEntitlement:"No permission, please contact the administrator.",name:"Name",creationTime:"Creation Time",operation:"Operation",update:"Update",edit:"Edit",delete:"Delete",selectAll:"Select All",game:"Game",user:"User",role:"Role",username:"Username",password:"Password",label:"Label",method:"Method",route:"Route",request:"Request",response:"Response",add:"Add",signIn:"Sign In",projectGroup:"Project Group",view:"View"},SignIn:{title:"Sign In Method",thirdParty:"Third party sign in",signInWithIDass:"Sign in with IDass",unregistered:"You are not yet registered on the platform, please contact the administrator",welcome:"Welcome"},NotFound:{subTitle:"The page you visited does not exist",buttonText:"Return to homepage"},FilterFormWrapper:{confirmText:"Search",resetText:"Reset"},FormModal:{confirmText:"Confirm",cancelText:"Cancel"},GameSelect:{label:"Current Game",placeholder:"Please select a game"},RequireGame:{description:"Please select a game"},UserWidget:{signOutText:"Sign Out"},User:{createTitle:"Create User",createSuccessfully:"User created successfully",updateTitle:"Update User",updateSuccessfully:"User updated successfully",deleteTitle:"Delete User",deleteContent:"Are you sure you want to delete user <%= user %>?",deleteSuccessfully:"User deleted successfully"},Role:{createTitle:"Create Role",createSuccessfully:"Role created successfully",updateTitle:"Update Role",updateSuccessfully:"Role updated successfully",deleteTitle:"Delete Role",deleteContent:"Are you sure you want to delete role <%= role %>?",deleteSuccessfully:"Role deleted successfully"},PermissionList:{failedDescription:"Failed to get permission list",baseSectionTitle:"Platform Basic Permissions",gameSectionTitle:"Game Permissions",gameSectionDescription:"Please select a game first",gameSelectPlaceholder:"Please select a game first",removeText:"Remove",addText:"Add Game Permissions"},RoleDetail:{title:"Role Details"},InfiniteList:{loadingText:"Loading...",reachEndText:"You've reached the end",loadMoreText:"Load more"}},I1=r4;});var $a,Xn,Zn,Ma,Kt,yn=Q(()=>{$a="https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1",Xn="App-ID",Zn="/console/",Ma=(r=>(r.V1="v1",r.V2="v2",r.V3="v3",r))(Ma||{}),Kt="*";});var P1,T1=Q(()=>{E1();P1=e=>({locale:I1,gameApiV2:!1,isGlobal:!1,signInPath:"/sign_in",mainPagePath:"/",permissionVersion:"v1",setContext(t){e(n=>({...n,...t}));}});});var $1,M1=Q(()=>{$1=e=>({setGameId:t=>{e({gameId:t});}});});var _1,F1=Q(()=>{_1=(e,t)=>({getUser:()=>{let n=t().token;if(n)try{return jwtDecode(n)}catch{return null}return null},setToken:n=>e({token:n})});});var D1,L1=Q(()=>{Jr();T1();M1();F1();D1=e=>createStore()(persist((...t)=>{let[,n,r]=t,o=()=>{n().setToken(""),r.persist.clearStorage();};return {..._1(...t),...$1(...t),...P1(...t),clearToken:o,...e}},{name:"toolkits",storage:createJSONStorage(()=>Fl),partialize:t=>({token:t.token,gameId:t.gameId,collapsed:t.collapsed})}));});function pe(e){let t=useContext(_a);if(!t)throw new Error("Missing ToolkitsProvider in the tree");return useStore(t,e||(n=>n))}var _a,Fa,at,f4,O1=Q(()=>{k1();L1();_a=createContext(null);Fa=e=>{let{children:t,...n}=e,r=useRef(),o=useContext(_a)?.getState();if(r.current||(r.current=D1({...o,...n})),!r.current.getState().signInPath)throw new Error('ToolkitsProvider: \u8BF7\u914D\u7F6E "signInPath"');return jsx(S1,{children:jsx(_a.Provider,{value:r.current,children:jsx(App,{children:t})})})},at=(e,t)=>{let n=r=>jsx(Fa,{...t,children:jsx(e,{...r})});return n.displayName=`withContext(${e.displayName||e.name||"Component"})`,n};process.env.NODE_ENV!=="production"&&(Fa.displayName="ToolkitsProvider");f4=Fa;});var Ve=Q(()=>{O1();});function J(){let e=pe(n=>n.locale);return {t:useMemo(()=>(n,r)=>has(e,n)?template(get(e,n))(r):n,[e])}}var R1=Q(()=>{Ve();});var Oe=Q(()=>{R1();});var T4,Ho,U1=Q(()=>{Oe();T4=e=>{let{extras:t,isConfirming:n,onConfirm:r,onReset:o,children:i,buttonsAlign:s="left",showReset:l}=e,{t:a}=J(),{token:{colorFillAlter:u,lineWidth:c,lineType:d,colorBorder:p,borderRadiusLG:m}}=theme.useToken();return jsx("div",{style:{maxWidth:"none",background:u,borderWidth:c,borderStyle:d,borderColor:p,borderRadius:m,padding:24,marginBottom:24},children:jsxs("div",{className:`flex ${s==="bottom"?"flex-col":"flex-row"}`,children:[jsx("div",{className:`${s==="left"?"flex-grow-0":"flex-1"}`,children:i}),jsx("div",{className:`${s==="bottom"?"text-end":"text-start"} ml-4`,children:jsxs(Space,{children:[jsx(Button,{type:"primary",disabled:n,onClick:r,children:a("FilterFormWrapper.confirmText")}),t?.map(g=>jsx(Fragment$1,{children:g.children},g.key)),l&&jsx(Button,{onClick:o,children:a("FilterFormWrapper.resetText")})]})})]})})},Ho=T4;});var Yi=Q(()=>{U1();});function L4(e){let t=document.createElement("div"),n=createRoot(t);return new Promise(r=>{setTimeout(()=>{flushSync(()=>{n.render(e);}),r(t.innerHTML);});})}var D4,A4,Jn,H1=Q(()=>{D4=e=>{let t=/(<[^>]*>)/;return e.split(t).filter(n=>n!=="")};A4=e=>{let{texts:t,children:n}=e,[r,o]=useState("");return useEffect(()=>{L4(n).then(i=>{let s=D4(i);for(let l of t)for(let a=0;a<s.length;a++)s[a]=s[a].replace(String(l),`<span style='color: #DC143C;'>${l}</span>`);o(s.join(""));});},[n,t]),jsx("div",{dangerouslySetInnerHTML:{__html:r}})},Jn=A4;});var Qo=Q(()=>{H1();});var La,Zi,q4,j1,z4,V4,N4,K4,me,W1=Q(()=>{Ve();yn();La=[0,1,200],Zi={OK:200,UNAUTHORIZED:401,FORBIDDEN:403,UNREGISTERED:412},q4=3e4,j1=e=>!e||typeof e!="object"?"Unknown error":e.msg||e.message||e.error||"Unknown error",z4=e=>{let{value:t,allowedCodes:n}=e;return t==null||typeof t!="number"?!1:n.includes(t)},V4=(e,t)=>t>=Zi.OK&&t<300?!0:!e||typeof e!="object"?!1:[{field:"code",value:e.code,allowedCodes:La},{field:"status",value:e.status,allowedCodes:La},{field:"errno",value:e.errno,allowedCodes:La}].some(z4),N4=async(e,t)=>{switch(t){case"blob":return e.blob();case"text":return e.text();case"arrayBuffer":return e.arrayBuffer();case"formData":return e.formData();case"json":default:return e.json()}},K4=e=>async(t,n,r)=>{if(e==="blob"||e==="arrayBuffer"||e==="text"||e==="formData")return r;let o;try{o=await r.clone().json();}catch{return r}if(V4(o,r.status)){let l=o.data!==void 0?o.data:o;return new Response(JSON.stringify(l),{status:r.status,statusText:r.statusText,headers:r.headers})}let i=j1(o);notification.error({message:"Request failed",description:i});let s=new Error(i);throw s.response=r,s.data=o,s},me=e=>{let t=pe(),{token:n,isGlobal:r,gameId:o,permissionVersion:i,signInPath:s,clearToken:l}=t,a=useCallback(()=>{l(),s&&(window.location.href=s);},[l,s]),u=useCallback(()=>{if(l(),s){let S=new URL(s,window.location.origin);S.searchParams.set("unregistered","true"),window.location.href=S.toString();}},[l,s]),c=useCallback(()=>{notification.error({message:"\u8BBF\u95EE\u88AB\u7981\u6B62",description:"\u60A8\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u6B64\u8D44\u6E90\u3002"});},[]),d=useCallback((S,k)=>{switch(S){case Zi.UNAUTHORIZED:a();break;case Zi.UNREGISTERED:u();break;case Zi.FORBIDDEN:c();break;default:{let E=j1(k)||`HTTP ${S} Error`;notification.error({message:"Request failed",description:E});break}}},[a,u,c]),p=useMemo(()=>R4.create({prefixUrl:e,timeout:q4,headers:{Accept:"application/json","Content-Type":"application/json"},hooks:{beforeRequest:[k=>{n&&k.headers.set("Authorization",`Bearer ${n}`),!k.headers.has(Xn)&&i!=="v1"&&(r||!o?k.headers.set(Xn,"global"):k.headers.set(Xn,encodeURIComponent(String(o))));}],beforeError:[async k=>{let{response:E}=k;if(E){let I=E.status,P;try{let V=E.headers.get("content-type")||"";(V.includes("application/json")||V.startsWith("text/"))&&(P=await E.clone().json());}catch{}d(I,P);}else notification.error({message:"Network Error",description:k.message||"Network request failed"});return k}]}}),[e,n,r,o,i,d]),m=useCallback(async(S,k,E,I)=>{let{responseType:P,...V}=I||{},L={...V,hooks:{...V.hooks,afterResponse:[...V.hooks?.afterResponse||[],K4(P)]}},H;return E?H=await p(k,{method:S,json:E,...L}):H=await p(k,{method:S,...L}),N4(H,P)},[p]),f=useCallback((S,k)=>m("GET",S,void 0,k),[m]),g=useCallback((S,k,E)=>m("POST",S,k,E),[m]),v=useCallback((S,k,E)=>m("PUT",S,k,E),[m]),h=useCallback((S,k)=>m("DELETE",S,void 0,k),[m]),y=useCallback((S,k,E)=>m("PATCH",S,k,E),[m]),b=useCallback((S,k)=>m("OPTIONS",S,void 0,k),[m]),w=useCallback((S,k)=>m("HEAD",S,void 0,k),[m]),C=useCallback(S=>{let{url:k,...E}=S;return m(E.method||"GET",k,void 0,E)},[m]);return useMemo(()=>({get:f,post:g,put:v,delete:h,patch:y,options:b,head:w,request:C,instance:p}),[f,g,v,h,y,b,w,C,p])};});var Bt=Q(()=>{W1();});var ie,Dn=Q(()=>{ie={permissions:{check:(e,t)=>["permissions","check",e,t],allPermissions:["permissions","all"],allPermissionsV2:["permissions","allV2"]},users:{all:["users"],detail:e=>["users","detail",e],create:["users","create"],update:["users","update"],delete:["users","delete"]},roles:{all:["roles"],detail:(e,t)=>["roles","detail",e,t],create:e=>["roles","create",e],update:e=>["roles","update",e],delete:["roles","delete"]},menus:{all:["menus"],navbar:e=>["menus","navbar",e],detail:e=>["menus","detail",e],create:["menus","create"],update:["menus","update"],delete:["menus","delete"]},enums:{gameGroups:["enums","gameGroups"],gameIds:e=>["enums","gameIds",e]}};});function Dt(e,t){let n=me(),{permissionVersion:r}=pe(),o=r!=="v1"?"/api/usystem/user/checkV2":"/api/usystem/user/check",i=typeof e<"u"?typeof e=="string"?[e]:e:[],s=r!=="v1"?"v2":"v1",{data:l,...a}=useQuery({queryKey:i.length>0?ie.permissions.check(i,s):["permissions","disabled"],queryFn:()=>n.post(o,{json:{permissions:i},...t}),enabled:i.length>0}),u=!0;return typeof e=="string"?u=l?.has_all?!0:l?.[e]??!1:Array.isArray(e)&&e.length>0&&(u=i.reduce((c,d)=>(c[d]=l?.has_all?!0:l?.[d]??!1,c),{})),{...a,data:u}}function Ji(){let{signInPath:e,gameId:t}=pe(),n=me();return useQuery({queryKey:ie.menus.navbar(t?String(t):void 0),queryFn:()=>n.get("/api/usystem/menu/navbar",{headers:{[Xn]:t?encodeURIComponent(String(t)):"global"}}),enabled:window.location.pathname!==e})}var Ln,wt=Q(()=>{Ve();yn();Bt();Dn();Ln=()=>{let{gameApiV2:e,permissionVersion:t}=pe(),n=me(),r=t!=="v1"?e?"/api/game/list":"/api/usystem/game/all":null;return useQuery({queryKey:ie.enums.gameGroups,queryFn:async()=>{if(!r)return [];let o={headers:{[Xn]:"global"}};return e?(await n.get(r,o))?.list??[]:await n.get(r,o)??[]},enabled:!!r,staleTime:1/0})};});var Na,Ka=Q(()=>{Na=create((e,t)=>({open:new Map,usedIds:new Set,isOpen:n=>t().open.get(n)??!1,show(n){e({open:new Map(t().open).set(n,!0)});},hide(n){e({open:new Map(t().open).set(n,!1)});},hideAll(){e({open:new Map});},checkUniqueness(n){let{usedIds:r}=t();return !r.has(n)},registerIds(n){let{usedIds:r}=t();return r.has(n)?!1:(e({usedIds:new Set(r).add(n)}),!0)},cleanup(n){let{open:r,usedIds:o}=t(),i=new Map(r),s=new Set(o);i.delete(n),s.delete(n),e({open:i,usedIds:s});}}));});function Ba(e){let{content:t,onConfirm:n,afterOpen:r,afterClose:o,...i}=e,s=useMemo(()=>ii(),[]),{show:l,hide:a,isOpen:u,cleanup:c}=Na();useEffect(()=>()=>{c(s);},[s,c]);let d=u(s),[p,m]=useState(!1),f=typeof t=="function",g=useCallback(async()=>{l(s),await r?.();},[s,l,r]),v=useCallback(()=>{a(s);},[s,a]),h=useCallback(async()=>{v(),await o?.();},[v,o]),y=useCallback(async()=>{try{m(!0),await n?.(),v(),await o?.();}catch(w){throw console.error("Modal confirm error:",w),w}finally{m(!1);}},[n,v,o]),b=jsx(Modal,{...i,open:d,confirmLoading:p,onOk:y,onCancel:h,children:f?t({hide:v}):t});return {id:s,show:g,hide:v,modal:b}}var Ga=Q(()=>{Jr();Ka();});function bn(e){let{content:t,form:n,formProps:r,onConfirm:o,onSuccess:i,afterClose:s,...l}=e,[a,u]=useState({}),[c]=Form.useForm();c=n||c;let d=typeof t=="function",{id:p,show:m,hide:f,modal:g}=Ba({...l,content:h=>jsx(Form,{...r,form:c,children:d?t(a,h):t}),onConfirm:async()=>{try{let h=await c.validateFields();await o?.(h,a),i?.(),f();}catch(h){throw console.error("Form validation or submission error:",h),h}},afterClose:()=>{s?.(c);}}),v=useCallback(h=>{let{initialValues:y,extraValues:b}=h||{};b&&u(b),y&&c.setFieldsValue(y),m();},[c,m]);return {id:p,show:v,hide:f,modal:g}}var g0=Q(()=>{Ga();});var is=Q(()=>{g0();Ga();Ka();});var d6,Ct,h0=Q(()=>{Oe();wt();d6=e=>{let{children:t,code:n,showLoading:r,disabled:o,config:i,...s}=e,l=n?Array.isArray(n)?n:[n]:[],{data:a,isLoading:u}=Dt(l,i),{t:c}=J();return u?jsx(Button,{loading:r,disabled:!r,...s,children:t}):typeof a=="boolean"||a&&Object.values(a).some(Boolean)?jsx(Button,{disabled:o,...s,children:t}):jsx(Tooltip,{defaultOpen:!1,title:c("global.noEntitlement"),children:jsx(Button,{disabled:!0,...s,children:t})})},Ct=d6;});var Vr=Q(()=>{h0();});var v0,g6,h6,lt,as=Q(()=>{v0=Object.freeze({page:1,size:10,formValue:Object.freeze({})}),g6=()=>create()(devtools(subscribeWithSelector((e,t)=>({instances:new Map,registerInstance(n,r,o,i){e(s=>{let l=s.instances.get(n);if(l){if(l.refetch!==i){let c={...l,refetch:i},d=new Map(s.instances);return d.set(n,c),{instances:d}}return s}let a={id:n,url:r,queryKey:o,payload:v0,refetch:i},u=new Map(s.instances);return u.set(n,a),{instances:u}});},unregisterInstance(n){e(r=>{let o=new Map(r.instances);return o.delete(n)?{instances:o}:r});},updatePayload(n,r){e(o=>{let i=o.instances.get(n);if(!i)return o;let s={...i.payload,...r};if(!isEqual(i.payload,s)){let l={...i,payload:s},a=new Map(o.instances);return a.set(n,l),{instances:a}}return o});},getPayload(n){return t().instances.get(n)?.payload??v0},async refetch(n,r){let o=t().instances.get(n);if(!o){console.warn(`QueryList instance with id "${n}" not found`);return}let i=!1;if(r){let s=o.payload,l={...s,...r};isEqual(s,l)||(t().updatePayload(n,r),i=!0);}if(!i)try{await o.refetch();}catch(s){throw console.error(`Failed to refetch QueryList instance "${n}":`,s),s}},getInstance(n){return t().instances.get(n)},getAllInstances(){return Array.from(t().instances.values())}})),{name:"query-list-store"})),h6=g6(),lt=h6;});var C0,I6,E6,P6,T6,$6,M6,_6,xn,S0=Q(()=>{Yi();Oe();Bt();wt();as();C0=(o=>(o[o.Confirm=0]="Confirm",o[o.Reset=1]="Reset",o[o.Jump=2]="Jump",o[o.Init=3]="Init",o))(C0||{}),I6=5*60*1e3,E6=30*1e3,P6={display:"flex",justifyContent:"center",alignItems:"center",height:300},T6=0,$6=()=>`queryList_${Date.now()}_${++T6}`,M6=(e,t)=>{let{t:n}=J(),{form:r,identifier:o,code:i,onePage:s,buttonsAlign:l,showReset:a,defaultSize:u=10,refreshInterval:c=0,tableExtra:d,renderForm:p,afterSuccess:m,afterError:f,footer:g,pageSizeOptions:v,request:h,dataAdapter:y,...b}=e,[w]=Form.useForm(r),C=useMemo(()=>o||$6(),[o]),S=useRef(3),{data:k,isLoading:E}=Dt(i),[I,P]=useState(!1),V=lt(X=>X.getPayload(C)),L=me(),H=useRef(!1),{page:K,size:oe=u,formValue:de}=V,he={page:K,size:oe,formValue:de},xe=useMemo(()=>typeof h=="function"?h(he):h,[h,he]),{url:we,method:Pe="GET",body:qe,searchParams:Ee,headers:Re,cacheTime:_=I6,staleTime:Te=E6}=xe,le=useMemo(()=>({...de,...!s&&{page:K,size:oe}}),[de,s,K,oe]),Ue=useMemo(()=>qe??(Pe==="POST"?le:void 0),[qe,Pe,le]),Z=useMemo(()=>Ee??(Pe==="GET"?le:void 0),[Ee,Pe,le]),He=Re,Ae=useRef(!1),kt=useMemo(()=>{let X=["queryList",we,C];return !k||!I?[...X,"disabled"]:[...X,K,oe,de]},[we,C,k,I,K,oe,de]),{data:_e,isLoading:ct,refetch:pt}=useQuery({queryKey:kt,queryFn:async()=>{try{let X={method:Pe,searchParams:Z,headers:He};Ue&&(Ue instanceof FormData?X.body=Ue:X.json=Ue);let ne=await L.request({url:we,...X});return Ae.current=!0,m?.(S.current,w,ne),ne}catch(X){let ne=X instanceof Error?X:new Error(String(X));throw f?.(ne,S.current,w),ne}},enabled:k&&I,retry:(X,ne)=>!(X>=3||ne?.message?.includes("401")),retryDelay:X=>Math.min(1e3*2**X,3e4),refetchOnWindowFocus:!1,refetchInterval:Ae.current?c:0,gcTime:_,staleTime:Te}),Ze=useMemo(()=>{let X=y,ne={total:_e?.total,items:_e?.list};return typeof X=="function"?{...ne,...X(_e)}:{...ne,...X}},[y,_e]);useEffect(()=>(lt.getState().registerInstance(C,we,kt,pt),()=>{lt.getState().unregisterInstance(C);}),[C,we]);let{dataSource:Je,total:ut}=useMemo(()=>({dataSource:Ze.items,total:Ze.total}),[Ze.items,Ze.total]),O=useMemo(()=>s?!1:{pageSizeOptions:v,showSizeChanger:!0,showQuickJumper:!0,current:K,pageSize:oe,total:ut,onChange:async(X,ne)=>{S.current=2,lt.getState().refetch(C,{page:X,size:ne});}},[s,v,K,oe,ut,C]),Y=useCallback(async()=>{S.current=0;try{await w.validateFields(),P(!0),lt.getState().refetch(C,{page:1,formValue:w.getFieldsValue()});}catch{P(!1);}},[w,C]),ue=useCallback(async()=>{S.current=1,w.resetFields();try{await w.validateFields({validateOnly:!0}),P(!0),lt.getState().refetch(C,{page:1,formValue:w.getFieldsValue()});}catch{P(!1);}},[w,C]),ye=typeof p=="function"?jsx(Ho,{showReset:a,buttonsAlign:l,isConfirming:ct,onReset:ue,onConfirm:Y,children:cloneElement(p(w),{onKeyUp:X=>{X.key==="Enter"&&Y();}})}):jsx(Form,{form:w}),fe=useMemo(()=>typeof d=="function"?d(w,_e):d,[d,w,_e]),ve=useMemo(()=>g?()=>g(_e):void 0,[g,_e]);return useEffect(()=>{if(!k||H.current)return;let X=async()=>{try{w.resetFields();let At=await w.validateFields({validateOnly:!0});lt.getState().updatePayload(C,{page:1,formValue:At}),P(!0),H.current=!0;}catch{P(!1),H.current=!0;}},ne=requestAnimationFrame(()=>{Promise.resolve().then(X);});return ()=>{ne&&cancelAnimationFrame(ne);}},[k,C,w]),useImperativeHandle(t,()=>({data:_e,dataSource:Je,form:w,refetch:pt}),[_e,Je,w,pt]),E?jsx(Spin,{style:P6}):k?jsxs("div",{children:[ye,fe,jsx(Table,{...b,dataSource:Je,loading:ct,pagination:O,footer:ve})]}):jsx(Result,{status:403,subTitle:n("global.noEntitlement")})},_6=forwardRef(M6),xn=_6;});var Nr=Q(()=>{S0();as();});var ja,k0=Q(()=>{ja="/api/usystem/menu/list";});function I0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.menus.create,mutationFn:n=>e.post("/api/usystem/menu/set",{...n,id:0,is_model:!0}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.menus.all}),t.invalidateQueries({queryKey:ie.menus.navbar()});}})}function E0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.menus.update,mutationFn:n=>e.post("/api/usystem/menu/set",{...n,is_model:!0}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.menus.all}),t.invalidateQueries({queryKey:ie.menus.navbar()});}})}function P0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.menus.delete,mutationFn:n=>e.post("/api/usystem/menu/delete",null,{searchParams:{id:n}}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.menus.all}),t.invalidateQueries({queryKey:ie.menus.navbar()});}})}var Xa=Q(()=>{Bt();Dn();});var ls=Q(()=>{k0();Xa();});var $0={};cn($0,{default:()=>G6});var B6,G6,M0=Q(()=>{Qo();Oe();Nr();Ve();ls();Xa();wt();B6=at(()=>{let{t:e}=J(),{message:t}=App.useApp(),n=P0(),r=lt(),{refetch:o}=Ji(),i=useNavigate();return jsx(Fragment,{children:jsx(Card,{title:"\u83DC\u5355\u7BA1\u7406",extra:jsx(Button,{type:"primary",onClick:()=>{i("./create");},children:"\u521B\u5EFA\u83DC\u5355\u9879"}),children:jsx(xn,{identifier:"menu-item-list",onePage:!0,code:"9900001",rowKey:"id",columns:[{title:"\u83DC\u5355\u540D\u79F0",dataIndex:"category",key:"category"},{title:"\u524D\u7AEF\u8DEF\u7531",dataIndex:"front_route"},{title:"Order",dataIndex:"order"},{title:"Is Common",dataIndex:"is_common",key:"is_common",render:l=>l?"\u662F":"\u5426"},{title:"\u6A21\u677F\u540D\u79F0",dataIndex:"model_name",key:"model_name"},{title:"\u64CD\u4F5C",key:"action",width:150,align:"center",render(l,a){return a.is_model?jsxs(Space,{size:"small",children:[jsx(Button,{type:"link",onClick:()=>{i(`./update/${a.id}`);},children:e("global.update")}),jsx(Popconfirm,{title:"\u5220\u9664\u83DC\u5355",placement:"topRight",description:jsxs(Jn,{texts:[a.category],children:["\u786E\u5B9A\u8981\u5220\u9664\u83DC\u5355 ",a.category," \u5417\uFF1F"]}),onConfirm:async()=>{await n.mutate(a.id),r.getAllInstances().filter(u=>u.url===ja).forEach(u=>r.refetch(u.id)),o(),t.success("\u5220\u9664\u6210\u529F");},children:jsx(Button,{danger:!0,type:"link",size:"small",children:e("global.delete")})})]}):null}}],request:{url:ja,method:"GET"},dataAdapter:l=>({items:l})})})})},{isGlobal:!0}),G6=B6;});var L0={};cn(L0,{default:()=>Z6});var X6,Z6,A0=Q(()=>{Ve();yn();ls();X6=at(()=>{let{message:e}=App.useApp(),[t]=Form.useForm(),n=useNavigate(),{mutate:r}=I0();return jsx(Card,{title:"\u521B\u5EFA\u83DC\u5355\u9879",children:jsxs(Form,{scrollToFirstError:!0,form:t,labelCol:{flex:"120px"},initialValues:{is_common:!1,is_model:!1,order:0},onFinish:async i=>{let{permissions:s,front_route:l,...a}=i;await r({...a,front_route:Zn+l,permissions:s?JSON.parse(s):void 0}),e.success("\u521B\u5EFA\u6210\u529F",.8,()=>n("..",{relative:"route"}));},children:[jsx(Form.Item,{label:"\u83DC\u5355\u9879\u540D\u79F0",name:"category",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:"\u524D\u7AEF\u8DEF\u7531",name:"front_route",rules:[{required:!0}],children:jsx(Input,{prefix:Zn})}),jsx(Form.Item,{label:"\u6A21\u677F\u540D\u79F0",name:"model_name",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:"Is Common",name:"is_common",rules:[{required:!0}],valuePropName:"checked",children:jsx(Switch,{})}),jsx(Form.Item,{label:"Order",name:"order",children:jsx(InputNumber,{className:"w-full"})}),jsx(Form.Item,{label:"\u63A5\u53E3\u89C4\u5219",name:"permissions",children:jsx(Editor,{theme:"vs-dark",height:"300px",language:"json",options:{minimap:{enabled:!1}}})}),jsx(Form.Item,{label:"Schema",name:"scheme",rules:[{required:!0}],children:jsx(Editor,{theme:"vs-dark",height:"600px",language:"json",options:{minimap:{enabled:!1}}})}),jsx(Form.Item,{label:"Ext",name:"ext",children:jsx(Input.TextArea,{rows:5})}),jsx(Form.Item,{children:jsxs("div",{className:"flex justify-center gap-8",children:[jsx(Button,{type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"}),jsx(Button,{onClick:()=>{n("..",{relative:"path"});},children:"\u53D6\u6D88"})]})})]})})},{isGlobal:!0}),Z6=X6;});var z0={};cn(z0,{default:()=>lv});var av,lv,V0=Q(()=>{Ve();yn();ls();Bt();Dn();wt();av=at(()=>{let{message:e}=App.useApp(),[t]=Form.useForm(),n=useNavigate(),{mutate:r}=E0(),o=useParams(),{refetch:i}=Ji(),s=me(),{data:l,isLoading:a}=useQuery({queryKey:ie.menus.detail(Number(o.id)),queryFn:()=>s.get(`/api/usystem/menu/info?id=${o.id}`),enabled:!!o.id}),u=async c=>{let{permissions:d,front_route:p,...m}=c;await r({...m,permissions:d?JSON.parse(d):void 0,front_route:Zn+p,id:+o.id}),i(),e.success("\u66F4\u65B0\u6210\u529F",.8,()=>n("../..",{relative:"route"}));};return useEffect(()=>{let{permissions:c,front_route:d,...p}=l??{},m=JSON.stringify(c||[],null,2),f=d?.replace(Zn,"");t.setFieldsValue({...p,permissions:m,front_route:f});},[l,t]),jsx(Card,{title:"\u66F4\u65B0\u83DC\u5355\u9879",loading:a,children:jsxs(Form,{scrollToFirstError:!0,form:t,labelCol:{flex:"120px"},initialValues:{is_common:!1,is_model:!1,order:0},onFinish:u,children:[jsx(Form.Item,{label:"\u83DC\u5355\u9879\u540D\u79F0",name:"category",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:"\u524D\u7AEF\u8DEF\u7531",name:"front_route",rules:[{required:!0}],children:jsx(Input,{prefix:Zn})}),jsx(Form.Item,{label:"\u6A21\u677F\u540D\u79F0",name:"model_name",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:"Is Common",name:"is_common",rules:[{required:!0}],valuePropName:"checked",children:jsx(Switch,{})}),jsx(Form.Item,{label:"Order",name:"order",children:jsx(InputNumber,{className:"w-full"})}),jsx(Form.Item,{label:"\u63A5\u53E3\u89C4\u5219",name:"permissions",children:jsx(Editor,{theme:"vs-dark",height:"300px",language:"json",options:{minimap:{enabled:!1}}})}),jsx(Form.Item,{label:"Schema",name:"scheme",rules:[{required:!0}],children:jsx(Editor,{theme:"vs-dark",height:"600px",language:"json",options:{minimap:{enabled:!1}}})}),jsx(Form.Item,{label:"Ext",name:"ext",children:jsx(Input.TextArea,{rows:5})}),jsx(Form.Item,{children:jsxs("div",{className:"flex justify-center gap-8",children:[jsx(Button,{type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"}),jsx(Button,{onClick:()=>{n("../..",{relative:"path"});},children:"\u53D6\u6D88"})]})})]})})},{isGlobal:!0}),lv=av;});function fs(){let e=me();return useQuery({queryKey:ie.roles.all,queryFn:()=>e.get("/api/usystem/role/all")})}function G0(e){let t=pe(o=>o.permissionVersion),n=me(),r=t==="v2"?"v2":"v1";return useQuery({queryKey:ie.roles.detail(e,r),queryFn:()=>n.get(`/api/usystem/role/${r==="v2"?"infoV2":"info"}?name=${e}`)})}function U0(){let{permissionVersion:e}=pe(o=>o),t=me(),n=useQueryClient(),r=e==="v2"?"v2":"v1";return useMutation({mutationKey:ie.roles.create(r),mutationFn:({name:o,permissions:i})=>t.post(r==="v2"?"/api/usystem/role/createV2":"/api/usystem/role/create",{name:o,permissions:i}),onSuccess:()=>{n.invalidateQueries({queryKey:ie.roles.all});}})}function H0(){let{permissionVersion:e}=pe(o=>o),t=me(),n=useQueryClient(),r=e==="v2"?"v2":"v1";return useMutation({mutationKey:ie.roles.update(r),mutationFn:({id:o,name:i,permissions:s})=>t.post(r==="v2"?"/api/usystem/role/updateV2":"/api/usystem/role/update",{id:o,name:i,permissions:s}),onSuccess:()=>{n.invalidateQueries({queryKey:ie.roles.all});}})}function Q0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.roles.delete,mutationFn:({id:n,name:r})=>e.post("/api/usystem/role/delete",{id:n,name:r}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.roles.all});}})}function rl(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.users.create,mutationFn:n=>e.post("/api/usystem/user/create",n),onSuccess:()=>{t.invalidateQueries({queryKey:ie.users.all});}})}function ol(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.users.update,mutationFn:n=>e.post("/api/usystem/user/update",n),onSuccess:()=>{t.invalidateQueries({queryKey:ie.users.all});}})}function j0(){let e=me(),t=useQueryClient();return useMutation({mutationKey:ie.users.delete,mutationFn:({id:n,name:r})=>e.post("/api/usystem/user/delete",{id:n,name:r}),onSuccess:()=>{t.invalidateQueries({queryKey:ie.users.all});}})}function W0(){let e=me();return useQuery({queryKey:ie.permissions.allPermissions,queryFn:()=>e.get("/api/usystem/user/allPermssions"),staleTime:1/0})}function Y0(){let e=me();return useQuery({queryKey:ie.permissions.allPermissionsV2,queryFn:()=>e.get("/api/usystem/user/allPermssionsV2"),staleTime:1/0})}var Ur=Q(()=>{Ve();Bt();Dn();});var $v,Xo,ll=Q(()=>{Oe();$v=e=>{let{permissions:t,readonly:n,expand:r,value:o,onChange:i}=e,[s,l]=useState([]),[a,u]=useState({}),[c,d]=useState(o??[]),{t:p}=J(),[,m]=useTransition(),f=useCallback(y=>{l(y);},[]),g=(y,b)=>{let w=[];return y?w=[...new Set(c.concat(b))]:(w=c.slice(),b.forEach(C=>{let S=w.findIndex(k=>k===C);S>-1&&w.splice(S,1);})),w},v=(y,b)=>{let w=g(y.target.checked,b);d(w),i?.(w);};useEffect(()=>{d(o??[]);},[o]),useEffect(()=>{r&&m(()=>{l((t??[]).map(({category:y})=>y));});},[r,t]),useEffect(()=>{let y=(t??[]).reduce((b,w)=>(b[w.category]=w.permissions.every(C=>c?.includes(C.value)),b),{});u(y);},[c,t]);let h=(t??[]).map(y=>({key:y.category,label:y.category,extra:!n&&jsx(Checkbox,{checked:a[y.category],onChange:b=>{v(b,y.permissions?.map(w=>w.value));},children:p("global.selectAll")}),children:jsx(Checkbox.Group,{style:{width:"100%"},value:c,disabled:n,children:jsx(Row,{gutter:[10,10],style:{width:"100%"},children:y.permissions?.map(b=>jsx(Col,{span:6,children:jsx(Checkbox,{value:b.value,onChange:w=>{v(w,[b.value]);},children:b.label})},b.value))})})}));return jsx(Collapse,{style:{width:"100%"},collapsible:"header",activeKey:s,items:h,onChange:f})},Xo=$v;});var cl,Ov,Rv,nf,rf=Q(()=>{Oe();wt();Ur();ll();(({Text:cl}=Typography)),{Option:Ov}=Select,Rv=e=>{let{expand:t=!0,value:n,readonly:r,onChange:o}=e,{data:i,isLoading:s,error:l}=Y0(),{data:a,isLoading:u}=Ln(),[c,d]=useState([]),p=i?.filter(y=>y.is_common),m=i?.filter(y=>!y.is_common),f=s||u,{t:g}=J();if(useEffect(()=>{let y=[];Object.keys(n??{}).forEach(b=>{b!=="global"&&y.push({gameId:b,permissions:n?.[b]??[]});}),d(y);},[n]),l)return jsx("div",{className:"flex justify-center",children:jsx(cl,{type:"danger",children:g("PermissionList.failedDescription")})});let v=()=>{d(y=>[...y,{gameId:"",permissions:[]}]);},h=y=>{d(b=>b.filter((w,C)=>C!==y));};return jsxs("div",{className:"flex flex-col w-full",children:[jsx("div",{className:"mb-12",children:jsx(Divider,{dashed:!0,children:g("PermissionList.baseSectionTitle")})}),jsx(Skeleton,{active:!0,loading:f,children:jsx(Xo,{value:n?.global,readonly:r,permissions:p,expand:t,onChange:y=>{o?.({...n,global:y});}})}),jsx("div",{className:"my-12",children:jsx(Divider,{dashed:!0,children:g("PermissionList.gameSectionTitle")})}),c.map((y,b)=>jsx(Card,{title:jsxs(Space,{children:[jsx(cl,{children:g("global.game")}),r?jsx(cl,{children:a?.find(w=>String(w.id)===y.gameId)?.name}):jsx(Select,{disabled:r,value:c[b].gameId||void 0,style:{width:"160px"},placeholder:g("PermissionList.gameSelectPlaceholder"),onChange:w=>{d(C=>{let S=C.slice();return S[b].gameId=w,S});},children:a?.map(w=>jsx(Ov,{value:w.id,disabled:c.some(({gameId:C})=>C===String(w.id)),children:w.name},w.id))})]}),className:"mb-6",extra:!r&&jsx(Button,{type:"link",onClick:()=>{h(b);},children:g("PermissionList.removeText")}),children:c[b].gameId?jsx(Skeleton,{active:!0,loading:f,children:jsx(Xo,{value:n?.[c[b].gameId],readonly:r,expand:t,permissions:m,onChange:w=>{o?.({...n,[c[b].gameId]:w});}})}):jsx(Empty,{description:g("PermissionList.gameSectionDescription")})},b)),!r&&jsx(Button,{block:!0,type:"dashed",onClick:v,children:g("PermissionList.addText")})]})},nf=Rv;});var Vv,Nv,of,sf=Q(()=>{Oe();Ur();ll();(({Text:Vv}=Typography)),Nv=e=>{let{expand:t=!0,value:n,readonly:r,onChange:o}=e,{data:i,isLoading:s,error:l}=W0(),{t:a}=J();return l?jsx("div",{className:"flex justify-center",children:jsx(Vv,{type:"danger",children:a("PermissionList.failedDescription")})}):jsx(Skeleton,{active:!0,loading:s,children:jsx(Xo,{value:n,permissions:i,readonly:r,expand:t,onChange:o})})},of=Nv;});var Kv,Qr,ul=Q(()=>{Ve();rf();sf();Kv=e=>{let{value:t}=e;console.log("value",typeof t,t===null,JSON.stringify(t));let{permissionVersion:n}=pe();return n==="v2"?jsx(nf,{...e,value:t}):jsx(of,{...e,value:t})},Qr=Kv;});var lf=Q(()=>{ul();});var uf,gs,pf=Q(()=>{Oe();is();ul();Ur();uf=({onSuccess:e}={})=>{let{t}=J(),{mutateAsync:n}=U0();return bn({title:t("Role.createTitle"),width:"50vw",formProps:{layout:"vertical"},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{addonBefore:"role_"})}),jsx(Form.Item,{name:"permissions",children:jsx(Qr,{})})]}),onConfirm:async r=>{await n({name:`role_${r.name}`,permissions:r.permissions}),e?.();}})},gs=({onSuccess:e}={})=>{let{t}=J(),{mutateAsync:n}=H0();return bn({title:t("Role.updateTitle"),width:"50vw",formProps:{layout:"vertical"},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:!0,addonBefore:"role_"})}),jsx(Form.Item,{name:"permissions",children:jsx(Qr,{})})]}),onConfirm:async(r,o)=>{await n({id:o?.id,name:`role_${r.name}`,permissions:r.permissions}),e?.();}})};});var Wv,Yv,yf,vf,dl,bf,xf,hs,wf=Q(()=>{Oe();is();yn();Bt();Dn();Ur();Wv=e=>{let{onChange:t,...n}=e,r=me(),{data:o,isLoading:i}=useQuery({queryKey:ie.enums.gameGroups,queryFn:()=>r.get("/api/enum/get?enum=game_group&type=all")}),s=[{label:"\u901A\u7528",value:Kt}].concat(o?.map(a=>({label:a,value:a}))??[]);return jsx(Select,{...n,allowClear:!0,showSearch:!0,mode:"tags",optionFilterProp:"label",loading:i,options:s,onChange:a=>{last(a)===Kt?t?.([Kt]):first(a)===Kt?t?.(a.slice(1)):t?.(a);}})},Yv=e=>{let{groups:t,onChange:n,...r}=e,o=me(),{data:i,isLoading:s}=useQuery({queryKey:ie.enums.gameIds(t||[]),queryFn:()=>o.get(`/api/enum/game_group/get_game_ids?game_groups=${t?.join(",")}`).then(u=>u?.list),enabled:!!t?.length}),l=i?.map(u=>({label:u.name,value:u.id}));return jsx(Select,{...r,allowClear:!0,showSearch:!0,optionFilterProp:"label",mode:"tags",loading:s,options:l,onChange:u=>{last(u)===Kt?n?.([Kt]):first(u)===Kt?n?.(u.slice(1)):n?.(u);}})},yf=({onSuccess:e}={})=>{let{t}=J(),{data:n,isLoading:r}=fs(),{mutateAsync:o}=rl();return bn({title:t("User.createTitle"),width:600,formProps:{autoComplete:"off",labelCol:{flex:"80px"}},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:t("global.role"),name:"roles",children:jsx(Select,{allowClear:!0,showSearch:!0,mode:"multiple",loading:r,optionFilterProp:"label",options:n?.map(i=>({label:i.name,value:i.name}))})})]}),onConfirm:async i=>{await o(i),e?.();}})},vf=({onSuccess:e}={})=>{let{t}=J(),{data:n,isLoading:r}=fs(),{mutateAsync:o}=ol();return bn({title:t("User.updateTitle"),width:600,formProps:{autoComplete:"off",labelCol:{flex:"80px"}},content:jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:!0})}),jsx(Form.Item,{label:t("global.role"),name:"roles",children:jsx(Select,{allowClear:!0,showSearch:!0,mode:"multiple",loading:r,optionFilterProp:"label",options:n?.map(i=>({label:i.name,value:i.name}))})})]}),onConfirm:async(i,s)=>{await o({...i,id:s?.id}),e?.();}})},{Text:dl}=Typography,bf=({isCreate:e})=>{let{t}=J(),{data:n,isLoading:r}=fs();return jsxs(Fragment,{children:[jsx(Form.Item,{label:t("global.name"),name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:!e})}),jsx(Form.List,{name:"permissions",children:(o,{add:i,remove:s})=>jsxs(Row,{gutter:8,children:[jsx(Col,{span:8,className:"text-center mb-4",children:jsx(dl,{strong:!0,children:t("global.projectGroup")})}),jsx(Col,{span:10,className:"text-center mb-4",children:jsx(dl,{strong:!0,children:t("global.game")})}),jsx(Col,{span:6,className:"text-center mb-4",children:jsx(dl,{strong:!0,children:t("global.role")})}),o.map(l=>jsxs(Fragment$1,{children:[jsx(Col,{span:8,children:jsx(Form.Item,{noStyle:!0,shouldUpdate:!0,children:({setFieldValue:a})=>jsx(Form.Item,{name:[l.name,"game_group"],children:jsx(Wv,{onChange:()=>{a(["permissions",l.name,"game_ids"],[]);}})})})}),jsx(Col,{span:10,children:jsx(Form.Item,{noStyle:!0,shouldUpdate:(a,u)=>a.permissions[l.name]?.game_group!==u.permissions[l.name]?.game_group,children:({getFieldValue:a})=>{let u=a(["permissions",l.name,"game_group"]);return jsx(Form.Item,{name:[l.name,"game_ids"],dependencies:[["permissions",l.name,"game_group"]],rules:[{required:u?.length,message:"\u8BF7\u9009\u62E9\u6E38\u620F"}],children:jsx(Yv,{groups:u})})}})}),jsx(Col,{span:6,children:jsxs("div",{className:"flex",children:[jsx("div",{className:"flex-1",children:jsx(Form.Item,{name:[l.name,"role"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u89D2\u8272"},({getFieldValue:a})=>({validator(u,c){return a("permissions").filter((m,f)=>!!m&&f!==l.name).some(m=>m.role===c)?Promise.reject(new Error("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\u89D2\u8272")):Promise.resolve()}})],children:jsx(Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",loading:r,options:n?.map(a=>({label:a.name,value:a.name}))})})}),jsx("div",{className:"w-8 text-center",children:jsx(Form.Item,{children:jsx(MinusCircleOutlined,{onClick:()=>{s(l.name);}})})})]})})]},l.key)),o.length===0&&jsx(Col,{span:24,children:jsx(Empty,{className:"mb-6"})}),jsx(Col,{span:24,children:jsx(Button,{block:!0,type:"dashed",onClick:()=>i(),children:t("global.add")})})]})})]})},xf=({onSuccess:e}={})=>{let{t}=J(),{mutateAsync:n}=rl();return bn({title:t("User.createTitle"),width:"50vw",formProps:{autoComplete:"off",labelCol:{flex:"80px"}},content:jsx(bf,{isCreate:!0}),onConfirm:async r=>{await n(r),e?.();}})},hs=({onSuccess:e}={})=>{let{t}=J(),{mutateAsync:n}=ol();return bn({title:t("User.updateTitle"),width:"50vw",formProps:{autoComplete:"off",labelCol:{flex:"80px"}},content:jsx(bf,{}),onConfirm:async(r,o)=>{await n({...r,id:o?.id}),e?.();}})};});var Cf=Q(()=>{pf();wf();});var Sf=Q(()=>{});var Jo=Q(()=>{lf();Cf();Ur();Sf();});var Tf={};cn(Tf,{default:()=>s7});var o7,i7,s7,$f=Q(()=>{Qo();Oe();Vr();Nr();Ve();Jo();o7="/api/usystem/user/list",i7=()=>{let{modal:e,message:t}=App.useApp(),{t:n}=J(),r=j0(),{refetch:o}=lt(),{permissionVersion:i}=pe(h=>h),s=i==="v1",l=i==="v3",{show:a,modal:u}=yf({onSuccess(){o("user-list",{page:1}),t.success(n("User.createSuccessfully"));}}),{show:c,modal:d}=vf({onSuccess(){o("user-list"),t.success(n("User.updateSuccessfully"));}}),{show:p,modal:m}=xf({onSuccess(){o("user-list",{page:1}),t.success(n("User.createSuccessfully"));}}),{show:f,modal:g}=hs({onSuccess(){o("user-list"),t.success(n("User.updateSuccessfully"));}}),v=[{title:n("global.name"),dataIndex:"name",key:"name",render(h,y){return l?jsx(Link,{to:`./${y.id}`,children:h}):h}},{title:"ID",dataIndex:"id",key:"id"},(s||l)&&{title:n("global.role"),dataIndex:"roles",key:"roles",width:"40%",render(h){return jsx(Row,{gutter:[4,4],children:(h||[]).map(y=>jsx(Col,{children:y==="root"?jsx(Tag,{color:"#f50",children:y}):jsx(Tag,{color:"#ff5a00",children:jsx(Link,{to:`../role/${y}`,children:y})})},y))})}},{title:n("global.creationTime"),dataIndex:"Ctime",key:"ctime"},{title:n("global.operation"),width:150,align:"center",render:(h,y)=>{let{name:b,permissions:w,roles:C,id:S}=y;return jsxs(Space,{children:[jsx(Ct,{size:"small",type:"link",code:"100003",onClick:()=>{l?f({initialValues:{name:b,permissions:w},extraValues:{id:S}}):c({initialValues:{name:b,roles:C},extraValues:{id:S}});},children:n("global.update")}),jsx(Ct,{danger:!0,size:"small",code:"100004",type:"link",onClick:()=>{e.confirm({title:n("User.deleteTitle"),content:jsx(Jn,{texts:[b],children:n("User.deleteContent",{user:b})}),async onOk(){await r.mutate({id:S,name:b}),o("user-list"),t.success(n("User.deleteSuccessfully"));}});},children:n("global.delete")})]})}}].filter(Boolean);return jsxs(Fragment,{children:[jsx(Card,{title:n("global.user"),extra:jsx(Ct,{type:"primary",icon:jsx(UserAddOutlined,{}),code:"100002",onClick:()=>{l?p():a();},children:n("User.createTitle")}),children:jsx(xn,{identifier:"user-list",code:"100001",request:{url:o7,method:"GET"},rowKey:"id",columns:v,dataAdapter:h=>({total:h?.Total,items:h?.List}),renderForm:l?h=>jsx(Form,{form:h,children:jsx(Form.Item,{label:"\u540D\u79F0",name:"name",children:jsx(Input,{})})}):void 0})}),u,d,m,g]})},s7=at(i7,{isGlobal:!0});});var Df={};cn(Df,{default:()=>g7});var m7,g7,Lf=Q(()=>{Oe();Vr();Ve();yn();Jo();Bt();Dn();wt();m7=()=>{let{message:e}=App.useApp(),t=useParams(),{t:n}=J(),{gameApiV2:r}=pe(),o=me(),{data:i,isLoading:s,refetch:l}=useQuery({queryKey:ie.users.detail(t.id||""),queryFn:()=>o.get(`/api/usystem/user/info?id=${t.id}`),enabled:!!t.id}),{data:a}=Ln(),{data:u}=Dt("200005"),{show:c,modal:d}=hs({onSuccess(){l(),e.success(n("User.updateSuccessfully"));}}),p=[{key:"group",title:n("global.projectGroup"),dataIndex:"game_group",render(m){return m.map(f=>jsx(Tag,{children:f===Kt?"\u901A\u7528":f},f))}},{key:"game",title:n("global.game"),dataIndex:"game_ids",render(m){return m.map(f=>{let g=a?.find(v=>String(r?v.game_id:v.id)===f);return jsx(Tag,{children:g?.name??(f===Kt?"\u901A\u7528":f)},f)})}},{key:"role",title:n("global.role"),dataIndex:"role",render(m){return u?jsx(Link,{to:`../../role/${m}`,relative:"path",children:m}):m}}];return jsxs(Fragment,{children:[jsx(Breadcrumb,{style:{marginBottom:"1.5rem"},items:[{key:"1",title:jsx(Link,{to:"..",relative:"path",children:n("global.user")})},{key:"2",title:"\u7528\u6237\u8BE6\u60C5"}]}),jsx(Card,{title:"\u7528\u6237\u8BE6\u60C5",loading:s,extra:jsx(Ct,{code:"100003",onClick:()=>{c({initialValues:{name:i?.name,permissions:i?.permissions},extraValues:{id:i.id}});},children:n("global.update")}),children:jsxs(Descriptions,{bordered:!0,column:1,children:[jsx(Descriptions.Item,{label:n("global.name"),children:i?.name}),jsx(Descriptions.Item,{label:"ID",children:i?.id}),jsx(Descriptions.Item,{label:n("global.role"),children:jsx(Table,{rowKey:"role",columns:p,dataSource:i?.permissions,pagination:!1})})]})}),d]})},g7=m7;});var Rf={};cn(Rf,{default:()=>k7});var C7,S7,k7,qf=Q(()=>{Qo();Oe();Vr();Nr();as();Ve();Jo();Bt();wt();C7="/api/usystem/role/list",S7=()=>{let{modal:e,message:t}=App.useApp(),{data:n}=Dt("200005"),{t:r}=J(),{permissionVersion:o}=pe(f=>f),{refetch:i}=lt(),s=me(),{show:l,modal:a}=uf({onSuccess(){i("role-list",{page:1}),t.success(r("Role.createSuccessfully"));}}),{show:u,modal:c}=gs({onSuccess(){i("role-list"),t.success(r("Role.updateSuccessfully"));}}),d=Q0(),p=async f=>{let g=await s.get(`/api/usystem/role/info${o==="v2"?"V2":""}?name=${f.name}`);u({initialValues:{permissions:g.permissions,name:g.name.replace(/^role_/,"")},extraValues:{id:g?.id}});},m=[{title:r("global.name"),key:"name",render(f){return n?jsx(Link,{to:`${f.name}`,relative:"path",children:f.name}):jsx(Fragment,{children:f.name})}},{title:"ID",dataIndex:"id",key:"id"},{title:r("global.creationTime"),dataIndex:"ctime",key:"ctime"},{title:r("global.operation"),width:150,align:"center",render:(f,g)=>jsxs(Space,{size:"small",children:[jsx(Ct,{code:"200003",size:"small",type:"link",onClick:async()=>{p(g);},children:r("global.update")}),jsx(Ct,{danger:!0,code:"200004",size:"small",type:"link",onClick:()=>{e.confirm({title:r("Role.deleteTitle"),content:jsx(Jn,{texts:[g.name],children:r("Role.deleteContent",{role:g.name})}),async onOk(){await d.mutate({id:g.id,name:g.name}),i("role-list"),t.success(r("Role.deleteSuccessfully"));}});},children:r("global.delete")})]})}];return jsxs(Fragment,{children:[jsx(Card,{title:r("global.role"),extra:jsx(Ct,{type:"primary",code:"200002",icon:jsx(UsergroupAddOutlined,{}),onClick:()=>{l();},children:r("Role.createTitle")}),children:jsx(xn,{identifier:"role-list",rowKey:"name",columns:m,code:"200001",request:{url:C7,method:"GET"},dataAdapter:f=>({total:f?.Total,items:f?.List})})}),a,c]})},k7=at(S7,{isGlobal:!0});});var zf={};cn(zf,{default:()=>L7});var D7,L7,Vf=Q(()=>{Oe();Vr();Ve();Jo();Dn();D7=()=>{let{message:e}=App.useApp(),t=useParams(),{t:n}=J(),r=useQueryClient(),{permissionVersion:o}=pe(),{data:i,isLoading:s}=G0(t.name),{show:l,modal:a}=gs({onSuccess(){let c=o==="v2"?"v2":"v1";r.invalidateQueries({queryKey:ie.roles.detail(t.name,c)}),e.success(n("Role.updateSuccessfully"));}}),u=async()=>{l({initialValues:{permissions:i?.permissions,name:i?.name.replace(/^role_/,"")},extraValues:{id:i.id}});};return jsxs(Fragment,{children:[jsx(Breadcrumb,{style:{marginBottom:"1.5rem"},items:[{key:"1",title:jsx(Link,{to:"..",relative:"path",children:n("global.role")})},{key:"2",title:n("RoleDetail.title")}]}),jsx(Card,{title:n("RoleDetail.title"),extra:jsx(Ct,{code:"200003",onClick:u,children:n("global.update")}),children:jsxs(Skeleton,{loading:s,children:[jsxs(Descriptions,{column:2,layout:"vertical",className:"mb-6",children:[jsx(Descriptions.Item,{label:n("global.name"),children:i?.name}),jsx(Descriptions.Item,{label:"ID",children:i?.id}),jsx(Descriptions.Item,{label:n("global.creationTime"),children:i?.ctime})]}),jsx(Divider,{}),jsx(Qr,{readonly:!0,value:i?.permissions})]})}),a]})},L7=at(D7,{isGlobal:!0});});Jr();var ws=create((e,t)=>({open:new Map,usedIds:new Set,isOpen:n=>t().open.get(n)??!1,show(n){e({open:new Map(t().open).set(n,!0)});},hide(n){e({open:new Map(t().open).set(n,!1)});},hideAll(){e({open:new Map});},checkUniqueness(n){let{usedIds:r}=t();return !r.has(n)},registerIds(n){let{usedIds:r}=t();return r.has(n)?!1:(e({usedIds:new Set(r).add(n)}),!0)},cleanup(n){let{open:r,usedIds:o}=t(),i=new Map(r),s=new Set(o);i.delete(n),s.delete(n),e({open:i,usedIds:s});}}));function Ss(e){let{content:t,onConfirm:n,afterOpen:r,afterClose:o,footer:i,confirmText:s="\u786E\u8BA4",cancelText:l="\u53D6\u6D88",confirmButtonProps:a,cancelButtonProps:u,...c}=e,d=useMemo(()=>ii(),[]),{show:p,hide:m,isOpen:f,cleanup:g}=ws();useEffect(()=>()=>{g(d);},[d,g]);let v=f(d),[h,y]=useState(!1),b=typeof t=="function",w=useCallback(async()=>{p(d),await r?.();},[d,p,r]),C=useCallback(()=>{m(d);},[d,m]),S=useCallback(async()=>{C(),await o?.();},[C,o]),k=useCallback(async()=>{try{y(!0),await n?.();}catch(P){throw console.error("Drawer confirm error:",P),P}finally{y(!1);}},[n]),E=i!==void 0?i:jsxs("div",{className:"flex gap-4 mx-4",children:[jsx(Button,{type:"primary",loading:h,...a,onClick:k,children:s}),jsx(Button,{...u,onClick:S,children:l})]}),I=jsx(Drawer,{...c,open:v,footer:E,onClose:S,children:b?t({hide:C}):t});return {id:d,show:w,hide:C,confirmLoading:h,drawer:I}}function rp(e){let{content:t,form:n,formProps:r,onConfirm:o,onSuccess:i,afterClose:s,...l}=e,[a,u]=useState({}),[c]=Form.useForm();c=n||c;let d=typeof t=="function",{id:p,show:m,hide:f,drawer:g}=Ss({...l,content:h=>jsx(Form,{...r,form:c,children:d?t(a,h):t}),onConfirm:async()=>{try{let h=await c.validateFields();await o?.(h,a),i?.(),f();}catch(h){throw console.error("Form validation or submission error:",h),h}},afterClose:()=>{s?.(c);}}),v=useCallback(h=>{let{initialValues:y,extraValues:b}=h||{};b&&u(b),y&&c.setFieldsValue(y),m();},[c,m]);return {id:p,show:v,hide:f,drawer:g}}Oe();var b4=e=>{let{initialTags:t,addable:n,removable:r,addCallback:o,removeCallback:i}=e,{t:s}=J(),{token:l}=theme.useToken(),[a,u]=useState([]),[c,d]=useState(!1),[p,m]=useState(""),[f,g]=useState(-1),[v,h]=useState(""),y=useRef(null),b=useRef(null);useEffect(()=>{u(t??[]);},[t]),useEffect(()=>{c&&y.current?.focus();},[c]),useEffect(()=>{b.current?.focus();},[p]);let w=async L=>{if(await i?.(L)){let K=a.filter(oe=>oe!==L);u(K);}},C=()=>{d(!0);},S=L=>{m(L.target.value);},k=async()=>{p&&a.indexOf(p)===-1&&await o?.(p)&&u([...a,p]),d(!1),m("");},E=L=>{h(L.target.value);},I=()=>{let L=[...a];L[f]=v,u(L),g(-1),m("");},P={width:78,verticalAlign:"top"},V={background:l.colorBgContainer,borderStyle:"dashed"};return jsxs(Space,{wrap:!0,size:[0,8],children:[jsx(Space,{wrap:!0,size:[0,8],children:a.map((L,H)=>f===H?jsx(Input,{ref:b,size:"small",style:P,value:v,onChange:E,onBlur:I,onPressEnter:I},L):jsx(Tag,{closable:r,style:{userSelect:"none"},onClose:async K=>{K.preventDefault(),await w(L);},children:jsx("span",{onDoubleClick:K=>{H!==0&&(g(H),h(L),K.preventDefault());},children:L})},L))}),n&&(c?jsx(Input,{ref:y,type:"text",size:"small",style:P,value:p,onChange:S,onBlur:k,onPressEnter:k}):jsxs(Tag,{style:V,onClick:C,children:[jsx(PlusOutlined,{}),"\xA0",s("global.add")]}))]})},x4=b4;var S4=e=>{let{children:t,...n}=e,[r,o]=useState(!1);return jsx(Typography.Paragraph,{...n,className:"mb-0",ellipsis:{rows:2,expandable:"collapsible",expanded:r,onExpand:(i,s)=>{o(s.expanded);}},children:t})},Wi=S4;Yi();Qo();Yi();Oe();Bt();wt();var H4=()=>create()(devtools(subscribeWithSelector((e,t)=>({instances:new Map,registerInstance(n,r,o,i,s){e(l=>{let a=l.instances.get(n);if(a){let d={...a,refetch:i,fetchNextPage:s},p=new Map(l.instances);return p.set(n,d),{instances:p}}let u={id:n,url:r,queryKey:o,payload:{page:0,formValue:{}},refetch:i,fetchNextPage:s},c=new Map(l.instances);return c.set(n,u),{instances:c}});},unregisterInstance(n){e(r=>{let o=new Map(r.instances);return o.delete(n)?{instances:o}:r});},updatePayload(n,r){e(o=>{let i=o.instances.get(n);if(!i)return o;let s={...i.payload,...r};if(!isEqual(i.payload,s)){let l={...i,payload:s},a=new Map(o.instances);return a.set(n,l),{instances:a}}return o});},getPayload(n){return t().instances.get(n)?.payload??{page:0,formValue:{}}},async refetch(n,r){let o=t().instances.get(n);if(!o){console.warn(`InfiniteList instance with id "${n}" not found`);return}if(r){let i=o.payload,s={...i,...r};isEqual(i,s)||t().updatePayload(n,r);}try{await o.refetch();}catch(i){throw console.error(`Failed to refetch InfiniteList instance "${n}":`,i),i}},async fetchNextPage(n){let r=t().instances.get(n);if(!r){console.warn(`InfiniteList instance with id "${n}" not found`);return}try{await r.fetchNextPage();}catch(o){throw console.error(`Failed to fetch next page for InfiniteList instance "${n}":`,o),o}},getInstance(n){return t().instances.get(n)},getAllInstances(){return Array.from(t().instances.values())}})),{name:"infinite-list-store"})),Q4=H4(),rn=Q4;var o5=(e,t)=>{let r={refreshInterval:0,initialPageParam:0,...e,dataAdapter:{...{items:Y=>Y?Y.flatMap(ue=>ue?.list||ue||[]):[],hasMore:Y=>{if(!Y)return !1;let ue=Y;return ue?.hasMore||ue?.has_more||!1},nextPageParam:(Y,ue,ye)=>(ve=>{if(!ve)return !1;let X=ve;return X?.hasMore||X?.has_more||!1})(Y)?ue.length:void 0},...e.dataAdapter}},{identifier:o,code:i,buttonsAlign:s,showReset:l,refreshInterval:a,request:u,tableExtra:c,renderForm:d,afterSuccess:p,afterError:m,dataAdapter:f,initialPageParam:g,footer:v,form:h,...y}=r,{t:b}=J(),[w]=Form.useForm(h),[C,S]=useState(!1),k=useRef(!1),E=useRef(3),I=me(),{data:P,isLoading:V}=Dt(i),L=useCallback(()=>rn.getState().getPayload(o),[o]),H=useMemo(()=>w,[w]),{url:K,method:oe="GET",body:de,params:he,headers:xe,cacheTime:we=5*60*1e3,staleTime:Pe=0}=u,qe=useMemo(()=>typeof xe=="function"?xe(H):xe,[xe,H]),Ee=useMemo(()=>{let Y=L();return [K,o,P,C,Y,qe]},[K,o,P,C,L,qe]),{data:Re,fetchNextPage:_,hasNextPage:Te,isFetchingNextPage:le,refetch:Ue,isFetching:Z}=useInfiniteQuery({queryKey:Ee,queryFn:async({pageParam:Y=g})=>{try{let ue=L(),ye=typeof he=="function"?he(ue,Y):he,fe=typeof de=="function"?de(ue,Y):de,ve={method:oe,searchParams:ye,headers:qe};fe&&(fe instanceof FormData?ve.body=fe:ve.json=fe);let X=await I.request({url:K,...ve});return k.current=!0,p?.(E.current,H,[X]),X}catch(ue){let ye=ue instanceof Error?ue:new Error(String(ue));throw m?.(ye,E.current,H),ye}},initialPageParam:g,getNextPageParam:(Y,ue)=>f?.nextPageParam?.(Y,ue,g),enabled:P&&C,retry:(Y,ue)=>!(Y>=3||ue?.message?.includes("401")),retryDelay:Y=>Math.min(1e3*2**Y,3e4),refetchOnWindowFocus:!1,refetchInterval:k.current?a:0,gcTime:we,staleTime:Pe});useEffect(()=>(rn.getState().registerInstance(o,K,Ee,Ue,_),()=>{rn.getState().unregisterInstance(o);}),[o,K,Ee,Ue,_]);let He=f?.items?.(Re?.pages,H),Ae=le,kt=!Te,_e=!He||He.length===0,ct=async()=>{E.current=0;let Y=await w.getFieldsValue();try{await w.validateFields(),S(!0),rn.getState().updatePayload(o,{page:0,formValue:Y}),Ue();}catch{S(!1);}},pt=()=>{E.current=2,_();},Ze=async()=>{E.current=1;try{w.resetFields();let Y=await w.getFieldsValue();rn.getState().updatePayload(o,{page:0,formValue:Y}),await w.validateFields({validateOnly:!0}),Ue();}catch{}};if(useEffect(()=>{setTimeout(()=>{P&&w.validateFields({validateOnly:!0}).then(Y=>{S(!0),rn.getState().updatePayload(o,{page:0,formValue:Y});}).catch(()=>{S(!1);});},300);},[P,w,o]),useImperativeHandle(t,()=>({data:Re?.pages,dataSource:He,form:w,refetch:()=>rn.getState().refetch(o),fetchNextPage:()=>rn.getState().fetchNextPage(o),hasNextPage:!!Te,isFetchingNextPage:le})),V)return jsx(Spin,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:300}});if(!P)return jsx(Result,{status:403,subTitle:b("global.noEntitlement")});let Je=v&&(()=>v(Re?.pages)),ut=()=>typeof c=="function"?c(H,Re?.pages):c,O=typeof d=="function"?jsx(Ho,{showReset:l,buttonsAlign:s,isConfirming:Z,onReset:Ze,onConfirm:ct,children:cloneElement(d(w),{onKeyUp:Y=>{Y.key==="Enter"&&ct();}})}):jsx(Form,{form:w});return jsxs(Fragment,{children:[O,ut(),jsx("div",{style:{minHeight:"400px"},children:jsx(Table,{...y,dataSource:He,loading:Z,pagination:!1,footer:Je})}),!_e&&jsx(Button,{block:!0,loading:Ae,type:"link",htmlType:"button",disabled:Ae||kt,onClick:pt,children:b(Ae?"InfiniteList.loadingText":kt?"InfiniteList.reachEndText":"InfiniteList.loadMoreText")})]})},i5=forwardRef(o5),s5=i5;var e0=create()(persist((e,t)=>({openKeys:[],setOpenKeys:n=>{let r=t();(r.openKeys.length!==n.length||!r.openKeys.every((o,i)=>o===n[i]))&&e({openKeys:n});},selectedKeys:[],setSelectedKeys:n=>{let r=t();(r.selectedKeys.length!==n.length||!r.selectedKeys.every((o,i)=>o===n[i]))&&e({selectedKeys:n});}}),{name:"nav",storage:createJSONStorage(()=>localStorage),partialize:e=>({openKeys:e.openKeys,selectedKeys:e.selectedKeys}),skipHydration:!1,version:1}));var t0=memo(({to:e,children:t})=>jsx(Link,{to:e,children:t}));t0.displayName="MemoizedLink";function es(e){let t=[];if(e)for(let n=0;n<e.length;n++)if(e[n]===null||e[n].type==="divider")t[n]=e[n];else if(e[n].children){let{children:r,...o}=e[n];t[n]={...o,children:es(r)};}else {let{route:r,label:o,...i}=e[n],s=r?jsx(t0,{to:r,children:o}):o;t[n]={...i,label:s};}return t}function ts(e,t=[],n=[]){for(let r of e){let o=r?.children;if(Array.isArray(o)){let i=r.type!=="group"&&r.key?[...n,r.key]:n;ts(o,t,i);}else r&&t.push(Object.assign(r,{keypath:n}));}return t}var i0=memo(function(t){let{items:n=[],theme:r,loading:o}=t,i=useLocation(),s=useRef(),l=useRef(),a=useMemo(()=>s.current===n?s.current?ts(s.current):[]:(s.current=n,ts(n)),[n]),u=useMemo(()=>s.current===n?s.current?es(s.current):[]:es(n),[n]),{openKeys:c,selectedKeys:d,setOpenKeys:p,setSelectedKeys:m}=e0(),f=useCallback(g=>{let v=g.find(h=>!c.includes(h));if(v){let h=a.find(b=>b.key===v),y=h?.keypath?[...h.keypath,v]:[v];p(y);}else p(g);},[a,c,p]);return useEffect(()=>{if(l.current===i.pathname)return;l.current=i.pathname;let g=a.find(v=>i.pathname===v.route);if(g){let v=g.key,h=g.keypath;(d[0]!==v||!c.every((y,b)=>y===h[b]))&&(m([v]),p(h));}},[a,i.pathname,d,c,m,p]),o?jsx("div",{className:"flex justify-center items-center",style:{height:"calc(100vh - 64px)"},children:jsx(Spin,{})}):jsx(Menu,{theme:r,style:{borderRight:"none"},items:u,mode:"inline",openKeys:c,selectedKeys:d,onOpenChange:f})});process.env.NODE_ENV==="development"&&(i0.displayName="NavMenu");var qa=i0;Oe();Ve();wt();var {Spin:C5}=jo,S5=({children:e})=>{let{permissionVersion:t,gameId:n,isGlobal:r}=pe(s=>s),{isLoading:o}=Ln(),{t:i}=J();return o?jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:400},children:jsx(C5,{})}):t==="v1"||r?e:n?jsx(Fragment$1,{children:e},n):jsx(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,description:i("RequireGame.description")})},za=S5;Ve();Oe();Ve();var $5=()=>{let{t:e}=J(),t=useNavigate(),{clearToken:n,getUser:r,signInPath:o}=pe(c=>c),i=r(),s=()=>{n(),t(o);},l=c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),s());},a=c=>{(c.key==="Enter"||c.key===" ")&&c.preventDefault();},u=[{key:"1",icon:jsx(LogoutOutlined,{}),label:jsx("a",{role:"button",tabIndex:0,onClick:s,onKeyDown:l,children:e("UserWidget.signOutText")})}];return jsx("div",{children:jsx(Dropdown,{menu:{selectable:!0,items:u},placement:"bottomRight",children:jsx("a",{role:"button",tabIndex:0,onClick:c=>{c.preventDefault();},onKeyDown:a,children:jsxs(Space,{align:"center",children:[jsx("span",{children:i?.authorityId}),jsx(UserOutlined,{style:{fontSize:"16px"}})]})})})})},Va=$5;Oe();Ve();wt();var{Text:O5}=Typography,R5=e=>{let{filter:t,options:n}=e,{t:r}=J(),{gameApiV2:o,gameId:i,setGameId:s}=pe(f=>f),{data:l,isLoading:a}=Ln(),u=useQueryClient(),c=l?.filter(f=>t?.(f)??!0),d=typeof n=="function"?n(c):c?.map(f=>({label:f.name,value:o?f.game_id:f.id})),p=f=>{m(),s(f);},m=()=>{u.removeQueries({predicate:f=>{let g=f.queryKey;return !g.includes("/api/game/list")&&!g.includes("/api/usystem/game/all")}});};return useEffect(()=>{if(l&&l.length>0){let f=o?l[0].game_id:l[0].id;l.every(g=>String(g.game_id||g.id)!==String(i))&&s(f);}},[l]),jsxs(Space,{children:[jsx(O5,{children:r("GameSelect.label")}),jsx(Select,{showSearch:!0,optionFilterProp:"label",value:i,placeholder:r("GameSelect.placeholder"),loading:a,style:{width:"200px"},options:d,onChange:p})]})},l0=R5;var V5=e=>jsx("img",{src:z5,alt:"logo",...e}),qr=V5;var u0=memo(({title:e,subtitle:t,mainPagePath:n,collapsed:r})=>jsxs("div",{className:"px-6 py-2 font-bold relative bg-gradient-to-r from-white to-gray-50/30",style:{height:"auto",display:"flex",flexDirection:"column",justifyContent:"center",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},children:[jsxs("div",{className:`flex items-center w-full ${r?"justify-center":""}`,children:[jsx(Link,{to:n,className:"hover:opacity-80 transition-all duration-300 ease-out block rounded-lg p-1 hover:bg-white/50 hover:shadow-sm",style:{transition:"all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)",opacity:r?.8:1,transform:"translateX(0)"},children:jsx(qr,{width:36,style:{objectFit:"contain",display:"block",filter:"drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05))",transition:"all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"}})}),e&&jsx("div",{className:"ml-4 overflow-hidden min-w-0",style:{transition:"all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)",opacity:r?0:1,width:r?"0px":"auto",marginLeft:r?"0px":"16px",transform:r?"translateX(-8px)":"translateX(0)"},children:jsx(Link,{to:n,className:"text-xl leading-tight hover:text-blue-600 transition-all duration-300 font-bold text-ellipsis overflow-hidden whitespace-nowrap block bg-gradient-to-r from-gray-800 to-gray-600 bg-clip-text text-transparent hover:from-blue-600 hover:to-blue-500",title:e,style:{letterSpacing:"0.02em",textShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"},children:e})})]}),jsx("div",{className:"w-full mt-2 overflow-hidden",style:{height:t&&!r?"20px":"1px",transition:"height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:jsxs("div",{className:"flex items-center justify-center h-full w-full",children:[jsx("div",{className:"w-full border-t border-gray-200 absolute",style:{opacity:!t||r?1:0,transition:"opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"}}),t&&jsxs("div",{className:"flex items-center w-full text-sm",style:{opacity:r?0:1,transform:r?"translateY(-3px)":"translateY(0)",transition:"all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:[jsx("div",{className:"flex-1 border-t border-gray-200"}),jsx("span",{className:"px-3 text-gray-500 font-medium whitespace-nowrap",title:t,children:t}),jsx("div",{className:"flex-1 border-t border-gray-200"})]})]})})]}));u0.displayName="LayoutHeader";var d0=u0;var {Spin:j5,theme:W5}=jo,{Header:Y5,Sider:X5,Content:Z5}=jo.Layout,J5=e=>{let{collapsible:t,isMenuLoading:n,items:r,headerExtra:o,children:i,navWidth:s,filter:l,gameSelectOptions:a,title:u,subtitle:c}=e,{token:{colorBgContainer:d,colorBorder:p}}=W5.useToken(),{permissionVersion:m,navWidth:f,collapsible:g,mainPagePath:v,collapsed:h,setContext:y,isGlobal:b}=pe(),[w,C]=useState(h),S=async()=>{C(!w),y({collapsed:!w});},k=t??g??!1;return jsxs(jo.Layout,{children:[jsxs(X5,{collapsible:k,theme:"light",trigger:null,collapsed:w,width:s??f,style:{height:"100vh",overflowX:"hidden",overflowY:"auto",borderRightWidth:1,borderRightStyle:"solid",borderRightColor:p,transition:"all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)"},children:[jsx(d0,{title:u,subtitle:c,mainPagePath:v,collapsed:w||!1}),jsx(qa,{items:r,loading:n})]}),jsxs(jo.Layout,{children:[jsx(Y5,{style:{padding:"0 24px",background:d},children:jsxs("div",{className:"flex justify-between items-center h-full",children:[jsxs(Space,{size:"small",split:jsx(Divider,{type:"vertical"}),className:"mr-6",children:[k&&jsx(Button,{type:"text",icon:w?jsx(MenuUnfoldOutlined,{}):jsx(MenuFoldOutlined,{}),style:{fontSize:"16px"},onClick:S}),m!=="v1"&&!b&&jsx(l0,{filter:l,options:a}),o?.left?.map(E=>jsx("span",{children:E.children},E.key))]}),jsxs(Space,{size:"small",split:jsx(Divider,{type:"vertical"}),children:[o?.right?.map(E=>jsx("span",{children:E.children},E.key)),jsx(Va,{})]})]})}),jsx(Z5,{style:{overflow:"auto",padding:"24px 16px",maxHeight:"calc(100vh - 64px)",transition:"margin-left 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)"},children:jsx(Suspense,{fallback:jsx(j5,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px"}}),children:jsx(za,{children:i})})})]})]})},e6=J5;is();Vr();Nr();Oe();wt();var A6=e=>{let{code:t,config:n,children:r}=e,{data:o,isLoading:i}=Dt(t,n),{t:s}=J();return i?jsx(Spin,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:200}}):o?jsx(Fragment,{children:r}):jsx(Result,{status:"403",subTitle:s("global.noEntitlement")})},O6=A6;Ve();yn();var uv=lazy(()=>Promise.resolve().then(()=>(M0(),$0))),dv=lazy(()=>Promise.resolve().then(()=>(A0(),L0))),fv=lazy(()=>Promise.resolve().then(()=>(V0(),z0))),pv=jsxs(Routes,{children:[jsx(Route,{index:!0,element:jsx(uv,{})}),jsx(Route,{path:"create",element:jsx(dv,{})}),jsx(Route,{path:"update/:id",element:jsx(fv,{})})]});Oe();var vv=e=>{let{redirectUrl:t}=e,n=useNavigate(),{t:r}=J();return jsx("div",{className:"text-center",children:jsx(Result,{status:"404",title:"404",subTitle:r("NotFound.subTitle"),extra:t&&jsx(Button,{type:"primary",onClick:()=>{n(t);},children:r("NotFound.buttonText")})})})},bv=vv;Oe();Nr();Ve();var {Option:N0}=Select,Cv=()=>{let{t:e}=J(),t=[{key:"username",title:e("global.username"),dataIndex:"uname",width:100},{key:"label",title:e("global.label"),dataIndex:"label",width:150},{key:"method",title:e("global.method"),dataIndex:"method",width:100},{key:"route",title:e("global.route"),dataIndex:"route",width:200},{key:"request",title:e("global.request"),dataIndex:"request",render(n){return jsx(Wi,{children:n})}},{key:"response",title:e("global.response"),dataIndex:"response",render(n){return jsx(Wi,{children:n})}},{key:"creation_time",title:e("global.creationTime"),dataIndex:"ctime",width:200,render(n){return wv(n).format("YYYY-MM-DD HH:mm:ss")}}];return jsx(Card,{title:"\u64CD\u4F5C\u65E5\u5FD7",children:jsx(xn,{identifier:"operation-log-list",rowKey:"id",code:"300001",columns:t,tableLayout:"fixed",request:{url:"/api/usystem/log/list",method:"GET"},dataAdapter:n=>({total:n?.Total,items:n?.List}),renderForm:n=>jsxs(Form,{form:n,layout:"inline",children:[jsx(Form.Item,{label:e("global.username"),name:"uname",children:jsx(Input,{allowClear:!0})}),jsx(Form.Item,{label:e("global.route"),name:"route",children:jsx(Input,{allowClear:!0})}),jsx(Form.Item,{label:e("global.method"),name:"method",children:jsxs(Select,{allowClear:!0,style:{width:"100px"},children:[jsx(N0,{value:"get",children:"GET"}),jsx(N0,{value:"post",children:"POST"})]})}),jsx(Form.Item,{label:e("global.label"),name:"label",children:jsx(Input,{allowClear:!0})})]})})})},Sv=at(Cv,{isGlobal:!0});var q7=lazy(()=>Promise.resolve().then(()=>($f(),Tf))),z7=lazy(()=>Promise.resolve().then(()=>(Lf(),Df))),V7=lazy(()=>Promise.resolve().then(()=>(qf(),Rf))),N7=lazy(()=>Promise.resolve().then(()=>(Vf(),zf))),K7=jsxs(Routes,{children:[jsx(Route,{index:!0,element:jsx(Navigate,{to:"user"})}),jsx(Route,{path:"user",element:jsx(q7,{})}),jsx(Route,{path:"user/:id",element:jsx(z7,{})}),jsx(Route,{path:"role",element:jsx(V7,{})}),jsx(Route,{path:"role/:name",element:jsx(N7,{})})]});Oe();Ve();yn();var Nf='data:image/svg+xml,<svg xml:space="preserve" style="enable-background:new 0 0 6000 4000;" viewBox="0 0 6000 4000" y="0px" x="0px" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" id="Layer_1" version="1.1">%0A<style type="text/css">%0A%09.Graphic_x0020_Style_x0020_100{fill:%23FFFFFF;}%0A%09.Graphic_x0020_Style_x0020_101{fill:url(%23SVGID_1_);}%0A%09.Graphic_x0020_Style_x0020_102{fill:url(%23SVGID_2_);}%0A%09.Graphic_x0020_Style_x0020_104{fill:%23DB6767;}%0A%09.Graphic_x0020_Style_x0020_105{fill:%23FFDE70;}%0A%09.Graphic_x0020_Style_x0020_106{fill:%23FFB114;}%0A%09.Graphic_x0020_Style_x0020_107{fill:%236584C6;}%0A%09.Graphic_x0020_Style_x0020_108{fill:%23102140;}%0A%09.Graphic_x0020_Style_x0020_109{fill:%233B546B;}%0A%09.Graphic_x0020_Style_x0020_110{fill:%23152A52;}%0A%09.Graphic_x0020_Style_x0020_111{fill:%23E8766F;}%0A%09.Graphic_x0020_Style_x0020_112{fill:%23EF5668;}%0A%09.Graphic_x0020_Style_x0020_113{fill:%23FC9590;}%0A%09.Graphic_x0020_Style_x0020_114{fill:%23912433;}%0A%09.Graphic_x0020_Style_x0020_115{opacity:0.5;fill:%23FFFFFF;}%0A%09.Graphic_x0020_Style_x0020_116{fill:%231A1A1A;}%0A%09.Graphic_x0020_Style_x0020_117{fill:%23535353;}%0A%09.Graphic_x0020_Style_x0020_118{fill:%23DBD2DB;}%0A%09.Graphic_x0020_Style_x0020_119{fill:%234D73C6;}%0A%09.Graphic_x0020_Style_x0020_120{fill:%23D1334A;}%0A%09.Graphic_x0020_Style_x0020_123{fill:url(%23SVGID_3_);}%0A%09.st0{fill:url(%23SVGID_4_);}%0A%09.st1{fill:url(%23SVGID_5_);}%0A%09.st2{fill:url(%23SVGID_6_);}%0A%09.st3{fill:%239D8A9D;}%0A%09.st4{fill:url(%23SVGID_7_);}%0A%09.st5{fill:url(%23SVGID_8_);}%0A%09.st6{fill:%233B546B;}%0A%09.st7{fill:%23A8A1A8;}%0A%09.st8{fill:%23DBD2DB;}%0A%09.st9{fill:%23FFFFFF;stroke:%231A1A1A;stroke-width:5.3432;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st10{fill:%23339E7E;}%0A%09.st11{fill:none;stroke:%2310663F;stroke-width:5.3432;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st12{fill:%2300593B;}%0A%09.st13{fill:none;stroke:%233DBE88;stroke-width:5.3432;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st14{fill:none;stroke:%23134411;stroke-width:8.0149;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st15{fill:%23EF5668;}%0A%09.st16{fill:%23FC9590;}%0A%09.st17{fill:%23102140;}%0A%09.st18{fill:%23DB6767;}%0A%09.st19{fill:%231A1A1A;stroke:%231A1A1A;stroke-width:5.3432;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%0A%09.st20{fill:%23FFFFFF;}%0A%09.st21{fill:%23535353;}%0A%09.st22{fill:%23F9EBF9;}%0A%09.st23{fill:%23D896D8;}%0A%09.st24{fill:%238E3D8E;}%0A%09.st25{fill:%23CA74CA;}%0A%09.st26{fill:%23D590D5;}%0A%09.st27{fill:%23160A16;}%0A%09.st28{fill:%23384A6E;}%0A%09.st29{fill:%23B7C0D4;}%0A%09.st30{fill:%23E8766F;}%0A%09.st31{fill:%23FFB114;}%0A%09.st32{fill:%23FFDE70;}%0A%09.st33{fill:%23434343;}%0A%09.st34{fill:%23664708;}%0A%09.st35{fill:%23D9D9D9;}%0A%09.st36{fill:url(%23SVGID_9_);}%0A%09.st37{fill:url(%23SVGID_10_);}%0A%09.st38{fill:url(%23SVGID_11_);}%0A%09.st39{fill:url(%23SVGID_12_);}%0A</style>%0A<linearGradient y2="0" x2="1" y1="0" x1="0" gradientUnits="userSpaceOnUse" id="SVGID_1_">%0A%09<stop style="stop-color:%234085F0" offset="0"></stop>%0A%09<stop style="stop-color:%23275DC9" offset="1"></stop>%0A</linearGradient>%0A<linearGradient y2="0" x2="1" y1="0" x1="0" gradientUnits="userSpaceOnUse" id="SVGID_2_">%0A%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09<stop style="stop-color:%23529BF7" offset="1"></stop>%0A</linearGradient>%0A<linearGradient y2="0" x2="1" y1="0" x1="0" gradientUnits="userSpaceOnUse" id="SVGID_3_">%0A%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09<stop style="stop-color:%23EBF0F7" offset="1"></stop>%0A</linearGradient>%0A<g>%0A%09<linearGradient y2="3014.9536" x2="4941.2124" y1="3014.9536" x1="1288.5804" gradientUnits="userSpaceOnUse" id="SVGID_4_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23EBF0F7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M1288.6,2793.9c55.3,134.1,186.5,387.6,453.7,503.3c220.8,95.6,442.9,57.4,694.7,14.2%0A%09%09c343.1-59,344.3-140.4,552.9-134.7c282.5,7.8,357.3,159.3,673.4,219.7c66.5,12.7,309.6,47.5,574.2-28.4%0A%09%09c360.6-103.4,734.8-407.2,701.8-560C4895.4,2605.9,4103.5,2505.3,1288.6,2793.9z" class="st0"></path>%0A%09<linearGradient y2="1994.5433" x2="5456.5684" y1="1994.5433" x1="686.3356" gradientUnits="userSpaceOnUse" id="SVGID_5_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23529BF7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M5428.3,1649.1c-131.4-612.4-697.6-977.3-1155.4-1020.7c-232.1-22-245.1,56.7-616.7,117%0A%09%09c-821.7,133.2-1081-199.5-1850.1-85.1c-341.2,50.8-687.6,102.3-914.4,382.8C519.9,1502.7,718.2,2270,973.9,2621.3%0A%09%09c165.2,227,392.7,363.9,392.7,363.9c68.9,41.5,168.6,100.4,304.8,131.1c237.9,53.7,359.9-29.9,560-42.5%0A%09%09c342.7-21.6,401.6,197.2,772.6,276.4c190.7,40.7,257.4,0.5,1084.5-212.6c811.7-209.1,858.2-198.9,974.7-297.7%0A%09%09C5379.4,2571.8,5521.7,2084.7,5428.3,1649.1z M2709.5,2042.7v-2.7V2042.7z" class="st1"></path>%0A%09<linearGradient y2="1859.5726" x2="5227.9292" y1="1859.5726" x1="1116.5316" gradientUnits="userSpaceOnUse" id="SVGID_6_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23EBF0F7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M5148.1,1664.4c-146.3-421.8-552.5-838.3-943.2-819c-297.4,14.6-412.5,273.3-678.4,215.1%0A%09%09c-227.7-49.8-217.9-255.8-471.6-405.4c-401.7-236.8-1083-107.4-1265.9,223.4c-99.3,179.7-11.7,346.7-173.7,521.2%0A%09%09c-113.5,122.3-192.5,78.9-314.4,198.6c-154.9,152-219.8,410.7-165.5,645.3c73.8,318.7,366.8,477.2,388.9,488.1%0A%09%09c827.4,146.2,1654.7,292.3,2482.1,438.5c80.8,13.1,529.4,77.9,879.7-216.7C5295.8,2609,5272.6,2023.2,5148.1,1664.4z%0A%09%09 M2709.5,2042.7v-2.7V2042.7z" class="st2"></path>%0A%09<path d="M5224.3,2042.5c-143.7-88.6-413.9-68.2-740.1-95.9c-488.7-41.5-1188.7,312.8-1437,221.4%0A%09%09c-95.1-35-167.4-141.7-220.4-260v1053.6c291.4,51.5,582.8,103,874.2,154.4l1292.2-269.1C5190,2615.6,5243.4,2314,5224.3,2042.5z" class="st3"></path>%0A%09<linearGradient y2="1741.7239" x2="2757.678" y1="1741.7239" x1="1116.5317" gradientUnits="userSpaceOnUse" id="SVGID_7_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23529BF7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M1789.1,878.4c-99.3,179.7-11.7,346.7-173.7,521.2c-113.5,122.3-192.5,78.9-314.4,198.6%0A%09%09c-154.9,152-219.8,410.7-165.5,645.3c73.8,318.7,366.8,477.2,388.9,488.1c411.1,72.6,822.2,145.3,1233.4,217.9V550.2%0A%09%09C2377.7,484.9,1931.7,620.4,1789.1,878.4z M2709.5,2042.7v-2.7V2042.7z" class="st4"></path>%0A%09<linearGradient y2="1215.4698" x2="2649.5779" y1="1215.4698" x1="1137.9542" gradientUnits="userSpaceOnUse" id="SVGID_8_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23EBF0F7" offset="1"></stop>%0A%09</linearGradient>%0A%09<path d="M1789.1,878.4c-99.4,179.7-11.7,346.7-173.7,521.2c-113.6,122.3-192.5,78.9-314.4,198.6%0A%09%09c-79.1,77.6-134.7,183-163,298.8c82.9-108.4,187.6-189.5,319.3-210.4c445.6-70.8,892.8,45.1,1192.3-113.7V537.1%0A%09%09C2296.9,511.3,1918.4,644.5,1789.1,878.4z" class="st5"></path>%0A%09<polygon points="1937.1,644.5 1937.1,2265.3 1979.7,2269.9 1983,640.9" class="st6"></polygon>%0A%09<path d="M2757.7,550.2c-35.6-6.1-71.7-10.5-108.1-13.1v1035.7c38.6-20.4,74.7-45.4,108.1-76V550.2z" class="st7"></path>%0A%09<path d="M1117.4,850.5c-15.5,9-30.8,18.5-45.8,28.5v1689.5l42.6,5.1L1117.4,850.5z" class="st6"></path>%0A%09<path d="M2826.8,564.5c-22.7-5.5-45.8-10.3-69.1-14.3v2399.3c23,4.1,46.1,8.1,69.1,12.2V564.5z" class="st8"></path>%0A%09<g>%0A%09%09<path d="M1121,2361c0,0-98.3-110.7,84.2-222.1c-25.3,43.4-118,92.3-52.4,202.9%0A%09%09%09c27.1,62.9-12.8,89.7-12.8,89.7S1080.6,2436.5,1121,2361z" class="Graphic_x0020_Style_x0020_116"></path>%0A%09%09<g>%0A%09%09%09<path d="M1282.2,2470.4c-15.5,28.9-215.1,26.5-315.7,23.4c-1.1-4.4-2.1-8.7-3.1-13c-1.8-7.8-3.5-15.5-5-23.2%0A%09%09%09%09C1035.2,2452.4,1299.9,2437.2,1282.2,2470.4z" class="st9"></path>%0A%09%09%09<path d="M1282.2,2470.4l-16.7,216.9c-25.9,39.1-25.5,89.5-36,137.5c-4.3,22.7-20.4,30.2-38.6,29.2%0A%09%09%09%09c-39.4-34.1-82.1-74.2-124.2-119.9c-50-80.3-81.3-162.6-100.3-240.3C1067.1,2496.9,1266.7,2499.4,1282.2,2470.4z" class="st9"></path>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path d="M1331.3,2151c12.7,12.2,30.7,16,43,17c5.5-2.7,11.1-5.7,16.6-8.9c24.3-13.9,39.8-38.8,49.7-66.7%0A%09%09%09%09c-16.1,5.8-51.8,17.4-67.4,11.2c-20.4-8.1-12.5-17.1-3-14.1c11.7,6,55.7-6.5,75.3-12.5c4.1-14.9,6.8-30.2,8.6-44.8%0A%09%09%09%09c-13.9,8.3-34.9,15.8-44.4,12.6c-12.3-4.2-7.4-14.4,2.7-13.2c7.4,0.8,31.4-12,43.6-18.8c2.2-29.7,0.8-53.4,0.4-59.6%0A%09%09%09%09c-0.1-1-0.1-1.6-0.1-1.6s-29-8.6-66.9-14.1c-8,8.1-19.9,20.8-24.9,29.3c-8,13.3-11.7,24.3-18.1,22.2%0A%09%09%09%09c-12.7-6.6,13.3-37.6,27.8-53.4c-16.5-1.8-34.1-2.9-51.4-2.3c-51.5,40.6-24.5,76.1-44.7,71.8c-17.5-3.7,13.5-51.5,26.6-70.5%0A%09%09%09%09c-16.3,1.8-31.9,5.4-45.3,11.6c-12.1,6.2-22.8,12.2-32.4,18.1c-14.5,34.4,20,53.7,1.7,57.9c-14.3,3.3-16.2-30.4-16.2-48.5%0A%09%09%09%09c-124.9,86.7,2.8,144.8,2.8,144.8c0.1,0.5,0.2,1,0.3,1.6c11.4,70.5,70.1,82,134.6,58.3c-10-8-28.1-22.8-31-26.1%0A%09%09%09%09C1315,2147.7,1321.1,2139.9,1331.3,2151z" class="st10"></path>%0A%09%09%09<path d="M1433.5,1969.4c0,0-146,112.4-218.2,149.3" class="st11"></path>%0A%09%09%09<path d="M1396.4,2051c0,0-33.9,4.5-68.8-3.9" class="st11"></path>%0A%09%09%09<path d="M1316.2,1996.6c0,0-20.5,49.4-10.8,65.9" class="st11"></path>%0A%09%09%09<path d="M1352,2122.6c0,0-59.6-20.8-79-38.4" class="st11"></path>%0A%09%09%09<path d="M1216.4,2052.4c0,0-4.7,37.9,18.4,55.6" class="st11"></path>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path d="M882.7,2066.4c10.6,1.3,21,2.9,31.1,4.8c13.6,13.1,30.4,35.2,30.3,62.7c-1.8,23.8,15.4,19.7,16.3,10%0A%09%09%09%09c0.7-7-2.6-43-4.5-62.6c108.1,32.2,164.1,103.7,86.8,204.4c0,0,80.5,195.4-178.5,184.8c22.7-22.7,62.8-66.9,41.4-76.4%0A%09%09%09%09c-27.3-12.2-10,45.1-70.7,74.5c-19-1.7-39.5-4.4-61.7-8.2c-24-5.1-47.2-15.4-69.1-28.8c39.7-11.4,137-41.9,120.6-63.3%0A%09%09%09%09c-18.9-24.6-31,45.8-143.9,47.6c-21.5-15.8-41.4-33.9-58.9-52.1c37.3-6,107.4-20.1,100.5-40.6c-5.2-8.8-23.3,1.5-49.6,10.6%0A%09%09%09%09c-16.7,5.7-46.9,10.3-66.7,12.9c-38.7-43.2-62.7-81.8-62.7-81.8s30.7-35.6,77.3-76.8c23.3,3.1,68.1,9.9,76,18.1%0A%09%09%09%09c10.7,11.2,29.3,3.1,19.9-14.1c-7.3-13.2-42.1-23.8-69.1-26.7c20.4-16.6,42.9-33.2,66.6-48c31,11.1,99.6,37.5,106.2,56.3%0A%09%09%09%09c7.6,12.8,28.5,9,14.2-20.6c-10.9-22.7-68.4-42.4-95-50.5C786.1,2077.1,836.1,2060.7,882.7,2066.4z" class="st12"></path>%0A%09%09%09<path d="M593.2,2264.5c0,0,316.6-1.6,449.7,21.1" class="st13"></path>%0A%09%09%09<path d="M740.2,2197.3c0,0,46.4,26.9,77.7,70.8" class="st13"></path>%0A%09%09%09<path d="M768.3,2342.5c0,0,86.7-42.5,95.7-72.6" class="st13"></path>%0A%09%09%09<path d="M883.4,2149.7c0,0,45.4,83.2,46.7,123.9" class="st13"></path>%0A%09%09%09<path d="M958.3,2368c0,0,53.3-43.2,47.7-87.5" class="st13"></path>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path d="M924,1810c7.6,5.4,14.9,11,21.8,16.7c4.5,17.1,7.4,43.4-5.2,67.8c-12.3,20.5,2.9,23.7,8,15.4%0A%09%09%09%09c3.7-5.9,17.7-39.3,25.2-57.5c68.8,71.8,79.4,157.7-26.4,216.5c0,0-27.1,205.9-222.4,93.1c27.9-11.1,79.1-34.4,67-51.4%0A%09%09%09%09c-15.5-21.8-28.3,36.1-88.6,38c-13.9-9.1-28.5-19.7-43.9-32c-16.2-14.1-29.4-32.6-40.2-53.2c35.9,5.7,125,17.5,122.1-8.1%0A%09%09%09%09c-3.3-29.5-44.9,28.3-132.9-15.1c-9.4-22.6-16.5-46.7-21.7-69.8c31.6,9.6,92.2,25,96.2,4c0-9.9-18.7-8-43.2-10.4%0A%09%09%09%09c-15.5-1.6-41-9.5-57.5-15.1c-10.2-53.9-11.1-97.8-11.1-97.8s40-19.4,94.8-37.4c16.6,12,48.1,36,50.4,46.4%0A%09%09%09%09c3.2,14.2,21.3,14.5,21.8-4.6c0.4-14.7-21.6-38-41.2-51.3c23.4-6.6,48.4-12.4,73.4-16.1c18.9,22.3,59.8,73.1,56.3,92.5%0A%09%09%09%09c0,14.5,17.9,19.4,20.4-12.7c1.9-24.5-33.5-65-50.3-82.8C844.5,1781,890.6,1786.3,924,1810z" class="st10"></path>%0A%09%09%09<path d="M609.7,1870.6c0,0,245.3,125,337.8,198.4" class="st11"></path>%0A%09%09%09<path d="M754.1,1869.5c0,0,23.6,42.4,27.7,94" class="st11"></path>%0A%09%09%09<path d="M709.4,2009.9c0,0,86.4-3.2,107.1-26.3" class="st11"></path>%0A%09%09%09<path d="M886.5,1884.4c0,0-2.9,92.1-20.5,128.9" class="st11"></path>%0A%09%09%09<path d="M844.5,2108.4c0,0,60.9-17.2,76.8-58.8" class="st11"></path>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path d="M1245.1,1794.2c20.8-5.3,34.8-21,42.5-32.8c-0.2-7.2-0.7-14.6-1.4-22.1c-3.2-32.9-23.8-63.7-50.7-90.6%0A%09%09%09%09c-1.8,19.7-7.4,62.7-22.8,74.5c-20.1,15.5-26.4,2-17.9-5.6c13.2-8.1,22.1-59.9,25.4-83.2c-15-13.2-31.3-25.3-47.2-36%0A%09%09%09%09c2.2,19-0.2,44.7-9,52.2c-11.4,9.8-20.6-1.3-13.9-10.8c4.9-7,2.8-38.8,1.4-55.2c-33.1-20.3-61.3-33.5-68.7-36.8%0A%09%09%09%09c-1.2-0.6-1.9-0.9-1.9-0.9s-25.3,23.8-51.7,58.6c5.2,13,13.5,32.7,20.6,42.9c11.1,16.1,21.9,26.5,16,31.7%0A%09%09%09%09c-14.4,8.7-36.4-36.3-47-60.5c-10.9,15.5-21.4,32.5-29.9,50.2c19.7,76.5,74.9,71.1,59.3,88.7c-13.5,15.3-52.4-45-67.4-69.8%0A%09%09%09%09c-6.6,17.5-10.6,35.3-10.6,52.6c0.7,15.9,2,30.4,3.8,43.6c32.1,35.6,72.7,12.7,67.8,33.6c-3.8,16.4-43.7-2.3-64.6-13.4%0A%09%09%09%09c33.9,178.4,168.8,85.6,168.8,85.6c0.7,0.2,1.3,0.5,2,0.7c87.5,31.6,132-20.3,138.8-99.5c-14.6,5.1-41.3,14.3-46.7,15.2%0A%09%09%09%09C1232.6,1808.5,1226.7,1797.5,1245.1,1794.2z" class="st10"></path>%0A%09%09%09<path d="M1089.2,1580.6c0,0,52.5,215.2,56.8,310.2" class="st11"></path>%0A%09%09%09<path d="M1164,1667.7c0,0-12.8,36.8-41,66.6" class="st11"></path>%0A%09%09%09<path d="M1058.6,1715c0,0,46.2,50.8,70.4,51.1" class="st11"></path>%0A%09%09%09<path d="M1223.1,1755.9c0,0-55.6,47.1-86.3,55.9" class="st11"></path>%0A%09%09%09<path d="M1070,1849.3c0,0,41.4,27.9,74,15.4" class="st11"></path>%0A%09%09</g>%0A%09%09<path d="M1146.1,1890.8c0,0,14.8,158.8-25,350.6" class="st14"></path>%0A%09%09<path d="M937.7,2061.4c0,0,170.2,50.3,183.3,183.5" class="st14"></path>%0A%09%09<path d="M1029.4,2285.6c13.6-4.9,80.6-4.6,99.5,8.8" class="st14"></path>%0A%09%09<path d="M1223.3,2114.4c0,0-98.3,30.9-77.3,232.1" class="st14"></path>%0A%09</g>%0A%09<g>%0A%09%09<path d="M2812.2,2216.6c0,0,60.8,180.6,68.3,350.2c-193.8,44.1-832.8-6.2-832.8-6.2%0A%09%09%09s14-297.1,80.4-332.6C2416.5,2250.4,2812.2,2216.6,2812.2,2216.6z" class="Graphic_x0020_Style_x0020_110"></path>%0A%09%09<path d="M2880.5,2566.9c-7.5-169.6-68.3-350.2-68.3-350.2s-395.8,33.8-684.1,11.4%0A%09%09%09c-17.2,9.2-30.9,36-41.7,70.6c61.5,25.5,298.6,104,672.8-9.3c-4.1,90.6,73.5,94.8,73.5,94.8c12.1,42.2,11.5,131.9,9.7,189.5%0A%09%09%09C2856.4,2571.7,2869.2,2569.4,2880.5,2566.9z" class="Graphic_x0020_Style_x0020_116"></path>%0A%09%09<path d="M2025.5,1497.7c-85.5,55.5-169,100.9-241.9,164.1c7.6,4.2,13.3,9.3,16.2,15.7%0A%09%09%09c0,0,180.9-97,314-235c-1,0.6-1.9,1.2-2.9,1.8C2081.6,1463,2054.9,1479,2025.5,1497.7z" class="Graphic_x0020_Style_x0020_120"></path>%0A%09%09<path d="M2229.4,1095.4c-25.7-0.9-176.5,78.1-272.1,168.2c-95.6,90.1-340.3,323.9-337.5,369.2%0A%09%09%09c19.6,10.4,121.7,5.7,163.9,29c72.9-63.1,156.4-108.6,241.9-164.1c29.4-18.7,56.1-34.7,85.5-53.4c0.9-0.7,1.9-1.2,2.9-1.8%0A%09%09%09c13.7-14.2,26.8-28.8,39.2-43.8C2153.1,1398.7,2255.2,1096.3,2229.4,1095.4z" class="st15"></path>%0A%09%09<path d="M2771.6,1674.1c-70.5,28.9-142.4,50.7-222.4,50.7c-37.4,0-80.1,18.7-104.2,53.4%0A%09%09%09c-61.4,98.9-133.6,184.3-232.4,229.8c-32.1,14.6-74.5,15.6-110.7,1.8c-16.7,87.9-31.4,153-31.4,153s68.3,148.9,349.6,142.7%0A%09%09%09c281.3-6.2,397.1-37.2,407.5-93.1C2841.2,2157.3,2787.4,1837.7,2771.6,1674.1z M2709.5,2042.7v-2.7V2042.7z" class="Graphic_x0020_Style_x0020_120"></path>%0A%09%09<path d="M2767.4,1598.2c4.1-101.3,24.8-260.6-97.2-366.1c-122-105.5-384.9-173.4-473.5-126.7l-76.5,292.8%0A%09%09%09c11.8,55.4,25.9,140.8,27.6,239.6c1.7,97.6-23.8,254.9-46,372c36.3,13.8,78.6,12.7,110.7-1.8c98.9-45.4,171-130.9,232.4-229.8%0A%09%09%09c24-34.7,66.8-53.4,104.2-53.4c80,0,151.9-21.8,222.4-50.7C2768.4,1641.5,2766.7,1615.1,2767.4,1598.2z" class="st15"></path>%0A%09%09<path d="M2357.9,1064.1c0,0-9-52.4-22.1-33.8c-13.1,18.6-10.3,92.4,9,98.6" class="st16"></path>%0A%09%09<path d="M2626.6,1195.8c5.3-16-5.3-34.7-24-34.7c-74.8,5.3-155,13.4-224.4-18.7c-23.9-11-31.4-34.7-32.8-58.9%0A%09%09%09c-12.4,46.4-71.3,284.2,13.2,332.7c71.4,40.9,184.3-8.4,256.1-105.5C2581,1285.5,2613.8,1234.5,2626.6,1195.8z" class="st16"></path>%0A%09%09<path d="M2517.2,949.8c-125.5-23.1-169.6,125.8-169.6,125.8s-0.8,2.8-2.2,7.9%0A%09%09%09c1.4,24.2,8.9,47.9,32.8,58.9c69.5,32.1,149.6,24,224.4,18.7c18.7,0,29.4,18.7,24,34.7c-12.9,38.6-45.6,89.7-12,114.9%0A%09%09%09c22.5-30.4,41-65.6,52.8-104.1C2717.1,1045.3,2621.6,969,2517.2,949.8z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M2650.9,1208c2.1-1.4,41.5-29.8,53.8,4.1c10.6,31.7-40.8,91.7-77.6,80.7l-7.2-3.4" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M2641.7,1253.5c0,0,22.4-60.7,39.3-38c16.9,22.7-50.4,66.6-53,66.6C2625.5,1282,2641.7,1253.5,2641.7,1253.5%0A%09%09%09z" class="st16"></path>%0A%09%09<path d="M2695.3,1256.7L2573,1608.5c0,0-4.1,73.6,8.3,89.5c-74.5,98.7-223.4,363.4-223.4,363.4%0A%09%09%09c93.1,24.8,111.9,120,92.1,155.1c108.5-97.2,400.1-407.5,406.4-575C2879.1,1534.1,2854.6,1361.8,2695.3,1256.7z" class="st15"></path>%0A%09%09<path d="M2837.6,1430.3c30.9,169.9,7.7,183.1-75,353.6%0A%09%09%09c-61.7,127.1-230.6,287.4-312.6,360.9c9.9,28.2,8.9,56.1,0,71.9c108.5-97.2,400.1-407.5,406.4-575%0A%09%09%09C2868.7,1583.2,2867.1,1505.7,2837.6,1430.3z" class="Graphic_x0020_Style_x0020_114"></path>%0A%09%09<path d="M2680.8,1197.5c-6.7,0-12.5,1.5-17.3,3.9c-21.5,10.5-26.4,38.8-26.4,38.8s-8.9,23.1-16.3,12.6%0A%09%09%09c-0.8-1.2-1.6-2.7-2.3-4.8c18.6-24.8,18.6-85.5,11.7-103.4c-6.9-17.9-99.3,26.2-212.3-13.8c-68.9-29.9-68.1-84.2-59.4-118%0A%09%09%09c4.5-17.6,11.1-29.6,11.1-29.6c8.7-20.6,14.7-76,34.2-70.3c40.6,11.7,106.8-29.1,164.9-24.4c49.8,4.1,97.3,36.1,128.3,67.6%0A%09%09%09c18.2,18.5,30.7,36.8,34.4,49.1C2741.5,1038.4,2700.5,1163.4,2680.8,1197.5z" class="st17"></path>%0A%09%09<path d="M2759.2,2289.4c0,0-18.6,62.6,23.2,86c41.8,23.4,50.2,8.7,50.2,8.7S2751.6,2373.8,2759.2,2289.4z" class="st9"></path>%0A%09%09<path d="M1712.9,1890.5c-52.6-85.2-72.3-184.5-63.6-284.7c-5.7,3.2-11.6,6.9-17.5,11%0A%09%09%09c0,0-40.7,64.1,46.2,255.8c-60.7,57.2-63.2,76.8-57.8,148.5c3.8,6,7.7,11.4,11.8,16.3C1628.4,1981.4,1663.8,1922.1,1712.9,1890.5z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M1827.7,1946.4c-2.8-88.2-44.1-69.6-38.6-133.1c5.5-63.4,12.4-109.6,15.9-150.3%0A%09%09%09c3.3-38.4-60.9-110.4-155.6-57.2c-8.8,100.2,10.9,199.5,63.6,284.7c-49.2,31.6-84.5,91-80.9,146.9c42.1,50.6,95,40.7,95,40.7%0A%09%09%09s40.7-51,44.8-68.3c11.7,0.7-32.4,71-32.4,71s7.6,14.2,24.1,13C1780.1,2092.5,1830.4,2034.6,1827.7,1946.4z" class="st16"></path>%0A%09%09<path d="M1679.1,1995l-15.9,55.8c0,0,23.8-50.3,29.3-72C1698.1,1957.1,1679.1,1995,1679.1,1995z" class="st18"></path>%0A%09%09<path d="M1719.7,2081.7c0.5-1.4,56.1-102.4,65.3-88.7c9.2,13.7-42,92.4-42,92.4s-5.3,3.1-3.5-4.7%0A%09%09%09c1.8-7.8,42.7-68.9,35.4-68.5c-7.4,0.5-44.1,60.7-47.8,65.7S1719.7,2081.7,1719.7,2081.7z" class="st18"></path>%0A%09%09<path d="M1686.9,2067.8c0,0,33.5-83.7,43.3-79.9c9.8,3.9-39.4,83.3-39.4,83.3L1686.9,2067.8z" class="st18"></path>%0A%09%09<path d="M1653.4,1961.3c0,0-15.7,62.3-15.2,75C1645.6,2045.3,1657.7,1960.6,1653.4,1961.3z" class="st18"></path>%0A%09%09<path d="M1761.8,2227.6c-54.2-19.3-110.3-23.2-166.4-38.7c-0.1,0-0.2-0.1-0.3-0.1c8.4,8.6,16.7,17.2,25.1,25.7%0A%09%09%09c53.2,60.7,288.8,91.2,288.8,91.2s-10.9-9.9-72.5-89.2c-8.1,3.7-16.2,7.5-24.4,11.1C1796.6,2235.3,1777.3,2233.4,1761.8,2227.6z" class="st19"></path>%0A%09%09<path d="M1267.8,1860.2c0,0,164.6,162.1,327.3,328.6c0.1,0,0.2,0.1,0.3,0.1c56.1,15.5,112.2,19.3,166.4,38.7%0A%09%09%09c15.5,5.8,34.8,7.7,50.3,0c8.2-3.6,16.4-7.4,24.4-11.1c-33.8-43.5-82.8-108-153.6-203.3%0A%09%09%09C1514.7,2038.1,1267.8,1860.2,1267.8,1860.2z" class="st20"></path>%0A%09%09<path d="M1894.6,2339.3c-53.4,8-106.9,10.7-163-2.7c-19-4.7-34.6-13.9-48.5-25.2%0A%09%09%09c15.8,36.7,102.7,87.4,133.9,82.8c31.7-4.6,303.8-96.5,339.7-99.3c35.9-2.8,272.6-59.4,293.2-78.4c6.2-5.7,10.6-21.4,10.5-40.6%0A%09%09%09c-161,58-322,87.3-483.1,141.9C1950.7,2325.9,1921.3,2334,1894.6,2339.3z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M2357.9,2061.5c-149.6,34-453,200.5-549.1,192.3c0,0-60.2,7.5-96.1-8.3c-35.9-15.8-83.7-37.4-96.5-28.9%0A%09%09%09c-10.2,6.8,29.5,56.4,52.7,80.6c6,6.2,10.8,10.8,13.5,12.5c0.2,0.6,0.5,1.1,0.7,1.7c13.9,11.3,29.5,20.5,48.5,25.2%0A%09%09%09c56.1,13.4,109.5,10.7,163,2.7c26.7-5.3,56.1-13.4,82.8-21.4c161-54.5,322-83.8,483.1-141.9%0A%09%09%09C2460.3,2131.9,2436.5,2068.5,2357.9,2061.5z" class="st16"></path>%0A%09</g>%0A%09<path d="M5147.8,2758.7c3.3,42.6-104.8,129-220.1,160.2c-111.1,40.4-316.5,84.1-839.1,218.8%0A%09%09c-356.5,91.9-571.8,151.6-716.6,186.6c-191.1,46.2-259.5,49.2-368,26c-51.4-11-96.9-24.7-137.9-40%0A%09%09c-255-95.3-339.6-255.1-634.7-236.4c-200.1,12.7-322,96.2-560,42.5c-136.3-30.7-235.9-89.6-304.8-131.1%0A%09%09c0,0-186.3-112.1-344.2-301.7c-39.9-42.2-73.3-85.6-94.5-130.9l1061.8-81.6L5147.8,2758.7z" class="Graphic_x0020_Style_x0020_118"></path>%0A%09<polygon points="1909,2627.9 2329.7,2696.9 2880.5,2648.9 2839.9,2636 1902.2,2607.7 1873.4,2616.7" class="st21"></polygon>%0A%09<path d="M2902.4,2554.2c0,0,128.1,29.9,198.1,36.5c16.9,26,103.7,26.1,139.2,31.4c35.5,5.3,64.9,60.1,137.9,65%0A%09%09c73,4.9,88.9,32.2,118.2,30.1c29.2-2.1,39.1-54.7,49.7-59.9c10.6-5.2-32-38.9-10.7-45.5C3396.5,2597.2,2902.4,2554.2,2902.4,2554.2%0A%09%09z" class="st21"></path>%0A%09<path d="M3668.6,2761.4c39.6,3,90.3-36.8,169.2-23.5c88.5,14.9,307.2,32.5,354.3-1.4%0A%09%09c61.3,3.3,696.2,65.4,749.1,44.1c52.9-21.3,68-34.5,68-34.5l-1182-107.2c0,0-299.4,44.5-286.7,84.2%0A%09%09C3547.2,2749,3629,2758.4,3668.6,2761.4z" class="Graphic_x0020_Style_x0020_117"></path>%0A%09<path d="M3779.6,3218.3c-115.9-48.9-340.1-136.6-484.1-148c-201.1-15.9-340.3-109.9-337.2-157.7%0A%09%09c3.1-47.8-605.8-113-946.8-126.3c-204.7-8-676.2-112.3-330.9-291.5l-79,6.1c-81.3,57.9-200.4,165.5-77.3,230.8%0A%09%09c174.8,92.7,1373.9,95.9,1387.8,212c13.2,110.3,575.5,195.9,765.9,301.5C3710,3236.7,3743.7,3227.7,3779.6,3218.3z" class="st22"></path>%0A%09<g>%0A%09%09<path d="M4484.2,1461.7v1181h488.7v-1181H4484.2z M4939.2,2561.4h-421.4v-539.8h421.4%0A%09%09%09V2561.4z M4939.2,1982.4h-421.4v-485.5h421.4V1982.4z" class="Graphic_x0020_Style_x0020_107"></path>%0A%09%09<rect height="485.5" width="355.8" class="Graphic_x0020_Style_x0020_118" y="1496.9" x="4583.5"></rect>%0A%09%09<rect height="485.5" width="65.6" class="Graphic_x0020_Style_x0020_119" y="1496.9" x="4517.8"></rect>%0A%09%09<rect height="539.8" width="80.1" class="Graphic_x0020_Style_x0020_119" y="2021.5" x="4517.8"></rect>%0A%09%09<rect height="539.8" width="341.3" class="Graphic_x0020_Style_x0020_118" y="2021.5" x="4597.9"></rect>%0A%09%09<polygon points="5067.7,1559.5 4972.9,1461.7 4975.8,2765.4 5070.3,2765.4" class="Graphic_x0020_Style_x0020_110"></polygon>%0A%09</g>%0A%09<g>%0A%09%09<polyline points="2442.7,2752.3 2386.8,2825.9 2352.6,2827.7 2416.8,2743.1 2832.6,2738.3 %0A%09%09%092839.9,2747.7" class="Graphic_x0020_Style_x0020_117"></polyline>%0A%09%09<polygon points="2832.6,2738.3 2416.8,2743.1 2352.6,2827.7 2134.5,2839.2 2105.5,2724.6 %0A%09%09%092798.5,2694.4" class="Graphic_x0020_Style_x0020_117"></polygon>%0A%09%09<polygon points="3202.8,2854.8 2364.9,2854.8 2386.8,2825.9 2442.7,2752.3 2839.9,2747.7 %0A%09%09%093134.1,2744.3" class="Graphic_x0020_Style_x0020_117"></polygon>%0A%09%09<polygon points="2839.5,2730.9 2805.3,2687.1 2112.4,2717.2 2141.4,2831.8 2359.4,2820.3 %0A%09%09%092393.7,2818.5 2449.6,2745 2846.8,2740.3" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09%09<polygon points="3202.8,2848.8 2364.9,2848.8 2386.8,2819.9 2442.7,2746.3 2839.9,2741.7 %0A%09%09%093134.1,2738.3" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09</g>%0A%09<g>%0A%09%09<path d="M3326.7,2053.5c67.2,11.8,127,45.4,188.5,75.5c-25.6-21.6-54.4-38-66.9-44.7c-69.9-65-238.4-55.8-331.3-54.5%0A%09%09%09c-56.7,0.8-107.4,28.8-147.4,65.5C3076.9,2034.1,3204.5,2033.1,3326.7,2053.5z" class="st23"></path>%0A%09%09<path d="M3390.7,2125.6c29.4,10.7,40.1,48.1,64.1,69.5c33.5,30.3,76.4,36.8,117.6,27.5c-4-13-8.3-25.7-12.8-37.7%0A%09%09%09c-7.5-20.2-25.1-39.4-44.4-55.7c-61.4-30.2-121.3-63.8-188.5-75.5c-6.7-1.1-13.5-2.2-20.2-3.1c2.5,4.5,4.8,9.1,6.8,13.8%0A%09%09%09c6.9,18.8,10.9,38,12.4,57.2C3347.5,2119.7,3369.7,2120.3,3390.7,2125.6z" class="st23"></path>%0A%09%09<path d="M3454.8,2195c-24-21.4-34.7-58.8-64.1-69.5c-21.1-5.3-43.3-5.9-65.1-4.2c6.4,84.5-36.4,169.9-95.2,228.6%0A%09%09%09c-29.4,32.1-61.4,58.8-101.5,82.8c-32.1,21.4-66.8,37.4-101.5,53.4c-41.6,14.5-81.5,4.8-119.8-10.2c3.7,32.6,11.1,70.7,27.1,85.4%0A%09%09%09c2.2,2,149.9,56.5,246.1,29.3c130.3-36.9,227.4-163.5,314.2-210.2c10.9-5.9,21.4-12.4,31.4-19.5l-0.4-14l53.6-33.2%0A%09%09%09c3.8-4.2,7.6-8.5,11.2-12.9c-4.1-26.8-10.7-53.3-18.4-78.3C3531.3,2231.8,3488.3,2225.3,3454.8,2195z" class="st24"></path>%0A%09%09<path d="M2963.9,2113.7l-74.4,244.3c3.2,19.6,7.7,41,13.7,64.4c0.8-0.5,1.1,24.3,4.3,53.6%0A%09%09%09c38.3,15.1,78.3,24.8,119.8,10.2c34.7-16,69.5-32.1,101.5-53.4c40.1-24,72.1-50.8,101.5-82.8c65-65,110.5-162.6,91.4-255.6%0A%09%09%09C3210,2135.2,3083,2108.6,2963.9,2113.7z" class="st25"></path>%0A%09%09<path d="M3321.8,2094.4c-2.1-10.2-4.9-20.2-8.6-30.2c-2-4.6-4.2-9.2-6.8-13.8c-116-16.9-235.4-12.9-336.9,44.9%0A%09%09%09l-5.6,18.4C3083,2108.6,3210,2135.2,3321.8,2094.4z" class="st26"></path>%0A%09%09<path d="M3590.8,2300.8c-3.6,4.4-7.4,8.7-11.2,12.9l12-7.5C3591.4,2304.4,3591.1,2302.6,3590.8,2300.8z" class="st9"></path>%0A%09%09<g>%0A%09%09%09<path d="M3452.4,2090.3c-50.3-112.2-85.1-243.7-193.4-309.5c-17.4-9.7-50.3-13.5-71.6,3.9%0A%09%09%09%09c-34.5,27-36.4,68-35.6,109.5c51.1,42.2,96.7,74.2,118.4,75.2c65,3,117,150.1,192.8,215.4c35.5,30.6,78.2,23.7,113.6,7.7%0A%09%09%09%09c-19.8-3.7-39.3-11.4-54.6-19C3487.2,2158,3467.9,2123.1,3452.4,2090.3z" class="Graphic_x0020_Style_x0020_116"></path>%0A%09%09%09<path d="M3489,1994.5c-13.8-96.5-49-197.2-111.1-242.1c-62.1-44.9-38.1-160-114.8-199.7%0A%09%09%09%09c-190.3-102-287.5,4.8-333,55.2c-45.5,50.3-4.1,77.2-4.1,77.2s123.9,124.8,225.9,209c-0.9-41.4,1-82.4,35.6-109.5%0A%09%09%09%09c21.3-17.4,54.2-13.5,71.6-3.9c108.3,65.8,143.1,197.3,193.4,309.5c15.5,32.9,34.8,67.7,69.6,83.2c15.3,7.7,34.8,15.3,54.6,19%0A%09%09%09%09c40.3-18.2,71.2-48.2,71.2-48.2S3502.8,2091.1,3489,1994.5z" class="Graphic_x0020_Style_x0020_108"></path>%0A%09%09%09<path d="M3182.3,2144.3c-13.4-74.8,34.7-189.7-58.8-221.7c-16-61.4,5.3-128.2-37.4-184.3%0A%09%09%09%09c-33.7-46.4-75.8-81.1-127.5-97.6c-15.4,4-42.2,14-46.3,24.6c-13.8,35.6-24.4,108.3-3.6,195.1c19.9,94,53.6,191.2,151.7,162.7%0A%09%09%09%09c51,68.9,51,103.4,48.3,128.2c25.3,30.5,60,37.2,94.1,32.1C3192.8,2173.6,3185.5,2160.8,3182.3,2144.3z" class="st16"></path>%0A%09%09%09<path d="M3314.2,2124.9c-5.5-129.6-75.8-207-93.8-211.7c30.3-46.1,33.1-82-6.9-106.8%0A%09%09%09%09c-40-24.8-57.9,67.6-57.9,67.6s-19.3,18-16-3.3c17.7-114.7-62.5-214-170.5-231.9c-1.2-0.2-5.1,0.5-10.4,1.9%0A%09%09%09%09c51.7,16.5,93.8,51.2,127.5,97.6c42.7,56.1,21.4,122.9,37.4,184.3c93.5,32.1,45.4,146.9,58.8,221.7c3.1,16.5,10.5,29.3,20.4,38.9%0A%09%09%09%09C3250.3,2176,3296.5,2145.8,3314.2,2124.9z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09%09<path d="M2969,1635.8c0,0,75.2,27.2,72.4,70.7c-2.8,43.5-9.8,77.5,56.3,98.1c-31.6-35.6-34.2-44-26.9-86.3%0A%09%09%09%09S3035.8,1587.8,2969,1635.8z" class="st17"></path>%0A%09%09%09<path d="M2789.6,2288.5c-77.5,101.5-203,106.9-323.3,128.2c-27.7,5.9-43.7,28.1-64.3,43.4%0A%09%09%09%09c7.2,13.8,19.1,27.9,28,39.8c0.5-0.1,1.1-0.3,1.6-0.4c159.5-16.7,359.4-29.1,470.9-150.7l-0.1-16l61-218.3%0A%09%09%09%09c-27.4,9-56.1,12.8-77.6,32.4C2837.7,2184.3,2824.3,2243.1,2789.6,2288.5z" class="st25"></path>%0A%09%09%09<path d="M3017.4,2050.7c-17.9,4.3-35.5,9.7-52.8,16.1c-58.6,21.8-113.1,55-149.7,106.6%0A%09%09%09%09c-16.4,23.2-29.7,48.3-42.2,73.7c-5.8,11.7-11.7,21.5-19.5,31.9c-8.1,10.8-17.8,20.2-27.8,29.2c-21.9,19.5-47.7,34.4-75.4,44.1%0A%09%09%09%09c-33.1,11.6-67.9,16.1-101.5,25.4c-82.7,23-147.1,41.1-152.6,60.5c-0.2,7,2.3,14.5,6.2,22c20.6-15.4,36.6-37.5,64.3-43.4%0A%09%09%09%09c120.2-21.4,245.8-26.7,323.3-128.2c34.7-45.4,48.1-104.2,96.2-141.6c21.5-19.6,50.2-23.4,77.6-32.4l5.1-18.3%0A%09%09%09%09c11-10.8,16.7-15,29.5-24.1c14.7-10.5,30.5-19.7,47.1-26.7c0.1-0.2,0.2-0.4,0.3-0.6C3036,2046.5,3026.6,2048.4,3017.4,2050.7z" class="st23"></path>%0A%09%09%09<path d="M3045.4,2044.9c-0.1,0.2-0.2,0.4-0.3,0.6c0.7-0.3,1.4-0.6,2.1-0.9%0A%09%09%09%09C3046.6,2044.7,3046,2044.8,3045.4,2044.9z" class="Graphic_x0020_Style_x0020_100"></path>%0A%09%09%09<path d="M2431.6,2499.6c-0.5,0.1-1.1,0.3-1.6,0.4c0.9,1.2,1.8,2.4,2.6,3.6c10.8,15.3,7.8,45,49.1,42.6%0A%09%09%09%09c30.8-6,230-18.7,273.3-29.7c32-8.2,82.2-26.3,148.2-94.1l-0.7-73.5C2791,2470.5,2591.1,2482.9,2431.6,2499.6z" class="st24"></path>%0A%09%09%09<path d="M2398.2,2439.8c0,0,40.7-31.7,69.6,4.1c29,35.9,49.3,96,29,100.7c-20.4,4.6-65.8,2.1-87-35.2%0A%09%09%09%09C2388.5,2472.2,2387.5,2454.3,2398.2,2439.8z" class="st27"></path>%0A%09%09%09<path d="M3350.7,1877.1c18.7-58.6,71.9-104,69.5-165.2c-4.1,1.2-8.2,5.1-10.8,12.5c-7.6,21.4-71.4,103.8-71.4,103.8%0A%09%09%09%09s0,0,3.8-22.1s1.4-35.5-9.7-36.9c-11-1.4-18.3,10.3-18.3,10.3c1-31-13.4-29.3-23.4-27.6c-10,1.7-9.3,51.4-10,64.8%0A%09%09%09%09c-0.7,13.4-15.2,26.9-20-4.1c-2.8-35.9-40.7-71.7-51.7-66.9c-11,4.8,14.8,62,13.1,94.5c-1.7,32.4-20,100.7-5.5,148.2%0A%09%09%09%09c14.5,47.6-3.4,102-3.4,102l85.3,21.2c4.2-67.5,4.5-134.6,44.5-197.1C3350.7,1903.8,3348,1890.5,3350.7,1877.1z" class="st16"></path>%0A%09%09%09<path d="M3420.1,1711.9c2.4,61.2-50.8,106.6-69.5,165.2c-2.7,13.4,0,26.7-8,37.4%0A%09%09%09%09c-40,62.5-40.2,129.7-44.5,197.1l22.9,5.7c0,0-3.5-115.8,17.2-141.3c20.7-25.5,15.2-80,25.3-108.9c10.1-29,71.3-117.9,72-137.2%0A%09%09%09%09C3436,1717.3,3427.9,1709.7,3420.1,1711.9z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09%09<path d="M3305.2,1839.7c-0.4,0.9,11-56.8,9-67.2c4.3,1.6,4.3,1.6,4.3,1.6S3312.8,1824.1,3305.2,1839.7z" class="st9"></path>%0A%09%09%09<g>%0A%09%09%09%09<polygon points="2369.1,2558.8 2880.5,2623.2 2325,2668.2 1891.1,2604.1" class="Graphic_x0020_Style_x0020_115"></polygon>%0A%09%09%09%09<polygon points="2264.3,2566.5 2626.8,2624.8 2334.4,2648.9 2170.4,2611.3" class="Graphic_x0020_Style_x0020_109"></polygon>%0A%09%09%09%09<path d="M2421.8,2452.1c-5.6-0.2-22.6,8.6-22.6,8.6s-13.8-44.1-80.7-43.4s-64.8,65.5-64.8,65.5s5.5,77.2,26.9,93.1%0A%09%09%09%09%09c21.4,15.9,99.3,4.1,102.4,0c3.1-4.1,45.3-6.9,66.9-30.3c21.6-23.4,33.5-24.4,33.5-24.4S2463.5,2453.5,2421.8,2452.1z" class="st16"></path>%0A%09%09%09%09<path d="M2319.3,2460c0,0-45.5,32.4-15.2,90.3c-6.8,0.6-6.8,0.6-6.8,0.6%0A%09%09%09%09%09S2262.7,2493.1,2319.3,2460z" class="Graphic_x0020_Style_x0020_104"></path>%0A%09%09%09%09<path d="M2376.8,2552.2c0,0-56.9-11.2-43.1-33.6c13.8-22.4,45.5-15.9,46.9-24.5%0A%09%09%09%09%09c1.4-8.6-15.9-23.8-21.7-14.5c-5.9,9.3-15.5,25.2-15.5,25.2s-24.1,6.2-17.9,23.1c6.2,16.9,33.8,15.5,6.2,16.9%0A%09%09%09%09%09c-27.6,1.4-39.6,0-39.6,0s-7.4,36.2,7.3,37.5c14.7,1.4,61.6,6.9,105-10.3c43.4-17.2,43.8-24.7,43.8-24.7%0A%09%09%09%09%09S2401.3,2559.2,2376.8,2552.2z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09%09%09<polygon points="2331,2682 2848.1,2642 2880.5,2623.2 2322,2668.2 1885.6,2604.1 %0A%09%09%09%09%091893.9,2613.5" class="Graphic_x0020_Style_x0020_109"></polygon>%0A%09%09%09%09<path d="M1784.9,2001.5l427.1,0.5l15.9,3c18.3,3.5,31.9,18.7,33.5,37.3c9.9,120.2,38.5,538.8,42.7,616.9%0A%09%09%09%09%09c0.3,6.5-11.2,15-17.7,14.2l-444.6-65.8L1784.9,2001.5z" class="st28"></path>%0A%09%09%09%09<path d="M1794.6,1993.3l411.5,8.2c15.8,0.3,28.8,12.5,30.1,28.3c10.4,126.7,52.8,644.5,49.2,643.3%0A%09%09%09%09%09c-3.6-1.2-348.6-51.6-443.5-65.4c-14.1-2.1-24.9-13.4-26.2-27.6l-52.4-553C1761.5,2008.7,1776.2,1992.9,1794.6,1993.3z" class="st29"></path>%0A%09%09%09</g>%0A%09%09%09<path d="M3465.5,2285.9c-5.8-29.1-28.6-54-57-68.5c9.3,57-21.2,85.5-21.2,85.5c-6.8,3.4-40.2,78.1-48.3,71.7%0A%09%09%09%09c-4.1-3.3-5.8-14.7-6.3-29.4c-17.3-67.3-4-136.5-11.5-203.5c-2.3-18.1-0.7-36.2-6.7-52.6c-6.5-5.5-15.7-10.3-27.9-14.4%0A%09%09%09%09c0.8,120.3-17.7,240.4,10.5,355.6c8,37.4,77.5,16,112.2-8C3452.2,2392.7,3478.9,2339.3,3465.5,2285.9z" class="st24"></path>%0A%09%09%09<path d="M3332.7,2345.1c-0.9-27.1,2.3-65.1,1.7-83.5c-0.9-28.4,4.6-84.2-6.4-147.7c-0.5-9.3-4.6-17.6-13.4-24.9%0A%09%09%09%09c5.9,16.5,4.4,34.5,6.7,52.6C3328.7,2208.5,3315.4,2277.8,3332.7,2345.1z" class="st27"></path>%0A%09%09%09<path d="M3591.6,2306.2l-189.3-113.8c2.9,8.8,4.9,17.1,6.2,24.9c28.4,14.5,51.2,39.4,57,68.5%0A%09%09%09%09c4.9,19.6,4.4,39.1-0.3,57.5c36.8,33.3,76.9,62.3,118.5,89.3C3596.9,2393.5,3597.6,2349.6,3591.6,2306.2z" class="st24"></path>%0A%09%09%09<path d="M3226.7,2062.8c-4.2-0.5-8.6-0.9-13.2-1.3c-89.6,102-96.5,485.4-63.4,524c10.1,11.8,36.5,17.9,71.6,18.6%0A%09%09%09%09c-2.7-1.6-5.1-3.5-7.3-5.6C3080,2450.9,3137.9,2222.8,3226.7,2062.8z" class="st23"></path>%0A%09%09%09<path d="M3465.3,2343.4c-8.1,31.8-28.7,60.1-55.8,78.8c-34.7,24-104.2,45.4-112.2,8%0A%09%09%09%09c-28.2-115.2-9.7-235.3-10.5-355.6c-15.1-5.1-34.8-9.1-60-11.8c-88.8,160-146.7,388.1-12.3,535.7c2.1,2.1,4.6,4,7.3,5.6%0A%09%09%09%09c79.8,1.5,205-25.2,288.3-77.9c38.4-24.3,61.5-56.9,73.7-93.5C3542.2,2405.6,3502.1,2376.6,3465.3,2343.4z" class="st25"></path>%0A%09%09</g>%0A%09%09<path d="M3123.6,1922.5c3.2,5.9-36.5,92.1-63.1,100.4c35,56.6,28,41.3,37.6,63.1c63.2-44,78.1-61.9,78.3-92.2%0A%09%09%09C3177.1,1914.4,3123.6,1922.5,3123.6,1922.5z" class="st30"></path>%0A%09</g>%0A%09<g>%0A%09%09<path d="M3972.8,2436.5c-19.3-100.6-1.9-197.3,30.9-292.1c1.9-7.7,9.7-13.5,11.6-23.2%0A%09%09%09c13.5-58,34.8-108.3,58-160.5c1.9-7.7,1.9-15.5,3.9-23.2c1.5-4.4,6.3-7.7,9.3-11.5c-108.6,18.8-247.9,49.9-313.3,64.9%0A%09%09%09c22.2,33.7,40.9,69.3,52.5,109.1c3.9,7.7,13.5,13.5,17.4,21.3c3.9,5.8,0,11.6,3.9,17.4c11.6,15.5,21.3,29,25.1,48.4%0A%09%09%09c1.9,3.9,7.7,5.8,7.7,9.7c0,94.8,7.7,189.6,0,284.3c-6.7,72.9-22.6,143.8-37.3,214.7c84.9-0.2,183-1.6,281.4-2.7%0A%09%09%09c-52.2-58.4-91.1-128-129.9-198.4C3984.4,2475.2,3976.6,2455.8,3972.8,2436.5z" class="Graphic_x0020_Style_x0020_114"></path>%0A%09%09<path d="M4194.9,2483.6c82.8-18.7,163-5.3,237.8,48.1c8,8,26.7,5.3,37.4,0%0A%09%09%09c58.6-34.6,128.4-61.3,198-68.7c-150.8-225.4-393-546.7-446.5-551.9c-23.2-2.2-74.3,4.4-135,14.8c-3.1,3.9-7.9,7.1-9.3,11.5%0A%09%09%09c-1.9,7.7-1.9,15.5-3.9,23.2c-23.2,52.2-44.5,102.5-58,160.5c-1.9,9.7-9.7,15.5-11.6,23.2c-32.9,94.8-50.3,191.5-30.9,292.1%0A%09%09%09c3.3,16.6,9.5,33.3,17.3,49.9C4050.6,2508.5,4130.6,2499.3,4194.9,2483.6z" class="Graphic_x0020_Style_x0020_105"></path>%0A%09%09<path d="M4470.1,2531.7c-10.7,5.3-29.4,8-37.4,0c-74.8-53.4-155-66.8-237.8-48.1%0A%09%09%09c-64.3,15.7-144.3,24.9-204.8,2.8c1.3,2.7,2.6,5.4,3.9,8.1c38.9,70.4,77.7,140.1,129.9,198.4c233-2.6,467.2-3.9,529.1,13.9%0A%09%09%09c110.3,31.7,131,20.7,137.9-30.3c2.3-16.7-49.5-103.7-123-213.5C4598.5,2470.4,4528.6,2497,4470.1,2531.7z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09%09<path d="M3879.9,2196.6c0-3.9-5.8-5.8-7.7-9.7c-3.9-19.3-13.5-32.9-25.1-48.4c-3.9-5.8,0-11.6-3.9-17.4%0A%09%09%09c-3.9-7.7-13.5-13.5-17.4-21.3c-11.6-39.8-30.4-75.4-52.5-109.1c-23.2,5.3-37.1,8.6-37.1,8.6s-76.6,50.8-73.5,108.1%0A%09%09%09c3.1,57.3,7.7,545.5-0.1,585.4c44.9,2.2,107.7,2.8,180,2.6c14.8-70.9,30.6-141.8,37.3-214.7%0A%09%09%09C3887.6,2386.2,3879.9,2291.4,3879.9,2196.6z" class="st31"></path>%0A%09%09<path d="M3622.6,2308.8c7.7-30.9,11.6-63.8,40.6-85.1c3.9-3.9,1.9-9.7,5.8-13.5c21.7-17.1,39.8-41.6,63-53.7%0A%09%09%09c-6.4-58.7-17.6-101.8-29.1-95c-30.3,17.9-474.3,322.7-497.1,369.5s-42.1,123.7,13.1,152.8c0,0-20.7-133.5,59.3-157%0A%09%09%09c80-23.4,155.8,45.5,157.2,51c0.7,2.8,16.3,25.9,31.7,46.8c24.5-12.2,48.8-24.7,72.3-41.8%0A%09%09%09C3593.6,2440.4,3609.1,2376.5,3622.6,2308.8z" class="st32"></path>%0A%09%09<path d="M3669.1,2210.2c-3.9,3.9-1.9,9.7-5.8,13.5c-29,21.3-32.9,54.2-40.6,85.1c-13.5,67.7-29,131.5-83.2,174.1%0A%09%09%09c-23.4,17.1-47.7,29.6-72.3,41.8c14.9,20.3,29.7,38.6,30.4,34.1c1.4-9.2,146.2-90.6,205.5-136.8c36.9-28.8,39.6-168.5,29.1-265.5%0A%09%09%09C3708.8,2168.5,3690.8,2193.1,3669.1,2210.2z" class="st31"></path>%0A%09%09<path d="M3252.8,2424.8c-14.7,6.4-25.2,15.5-32.7,25.8c33.5,31.1,84.8,42,119.8,22.2c22.9-10.4,45.8-17.6,64.9-32.9%0A%09%09%09c-0.9-0.6-1.9-1.3-3.1-2.1C3385.9,2421.4,3321.1,2395.2,3252.8,2424.8z" class="st16"></path>%0A%09%09<path d="M3220.1,2450.6c-5.4,7.5-9.3,15.6-11.9,23.8c11.3,29.8,34.2,55.9,59.6,75.9%0A%09%09%09c39.9,36.8,89.5,48.9,140.2,47.1l4-152.6c0,0,0,0-7.2-4.8c-19.1,15.3-42,22.5-64.9,32.9%0A%09%09%09C3304.9,2492.6,3253.6,2481.7,3220.1,2450.6z" class="Graphic_x0020_Style_x0020_113"></path>%0A%09%09<path d="M3267.8,2550.4c-25.4-20-48.3-46.1-59.6-75.9c-0.6,1.9-1.2,3.9-1.7,5.8%0A%09%09%09c-3.2,12.6-4,25-3.7,35.5c0.4,15.7,3.1,26.9,3.1,26.9s73.1,121.3,186.1,122.7c14.5-13.8,14.5-13.8,14.5-13.8l0.5-17.8l0.7-24.6%0A%09%09%09l0.3-11.9C3357.3,2599.3,3307.7,2587.2,3267.8,2550.4z" class="Graphic_x0020_Style_x0020_104"></path>%0A%09%09<path d="M3235.6,2602c0,0,20.6,1.7,15.5-3.8c-16.6-18-47.6-98.2-21.8-124.8c29.7-30.7,122.5-41.5,160.6-26.4%0A%09%09%09c-3.3-14.6-3.3-14.6-3.3-14.6s-76.5-31-120-13.1c-43.4,17.9-62.2,9.2-63.8,77c-1.7,67.8,9.5,101.6,23.2,107.8%0A%09%09%09C3239.7,2610.3,3235.6,2602,3235.6,2602z" class="st33"></path>%0A%09%09<path d="M3226,2604.1c0,0-34.8-98.6-3.2-143.2s183.6-37.2,209.7,22.5c15.9-4.6,15.9-4.6,15.9-4.6%0A%09%09%09s51.4-54.7-36.3-81.6c-87.8-26.9-216.5,9.7-228.4,92.5S3199.4,2597,3226,2604.1z" class="st20"></path>%0A%09%09<path d="M3340,2529c32.1-10.7,40.1-29.4,53.4-58.8c2.7-5.3,21.4,2.7,32.1-5.3%0A%09%09%09c34.7-32.1,80.1-48.1,120.2-32.1c9,3,17.6,7.1,26,11.5c-6.3-16.9-12.8-29.1-12.8-29.1s-3-1.5-7.6-3.6%0A%09%09%09c-11.7-5.4-33.9-14.8-44.8-14.3c-15.2,0.7-29.9,22.1-29.9,22.1s-32.8-9-49.4,0c-16.5,9-18.5,35.5-18.5,35.5s-15.9-1.7-33.9,7.3%0A%09%09%09s-6.2,37.2-6.2,37.2s-15.2-12.4-42.1,6.2c-20.5,12.6-13.4,51.1-1.3,85.4C3326.1,2565.1,3319.5,2533.5,3340,2529z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M3545.7,2432.8c-40.1-16-85.5,0-120.2,32.1c-10.7,8-29.4,0-32.1,5.3c-13.4,29.4-21.4,48.1-53.4,58.8%0A%09%09%09c-20.4,4.5-13.9,36.1-14.7,61.9c4.6,13,9.9,25.4,14.7,35.5c6.7,14.3,12.4,24,13.6,24.5c32.4,14.5,39.8-12.1,39.8-12.1%0A%09%09%09s7.4,27.2,34.4,26.6c27-0.6,13.8-43.4,13.8-43.4s36.8,33.1,54,29c17.2-4.1,4.1-42.1,4.1-42.1s23.4,27.6,48.3,21.4%0A%09%09%09c24.8-6.2-10.3-94-10.3-94s24.1,13.3,41.4-12.2c10.5-21.9,1.8-55.6-7.2-79.8C3563.2,2439.9,3554.7,2435.8,3545.7,2432.8z" class="st16"></path>%0A%09%09<path d="M3855.6,1746.2c-34.7-66.8-53.4-157.6-120.2-181.7c-70.3-26.7-149.3,8.2-227.2-3%0A%09%09%09c-21.3,43.8-31,95-34.5,140.3c-7.9,103.1,20.2,204.3,82.4,287.5c9.2,12.3,20.1,15.4,35.2,15.3c13.5-0.1,92.2-26.6,94.3-24.1%0A%09%09%09c0,0,89.2,104.8,138.8,155.4c3.9,4,7.6,7.6,11.1,10.9c41,38.7,55.1,33.2,55.1,33.2s66.2-16.5,80-60.7c13.8-44.1,68-261.3,68-261.3%0A%09%09%09s-2.5-6.5-5.6-15.8C3959.1,1845.2,3889.3,1813.7,3855.6,1746.2z" class="st16"></path>%0A%09%09<path d="M4022,1797.7c-2.8-24.8,81.8-357.6-168.2-366.8c-89.9-3.3-189,3.2-269.9,46.9%0A%09%09%09c-34.4,18.6-58.8,48.8-75.7,83.7c77.9,11.2,156.9-23.7,227.2,3c66.8,24,85.5,114.9,120.2,181.7c33.8,67.5,103.5,99,177.4,96.1%0A%09%09%09c-1.2-3.7-2.5-7.7-3.8-12.1C4026.1,1819.7,4023.1,1807.8,4022,1797.7z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M4069.8,1569.7c-23-40.4-27.6-96.5-46-109.4c-0.8-25.3-12.8-44.3-33.2-58.9%0A%09%09%09c-26.3-18.9-66.6-30.6-114.7-39.4c-85.5-15.6-326.4,68.3-388.9,41.2c-46.2-20-44.1,85.7-44.1,85.7s-0.6,8.6,2.7,18.9%0A%09%09%09c0.8,2.6,1.9,5.3,3.4,8c6.8,13.1,21.3,26,51.9,25.5c61.6-0.9,148-35.8,156.3-17.5c8.3,18.4,0.9,143.8,12.9,163.8%0A%09%09%09c4.5,0.7,8.3,1.3,11.5,1.8c16,2.6,16,2.6,16,2.6s1.8-85.5,55.2-84.1c18.2,0.5,37.2,5.3,55.1,14.9c34.5,18.6,64.6,55.2,75.4,113.4%0A%09%09%09c16.6,88.2,147.1,77.2,147.1,77.2s2.3-7.5,5.9-19.9c5.1-17.8,12.8-45.6,20-75.9C4070,1659,4082.1,1591.2,4069.8,1569.7z" class="Graphic_x0020_Style_x0020_108"></path>%0A%09%09<polygon points="3720.5,1573.4 3453,1652.4 3452.3,1641 3736.1,1563.3" class="Graphic_x0020_Style_x0020_110"></polygon>%0A%09%09<path d="M3661.3,2544.8c-2.7-1-5.3-2.4-7.9-4.1c4.4,48.9,8.2,80.7,8.2,80.7l146.2-7.8%0A%09%09%09c0,0,5.8-43,13.8-101.1c-7.6,1.5-15.3,3.9-23,7.2C3756.1,2539,3707.8,2556.4,3661.3,2544.8z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09%09<path d="M3847.5,2157.6c-42.9-65.3-126-117.2-122.4-138.8c-110.1-35.4-87.2,349.7-71.6,521.9%0A%09%09%09c2.6,1.7,5.2,3.1,7.9,4.1c46.4,11.6,94.8-5.8,137.3-25.1c7.7-3.3,15.3-5.7,23-7.2c11.1-80.9,26.4-191.1,35.8-255.6%0A%09%09%09C3859.9,2240.5,3857.5,2172.8,3847.5,2157.6z" class="st32"></path>%0A%09%09<path d="M4242.6,2242.6c0,0,36.8,108.5,119.5,116.7c-13.8,52.4,206.2,183.4,206.2,183.4l9.8-23.8l-239.8-248.8%0A%09%09%09L4242.6,2242.6z" class="st34"></path>%0A%09%09<path d="M3298.6,2799c-8.5,5.6-14.3,9.3-14.8,9.1c-2.1-0.7-22.1,19.3-22.1,19.3%0A%09%09%09s33.8,2.8,36.5,0c0.5-0.5,4.9-3.2,11.4-7C3308.5,2811.6,3304.6,2802.8,3298.6,2799z" class="Graphic_x0020_Style_x0020_108"></path>%0A%09%09<path d="M3379,2744c0,0-53.6,37.3-80.3,55c3.9,2.5,6.9,7,8.8,12.3l95.8-56.5%0A%09%09%09C3402.9,2747.5,3396.9,2742.8,3379,2744z" class="Graphic_x0020_Style_x0020_112"></path>%0A%09%09<path d="M3307.5,2811.4c1.1,2.9,1.8,6,2.3,9.1c26.5-15.5,89.9-50.9,89.9-50.9%0A%09%09%09c2.2-5.4,3.8-10.5,3.6-14.7L3307.5,2811.4z" class="Graphic_x0020_Style_x0020_110"></path>%0A%09%09<path d="M4750.6,2686.6c-104.2,18.7-203,5.3-304.6,0c-109.5-2.7-227.1-26.7-334,16%0A%09%09%09c-80.1,29.4-171-21.4-261.8-2.7c-64.6,14.9-126.9,34.4-189.1,52.1c1.8,0.1,3.8,0.2,6,0.2c37.2,0,155.8-45.5,257.9-29%0A%09%09%09s212.4,30.3,251-6.9c96.5,5.5,601.2,41.4,650.9,26.2c10.9-23.2,13.8-50.2,10.6-77.7C4808.9,2673.1,4780.3,2680.7,4750.6,2686.6z" class="Graphic_x0020_Style_x0020_111"></path>%0A%09%09<path d="M4112.1,2702.6c106.9-42.7,224.4-18.7,334-16c101.5,5.3,200.4,18.7,304.6,0c29.7-5.9,58.4-13.5,86.9-21.6%0A%09%09%09c-9.7-83.3-75.3-171.2-141.6-173.3c-45.6,12.2-90.4,22.8-134.1,31.9c-331.1,69.3-596.5,55.3-657.4,37%0A%09%09%09c-68.9-20.7-170.7,19.4-243.8,51.1c-73.1,31.7-122,56.6-95.8,74.6c-0.8,1.2-5,6.1-5.1,9.5c-0.1,3.5-5.8,5.5-8.7,8.7%0A%09%09%09c-8.6,9.5-7.7,26.2,7.4,27.1c1.8,0.1,3.6,0.3,5.3,0.6c20,3.4,31.7,17.6,60.9,4.9c30.3-4.1,30.3-4.1,30.3-4.1s-21.9,17.1,6.4,19.1%0A%09%09%09c62.2-17.7,124.5-37.2,189.1-52.1C3941.1,2681.3,4031.9,2732,4112.1,2702.6z" class="st16"></path>%0A%09%09<path d="M5017.7,2587.8c-2.7-5.3,2.7-13.4,0-18.7c-37.4-72.1-72.1-141.6-130.9-195%0A%09%09%09c-45.4-42.7-96.2-77.5-141.6-120.2c-64.1-53.4-101.5-125.6-173.7-165.6c-80.1-45.4-157.6-88.2-243.1-120.2%0A%09%09%09c-56.1-18.7-114.9-8-173.7-10.7c-8,0-13.4-8-18.7-8c-26.9-3.6-52.7-12-77.2-22.8l-4.1,6.3l-47.1,153.2l241.3,154.8%0A%09%09%09c0.7,4.9,2.5,10,5.3,15.1c70.7-21.4,153.8-12.5,210.4,35.3c58.8,50.8,77.5,133.6,138.9,176.3c50.8,37.4,117.6,48.1,155,101.5%0A%09%09%09c26.3,32.9,23.8,78.3-4.4,111.2c16.3,20,31.9,41.7,46.4,65.4c43.6,17.7,172.5,20.1,226.6-52.4%0A%09%09%09C5038.9,2660.1,5036.7,2621.8,5017.7,2587.8z" class="Graphic_x0020_Style_x0020_105"></path>%0A%09%09<path d="M4666.9,2134.6c-215.1-230.3-311.2-220.2-404.5-226.6%0A%09%09%09c-58.4-29.4-93.8-48.3-120.4-4.6c-12.4-21.6-57-17.5-57-17.5l-26.1,40.5c24.5,10.8,50.2,19.2,77.2,22.8c5.3,0,10.7,8,18.7,8%0A%09%09%09c58.8,2.7,117.6-8,173.7,10.7c85.5,32.1,163,74.8,243.1,120.2c72.1,40.1,109.5,112.2,173.7,165.6c45.4,42.7,96.2,77.5,141.6,120.2%0A%09%09%09c58.8,53.4,93.5,122.9,130.9,195c2.7,5.3-2.7,13.4,0,18.7c18.9,34.1,21.2,72.4,9.5,105.5c14.4-19.2,23.5-43.8,24.4-74.7%0A%09%09%09C5055.7,2471,4882,2364.8,4666.9,2134.6z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09%09<path d="M4758.6,2569.1c-37.4-53.4-104.2-64.1-155-101.5%0A%09%09%09c-61.4-42.7-80.1-125.6-138.9-176.3c-56.5-47.8-139.6-56.7-210.4-35.3c25.1,47.2,127.1,102.1,127.1,102.1s20.7,44.1,55.2,84.1%0A%09%09%09c30.5,35.4,193.5,85.8,317.6,238.2C4782.4,2647.3,4784.9,2601.9,4758.6,2569.1z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09%09<path d="M3715.8,2015.7l-33.4,5.8c0,0,86.9,194.9,81.4,227c99.3-46.4,98.4-56.1,98.4-56.1%0A%09%09%09l-7.4-38.1C3852.2,2113.2,3774.4,2063.6,3715.8,2015.7z" class="Graphic_x0020_Style_x0020_100"></path>%0A%09%09<path d="M4035.3,1825.7c0,0-127.3,345.2-108.9,400.3c60.7-14.7,108.9,4.6,108.9,4.6%0A%09%09%09s-11.5-222.5,55.6-345.6C4061.5,1845.5,4035.3,1825.7,4035.3,1825.7z" class="Graphic_x0020_Style_x0020_100"></path>%0A%09%09<path d="M3654.8,2733l130-51c-71.4,10.3-156.4,53.6-160.3,55.2C3633.4,2740.2,3654.8,2733,3654.8,2733z" class="st18"></path>%0A%09%09<path d="M3576.1,2735.8c0,0,55.9-47.6,182.8-76.5c-16.5-5.5-133.9,28.9-190.4,74.1%0A%09%09%09C3573.4,2738.5,3576.1,2735.8,3576.1,2735.8z" class="st18"></path>%0A%09%09<path d="M3558,2699.3c0,0,110.1-70.4,179-82.8c-35.9-12.4-176.2,71.6-176.2,71.6L3558,2699.3z" class="st18"></path>%0A%09%09<path d="M3834.5,1885.6c0,0-102,90.4-148.9,95c48.7,53.3,78.2,78.6,99.3,89.2%0A%09%09%09c0-99.3,91.9-168.2,83.7-237.2c-8.3-68.9-6.4-64.3-6.4-64.3S3863,1851.2,3834.5,1885.6z" class="Graphic_x0020_Style_x0020_104"></path>%0A%09%09<path d="M4897.2,2712.3c-24.8-45.5-111.6-233-210.3-220.6c0,0-65.2,9.2-99.4,20.8c-1.1,12.9,9.7,22,21.7,26.5%0A%09%09%09c104.1,32,201.6,111.9,214.5,216.4c41.8,6.1,86.6,20.3,88.3-2.4C4912.3,2747.3,4901.4,2720.1,4897.2,2712.3z" class="st20"></path>%0A%09%09<path d="M4609.1,2539c-12-4.5-22.8-13.6-21.7-26.5c-9.2,3.1-16.2,6.4-19,9.7c149.6,89.2,160.1,153.2,228.5,227.8%0A%09%09%09c9,2.3,18,4.1,26.7,5.4C4810.8,2650.9,4713.3,2571,4609.1,2539z" class="st35"></path>%0A%09%09<path d="M3389.9,2642.1c0,0-40.9-81.4-37.1-99.3c3.8-17.9-3.1-35.9,15.9-43.4c-6.2,13.8-11,29-10,45.5%0A%09%09%09c1,16.5,34.6,94,34.6,94L3389.9,2642.1z" class="st18"></path>%0A%09%09<path d="M3407,2460.9c0,0-9.2,34.9-1.9,66.6c7.4,31.7,30.8,93.9,37,97.1c6.2,3.2,6.2,3.2,6.2,3.2%0A%09%09%09S3398.3,2507.3,3407,2460.9z" class="st18"></path>%0A%09%09<path d="M3472.9,2418.4c0,0-17,55.4-15.2,76c1.8,20.7,41.7,120.8,41.7,120.8l2.9-3.5%0A%09%09%09c0,0-42.5-108.1-31.7-146c10.9-37.9,9.3-50.7,9.3-50.7L3472.9,2418.4z" class="Graphic_x0020_Style_x0020_104"></path>%0A%09%09<path d="M3537.6,2454.9c0,0-9.2,72.2,0,81.4s20.4,7.3,20.4,7.3S3539.9,2483.9,3537.6,2454.9z" class="st18"></path>%0A%09%09<path d="M3543.3,2484.1c0,0-7.6,38.4-5.8,52.2c0.7,5.4,2.5,11.2,5.6,16.5c7.7,6.5,16.6,9.4,25.4,1.7%0A%09%09%09c15.6-12.5,17.4-32.6,17.5-52.1c-0.7-2.3-1.4-4.6-2.2-7" class="st16"></path>%0A%09%09<g>%0A%09%09%09<polygon points="3466.8,1624.2 3466.8,1624.2 3466.8,1624.2" class="st9"></polygon>%0A%09%09%09<path d="M3516.4,1675.9c-7.1-21.6-14.1-34.6-21-42.6c-3.4-4-6.9-6.7-10.3-8.4%0A%09%09%09%09c-3.4-1.7-6.8-2.3-9.8-2.3c-3.4,0-6.3,0.8-8.6,1.5c-4.1,1.3-8,4.5-10.7,9.6c-2.7,5.1-4.4,12.1-4.4,21.5%0A%09%09%09%09c0,12.2,2.8,28.6,10.1,50.4c6.4,19,13.3,30.6,20.3,37.6c3.5,3.5,7.1,5.8,10.5,7.3c3.4,1.4,6.8,2,9.7,2c2.7,0,5.1-0.4,7.1-0.9%0A%09%09%09%09c2-0.5,3.5-1.1,4.4-1.4l0,0c2.9-0.9,6.2-3.2,8.5-7.4c2.3-4.2,3.8-10.1,3.8-18.4C3526.2,1713.3,3523.6,1697.9,3516.4,1675.9z%0A%09%09%09%09 M3515.7,1738.9c-1.5,2.6-3.1,3.5-4.1,3.8c-1.2,0.4-2.5,0.9-4,1.3c-1.5,0.4-3.3,0.7-5.1,0.7c-2,0-4.3-0.3-6.7-1.4%0A%09%09%09%09c-3.7-1.5-7.9-4.6-12.5-10.9c-4.6-6.2-9.4-15.6-14-29.3c-7.1-21.2-9.7-36.9-9.7-47.9c0-8.5,1.5-14.2,3.5-17.9%0A%09%09%09%09c2-3.6,4.2-5.2,6.2-5.8l0,0c2-0.6,4.1-1.1,6.3-1.1c2,0,4,0.4,6.3,1.5c3.5,1.7,7.7,5.3,12.4,12.6c4.7,7.2,9.7,18.1,14.9,33.8%0A%09%09%09%09c7.1,21.4,9.4,36.2,9.4,46C3518.5,1731.7,3517.1,1736.3,3515.7,1738.9z" class="Graphic_x0020_Style_x0020_110"></path>%0A%09%09</g>%0A%09</g>%0A%09<polygon points="4535.9,1753.6 4677.9,1982.4 4774.4,1982.4 4597.9,1697.5" class="Graphic_x0020_Style_x0020_109"></polygon>%0A%09<polygon points="4616.6,1659.7 4815.1,1982.4 4916.5,1982.4 4705.5,1586.9" class="Graphic_x0020_Style_x0020_105"></polygon>%0A%09<polygon points="4597.9,1697.5 4644.4,1704.9 4815.1,1982.4 4774.4,1982.4" class="Graphic_x0020_Style_x0020_108"></polygon>%0A%09<polygon points="4791.1,1650.6 4705.5,1586.9 4916.5,1982.4 4939.2,1982.4 4939.2,1925.9" class="Graphic_x0020_Style_x0020_107"></polygon>%0A%09<path d="M4590.7,1773.7c0,0,19.3-16,39,11c19.6,27-20.3,47.3-33.4,30.1%0A%09%09C4583.1,1797.4,4579.5,1778.2,4590.7,1773.7z" class="Graphic_x0020_Style_x0020_100"></path>%0A%09<path d="M4596.3,1780.1c0,0,13.5-11.2,27.3,7.7s-14.2,33.1-23.4,21.1%0A%09%09C4591,1796.7,4588.5,1783.2,4596.3,1780.1z" class="Graphic_x0020_Style_x0020_106"></path>%0A%09<polygon points="4609.5,1841.2 4648,1821.1 4757.4,1982.4 4699.5,1982.4" class="Graphic_x0020_Style_x0020_105"></polygon>%0A%09<ellipse ry="38.6" rx="31.7" cy="1701" cx="4703.2" class="Graphic_x0020_Style_x0020_104"></ellipse>%0A%09<polygon points="4705.5,1762.7 4757.4,1724.1 4766.2,1734.7 4712.4,1768.9" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09<polygon points="4718.4,1793 4770.3,1754.3 4779,1764.9 4725.3,1799.2" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09<polygon points="4731.2,1823.2 4783.2,1784.6 4791.9,1795.1 4738.1,1829.4" class="Graphic_x0020_Style_x0020_100"></polygon>%0A%09<g>%0A%09%09<path d="M973.4,2494.7c-1.1-7.7-1.9-15.4-2.3-22.9c9.5-13.4,26.8-31.8,52.9-40.2c23.1-6.1,15.4-16.7,6-14.3%0A%09%09%09c-6.8,1.7-40.3,15-58.6,22.4c6.9-84.5,62.6-145.2,175.4-122.9c0,0,168.2-115.8,215,66.2c-26.6-8.7-77.4-22.7-81.8-5%0A%09%09%09c-5.6,22.6,45.1-7,86.4,25.8c2.5,13.6,4.5,28.6,5.7,45.1c0.4,18.1-4.3,37.3-12.2,56.6c-19.6-23.9-69.9-81.6-86.6-63.7%0A%09%09%09c-19.3,20.6,50.3,7.3,76.9,84.6c-10.3,19.7-23.2,39-36.6,56.7c-13.9-23.9-42.7-67.9-60.7-56.8c-7.2,6.3,6.6,15.6,21,31%0A%09%09%09c9.1,9.8,20.1,29.2,27,42.1c-32.6,40-64,68.5-64,68.5s-40.6-10.2-90-29.6c-2.2-17-5.6-50,0.5-58c8.3-10.9-3.5-21.2-17.7-9.4%0A%09%09%09c-11,9.1-13.4,36.4-10.2,55.9c-20.3-9-41-19.4-60.3-31.1c3.7-24.8,13.8-80.3,30.3-90.6c10.5-9.2,2.3-22.4-22.7-3.4%0A%09%09%09c-19.2,14.5-25.3,60.3-27.2,81.1C1004.8,2558,978.2,2528.6,973.4,2494.7z" class="st10"></path>%0A%09%09<path d="M1225.4,2633.4c0,0-71-217.9-78.6-316.8" class="st11"></path>%0A%09%09<path d="M1129.2,2552.6c0,0,15.4-40.3,50.3-75.4" class="st11"></path>%0A%09%09<path d="M1261.1,2488.4c0,0-59.5-46.7-90-43.7" class="st11"></path>%0A%09%09<path d="M1052.5,2468.5c0,0,69.2-57,107.6-70.5" class="st11"></path>%0A%09%09<path d="M1243.7,2349.5c0,0-52.8-23.4-93.7-5.9" class="st11"></path>%0A%09</g>%0A%09<path d="M3360.2,3327.1c-71.4-58-182.9-129.1-345.1-184.1c-329.3-111.6-176.9-187.3-303.6-225.2%0A%09%09s-430.3-22.5-784.9-68.8s-643.1-33.1-556-162c60.4-89.4,145-152.7,191.1-183.1l-109.7,8.4c-108.3,81.3-312.5,270.2,66.8,308.2%0A%09%09c486.5,48.7,1181.1,101.9,1192.6,208.2c9.2,84.8,440.1,200.1,610.2,307.3C3334,3333.3,3346.8,3330.3,3360.2,3327.1z" class="st22"></path>%0A%09<linearGradient y2="608.8419" x2="3633.9429" y1="608.8419" x1="3431.6741" gradientUnits="userSpaceOnUse" id="SVGID_9_">%0A%09%09<stop style="stop-color:%234085F0" offset="0"></stop>%0A%09%09<stop style="stop-color:%23275DC9" offset="1"></stop>%0A%09</linearGradient>%0A%09<ellipse ry="101.1" rx="101.1" cy="608.8" cx="3532.8" class="st36"></ellipse>%0A%09<linearGradient y2="3174.8586" x2="1457.2415" y1="3174.8586" x1="1136.8959" gradientUnits="userSpaceOnUse" id="SVGID_10_">%0A%09%09<stop style="stop-color:%2368B2FC" offset="0"></stop>%0A%09%09<stop style="stop-color:%23529BF7" offset="1"></stop>%0A%09</linearGradient>%0A%09<ellipse ry="106.3" rx="160.2" cy="3174.9" cx="1297.1" class="st37"></ellipse>%0A%09<linearGradient y2="2968.6479" x2="1266.5088" y1="2968.6479" x1="1085.6805" gradientUnits="userSpaceOnUse" id="SVGID_11_">%0A%09%09<stop style="stop-color:%234085F0" offset="0"></stop>%0A%09%09<stop style="stop-color:%23275DC9" offset="1"></stop>%0A%09</linearGradient>%0A%09<ellipse ry="60" rx="90.4" cy="2968.6" cx="1176.1" class="st38"></ellipse>%0A%09<linearGradient y2="3078.0559" x2="5051.6841" y1="3078.0559" x1="4866.0625" gradientUnits="userSpaceOnUse" id="SVGID_12_">%0A%09%09<stop style="stop-color:%234085F0" offset="0"></stop>%0A%09%09<stop style="stop-color:%23275DC9" offset="1"></stop>%0A%09</linearGradient>%0A%09<ellipse ry="92.8" rx="92.8" cy="3078.1" cx="4958.9" class="st39"></ellipse>%0A%09<path d="M2285.6,3438c0,0,206.8,24.5,420.7-87.7c42.5-28.4,62.6,33.1,35.4,53.2%0A%09%09c-27.2,20.1-168.9,100.4-399.3,87.4C2216,3486.1,2239.4,3435.8,2285.6,3438z" class="Graphic_x0020_Style_x0020_100"></path>%0A</g>%0A</svg>%0A';Ve();Bt();function Bf(){let e=me(),{setToken:t}=pe(),{ticket:n,unregisteredFromUrl:r}=useMemo(()=>{let c=new URLSearchParams(window.location.search);return {ticket:c.get("ticket"),unregisteredFromUrl:c.get("unregistered")==="true"}},[]),[o,i]=useState(r),{data:s,isLoading:l,error:a}=useQuery({queryKey:["ticket-login",n],queryFn:()=>e.get(`/api/usystem/user/login?ticket=${n}`),enabled:!!n,retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1});useEffect(()=>{s?.token?t(s.token):a&&"response"in a&&a.response?.status===403&&i(!0);},[s,a,t]);let u=useMemo(()=>()=>{if(i(!1),r){let c=new URL(window.location.href);c.searchParams.delete("unregistered"),window.history.replaceState({},"",c.toString());}},[r]);return {hasTicket:!!n,isLoading:l,error:a,isUnregistered:o,dismissUnregistered:u}}var e8=({extra:e,title:t})=>{let{token:n,mainPagePath:r}=pe(a=>a),{t:o}=J(),{isLoading:i,isUnregistered:s,dismissUnregistered:l}=Bf();if(i)return jsx("div",{className:"w-screen h-screen flex justify-center items-center",children:jsx(Spin,{})});if(n){let a=!!window.location.hash,u=r;return a?(window.location.href=`${window.location.origin}${window.location.pathname}#${u}`,null):jsx(Navigate,{replace:!0,to:r})}return jsxs("div",{className:"w-screen h-screen relative flex overflow-hidden",children:[jsx("div",{className:"absolute top-16 right-16 z-10",children:e}),jsx("div",{className:"absolute left-14 top-6",children:jsxs(Space,{align:"center",children:[jsx(qr,{width:48}),t&&jsx("span",{className:"text-2xl font-bold",children:t})]})}),jsx("div",{className:"flex-1 flex justify-center items-center bg-slate-50",children:jsx("img",{src:Nf,alt:"background",className:"w-10/12"})}),jsx("div",{className:"w-[650px] relative top-0 left-0 right-0 bottom-0",children:jsx("div",{className:"absolute top-1/2 -translate-y-1/2 left-0 right-0",children:jsx("div",{className:"-translate-y-10 px-36",children:jsxs("div",{className:"flex flex-col justify-center",children:[jsx("div",{className:"h-10",children:s&&jsx(Alert,{banner:!0,closable:!0,message:o("SignIn.unregistered"),type:"error",onClose:l})}),jsx(Typography.Title,{level:2,children:o("SignIn.welcome")}),jsx("div",{className:"mt-4",children:jsxs(Form,{layout:"vertical",autoComplete:"off",children:[jsx(Form.Item,{label:o("global.username"),name:"username",rules:[{required:!0}],children:jsx(Input,{})}),jsx(Form.Item,{label:o("global.password"),name:"password",rules:[{required:!0}],children:jsx(Input.Password,{})}),jsx(Form.Item,{children:jsx(Button,{block:!0,type:"primary",shape:"round",htmlType:"submit",children:o("global.signIn")})})]})}),jsx(Divider,{plain:!0,dashed:!0,children:o("SignIn.thirdParty")}),jsx("div",{className:"flex justify-center items-center",children:jsxs(Button,{block:!0,shape:"round",href:`${$a}/logout?service=${$a}/login?service=${window.location.href}`,target:"_self",children:[jsx(qr,{width:18}),o("SignIn.signInWithIDass")]})})]})})})})]})},t8=e8;wt();Jr();/*! Bundled license information:
1219
1219
 
1220
1220
  @tanstack/query-devtools/build/chunk/ZDWCUMSJ.js:
1221
1221
  (*! Bundled license information:
@@ -1346,4 +1346,4 @@ import*as Nt from'react';import {forwardRef,memo,useRef,useMemo,useCallback,useE
1346
1346
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/utils/src/scrollIntoView.ts
1347
1347
  *)
1348
1348
  *)
1349
- */export{Xn as APP_ID_HEADER,b4 as DynamicTags,Wi as ExpandableParagraph,Zn as FRONTEND_ROUTE_PREFIX,Ho as FilterFormWrapper,Jn as Highlight,i5 as InfiniteList,J5 as Layout,qa as NavMenu,vv as NotFound,Sv as OperationLogList,Ct as PermissionButton,Ma as PermissionVersion,xn as QueryList,w0 as QueryListAction,za as RequireGame,A6 as RequirePermission,$a as SSO_URL,e8 as SignIn,d4 as ToolkitsProvider,Va as UserWidget,Kt as WILDCARD,ii as generateId,fv as menuRoutes,Fl as mixedStorage,N7 as permissionRoutes,Cs as useDrawer,ws as useDrawerStore,np as useFormDrawer,bn as useFormModal,Ln as useGames,rn as useInfiniteListStore,Ji as useMenuList,Ba as useModal,Na as useModalStore,Dt as usePermission,lt as useQueryListStore,pe as useToolkitsStore,at as withContext};
1349
+ */export{Xn as APP_ID_HEADER,x4 as DynamicTags,Wi as ExpandableParagraph,Zn as FRONTEND_ROUTE_PREFIX,Ho as FilterFormWrapper,Jn as Highlight,s5 as InfiniteList,e6 as Layout,qa as NavMenu,bv as NotFound,Sv as OperationLogList,Ct as PermissionButton,Ma as PermissionVersion,xn as QueryList,C0 as QueryListAction,za as RequireGame,O6 as RequirePermission,$a as SSO_URL,t8 as SignIn,f4 as ToolkitsProvider,Va as UserWidget,Kt as WILDCARD,ii as generateId,pv as menuRoutes,Fl as mixedStorage,K7 as permissionRoutes,Ss as useDrawer,ws as useDrawerStore,rp as useFormDrawer,bn as useFormModal,Ln as useGames,rn as useInfiniteListStore,Ji as useMenuList,Ba as useModal,Na as useModalStore,Dt as usePermission,lt as useQueryListStore,pe as useToolkitsStore,at as withContext};