1/*! For license information please see 3359.42baf0b6.chunk.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunkamica||=[]).push([[3359],{83359(e,t,r){r.d(t,{c:()=>d});var n=r(35734);const i=e=>null!=e;const o=e=>"function"!=typeof e||e.length?e:e(),l=e=>Array.isArray(e)?e:e?[e]:[];const a=n.X;var s,d=function(e){let[t,r]=(0,n.W)(),i=e?.throw?(e,t)=>{throw r(e instanceof Error?e:Error(t)),e}:(e,t)=>{r(e instanceof Error?e:Error(t))},o=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),l=e?.prefix?`${e.prefix}.`:"",a=new Map,s=new Proxy({},{get(t,r){let s=a.get(r);s||(s=(0,n.W)(void 0,{equals:!1}),a.set(r,s)),s[0]();let d=o.reduce(((e,t)=>{if(null!==e||!t)return e;try{return t.getItem(`${l}${r}`)}catch(e){return i(e,`Error reading ${l}${r} from ${t.name}`),null}}),null);return null!==d&&e?.deserializer?e.deserializer(d,r,e.options):d}});return!1!==e?.sync&&(0,n.Z)((()=>{let e=e=>{let t=!1;o.forEach((r=>{try{r!==e.storageArea&&e.key&&e.newValue!==r.getItem(e.key)&&(e.newValue?r.setItem(e.key,e.newValue):r.removeItem(e.key),t=!0)}catch(t){i(t,`Error synching api ${r.name} from storage event (${e.key}=${e.newValue})`)}})),t&&e.key&&a.get(e.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",e),(0,n.X)((()=>globalThis.removeEventListener("storage",e)))):(o.forEach((t=>t.addEventListener?.("storage",e))),(0,n.X)((()=>o.forEach((t=>t.removeEventListener?.("storage",e))))))})),[s,(t,r,n)=>{let s=e?.serializer?e.serializer(r,t,n??e.options):r,d=`${l}${t}`;o.forEach((e=>{try{e.getItem(d)!==s&&e.setItem(d,s)}catch(r){i(r,`Error setting ${l}${t} to ${s} in ${e.name}`)}}));let u=a.get(t);u&&u[1]()},{clear:()=>o.forEach((e=>{try{e.clear()}catch(t){i(t,`Error clearing ${e.name}`)}})),error:t,remove:e=>o.forEach((t=>{try{t.removeItem(`${l}${e}`)}catch(r){i(r,`Error removing ${l}${e} from ${t.name}`)}})),toJSON:()=>{let t={},r=(r,n)=>{if(!t.hasOwnProperty(r)){let i=n&&e?.deserializer?e.deserializer(n,r,e.options):n;i&&(t[r]=i)}};return o.forEach((e=>{if("function"==typeof e.getAll){let n;try{n=e.getAll()}catch(t){i(t,`Error getting all values from in ${e.name}`)}for(let e of n)r(e,n[e])}else{let n,o=0;try{for(;n=e.key(o++);)t.hasOwnProperty(n)||r(n,e.getItem(n))}catch(t){i(t,`Error getting all values from ${e.name}`)}}})),t}}]},u=e=>{if(!e)return"";let t="";for(let r in e){if(!e.hasOwnProperty(r))continue;let n=e[r];t+=n instanceof Date?`; ${r}=${n.toUTCString()}`:"boolean"==typeof n?`; ${r}`:`; ${r}=${n}`}return t},c=("function"==typeof(s={_cookies:[globalThis.document,"cookie"],getItem:e=>c._cookies[0][c._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,r)=>{let n=c.getItem(e);c._cookies[0][c._cookies[1]]=`${e}=${t}${u(r)}`;let i=Object.assign(new Event("storage"),{key:e,oldValue:n,newValue:t,url:globalThis.document.URL,storageArea:c});window.dispatchEvent(i)},removeItem:e=>{c._cookies[0][c._cookies[1]]=`${e}=deleted${u({expires:new Date(0)})}`},key:e=>{let t=null,r=0;return c._cookies[0][c._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,((n,i)=>(!t&&i&&r++===e&&(t=i),""))),t},get length(){let e=0;return c._cookies[0][c._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,(t=>(e+=+!!t,""))),e}}).clear||(s.clear=()=>{let e;for(;e=s.key(0);)s.removeItem(e)}),s);const g={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\u1ea4":"A","\u1eae":"A","\u1eb2":"A","\u1eb4":"A","\u1eb6":"A","\xc6":"AE","\u1ea6":"A","\u1eb0":"A","\u0202":"A","\xc7":"C","\u1e08":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\u1ebe":"E","\u1e16":"E","\u1ec0":"E","\u1e14":"E","\u1e1c":"E","\u0206":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u020a":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\u1ed0":"O","\u1e4c":"O","\u1e52":"O","\u020e":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\u1ea5":"a","\u1eaf":"a","\u1eb3":"a","\u1eb5":"a","\u1eb7":"a","\xe6":"ae","\u1ea7":"a","\u1eb1":"a","\u0203":"a","\xe7":"c","\u1e09":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\u1ebf":"e","\u1e17":"e","\u1ec1":"e","\u1e15":"e","\u1e1d":"e","\u0207":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\u1e2f"
2:"i","\u020b":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\u1ed1":"o","\u1e4d":"o","\u1e53":"o","\u020f":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xff":"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","\xde":"TH","\xfe":"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","\xca\u030c":"E","\xea\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"},f=Object.keys(g).join("|"),p=new RegExp(f,"g");
2const h=7,y=6,v=5,b=4,m=3,w=2,x=1,k=0;function S(e,t,r){if(r||={},r.threshold=r.threshold??x,!r.accessors){let n=$(e,t,r);return{rankedValue:e,rank:n,accessorIndex:-1,accessorThreshold:r.threshold,passed:n>=r.threshold}}let n=function(e,t){let r=[];for(let n=0,i=t.length;n<i;n++){let i=t[n],o=E(i),l=L(e,i);for(let e=0,t=l.length;e<t;e++)r.push({itemValue:l[e],attributes:o})}return r}(e,r.accessors),i={rankedValue:e,rank:k,accessorIndex:-1,accessorThreshold:r.threshold,passed:!1};for(let o=0;o<n.length;o++){let e=n[o],l=$(e.itemValue,t,r),{minRanking:a,maxRanking:s,threshold:d=r.threshold}=e.attributes;l<a&&l>=x?l=a:l>s&&(l=s),l=Math.min(l,s),l>=d&&l>i.rank&&(i.rank=l,i.passed=!0,i.accessorIndex=o,i.accessorThreshold=d,i.rankedValue=e.itemValue)}return i}function $(e,t,r){return e=C(e,r),(t=C(t,r)).length>e.length?k:e===t?h:(e=e.toLowerCase())===(t=t.toLowerCase())?y:e.startsWith(t)?v:e.includes(` ${t}`)?b:e.includes(t)?m:1===t.length?k:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?w:function(e,t){let r=0,n=0;function i(e,t,n){for(let i=n,o=t.length;i<o;i++)if(t[i]===e)return r+=1,i+1;return-1}function o(e){let n=1/e,i=r/t.length;return x+i*n}let l=i(t[0],e,0);if(l<0)return k;n=l;for(let a=1,s=t.length;a<s;a++){if(n=i(t[a],e,n),!(n>-1))return k}return o(n-l)}(e,t)}function C(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=function(e){return e.replace(p,(e=>g[e]))}(e)),e}function L(e,t){let r=t;"object"==typeof t&&(r=t.accessor);let n=r(e);return null==n?[]:Array.isArray(n)?n:[String(n)]}const q={maxRanking:1/0,minRanking:-1/0};function E(e){return"function"==typeof e?q:{...q,...e}}let T={data:""},M=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,O=/\/\*[^]*?\*\/| +/g,F=/\n+/g,D=(e,t)=>{let r="",n="",i="";for(let o in e){let l=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+l+";":n+="f"==o[1]?D(l,o):o+"{"+D(l,"k"==o[1]?"":t)+"}":"object"==typeof l?n+=D(l,t?t.replace(/([^,])+/g,(e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=l&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=D.p?D.p(o,l):o+":"+l+";")}return r+(t&&i?t+"{"+i+"}":i)+n},z={},A=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+A(e[r]);return t}return e};function P(e){let t=this||{},r=e.call?e(t.p):e;return((e,t,r,n,i)=>{let o=A(e),l=z[o]||(z[o]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(o));if(!z[l]){let t=o===e?(e=>{let t,r,n=[{}];for(;t=M.exec(e.replace(O,""));)t[4]?n.shift():t[3]?(r=t[3].replace(F," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(F," ").trim();return n[0]})(e):e;z[l]=D(i?{["@keyframes "+l]:t}:t,r?"":"."+l)}let a=r&&z.g?z.g:null;return r&&(z.g=z[l]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(z[l],t,n,a),l})(r.unshift?r.raw?((e,t,r)=>e.reduce(((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":D(e,""):!1===e?"":e}return e+n+(o??"")}),""))(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,(e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||T})(t.target),t.g,t.o,t.k)}function I(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=I(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function K(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=I(e))&&(n&&(n+=" "),n+=t);return n}P.bind({g:1}),P.bind({k:1});const B=()=>{};function R(...e){return function(e){return(...t)=>{for(let r of e)r&&r(...t)}}(e)}const V=e=>e instanceof Element;function H(e,t){if(t(e))return e;if("function"==typeof e&&!e.length)return H(e(),t);if(Array.isArray(e)){let r=[];for(let n of e){let e=H(n,t);e&&(Array.isArray(e)?r.push.apply(r,e):r.push(e))}return r.length?r:null}return null}function G(e,t=V,r=V){let i=(0,n.V)(e),o=(0,n.V)((()=>H(i(),t)));return o.toArray=()=>{let e=o();return Array.isArray(e)?e:e?[e]:[]},o}function U(e){requestAnimationFrame((()=>requestAnimationFrame(e)))}function W(e,t,r,n){let{onBeforeEnter:i,onEnter:o,onAfterEnter:l}=t;function a(t){(!t||t.target===r)&&(n?.(),r.removeEventListener("transitionend",a),r.removeEventListener("animationend",a),r.classList.remove(...e.enterA
2ctive),r.classList.remove(...e.enterTo),l?.(r))}i?.(r),r.classList.add(...e.enter),r.classList.add(...e.enterActive),queueMicrotask((()=>{if(!r.parentNode)return n?.();o?.(r,(()=>a()))})),U((()=>{r.classList.remove(...e.enter),r.classList.add(...e.enterTo),(!o||o.length<2)&&(r.addEventListener("transitionend",a),r.addEventListener("animationend",a))}))}function j(e,t,r,n){let{onBeforeExit:i,onExit:o,onAfterExit:l}=t;if(!r.parentNode)return n?.();function a(t){(!t||t.target===r)&&(n?.(),r.removeEventListener("transitionend",a),r.removeEventListener("animationend",a),r.classList.remove(...e.exitActive),r.classList.remove(...e.exitTo),l?.(r))}i?.(r),r.classList.add(...e.exit),r.classList.add(...e.exitActive),o?.(r,(()=>a())),U((()=>{r.classList.remove(...e.exit),r.classList.add(...e.exitTo),(!o||o.length<2)&&(r.addEventListener("transitionend",a),r.addEventListener("animationend",a))}))}var N=e=>{let t=function(e){return(0,n.V)((()=>{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(" ")}}))}(e);return function(e,t){let r=(0,n.$)(e),{onChange:i}=t,o=new Set(t.appear?void 0:r),l=new WeakSet,[a,s]=(0,n.W)([],{equals:!1}),[d]=(0,n.tt)(),u="remove"===t.exitMethod?B:e=>{s((t=>(t.push.apply(t,e),t)));for(let t of e)l.delete(t)},c="remove"===t.exitMethod?B:"keep-index"===t.exitMethod?(e,t,r)=>e.splice(r,0,t):(e,t)=>e.push(t);return(0,n.V)((t=>{let r=a(),s=e();if(s[n.A],(0,n.$)(d))return d(),t;if(r.length){let e=t.filter((e=>!r.includes(e)));return r.length=0,i({list:e,added:[],removed:[],unchanged:e,finishRemoved:u}),e}return(0,n.$)((()=>{let e=new Set(s),r=s.slice(),n=[],a=[],d=[];for(let t of s)(o.has(t)?d:n).push(t);let g=!n.length;for(let i=0;i<t.length;i++){let n=t[i];e.has(n)||(l.has(n)||(a.push(n),l.add(n)),c(r,n,i)),g&&n!==r[i]&&(g=!1)}return!a.length&&g?t:(i({list:r,added:n,removed:a,unchanged:d,finishRemoved:u}),o=e,r)}))}),t.appear?[]:r.slice())}(G((()=>e.children)).toArray,{appear:e.appear,exitMethod:"keep-index",onChange({added:r,removed:n,finishRemoved:i,list:o}){let l=t();for(let t of r)W(l,e,t);let a=[];for(let e of o)e.isConnected&&(e instanceof HTMLElement||e instanceof SVGElement)&&a.push({el:e,rect:e.getBoundingClientRect()});queueMicrotask((()=>{let e=[];for(let{el:t,rect:r}of a)if(t.isConnected){let n=t.getBoundingClientRect(),i=r.left-n.left,o=r.top-n.top;(i||o)&&(t.style.transform=`translate(${i}px, ${o}px)`,t.style.transitionDuration="0s",e.push(t))}document.body.offsetHeight;for(let t of e){let e=function(r){(r.target===t||/transform$/.test(r.propertyName))&&(t.removeEventListener("transitionend",e),t.classList.remove(...l.move))};t.classList.add(...l.move),t.style.transform=t.style.transitionDuration="",t.addEventListener("transitionend",e)}}));for(let t of n)j(l,e,t,(()=>i([t])))}})};const Q=Symbol("fallback");function X(e){for(let t of e)t.dispose()}function _(e){let{by:t}=e;return(0,n.V)(function(e,t,r,i={}){let o=new Map;return(0,n.X)((()=>X(o.values()))),()=>{let r=e()||[];return r[n.A],(0,n.$)((()=>{if(!r.length)return X(o.values()),o.clear(),i.fallback?[(0,n.U)((e=>(o.set(Q,{dispose:e}),i.fallback())))]:[];let e=Array(r.length),a=o.get(Q);if(!o.size||a){a?.dispose(),o.delete(Q);for(let n=0;n<r.length;n++){let i=r[n];l(e,i,n,t(i,n))}return e}let s=new Set(o.keys());for(let n=0;n<r.length;n++){let i=r[n],a=t(i,n);s.delete(a);let d=o.get(a);d?(e[n]=d.mapped,d.setIndex?.(n),d.setItem((()=>i))):l(e,i,n,a)}for(let t of s)o.get(t)?.dispose(),o.delete(t);return e}))};function l(e,t,i,l){(0,n.U)((a=>{let[s,d]=(0,n.W)(t),u={setItem:d,dispose:a};if(r.length>1){let[e,t]=(0,n.W)(i);u.setIndex=t,u.mapped=r(s,e)}else u.mapped=r(s);o.set(l,u),e[i]=u.mapped}))}}((()=>e.each),"function"==typeof t?t:e=>e[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function J(e,t,r,i){let s=()=>
2{l(o(e)).forEach((e=>{e&&l(o(t)).forEach((t=>function(e,t,r,n){return e.addEventListener(t,r,n),a(e.removeEventListener.bind(e,t,r,n))}(e,t,r,i)))}))};"function"==typeof e?(0,n.B)(s):(0,n.H)(s)}function Z(e,t,r){let a=new WeakMap,{observe:s,unobserve:d}=function(e,t){let r=new ResizeObserver(e);return(0,n.X)(r.disconnect.bind(r)),{observe:e=>r.observe(e,t),unobserve:r.unobserve.bind(r)}}((e=>{for(let r of e){let{contentRect:e,target:n}=r,i=Math.round(e.width),o=Math.round(e.height),l=a.get(n);(!l||l.width!==i||l.height!==o)&&(t(e,n,r),a.set(n,{width:i,height:o}))}}),r);(0,n.B)((t=>{let r=(e=>e.filter(i))(l(o(e)));return function(e,t,r,n){let i,o,l=e.length,a=t.length,s=0;if(a)if(l){for(;s<a&&t[s]===e[s];s++);for(i of(t=t.slice(s),e=e.slice(s),t))e.includes(i)||n(i);for(o of e)t.includes(o)||r(o)}else for(;s<a;s++)n(t[s]);else for(;s<l;s++)r(e[s])}(r,t,s,d),r}),[])}const Y=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function ee(e){let t,r={};for(;t=Y.exec(e);)r[t[1]]=t[2];return r}function te(e,t){if("string"==typeof e){if("string"==typeof t)return`${e};${t}`;e=ee(e)}else"string"==typeof t&&(t=ee(t));return{...e,...t}}function re(e,t){let r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}function ne(e){return"number"==typeof e}function ie(e){return"[object String]"===Object.prototype.toString.call(e)}function oe(e){return t=>`${e()}-${t}`}function le(e,t){return!!e&&(e===t||e.contains(t))}function ae(e,t=!1){let{activeElement:r}=se(e);if(!r?.nodeName)return null;if(de(r)&&r.contentDocument)return ae(r.contentDocument.body,t);if(t){let e=r.getAttribute("aria-activedescendant");if(e){let t=se(r).getElementById(e);if(t)return t}}return r}function se(e){return e?e.ownerDocument||e:document}function de(e){return"IFRAME"===e.tagName}var ue=(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))(ue||{});function ce(e){return typeof window<"u"&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function ge(){return ce(/^Mac/i)}function fe(){return ce(/^iPhone/i)||ce(/^iPad/i)||ge()&&navigator.maxTouchPoints>1}function pe(e,t){return t&&(function(e){return"function"==typeof e}(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function he(e){return t=>{for(let r of e)pe(t,r)}}function ye(e){return ge()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function ve(e){if(e)if(function(){if(null==be){be=!1;try{document.createElement("div").focus({get preventScroll(){return be=!0,!0}})}catch{}}return be}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}var be=null;var me=["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'])"],we=[...me,'[tabindex]:not([tabindex="-1"]):not([disabled])'],xe=`${me.join(":not([hidden]),")},[tabindex]:not([disabled]):not([hidden])`,ke=we.join(':not([hidden]):not([tabindex="-1"]),');function Se(e,t){let r=Array.from(e.querySelectorAll(xe)).filter($e);return t&&$e(e)&&r.unshift(e),r.forEach(((e,t)=>{if(de(e)&&e.contentDocument){let n=Se(e.contentDocument.body,!1);r.splice(t,1,...n)}})),r}function $e(e){return Ce(e)&&!function(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}(e)}function Ce(e){return e.matches(xe)&&Le(e)}function Le(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:r}
2=e.style,n="none"!==t&&"hidden"!==r&&"collapse"!==r;if(n){if(!e.ownerDocument.defaultView)return n;let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:i}=t(e);n="none"!==r&&"hidden"!==i&&"collapse"!==i}return n}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||Le(e.parentElement,e))}function qe(e){let t=e;for(;t&&!Ee(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function Ee(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Te(){}function Me(e,t){return(0,n.J)(e,t)}var Oe=new Map,Fe=new Set;function De(){if(typeof window>"u")return;let e=t=>{if(!t.target)return;let r=Oe.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),Oe.delete(t.target)),0===Oe.size)){for(let e of Fe)e();Fe.clear()}};document.body.addEventListener("transitionrun",(t=>{if(!t.target)return;let r=Oe.get(t.target);r||(r=new Set,Oe.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function ze(e,t){let r=Ae(e,t,"left"),n=Ae(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,l=e.scrollLeft,a=e.scrollTop,s=l+e.offsetWidth,d=a+e.offsetHeight;r<=l?l=r:r+i>s&&(l+=r+i-s),n<=a?a=n:n+o>d&&(a+=n+o-d),e.scrollLeft=l,e.scrollTop=a}function Ae(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[n];break}t=t.offsetParent}return i}typeof document<"u"&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",De):De());var Pe={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"};function Ie(e,t){let[r,i]=(0,n.W)(Ke(t?.()));return(0,n.B)((()=>{i(e()?.tagName.toLowerCase()||Ke(t?.()))})),r}function Ke(e){return ie(e)?e:void 0}function Be(e){let[t,r]=(0,n.Q)(e,["as"]);if(!t.as)throw Error("[kobalte]: Polymorphic is missing the required `as` prop.");return(0,n.L)(n.g,(0,n.J)(r,{get component(){return t.as}}))}var Re=Object.defineProperty,Ve=(e,t)=>{for(var r in t)Re(e,r,{get:t[r],enumerable:!0})};Ve({},{Button:()=>Ue,Root:()=>Ge});var He=["button","color","file","image","reset","submit"];function Ge(e){let t,r=Me({type:"button"},e),[i,o]=(0,n.Q)(r,["ref","type","disabled"]),l=Ie((()=>t),(()=>"button")),a=(0,n.V)((()=>{let e=l();return null!=e&&function(e){let t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==He.indexOf(e.type)}({tagName:e,type:i.type})})),s=(0,n.V)((()=>"input"===l())),d=(0,n.V)((()=>"a"===l()&&null!=t?.getAttribute("href")));return(0,n.L)(Be,(0,n.J)({as:"button",ref(e){let r=R((e=>t=e),i.ref);"function"==typeof r&&r(e)},get type(){return a()||s()?i.type:void 0},get role(){return a()||d()?void 0:"button"},get tabIndex(){return a()||d()||i.disabled?void 0:0},get disabled(){return a()||s()?i.disabled:void 0},get"aria-disabled"(){return!(a()||s()||!i.disabled)||void 0},get"data-disabled"(){return i.disabled?"":void 0}},o))}var Ue=Ge;function We(e){let[t,r]=(0,n.W)(e.defaultValue?.()),i=(0,n.V)((()=>void 0!==e.value?.())),o=(0,n.V)((()=>i()?e.value?.():t()));return[o,t=>{(0,n.$)((()=>{let n=function(e,...t){return"function"==typeof e?e(...t):e}(t,o());return Object.is(n,o())||(i()||r(n),e.onChange?.(n)),n}))}]}function je(e){let[t,r]=We(e);return[()=>t()??!1,r]}function Ne(e){let t=e.startIndex??0,r=e.startLevel??0,n=[],i=t=>{if(null==t)return"";let r=e.getKey??"key",n=ie(r)?t[r]:r(t);return null==n?"":String(n)},o=t=>{if(null==t)return"";let r=e.getTextValue??"textValue",n=ie(r)?t[r]:r(t);return null==n?"":String(n)},l=t=>{if(null==t)return!1;let r=e.getDisabled??"disabled";return(ie(r)?t[r]:r(t))??!1},a=t=>{if(null!=t)return ie(e.getSectionChildren)?t[e.getSectionChildren]:e.getSectionChildren?.(t)};for(let s of e.dataSource)if(ie(s)||ne(s))n.push({type:"item",rawValue:s,key:String(s),textValue:String(s),disabled:l(s),level:r,index:t}),t++;else if(null!=a(s)){n.push({type:"section",rawValue:s,key:"",textValue:"",disabled:!1,level:r,index:t}),t++;let i=a(s)??[];if(i.length>0){let o=Ne({dataSource:i,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:r+1});n.push(...o),t+=o.length}}else n.push({type:"item",rawValue:s,key:i(s),textValue:o(s),disabled:l(s),level:r,index:t}),t++;return n}function Qe(e,t=[]){return(0,n.V)((()=>{let r=Ne({dataSource:o(e.dataSource),getKey:o(e.getKey),getTextValue:o(e.getTextValue),getDisabled:o(e.getDisabled),getSectionChildren:o(e.getSectionChildren)});for(let e=0;e<t.length;e++)t[e]();return e.factory(r)}))}
2var Xe=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),_e=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Je(e){return function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script??"";return Xe.has(t)}let t=e.split("-")[0];return _e.has(t)}(e)?"rtl":"ltr"}function Ze(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Je(e)}}var Ye=Ze(),et=new Set;function tt(){Ye=Ze();for(let e of et)e(Ye)}var rt=(0,n.z)();function nt(){let e=function(){let[e,t]=(0,n.W)(Ye),r=(0,n.V)((()=>e()));return(0,n.Z)((()=>{0===et.size&&window.addEventListener("languagechange",tt),et.add(t),(0,n.X)((()=>{et.delete(t),0===et.size&&window.removeEventListener("languagechange",tt)}))})),{locale:()=>r().locale,direction:()=>r().direction}}();return(0,n.et)(rt)||e}var it=new Map;var ot=class e extends Set{anchorKey;currentKey;constructor(t,r,n){super(t),t instanceof e?(this.anchorKey=r||t.anchorKey,this.currentKey=n||t.currentKey):(this.anchorKey=r,this.currentKey=n)}};function lt(e){return ge()||fe()?e.altKey:e.ctrlKey}function at(e){return ge()?e.metaKey:e.ctrlKey}function st(e){return new ot(e)}function dt(e){let t=Me({selectionMode:"none",selectionBehavior:"toggle"},e),[r,i]=(0,n.W)(!1),[l,a]=(0,n.W)(),[s,d]=function(e){let[t,r]=We(e);return[()=>t()??new ot,r]}({value:(0,n.V)((()=>{let e=o(t.selectedKeys);return null==e?e:st(e)})),defaultValue:(0,n.V)((()=>{let e=o(t.defaultSelectedKeys);return null==e?new ot:st(e)})),onChange:e=>t.onSelectionChange?.(e)}),[u,c]=(0,n.W)(o(t.selectionBehavior));return(0,n.B)((()=>{let e=s();"replace"===o(t.selectionBehavior)&&"toggle"===u()&&"object"==typeof e&&0===e.size&&c("replace")})),(0,n.B)((()=>{c(o(t.selectionBehavior)??"toggle")})),{selectionMode:()=>o(t.selectionMode),disallowEmptySelection:()=>o(t.disallowEmptySelection)??!1,selectionBehavior:u,setSelectionBehavior:c,isFocused:r,setFocused:i,focusedKey:l,setFocusedKey:a,selectedKeys:s,setSelectedKeys:e=>{(o(t.allowDuplicateSelectionEvents)||!function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,s()))&&d(e)}}}function ut(e,t,r){let i=(0,n.J)({selectOnFocus:()=>"replace"===o(e.selectionManager).selectionBehavior()},e),l=()=>r?.()??t(),{direction:a}=nt(),s={top:0,left:0};J((()=>o(i.isVirtualized)?void 0:l()),"scroll",(()=>{let e=l();e&&(s={top:e.scrollTop,left:e.scrollLeft})}));let{typeSelectHandlers:d}=function(e){let[t,r]=(0,n.W)(""),[i,l]=(0,n.W)(-1);return{typeSelectHandlers:{onKeyDown:n=>{if(o(e.isDisabled))return;let a=o(e.keyboardDelegate),s=o(e.selectionManager);if(!a.getKeyForSearch)return;let d=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(n.key);if(!d||n.ctrlKey||n.metaKey)return;" "===d&&t().trim().length>0&&(n.preventDefault(),n.stopPropagation());let u=r((e=>e+d)),c=a.getKeyForSearch(u,s.focusedKey())??a.getKeyForSearch(u);null==c&&function(e){return e.split("").every((t=>t===e[0]))}(u)&&(u=u[0],c=a.getKeyForSearch(u,s.focusedKey())??a.getKeyForSearch(u)),null!=c&&(s.setFocusedKey(c),e.onTypeSelect?.(c)),clearTimeout(i()),l(window.setTimeout((()=>r("")),500))}}}}({isDisabled:()=>o(i.disallowTypeAhead),keyboardDelegate:()=>o(i.keyboardDelegate),selectionManager:()=>o(i.selectionManager)}),u=()=>o(i.orientation)??"vertical",c=()=>{let e=o(i.autoFocus);if(!e)return;let r,n=o(i.selectionManager),l=o(i.keyboardDelegate);"first"===e&&(r=l.getFirstKey?.()),"last"===e&&(r=l.getLastKey?.());let a=n.selectedKeys();a.size&&(r=a.values().next().value),n.setFocused(!0),n.setFocusedKey(r);let s=t();s&&null==r&&!o(i.shouldUseVirtualFocus)&&ve(s)};return(0,n.Z)((()=>{i.deferAutoFocus?setTimeout(c,0):c()})),(0,n.B)((0,n.Y)([l,()=>o(i.isVirtualized),()=>o(i.selectionManager).focusedKey()],(e=>{let[t,r,n]=e;if(r)n&&i.scrollToKey?.(n);else if(n&&t){let e=t.querySelector(`[data-key="${n}"]`);e&&ze(t,e)}}))),{tabIndex:(0,n.V)((()=>
2{if(!o(i.shouldUseVirtualFocus))return null==o(i.selectionManager).focusedKey()?0:-1})),onKeyDown:e=>{pe(e,d.onKeyDown),e.altKey&&"Tab"===e.key&&e.preventDefault();let r=t();if(!r?.contains(e.target))return;let n=o(i.selectionManager),l=o(i.selectOnFocus),s=t=>{null!=t&&(n.setFocusedKey(t),e.shiftKey&&"multiple"===n.selectionMode()?n.extendSelection(t):l&&!lt(e)&&n.replaceSelection(t))},c=o(i.keyboardDelegate),g=o(i.shouldFocusWrap),f=n.focusedKey();switch(e.key){case"vertical"===u()?"ArrowDown":"ArrowRight":if(c.getKeyBelow){let t;e.preventDefault(),t=null==f?c.getFirstKey?.():c.getKeyBelow(f),null==t&&g&&(t=c.getFirstKey?.(f)),s(t)}break;case"vertical"===u()?"ArrowUp":"ArrowLeft":if(c.getKeyAbove){let t;e.preventDefault(),t=null==f?c.getLastKey?.():c.getKeyAbove(f),null==t&&g&&(t=c.getLastKey?.(f)),s(t)}break;case"vertical"===u()?"ArrowLeft":"ArrowUp":if(c.getKeyLeftOf){e.preventDefault();let t,r="rtl"===a();t=null==f?r?c.getFirstKey?.():c.getLastKey?.():c.getKeyLeftOf(f),s(t)}break;case"vertical"===u()?"ArrowRight":"ArrowDown":if(c.getKeyRightOf){e.preventDefault();let t,r="rtl"===a();t=null==f?r?c.getLastKey?.():c.getFirstKey?.():c.getKeyRightOf(f),s(t)}break;case"Home":if(c.getFirstKey){e.preventDefault();let t=c.getFirstKey(f,at(e));null!=t&&(n.setFocusedKey(t),at(e)&&e.shiftKey&&"multiple"===n.selectionMode()?n.extendSelection(t):l&&n.replaceSelection(t))}break;case"End":if(c.getLastKey){e.preventDefault();let t=c.getLastKey(f,at(e));null!=t&&(n.setFocusedKey(t),at(e)&&e.shiftKey&&"multiple"===n.selectionMode()?n.extendSelection(t):l&&n.replaceSelection(t))}break;case"PageDown":c.getKeyPageBelow&&null!=f&&(e.preventDefault(),s(c.getKeyPageBelow(f)));break;case"PageUp":c.getKeyPageAbove&&null!=f&&(e.preventDefault(),s(c.getKeyPageAbove(f)));break;case"a":at(e)&&"multiple"===n.selectionMode()&&!0!==o(i.disallowSelectAll)&&(e.preventDefault(),n.selectAll());break;case"Escape":e.defaultPrevented||(e.preventDefault(),o(i.disallowEmptySelection)||n.clearSelection());break;case"Tab":if(!o(i.allowsTabNavigation)){if(e.shiftKey)r.focus();else{let e,t,n=function(e,t,r){let n=t?.tabbable?ke:xe,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>t?.from?.contains(e)?NodeFilter.FILTER_REJECT:!e.matches(n)||!Le(e)||r&&!function(e,t){return t.some((t=>t.contains(e)))}(e,r)||t?.accept&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});return t?.from&&(i.currentNode=t.from),i}(r,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&ve(e)}break}}},onMouseDown:e=>{l()===e.target&&e.preventDefault()},onFocusIn:e=>{let t=o(i.selectionManager),r=o(i.keyboardDelegate),n=o(i.selectOnFocus);if(t.isFocused())e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey()){let i=e=>{null!=e&&(t.setFocusedKey(e),n&&t.replaceSelection(e))},o=e.relatedTarget;o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?i(t.lastSelectedKey()??r.getLastKey?.()):i(t.firstSelectedKey()??r.getFirstKey?.())}else if(!o(i.isVirtualized)){let e=l();if(e){e.scrollTop=s.top,e.scrollLeft=s.left;let r=e.querySelector(`[data-key="${t.focusedKey()}"]`);r&&(ve(r),ze(e,r))}}},onFocusOut:e=>{let t=o(i.selectionManager);e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)}}}function ct(e,t){let r=()=>o(e.selectionManager),i=()=>o(e.key),l=()=>o(e.shouldUseVirtualFocus),a=e=>{"none"!==r().selectionMode()&&("single"===r().selectionMode()?r().isSelected(i())&&!r().disallowEmptySelection()?r().toggleSelection(i()):r().replaceSelection(i()):e?.shiftKey?r().extendSelection(i()):"toggle"===r().selectionBehavior()||at(e)||"pointerType"in e&&"touch"===e.pointerType?r().toggleSelection(i()):r().replaceSelection(i()))},s=()=>o(e.disabled)||r().isDisabled(i()),d=()=>!s()&&r().canSelectItem(i()),u=null,c=(0,n.V)((()=>
2{if(!l()&&!s())return i()===r().focusedKey()?0:-1})),g=(0,n.V)((()=>o(e.virtualized)?void 0:i()));return(0,n.B)((0,n.Y)([t,i,l,()=>r().focusedKey(),()=>r().isFocused()],(([t,r,n,i,o])=>{t&&r===i&&o&&!n&&document.activeElement!==t&&(e.focus?e.focus():ve(t))}))),{isSelected:()=>r().isSelected(i()),isDisabled:s,allowsSelection:d,tabIndex:c,dataKey:g,onPointerDown:t=>{d()&&(u=t.pointerType,"mouse"===t.pointerType&&0===t.button&&!o(e.shouldSelectOnPressUp)&&a(t))},onPointerUp:t=>{d()&&"mouse"===t.pointerType&&0===t.button&&o(e.shouldSelectOnPressUp)&&o(e.allowsDifferentPressOrigin)&&a(t)},onClick:t=>{d()&&(o(e.shouldSelectOnPressUp)&&!o(e.allowsDifferentPressOrigin)||"mouse"!==u)&&a(t)},onKeyDown:e=>{!d()||!["Enter"," "].includes(e.key)||(lt(e)?r().toggleSelection(i()):a(e))},onMouseDown:e=>{s()&&e.preventDefault()},onFocus:e=>{let n=t();l()||s()||!n||e.target===n&&r().setFocusedKey(i())}}}var gt=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(null==e||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if("none"===this.state.selectionMode())return!1;let t=this.getKey(e);return null!=t&&this.state.selectedKeys().has(t)}isEmpty(){return 0===this.state.selectedKeys().size}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 r=this.collection().getItem(t),n=null!=r?.index&&null!=e?.index&&r.index<e.index;(!e||n)&&(e=r)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let r=this.collection().getItem(t),n=null!=r?.index&&null!=e?.index&&r.index>e.index;(!e||n)&&(e=r)}return e?.key}extendSelection(e){if("none"===this.selectionMode())return;if("single"===this.selectionMode())return void this.replaceSelection(e);let t=this.getKey(e);if(null==t)return;let r=this.state.selectedKeys(),n=r.anchorKey||t,i=new ot(r,n,t);for(let o of this.getKeyRange(n,r.currentKey||t))i.delete(o);for(let o of this.getKeyRange(t,n))this.canSelectItem(o)&&i.add(o);this.state.setSelectedKeys(i)}getKeyRange(e,t){let r=this.collection().getItem(e),n=this.collection().getItem(t);return r&&n?null!=r.index&&null!=n.index&&r.index<=n.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let r=[],n=e;for(;null!=n;){let e=this.collection().getItem(n);if(e&&"item"===e.type&&r.push(n),n===t)return r;n=this.collection().getKeyAfter(n)}return[]}getKey(e){let t=this.collection().getItem(e);return t?t&&"item"===t.type?t.key:null:e}toggleSelection(e){if("none"===this.selectionMode())return;if("single"===this.selectionMode()&&!this.isSelected(e))return void this.replaceSelection(e);let t=this.getKey(e);if(null==t)return;let r=new ot(this.state.selectedKeys());r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),(!this.disallowEmptySelection()||0!==r.size)&&this.state.setSelectedKeys(r)}replaceSelection(e){if("none"===this.selectionMode())return;let t=this.getKey(e);if(null==t)return;let r=this.canSelectItem(t)?new ot([t],t,t):new ot;this.state.setSelectedKeys(r)}setSelectedKeys(e){if("none"===this.selectionMode())return;let t=new ot;for(let r of e){let e=this.getKey(r);if(null!=e&&(t.add(e),"single"===this.selectionMode()))break}this.state.setSelectedKeys(t)}selectAll(){"multiple"===this.selectionMode()&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new ot)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode()&&("single"===this.selectionMode()?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior()||t&&"touch"===t.pointerType?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 r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode())return!1;let t=this.collection().getItem(e);return null!=t&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){let e=[];return(t=>{for(;null!=t;){if(this.canSelectItem(t)){let r=this.collection().getItem(t);if(!r)continue;"item"===r.type&&e.push(t)}t=this.collection().getKeyAfter(t)}})(this.collection().getFirstKey()),e}},ft=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let n of e)this.keyMap.set(n.key,n);if(0===this.keyMap.size)return;let t,r=0;for(let[n,i]of this.keyMap)t?(t.nextKey=n,i.prevKey=t.key):(this.firstKey=n,i.prevKey=void 0),"item"===i.type&&(i.index=r++),t=i,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])}};var pt=(0,n.z)();function ht(){return(0,n.et)(pt)}function yt(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function vt(e,t){let r=function(e){let t=e.map(((e,t)=>[t,e])),r=!1;return t.sort((([e,t],[n,i])=>{let o=t.ref(),l=i.ref();return o!==l&&o&&l?yt(o,l)?(e>n&&(r=!0),-1):(e<n&&(r=!0),1):0})),r?t.map((([e,t])=>t)):e}(e);e!==r&&t(r)}function bt(e,t){if("function"!=typeof IntersectionObserver)return void function(e,t){(0,n.B)((()=>{let r=setTimeout((()=>{vt(e(),t)}));(0,n.X)((()=>clearTimeout(r)))}))}(e,t);let r=[];(0,n.B)((()=>{let i=function(e){let t=e[0],r=e[e.length-1]?.ref(),n=t?.ref()?.parentElement;for(;n;){if(r&&n.contains(r))return n;n=n.parentElement}return se(n).body}(e()),o=new IntersectionObserver((()=>{let n=!!r.length;r=e(),n&&vt(e(),t)}),{root:i});for(let t of e()){let e=t.ref();e&&o.observe(e)}(0,n.X)((()=>o.disconnect()))}))}function mt(e={}){let[t,r]=function(e){let[t,r]=We(e);return[()=>t()??[],r]}({value:()=>
2o(e.items),onChange:t=>e.onItemsChange?.(t)});bt(t,r);let i=e=>(r((t=>function(e,t,r=-1){return r in e?[...e.slice(0,r),t,...e.slice(r)]:[...e,t]}(t,e,function(e,t){let r=t.ref();if(!r)return-1;let n=e.length;if(!n)return-1;for(;n--;){let t=e[n]?.ref();if(t&&yt(t,r))return n+1}return 0}(t,e)))),()=>{r((t=>{let r=t.filter((t=>t.ref()!==e.ref()));return t.length===r.length?t:r}))});return{DomCollectionProvider:e=>(0,n.L)(pt.Provider,{value:{registerItem:i},get children(){return e.children}})}}function wt(e){let t=function(){let e=ht();if(void 0===e)throw Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}(),r=Me({shouldRegisterItem:!0},e);(0,n.B)((()=>{if(!r.shouldRegisterItem)return;let e=t.registerItem(r.getItem());(0,n.X)(e)}))}const xt=["top","right","bottom","left"],kt=Math.min,St=Math.max,$t=Math.round,Ct=Math.floor,Lt=e=>({x:e,y:e}),qt={left:"right",right:"left",bottom:"top",top:"bottom"};function Et(e,t,r){return St(e,kt(t,r))}function Tt(e,t){return"function"==typeof e?e(t):e}function Mt(e){return e.split("-")[0]}function Ot(e){return e.split("-")[1]}function Ft(e){return"x"===e?"y":"x"}function Dt(e){return"y"===e?"height":"width"}function zt(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function At(e){return Ft(zt(e))}function Pt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const It=["left","right"],Kt=["right","left"],Bt=["top","bottom"],Rt=["bottom","top"];function Vt(e,t,r,n){let i=Ot(e),o=function(e,t,r){switch(e){case"top":case"bottom":return r?t?Kt:It:t?It:Kt;case"left":case"right":return t?Bt:Rt;default:return[]}}(Mt(e),"start"===r,n);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(Pt)))),o}function Ht(e){let t=Mt(e);return qt[t]+e.slice(t.length)}function Gt(e){return"number"==typeof e?{top:e,right:e,bottom:e,left:e}:function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e)}function Ut(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Wt(e,t,r){let n,{reference:i,floating:o}=e,l=zt(t),a=At(t),s=Dt(a),d=Mt(t),u="y"===l,c=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,f=i[s]/2-o[s]/2;switch(d){case"top":n={x:c,y:i.y-o.height};break;case"bottom":n={x:c,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:g};break;case"left":n={x:i.x-o.width,y:g};break;default:n={x:i.x,y:i.y}}switch(Ot(t)){case"start":n[a]-=f*(r&&u?-1:1);break;case"end":n[a]+=f*(r&&u?-1:1)}return n}async function jt(e,t){void 0===t&&(t={});let{x:r,y:n,platform:i,rects:o,elements:l,strategy:a}=e,{boundary:s="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:c=!1,padding:g=0}=Tt(t,e),f=Gt(g),p=l[c?"floating"===u?"reference":"floating":u],h=Ut(await i.getClippingRect({element:await(null==i.isElement?void 0:i.isElement(p))??1?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:d,strategy:a})),y="floating"===u?{x:r,y:n,width:o.floating.width,height:o.floating.height}:o.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},m=Ut(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:v,strategy:a}):y);return{top:(h.top-m.top+f.top)/b.y,bottom:(m.bottom-h.bottom+f.bottom)/b.y,left:(h.left-m.left+f.left)/b.x,right:(m.right-h.right+f.right)/b.x}}function Nt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qt(e){return xt.some((t=>e[t]>=0))}const Xt=new Set(["left","top"]);function _t(){return typeof window<"u"}function Jt(e){return er(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Yt(e){return((er(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function er(e){return!!_t()&&(e instanceof Node||e instanceof Zt(e).Node)}function tr(e){return!!_t()&&(e instanceof Element||e instanceof Zt(e).Element)}function rr(e){return!!_t()&&(e instanceof HTMLElement||e instanceof Zt(e).HTMLElement)}function nr(e){return!(!_t()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot)}function ir(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=pr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function or(e){return/^(table|td|th)$/.test(Jt(e))}function lr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ar=/transform|translate|scale|rotate|perspective|filter/,sr=/paint|layout|strict|content/,dr=e=>!!e&&"none"!==e;let ur;function cr(e){let t=tr(e)?pr(e):e;return dr(t.transform)||dr(t.translate)||dr(t.scale)||dr(t.rotate)||dr(t.perspective)||!gr()&&(dr(t.backdropFilter)||dr(t.filter))||ar.test(t.willChange||"")||sr.test(t.contain||"")}function gr(){return ur??=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none"),ur}function fr(e){return/^(html|body|#document)$/.test(Jt(e))}function pr(e){return Zt(e).getComputedStyle(e)}function hr(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yr(e){if("html"===Jt(e))return e;let t=e.assignedSlot||e.parentNode||nr(e)&&e.host||Yt(e);return nr(t)?t.host:t}function vr(e){let t=yr(e);return fr(t)?e.ownerDocument?e.ownerDocument.body:e.body:rr(t)&&ir(t)?t:vr(t)}function br(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=!0);let n=vr(e),i=n===e.ownerDocument?.body,o=Zt(n);if(i){let e=mr(o);
2return t.concat(o,o.visualViewport||[],ir(n)?n:[],e&&r?br(e):[])}return t.concat(n,br(n,[],r))}function mr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wr(e){let t=pr(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=rr(e),o=i?e.offsetWidth:r,l=i?e.offsetHeight:n,a=$t(r)!==o||$t(n)!==l;return a&&(r=o,n=l),{width:r,height:n,$:a}}function xr(e){return tr(e)?e:e.contextElement}function kr(e){let t=xr(e);if(!rr(t))return Lt(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=wr(t),l=(o?$t(r.width):r.width)/n,a=(o?$t(r.height):r.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const Sr=Lt(0);function $r(e){let t=Zt(e);return gr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Sr}function Cr(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),o=xr(e),l=Lt(1);t&&(n?tr(n)&&(l=kr(n)):l=kr(e));let a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Zt(e))&&t}(o,r,n)?$r(o):Lt(0),s=(i.left+a.x)/l.x,d=(i.top+a.y)/l.y,u=i.width/l.x,c=i.height/l.y;if(o){let e=Zt(o),t=n&&tr(n)?Zt(n):n,r=e,i=mr(r);for(;i&&n&&t!==r;){let e=kr(i),t=i.getBoundingClientRect(),n=pr(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,d*=e.y,u*=e.x,c*=e.y,s+=o,d+=l,r=Zt(i),i=mr(r)}}return Ut({width:u,height:c,x:s,y:d})}function Lr(e,t){let r=hr(e).scrollLeft;return t?t.left+r:Cr(Yt(e)).left+r}function qr(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Lr(e,r),y:r.top+t.scrollTop}}function Er(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=Zt(e),n=Yt(e),i=r.visualViewport,o=n.clientWidth,l=n.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=gr();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let d=Lr(n);if(d<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else d<=25&&(o+=d);return{width:o,height:l,x:a,y:s}}(e,r);else if("document"===t)n=function(e){let t=Yt(e),r=hr(e),n=e.ownerDocument.body,i=St(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=St(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+Lr(e),a=-r.scrollTop;return"rtl"===pr(n).direction&&(l+=St(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:l,y:a}}(Yt(e));else if(tr(t))n=function(e,t){let r=Cr(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=rr(e)?kr(e):Lt(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}(t,r);else{let r=$r(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ut(n)}function Tr(e,t){let r=yr(e);return!(r===t||!tr(r)||fr(r))&&("fixed"===pr(r).position||Tr(r,t))}function Mr(e,t){let r=t.get(e);if(r)return r;let n=br(e,[],!1).filter((e=>tr(e)&&"body"!==Jt(e))),i=null,o="fixed"===pr(e).position,l=o?yr(e):e;for(;tr(l)&&!fr(l);){let t=pr(l),r=cr(l);!r&&"fixed"===t.position&&(i=null),(o?!r&&!i:!r&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||ir(l)&&!r&&Tr(e,l))?n=n.filter((e=>e!==l)):i=t,l=yr(l)}return t.set(e,n),n}function Or(e,t,r){let n=rr(t),i=Yt(t),o="fixed"===r,l=Cr(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=Lt(0);function d(){s.x=Lr(i)}if(n||!n&&!o)if(("body"!==Jt(t)||ir(i))&&(a=hr(t)),n){let e=Cr(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&d();o&&!n&&i&&d();let u=!i||n||o?Lt(0):qr(i,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}function Fr(e){return"static"===pr(e).position}function Dr(e,t){if(!rr(e)||"fixed"===pr(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Yt(e)===r&&(r=r.ownerDocument.body),r}function zr(e,t){let r=Zt(e);
2if(lr(e))return r;if(!rr(e)){let t=yr(e);for(;t&&!fr(t);){if(tr(t)&&!Fr(t))return t;t=yr(t)}return r}let n=Dr(e,t);for(;n&&or(n)&&Fr(n);)n=Dr(n,t);return n&&fr(n)&&Fr(n)&&!cr(n)?r:n||function(e){let t=yr(e);for(;rr(t)&&!fr(t);){if(cr(t))return t;if(lr(t))return null;t=yr(t)}return null}(e)||r}const Ar={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,l=Yt(n),a=!!t&&lr(t.floating);if(n===l||a&&o)return r;let s={scrollLeft:0,scrollTop:0},d=Lt(1),u=Lt(0),c=rr(n);if((c||!c&&!o)&&(("body"!==Jt(n)||ir(l))&&(s=hr(n)),c)){let e=Cr(n);d=kr(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}let g=!l||c||o?Lt(0):qr(l,s);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+u.x+g.x,y:r.y*d.y-s.scrollTop*d.y+u.y+g.y}},getDocumentElement:Yt,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?lr(t)?[]:Mr(t,this._c):[].concat(r),n],l=Er(t,o[0],i),a=l.top,s=l.right,d=l.bottom,u=l.left;for(let c=1;c<o.length;c++){let e=Er(t,o[c],i);a=St(e.top,a),s=kt(e.right,s),d=kt(e.bottom,d),u=St(e.left,u)}return{width:s-u,height:d-a,x:u,y:a}},getOffsetParent:zr,getElementRects:async function(e){let t=this.getOffsetParent||zr,r=this.getDimensions,n=await r(e.floating);return{reference:Or(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=wr(e);return{width:t,height:r}},getScale:kr,isElement:tr,isRTL:function(e){return"rtl"===pr(e).direction}};function Pr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ir(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=n,d=xr(e),u=i||o?[...d?br(d):[],...t?br(t):[]]:[];u.forEach((e=>{i&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)}));let c=d&&a?function(e,t){let r,n=null,i=Yt(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),o();let d=e.getBoundingClientRect(),{left:u,top:c,width:g,height:f}=d;if(a||t(),!g||!f)return;let p={rootMargin:-Ct(c)+"px "+-Ct(i.clientWidth-(u+g))+"px "+-Ct(i.clientHeight-(c+f))+"px "+-Ct(u)+"px",threshold:St(0,kt(1,s))||1},h=!0;function y(t){let n=t[0].intersectionRatio;if(n!==s){if(!h)return l();n?l(!1,n):r=setTimeout((()=>{l(!1,1e-7)}),1e3)}1===n&&!Pr(d,e.getBoundingClientRect())&&l(),h=!1}try{n=new IntersectionObserver(y,{...p,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,p)}n.observe(e)}(!0),o}(d,r):null,g=-1,f=null;l&&(f=new ResizeObserver((e=>{let[n]=e;n&&n.target===d&&f&&t&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),r()})),d&&!s&&f.observe(d),t&&f.observe(t));let p,h=s?Cr(e):null;return s&&function t(){let n=Cr(e);h&&!Pr(h,n)&&r(),h=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)})),c?.(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(p)}}const Kr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r;let{x:n,y:i,placement:o,middlewareData:l}=t,a=await async function(e,t){let{placement:r,platform:n,elements:i}=e,o=await(null==n.isRTL?void 0:n.isRTL(i.floating)),l=Mt(r),a=Ot(r),s="y"===zt(r),d=Xt.has(l)?-1:1,u=o&&s?-1:1,c=Tt(t,e),{mainAxis:g,crossAxis:f,alignmentAxis:p}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),s?{x:f*u,y:g*d}:{x:g*d,y:f*u}}(t,e);return o===l.offset?.placement&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:n+a.x,y:i+a.y,data:{...a,placement:o}}}}},Br=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...d}=Tt(e,t),u={x:r,y:n},c=await o.detectOverflow(t,d),g=zt(Mt(i)),f=Ft(g),p=u[f],h=u[g];if(l){let e="y"===f?"bottom":"right";p=Et(p+c["y"===f?"top":"left"],p,p-c[e])}
2if(a){let e="y"===g?"bottom":"right";h=Et(h+c["y"===g?"top":"left"],h,h-c[e])}let y=s.fn({...t,[f]:p,[g]:h});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[f]:l,[g]:a}}}}}},Rr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r;let{placement:n,middlewareData:i,rects:o,initialPlacement:l,platform:a,elements:s}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:c,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...h}=Tt(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};let y=Mt(n),v=zt(l),b=Mt(l)===l,m=await(null==a.isRTL?void 0:a.isRTL(s.floating)),w=c||(b||!p?[Ht(l)]:function(e){let t=Ht(e);return[Pt(e),t,Pt(t)]}(l)),x="none"!==f;!c&&x&&w.push(...Vt(l,p,f,m));let k=[l,...w],S=await a.detectOverflow(t,h),$=[],C=i.flip?.overflows||[];if(d&&$.push(S[y]),u){let e=function(e,t,r){void 0===r&&(r=!1);let n=Ot(e),i=At(e),o=Dt(i),l="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Ht(l)),[l,Ht(l)]}(n,o,m);$.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:n,overflows:$}],!$.every((e=>e<=0))){let e=(i.flip?.index||0)+1,t=k[e];if(t&&("alignment"!==u||v===zt(t)||C.every((e=>zt(e.placement)!==v||e.overflows[0]>0))))return{data:{index:e,overflows:C},reset:{placement:t}};let r=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0]?.placement;if(!r)switch(g){case"bestFit":{let e=C.filter((e=>{if(x){let t=zt(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0]?.[0];e&&(r=e);break}case"initialPlacement":r=l}if(n!==r)return{reset:{placement:r}}}return{}}}},Vr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,o,{placement:l,rects:a,platform:s,elements:d}=t,{apply:u=()=>{},...c}=Tt(e,t),g=await s.detectOverflow(t,c),f=Mt(l),p=Ot(l),h="y"===zt(l),{width:y,height:v}=a.floating;"top"===f||"bottom"===f?(i=f,o=p===(await(null==s.isRTL?void 0:s.isRTL(d.floating))?"start":"end")?"left":"right"):(o=f,i="end"===p?"top":"bottom");let b=v-g.top-g.bottom,m=y-g.left-g.right,w=kt(v-g[i],b),x=kt(y-g[o],m),k=!t.middlewareData.shift,S=w,$=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&($=m),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(S=b),k&&!p){let e=St(g.left,0),t=St(g.right,0),r=St(g.top,0),n=St(g.bottom,0);h?$=y-2*(0!==e||0!==t?e+t:St(g.left,g.right)):S=v-2*(0!==r||0!==n?r+n:St(g.top,g.bottom))}await u({...t,availableWidth:$,availableHeight:S});let C=await s.getDimensions(d.floating);return y!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}},Hr=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:n}=t,{strategy:i="referenceHidden",...o}=Tt(e,t);switch(i){case"referenceHidden":{let e=Nt(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Qt(e)}}}case"escaped":{let e=Nt(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Qt(e)}}}default:return{}}}}},Gr=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:l,elements:a,middlewareData:s}=t,{element:d,padding:u=0}=Tt(e,t)||{};if(null==d)return{};let c=Gt(u),g={x:r,y:n},f=At(i),p=Dt(f),h=await l.getDimensions(d),y="y"===f,v=y?"top":"left",b=y?"bottom":"right",m=y?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[f]-g[f]-o.floating[p],x=g[f]-o.reference[f],k=await(null==l.getOffsetParent?void 0:l.getOffsetParent(d)),S=k?k[m]:0;(!S||!await(null==l.isElement?void 0:l.isElement(k)))&&(S=a.floating[m]||o.floating[p]);let $=w/2-x/2,C=S/2-h[p]/2-1,L=kt(c[v],C),q=kt(c[b],C),E=L,T=S-h[p]-q,M=S/2-h[p]/2+$,O=Et(E,M,T),F=!s.arrow&&null!=Ot(i)&&M!==O&&o.reference[p]/2-(M<E?L:q)-h[p]/2<0,D=F?M<E?M-E:M-T:0;return{[f]:g[f]+D,data:{[f]:O,centerOffset:M-O-D,...F&&{alignmentOffset:D}},reset:F}}}),Ur=(e,t,r)=>{let n=new Map,i={platform:Ar,...r},o={...i.platform,_c:n};return(async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:l}=r,a=l.detectOverflow?l:{...l,detectOverflow:jt},s=await(null==l.isRTL?void 0:l.isRTL(t)),d=await l.getElementRects({reference:e,floating:t,strategy:i}
2),{x:u,y:c}=Wt(d,n,s),g=n,f=0,p={};for(let h=0;h<o.length;h++){let r=o[h];if(!r)continue;let{name:y,fn:v}=r,{x:b,y:m,data:w,reset:x}=await v({x:u,y:c,initialPlacement:n,placement:g,strategy:i,middlewareData:p,rects:d,platform:a,elements:{reference:e,floating:t}});u=b??u,c=m??c,p[y]={...p[y],...w},x&&f<50&&(f++,"object"==typeof x&&(x.placement&&(g=x.placement),x.rects&&(d=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:u,y:c}=Wt(d,g,s))),h=-1)}return{x:u,y:c,placement:g,strategy:i,middlewareData:p}})(e,t,{...i,platform:o})};var Wr=(0,n.z)();function jr(){let e=(0,n.et)(Wr);if(void 0===e)throw Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var Nr=(0,n.O)('<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">'),Qr={top:180,right:-90,bottom:0,left:90};function Xr(e){let t=jr(),r=Me({size:30},e),[i,o]=(0,n.Q)(r,["ref","style","size"]),l=()=>t.currentPlacement().split("-")[0],a=function(e){let[t,r]=(0,n.W)();return(0,n.B)((()=>{let t=e();t&&r(function(e){return se(e).defaultView||window}(t).getComputedStyle(t))})),t}(t.contentRef),s=()=>2*Number.parseInt(a()?.getPropertyValue(`border-${l()}-width`)||"0px")*(30/i.size);return(0,n.L)(Be,(0,n.J)({as:"div",ref(e){let r=R(t.setArrowRef,i.ref);"function"==typeof r&&r(e)},"aria-hidden":"true",get style(){return te({position:"absolute","font-size":`${i.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:a()?.getPropertyValue("background-color")||"none",stroke:a()?.getPropertyValue(`border-${l()}-color`)||"none","stroke-width":s()},i.style)}},o,{get children(){let e=Nr(),t=e.firstChild;return(0,n.H)((()=>(0,n.T)(t,"transform",`rotate(${Qr[l()]} 15 15) translate(0 2)`))),e}}))}function _r(e){let{x:t=0,y:r=0,width:n=0,height:i=0}=e??{};if("function"==typeof DOMRect)return new DOMRect(t,r,n,i);let o={x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:r+i,left:t};return{...o,toJSON:()=>o}}function Jr(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var Zr={top:"bottom",right:"left",bottom:"top",left:"right"};var Yr,en=Object.assign((function(e){let t=Me({getAnchorRect:e=>e?.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),[r,i]=(0,n.W)(),[o,l]=(0,n.W)(),[a,s]=(0,n.W)(t.placement),d=()=>function(e,t){return{contextElement:e,getBoundingClientRect:()=>{let r=t(e);return r?_r(r):e?e.getBoundingClientRect():_r()}}}(t.anchorRef?.(),t.getAnchorRect),{direction:u}=nt();async function c(){let e=d(),n=r(),i=o();if(!e||!n)return;let l=(i?.clientHeight||0)/2,a="number"==typeof t.gutter?t.gutter+l:t.gutter??l;n.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),e.getBoundingClientRect();let c=[Kr((({placement:e})=>{let r=!!e.split("-")[1];return{mainAxis:a,crossAxis:r?void 0:t.shift,alignmentAxis:t.shift}}))];if(!1!==t.flip){let e="string"==typeof t.flip?t.flip.split(" "):void 0;if(void 0!==e&&!e.every(Jr))throw Error("`flip` expects a spaced-delimited list of placements");c.push(Rr({padding:t.overflowPadding,fallbackPlacements:e}))}(t.slide||t.overlap)&&c.push(Br({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),c.push(Vr({padding:t.overflowPadding,apply({availableWidth:e,availableHeight:r,rects:i}){let o=Math.round(i.reference.width);e=Math.floor(e),r=Math.floor(r),n.style.setProperty("--kb-popper-anchor-width",`${o}px`),n.style.setProperty("--kb-popper-content-available-width",`${e}px`),n.style.setProperty("--kb-popper-content-available-height",`${r}px`),t.sameWidth&&(n.style.width=`${o}px`),t.fitViewport&&(n.style.maxWidth=`${e}px`,n.style.maxHeight=`${r}px`)}})),t.hideWhenDetached&&c.push(Hr({padding:t.detachedPadding})),i&&c.push(Gr({element:i,padding:t.arrowPadding}));let g=await Ur(e,n,{placement:t.placement,strategy:"absolute",middleware:c,platform:{...Ar,isRTL:()=>"rtl"===u()}});if(s(g.placement),t.onCurrentPlacementChange?.(g.placement),!n)return;n.style.setProperty("--kb-popper-content-transform-origin",function(e,t){let[r,n]=e.split("-"),i=Zr[r];return n?"left"===r||"right"===r?`${i} ${"start"===n?"top":"bottom"}`:"start"===n?`${i} ${"rtl"===t?"right":"left"}`:`${i} ${"rtl"===t?"left":"right"}`:`${i} center`}(g.placement,u()));let f,p=Math.round(g.x),h=Math.round(g.y);if(t.hideWhenDetached&&(f=g.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(n.style,{top:"0",left:"0",transform:`translate3d(${p}px, ${h}px, 0)`,visibility:f}),i&&g.middlewareData.arrow){let{x:e,y:t}=g.middlewareData.arrow,r=g.placement.split("-")[0];Object.assign(i.style,{left:null==e?"":`${e}px`,top:null==t?"":`${t}px`,[r]:"100%"})}}(0,n.B)((()=>{let e=d(),t=r();if(!e||!t)return;let i=Ir(e,t,c,{elementResize:"function"==typeof ResizeObserver});(0,n.X)(i)})),(0,n.B)((()=>{let e=r(),n=t.contentRef?.();!e||!n||queueMicrotask((()=>{e.style.zIndex=getComputedStyle(n).zIndex}))}));let g={currentPlacement:a,contentRef:()=>t.contentRef?.(),setPositionerRef:i,setArrowRef:l};return(0,n.L)(Wr.Provider,{value:g,get children(){return t.children}})}),{Arrow:Xr,Context:Wr,usePopperContext:jr,Positioner:function(e){let t=jr(),[r,i]=(0,n.Q)(e,["ref","style"]);return(0,n.L)(Be,(0,n.J)({as:"div",ref(e){let n=R(t.setPositionerRef,r.ref);"function"==typeof n&&n(e)},"data-popper-positioner":"",get style(){return te({position:"absolute",top:0,left:0,"min-width":"max-content"},r.style)}
2},i))}}),tn="data-kb-top-layer",rn=!1,nn=[];function on(e){return nn.findIndex((t=>t.node===e))}function ln(){return nn.filter((e=>e.isPointerBlocking))}function an(){return ln().length>0}function sn(e){let t=on([...ln()].slice(-1)[0]?.node);return on(e)<t}var dn={layers:nn,isTopMostLayer:function(e){return nn[nn.length-1].node===e},hasPointerBlockingLayer:an,isBelowPointerBlockingLayer:sn,addLayer:function(e){nn.push(e)},removeLayer:function(e){let t=on(e);t<0||nn.splice(t,1)},indexOf:on,find:function(e){return nn[on(e)]},assignPointerEventToLayers:function(){for(let{node:e}of nn)e.style.pointerEvents=sn(e)?"none":"auto"},disableBodyPointerEvents:function(e){if(an()&&!rn){let t=se(e);Yr=document.body.style.pointerEvents,t.body.style.pointerEvents="none",rn=!0}},restoreBodyPointerEvents:function(e){if(an())return;let t=se(e);t.body.style.pointerEvents=Yr,0===t.body.style.length&&t.body.removeAttribute("style"),rn=!1}},un="interactOutside.pointerDownOutside",cn="interactOutside.focusOutside";var gn=(0,n.z)();function fn(e){let t,r=(0,n.et)(gn),[i,l]=(0,n.Q)(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),a=new Set([]);(function(e,t){let r,i=Te,l=()=>se(t()),a=t=>e.onPointerDownOutside?.(t),s=t=>e.onFocusOutside?.(t),d=t=>e.onInteractOutside?.(t),u=r=>{let n=r.target;return!(!(n instanceof Element&&!n.closest("[data-kb-top-layer]")&&le(l(),n))||le(t(),n))&&!e.shouldExcludeElement?.(n)},c=e=>{function r(){let r=t(),n=e.target;if(!r||!n||!u(e))return;let i=he([a,d]);n.addEventListener(un,i,{once:!0});let o=new CustomEvent(un,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:2===e.button||ye(e)&&0===e.button}});n.dispatchEvent(o)}"touch"===e.pointerType?(l().removeEventListener("click",r),i=r,l().addEventListener("click",r,{once:!0})):r()},g=e=>{let r=t(),n=e.target;if(!r||!n||!u(e))return;let i=he([s,d]);n.addEventListener(cn,i,{once:!0});let o=new CustomEvent(cn,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:!1}});n.dispatchEvent(o)};(0,n.B)((()=>{o(e.isDisabled)||(r=window.setTimeout((()=>{l().addEventListener("pointerdown",c,!0)}),0),l().addEventListener("focusin",g,!0),(0,n.X)((()=>
2{window.clearTimeout(r),l().removeEventListener("click",i),l().removeEventListener("pointerdown",c,!0),l().removeEventListener("focusin",g,!0)})))}))})({shouldExcludeElement:e=>!!t&&(i.excludedElements?.some((t=>le(t(),e)))||[...a].some((t=>le(t,e)))),onPointerDownOutside:e=>{!t||dn.isBelowPointerBlockingLayer(t)||!i.bypassTopMostLayerCheck&&!dn.isTopMostLayer(t)||(i.onPointerDownOutside?.(e),i.onInteractOutside?.(e),e.defaultPrevented||i.onDismiss?.())},onFocusOutside:e=>{i.onFocusOutside?.(e),i.onInteractOutside?.(e),e.defaultPrevented||i.onDismiss?.()}},(()=>t)),function(e){let t=t=>{t.key===ue.Escape&&e.onEscapeKeyDown?.(t)};(0,n.B)((()=>{if(o(e.isDisabled))return;let r=e.ownerDocument?.()??se();r.addEventListener("keydown",t),(0,n.X)((()=>{r.removeEventListener("keydown",t)}))}))}({ownerDocument:()=>se(t),onEscapeKeyDown:e=>{!t||!dn.isTopMostLayer(t)||(i.onEscapeKeyDown?.(e),!e.defaultPrevented&&i.onDismiss&&(e.preventDefault(),i.onDismiss()))}}),(0,n.Z)((()=>{if(!t)return;dn.addLayer({node:t,isPointerBlocking:i.disableOutsidePointerEvents,dismiss:i.onDismiss});let e=r?.registerNestedLayer(t);dn.assignPointerEventToLayers(),dn.disableBodyPointerEvents(t),(0,n.X)((()=>{t&&(dn.removeLayer(t),e?.(),dn.assignPointerEventToLayers(),dn.restoreBodyPointerEvents(t))}))})),(0,n.B)((0,n.Y)([()=>t,()=>i.disableOutsidePointerEvents],(([e,t])=>{if(!e)return;let r=dn.find(e);r&&r.isPointerBlocking!==t&&(r.isPointerBlocking=t,dn.assignPointerEventToLayers()),t&&dn.disableBodyPointerEvents(e),(0,n.X)((()=>{dn.restoreBodyPointerEvents(e)}))}),{defer:!0}));let s={registerNestedLayer:e=>{a.add(e);let t=r?.registerNestedLayer(e);return()=>{a.delete(e),t?.()}}};return(0,n.L)(gn.Provider,{value:s,get children(){return(0,n.L)(Be,(0,n.J)({as:"div",ref(e){let r=R((e=>t=e),i.ref);"function"==typeof r&&r(e)}},l))}})}function pn(e={}){let[t,r]=je({value:()=>o(e.open),defaultValue:()=>!!o(e.defaultOpen),onChange:t=>e.onOpenChange?.(t)}),n=()=>{r(!0)},i=()=>{r(!1)};return{isOpen:t,setIsOpen:r,open:n,close:i,toggle:()=>{t()?i():n()}}}function hn(e){return t=>(e(t),()=>e(void 0))}var yn=e=>"function"==typeof e?e():e,vn=e=>{let t=(0,n.V)((()=>{let t=yn(e.element);if(t)return getComputedStyle(t)})),r=()=>t()?.animationName??"none",[i,o]=(0,n.W)(yn(e.show)?"present":"hidden"),l="none";return(0,n.B)((i=>{let a=yn(e.show);return(0,n.$)((()=>{if(i===a)return a;let e=l,n=r();a?o("present"):"none"===n||"none"===t()?.display?o("hidden"):o(!0===i&&e!==n?"hiding":"hidden")})),a})),(0,n.B)((()=>{let t=yn(e.element);if(!t)return;let a=e=>{e.target===t&&(l=r())},s=e=>{let n=r().includes(e.animationName);e.target===t&&n&&"hiding"===i()&&o("hidden")};t.addEventListener("animationstart",a),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),(0,n.X)((()=>{t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}))})),{present:()=>"present"===i()||"hiding"===i(),state:i,setState:o}},bn=["id","name","validationState","required","disabled","readOnly"];var mn=(0,n.z)();function wn(){let e=(0,n.et)(mn);if(void 0===e)throw Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function xn(e){let t=wn(),r=Me({id:t.generateId("description")},e);return(0,n.B)((()=>(0,n.X)(t.registerDescription(r.id)))),(0,n.L)(Be,(0,n.J)({as:"div"},(()=>t.dataset()),r))}function kn(e){let t,r=wn(),i=Me({id:r.generateId("label")},e),[o,l]=(0,n.Q)(i,["ref"]),a=Ie((()=>t),(()=>"label"));return(0,n.B)((()=>(0,n.X)(r.registerLabel(l.id)))),(0,n.L)(Be,(0,n.J)({as:"label",ref(e){let r=R((e=>t=e),o.ref);"function"==typeof r&&r(e)},get for(){return(0,n.C)((()=>"label"===a()))()?r.fieldId():void 0}},(()=>r.dataset()),l))}function Sn(e,t){(0,n.B)((0,n.Y)(e,(e=>{if(null==e)return;let r=function(e){return function(e){return e.matches("textarea, input, select, button")}(e)?e.form:e.closest("form")}(e);null!=r&&(r.addEventListener("reset",t,{passive:!0}),(0,n.X)((()=>{r.removeEventListener("reset",t)})))}
2)))}function $n(e){let t=wn(),r=Me({id:t.generateId("error-message")},e),[i,o]=(0,n.Q)(r,["forceMount"]),l=()=>"invalid"===t.validationState();return(0,n.B)((()=>{l()&&(0,n.X)(t.registerErrorMessage(o.id))})),(0,n.L)(n.P,{get when(){return i.forceMount||l()},get children(){return(0,n.L)(Be,(0,n.J)({as:"div"},(()=>t.dataset()),o))}})}var Cn="focusScope.autoFocusOnMount",Ln="focusScope.autoFocusOnUnmount",qn={bubbles:!1,cancelable:!0},En={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=re(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=re(this.stack,e),this.active()?.resume()}};function Tn(e,t){let[r,i]=(0,n.W)(!1),l={pause(){i(!0)},resume(){i(!1)}},a=null,s=t=>e.onMountAutoFocus?.(t),d=t=>e.onUnmountAutoFocus?.(t),u=()=>se(t()),c=()=>{let e=u().createElement("span");return e.setAttribute("data-focus-trap",""),e.tabIndex=0,Object.assign(e.style,Pe),e},g=()=>{let e=t();return e?Se(e,!0).filter((e=>!e.hasAttribute("data-focus-trap"))):[]},f=()=>{let e=g();return e.length>0?e[0]:null},p=()=>{let e=t();if(!e)return!1;let r=ae(e);return!(!r||le(e,r))&&Ce(r)};(0,n.B)((()=>{let e=t();if(!e)return;En.add(l);let r=ae(e);if(!le(e,r)){let t=new CustomEvent(Cn,qn);e.addEventListener(Cn,s),e.dispatchEvent(t),t.defaultPrevented||setTimeout((()=>{ve(f()),ae(e)===r&&ve(e)}),0)}(0,n.X)((()=>{e.removeEventListener(Cn,s),setTimeout((()=>{let t=new CustomEvent(Ln,qn);p()&&t.preventDefault(),e.addEventListener(Ln,d),e.dispatchEvent(t),t.defaultPrevented||ve(r??u().body),e.removeEventListener(Ln,d),En.remove(l)}),0)}))})),(0,n.B)((()=>{let i=t();if(!i||!o(e.trapFocus)||r())return;let l=e=>{let t=e.target;t?.closest("[data-kb-top-layer]")||(le(i,t)?a=t:ve(a))},s=e=>{let t=e.relatedTarget??ae(i);t?.closest("[data-kb-top-layer]")||le(i,t)||ve(a)};u().addEventListener("focusin",l),u().addEventListener("focusout",s),(0,n.X)((()=>{u().removeEventListener("focusin",l),u().removeEventListener("focusout",s)}))})),(0,n.B)((()=>{let i=t();if(!i||!o(e.trapFocus)||r())return;let l=c();i.insertAdjacentElement("afterbegin",l);let a=c();function s(e){let t=f(),r=(()=>{let e=g();return e.length>0?e[e.length-1]:null})();e.relatedTarget===t?ve(r):ve(t)}i.insertAdjacentElement("beforeend",a),l.addEventListener("focusin",s),a.addEventListener("focusin",s);let d=new MutationObserver((e=>{for(let t of e)t.previousSibling===a&&(a.remove(),i.insertAdjacentElement("beforeend",a)),t.nextSibling===l&&(l.remove(),i.insertAdjacentElement("afterbegin",l))}));d.observe(i,{childList:!0,subtree:!1}),(0,n.X)((()=>{l.removeEventListener("focusin",s),a.removeEventListener("focusin",s),l.remove(),a.remove(),d.disconnect()}))}))}var Mn="data-live-announcer";function On(e){(0,n.B)((()=>{o(e.isDisabled)||(0,n.X)(function(e,t=document.body){let r=new Set(e),n=new Set,i=e=>{for(let n of e.querySelectorAll(`[${Mn}], [${tn}]`))r.add(n);let t=e=>{if(r.has(e)||e.parentElement&&n.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of r)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),l=t(e);if(l===NodeFilter.FILTER_ACCEPT&&o(e),l!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;null!=e;)o(e),e=i.nextNode()}},o=e=>{let t=Fn.get(e)??0;("true"!==e.getAttribute("aria-hidden")||0!==t)&&(0===t&&e.setAttribute("aria-hidden","true"),n.add(e),Fn.set(e,t+1))};Dn.length&&Dn[Dn.length-1].disconnect(),i(t);let l=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...r,...n].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(r.delete(e),n.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&i(e):r.add(e)}}));l.observe(t,{childList:!0,subtree:!0});let a={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Dn.push(a),()=>{l.disconnect();for(let e of n){let t=Fn.get(e);if(null==t)return;1===t?(e.removeAttribute("aria-hidden"),Fn.delete(e)):Fn.set(e,t-1)}a===Dn[Dn.length-1]?(Dn.pop(),Dn.length&&Dn[Dn.length-1].observe()):Dn.splice(Dn.indexOf(a),1)}}(o(e.targets),o(e.root)))}))}var Fn=new WeakMap,Dn=[];var zn=(e,t)=>{if(e.contains(t))return!0;let r=t;for(;r;){if(r===e)return!0;r=r._$host??r.parentElement}return!1},An=new Map,Pn=e=>{(0,n.B)((()=>{let t=yn(e.style)??{},r=yn(e.properties)??[],i={};for(let n in t)i[n]=e.element.style[n];let o=An.get(e.key);o?o.activeCount++:An.set(e.key,{activeCount:1,originalStyles:i,properties:r.map((e=>e.key))}),Object.assign(e.element.style,e.style);for(let n of r)e.element.style.setProperty(n.key,n.value);(0,n.X)((()=>{let t=An.get(e.key);if(t){if(1!==t.activeCount)return void t.activeCount--;An.delete(e.key);for(let[r,n]of Object.entries(t.originalStyles))e.element.style[r]=n;for(let r of t.properties)e.element.style.removeProperty(r);0===e.element.style.length&&e.element.removeAttribute("style"),e.cleanup?.()}}))}))},In=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Kn=(e,t)=>{let r=getComputedStyle(e),n="x"===t?r.overflowX:r.overflowY;return"auto"===n||"scroll"===n||"HTML"===e.tagName&&"visible"===n},[Bn,Rn]=(0,n.W)([]),Vn=e=>[e.deltaX,e.deltaY],Hn=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Gn=(e,t,r,n)=>{let[i,o]=((e,t,r)=>{let n="x"===t&&"rtl"===window.getComputedStyle(e).direction?-1:1,i=e,o=0,l=0,a=!1;do{let[e,s,d]=In(i,t),u=d-e-n*s;(0!==s||0!==u)&&Kn(i,t)&&(o+=u,l+=s),i===(r??document.documentElement)?a=!0:i=i._$host??i.parentElement}while(i&&!a);return[o,l]})(e,t,null!==n&&zn(n,e)?n:void 0);return!(r>0&&Math.abs(i)<=1||r<0&&Math.abs(o)<1)},Un=e=>{let t=(0,n.J)({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),r=(0,n.G)(),i=[0,0],o=null,l=null;(0,n.B)((()=>{yn(t.enabled)&&(Rn((e=>[...e,r])),(0,n.X)((()=>{Rn((e=>e.filter((e=>e!==r))))})))})),(0,n.B)((()=>
2{if(!yn(t.enabled)||!yn(t.hideScrollbar))return;let{body:e}=document,r=window.innerWidth-e.offsetWidth;if(yn(t.preventScrollbarShift)){let n={overflow:"hidden"},i=[];r>0&&("padding"===yn(t.preventScrollbarShiftMode)?n.paddingRight=`calc(${window.getComputedStyle(e).paddingRight} + ${r}px)`:n.marginRight=`calc(${window.getComputedStyle(e).marginRight} + ${r}px)`,i.push({key:"--scrollbar-width",value:`${r}px`}));let o=window.scrollY,l=window.scrollX;Pn({key:"prevent-scroll",element:e,style:n,properties:i,cleanup:()=>{yn(t.restoreScrollPosition)&&r>0&&window.scrollTo(l,o)}})}else Pn({key:"prevent-scroll",element:e,style:{overflow:"hidden"}})})),(0,n.B)((()=>{!(e=>Bn().indexOf(e)===Bn().length-1)(r)||!yn(t.enabled)||(document.addEventListener("wheel",s,{passive:!1}),document.addEventListener("touchstart",a,{passive:!1}),document.addEventListener("touchmove",d,{passive:!1}),(0,n.X)((()=>{document.removeEventListener("wheel",s),document.removeEventListener("touchstart",a),document.removeEventListener("touchmove",d)})))}));let a=e=>{i=Hn(e),o=null,l=null},s=e=>{let r,n=e.target,i=yn(t.element),o=Vn(e),l=Math.abs(o[0])>Math.abs(o[1])?"x":"y",a=Gn(n,l,"x"===l?o[0]:o[1],i);r=!i||!zn(i,n)||!a,r&&e.cancelable&&e.preventDefault()},d=e=>{let r,n=yn(t.element),a=e.target;if(2===e.touches.length)r=!yn(t.allowPinchZoom);else{if(null==o||null===l){let t=Hn(e).map(((e,t)=>i[t]-e)),r=Math.abs(t[0])>Math.abs(t[1])?"x":"y";o=r,l="x"===r?t[0]:t[1]}if("range"===a.type)r=!1;else{let e=Gn(a,o,l,n);r=!n||!zn(n,a)||!e}}r&&e.cancelable&&e.preventDefault()}},Wn={};Ve(Wn,{Description:()=>xn,ErrorMessage:()=>$n,Item:()=>_n,ItemControl:()=>Jn,ItemDescription:()=>Zn,ItemIndicator:()=>Yn,ItemInput:()=>ei,ItemLabel:()=>ti,Label:()=>ri,RadioGroup:()=>ii,Root:()=>ni,useRadioGroupContext:()=>Nn});var jn=(0,n.z)();function Nn(){let e=(0,n.et)(jn);if(void 0===e)throw Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}var Qn=(0,n.z)();function Xn(){let e=(0,n.et)(Qn);if(void 0===e)throw Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function _n(e){let t=wn(),r=Nn(),i=Me({id:`${t.generateId("item")}-${(0,n.G)()}`},e),[o,l]=(0,n.Q)(i,["value","disabled","onPointerDown"]),[a,s]=(0,n.W)(),[d,u]=(0,n.W)(),[c,g]=(0,n.W)(),[f,p]=(0,n.W)(),[h,y]=(0,n.W)(!1),v=(0,n.V)((()=>r.isDefaultValue(o.value))),b=(0,n.V)((()=>r.isSelectedValue(o.value))),m=(0,n.V)((()=>o.disabled||t.isDisabled()||!1)),w=e=>{pe(e,o.onPointerDown),h()&&e.preventDefault()},x=(0,n.V)((()=>({...t.dataset(),"data-disabled":m()?"":void 0,"data-checked":b()?"":void 0}))),k={value:()=>o.value,dataset:x,isDefault:v,isSelected:b,isDisabled:m,inputId:a,labelId:d,descriptionId:c,inputRef:f,select:()=>r.setSelectedValue(o.value),generateId:oe((()=>l.id)),registerInput:hn(s),registerLabel:hn(u),registerDescription:hn(g),setIsFocused:y,setInputRef:p};return(0,n.L)(Qn.Provider,{value:k,get children(){return(0,n.L)(Be,(0,n.J)({as:"div",role:"group",onPointerDown:w},x,l))}})}function Jn(e){let t=Xn(),r=Me({id:t.generateId("control")},e),[i,o]=(0,n.Q)(r,["onClick","onKeyDown"]);return(0,n.L)(Be,(0,n.J)({as:"div",onClick:e=>{pe(e,i.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:e=>{pe(e,i.onKeyDown),e.key===ue.Space&&(t.select(),t.inputRef()?.focus())}},(()=>t.dataset()),o))}function Zn(e){let t=Xn(),r=Me({id:t.generateId("description")},e);return(0,n.B)((()=>(0,n.X)(t.registerDescription(r.id)))),(0,n.L)(Be,(0,n.J)({as:"div"},(()=>t.dataset()),r))}function Yn(e){let t=Xn(),r=Me({id:t.generateId("indicator")},e),[i,o]=(0,n.Q)(r,["ref","forceMount"]),[l,a]=(0,n.W)(),{present:s}=vn({show:()=>i.forceMount||t.isSelected(),element:()=>l()??null});return(0,n.L)(n.P,{get when(){return s()},get children(){return(0,n.L)(Be,(0,n.J)({as:"div",ref(e){let t=R(a,i.ref);"function"==typeof t&&t(e)}},(()=>t.dataset()),o))}})}function ei(e){let t=wn(),r=Nn(),i=Xn(),o=Me({id:i.generateId("input")},e),[l,a]=(0,n.Q)(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),[s,d]=(0,n.W)(!1);return(0,n.B)((0,n.Y)([()=>i.isSelected(),()=>i.value()],(e=>{if(!e[0]&&e[1]===i.value())return;d(!0);let t=i.inputRef();t?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))}),{defer:!0})),(0,n.B)((()=>(0,n.X)(i.registerInput(a.id)))),(0,n.L)(Be,(0,n.J)({as:"input",ref(e){let t=R(i.setInputRef,l.ref);"function"==typeof t&&t(e)},type:"radio",get name(){return t.name()}
2,get value(){return i.value()},get checked(){return i.isSelected()},get required(){return t.isRequired()},get disabled(){return i.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return te({...Pe},l.style)},get"aria-labelledby"(){return[l["aria-labelledby"],i.labelId(),null!=l["aria-labelledby"]&&null!=a["aria-label"]?a.id:void 0].filter(Boolean).join(" ")||void 0},get"aria-describedby"(){return[l["aria-describedby"],i.descriptionId(),r.ariaDescribedBy()].filter(Boolean).join(" ")||void 0},onChange:e=>{if(pe(e,l.onChange),e.stopPropagation(),!s()){r.setSelectedValue(i.value()),e.target.checked=i.isSelected()}d(!1)},onFocus:e=>{pe(e,l.onFocus),i.setIsFocused(!0)},onBlur:e=>{pe(e,l.onBlur),i.setIsFocused(!1)}},(()=>i.dataset()),a))}function ti(e){let t=Xn(),r=Me({id:t.generateId("label")},e);return(0,n.B)((()=>(0,n.X)(t.registerLabel(r.id)))),(0,n.L)(Be,(0,n.J)({as:"label",get for(){return t.inputId()}},(()=>t.dataset()),r))}function ri(e){return(0,n.L)(kn,(0,n.J)({as:"span"},e))}function ni(e){let t,r=Me({id:`radiogroup-${(0,n.G)()}`,orientation:"vertical"},e),[i,l,a]=(0,n.Q)(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],bn),[s,d]=We({value:()=>i.value,defaultValue:()=>i.defaultValue,onChange:e=>i.onChange?.(e)}),{formControlContext:u}=function(e){let t=Me({id:`form-control-${(0,n.G)()}`},e),[r,i]=(0,n.W)(),[l,a]=(0,n.W)(),[s,d]=(0,n.W)(),[u,c]=(0,n.W)();return{formControlContext:{name:()=>o(t.name)??o(t.id),dataset:(0,n.V)((()=>({"data-valid":"valid"===o(t.validationState)?"":void 0,"data-invalid":"invalid"===o(t.validationState)?"":void 0,"data-required":o(t.required)?"":void 0,"data-disabled":o(t.disabled)?"":void 0,"data-readonly":o(t.readOnly)?"":void 0}))),validationState:()=>o(t.validationState),isRequired:()=>o(t.required),isDisabled:()=>o(t.disabled),isReadOnly:()=>o(t.readOnly),labelId:r,fieldId:l,descriptionId:s,errorMessageId:u,getAriaLabelledBy:(e,t,n)=>{let i=null!=n||null!=r();return[n,r(),i&&null!=t?e:void 0].filter(Boolean).join(" ")||void 0},getAriaDescribedBy:e=>[s(),u(),e].filter(Boolean).join(" ")||void 0,generateId:oe((()=>o(t.id))),registerLabel:hn(i),registerField:hn(a),registerDescription:hn(d),registerErrorMessage:hn(c)}}}(l);Sn((()=>t),(()=>d(i.defaultValue??"")));let c=()=>u.getAriaDescribedBy(i["aria-describedby"]),g=e=>e===s(),f={ariaDescribedBy:c,isDefaultValue:t=>t===e.defaultValue,isSelectedValue:g,setSelectedValue:e=>{if(!u.isReadOnly()&&!u.isDisabled()&&(d(e),t))for(let r of t.querySelectorAll("[type='radio']")){let e=r;e.checked=g(e.value)}}};return(0,n.L)(mn.Provider,{value:u,get children(){return(0,n.L)(jn.Provider,{value:f,get children(){return(0,n.L)(Be,(0,n.J)({as:"div",ref(e){let r=R((e=>t=e),i.ref);"function"==typeof r&&r(e)},role:"radiogroup",get id(){return o(l.id)},get"aria-invalid"(){return"invalid"===u.validationState()||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 i.orientation},get"aria-labelledby"(){return u.getAriaLabelledBy(o(l.id),a["aria-label"],i["aria-labelledby"])},get"aria-describedby"(){return c()}},(()=>u.dataset()),a))}})}})}var ii=Object.assign(ni,{Description:xn,ErrorMessage:$n,Item:_n,ItemControl:Jn,ItemDescription:Zn,ItemIndicator:Yn,ItemInput:ei,ItemLabel:ti,Label:ri}),oi=class{collection;ref;collator;constructor(e,t,r){this.collection=e,this.ref=t,this.collator=r}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;null!=t;){let e=this.collection().getItem(t);if(e&&"item"===e.type&&!e.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;null!=t;){let e=this.collection().getItem(t);if(e&&"item"===e.type&&!e.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;null!=e;){let t=this.collection().getItem(e);if(t&&"item"===t.type&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;null!=e;){let t=this.collection().getItem(e);if(t&&"item"===t.type&&!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?.(),r=this.getItem(e);if(!t||!r)return;let n=Math.max(0,r.offsetTop+r.offsetHeight-t.offsetHeight),i=e;for(;i&&r&&r.offsetTop>n;
2)i=this.getKeyAbove(i),r=null==i?null:this.getItem(i);return i}getKeyPageBelow(e){let t=this.ref?.(),r=this.getItem(e);if(!t||!r)return;let n=Math.min(t.scrollHeight,r.offsetTop-r.offsetHeight+t.offsetHeight),i=e;for(;i&&r&&r.offsetTop<n;)i=this.getKeyBelow(i),r=null==i?null:this.getItem(i);return i}getKeyForSearch(e,t){let r=this.collator?.();if(!r)return;let n=null==t?this.getFirstKey():this.getKeyBelow(t);for(;null!=n;){let t=this.collection().getItem(n);if(t){let i=t.textValue.slice(0,e.length);if(t.textValue&&0===r.compare(i,e))return n}n=this.getKeyBelow(n)}}};function li(e,t,r){let i=function(e){let{locale:t}=nt(),r=(0,n.V)((()=>t()+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"")));return(0,n.V)((()=>{let n,i=r();return it.has(i)&&(n=it.get(i)),n||(n=new Intl.Collator(t(),e),it.set(i,n)),n}))}({usage:"search",sensitivity:"base"});return ut({selectionManager:()=>o(e.selectionManager),keyboardDelegate:(0,n.V)((()=>o(e.keyboardDelegate)||new oi(e.collection,t,i))),autoFocus:()=>o(e.autoFocus),deferAutoFocus:()=>o(e.deferAutoFocus),shouldFocusWrap:()=>o(e.shouldFocusWrap),disallowEmptySelection:()=>o(e.disallowEmptySelection),selectOnFocus:()=>o(e.selectOnFocus),disallowTypeAhead:()=>o(e.disallowTypeAhead),shouldUseVirtualFocus:()=>o(e.shouldUseVirtualFocus),allowsTabNavigation:()=>o(e.allowsTabNavigation),isVirtualized:()=>o(e.isVirtualized),scrollToKey:t=>o(e.scrollToKey)?.(t),orientation:()=>o(e.orientation)},t,r)}var ai=(0,n.z)();function si(){return(0,n.et)(ai)}var di=(0,n.z)();function ui(){return(0,n.et)(di)}var ci=(0,n.z)();function gi(){return(0,n.et)(ci)}function fi(){let e=gi();if(void 0===e)throw Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var pi=(0,n.z)();function hi(){let e=(0,n.et)(pi);if(void 0===e)throw Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}var yi=(0,n.z)();function vi(){let e=(0,n.et)(yi);if(void 0===e)throw Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function bi(e){let t,r=vi(),i=fi(),o=Me({id:r.generateId(`item-${(0,n.G)()}`)},e),[l,a]=(0,n.Q)(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[s,d]=(0,n.W)(),[u,c]=(0,n.W)(),[g,f]=(0,n.W)(),p=()=>i.listState().selectionManager(),h=()=>a.id,y=()=>{l.onSelect?.(),l.closeOnSelect&&setTimeout((()=>{i.close(!0)}))};wt({getItem:()=>({ref:()=>t,type:"item",key:h(),textValue:l.textValue??g()?.textContent??t?.textContent??"",disabled:l.disabled??!1})});let v=ct({key:h,selectionManager:p,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>l.disabled},(()=>t)),b=e=>{pe(e,l.onPointerMove),"mouse"===e.pointerType&&(l.disabled?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||(ve(e.currentTarget),i.listState().selectionManager().setFocused(!0),i.listState().selectionManager().setFocusedKey(h()))))},m=e=>{pe(e,l.onPointerLeave),"mouse"===e.pointerType&&i.onItemLeave(e)},w=e=>{pe(e,l.onPointerUp),!l.disabled&&0===e.button&&y()},x=e=>{if(pe(e,l.onKeyDown),!e.repeat&&!l.disabled)switch(e.key){case"Enter":case" ":y()}},k=(0,n.V)((()=>l.indeterminate?"mixed":null!=l.checked?l.checked:void 0)),S=(0,n.V)((()=>({"data-indeterminate":l.indeterminate?"":void 0,"data-checked":l.checked&&!l.indeterminate?"":void 0,"data-disabled":l.disabled?"":void 0,"data-highlighted":p().focusedKey()===h()?"":void 0}))),$={isChecked:()=>l.checked,dataset:S,setLabelRef:f,generateId:oe((()=>a.id)),registerLabel:hn(d),registerDescription:hn(c)};return(0,n.L)(pi.Provider,{value:$,get children(){return(0,n.L)(Be,(0,n.J)({as:"div",ref(e){let r=R((e=>t=e),l.ref);"function"==typeof r&&r(e)},get tabIndex(){return v.tabIndex()},get"aria-checked"(){return k()},get"aria-disabled"(){return l.disabled},get"aria-labelledby"(){return s()},get"aria-describedby"(){return u()},get"data-key"(){return v.dataKey()},get onPointerDown(){return he([l.onPointerDown,v.onPointerDown])},get onPointerUp(){return he([w,v.onPointerUp])},get onClick(){return he([l.onClick,v.onClick])},get onKeyDown(){return he([x,v.onKeyDown])},get onMouseDown(){return he([l.onMouseDown,v.onMouseDown])}
2,get onFocus(){return he([l.onFocus,v.onFocus])},onPointerMove:b,onPointerLeave:m},S,a))}})}function mi(e){let t=Me({closeOnSelect:!1},e),[r,i]=(0,n.Q)(t,["checked","defaultChecked","onChange","onSelect"]),l=function(e={}){let[t,r]=je({value:()=>o(e.isSelected),defaultValue:()=>!!o(e.defaultIsSelected),onChange:t=>e.onSelectedChange?.(t)});return{isSelected:t,setIsSelected:t=>{!o(e.isReadOnly)&&!o(e.isDisabled)&&r(t)},toggle:()=>{!o(e.isReadOnly)&&!o(e.isDisabled)&&r(!t())}}}({isSelected:()=>r.checked,defaultIsSelected:()=>r.defaultChecked,onSelectedChange:e=>r.onChange?.(e),isDisabled:()=>i.disabled});return(0,n.L)(bi,(0,n.J)({role:"menuitemcheckbox",get checked(){return l.isSelected()},onSelect:()=>{r.onSelect?.(),l.toggle()}},i))}var wi={next:(e,t)=>"ltr"===e?"horizontal"===t?"ArrowRight":"ArrowDown":"horizontal"===t?"ArrowLeft":"ArrowUp",previous:(e,t)=>wi.next("ltr"===e?"rtl":"ltr",t)},xi=e=>"horizontal"===e?"ArrowDown":"ArrowRight",ki=e=>"horizontal"===e?"ArrowUp":"ArrowLeft";function Si(e){let t=vi(),r=fi(),i=si(),{direction:o}=nt(),l=Me({id:t.generateId("trigger")},e),[a,s]=(0,n.Q)(l,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),d=()=>t.value();void 0!==i&&(d=()=>t.value()??a.id,void 0===i.lastValue()&&i.setLastValue(d));let u=Ie((()=>r.triggerRef()),(()=>"button")),c=(0,n.V)((()=>"a"===u()&&null!=r.triggerRef()?.getAttribute("href")));(0,n.B)((0,n.Y)((()=>i?.value()),(e=>{c()&&e===d()&&r.triggerRef()?.focus()})));let g=()=>{void 0===i?r.toggle(!0):r.isOpen()?i.value()===d()&&i.closeMenu():(i.autoFocusMenu()||i.setAutoFocusMenu(!0),r.open(!1))};return(0,n.B)((()=>(0,n.X)(r.registerTriggerId(a.id)))),(0,n.L)(Ge,(0,n.J)({ref(e){let t=R(r.setTriggerRef,a.ref);"function"==typeof t&&t(e)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return a.id},get disabled(){return a.disabled},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return(0,n.C)((()=>!!r.isOpen()))()?r.contentId():void 0},get"data-highlighted"(){return void 0!==d()&&i?.value()===d()||void 0},get tabIndex(){return void 0===i?void 0:i.value()===d()||i.lastValue()===d()?0:-1},onPointerDown:e=>{pe(e,a.onPointerDown),e.currentTarget.dataset.pointerType=e.pointerType,!a.disabled&&"touch"!==e.pointerType&&0===e.button&&g()},onMouseOver:e=>{pe(e,a.onMouseOver),"touch"!==r.triggerRef()?.dataset.pointerType&&!a.disabled&&void 0!==i&&void 0!==i.value()&&i.setValue(d)},onClick:e=>{pe(e,a.onClick),a.disabled||"touch"===e.currentTarget.dataset.pointerType&&g()},onKeyDown:e=>{if(pe(e,a.onKeyDown),!a.disabled){if(c())switch(e.key){case"Enter":case" ":return}switch(e.key){case"Enter":case" ":case xi(t.orientation()):e.stopPropagation(),e.preventDefault(),function(e,t){if(document.contains(e)){let r=document.scrollingElement||document.documentElement;if("hidden"!==window.getComputedStyle(r).overflow){let{left:r,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:i,top:o}=e.getBoundingClientRect();(Math.abs(r-i)>1||Math.abs(n-o)>1)&&(t?.containingElement?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}else{let t=qe(e);for(;e&&t&&e!==r&&t!==r;)ze(t,e),t=qe(e=t)}}}(e.currentTarget),r.open("first"),i?.setAutoFocusMenu(!0),i?.setValue(d);break;case ki(t.orientation()):e.stopPropagation(),e.preventDefault(),r.open("last");break;case wi.next(o(),t.orientation()):if(void 0===i)break;e.stopPropagation(),e.preventDefault(),i.nextMenu();break;case wi.previous(o(),t.orientation()):if(void 0===i)break;e.stopPropagation(),e.preventDefault(),i.previousMenu()}}},onFocus:e=>{pe(e,a.onFocus),void 0!==i&&"touch"!==e.currentTarget.dataset.pointerType&&i.setValue(d)},role:void 0===i?void 0:"menuitem"},(()=>r.dataset()),s))}function $i(e){let t,r=vi(),i=fi(),o=si(),l=ui(),{direction:a}=nt(),s=Me({id:r.generateId(`content-${(0,n.G)()}`)},e),[d,u]=(0,n.Q)(s,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),c=0,g=()=>null==i.parentMenuContext()&&void 0===o&&r.isModal(),f=li({selectionManager:i.listState().selectionManager,collection:i.listState().collection,autoFocus:i.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!i.listState().selectionManager().isFocused(),orientation:()=>"horizontal"===r.orientation()?"vertical":"horizontal"},(()=>t));Tn({trapFocus:()=>g()&&i.isOpen(),onMountAutoFocus:e=>{void 0===o&&d.onOpenAutoFocus?.(e)},onUnmountAutoFocus:d.onCloseAutoFocus},(()=>t));let p=e=>{d.onEscapeKeyDown?.(e),o?.setAutoFocusMenu(!1),i.close(!0)}
2,h=e=>{d.onFocusOutside?.(e),r.isModal()&&e.preventDefault()};(0,n.B)((()=>(0,n.X)(i.registerContentId(d.id)))),(0,n.X)((()=>i.setContentRef(void 0)));let y={ref:R((e=>{i.setContentRef(e),t=e}),d.ref),role:"menu",get id(){return d.id},get tabIndex(){return f.tabIndex()},get"aria-labelledby"(){return i.triggerId()},onKeyDown:he([d.onKeyDown,f.onKeyDown,e=>{if(le(e.currentTarget,e.target)&&("Tab"===e.key&&i.isOpen()&&e.preventDefault(),void 0!==o&&"true"!==e.currentTarget.getAttribute("aria-haspopup")))switch(e.key){case wi.next(a(),r.orientation()):e.stopPropagation(),e.preventDefault(),i.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case wi.previous(a(),r.orientation()):if(e.currentTarget.hasAttribute("data-closed"))break;e.stopPropagation(),e.preventDefault(),i.close(!0),o.setAutoFocusMenu(!0),o.previousMenu()}}]),onMouseDown:he([d.onMouseDown,f.onMouseDown]),onFocusIn:he([d.onFocusIn,f.onFocusIn]),onFocusOut:he([d.onFocusOut,f.onFocusOut]),onPointerEnter:e=>{pe(e,d.onPointerEnter),i.isOpen()&&(i.parentMenuContext()?.listState().selectionManager().setFocused(!1),i.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},onPointerMove:e=>{if(pe(e,d.onPointerMove),"mouse"!==e.pointerType)return;let t=e.target,r=c!==e.clientX;le(e.currentTarget,t)&&r&&(i.setPointerDir(e.clientX>c?"right":"left"),c=e.clientX)},get"data-orientation"(){return r.orientation()}};return(0,n.L)(n.P,{get when(){return i.contentPresent()},get children(){return(0,n.L)(n.P,{get when(){return void 0===l||null!=i.parentMenuContext()},get fallback(){return(0,n.L)(Be,(0,n.J)({as:"div"},(()=>i.dataset()),y,u))},get children(){return(0,n.L)(en.Positioner,{get children(){return(0,n.L)(fn,(0,n.J)({get disableOutsidePointerEvents(){return(0,n.C)((()=>!!g()))()&&i.isOpen()},get excludedElements(){return[i.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return te({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},d.style)},onEscapeKeyDown:p,onFocusOutside:h,get onDismiss(){return i.close}},(()=>i.dataset()),y,u))}})}})}})}function Ci(e){let t,r=vi(),i=fi(),[o,l]=(0,n.Q)(e,["ref"]);return Un({element:()=>t??null,enabled:()=>i.contentPresent()&&r.preventScroll()}),(0,n.L)($i,(0,n.J)({ref(e){let r=R((e=>{t=e}),o.ref);"function"==typeof r&&r(e)}},l))}var Li=(0,n.z)();function qi(e){let t=Me({id:vi().generateId(`group-${(0,n.G)()}`)},e),[r,i]=(0,n.W)(),o={generateId:oe((()=>t.id)),registerLabelId:hn(i)};return(0,n.L)(Li.Provider,{value:o,get children(){return(0,n.L)(Be,(0,n.J)({as:"div",role:"group",get"aria-labelledby"(){return r()}},t))}})}function Ei(e){let t=function(){let e=(0,n.et)(Li);if(void 0===e)throw Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}(),r=Me({id:t.generateId("label")},e),[i,o]=(0,n.Q)(r,["id"]);return(0,n.B)((()=>(0,n.X)(t.registerLabelId(i.id)))),(0,n.L)(Be,(0,n.J)({as:"span",get id(){return i.id},"aria-hidden":"true"},o))}function Ti(e){let t=fi(),r=Me({children:"\u25bc"},e);return(0,n.L)(Be,(0,n.J)({as:"span","aria-hidden":"true"},(()=>t.dataset()),r))}function Mi(e){return(0,n.L)(bi,(0,n.J)({role:"menuitem",closeOnSelect:!0},e))}function Oi(e){let t=hi(),r=Me({id:t.generateId("description")},e),[i,o]=(0,n.Q)(r,["id"]);return(0,n.B)((()=>(0,n.X)(t.registerDescription(i.id)))),(0,n.L)(Be,(0,n.J)({as:"div",get id(){return i.id}},(()=>t.dataset()),o))}function Fi(e){let t=hi(),r=Me({id:t.generateId("indicator")},e),[i,o]=(0,n.Q)(r,["forceMount"]);return(0,n.L)(n.P,{get when(){return i.forceMount||t.isChecked()},get children(){return(0,n.L)(Be,(0,n.J)({as:"div"},(()=>t.dataset()),o))}})}function Di(e){let t=hi(),r=Me({id:t.generateId("label")},e),[i,o]=(0,n.Q)(r,["ref","id"]);return(0,n.B)((()=>(0,n.X)(t.registerLabel(i.id)))),(0,n.L)(Be,(0,n.J)({as:"div",ref(e){let r=R(t.setLabelRef,i.ref);"function"==typeof r&&r(e)},get id(){return i.id}},(()=>t.dataset()),o))}function zi(e){let t=fi();return(0,n.L)(n.P,{get when(){return t.contentPresent()},get children(){return(0,n.L)(n._,e)}})}var Ai=(0,n.z)();function Pi(e){let t=Me({id:vi().generateId(`radiogroup-${(0,n.G)()}`)},e),[r,i]=(0,n.Q)(t,["value","defaultValue","onChange","disabled"]),[o,l]=We({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:e=>r.onChange?.(e)});return(0,n.L)(Ai.Provider,{value:{isDisabled:()=>r.disabled,isSelectedValue:e=>e===o(),setSelectedValue:e=>l(e)},get children(){return(0,n.L)(qi,i)}})}function Ii(e){let t=function(){let e=(0,n.et)(Ai);if(void 0===e)throw Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}(),r=Me({closeOnSelect:!1},e),[i,o]=(0,n.Q)(r,["value","onSelect"]);return(0,n.L)(bi,(0,n.J)({role:"menuitemradio",get checked(){return t.isSelectedValue(i.value)},onSelect:()=>{i.onSelect?.(),t.setSelectedValue(i.value)}},o))}function Ki(e,t,r){let n=e.split("-")[0],i=r.getBoundingClientRect(),o=[],l=t.clientX,a=t.clientY;switch(n){case"top":o.push([l,a+5]),o.push([i.left,i.bottom]),o.push([i.left,i.top]),o.push([i.right,i.top]),o.push([i.right,i.bottom]);break;case"right":o.push([l-5,a]),o.push([i.left,i.top]),o.push([i.right,i.top]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]);break;case"bottom":o.push([l,a-5]),o.push([i.right,i.top]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]),o.push([i.left,i.top]);break;case"left":o.push([l+5,a]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]),o.push([i.left,i.top]),o.push([i.right,i.top])}return o}function Bi(e){let t=vi(),r=ht(),i=gi(),l=si(),a=ui(),s=Me({placement:"horizontal"===t.orientation()?"bottom-start":"right-start"},e),[d,u]=(0,n.Q)(s,["open","defaultOpen","onOpenChange"]),c=0,g=null,f="r
2ight",[p,h]=(0,n.W)(),[y,v]=(0,n.W)(),[b,m]=(0,n.W)(),[w,x]=(0,n.W)(),[k,S]=(0,n.W)(!0),[$,C]=(0,n.W)(u.placement),[L,q]=(0,n.W)([]),[E,T]=(0,n.W)([]),{DomCollectionProvider:M}=mt({items:E,onItemsChange:T}),O=pn({open:()=>d.open,defaultOpen:()=>d.defaultOpen,onOpenChange:e=>d.onOpenChange?.(e)}),{present:F}=vn({show:()=>t.forceMount()||O.isOpen(),element:()=>w()??null}),D=function(e){let t=dt(e),r=Qe({dataSource:()=>o(e.dataSource),getKey:()=>o(e.getKey),getTextValue:()=>o(e.getTextValue),getDisabled:()=>o(e.getDisabled),getSectionChildren:()=>o(e.getSectionChildren),factory:t=>e.filter?new ft(e.filter(t)):new ft(t)},[()=>e.filter]),i=new gt(r,t);return(0,n.R)((()=>{let e=t.focusedKey();null!=e&&!r().getItem(e)&&t.setFocusedKey(void 0)})),{collection:r,selectionManager:()=>i}}({selectionMode:"none",dataSource:E}),z=e=>{S(e),O.open()},A=(e=!1)=>{O.close(),e&&i&&i.close(!0)},P=()=>{let e=w();e&&(ve(e),D.selectionManager().setFocused(!0),D.selectionManager().setFocusedKey(void 0))},I=()=>{null==a?P():setTimeout((()=>P()))},K=e=>f===g?.side&&function(e,t){return!!t&&function(e,t){let[r,n]=e,i=!1;for(let o=t.length,l=0,a=o-1;l<o;a=l++){let[e,s]=t[l],[d,u]=t[a],[,c]=t[0===a?o-1:a-1]||[0,0],g=(s-u)*(r-e)-(e-d)*(n-s);if(u<s){if(n>=u&&n<s){if(0===g)return!0;g>0&&(n===u?n>c&&(i=!i):i=!i)}}else if(s<u){if(n>s&&n<=u){if(0===g)return!0;g<0&&(n===u?n<c&&(i=!i):i=!i)}}else if(n===s&&(r>=d&&r<=e||r>=e&&r<=d))return!0}return i}([e.clientX,e.clientY],t)}(e,g?.area);On({isDisabled:()=>!(null==i&&O.isOpen()&&t.isModal()),targets:()=>[w(),...L()].filter(Boolean)}),(0,n.B)((()=>{let e=w();if(!e||!i)return;let t=i.registerNestedMenu(e);(0,n.X)((()=>{t()}))})),(0,n.B)((()=>{void 0===i&&l?.registerMenu(t.value(),[w(),...L()])})),(0,n.B)((()=>{void 0===i&&void 0!==l&&(l.value()===t.value()?(b()?.focus(),l.autoFocusMenu()&&z(!0)):A())})),(0,n.B)((()=>{void 0===i&&void 0!==l&&O.isOpen()&&l.setValue(t.value())})),(0,n.X)((()=>{void 0===i&&l?.unregisterMenu(t.value())}));let B={dataset:(0,n.V)((()=>({"data-expanded":O.isOpen()?"":void 0,"data-closed":O.isOpen()?void 0:""}))),isOpen:O.isOpen,contentPresent:F,nestedMenus:L,currentPlacement:$,pointerGraceTimeoutId:()=>c,autoFocus:k,listState:()=>D,parentMenuContext:()=>i,triggerRef:b,contentRef:w,triggerId:p,contentId:y,setTriggerRef:m,setContentRef:x,open:z,close:A,toggle:e=>{S(e),O.toggle()},focusContent:I,onItemEnter:e=>{K(e)&&e.preventDefault()},onItemLeave:e=>{K(e)||I()},onTriggerLeave:e=>{K(e)&&e.preventDefault()},setPointerDir:e=>f=e,setPointerGraceTimeoutId:e=>c=e,setPointerGraceIntent:e=>g=e,registerNestedMenu:e=>{q((t=>[...t,e]));let t=i?.registerNestedMenu(e);return()=>{q((t=>re(t,e))),t?.()}},registerItemToParentDomCollection:r?.registerItem,registerTriggerId:hn(h),registerContentId:hn(v)};return(0,n.L)(M,{get children(){return(0,n.L)(ci.Provider,{value:B,get children(){return(0,n.L)(n.P,{when:void 0===a,get fallback(){return u.children},get children(){return(0,n.L)(en,(0,n.J)({anchorRef:b,contentRef:w,onCurrentPlacementChange:C},u))}})}})}})}function Ri(e){let{direction:t}=nt();return(0,n.L)(Bi,(0,n.J)({get placement(){return"rtl"===t()?"left-start":"right-start"},flip:!0},e))}var Vi=(e,t)=>"ltr"===e?["horizontal"===t?"ArrowLeft":"ArrowUp"]:["horizontal"===t?"ArrowRight":"ArrowDown"];function Hi(e){let t=fi(),r=vi(),[i,o]=(0,n.Q)(e,["onFocusOutside","onKeyDown"]),{direction:l}=nt();return(0,n.L)($i,(0,n.J)({onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault()},onFocusOutside:e=>{i.onFocusOutside?.(e);let r=e.target;le(t.triggerRef(),r)||t.close()},onKeyDown:e=>{pe(e,i.onKeyDown);let n=le(e.currentTarget,e.target),o=Vi(l(),r.orientation()).includes(e.key),a=null!=t.parentMenuContext();n&&o&&a&&(t.close(),ve(t.triggerRef()))}},o))}var Gi=["Enter"," "],Ui=(e,t)=>"ltr"===e?[...Gi,"horizontal"===t?"ArrowRight":"ArrowDown"]:[...Gi,"horizontal"===t?"ArrowLeft":"ArrowUp"];function Wi(e){let t,r=vi(),i=fi(),o=Me({id:r.generateId(`sub-trigger-${(0,n.G)()}`)},e),[l,a]=(0,n.Q)(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),s=null,d=()=>{s&&window.clearTimeout(s),s=null},{direction:u}=nt(),c=()=>l.id,g=()=>{let e=i.parentMenuContext();if(null==e)throw Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return e.listState().selectionManager()},f=ct({key:c,selectionManager:g,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>l.disabled},(()=>
2t)),p=e=>{pe(e,l.onClick),!i.isOpen()&&!l.disabled&&i.open(!0)},h=e=>{pe(e,l.onKeyDown),!e.repeat&&(l.disabled||Ui(u(),r.orientation()).includes(e.key)&&(e.stopPropagation(),e.preventDefault(),g().setFocused(!1),g().setFocusedKey(void 0),i.isOpen()||i.open("first"),i.focusContent(),i.listState().selectionManager().setFocused(!0),i.listState().selectionManager().setFocusedKey(i.listState().collection().getFirstKey())))};return(0,n.B)((()=>{if(null==i.registerItemToParentDomCollection)throw Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let e=i.registerItemToParentDomCollection({ref:()=>t,type:"item",key:c(),textValue:l.textValue??t?.textContent??"",disabled:l.disabled??!1});(0,n.X)(e)})),(0,n.B)((0,n.Y)((()=>i.parentMenuContext()?.pointerGraceTimeoutId()),(e=>{(0,n.X)((()=>{window.clearTimeout(e),i.parentMenuContext()?.setPointerGraceIntent(null)}))}))),(0,n.B)((()=>(0,n.X)(i.registerTriggerId(l.id)))),(0,n.X)((()=>{d()})),(0,n.L)(Be,(0,n.J)({as:"div",ref(e){let r=R((e=>{i.setTriggerRef(e),t=e}),l.ref);"function"==typeof r&&r(e)},get id(){return l.id},role:"menuitem",get tabIndex(){return f.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return i.isOpen()},get"aria-controls"(){return(0,n.C)((()=>!!i.isOpen()))()?i.contentId():void 0},get"aria-disabled"(){return l.disabled},get"data-key"(){return f.dataKey()},get"data-highlighted"(){return g().focusedKey()===c()?"":void 0},get"data-disabled"(){return l.disabled?"":void 0},get onPointerDown(){return he([l.onPointerDown,f.onPointerDown])},get onPointerUp(){return he([l.onPointerUp,f.onPointerUp])},get onClick(){return he([p,f.onClick])},get onKeyDown(){return he([h,f.onKeyDown])},get onMouseDown(){return he([l.onMouseDown,f.onMouseDown])},get onFocus(){return he([l.onFocus,f.onFocus])},onPointerMove:e=>{if(pe(e,l.onPointerMove),"mouse"!==e.pointerType)return;let t=i.parentMenuContext();if(t?.onItemEnter(e),!e.defaultPrevented){if(l.disabled)return void t?.onItemLeave(e);!i.isOpen()&&!s&&(i.parentMenuContext()?.setPointerGraceIntent(null),s=window.setTimeout((()=>{i.open(!1),d()}),100)),t?.onItemEnter(e),e.defaultPrevented||(i.listState().selectionManager().isFocused()&&(i.listState().selectionManager().setFocused(!1),i.listState().selectionManager().setFocusedKey(void 0)),ve(e.currentTarget),t?.listState().selectionManager().setFocused(!0),t?.listState().selectionManager().setFocusedKey(c()))}},onPointerLeave:e=>{if(pe(e,l.onPointerLeave),"mouse"!==e.pointerType)return;d();let t=i.parentMenuContext(),r=i.contentRef();if(r){t?.setPointerGraceIntent({area:Ki(i.currentPlacement(),e,r),side:i.currentPlacement().split("-")[0]}),window.clearTimeout(t?.pointerGraceTimeoutId());let n=window.setTimeout((()=>{t?.setPointerGraceIntent(null)}),300);t?.setPointerGraceTimeoutId(n)}else{if(t?.onTriggerLeave(e),e.defaultPrevented)return;t?.setPointerGraceIntent(null)}t?.onItemLeave(e)}},(()=>i.dataset()),a))}function ji(e){let t=si(),r=Me({id:`menu-${(0,n.G)()}`,modal:!0},e),[i,o]=(0,n.Q)(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),l=pn({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:e=>i.onOpenChange?.(e)}),a={isModal:()=>i.modal??!0,preventScroll:()=>i.preventScroll??a.isModal(),forceMount:()=>i.forceMount??!1,generateId:oe((()=>i.id)),value:()=>i.value,orientation:()=>i.orientation??t?.orientation()??"horizontal"};return(0,n.L)(yi.Provider,{value:a,get children(){return(0,n.L)(Bi,(0,n.J)({get open(){return l.isOpen()},get onOpenChange(){return l.setIsOpen}},o))}})}function Ni(e){let t,r=Me({orientation:"horizontal"},e),[i,o]=(0,n.Q)(r,["ref","orientation"]),l=Ie((()=>t),(()=>"hr"));return(0,n.L)(Be,(0,n.J)({as:"hr",ref(e){let r=R((e=>t=e),i.ref);"function"==typeof r&&r(e)},get role(){return"hr"===l()?void 0:"separator"},get"aria-orientation"(){return"vertical"===i.orientation?"vertical":void 0},get"data-orientation"(){return i.orientation}},o))}Ve({},{Root:()=>Ni,Separator:()=>Qi});var Qi=Ni,Xi={};function _i(e){let t=vi(),r=fi(),[i,o]=(0,n.Q)(e,["onCloseAutoFocus","onInteractOutside"]),l=!1;return(0,n.L)(Ci,(0,n.J)({onCloseAutoFocus:e=>{i.onCloseAutoFocus?.(e),l||ve(r.triggerRef()),l=!1,e.preventDefault()},onInteractOutside:e=>{i.onInteractOutside?.(e),(!t.isModal()||e.detail.isContextMenu)&&(l=!0)}},o))}function Ji(e){let t=Me({id:`dropdownmenu-${(0,n.G)()}`},e);return(0,n.L)(ji,t)}Ve(Xi,{Arrow:()=>Xr,CheckboxItem:()=>mi,Content:()=>_i,DropdownMenu:()=>Zi,Group:()=>qi,GroupLabel:()=>Ei,Icon:()=>Ti,Item:()=>Mi,ItemDescription:()=>Oi,ItemIndicator:()=>Fi,ItemLabel:()=>Di,Portal:()=>zi,RadioGroup:()=>Pi,RadioItem:()=>Ii,Root:()=>Ji,Separator:()=>Ni,Sub:()=>Ri,SubContent:()=>Hi,SubTrigger:()=>Wi,Trigger:()=>Si});var Zi=Object.assign(Ji,{Arrow:Xr,CheckboxItem:mi,Content:_i,Group:qi,GroupLabel:Ei,Icon:Ti,Item:Mi,ItemDescription:Oi,ItemIndicator:Fi,ItemLabel:Di,Portal:zi,RadioGroup:Pi,RadioItem:Ii,Separator:Ni,Sub:Ri,SubContent:Hi,SubTrigger:Wi,Trigger:Si});const Yi={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf
20",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}
2`,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}};var eo=(0,n.O)('<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>'),to=(0,n.O)('<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>'),ro=(0,n.O)('<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>'),no=(0,n.O)('<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>'),io=(0,n.O)('<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>'),oo=(0,n.O)('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg style=transform:rotate(90deg)><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>'),lo=(0,n.O)('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg style=transform:rotate(-90deg)><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>'),ao=(0,n.O)('<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>'),so=(0,n.O)('<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>'),uo=(0,n.O)('<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>'),co=(0,n.O)('<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">'),go=(0,n.O)('<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">'),fo=(0,n.O)('<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
217.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.7795
25 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>'),po=(0,n.O)('<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>'),ho=(0,n.O)('<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>'),yo=(0,n.O)('<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>'),vo=(0,n.O)('<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>'),bo=(0,n.O)('<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>'),mo=(0,n.O)('<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>'),wo=(0,n.O)('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg>
2<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>'),xo=(0,n.O)('<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>'),ko=(0,n.O)('<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>'),So=(0,n.O)('<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>'),$o=(0,n.O)('<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>'),Co=(0,n.O)('<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=#00
27782 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>');function Lo(){return eo()}function qo(){return to()}function Eo(){return ro()}function To(){return no()}function Mo(){return io()}function Oo(){return oo()}function Fo(){return lo()}function Do(){return ao()}function zo(){return so()}function Ao(){return uo()}function Po(){return co()}function Io(){return go()}function Ko(){return fo()}function Bo(){return po()}function Ro(){return ho()}function Vo(){return yo()}function Ho(e){return(()=>{var t=vo(),r=t.firstChild;return(0,n.H)((()=>
2(0,n.T)(r,"stroke","dark"===e.theme?"#12B76A":"#027A48"))),t})()}function Go(){return bo()}function Uo(){return mo()}function Wo(e){return[(0,n.L)(n.P,{get when(){return e.checked},get children(){var t=vo(),r=t.firstChild;return(0,n.H)((()=>(0,n.T)(r,"stroke","dark"===e.theme?"#9B8AFB":"#6938EF"))),t}}),(0,n.L)(n.P,{get when(){return!e.checked},get children(){var t=wo(),r=t.firstChild;return(0,n.H)((()=>(0,n.T)(r,"stroke","dark"===e.theme?"#9B8AFB":"#6938EF"))),t}})]}function jo(){return xo()}function No(){return ko()}function Qo(){return So()}function Xo(){return $o()}function _o(){let e=(0,n.G)();return(()=>{var t=Co(),r=t.firstChild,i=r.nextSibling,o=i.nextSibling,l=o.firstChild,a=o.nextSibling,s=a.firstChild,d=a.nextSibling,u=d.nextSibling,c=u.firstChild,g=u.nextSibling,f=g.firstChild,p=g.nextSibling,h=p.nextSibling,y=h.firstChild,v=h.nextSibling,b=v.firstChild,m=v.nextSibling,w=m.nextSibling,x=w.firstChild,k=w.nextSibling,S=k.firstChild,$=k.nextSibling,C=$.nextSibling,L=C.firstChild,q=C.nextSibling,E=q.firstChild,T=q.nextSibling,M=T.nextSibling,O=M.firstChild,F=M.nextSibling,D=F.firstChild,z=F.nextSibling,A=z.nextSibling,P=A.firstChild,I=A.nextSibling,K=I.firstChild,B=I.nextSibling,R=B.firstChild.nextSibling.nextSibling.nextSibling,V=R.nextSibling,H=B.nextSibling,G=H.firstChild,U=H.nextSibling,W=U.firstChild,j=U.nextSibling,N=j.firstChild,Q=N.nextSibling,X=Q.nextSibling.firstChild,_=X.nextSibling,J=_.nextSibling,Z=J.nextSibling,Y=Z.nextSibling,ee=Y.nextSibling,te=ee.nextSibling,re=te.nextSibling,ne=re.nextSibling,ie=ne.nextSibling,oe=ie.nextSibling,le=oe.nextSibling,ae=j.nextSibling,se=ae.firstChild,de=ae.nextSibling,ue=de.firstChild,ce=de.nextSibling,ge=ce.firstChild,fe=ge.nextSibling,pe=ce.nextSibling,he=pe.firstChild,ye=pe.nextSibling,ve=ye.firstChild,be=ye.nextSibling,me=be.firstChild,we=me.nextSibling,xe=we.nextSibling,ke=xe.nextSibling,Se=ke.nextSibling,$e=Se.nextSibling,Ce=$e.nextSibling,Le=Ce.nextSibling,qe=Le.nextSibling,Ee=qe.nextSibling,Te=Ee.nextSibling,Me=Te.nextSibling,Oe=Me.nextSibling,Fe=Oe.nextSibling,De=Fe.nextSibling,ze=De.nextSibling,Ae=ze.nextSibling,Pe=Ae.nextSibling;return(0,n.T)(r,"id",`a-${e}`),(0,n.T)(i,"fill",`url(#a-${e})`),(0,n.T)(l,"id",`am-${e}`),(0,n.T)(a,"id",`b-${e}`),(0,n.T)(s,"filter",`url(#am-${e})`),(0,n.T)(d,"mask",`url(#b-${e})`),(0,n.T)(c,"id",`ah-${e}`),(0,n.T)(g,"id",`k-${e}`),(0,n.T)(f,"filter",`url(#ah-${e})`),(0,n.T)(p,"mask",`url(#k-${e})`),(0,n.T)(y,"id",`ae-${e}`),(0,n.T)(v,"id",`j-${e}`),(0,n.T)(b,"filter",`url(#ae-${e})`),(0,n.T)(m,"mask",`url(#j-${e})`),(0,n.T)(x,"id",`ai-${e}`),(0,n.T)(k,"id",`i-${e}`),(0,n.T)(S,"filter",`url(#ai-${e})`),(0,n.T)($,"mask",`url(#i-${e})`),(0,n.T)(L,"id",`aj-${e}`),(0,n.T)(q,"id",`h-${e}`),(0,n.T)(E,"filter",`url(#aj-${e})`),(0,n.T)(T,"mask",`url(#h-${e})`),(0,n.T)(O,"id",`ag-${e}`),(0,n.T)(F,"id",`g-${e}`),(0,n.T)(D,"filter",`url(#ag-${e})`),(0,n.T)(z,"mask",`url(#g-${e})`),(0,n.T)(P,"id",`af-${e}`),(0,n.T)(I,"id",`f-${e}`),(0,n.T)(K,"filter",`url(#af-${e})`),(0,n.T)(B,"mask",`url(#f-${e})`),(0,n.T)(R,"id",`m-${e}`),(0,n.T)(V,"fill",`url(#m-${e})`),(0,n.T)(G,"id",`ak-${e}`),(0,n.T)(U,"id",`e-${e}`),(0,n.T)(W,"filter",`url(#ak-${e})`),(0,n.T)(j,"mask",`url(#e-${e})`),(0,n.T)(N,"id",`n-${e}`),(0,n.T)(Q,"fill",`url(#n-${e})`),(0,n.T)(X,"id",`r-${e}`),(0,n.T)(_,"fill",`url(#r-${e})`),(0,n.T)(J,"id",`s-${e}`),(0,n.T)(Z,"fill",`url(#s-${e})`),(0,n.T)(Y,"id",`q-${e}`),(0,n.T)(ee,"fill",`url(#q-${e})`),(0,n.T)(te,"id",`p-${e}`),(0,n.T)(re,"fill",`url(#p-${e})`),(0,n.T)(ne,"id",`o-${e}`),(0,n.T)(ie,"fill",`url(#o-${e})`),(0,n.T)(oe,"id",`l-${e}`),(0,n.T)(le,"fill",`url(#l-${e})`),(0,n.T)(se,"id",`al-${e}`),(0,n.T)(de,"id",`d-${e}`),(0,n.T)(ue,"filter",`url(#al-${e})`),(0,n.T)(ce,"mask",`url(#d-${e})`),(0,n.T)(ge,"id",`u-${e}`),(0,n.T)(fe,"fill",`url(#u-${e})`),(0,n.T)(he,"id",`ad-${e}`),(0,n.T)(ye,"id",`c-${e}`),(0,n.T)(ve,"filter",`url(#ad-${e})`),(0,n.T)(be,"mask",`url(#c-${e})`),(0,n.T)(me,"id",`t-${e}`),(0,n.T)(we,"fill",`url(#t-${e})`),(0,n.T)(xe,"id",`v-${e}`),(0,n.T)(ke,"stroke",`url(#v-${e})`),(0,n.T)(Se,"id",`aa-${e}`),(0,n.T)($e,"stroke",`url(#aa-${e})`),(0,n.T)(Ce,"id",`w-${e}`),(0,n.T)(Le,"stroke",`url(#w-${e})`),(0,n.T)(qe,"id",`ac-${e}`),(0,n.T)(Ee,"stroke",`url(#ac-${e})`),(0,n.T)(Te,"id",`ab-${e}`),(0,n.T)(Me,"stroke",`url(#ab-${e})`),(0,n.T)(Oe,"id",`y-${e}`),(0,n.T)(Fe,"stroke",`url(#y-${e})`),(0,n.T)(De,"id",`x-${e}`),(0,n.T)(ze,"stroke",`url(#x-${e})`),(0,n.T)(Ae,"id",`z-${e}`),(0,n.T)(Pe,"stroke",`url(#z-${e})`),t})()}const Jo=Object.keys(n.f)[0],Zo=Object.keys(n.u)[0],Yo=(0,n.z)({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});function el(){return(0,n.et)(Yo)}
2var tl=class extends Error{};const rl=(0,n.z)(void 0),nl=()=>(0,n.V)((()=>{let e=(0,n.et)(rl);if(!e)throw Error("usePiPWindow must be used within a PiPProvider");return e()})),il=(0,n.z)((()=>"dark"));function ol(){return(0,n.et)(il)}var ll=(0,n.O)('<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>'),al=(0,n.O)('<button title="Copy object to clipboard">'),sl=(0,n.O)('<button title="Remove all items"aria-label="Remove all items">'),dl=(0,n.O)('<button title="Delete item"aria-label="Delete item">'),ul=(0,n.O)('<button title="Toggle value"aria-label="Toggle value">'),cl=(0,n.O)('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),gl=(0,n.O)("<div>"),fl=(0,n.O)("<div><button> <span></span> <span> "),pl=(0,n.O)("<input>"),hl=(0,n.O)("<span>"),yl=(0,n.O)("<div><label>:"),vl=(0,n.O)("<div><div><button> [<!>...<!>]");const bl=e=>{let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?ql(r):Ll(r)));return(()=>{var t=ll();return(0,n.H)((()=>(0,n.y)(t,K(i().expander,r` 3 transform: rotate(${e.expanded?90:0}deg); 4 `,e.expanded&&r` 5 & svg { 6 top: -1px; 7 } 8 `)))),t})()},ml=e=>{let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?ql(r):Ll(r))),[o,l]=(0,n.W)("NoCopy");return(()=>{var r=al();return(0,n.v)(r,"click","NoCopy"===o()?()=>{navigator.clipboard.writeText((0,n.h)(e.value)).then((()=>{l("SuccessCopy"),setTimeout((()=>{l("NoCopy")}),1500)}),(e=>{l("ErrorCopy"),setTimeout((()=>{l("NoCopy")}),1500)}))}:void 0,!0),(0,n.S)(r,(0,n.L)(n.F,{get children(){return[(0,n.L)(n.N,{get when(){return"NoCopy"===o()},get children(){return(0,n.L)(Ro,{})}}),(0,n.L)(n.N,{get when(){return"SuccessCopy"===o()},get children(){return(0,n.L)(Ho,{get theme(){return t()}})}}),(0,n.L)(n.N,{get when(){return"ErrorCopy"===o()},get children(){return(0,n.L)(Go,{})}})]}})),(0,n.H)((e=>{var t=i().actionButton,l=""+("NoCopy"===o()?"Copy object to clipboard":"SuccessCopy"===o()?"Object copied to clipboard":"Error copying object to clipboard");return t!==e.e&&(0,n.y)(r,e.e=t),l!==e.t&&(0,n.T)(r,"aria-label",e.t=l),e}),{e:void 0,t:void 0}),r})()},wl=e=>{let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?ql(r):Ll(r))),o=el().client;return(()=>{var t=sl();return t.$$click=()=>{let t=e.activeQuery.state.data,r=(0,n.p)(t,e.dataPath,[]);o.setQueryData(e.activeQuery.queryKey,r)},(0,n.S)(t,(0,n.L)(Uo,{})),(0,n.H)((()=>(0,n.y)(t,i().actionButton))),t})()},xl=e=>{let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?ql(r):Ll(r))),o=el().client;return(()=>{var t=dl();return t.$$click=()=>{let t=e.activeQuery.state.data,r=(0,n.n)(t,e.dataPath);o.setQueryData(e.activeQuery.queryKey,r)},(0,n.S)(t,(0,n.L)(qo,{})),(0,n.H)((()=>(0,n.y)(t,K(i().actionButton)))),t})()},kl=e=>{let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?ql(r):Ll(r))),o=el().client;return(()=>{var l=ul();return l.$$click=()=>{let t=e.activeQuery.state.data,r=(0,n.p)(t,e.dataPath,!e.value);o.setQueryData(e.activeQuery.queryKey,r)},(0,n.S)(l,(0,n.L)(Wo,{get theme(){return t()},get checked(){return e.value}})),(0,n.H)((()=>(0,n.y)(l,K(i().actionButton,r` 9 width: ${Yi.size[3.5]}; 10 height: ${Yi.size[3.5]}; 11 `)))),l})()};function Sl(e){return Symbol.iterator in e}function $l(e){let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?ql(r):Ll(r))),o=el().client,[l,a]=(0,n.W)((e.defaultExpanded||[]).includes(e.label)),s=()=>a((e=>!e)),[d,u]=(0,n.W)([]),c=(0,n.V)((()=>Array.isArray(e.value)?e.value.map(((e,t)=>({label:t.toString(),value:e}))):null!==e.value&&"object"==typeof e.value&&Sl(e.value)&&"function"==typeof e.value[Symbol.iterator]?e.value instanceof Map?Array.from(e.value,(([e,t])=>({label:e,value:t}))):Array.from(e.value,((e,t)=>
11({label:t.toString(),value:e}))):"object"==typeof e.value&&null!==e.value?Object.entries(e.value).map((([e,t])=>({label:e,value:t}))):[])),g=(0,n.V)((()=>Array.isArray(e.value)?"array":null!==e.value&&"object"==typeof e.value&&Sl(e.value)&&"function"==typeof e.value[Symbol.iterator]?"Iterable":"object"==typeof e.value&&null!==e.value?"object":typeof e.value)),f=(0,n.V)((()=>function(e,t){if(t<1)return[];let r=0,n=[];for(;r<e.length;)n.push(e.slice(r,r+t)),r+=t;return n}(c(),100))),p=e.dataPath??[],h=(0,n.G)();return(()=>{var t=gl();return(0,n.S)(t,(0,n.L)(n.P,{get when(){return f().length},get children(){return[(()=>{var t=fl(),r=t.firstChild,o=r.firstChild,a=o.nextSibling,d=a.nextSibling.nextSibling,u=d.firstChild;return r.$$click=()=>s(),(0,n.S)(r,(0,n.L)(bl,{get expanded(){return l()}}),o),(0,n.S)(a,(()=>e.label)),(0,n.S)(d,(()=>"iterable"===String(g()).toLowerCase()?"(Iterable) ":""),u),(0,n.S)(d,(()=>c().length),u),(0,n.S)(d,(()=>c().length>1?"items":"item"),null),(0,n.S)(t,(0,n.L)(n.P,{get when(){return e.editable},get children(){var t=gl();return(0,n.S)(t,(0,n.L)(ml,{get value(){return e.value}}),null),(0,n.S)(t,(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!!e.itemsDeletable))()&&void 0!==e.activeQuery},get children(){return(0,n.L)(xl,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),(0,n.S)(t,(0,n.L)(n.P,{get when(){return(0,n.C)((()=>"array"===g()))()&&void 0!==e.activeQuery},get children(){return(0,n.L)(wl,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),(0,n.S)(t,(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!!e.onEdit))()&&!(0,n.m)(e.value).meta},get children(){var t=cl();return t.$$click=()=>{e.onEdit?.()},(0,n.S)(t,(0,n.L)(Vo,{})),(0,n.H)((()=>(0,n.y)(t,i().actionButton))),t}}),null),(0,n.H)((()=>(0,n.y)(t,i().actions))),t}}),null),(0,n.H)((e=>{var o=i().expanderButtonContainer,a=i().expanderButton,s=l()?"true":"false",u=i().info;return o!==e.e&&(0,n.y)(t,e.e=o),a!==e.t&&(0,n.y)(r,e.t=a),s!==e.a&&(0,n.T)(r,"aria-expanded",e.a=s),u!==e.o&&(0,n.y)(d,e.o=u),e}),{e:void 0,t:void 0,a:void 0,o:void 0}),t})(),(0,n.L)(n.P,{get when(){return l()},get children(){return[(0,n.L)(n.P,{get when(){return 1===f().length},get children(){var t=gl();return(0,n.S)(t,(0,n.L)(_,{get each(){return c()},by:e=>e.label,children:t=>(0,n.L)($l,{get defaultExpanded(){return e.defaultExpanded},get label(){return t().label},get value(){return t().value},get editable(){return e.editable},get dataPath(){return[...p,t().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return"array"===g()||"Iterable"===g()||"object"===g()}})})),(0,n.H)((()=>(0,n.y)(t,i().subEntry))),t}}),(0,n.L)(n.P,{get when(){return f().length>1},get children(){var t=gl();return(0,n.S)(t,(0,n.L)(n.M,{get each(){return f()},children:(t,r)=>(()=>{var o=vl(),l=o.firstChild,a=l.firstChild,s=a.firstChild,c=s.nextSibling,g=c.nextSibling.nextSibling;return g.nextSibling,a.$$click=()=>u((e=>e.includes(r)?e.filter((e=>e!==r)):[...e,r])),(0,n.S)(a,(0,n.L)(bl,{get expanded(){return d().includes(r)}}),s),(0,n.S)(a,100*r,c),(0,n.S)(a,100*r+100-1,g),(0,n.S)(l,(0,n.L)(n.P,{get when(){return d().includes(r)},get children(){var r=gl();return(0,n.S)(r,(0,n.L)(_,{get each(){return t()},by:e=>e.label,children:t=>(0,n.L)($l,{get defaultExpanded(){return e.defaultExpanded},get label(){return t().label},get value(){return t().value},get editable(){return e.editable},get dataPath(){return[...p,t().label]},get activeQuery(){return e.activeQuery}})})),(0,n.H)((()=>(0,n.y)(r,i().subEntry))),r}}),null),(0,n.H)((e=>{var t=i().entry,r=i().expanderButton;return t!==e.e&&(0,n.y)(l,e.e=t),r!==e.t&&(0,n.y)(a,e.t=r),e}),{e:void 0,t:void 0}),o})()})),(0,n.H)((()=>(0,n.y)(t,i().subEntry))),t}})]}})]}}),null),(0,n.S)(t,(0,n.L)(n.P,{get when(){return 0===f().length},get children(){var t=yl(),r=t.firstChild,l=r.firstChild;return(0,n.T)(r,"for",h),(0,n.S)(r,(()=>e.label),l),(0,n.S)(t,(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!(!e.editable||void 0===e.activeQuery)))()&&("string"===g()||"number"===g()||"boolean"===g())},get fallback(){return(()=>{var t=hl();return(0,n.S)(t,(()=>(0,n.r)(e.value))),(0,n.H)((()=>(0,n.y)(t,i().value))),t})()},get children(){return[(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!(!e.editable||void 0===e.activeQuery)))()&&("string"===g()||"number"===g())},get children(){var t=pl();return t.addEventListener("change",(t=>{let r=e.activeQuery.state.data,i=(0,n.p)(r,p,"number"===g()?t.target.valueAsNumber:t.target.value);o.setQueryData(e.activeQuery.queryKey,i)})),(0,n.T)(t,"id",h),(0,n.H)((e=>{var r="number"===g()?"number":"text",o=K(i().value,i().editableInput);return r!==e.e&&(0,n.T)(t,"type",e.e=r),o!==e.t&&(0,n.y)(t,e.t=o),e}),{e:void 0,t:void 0}),(0,n.H)((()=>t.value=e.value)),t}}),(0,n.L)(n.P,{get when(){return"boolean"===g()},get children(){var t=hl();return(0,n.S)(t,(0,n.L)(kl,{get activeQuery(){return e.activeQuery},dataPath:p,get value(){return e.value}}),null),(0,n.S)(t,(()=>(0,n.r)(e.value)),null),(0,n.H)((()=>(0,n.y)(t,K(i().value,i().actions,i().editableInput)))),t}}
11)]}}),null),(0,n.S)(t,(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!(!e.editable||!e.itemsDeletable)))()&&void 0!==e.activeQuery},get children(){return(0,n.L)(xl,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),(0,n.H)((e=>{var o=i().row,l=i().label;return o!==e.e&&(0,n.y)(t,e.e=o),l!==e.t&&(0,n.y)(r,e.t=l),e}),{e:void 0,t:void 0}),t}}),null),(0,n.H)((()=>(0,n.y)(t,i().entry))),t})()}const Cl=(e,t)=>{let{colors:r,font:n,size:i,border:o}=Yi,l=(t,r)=>"light"===e?t:r;return{entry:t` 12 & * { 13 font-size: ${n.size.xs}; 14 font-family: 15 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 16 'Liberation Mono', 'Courier New', monospace; 17 } 18 position: relative; 19 outline: none; 20 word-break: break-word; 21 `,subEntry:t` 22 margin: 0 0 0 0.5em; 23 padding-left: 0.75em; 24 border-left: 2px solid ${l(r.gray[300],r.darkGray[400])}; 25 /* outline: 1px solid ${r.teal[400]}; */ 26 `,expander:t` 27 & path { 28 stroke: ${r.gray[400]}; 29 } 30 & svg { 31 width: ${i[3]}; 32 height: ${i[3]}; 33 } 34 display: inline-flex; 35 align-items: center; 36 transition: all 0.1s ease; 37 /* outline: 1px solid ${r.blue[400]}; */ 38 `,expanderButtonContainer:t` 39 display: flex; 40 align-items: center; 41 line-height: ${i[4]}; 42 min-height: ${i[4]}; 43 gap: ${i[2]}; 44 `,expanderButton:t` 45 cursor: pointer; 46 color: inherit; 47 font: inherit; 48 outline: inherit; 49 height: ${i[5]}; 50 background: transparent; 51 border: none; 52 padding: 0; 53 display: inline-flex; 54 align-items: center; 55 gap: ${i[1]}; 56 position: relative; 57 /* outline: 1px solid ${r.green[400]}; */ 58 59 &:focus-visible { 60 border-radius: ${o.radius.xs}; 61 outline: 2px solid ${r.blue[800]}; 62 } 63 64 & svg { 65 position: relative; 66 left: 1px; 67 } 68 `,info:t` 69 color: ${l(r.gray[500],r.gray[500])}; 70 font-size: ${n.size.xs}; 71 margin-left: ${i[1]}; 72 /* outline: 1px solid ${r.yellow[400]}; */ 73 `,label:t` 74 color: ${l(r.gray[700],r.gray[300])}; 75 white-space: nowrap; 76 `,value:t` 77 color: ${l(r.purple[600],r.purple[400])}; 78 flex-grow: 1; 79 `,actions:t` 80 display: inline-flex; 81 gap: ${i[2]}; 82 align-items: center; 83 `,row:t` 84 display: inline-flex; 85 gap: ${i[2]}; 86 width: 100%; 87 margin: ${i[.25]} 0px; 88 line-height: ${i[4.5]}; 89 align-items: center; 90 `,editableInput:t` 91 border: none; 92 padding: ${i[.5]} ${i[1]} ${i[.5]} ${i[1.5]}; 93 flex-grow: 1; 94 border-radius: ${o.radius.xs}; 95 background-color: ${l(r.gray[200],r.darkGray[500])}; 96 97 &:hover { 98 background-color: ${l(r.gray[300],r.darkGray[600])}; 99 } 100 `,actionButton:t` 101 background-color: transparent; 102 color: ${l(r.gray[500],r.gray[500])}; 103 border: none; 104 display: inline-flex; 105 padding: 0px; 106 align-items: center; 107 justify-content: center; 108 cursor: pointer; 109 width: ${i[3]}; 110 height: ${i[3]}; 111 position: relative; 112 z-index: 1; 113 114 &:hover svg { 115 color: ${l(r.gray[600],r.gray[400])}; 116 } 117 118 &:focus-visible { 119 border-radius: ${o.radius.xs}; 120 outline: 2px solid ${r.blue[800]}; 121 outline-offset: 2px; 122 } 123 `}},Ll=e=>Cl("light",e),ql=e=>Cl("dark",e);(0,n.x)(["click"]);var El=(0,n.O)('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),Tl=(0,n.O)("<div>"),Ml=(0,n.O)("<div style=--tsqd-font-size:16px;max-height:100vh;height:100vh;width:100vw>"),Ol=(0,n.O)("<div style=--tsqd-font-size:16px>"),Fl=(0,n.O)('<aside aria-label="Tanstack query devtools"><div role=separator aria-label="Resize devtools panel"tabindex=0></div><button aria-label="Close tanstack query devtools">'),Dl=(0,n.O)('<select name=tsqd-queries-filter-sort aria-label="Sort queries by">'),zl=(0,n.O)('<select name=tsqd-mutations-filter-sort aria-label="Sort mutations by">'),Al=(0,n.O)("<span>Asc"),Pl=(0,n.O)("<span>Desc"),Il=(0,n.O)('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Kl=(0,n.O)("<div>Settings"),Bl=(0,n.O)("<span>Position"),Rl=(0,n.O)("<span>Top"),Vl=(0,n.O)("<span>Bottom"),Hl=(0,n.O)("<span>Left"),Gl=(0,n.O)("<span>Right"),Ul=(0,n.O)("<span>Theme"),Wl=(0,n.O)("<span>Light"),jl=(0,n.O)("<span>Dark"),Nl=(0,n.O)("<span>System"),Ql=(0,n.O)("<span>
123Disabled Queries"),Xl=(0,n.O)("<span>Show"),_l=(0,n.O)("<span>Hide"),Jl=(0,n.O)("<div><div class=tsqd-queries-container>"),Zl=(0,n.O)("<div><div class=tsqd-mutations-container>"),Yl=(0,n.O)('<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>'),ea=(0,n.O)("<option>Sort by "),ta=(0,n.O)("<div class=tsqd-query-disabled-indicator aria-hidden=true>disabled"),ra=(0,n.O)("<div class=tsqd-query-static-indicator aria-hidden=true>static"),na=(0,n.O)("<button><div></div><code class=tsqd-query-hash>"),ia=(0,n.O)("<div role=tooltip id=tsqd-status-tooltip>"),oa=(0,n.O)("<span>"),la=(0,n.O)("<button><span aria-hidden=true></span><span>"),aa=(0,n.O)("<button><span aria-hidden=true></span> Error"),sa=(0,n.O)('<div><span aria-hidden=true></span>Trigger Error<select aria-label="Select error type to trigger"><option value disabled selected>'),da=(0,n.O)('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),ua=(0,n.O)('<form><textarea name=data aria-label="Edit query data as JSON"></textarea><div><span></span><div><button type=button>Cancel</button><button>Save'),ca=(0,n.O)('<div><div role=heading aria-level=2>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span role=status aria-live=polite></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 role=heading aria-level=2>Actions</div><div><button><span aria-hidden=true></span>Refetch</button><button><span aria-hidden=true></span>Invalidate</button><button><span aria-hidden=true></span>Reset</button><button><span aria-hidden=true></span>Remove</button><button><span aria-hidden=true></span> Loading</button></div><div role=heading aria-level=2>Data </div><div role=heading aria-level=2>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),ga=(0,n.O)("<option>"),fa=(0,n.O)('<div><div role=heading aria-level=2>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span role=status aria-live=polite></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div role=heading aria-level=2>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div role=heading aria-level=2>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div role=heading aria-level=2>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div role=heading aria-level=2>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">');const[pa,ha]=(0,n.W)(null),[ya,va]=(0,n.W)(null),[ba,ma]=(0,n.W)(0),[wa,xa]=(0,n.W)(!1),ka=e=>{let t=nl(),r=ol(),i=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,o=(0,n.V)((()=>"dark"===r()?Va(i):Ra(i)));return(0,n.B)((()=>{let e=t().pipWindow,r=()=>{e&&ma(e.innerWidth)};e&&(e.addEventListener("resize",r),r()),(0,n.X)((()=>{e&&e.removeEventListener("resize",r)}))})),(()=>{var t=Ml();return(0,n.S)(t,(()=>e.children)),(0,n.H)((()=>(0,n.y)(t,K(o().panel,(()=>{let{colors:e}=Yi,t=(e,t)=>"dark"===r()?t:e;return ba()<796?i` 124 flex-direction: column; 125 background-color: ${t(e.gray[300],e.gray[600])}; 126 `:i` 127 flex-direction: row; 128 background-color: ${t(e.gray[200],e.darkGray[900])}; 129 `})(),{[i` 130 min-width: min-content; 131 `]:ba()<700},"tsqd-main-panel")))),t})()},Sa=e=>{let t,r=ol(),i=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,o=(0,n.V)((()=>"dark"===r()?Va(i):Ra(i)));(0,n.Z)((()=>{t.focus()}));let l,[a,s]=(0,n.W)(!1),d=(0,n.V)((()=>e.localStore.position||el().position||"bottom")),u=t=>{let r=t.currentTarget.parentElement;if(!r)return;s(!0);let{height:i,width:o}=r.getBoundingClientRect(),l=t.clientX,u=t.clientY,c=0,g=(0,n.t)(3.5),f=(0,n.t)(12),p=t=>{if(t.preventDefault(),"left"===d()||"right"===d()){let n="right"===d()?l-t.clientX:t.clientX-l;c=Math.round(o+n),c<f&&(c=f),e.setLocalStore("width",String(Math.round(c)));let i=r.getBoundingClientRect().width;Number(e.localStore.width)<i&&e.setLocalStore("width",String(i))}else{let r="bottom"===d()?u-t.clientY:t.clientY-u;c=Math.round(i+r),c<g&&(c=g,ha(null)),e.setLocalStore("height",String(Math.round(c)))}},h=()=>{a()&&s(!1),document.removeEventListener("mousemove",p,!1),document.removeEventListener("mouseup",h,!1)};document.addEventListener("mousemove",p,!1),document.addEventListener("mouseup",h,!1)};(0,n.Z)((()=>{Z(l,(({width:e},t)=>{t===l&&ma(e)}))})),(0,n.B)((()=>{let t=l.parentElement?.parentElement?.parentElement;if(!t)return;let r=e.localStore.position||"bottom",i=(0,n.l)("padding",r),o="left"===e.localStore.position||"right"===e.localStore.position,a=(({padding:e,paddingTop:t,paddingBottom:r,paddingLeft:n,paddingRight:i})=>({padding:e,paddingTop:t,paddingBottom:r,paddingLeft:n,paddingRight:i}))(t.style);t.style[i]=`${o?e.localStore.width:e.localStore.height}px`,(0,n.X)((()=>
131{Object.entries(a).forEach((([e,r])=>{t.style[e]=r}))}))}));let c=()=>{let{colors:e}=Yi,t=(e,t)=>"dark"===r()?t:e;return ba()<796?i` 132 flex-direction: column; 133 background-color: ${t(e.gray[300],e.gray[600])}; 134 `:i` 135 flex-direction: row; 136 background-color: ${t(e.gray[200],e.darkGray[900])}; 137 `};return(()=>{var r=Fl(),a=r.firstChild,s=a.nextSibling,g=l;"function"==typeof g?(0,n.k)(g,r):l=r,a.$$keydown=t=>{let r=(0,n.t)(3.5),i=(0,n.t)(12);if("top"===d()||"bottom"===d()){if("ArrowUp"===t.key||"ArrowDown"===t.key){t.preventDefault();let n=Number(e.localStore.height||500),i="bottom"===d()?"ArrowUp"===t.key?10:-10:"ArrowDown"===t.key?10:-10,o=Math.max(r,n+i);e.setLocalStore("height",String(o))}}else if("ArrowLeft"===t.key||"ArrowRight"===t.key){t.preventDefault();let r=Number(e.localStore.width||500),n="right"===d()?"ArrowLeft"===t.key?10:-10:"ArrowRight"===t.key?10:-10,o=Math.max(i,r+n);e.setLocalStore("width",String(o))}},a.$$mousedown=u,s.$$click=()=>e.setLocalStore("open","false");var f=t;return"function"==typeof f?(0,n.k)(f,s):t=s,(0,n.S)(s,(0,n.L)(Eo,{})),(0,n.S)(r,(0,n.L)($a,e),null),(0,n.H)((t=>{var l=K(o().panel,o()[`panel-position-${d()}`],c(),{[i` 138 min-width: min-content; 139 `]:ba()<700&&("right"===d()||"left"===d())},"tsqd-main-panel"),u="bottom"===d()||"top"===d()?`${e.localStore.height||500}
139px`:"auto",g="right"===d()||"left"===d()?`${e.localStore.width||500}px`:"auto",f="top"===d()||"bottom"===d()?"horizontal":"vertical",p="top"===d()||"bottom"===d()?(0,n.t)(3.5):(0,n.t)(12),h="top"===d()||"bottom"===d()?Number(e.localStore.height||500):Number(e.localStore.width||500),y=K(o().dragHandle,o()[`dragHandle-position-${d()}`],"tsqd-drag-handle"),v=K(o().closeBtn,o()[`closeBtn-position-${d()}`],"tsqd-minimize-btn");return l!==t.e&&(0,n.y)(r,t.e=l),u!==t.t&&(0,n.E)(r,"height",t.t=u),g!==t.a&&(0,n.E)(r,"width",t.a=g),f!==t.o&&(0,n.T)(a,"aria-orientation",t.o=f),p!==t.i&&(0,n.T)(a,"aria-valuemin",t.i=p),h!==t.n&&(0,n.T)(a,"aria-valuenow",t.n=h),y!==t.s&&(0,n.y)(a,t.s=y),v!==t.h&&(0,n.y)(s,t.h=v),t}),{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})()},$a=e=>{Da(),Pa();let t,r=ol(),i=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,o=(0,n.V)((()=>"dark"===r()?Va(i):Ra(i))),l=nl(),[a,s]=(0,n.W)("queries"),d=(0,n.V)((()=>e.localStore.sort||Jo)),u=(0,n.V)((()=>Number(e.localStore.sortOrder)||1)),c=(0,n.V)((()=>e.localStore.mutationSort||Zo)),g=(0,n.V)((()=>Number(e.localStore.mutationSortOrder)||1)),f=(0,n.V)((()=>n.f[d()])),p=(0,n.V)((()=>n.u[c()])),h=(0,n.V)((()=>el().onlineManager)),y=(0,n.V)((()=>el().client.getQueryCache())),v=(0,n.V)((()=>el().client.getMutationCache())),b=za((e=>e().getAll().length),!1),m=(0,n.V)((0,n.Y)((()=>[b(),e.localStore.filter,d(),u(),e.localStore.hideDisabledQueries]),(()=>{let t=y().getAll(),r=e.localStore.filter?t.filter((t=>S(t.queryHash,e.localStore.filter||"").passed)):[...t];return"true"===e.localStore.hideDisabledQueries&&(r=r.filter((e=>!e.isDisabled()))),f()?r.sort(((e,t)=>f()(e,t)*u())):r}))),w=Ia((e=>e().getAll().length),!1),x=(0,n.V)((0,n.Y)((()=>[w(),e.localStore.mutationFilter,c(),g()]),(()=>{let t=v().getAll(),r=e.localStore.mutationFilter?t.filter((t=>S(`${t.options.mutationKey?JSON.stringify(t.options.mutationKey)+" - ":""}${new Date(t.state.submittedAt).toLocaleString()}`,e.localStore.mutationFilter||"").passed)):[...t];return p()?r.sort(((e,t)=>p()(e,t)*g())):r}))),k=t=>{e.setLocalStore("position",t)},$=e=>{let r=getComputedStyle(t).getPropertyValue("--tsqd-font-size");e.style.setProperty("--tsqd-font-size",r)};return[(()=>{var r=Yl(),f=r.firstChild,p=f.firstChild,b=p.firstChild,w=b.firstChild,S=w.nextSibling,C=S.firstChild,L=f.nextSibling,q=L.firstChild,E=q.firstChild,T=E.firstChild,M=E.nextSibling,O=M.nextSibling,F=q.nextSibling,D=F.firstChild,z=D.nextSibling,A=t;return"function"==typeof A?(0,n.k)(A,r):t=r,b.$$click=()=>{l().pipWindow||e.showPanelViewOnly?e.onClose&&e.onClose():e.setLocalStore("open","false")},(0,n.S)(S,(()=>el().queryFlavor),C),(0,n.S)(S,(()=>el().version),null),(0,n.S)(p,(0,n.L)(Wn.Root,{get class(){return K(o().viewToggle)},get value(){return a()},"aria-label":"Toggle between queries and mutations view",onChange:e=>{s(e),ha(null),va(null)},get children(){return[(0,n.L)(Wn.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[(0,n.L)(Wn.ItemInput,{}),(0,n.L)(Wn.ItemControl,{get children(){return(0,n.L)(Wn.ItemIndicator,{})}}),(0,n.L)(Wn.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),(0,n.L)(Wn.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[(0,n.L)(Wn.ItemInput,{}),(0,n.L)(Wn.ItemControl,{get children(){return(0,n.L)(Wn.ItemIndicator,{})}}),(0,n.L)(Wn.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),(0,n.S)(f,(0,n.L)(n.P,{get when(){return"queries"===a()},get children(){return(0,n.L)(qa,{})}}),null),(0,n.S)(f,(0,n.L)(n.P,{get when(){return"mutations"===a()},get children(){return(0,n.L)(Ea,{})}}),null),(0,n.S)(E,(0,n.L)(Lo,{}),T),T.$$input=t=>{"queries"===a()?e.setLocalStore("filter",t.currentTarget.value):e.setLocalStore("mutationFilter",t.currentTarget.value)},(0,n.S)(M,(0,n.L)(n.P,{get when(){return"queries"===a()},get children(){var t=Dl();return t.addEventListener("change",(t=>{e.setLocalStore("sort",t.currentTarget.value)})),(0,n.S)(t,(()=>Object.keys(n.f).map((e=>(()=>{var t=ea();return t.firstChild,t.value=e,(0,n.S)(t,e,null),t})())))),(0,n.H)((()=>t.value=d())),t}}
139),null),(0,n.S)(M,(0,n.L)(n.P,{get when(){return"mutations"===a()},get children(){var t=zl();return t.addEventListener("change",(t=>{e.setLocalStore("mutationSort",t.currentTarget.value)})),(0,n.S)(t,(()=>Object.keys(n.u).map((e=>(()=>{var t=ea();return t.firstChild,t.value=e,(0,n.S)(t,e,null),t})())))),(0,n.H)((()=>t.value=c())),t}}),null),(0,n.S)(M,(0,n.L)(Eo,{}),null),O.$$click=()=>{"queries"===a()?e.setLocalStore("sortOrder",String(-1*u())):e.setLocalStore("mutationSortOrder",String(-1*g()))},(0,n.S)(O,(0,n.L)(n.P,{get when(){return 1===("queries"===a()?u():g())},get children(){return[Al(),(0,n.L)(To,{})]}}),null),(0,n.S)(O,(0,n.L)(n.P,{get when(){return-1===("queries"===a()?u():g())},get children(){return[Pl(),(0,n.L)(Mo,{})]}}),null),D.$$click=()=>{"queries"===a()?(Ka({type:"CLEAR_QUERY_CACHE"}),y().clear()):(Ka({type:"CLEAR_MUTATION_CACHE"}),v().clear())},(0,n.S)(D,(0,n.L)(qo,{})),z.$$click=()=>{h().setOnline(!h().isOnline())},(0,n.S)(z,(()=>{var e=(0,n.C)((()=>!!wa()));return()=>e()?(0,n.L)(Io,{}):(0,n.L)(Po,{})})()),(0,n.S)(F,(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!l().pipWindow))()&&!l().disabled},get children(){var t=Il();return t.$$click=()=>{l().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},(0,n.S)(t,(0,n.L)(Bo,{})),(0,n.H)((()=>(0,n.y)(t,K(o().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip")))),t}}),null),(0,n.S)(F,(0,n.L)(Xi.Root,{gutter:4,get children(){return[(0,n.L)(Xi.Trigger,{get class(){return K(o().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},"aria-label":"Open settings menu",title:"Open settings menu",get children(){return(0,n.L)(Ko,{})}}),(0,n.L)(Xi.Portal,{ref:e=>$(e),get mount(){return(0,n.C)((()=>!!l().pipWindow))()?l().pipWindow.document.body:document.body},get children(){return(0,n.L)(Xi.Content,{get class(){return K(o().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var e=Kl();return(0,n.H)((()=>(0,n.y)(e,K(o().settingsMenuHeader,"tsqd-settings-menu-header")))),e})(),(0,n.L)(n.P,{get when(){return!e.showPanelViewOnly},get children(){return(0,n.L)(Xi.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[(0,n.L)(Xi.SubTrigger,{get class(){return K(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Bl(),(0,n.L)(Eo,{})]}}),(0,n.L)(Xi.Portal,{ref:e=>$(e),get mount(){return(0,n.C)((()=>!!l().pipWindow))()?l().pipWindow.document.body:document.body},get children(){return(0,n.L)(Xi.SubContent,{get class(){return K(o().settingsMenu,"tsqd-settings-submenu")},get children(){return(0,n.L)(Xi.RadioGroup,{"aria-label":"Position settings",get value(){return e.localStore.position},onChange:e=>k(e),get children(){return[(0,n.L)(Xi.RadioItem,{value:"top",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Rl(),(0,n.L)(To,{})]}}),(0,n.L)(Xi.RadioItem,{value:"bottom",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Vl(),(0,n.L)(Mo,{})]}}),(0,n.L)(Xi.RadioItem,{value:"left",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Hl(),(0,n.L)(Oo,{})]}}),(0,n.L)(Xi.RadioItem,{value:"right",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[Gl(),(0,n.L)(Fo,{})]}})]}})}})}})]}})}}),(0,n.L)(Xi.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[(0,n.L)(Xi.SubTrigger,{get class(){return K(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-theme")},get children(){return[Ul(),(0,n.L)(Eo,{})]}}),(0,n.L)(Xi.Portal,{ref:e=>$(e),get mount(){return(0,n.C)((()=>!!l().pipWindow))()?l().pipWindow.document.body:document.body},get children(){return(0,n.L)(Xi.SubContent,{get class(){return K(o().settingsMenu,"tsqd-settings-submenu")},get children(){return(0,n.L)(Xi.RadioGroup,{get value(){return e.localStore.theme_preference},onChange:t=>{e.setLocalStore("theme_preference",t)},"aria-label":"Theme preference",get children(){return[(0,n.L)(Xi.RadioItem,{value:"light",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Wl(),(0,n.L)(Do,{})]}}),(0,n.L)(Xi.RadioItem,{value:"dark",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[jl(),(0,n.L)(zo,{})]}}),(0,n.L)(Xi.RadioItem,{value:"system",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Nl(),(0,n.L)(Ao,{})]}})]}})}})}})]}}),(0,n.L)(Xi.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[(0,n.L)(Xi.SubTrigger,{get class(){return K(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-disabled-queries")},get children(){return[Ql(),(0,n.L)(Eo,{})]}}),(0,n.L)(Xi.Portal,{ref:e=>$(e),get mount(){return(0,n.C)((()=>!!l().pipWindow))()?l().pipWindow.document.body:document.body},get children(){return(0,n.L)(Xi.SubContent,{get class(){return K(o().settingsMenu,"tsqd-settings-submenu")},get children(){return(0,n.L)(Xi.RadioGroup,{get value(){return e.localStore.hideDisabledQueries}
139,"aria-label":"Hide disabled queries setting",onChange:t=>e.setLocalStore("hideDisabledQueries",t),get children(){return[(0,n.L)(Xi.RadioItem,{value:"false",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-show")},get children(){return[Xl(),(0,n.L)(n.P,{get when(){return"true"!==e.localStore.hideDisabledQueries},get children(){return(0,n.L)(jo,{})}})]}}),(0,n.L)(Xi.RadioItem,{value:"true",get class(){return K(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-hide")},get children(){return[_l(),(0,n.L)(n.P,{get when(){return"true"===e.localStore.hideDisabledQueries},get children(){return(0,n.L)(jo,{})}})]}})]}})}})}})]}})]}})}})]}}),null),(0,n.S)(r,(0,n.L)(n.P,{get when(){return"queries"===a()},get children(){var e=Jl(),t=e.firstChild;return(0,n.S)(t,(0,n.L)(_,{by:e=>e.queryHash,get each(){return m()},children:e=>(0,n.L)(Ca,{get query(){return e()}})})),(0,n.H)((()=>(0,n.y)(e,K(o().overflowQueryContainer,"tsqd-queries-overflow-container")))),e}}),null),(0,n.S)(r,(0,n.L)(n.P,{get when(){return"mutations"===a()},get children(){var e=Zl(),t=e.firstChild;return(0,n.S)(t,(0,n.L)(_,{by:e=>e.mutationId,get each(){return x()},children:e=>(0,n.L)(La,{get mutation(){return e()}})})),(0,n.H)((()=>(0,n.y)(e,K(o().overflowQueryContainer,"tsqd-mutations-overflow-container")))),e}}),null),(0,n.H)((e=>{var t=K(o().queriesContainer,ba()<796&&(pa()||ya())&&i` 140 height: 50%; 141 max-height: 50%; 142 `,ba()<796&&!(pa()||ya())&&i` 143 height: 100%; 144 max-height: 100%; 145 `,"tsqd-queries-container"),l=K(o().row,"tsqd-header"),s=o().logoAndToggleContainer,d=K(o().logo,"tsqd-text-logo-container"),c=K(o().tanstackLogo,"tsqd-text-logo-tanstack"),h=K(o().queryFlavorLogo,"tsqd-text-logo-query-flavor"),y=K(o().row,"tsqd-filters-actions-container"),v=K(o().filtersContainer,"tsqd-filters-container"),m=K(o().filterInput,"tsqd-query-filter-textfield-container"),x=K("tsqd-query-filter-textfield"),k=K(o().filterSelect,"tsqd-query-filter-sort-container"),$="Sort order "+(-1===("queries"===a()?u():g())?"descending":"ascending"),C=-1===("queries"===a()?u():g()),A=K(o().actionsContainer,"tsqd-actions-container"),P=K(o().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),I=`Clear ${a()} cache`,B=K(o().actionsBtn,wa()&&o().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),R=""+(wa()?"Unset offline mocking behavior":"Mock offline behavior"),V=wa(),H=""+(wa()?"Unset offline mocking behavior":"Mock offline behavior");return t!==e.e&&(0,n.y)(r,e.e=t),l!==e.t&&(0,n.y)(f,e.t=l),s!==e.a&&(0,n.y)(p,e.a=s),d!==e.o&&(0,n.y)(b,e.o=d),c!==e.i&&(0,n.y)(w,e.i=c),h!==e.n&&(0,n.y)(S,e.n=h),y!==e.s&&(0,n.y)(L,e.s=y),v!==e.h&&(0,n.y)(q,e.h=v),m!==e.r&&(0,n.y)(E,e.r=m),x!==e.d&&(0,n.y)(T,e.d=x),k!==e.l&&(0,n.y)(M,e.l=k),$!==e.u&&(0,n.T)(O,"aria-label",e.u=$),C!==e.c&&(0,n.T)(O,"aria-pressed",e.c=C),A!==e.w&&(0,n.y)(F,e.w=A),P!==e.m&&(0,n.y)(D,e.m=P),I!==e.f&&(0,n.T)(D,"title",e.f=I),B!==e.y&&(0,n.y)(z,e.y=B),R!==e.g&&(0,n.T)(z,"aria-label",e.g=R),V!==e.p&&(0,n.T)(z,"aria-pressed",e.p=V),H!==e.b&&(0,n.T)(z,"title",e.b=H),e}),{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}),(0,n.H)((()=>T.value="queries"===a()?e.localStore.filter||"":e.localStore.mutationFilter||"")),r})(),(0,n.L)(n.P,{get when(){return(0,n.C)((()=>"queries"===a()))()&&pa()},get children(){return(0,n.L)(Ma,{})}}),(0,n.L)(n.P,{get when(){return(0,n.C)((()=>"mutations"===a()))()&&ya()},get children(){return(0,n.L)(Oa,{})}})]},Ca=e=>{let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?Va(r):Ra(r))),{colors:o,alpha:l}=Yi,a=(e,r)=>"dark"===t()?r:e,s=za((t=>t().get(e.query.queryHash)?.state),!0,(t=>t.query.queryHash===e.query.queryHash)),d=za((t=>t().get(e.query.queryHash)?.isDisabled()??!1),!0,(t=>t.query.queryHash===e.query.queryHash)),u=za((t=>t().get(e.query.queryHash)?.isStatic()??!1),!0,(t=>t.query.queryHash===e.query.queryHash)),c=za((t=>t().get(e.query.queryHash)?.isStale()??!1),!0,(t=>t.query.queryHash===e.query.queryHash)),g=za((t=>t().get(e.query.queryHash)?.getObserversCount()??0),!0,(t=>t.query.queryHash===e.query.queryHash)),f=(0,n.V)((()=>(0,n.o)({queryState:s(),observerCount:g(),isStale:c()}))),p=()=>"gray"===f()?r` 146 background-color: ${a(o[f()][200],o[f()][700])}; 147 color: ${a(o[f()][700],o[f()][300])}; 148 `:r` 149 background-color: ${a(o[f()][200]+l[80],o[f()][900])}; 150 color: ${a(o[f()][800],o[f()][300])}; 151 `;return(0,n.L)(n.P,{get when(){return s()},get children(){var t=na(),r=t.firstChild,o=r.nextSibling;return t.$$click=()=>ha(e.query.queryHash===pa()?null:e.query.queryHash),(0,n.S)(r,g),(0,n.S)(o,(()=>e.query.queryHash)),(0,n.S)(t,(0,n.L)(n.P,{get when(){return d()},get children(){return ta()}}),null),(0,n.S)(t,(0,n.L)(n.P,{get when(){return u()},get children(){return ra()}}),null),(0,n.H)((o=>{var l=K(i().queryRow,pa()===e.query.queryHash&&i().selectedQueryRow,"tsqd-query-row"),a=`Query key ${e.query.queryHash}${d()?", disabled":""}${u()?", static":""}`,s=K(p(),"tsqd-query-observer-count");return l!==o.e&&(0,n.y)(t,o.e=l),a!==o.t&&(0,n.T)(t,"aria-label",o.t=a),s!==o.a&&(0,n.y)(r,o.a=s),o}),{e:void 0,t:void 0,a:void 0}),t}})},La=e=>
151{let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?Va(r):Ra(r))),{colors:o,alpha:l}=Yi,a=(e,r)=>"dark"===t()?r:e,s=Ia((t=>t().getAll().find((t=>t.mutationId===e.mutation.mutationId))?.state)),d=Ia((t=>{let r=t().getAll().find((t=>t.mutationId===e.mutation.mutationId));return!!r&&r.state.isPaused})),u=Ia((t=>{let r=t().getAll().find((t=>t.mutationId===e.mutation.mutationId));return r?r.state.status:"idle"})),c=(0,n.V)((()=>(0,n.i)({isPaused:d(),status:u()}))),g=()=>"gray"===c()?r` 152 background-color: ${a(o[c()][200],o[c()][700])}; 153 color: ${a(o[c()][700],o[c()][300])}; 154 `:r` 155 background-color: ${a(o[c()][200]+l[80],o[c()][900])}; 156 color: ${a(o[c()][800],o[c()][300])}; 157 `;return(0,n.L)(n.P,{get when(){return s()},get children(){var t=na(),r=t.firstChild,o=r.nextSibling;return t.$$click=()=>{va(e.mutation.mutationId===ya()?null:e.mutation.mutationId)},(0,n.S)(r,(0,n.L)(n.P,{get when(){return"purple"===c()},get children(){return(0,n.L)(Xo,{})}}),null),(0,n.S)(r,(0,n.L)(n.P,{get when(){return"green"===c()},get children(){return(0,n.L)(jo,{})}}),null),(0,n.S)(r,(0,n.L)(n.P,{get when(){return"red"===c()},get children(){return(0,n.L)(Qo,{})}}),null),(0,n.S)(r,(0,n.L)(n.P,{get when(){return"yellow"===c()},get children(){return(0,n.L)(No,{})}}),null),(0,n.S)(o,(0,n.L)(n.P,{get when(){return e.mutation.options.mutationKey},get children(){return[(0,n.C)((()=>JSON.stringify(e.mutation.options.mutationKey)))," -"," "]}}),null),(0,n.S)(o,(()=>new Date(e.mutation.state.submittedAt).toLocaleString()),null),(0,n.H)((o=>{var l=K(i().queryRow,ya()===e.mutation.mutationId&&i().selectedQueryRow,"tsqd-query-row"),a=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,s=K(g(),"tsqd-query-observer-count");return l!==o.e&&(0,n.y)(t,o.e=l),a!==o.t&&(0,n.T)(t,"aria-label",o.t=a),s!==o.a&&(0,n.y)(r,o.a=s),o}),{e:void 0,t:void 0,a:void 0}),t}})},qa=()=>{let e=za((e=>e().getAll().filter((e=>"stale"===(0,n.c)(e))).length)),t=za((e=>e().getAll().filter((e=>"fresh"===(0,n.c)(e))).length)),r=za((e=>e().getAll().filter((e=>"fetching"===(0,n.c)(e))).length)),i=za((e=>e().getAll().filter((e=>"paused"===(0,n.c)(e))).length)),o=za((e=>e().getAll().filter((e=>"inactive"===(0,n.c)(e))).length)),l=ol(),a=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,s=(0,n.V)((()=>"dark"===l()?Va(a):Ra(a)));return(()=>{var l=Tl();return(0,n.S)(l,(0,n.L)(Ta,{label:"Fresh",color:"green",get count(){return t()}}),null),(0,n.S)(l,(0,n.L)(Ta,{label:"Fetching",color:"blue",get count(){return r()}}),null),(0,n.S)(l,(0,n.L)(Ta,{label:"Paused",color:"purple",get count(){return i()}}),null),(0,n.S)(l,(0,n.L)(Ta,{label:"Stale",color:"yellow",get count(){return e()}}),null),(0,n.S)(l,(0,n.L)(Ta,{label:"Inactive",color:"gray",get count(){return o()}}),null),(0,n.H)((()=>(0,n.y)(l,K(s().queryStatusContainer,"tsqd-query-status-container")))),l})()},Ea=()=>{let e=Ia((e=>e().getAll().filter((e=>
157"green"===(0,n.i)({isPaused:e.state.isPaused,status:e.state.status}))).length)),t=Ia((e=>e().getAll().filter((e=>"yellow"===(0,n.i)({isPaused:e.state.isPaused,status:e.state.status}))).length)),r=Ia((e=>e().getAll().filter((e=>"purple"===(0,n.i)({isPaused:e.state.isPaused,status:e.state.status}))).length)),i=Ia((e=>e().getAll().filter((e=>"red"===(0,n.i)({isPaused:e.state.isPaused,status:e.state.status}))).length)),o=ol(),l=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,a=(0,n.V)((()=>"dark"===o()?Va(l):Ra(l)));return(()=>{var o=Tl();return(0,n.S)(o,(0,n.L)(Ta,{label:"Paused",color:"purple",get count(){return r()}}),null),(0,n.S)(o,(0,n.L)(Ta,{label:"Pending",color:"yellow",get count(){return t()}}),null),(0,n.S)(o,(0,n.L)(Ta,{label:"Success",color:"green",get count(){return e()}}),null),(0,n.S)(o,(0,n.L)(Ta,{label:"Error",color:"red",get count(){return i()}}),null),(0,n.H)((()=>(0,n.y)(o,K(a().queryStatusContainer,"tsqd-query-status-container")))),o})()},Ta=e=>{let t,r=ol(),i=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,o=(0,n.V)((()=>"dark"===r()?Va(i):Ra(i))),{colors:l,alpha:a}=Yi,s=(e,t)=>"dark"===r()?t:e,[d,u]=(0,n.W)(!1),[c,g]=(0,n.W)(!1),f=(0,n.V)((()=>!(pa()&&ba()<1024&&ba()>796||ba()<796)));return(()=>{var r=la(),p=r.firstChild,h=p.nextSibling,y=t;return"function"==typeof y?(0,n.k)(y,r):t=r,r.addEventListener("mouseleave",(()=>{u(!1),g(!1)})),r.addEventListener("mouseenter",(()=>u(!0))),r.addEventListener("blur",(()=>g(!1))),r.addEventListener("focus",(()=>g(!0))),(0,n.D)(r,(0,n.J)({get disabled(){return f()},get"aria-label"(){return`${e.label}: ${e.count}`},get class(){return K(o().queryStatusTag,!f()&&i` 158 cursor: pointer; 159 &:hover { 160 background: ${s(l.gray[200],l.darkGray[400])}${a[80]}; 161 } 162 `,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},(()=>d()||c()?{"aria-describedby":"tsqd-status-tooltip"}:{})),!1,!0),(0,n.S)(r,(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!f()))()&&(d()||c())},get children(){var t=ia();return(0,n.S)(t,(()=>e.label)),(0,n.H)((()=>(0,n.y)(t,K(o().statusTooltip,"tsqd-query-status-tooltip")))),t}}),p),(0,n.S)(r,(0,n.L)(n.P,{get when(){return f()},get children(){var t=oa();return(0,n.S)(t,(()=>e.label)),(0,n.H)((()=>(0,n.y)(t,K(o().queryStatusTagLabel,"tsqd-query-status-tag-label")))),t}}),h),(0,n.S)(h,(()=>e.count)),(0,n.H)((t=>{var r=K(i` 163 width: ${Yi.size[1.5]}; 164 height: ${Yi.size[1.5]}; 165 border-radius: ${Yi.border.radius.full}; 166 background-color: ${Yi.colors[e.color][500]}; 167 `,"tsqd-query-status-tag-dot"),a=K(o().queryStatusCount,e.count>0&&"gray"!==e.color&&i` 168 background-color: ${s(l[e.color][100],l[e.color][900])}; 169 color: ${s(l[e.color][700],l[e.color][300])}; 170 `,"tsqd-query-status-tag-count");return r!==t.e&&(0,n.y)(p,t.e=r),a!==t.t&&(0,n.y)(h,t.t=a),t}),{e:void 0,t:void 0}),r})()},Ma=()=>{let e=ol(),t=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,r=(0,n.V)((()=>"dark"===e()?Va(t):Ra(t))),{colors:i}=Yi,o=(t,r)=>"dark"===e()?r:t,l=el().client,[a,s]=(0,n.W)(!1),[d,u]=(0,n.W)("view"),[c,g]=(0,n.W)(!1),f=(0,n.V)((()=>el().errorTypes||[])),p=za((e=>e().getAll().find((e=>e.queryHash===pa()))),!1),h=za((e=>e().getAll().find((e=>e.queryHash===pa()))),!1),y=za((e=>e().getAll().find((e=>e.queryHash===pa()))?.state),!1),v=za((e=>e().getAll().find((e=>e.queryHash===pa()))?.state.data),!1),b=za((e=>{let t=e().getAll().find((e=>e.queryHash===pa()));return t?(0,n.c)(t):"inactive"})),m=za((e=>{let t=e().getAll().find((e=>e.queryHash===pa()));return t?t.state.status:"pending"})),w=za((e=>e().getAll().find((e=>e.queryHash===pa()))?.getObserversCount()??0)),x=(0,n.V)((()=>(0,n.s)(b()))),k=()=>{Ka({type:"REFETCH",queryHash:p()?.queryHash}),(p()?.fetch())?.catch((()=>{}))},S=e=>{let t=p();if(!t)return;Ka({type:"TRIGGER_ERROR",queryHash:t.queryHash,metadata:{error:e?.name}});let r=e?.initializer(t)??Error("Unknown error from devtools"),n=t.options;t.setState({data:void 0,status:"error",error:r,fetchMeta:{...t.state.fetchMeta,__previousQueryOptions:n}})};(0,n.B)((()=>{"fetching"!==b()&&s(!1)}));let $=()=>"gray"===x()?t` 171 background-color: ${o(i[x()][200],i[x()][700])}; 172 color: ${o(i[x()][700],i[x()][300])}; 173 border-color: ${o(i[x()][400],i[x()][600])}; 174 `:t` 175 background-color: ${o(i[x()][100],i[x()][900])}; 176 color: ${o(i[x()][700],i[x()][300])}; 177 border-color: ${o(i[x()][400],i[x()][600])}; 178 `;return(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!!p()))()&&y()},get children(){var e=ca(),x=e.firstChild,C=x.nextSibling,L=C.firstChild,q=L.firstChild,E=q.firstChild,T=q.nextSibling,M=L.nextSibling,O=M.firstChild.nextSibling,F=M.nextSibling.firstChild.nextSibling,D=C.nextSibling,z=D.nextSibling,A=z.firstChild,P=A.firstChild,I=A.nextSibling,B=I.firstChild,R=I.nextSibling,V=R.firstChild,H=R.nextSibling,G=H.firstChild,U=H.nextSibling,W=U.firstChild,j=W.nextSibling,N=z.nextSibling;N.firstChild;var Q=N.nextSibling,X=Q.nextSibling;return(0,n.S)(E,(()=>(0,n.r)(p().queryKey,!0))),(0,n.S)(T,b),(0,n.S)(O,w),(0,n.S)(F,(()=>new Date(y().dataUpdatedAt).toLocaleTimeString())),A.$$click=k,I.$$click=()=>{Ka({type:"INVALIDATE",queryHash:p()?.queryHash}
178),l.invalidateQueries({queryKey:p()?.queryKey,exact:!0})},R.$$click=()=>{Ka({type:"RESET",queryHash:p()?.queryHash}),l.resetQueries({queryKey:p()?.queryKey,exact:!0})},H.$$click=()=>{Ka({type:"REMOVE",queryHash:p()?.queryHash}),l.removeQueries({queryKey:p()?.queryKey,exact:!0}),ha(null)},U.$$click=()=>{if(void 0===p()?.state.data)s(!0),(()=>{let e=p();if(!e)return;Ka({type:"RESTORE_LOADING",queryHash:e.queryHash});let t=e.state,r=e.state.fetchMeta?e.state.fetchMeta.__previousQueryOptions:null;e.cancel({silent:!0}),e.setState({...t,fetchStatus:"idle",fetchMeta:null}),r&&e.fetch(r)})();else{let e=p();if(!e)return;Ka({type:"TRIGGER_LOADING",queryHash:e.queryHash});let t=e.options;e.fetch({...t,queryFn:()=>new Promise((()=>{})),gcTime:-1}),e.setState({data:void 0,status:"pending",fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:t}})}},(0,n.S)(U,(()=>"pending"===m()?"Restore":"Trigger"),j),(0,n.S)(z,(0,n.L)(n.P,{get when(){return 0===f().length||"error"===m()},get children(){var e=aa(),r=e.firstChild,a=r.nextSibling;return e.$$click=()=>{p().state.error?(Ka({type:"RESTORE_ERROR",queryHash:p()?.queryHash}),l.resetQueries({queryKey:p()?.queryKey})):S()},(0,n.S)(e,(()=>"error"===m()?"Restore":"Trigger"),a),(0,n.H)((l=>{var a=K(t` 179 color: ${o(i.red[500],i.red[400])}; 180 `,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),s="pending"===m(),d=t` 181 background-color: ${o(i.red[500],i.red[400])}; 182 `;return a!==l.e&&(0,n.y)(e,l.e=a),s!==l.t&&(e.disabled=l.t=s),d!==l.a&&(0,n.y)(r,l.a=d),l}),{e:void 0,t:void 0,a:void 0}),e}}),null),(0,n.S)(z,(0,n.L)(n.P,{get when(){return 0!==f().length&&"error"!==m()},get children(){var e=sa(),i=e.firstChild,o=i.nextSibling.nextSibling;return o.firstChild,o.addEventListener("change",(e=>{let t=f().find((t=>t.name===e.currentTarget.value));S(t)})),(0,n.S)(o,(0,n.L)(n.j,{get each(){return f()},children:e=>(()=>{var t=ga();return(0,n.S)(t,(()=>e.name)),(0,n.H)((()=>t.value=e.name)),t})()}),null),(0,n.S)(e,(0,n.L)(Eo,{}),null),(0,n.H)((l=>{var a=K(r().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),s=t` 183 background-color: ${Yi.colors.red[400]}; 184 `,d="pending"===m();return a!==l.e&&(0,n.y)(e,l.e=a),s!==l.t&&(0,n.y)(i,l.t=s),d!==l.a&&(o.disabled=l.a=d),l}),{e:void 0,t:void 0,a:void 0}),e}}),null),(0,n.S)(N,(()=>"view"===d()?"Explorer":"Editor"),null),(0,n.S)(e,(0,n.L)(n.P,{get when(){return"view"===d()},get children(){var e=da();return(0,n.S)(e,(0,n.L)($l,{label:"Data",defaultExpanded:["Data"],get value(){return v()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return p()}})),(0,n.H)((t=>(0,n.E)(e,"padding",Yi.size[2]))),e}}),Q),(0,n.S)(e,(0,n.L)(n.P,{get when(){return"edit"===d()},get children(){var e=ua(),l=e.firstChild,a=l.nextSibling,s=a.firstChild,d=s.nextSibling,f=d.firstChild,h=f.nextSibling;return e.addEventListener("submit",(e=>{e.preventDefault();let t=new FormData(e.currentTarget).get("data");try{let e=JSON.parse(t);p().setState({...p().state,data:e}),u("view")}catch{g(!0)}})),l.addEventListener("focus",(()=>g(!1))),(0,n.S)(s,(()=>c()?"Invalid Value":"")),f.$$click=()=>u("view"),(0,n.H)((u=>{var g=K(r().devtoolsEditForm,"tsqd-query-details-data-editor"),p=r().devtoolsEditTextarea,y=c(),v=r().devtoolsEditFormActions,b=r().devtoolsEditFormError,m=r().devtoolsEditFormActionContainer,w=K(r().devtoolsEditFormAction,t` 185 color: ${o(i.gray[600],i.gray[300])}; 186 `),x=K(r().devtoolsEditFormAction,t` 187 color: ${o(i.blue[600],i.blue[400])}; 188 `);return g!==u.e&&(0,n.y)(e,u.e=g),p!==u.t&&(0,n.y)(l,u.t=p),y!==u.a&&(0,n.T)(l,"data-error",u.a=y),v!==u.o&&(0,n.y)(a,u.o=v),b!==u.i&&(0,n.y)(s,u.i=b),m!==u.n&&(0,n.y)(d,u.n=m),w!==u.s&&(0,n.y)(f,u.s=w),x!==u.h&&(0,n.y)(h,u.h=x),u}),{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),(0,n.H)((()=>l.value=JSON.stringify(v(),null,2))),e}}),Q),(0,n.S)(X,(0,n.L)($l,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return h()}})),(0,n.H)((l=>{var s=K(r().detailsContainer,"tsqd-query-details-container"),d=K(r().detailsHeader,"tsqd-query-details-header"),u=K(r().detailsBody,"tsqd-query-details-summary-container"),c=K(r().queryDetailsStatus,$()),g=K(r().detailsHeader,"tsqd-query-details-header"),f=K(r().actionsBody,"tsqd-query-details-actions-container"),p=K(t` 189 color: ${o(i.blue[600],i.blue[400])}; 190 `,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),h="fetching"===b(),y=t` 191 background-color: ${o(i.blue[600],i.blue[400])}; 192 `,v=K(t` 193 color: ${o(i.yellow[600],i.yellow[400])}; 194 `,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),w="pending"===m(),k=t` 195 background-color: ${o(i.yellow[600],i.yellow[400])}; 196 `,S=K(t` 197 color: ${o(i.gray[600],i.gray[300])}; 198 `,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),L="pending"===m(),q=t` 199 background-color: ${o(i.gray[600],i.gray[400])}; 200 `,E=K(t` 201 color: ${o(i.pink[500],i.pink[400])}; 202 `,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),M="fetching"===b(),O=t` 203 background-color: ${o(i.pink[500],i.pink[400])}; 204 `,F=K(t` 205 color: ${o(i.cyan[500],i.cyan[400])}; 206 `,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),j=a(),_=t` 207 background-color: ${o(i.cyan[500],i.cyan[400])}; 208 `,J=K(r().detailsHeader,"tsqd-query-details-header"),Z=K(r().detailsHeader,"tsqd-query-details-header"),Y=Yi.size[2];return s!==l.e&&(0,n.y)(e,l.e=s),d!==l.t&&(0,n.y)(x,l.t=d),u!==l.a&&(0,n.y)(C,l.a=u),c!==l.o&&(0,n.y)(T,l.o=c),g!==l.i&&(0,n.y)(D,l.i=g),f!==l.n&&(0,n.y)(z,l.n=f),p!==l.s&&(0,n.y)(A,l.s=p),h!==l.h&&(A.disabled=l.h=h),y!==l.r&&(0,n.y)(P,l.r=y),v!==l.d&&(0,n.y)(I,l.d=v),w!==l.l&&(I.disabled=l.l=w),k!==l.u&&(0,n.y)(B,l.u=k),S!==l.c&&(0,n.y)(R,l.c=S),L!==l.w&&(R.disabled=l.w=L),q!==l.m&&(0,n.y)(V,l.m=q),E!==l.f&&(0,n.y)(H,l.f=E),M!==l.y&&(H.disabled=l.y=M),O!==l.g&&(0,n.y)(G,l.g=O),F!==l.p&&(0,n.y)(U,l.p=F),j!==l.b&&(U.disabled=l.b=j),_!==l.T&&(0,n.y)(W,l.T=_),J!==l.A&&(0,n.y)(N,l.A=J),Z!==l.O&&(0,n.y)(Q,l.O=Z),Y!==l.I&&(0,n.E)(X,"padding",l.I=Y),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: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}),e}})},Oa=()=>{let e=ol(),t=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,r=(0,n.V)((()=>"dark"===e()?Va(t):Ra(t))),{colors:i}=Yi,o=(t,r)=>"dark"===e()?r:t,l=Ia((e=>{let t=e().getAll().find((e=>e.mutationId===ya()));
208return!!t&&t.state.isPaused})),a=Ia((e=>{let t=e().getAll().find((e=>e.mutationId===ya()));return t?t.state.status:"idle"})),s=(0,n.V)((()=>(0,n.i)({isPaused:l(),status:a()}))),d=Ia((e=>e().getAll().find((e=>e.mutationId===ya()))),!1),u=()=>"gray"===s()?t` 209 background-color: ${o(i[s()][200],i[s()][700])}; 210 color: ${o(i[s()][700],i[s()][300])}; 211 border-color: ${o(i[s()][400],i[s()][600])}; 212 `:t` 213 background-color: ${o(i[s()][100],i[s()][900])}; 214 color: ${o(i[s()][700],i[s()][300])}; 215 border-color: ${o(i[s()][400],i[s()][600])}; 216 `;return(0,n.L)(n.P,{get when(){return d()},get children(){var e=fa(),t=e.firstChild,i=t.nextSibling,o=i.firstChild,l=o.firstChild,c=l.firstChild,g=l.nextSibling,f=o.nextSibling.firstChild.nextSibling,p=i.nextSibling,h=p.nextSibling,y=h.nextSibling,v=y.nextSibling,b=v.nextSibling,m=b.nextSibling,w=m.nextSibling,x=w.nextSibling;return(0,n.S)(c,(0,n.L)(n.P,{get when(){return d().options.mutationKey},fallback:"No mutationKey found",get children(){return(0,n.r)(d().options.mutationKey,!0)}})),(0,n.S)(g,(0,n.L)(n.P,{get when(){return"purple"===s()},children:"pending"}),null),(0,n.S)(g,(0,n.L)(n.P,{get when(){return"purple"!==s()},get children(){return a()}}),null),(0,n.S)(f,(()=>new Date(d().state.submittedAt).toLocaleTimeString())),(0,n.S)(h,(0,n.L)($l,{label:"Variables",defaultExpanded:["Variables"],get value(){return d().state.variables}})),(0,n.S)(v,(0,n.L)($l,{label:"Context",defaultExpanded:["Context"],get value(){return d().state.context}})),(0,n.S)(m,(0,n.L)($l,{label:"Data",defaultExpanded:["Data"],get value(){return d().state.data}})),(0,n.S)(x,(0,n.L)($l,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return d()}})),(0,n.H)((o=>{var l=K(r().detailsContainer,"tsqd-query-details-container"),a=K(r().detailsHeader,"tsqd-query-details-header"),s=K(r().detailsBody,"tsqd-query-details-summary-container"),d=K(r().queryDetailsStatus,u()),c=K(r().detailsHeader,"tsqd-query-details-header"),f=Yi.size[2],k=K(r().detailsHeader,"tsqd-query-details-header"),S=Yi.size[2],$=K(r().detailsHeader,"tsqd-query-details-header"),C=Yi.size[2],L=K(r().detailsHeader,"tsqd-query-details-header"),q=Yi.size[2];return l!==o.e&&(0,n.y)(e,o.e=l),a!==o.t&&(0,n.y)(t,o.t=a),s!==o.a&&(0,n.y)(i,o.a=s),d!==o.o&&(0,n.y)(g,o.o=d),c!==o.i&&(0,n.y)(p,o.i=c),f!==o.n&&(0,n.E)(h,"padding",o.n=f),k!==o.s&&(0,n.y)(y,o.s=k),S!==o.h&&(0,n.E)(v,"padding",o.h=S),$!==o.r&&(0,n.y)(b,o.r=$),C!==o.d&&(0,n.E)(m,"padding",o.d=C),L!==o.l&&(0,n.y)(w,o.l=L),q!==o.u&&(0,n.E)(x,"padding",o.u=q),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}),e}})},Fa=new Map,Da=()=>{let e=(0,n.V)((()=>el().client.getQueryCache())),t=e().subscribe((t=>{(0,n.I)((()=>{for(let[r,n]of Fa.entries())n.shouldUpdate(t)&&n.setter(r(e))}))}));return(0,n.X)((()=>{Fa.clear(),t()})),t},za=(e,t=!0,r=()=>!0)=>{let i=(0,n.V)((()=>el().client.getQueryCache())),[o,l]=(0,n.W)(e(i),t?void 0:{equals:!1});return(0,n.B)((()=>{l(e(i))})),Fa.set(e,{setter:l,shouldUpdate:r}),(0,n.X)((()=>{Fa.delete(e)})),o},Aa=new Map,Pa=()=>{let e=(0,n.V)((()=>el().client.getMutationCache())),t=e().subscribe((()=>{for(let[t,r]of Aa.entries())queueMicrotask((()=>{r(t(e))}))}));return(0,n.X)((()=>{Aa.clear(),t()})),t},Ia=(e,t=!0)=>{let r=(0,n.V)((()=>el().client.getMutationCache())),[i,o]=(0,n.W)(e(r),t?void 0:{equals:!1});return(0,n.B)((()=>{o(e(r))})),Aa.set(e,o),(0,n.X)((()=>{Aa.delete(e)})),i},Ka=({type:e,queryHash:t,metadata:r})=>{let n=new CustomEvent("@tanstack/query-devtools-event",{detail:{type:e,queryHash:t,metadata:r},bubbles:!0,cancelable:!0});window.dispatchEvent(n)},Ba=(e,t)=>{let{colors:r,font:n,size:i,alpha:o,shadow:l,border:a}=Yi,s=(t,r)=>"light"===e?t:r;return{devtoolsBtn:t` 217 z-index: 100000; 218 position: fixed; 219 padding: 4px; 220 text-align: left; 221 222 display: flex; 223 align-items: center; 224 justify-content: center; 225 border-radius: 9999px; 226 box-shadow: ${l.md()}; 227 overflow: hidden; 228 229 & div { 230 position: absolute; 231 top: -8px; 232 left: -8px; 233 right: -8px; 234 bottom: -8px; 235 border-radius: 9999px; 236 -webkit-transform: translateZ(0); 237 transform: translateZ(0); 238 239 & svg { 240 position: absolute; 241 width: 100%; 242 height: 100%; 243 } 244 filter: blur(6px) saturate(1.2) contrast(1.1); 245 } 246 247 &:focus-within { 248 outline-offset: 2px; 249 outline: 3px solid ${r.green[600]}; 250 } 251 252 & button { 253 position: relative; 254 z-index: 1; 255 padding: 0; 256 border-radius: 9999px; 257 background-color: transparent; 258 border: none; 259 height: 40px; 260 display: flex; 261 width: 40px; 262 overflow: hidden; 263 cursor: pointer; 264 outline: none; 265 & svg { 266 position: absolute; 267 width: 100%; 268 height: 100%; 269 } 270 } 271 `,panel:t` 272 position: fixed; 273 z-index: 9999; 274 display: flex; 275 gap: ${Yi.size[.5]}; 276 & * { 277 box-sizing: border-box; 278 text-transform: none; 279 } 280 281 & *::-webkit-scrollbar {
282 width: 7px; 283 } 284 285 & *::-webkit-scrollbar-track { 286 background: transparent; 287 } 288 289 & *::-webkit-scrollbar-thumb { 290 background: ${s(r.gray[300],r.darkGray[200])}; 291 } 292 293 & *::-webkit-scrollbar-thumb:hover { 294 background: ${s(r.gray[400],r.darkGray[300])}; 295 } 296 `,parentPanel:t` 297 z-index: 9999; 298 display: flex; 299 height: 100%; 300 gap: ${Yi.size[.5]}; 301 & * { 302 box-sizing: border-box; 303 text-transform: none; 304 } 305 306 & *::-webkit-scrollbar { 307 width: 7px; 308 } 309 310 & *::-webkit-scrollbar-track { 311 background: transparent; 312 } 313 314 & *::-webkit-scrollbar-thumb { 315 background: ${s(r.gray[300],r.darkGray[200])}; 316 } 317 318 & *::-webkit-scrollbar-thumb:hover { 319 background: ${s(r.gray[400],r.darkGray[300])}; 320 } 321 `,"devtoolsBtn-position-bottom-right":t` 322 bottom: 12px; 323 right: 12px; 324 `,"devtoolsBtn-position-bottom-left":t` 325 bottom: 12px; 326 left: 12px; 327 `,"devtoolsBtn-position-top-left":t` 328 top: 12px; 329 left: 12px; 330 `,"devtoolsBtn-position-top-right":t` 331 top: 12px; 332 right: 12px; 333 `,"devtoolsBtn-position-relative":t` 334 position: relative; 335 `,"panel-position-top":t` 336 top: 0; 337 right: 0; 338 left: 0; 339 max-height: 90%; 340 min-height: ${i[14]}; 341 border-bottom: ${s(r.gray[400],r.darkGray[300])} 1px solid; 342 `,"panel-position-bottom":t` 343 bottom: 0; 344 right: 0; 345 left: 0; 346 max-height: 90%; 347 min-height: ${i[14]}; 348 border-top: ${s(r.gray[400],r.darkGray[300])} 1px solid; 349 `,"panel-position-right":t` 350 bottom: 0; 351 right: 0; 352 top: 0; 353 border-left: ${s(r.gray[400],r.darkGray[300])} 1px solid; 354 max-width: 90%; 355 `,"panel-position-left":t` 356 bottom: 0; 357 left: 0; 358 top: 0; 359 border-right: ${s(r.gray[400],r.darkGray[300])} 1px solid; 360 max-width: 90%; 361 `,closeBtn:t` 362 position: absolute; 363 cursor: pointer; 364 z-index: 5; 365 display: flex; 366 align-items: center; 367 justify-content: center; 368 outline: none; 369 background-color: ${s(r.gray[50],r.darkGray[700])}; 370 &:hover { 371 background-color: ${s(r.gray[200],r.darkGray[500])}; 372 } 373 &:focus-visible { 374 outline: 2px solid ${r.blue[600]}; 375 } 376 & svg { 377 color: ${s(r.gray[600],r.gray[400])}; 378 width: ${i[2]}; 379 height: ${i[2]}; 380 } 381 `,"closeBtn-position-top":t` 382 bottom: 0; 383 right: ${i[2]}; 384 transform: translate(0, 100%); 385 border-right: ${s(r.gray[400],r.darkGray[300])} 1px solid; 386 border-left: ${s(r.gray[400],r.darkGray[300])} 1px solid; 387 border-top: none; 388 border-bottom: ${s(r.gray[400],r.darkGray[300])} 1px solid; 389 border-radius: 0px 0px ${a.radius.sm} ${a.radius.sm}; 390 padding: ${i[.5]} ${i[1.5]} ${i[1]} ${i[1.5]}; 391 392 &::after { 393 content: ' '; 394 position: absolute; 395 bottom: 100%; 396 left: -${i[2.5]}; 397 height: ${i[1.5]}; 398 width: calc(100% + ${i[5]}); 399 } 400 401 & svg { 402 transform: rotate(180deg); 403 } 404 `,"closeBtn-position-bottom":t` 405 top: 0; 406 right: ${i[2]}; 407 transform: translate(0, -100%); 408 border-right: ${s(r.gray[400],r.darkGray[300])} 1px solid; 409 border-left: ${s(r.gray[400],r.darkGray[300])} 1px solid; 410 border-top: ${s(r.gray[400],r.darkGray[300])} 1px solid; 411 border-bottom: none; 412 border-radius: ${a.radius.sm} ${a.radius.sm} 0px 0px; 413 padding: ${i[1]} ${i[1.5]} ${i[.5]} ${i[1.5]}; 414 415 &::after { 416 content: ' '; 417 position: absolute; 418 top: 100%; 419 left: -${i[2.5]}; 420 height: ${i[1.5]}; 421 width: calc(100% + ${i[5]}); 422 } 423 `,"closeBtn-position-right":t` 424 bottom: ${i[2]}; 425 left: 0; 426 transform: translate(-100%, 0); 427 border-right: none; 428 border-left: ${s(r.gray[400],r.darkGray[300])} 1px solid; 429 border-top: ${s(r.gray[400],r.darkGray[300])} 1px solid; 430 border-bottom: ${s(r.gray[400],r.darkGray[300])} 1px solid; 431 border-radius: ${a.radius.sm} 0px 0px ${a.radius.sm}; 432 padding: ${i[1.5]} ${i[.5]} ${i[1.5]} ${i[1]}; 433 434 &::after { 435 content: ' '; 436 position: absolute; 437 left: 100%; 438 height: calc(100% + ${i[5]}); 439 width: ${i[1.5]}; 440 } 441 442 & svg { 443 transform: rotate(-90deg); 444 } 445 `,"closeBtn-position-left":t` 446 bottom: ${i[2]}; 447 right: 0; 448 transform: translate(100%, 0); 449 border-left: none; 450 border-right: ${s(r.gray[400],r.darkGray[300])} 1px solid; 451 border-top: ${s(r.gray[400],r.darkGray[300])} 1px solid; 452 border-bottom: ${s(r.gray[400],r.darkGray[300])} 1px solid; 453 border-radius: 0px ${a.radius.sm} ${a.radius.sm} 0px; 454 padding: ${i[1.5]} ${i[1]} ${i[1.5]} ${i[.5]}; 455 456 &::after { 457 content: ' '; 458 position: absolute; 459 right: 100%; 460 height: calc(100% + ${i[5]}); 461 width: ${i[1.5]}; 462 } 463 464 & svg { 465 transform: rotate(90deg); 466 } 467 `,queriesContainer:t` 468 flex: 1 1 700px; 469 background-color: ${s(r.gray[50],r.darkGray[700])}; 470 display: flex; 471 flex-direction: column; 472 & * { 473 font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif; 474 } 475 `,dragHandle:t` 476 position: absolute; 477 transition: background-color 0.125s ease; 478 &:hover { 479 background-color: ${r.purple[400]}${s("",o[90])}; 480 } 481 &:focus { 482 outline: none; 483 background-color: ${r.purple[400]}${s("",o[90])}; 484 } 485 &:focus-visible { 486 outline: 2px solid ${r.blue[800]}; 487 outline-offset: -2px; 488 background-color: ${r.purple[400]}${s("",o[90])}; 489 } 490 z-index: 4; 491 `,"dragHandle-position-top":t` 492 bottom: 0; 493 width: 100%; 494 height: 3px; 495 cursor: ns-resize; 496 `,"dragHandle-position-bottom":t` 497 top: 0; 498 width: 100%; 499 height: 3px; 500 cursor: ns-resize; 501 `,"dragHandle-position-right":t` 502 left: 0; 503 width: 3px; 504 height: 100%; 505 cursor: ew-resize; 506 `,"dragHandle-position-left":t` 507 right: 0; 508 width: 3px; 509 height: 100%; 510 cursor: ew-resize; 511 `,row:t` 512 display: flex; 513 justify-content: space-between; 514 align-items: center; 515 padding: ${Yi.size[2]} ${Yi.size[2.5]}; 516 gap: ${Yi.size[2.5]}; 517 border-bottom: ${s(r.gray[300],r.darkGray[500])} 1px solid; 518 align-items: center; 519 & > button { 520 padding: 0; 521 background: transparent; 522 border: none; 523 display: flex; 524 gap: ${i[.5]}; 525 flex-direction: column; 526 } 527 `,logoAndToggleContainer:t` 528 display: flex; 529 gap: ${Yi.size[3]}; 530 align-items: center; 531 `,logo:t` 532 cursor: pointer; 533 display: flex; 534 flex-direction: column; 535 background-color: transparent; 536 border: none; 537 gap: ${Yi.size[.5]}; 538 padding: 0px; 539 &:hover { 540 opacity: 0.7; 541 } 542 &:focus-visible { 543 outline-offset: 4px; 544 border-radius: ${a.radius.xs}; 545 outline: 2px solid ${r.blue[800]}; 546 } 547 `,tanstackLogo:t` 548 font-size: ${n.size.md}; 549 font-weight: ${n.weight.bold}; 550 line-height: ${n.lineHeight.xs}; 551 white-space: nowrap; 552 color: ${s(r.gray[600],r.gray[300])}; 553 `,queryFlavorLogo:t` 554 font-weight: ${n.weight.semibold}; 555 font-size: ${n.size.xs}; 556 background: linear-gradient( 557 to right, 558 ${s("#ea4037, #ff9b11","#dd524b, #e9a03b")} 559 ); 560 background-clip: text; 561 -webkit-background-clip: text; 562 line-height: 1; 563 -webkit-text-fill-color: transparent; 564 white-space: nowrap; 565 `,queryStatusContainer:t` 566 display: flex; 567 gap: ${Yi.size[2]}; 568 height: min-content; 569 `,queryStatusTag:t` 570 display: flex; 571 gap: ${Yi.size[1.5]}; 572 box-sizing: border-box; 573 height: ${Yi.size[6.5]}; 574 background: ${s(r.gray[50],r.darkGray[500])}; 575 color: ${s(r.gray[700],r.gray[300])};
576 border-radius: ${Yi.border.radius.sm}; 577 font-size: ${n.size.sm}; 578 padding: ${Yi.size[1]}; 579 padding-left: ${Yi.size[1.5]}; 580 align-items: center; 581 font-weight: ${n.weight.medium}; 582 border: ${s("1px solid "+r.gray[300],"1px solid transparent")}; 583 user-select: none; 584 position: relative; 585 &:focus-visible { 586 outline-offset: 2px; 587 outline: 2px solid ${r.blue[800]}; 588 } 589 `,queryStatusTagLabel:t` 590 font-size: ${n.size.xs}; 591 `,queryStatusCount:t` 592 font-size: ${n.size.xs}; 593 padding: 0 5px; 594 display: flex; 595 align-items: center; 596 justify-content: center; 597 color: ${s(r.gray[500],r.gray[400])}; 598 background-color: ${s(r.gray[200],r.darkGray[300])}; 599 border-radius: 2px; 600 font-variant-numeric: tabular-nums; 601 height: ${Yi.size[4.5]}; 602 `,statusTooltip:t` 603 position: absolute; 604 z-index: 1; 605 background-color: ${s(r.gray[50],r.darkGray[500])}; 606 top: 100%; 607 left: 50%; 608 transform: translate(-50%, calc(${Yi.size[2]})); 609 padding: ${Yi.size[.5]} ${Yi.size[2]}; 610 border-radius: ${Yi.border.radius.sm}; 611 font-size: ${n.size.xs}; 612 border: 1px solid ${s(r.gray[400],r.gray[600])}; 613 color: ${s(r.gray[600],r.gray[300])}; 614 615 &::before { 616 top: 0px; 617 content: ' '; 618 display: block; 619 left: 50%; 620 transform: translate(-50%, -100%); 621 position: absolute; 622 border-color: transparent transparent 623 ${s(r.gray[400],r.gray[600])} transparent; 624 border-style: solid; 625 border-width: 7px; 626 /* transform: rotate(180deg); */ 627 } 628 629 &::after { 630 top: 0px; 631 content: ' '; 632 display: block; 633 left: 50%; 634 transform: translate(-50%, calc(-100% + 2px)); 635 position: absolute; 636 border-color: transparent transparent 637 ${s(r.gray[100],r.darkGray[500])} transparent; 638 border-style: solid; 639 border-width: 7px; 640 } 641 `,filtersContainer:t` 642 display: flex; 643 gap: ${Yi.size[2]}; 644 & > button { 645 cursor: pointer; 646 padding: ${Yi.size[.5]} ${Yi.size[1.5]} ${Yi.size[.5]} 647 ${Yi.size[2]}; 648 border-radius: ${Yi.border.radius.sm}; 649 background-color: ${s(r.gray[100],r.darkGray[400])}; 650 border: 1px solid ${s(r.gray[300],r.darkGray[200])}; 651 color: ${s(r.gray[700],r.gray[300])}; 652 font-size: ${n.size.xs}; 653 display: flex; 654 align-items: center; 655 line-height: ${n.lineHeight.sm}; 656 gap: ${Yi.size[1.5]}; 657 max-width: 160px; 658 &:focus-visible { 659 outline-offset: 2px; 660 border-radius: ${a.radius.xs}; 661 outline: 2px solid ${r.blue[800]}; 662 } 663 & svg { 664 width: ${Yi.size[3]}; 665 height: ${Yi.size[3]}; 666 color: ${s(r.gray[500],r.gray[400])}; 667 } 668 } 669 `,filterInput:t` 670 padding: ${i[.5]} ${i[2]}; 671 border-radius: ${Yi.border.radius.sm}; 672 background-color: ${s(r.gray[100],r.darkGray[400])}; 673 display: flex; 674 box-sizing: content-box; 675 align-items: center; 676 gap: ${Yi.size[1.5]}; 677 max-width: 160px; 678 min-width: 100px; 679 border: 1px solid ${s(r.gray[300],r.darkGray[200])}; 680 height: min-content; 681 color: ${s(r.gray[600],r.gray[400])}; 682 & > svg { 683 width: ${i[3]}; 684 height: ${i[3]}; 685 } 686 & input { 687 font-size: ${n.size.xs}; 688 width: 100%; 689 background-color: ${s(r.gray[100],r.darkGray[400])}; 690 border: none; 691 padding: 0; 692 line-height: ${n.lineHeight.sm}; 693 color: ${s(r.gray[700],r.gray[300])}; 694 &::placeholder { 695 color: ${s(r.gray[700],r.gray[300])}; 696 } 697 &:focus { 698 outline: none; 699 } 700 } 701 702 &:focus-within { 703 outline-offset: 2px; 704 border-radius: ${a.radius.xs}; 705 outline: 2px solid ${r.blue[800]}; 706 } 707 `,filterSelect:t` 708 padding: ${Yi.size[.5]} ${Yi.size[2]}; 709 border-radius: ${Yi.border.radius.sm}; 710 background-color: ${s(r.gray[100],r.darkGray[400])}; 711 display: flex; 712 align-items: center; 713 gap: ${Yi.size[1.5]}; 714 box-sizing: content-box; 715 max-width: 160px; 716 border: 1px solid ${s(r.gray[300],r.darkGray[200])}; 717 height: min-content; 718 & > svg { 719 color: ${s(r.gray[600],r.gray[400])}; 720 width: ${Yi.size[2]}; 721 height: ${Yi.size[2]}; 722 } 723 & > select { 724 appearance: none; 725 color: ${s(r.gray[700],r.gray[300])}; 726 min-width: 100px; 727 line-height: ${n.lineHeight.sm}; 728 font-size: ${n.size.xs}; 729 background-color: ${s(r.gray[100],r.darkGray[400])}; 730 border: none; 731 &:focus { 732 outline: none; 733 } 734 } 735 &:focus-within { 736 outline-offset: 2px; 737 border-radius: ${a.radius.xs}; 738 outline: 2px solid ${r.blue[800]}; 739 } 740 `,actionsContainer:t` 741 display: flex; 742 gap: ${Yi.size[2]}; 743 `,actionsBtn:t`
744 border-radius: ${Yi.border.radius.sm}; 745 background-color: ${s(r.gray[100],r.darkGray[400])}; 746 border: 1px solid ${s(r.gray[300],r.darkGray[200])}; 747 width: ${Yi.size[6.5]}; 748 height: ${Yi.size[6.5]}; 749 justify-content: center; 750 display: flex; 751 align-items: center; 752 gap: ${Yi.size[1.5]}; 753 max-width: 160px; 754 cursor: pointer; 755 padding: 0; 756 &:hover { 757 background-color: ${s(r.gray[200],r.darkGray[500])}; 758 } 759 & svg { 760 color: ${s(r.gray[700],r.gray[300])}; 761 width: ${Yi.size[3]}; 762 height: ${Yi.size[3]}; 763 } 764 &:focus-visible { 765 outline-offset: 2px; 766 border-radius: ${a.radius.xs}; 767 outline: 2px solid ${r.blue[800]}; 768 } 769 `,actionsBtnOffline:t` 770 & svg { 771 stroke: ${s(r.yellow[700],r.yellow[500])}; 772 fill: ${s(r.yellow[700],r.yellow[500])}; 773 } 774 `,overflowQueryContainer:t` 775 flex: 1; 776 overflow-y: auto; 777 & > div { 778 display: flex; 779 flex-direction: column; 780 } 781 `,queryRow:t` 782 display: flex; 783 align-items: center; 784 padding: 0; 785 border: none; 786 cursor: pointer; 787 color: ${s(r.gray[700],r.gray[300])}; 788 background-color: ${s(r.gray[50],r.darkGray[700])}; 789 line-height: 1; 790 &:focus { 791 outline: none; 792 } 793 &:focus-visible { 794 outline-offset: -2px; 795 border-radius: ${a.radius.xs}; 796 outline: 2px solid ${r.blue[800]}; 797 } 798 &:hover .tsqd-query-hash { 799 background-color: ${s(r.gray[200],r.darkGray[600])}; 800 } 801 802 & .tsqd-query-observer-count { 803 padding: 0 ${Yi.size[1]}; 804 user-select: none; 805 min-width: ${Yi.size[6.5]}; 806 align-self: stretch; 807 display: flex; 808 align-items: center; 809 justify-content: center; 810 font-size: ${n.size.xs}; 811 font-weight: ${n.weight.medium}; 812 border-bottom-width: 1px; 813 border-bottom-style: solid; 814 border-bottom: 1px solid ${s(r.gray[300],r.darkGray[700])}; 815 } 816 & .tsqd-query-hash { 817 user-select: text; 818 font-size: ${n.size.xs}; 819 display: flex; 820 align-items: center; 821 min-height: ${Yi.size[6]}; 822 flex: 1; 823 padding: ${Yi.size[1]} ${Yi.size[2]}; 824 font-family: 825 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 826 'Liberation Mono', 'Courier New', monospace; 827 border-bottom: 1px solid ${s(r.gray[300],r.darkGray[400])}; 828 text-align: left; 829 text-overflow: clip; 830 word-break: break-word; 831 } 832 833 & .tsqd-query-disabled-indicator { 834 align-self: stretch; 835 display: flex; 836 align-items: center; 837 padding: 0 ${Yi.size[2]}; 838 color: ${s(r.gray[800],r.gray[300])}; 839 background-color: ${s(r.gray[300],r.darkGray[600])}; 840 border-bottom: 1px solid ${s(r.gray[300],r.darkGray[400])}; 841 font-size: ${n.size.xs}; 842 } 843 844 & .tsqd-query-static-indicator { 845 align-self: stretch; 846 display: flex; 847 align-items: center; 848 padding: 0 ${Yi.size[2]}; 849 color: ${s(r.teal[800],r.teal[300])}; 850 background-color: ${s(r.teal[100],r.teal[900])}; 851 border-bottom: 1px solid ${s(r.teal[300],r.teal[700])}; 852 font-size: ${n.size.xs}; 853 } 854 `,selectedQueryRow:t` 855 background-color: ${s(r.gray[200],r.darkGray[500])}; 856 `,detailsContainer:t` 857 flex: 1 1 700px; 858 background-color: ${s(r.gray[50],r.darkGray[700])}; 859 color: ${s(r.gray[700],r.gray[300])}; 860 font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif; 861 display: flex; 862 flex-direction: column; 863 overflow-y: auto; 864 display: flex; 865 text-align: left; 866 `,detailsHeader:t` 867 font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif; 868 position: sticky; 869 top: 0; 870 z-index: 2; 871 background-color: ${s(r.gray[200],r.darkGray[600])}; 872 padding: ${Yi.size[1.5]} ${Yi.size[2]}; 873 font-weight: ${n.weight.medium}; 874 font-size: ${n.size.xs}; 875 line-height: ${n.lineHeight.xs}; 876 text-align: left; 877 `,detailsBody:t` 878 margin: ${Yi.size[1.5]} 0px ${Yi.size[2]} 0px; 879 & > div { 880 display: flex; 881 align-items: stretch; 882 padding: 0 ${Yi.size[2]}; 883 line-height: ${n.lineHeight.sm}; 884 justify-content: space-between; 885 & > span { 886 font-size: ${n.size.xs}; 887 } 888 & > span:nth-child(2) { 889 font-variant-numeric: tabular-nums; 890 } 891 } 892 893 & >
893 div:first-child { 894 margin-bottom: ${Yi.size[1.5]}; 895 } 896 897 & code { 898 font-family: 899 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 900 'Liberation Mono', 'Courier New', monospace; 901 margin: 0; 902 font-size: ${n.size.xs}; 903 line-height: ${n.lineHeight.xs}; 904 max-width: 100%; 905 white-space: pre-wrap; 906 overflow-wrap: anywhere; 907 word-break: break-word; 908 } 909 910 & pre { 911 margin: 0; 912 display: flex; 913 align-items: center; 914 } 915 `,queryDetailsStatus:t` 916 border: 1px solid ${r.darkGray[200]}; 917 border-radius: ${Yi.border.radius.sm}; 918 font-weight: ${n.weight.medium}; 919 padding: ${Yi.size[1]} ${Yi.size[2.5]}; 920 `,actionsBody:t` 921 flex-wrap: wrap; 922 margin: ${Yi.size[2]} 0px ${Yi.size[2]} 0px; 923 display: flex; 924 gap: ${Yi.size[2]}; 925 padding: 0px ${Yi.size[2]}; 926 & > button { 927 font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif; 928 font-size: ${n.size.xs}; 929 padding: ${Yi.size[1]} ${Yi.size[2]}; 930 display: flex; 931 border-radius: ${Yi.border.radius.sm}; 932 background-color: ${s(r.gray[100],r.darkGray[600])}; 933 border: 1px solid ${s(r.gray[300],r.darkGray[400])}; 934 align-items: center; 935 gap: ${Yi.size[2]}; 936 font-weight: ${n.weight.medium}; 937 line-height: ${n.lineHeight.xs}; 938 cursor: pointer; 939 &:focus-visible { 940 outline-offset: 2px; 941 border-radius: ${a.radius.xs}; 942 outline: 2px solid ${r.blue[800]}; 943 } 944 &:hover { 945 background-color: ${s(r.gray[200],r.darkGray[500])}; 946 } 947 948 &:disabled { 949 opacity: 0.6; 950 cursor: not-allowed; 951 } 952 953 & > span { 954 width: ${i[1.5]}; 955 height: ${i[1.5]}; 956 border-radius: ${Yi.border.radius.full}; 957 } 958 } 959 `,actionsSelect:t` 960 font-size: ${n.size.xs}; 961 padding: ${Yi.size[.5]} ${Yi.size[2]}; 962 display: flex; 963 border-radius: ${Yi.border.radius.sm}; 964 overflow: hidden; 965 background-color: ${s(r.gray[100],r.darkGray[600])}; 966 border: 1px solid ${s(r.gray[300],r.darkGray[400])}; 967 align-items: center; 968 gap: ${Yi.size[2]}; 969 font-weight: ${n.weight.medium}; 970 line-height: ${n.lineHeight.sm}; 971 color: ${s(r.red[500],r.red[400])}; 972 cursor: pointer; 973 position: relative; 974 &:hover { 975 background-color: ${s(r.gray[200],r.darkGray[500])}; 976 } 977 & > span { 978 width: ${i[1.5]}; 979 height: ${i[1.5]}; 980 border-radius: ${Yi.border.radius.full}; 981 } 982 &:focus-within { 983 outline-offset: 2px; 984 border-radius: ${a.radius.xs}; 985 outline: 2px solid ${r.blue[800]}; 986 } 987 & select { 988 position: absolute; 989 top: 0; 990 left: 0; 991 width: 100%; 992 height: 100%; 993 appearance: none; 994 background-color: transparent; 995 border: none; 996 color: transparent; 997 outline: none; 998 } 999 1000 & svg path { 1001 stroke: ${Yi.colors.red[400]}; 1002 } 1003 & svg { 1004 width: ${Yi.size[2]}; 1005 height: ${Yi.size[2]}; 1006 } 1007 `,settingsMenu:t` 1008 display: flex; 1009 & * { 1010 font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif; 1011 } 1012 flex-direction: column; 1013 gap: ${i[.5]}; 1014 border-radius: ${Yi.border.radius.sm}; 1015 border: 1px solid ${s(r.gray[300],r.gray[700])}; 1016 background-color: ${s(r.gray[50],r.darkGray[600])}; 1017 font-size: ${n.size.xs}; 1018 color: ${s(r.gray[700],r.gray[300])}; 1019 z-index: 99999; 1020 min-width: 120px; 1021 padding: ${i[.5]}; 1022 `,settingsSubTrigger:t` 1023 display: flex; 1024 align-items: center; 1025 justify-content: space-between; 1026 border-radius: ${Yi.border.radius.xs}; 1027 padding: ${Yi.size[1]} ${Yi.size[1]}; 1028 cursor: pointer; 1029 background-color: transparent; 1030 border: none; 1031 color: ${s(r.gray[700],r.gray[300])}; 1032 & svg { 1033 color: ${s(r.gray[600],r.gray[400])}; 1034 transform: rotate(-90deg); 1035 width: ${Yi.size[2]}; 1036 height: ${Yi.size[2]}; 1037 } 1038 &:hover { 1039 background-color: ${s(r.gray[200],r.darkGray[500])}; 1040 } 1041 &:focus-visible { 1042 outline-offset: 2px; 1043 outline: 2px solid ${r.blue[800]}; 1044 } 1045 &.data-disabled { 1046 opacity: 0.6;
1047 cursor: not-allowed; 1048 } 1049 `,settingsMenuHeader:t` 1050 padding: ${Yi.size[1]} ${Yi.size[1]}; 1051 font-weight: ${n.weight.medium}; 1052 border-bottom: 1px solid ${s(r.gray[300],r.darkGray[400])}; 1053 color: ${s(r.gray[500],r.gray[400])}; 1054 font-size: ${n.size.xs}; 1055 `,settingsSubButton:t` 1056 display: flex; 1057 align-items: center; 1058 justify-content: space-between; 1059 color: ${s(r.gray[700],r.gray[300])}; 1060 font-size: ${n.size.xs}; 1061 border-radius: ${Yi.border.radius.xs}; 1062 padding: ${Yi.size[1]} ${Yi.size[1]}; 1063 cursor: pointer; 1064 background-color: transparent; 1065 border: none; 1066 & svg { 1067 color: ${s(r.gray[600],r.gray[400])}; 1068 } 1069 &:hover { 1070 background-color: ${s(r.gray[200],r.darkGray[500])}; 1071 } 1072 &:focus-visible { 1073 outline-offset: 2px; 1074 outline: 2px solid ${r.blue[800]}; 1075 } 1076 &[data-checked] { 1077 background-color: ${s(r.purple[100],r.purple[900])}; 1078 color: ${s(r.purple[700],r.purple[300])}; 1079 & svg { 1080 color: ${s(r.purple[700],r.purple[300])}; 1081 } 1082 &:hover { 1083 background-color: ${s(r.purple[100],r.purple[900])}; 1084 } 1085 } 1086 `,viewToggle:t` 1087 border-radius: ${Yi.border.radius.sm}; 1088 background-color: ${s(r.gray[200],r.darkGray[600])}; 1089 border: 1px solid ${s(r.gray[300],r.darkGray[200])}; 1090 display: flex; 1091 padding: 0; 1092 font-size: ${n.size.xs}; 1093 color: ${s(r.gray[700],r.gray[300])}; 1094 overflow: hidden; 1095 1096 &:has(:focus-visible) { 1097 outline: 2px solid ${r.blue[800]}; 1098 } 1099 1100 & .tsqd-radio-toggle { 1101 opacity: 0.5; 1102 display: flex; 1103 & label { 1104 display: flex; 1105 align-items: center; 1106 cursor: pointer; 1107 line-height: ${n.lineHeight.md}; 1108 } 1109 1110 & label:hover { 1111 background-color: ${s(r.gray[100],r.darkGray[500])}; 1112 } 1113 } 1114 1115 & > [data-checked] { 1116 opacity: 1; 1117 background-color: ${s(r.gray[100],r.darkGray[400])}; 1118 & label:hover { 1119 background-color: ${s(r.gray[100],r.darkGray[400])}; 1120 } 1121 } 1122 1123 & .tsqd-radio-toggle:first-child { 1124 & label { 1125 padding: 0 ${Yi.size[1.5]} 0 ${Yi.size[2]}; 1126 } 1127 border-right: 1px solid ${s(r.gray[300],r.darkGray[200])}; 1128 } 1129 1130 & .tsqd-radio-toggle:nth-child(2) { 1131 & label { 1132 padding: 0 ${Yi.size[2]} 0 ${Yi.size[1.5]}; 1133 } 1134 } 1135 `,devtoolsEditForm:t` 1136 padding: ${i[2]}; 1137 & > [data-error='true'] { 1138 outline: 2px solid ${s(r.red[200],r.red[800])}; 1139 outline-offset: 2px; 1140 border-radius: ${a.radius.xs}; 1141 } 1142 `,devtoolsEditTextarea:t` 1143 width: 100%; 1144 max-height: 500px; 1145 font-family: 'Fira Code', monospace; 1146 font-size: ${n.size.xs}; 1147 border-radius: ${a.radius.sm}; 1148 field-sizing: content; 1149 padding: ${i[2]}; 1150 background-color: ${s(r.gray[100],r.darkGray[800])}; 1151 color: ${s(r.gray[900],r.gray[100])}; 1152 border: 1px solid ${s(r.gray[200],r.gray[700])}; 1153 resize: none; 1154 &:focus { 1155 outline-offset: 2px; 1156 border-radius: ${a.radius.xs}; 1157 outline: 2px solid ${s(r.blue[200],r.blue[800])}; 1158 } 1159 `,devtoolsEditFormActions:t` 1160 display: flex; 1161 justify-content: space-between; 1162 gap: ${i[2]}; 1163 align-items: center; 1164 padding-top: ${i[1]}; 1165 font-size: ${n.size.xs}; 1166 `,devtoolsEditFormError:t` 1167 color: ${s(r.red[700],r.red[500])}; 1168 `,devtoolsEditFormActionContainer:t` 1169 display: flex; 1170 gap: ${i[2]}; 1171 `,devtoolsEditFormAction:t` 1172 font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif; 1173 font-size: ${n.size.xs}; 1174 padding: ${i[1]} ${Yi.size[2]}; 1175 display: flex; 1176 border-radius: ${a.radius.sm}; 1177 background-color: ${s(r.gray[100],r.darkGray[600])}; 1178 border: 1px solid ${s(r.gray[300],r.darkGray[400])}; 1179 align-items: center; 1180 gap: ${i[2]}; 1181 font-weight: ${n.weight.medium}; 1182 line-height: ${n.lineHeight.xs}; 1183 cursor: pointer; 1184 &:focus-visible { 1185 outline-offset: 2px; 1186 border-radius: ${a.radius.xs}; 1187 outline: 2px solid ${r.blue[800]}; 1188 } 1189 &:hover { 1190 background-color: ${s(r.gray[200],r.darkGray[500])}; 1191 } 1192 1193 &:disabled { 1194 opacity: 0.6;
1195 cursor: not-allowed; 1196 } 1197 `}},Ra=e=>Ba("light",e),Va=e=>Ba("dark",e);(0,n.x)(["click","mousedown","keydown","input"]),r.d(t,["a",0,e=>{let[t,r]=(0,n.W)(null),i=()=>{let n=t();null!=n&&(n.close(),e.setLocalStore("pip_open","false"),r(null))},o=(i,o)=>{if(null!=t())return;let l=window.open("","TSQD-Devtools-Panel",`width=${i},height=${o},popup`);if(!l)throw new tl("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");l.document.head.innerHTML="",l.document.body.innerHTML="",(0,n.b)(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",(()=>{e.setLocalStore("pip_open","false"),r(null)})),[...(el().shadowDOMTarget||document).styleSheets].forEach((e=>{try{let t=[...e.cssRules].map((e=>e.cssText)).join(""),r=document.createElement("style"),n=e.ownerNode,i="";n&&"id"in n&&(i=n.id),i&&r.setAttribute("id",i),r.textContent=t,l.document.head.appendChild(r)}catch{let t=document.createElement("link");if(null==e.href)return;t.rel="stylesheet",t.type=e.type,t.media=e.media.toString(),t.href=e.href,l.document.head.appendChild(t)}})),(0,n.x)(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),r(l)};(0,n.B)((()=>{if("true"===(e.localStore.pip_open??"false")&&!e.disabled)try{o(Number(window.innerWidth),Number(e.localStore.height||500))}catch(t){if(t instanceof tl)return e.setLocalStore("pip_open","false"),void e.setLocalStore("open","false");throw t}})),(0,n.B)((()=>{let e=(el().shadowDOMTarget||document).querySelector("#_goober"),r=t();if(e&&r){let t=new MutationObserver((()=>{let t=(el().shadowDOMTarget||r.document).querySelector("#_goober");t&&(t.textContent=e.textContent)}));t.observe(e,{childList:!0,subtree:!0,characterDataOldValue:!0}),(0,n.X)((()=>{t.disconnect()}))}}));let l=(0,n.V)((()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:i,disabled:e.disabled??!1})));return(0,n.L)(rl.Provider,{value:l,get children(){return e.children}})},"i",0,il,"n",0,e=>{let t=ol(),r=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,i=(0,n.V)((()=>"dark"===t()?Va(r):Ra(r))),o=(0,n.V)((()=>el().onlineManager));(0,n.Z)((()=>{let e=o().subscribe((e=>{xa(!e)}));(0,n.X)((()=>{e()}))}));let l,a=nl(),s=(0,n.V)((()=>el().buttonPosition||"bottom-right")),d=(0,n.V)((()=>"true"===e.localStore.open||"false"!==e.localStore.open&&(el().initialIsOpen||!1))),u=(0,n.V)((()=>e.localStore.position||el().position||"bottom"));(0,n.B)((()=>{let t=l.parentElement,r=e.localStore.height||500,n=e.localStore.width||500,i=u();t.style.setProperty("--tsqd-panel-height",`${"top"===i?"-":""}${r}px`),t.style.setProperty("--tsqd-panel-width",`${"left"===i?"-":""}${n}px`)})),(0,n.Z)((()=>{let e=()=>{let e=l.parentElement,t=getComputedStyle(e).fontSize;e.style.setProperty("--tsqd-font-size",t)};e(),window.addEventListener("focus",e),(0,n.X)((()=>{window.removeEventListener("focus",e)}))}));let c=(0,n.V)((()=>e.localStore.pip_open??"false"));return[(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!!a().pipWindow))()&&"true"==c()},get children(){return(0,n.L)(n._,{get mount(){return a().pipWindow?.document.body},get children(){return(0,n.L)(ka,{get children(){return(0,n.L)($a,e)}})}})}}),(()=>{var t=Tl(),o=l;return"function"==typeof o?(0,n.k)(o,t):l=t,(0,n.S)(t,(0,n.L)(N,{name:"tsqd-panel-transition",get children(){return(0,n.L)(n.P,{get when(){return(0,n.C)((()=>!(!d()||a().pipWindow)))()&&"false"==c()},get children(){return(0,n.L)(Sa,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),(0,n.S)(t,(0,n.L)(N,{name:"tsqd-button-transition",get children(){return(0,n.L)(n.P,{get when(){return!d()},get children(){var t=El(),r=t.firstChild,o=r.nextSibling;return(0,n.S)(r,(0,n.L)(_o,{})),o.$$click=()=>e.setLocalStore("open","true"),(0,n.S)(o,(0,n.L)(_o,{})),(0,n.H)((()=>(0,n.y)(t,K(i().devtoolsBtn,i()[`devtoolsBtn-position-${s()}`],"tsqd-open-btn-container")))),t}})}}),null),(0,n.H)((()=>(0,n.y)(t,K(r` 1198 & .tsqd-panel-transition-exit-active, 1199 & .tsqd-panel-transition-enter-active { 1200 transition: 1201 opacity 0.3s, 1202 transform 0.3s; 1203 } 1204 1205 & .tsqd-panel-transition-exit-to, 1206 & .tsqd-panel-transition-enter { 1207 ${"top"===u()||"bottom"===u()?"transform: translateY(var(--tsqd-panel-height));":"transform: translateX(var(--tsqd-panel-width));"} 1208 } 1209 1210 & .tsqd-button-transition-exit-active, 1211 & .tsqd-button-transition-enter-active { 1212 transition: 1213 opacity 0.3s, 1214 transform 0.3s; 1215 opacity: 1; 1216 } 1217 1218 & .tsqd-button-transition-exit-to, 1219 & .tsqd-button-transition-enter { 1220 transform: ${"relative"===s()?"none;":"top-left"===s()?"translateX(-72px);":"top-right"===s()?"translateX(72px);":"translateY(72px);"}; 1221 opacity: 0; 1222 } 1223 `,"tsqd-transitions-container")))),t})()]},"o",0,Yo,"r",0,e=>{let t,r=ol(),i=el().shadowDOMTarget?P.bind({target:el().shadowDOMTarget}):P,o=(0,n.V)((()=>"dark"===r()?Va(i):Ra(i)));(0,n.Z)((()=>{Z(t,(({width:e},r)=>{r===t&&ma(e)}))}));let l=()=>{let{colors:e}=Yi,t=(e,t)=>"dark"===r()?t:e;return ba()<796?i` 1224 flex-direction: column; 1225 background-color: ${t(e.gray[300],e.gray[600])}; 1226 `:i` 1227 flex-direction: row; 1228 background-color: ${t(e.gray[200],e.darkGray[900])}; 1229 `};return(()=>{var r=Ol(),a=t;return"function"==typeof a?(0,n.k)(a,r):t=r,(0,n.S)(r,(()=>e.children)),(0,n.H)((()=>(0,n.y)(r,K(o().parentPanel,l(),{[i` 1230 min-width: min-content; 1231 `]:ba()<700},"tsqd-main-panel")))),r})()},"t",0,$a])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.