usage-board 0.0.0 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/bin/cli.js +3 -0
- package/dist/index.mjs +9926 -0
- package/dist/nitro.json +15 -0
- package/dist/public/200.html +1 -0
- package/dist/public/404.html +1 -0
- package/dist/public/_nuxt/ByWgBgZ8.js +119 -0
- package/dist/public/_nuxt/CBiuWPro.js +282 -0
- package/dist/public/_nuxt/Cmq4CfR_.js +1 -0
- package/dist/public/_nuxt/CvR6h1He.js +1 -0
- package/dist/public/_nuxt/DCeZWdZx.js +105 -0
- package/dist/public/_nuxt/DJRZ2xy0.js +3 -0
- package/dist/public/_nuxt/DRIVB4-c.js +9 -0
- package/dist/public/_nuxt/R7A4Dcdm.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -0
- package/dist/public/_nuxt/builds/meta/1dd71c56-40de-4e8e-9a95-0f4dceec1121.json +1 -0
- package/dist/public/_nuxt/entry.DrzELaFO.css +1 -0
- package/dist/public/_nuxt/error-404.B0EXnOcv.css +1 -0
- package/dist/public/_nuxt/error-500.CnSNZoEG.css +1 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/index.html +1 -0
- package/dist/public/logo.svg +4 -0
- package/dist/public/robots.txt +2 -0
- package/package.json +104 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as a,o as n,c,a as t,_ as r,g as x}from"./DRIVB4-c.js";const l={class:"grow container mx-auto"},_=a({name:"ComingSoon",__name:"ComingSoon",setup(o){return(s,e)=>(n(),c("div",l,[...e[0]||(e[0]=[t("div",{class:"flex justify-center items-center flex-col text-center h-full gap-6"},[t("h2",{class:"text-4xl md:text-5xl lg:text-6xl font-bold text-balance max-w-4xl"}," The future is almost here "),t("p",{class:"text-lg md:text-xl text-balance max-w-2xl text-muted-foreground"}," We're putting the finishing touches on something extraordinary. Get ready for a new experience. ")],-1)])]))}}),i=Object.assign(_,{__name:"ComingSoon"}),m={};function f(o,s){const e=i;return n(),x(e)}const d=r(m,[["render",f]]);export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o,u as s,o as a,c as i,a as t,t as r}from"./DRIVB4-c.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},l={class:"max-w-520px text-center"},c=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:500},statusText:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(h,m)=>(a(),i("div",u,[t("div",l,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.status)},null,8,c),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusText)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},b=o(f,[["__scopeId","data-v-784a2264"]]);export{b as default};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import{f as d,o as a,g as u,w as g,J as C,U as b,I as c,P as L,i as h,W as R,X as $,c as m,a7 as G,V as y,aa as Z,ab as D,b as f,e as k,a9 as F,t as S,Y as z,ac as N,a as s,T,C as j,a3 as A,ad as V,ae as q,Z as M,$ as P,af as E,ag as H,d as w,_ as J}from"./DRIVB4-c.js";var K=d({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(l){const e=l,n=["horizontal","vertical"];function t(i){return n.includes(i)}const r=h(()=>t(e.orientation)?e.orientation:"horizontal"),o=h(()=>r.value==="vertical"?e.orientation:void 0),_=h(()=>e.decorative?{role:"none"}:{"aria-orientation":o.value,role:"separator"});return(i,v)=>(a(),u(c(L),b({as:i.as,"as-child":i.asChild,"data-orientation":r.value},_.value),{default:g(()=>[C(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),W=K,X=d({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(l){const e=l;return(n,t)=>(a(),u(W,R($(e)),{default:g(()=>[C(n.$slots,"default")]),_:3},16))}}),Y=X;const Q=d({__name:"Skeleton",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(l){const e=l;return(n,t)=>(a(),m("div",{"data-slot":"skeleton",class:G(c(y)("animate-pulse rounded-md bg-primary/10",e.class))},null,2))}}),e1={key:1,class:"text-muted-foreground w-8 text-xs tabular-nums"},t1=d({__name:"GitHubLink",setup(l){const e=Z(),{data:n,pending:t}=D(`https://ungh.cc/repos/${e.github.repo}`,"$5jzG0y0vUx"),r=h(()=>{const o=n.value?.repo?.stars;return o?o>=1e3?`${(o/1e3).toFixed(1)}k`:o.toLocaleString():"∞"});return(o,_)=>{const i=F,v=Q,x=k,B=z;return a(),u(B,{"as-child":"",class:"h-8 shadow-none",size:"sm",variant:"ghost"},{default:g(()=>[f(x,{to:c(e).github.link,rel:"noreferrer",target:"_blank"},{default:g(()=>[f(i,{name:"mdi:github"}),c(t)?(a(),u(v,{key:0,class:"h-4 w-8"})):(a(),m("span",e1,S(c(r)),1))]),_:1},8,["to"])]),_:1})}}}),n1=Object.assign(t1,{__name:"GitHubLink"}),o1=d({__name:"ModeSwitcher",setup(l){const e=N({selector:"html",attribute:"class",storageKey:"app-color-mode",onChanged(n,t){const r=document,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!r.startViewTransition||o){t(n);return}r.startViewTransition(()=>{t(n)})}});return(n,t)=>{const r=F,o=z;return a(),u(o,{variant:"ghost",size:"icon",class:"group/toggle extend-touch-target size-8",title:"Toggle theme",onClick:t[0]||(t[0]=_=>e.value=c(e)==="light"?"dark":"light")},{default:g(()=>[c(e)==="dark"?(a(),u(r,{key:0,name:"lucide:moon",mode:"svg"})):(a(),u(r,{key:1,name:"lucide:sun",mode:"svg"})),t[1]||(t[1]=s("span",{class:"sr-only"},"Toggle theme",-1))]),_:1})}}}),a1=Object.assign(o1,{__name:"ModeSwitcher"}),l1=d({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(l){const e=l,n=T(e,"class");return(t,r)=>(a(),u(c(Y),b({"data-slot":"separator"},c(n),{class:c(y)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e.class)}),null,16,["class"]))}}),r1={claude_code:'<svg fill="#D97757" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Claude</title><path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"/></svg>',codex:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd">
|
|
2
|
+
<title>Codex (OpenAI)</title>
|
|
3
|
+
<path clip-rule="evenodd"
|
|
4
|
+
d="M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z" />
|
|
5
|
+
</svg>`,cursor:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Cursor</title><path d="M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"/></svg>',antigravity:`<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
+
<mask id="mask0_111_52" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="16" height="15">
|
|
7
|
+
<path d="M14.0777 13.984C14.945 14.6345 16.2458 14.2008 15.0533 13.0084C11.476 9.53949 12.2349 0 7.79033 0C3.34579 0 4.10461 9.53949 0.527295 13.0084C-0.773543 14.3092 0.635692 14.6345 1.50293 13.984C4.86344 11.7076 4.64663 7.69664 7.79033 7.69664C10.934 7.69664 10.7172 11.7076 14.0777 13.984Z" fill="black"/>
|
|
8
|
+
</mask>
|
|
9
|
+
<g mask="url(#mask0_111_52)">
|
|
10
|
+
<g filter="url(#filter0_f_111_52)">
|
|
11
|
+
<path d="M-0.658907 -3.2306C-0.922679 -0.906781 1.07986 1.22861 3.81388 1.53894C6.54791 1.84927 8.97811 0.217009 9.24188 -2.10681C9.50565 -4.43063 7.50312 -6.56602 4.76909 -6.87635C2.03506 -7.18667 -0.395135 -5.55442 -0.658907 -3.2306Z" fill="#FFE432"/>
|
|
12
|
+
</g>
|
|
13
|
+
<g filter="url(#filter1_f_111_52)">
|
|
14
|
+
<path d="M9.88233 4.36642C10.5673 7.31568 13.566 9.13902 16.5801 8.43896C19.5942 7.73891 21.4823 4.78056 20.7973 1.83131C20.1123 -1.11795 17.1136 -2.94128 14.0995 -2.24123C11.0854 -1.54118 9.19733 1.41717 9.88233 4.36642Z" fill="#FC413D"/>
|
|
15
|
+
</g>
|
|
16
|
+
<g filter="url(#filter2_f_111_52)">
|
|
17
|
+
<path d="M-8.05291 6.34512C-7.18736 9.38883 -3.28925 10.9473 0.653774 9.82598C4.5968 8.7047 7.09158 5.32829 6.22603 2.28458C5.36048 -0.759142 1.46236 -2.31758 -2.48066 -1.19629C-6.42368 -0.0750048 -8.91846 3.3014 -8.05291 6.34512Z" fill="#00B95C"/>
|
|
18
|
+
</g>
|
|
19
|
+
<g filter="url(#filter3_f_111_52)">
|
|
20
|
+
<path d="M-8.05291 6.34512C-7.18736 9.38883 -3.28925 10.9473 0.653774 9.82598C4.5968 8.7047 7.09158 5.32829 6.22603 2.28458C5.36048 -0.759142 1.46236 -2.31758 -2.48066 -1.19629C-6.42368 -0.0750048 -8.91846 3.3014 -8.05291 6.34512Z" fill="#00B95C"/>
|
|
21
|
+
</g>
|
|
22
|
+
<g filter="url(#filter4_f_111_52)">
|
|
23
|
+
<path d="M-4.92402 8.86746C-2.75421 11.0837 0.982691 10.9438 3.42257 8.55507C5.86246 6.1663 6.08139 2.43321 3.91158 0.216963C1.74177 -1.99928 -1.99513 -1.85942 -4.43501 0.529349C-6.87489 2.91812 -7.09383 6.65122 -4.92402 8.86746Z" fill="#00B95C"/>
|
|
24
|
+
</g>
|
|
25
|
+
<g filter="url(#filter5_f_111_52)">
|
|
26
|
+
<path d="M6.42819 17.2263C7.10197 20.1273 9.91278 21.953 12.7063 21.3042C15.4998 20.6553 17.2182 17.7777 16.5444 14.8767C15.8707 11.9757 13.0599 10.15 10.2663 10.7988C7.47281 11.4477 5.75441 14.3253 6.42819 17.2263Z" fill="#3186FF"/>
|
|
27
|
+
</g>
|
|
28
|
+
<g filter="url(#filter6_f_111_52)">
|
|
29
|
+
<path d="M1.66508 -5.94539C0.254213 -2.80254 1.7978 0.951609 5.11277 2.43973C8.42774 3.92785 12.2588 2.58642 13.6696 -0.556431C15.0805 -3.69928 13.5369 -7.45343 10.222 -8.94155C6.90699 -10.4297 3.07594 -9.08824 1.66508 -5.94539Z" fill="#FBBC04"/>
|
|
30
|
+
</g>
|
|
31
|
+
<g filter="url(#filter7_f_111_52)">
|
|
32
|
+
<path d="M-2.11428 24.3903C-5.52984 23.0496 0.307266 12.0177 1.75874 8.32038C3.21024 4.62304 7.15576 2.71272 10.5713 4.05357C13.9869 5.39442 18.0354 12.7796 16.5838 16.477C15.1323 20.1743 1.30129 25.7311 -2.11428 24.3903Z" fill="#3186FF"/>
|
|
33
|
+
</g>
|
|
34
|
+
<g filter="url(#filter8_f_111_52)">
|
|
35
|
+
<path d="M18.5814 10.6598C17.6669 11.727 15.2806 11.1828 13.2514 9.44417C11.2222 7.70556 10.3185 5.43097 11.2329 4.3637C12.1473 3.29646 14.5336 3.84069 16.5628 5.57928C18.592 7.31789 19.4958 9.59249 18.5814 10.6598Z" fill="#749BFF"/>
|
|
36
|
+
</g>
|
|
37
|
+
<g filter="url(#filter9_f_111_52)">
|
|
38
|
+
<path d="M11.7552 5.22715C15.5162 7.77124 19.8471 7.93838 21.4286 5.60045C23.0101 3.26253 21.2433 -0.695128 17.4823 -3.23922C13.7213 -5.78331 9.39044 -5.95044 7.80896 -3.61252C6.22747 -1.27459 7.99428 2.68306 11.7552 5.22715Z" fill="#FC413D"/>
|
|
39
|
+
</g>
|
|
40
|
+
<g filter="url(#filter10_f_111_52)">
|
|
41
|
+
<path d="M-0.592149 1.08896C-1.5239 3.33663 -1.21959 5.59799 0.0875457 6.13985C1.39468 6.68171 3.20966 5.29888 4.14141 3.05121C5.07316 0.803541 4.76885 -1.45782 3.46171 -1.99968C2.15458 -2.54154 0.339602 -1.15871 -0.592149 1.08896Z" fill="#FFEE48"/>
|
|
42
|
+
</g>
|
|
43
|
+
</g>
|
|
44
|
+
<defs>
|
|
45
|
+
<filter id="filter0_f_111_52" x="-2.12817" y="-8.35998" width="12.8393" height="11.383" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
46
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
47
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
48
|
+
<feGaussianBlur stdDeviation="0.722959" result="effect1_foregroundBlur_111_52"/>
|
|
49
|
+
</filter>
|
|
50
|
+
<filter id="filter1_f_111_52" x="2.75168" y="-9.38089" width="25.1763" height="24.96" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
51
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
52
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
53
|
+
<feGaussianBlur stdDeviation="3.49513" result="effect1_foregroundBlur_111_52"/>
|
|
54
|
+
</filter>
|
|
55
|
+
<filter id="filter2_f_111_52" x="-14.1669" y="-7.50196" width="26.5068" height="23.6338" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
56
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
57
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
58
|
+
<feGaussianBlur stdDeviation="2.97119" result="effect1_foregroundBlur_111_52"/>
|
|
59
|
+
</filter>
|
|
60
|
+
<filter id="filter3_f_111_52" x="-14.1669" y="-7.50196" width="26.5068" height="23.6338" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
61
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
62
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
63
|
+
<feGaussianBlur stdDeviation="2.97119" result="effect1_foregroundBlur_111_52"/>
|
|
64
|
+
</filter>
|
|
65
|
+
<filter id="filter4_f_111_52" x="-12.3607" y="-7.29981" width="23.709" height="23.6846" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
66
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
67
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
68
|
+
<feGaussianBlur stdDeviation="2.97119" result="effect1_foregroundBlur_111_52"/>
|
|
69
|
+
</filter>
|
|
70
|
+
<filter id="filter5_f_111_52" x="0.634962" y="5.02095" width="21.7027" height="22.0616" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
71
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
72
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
73
|
+
<feGaussianBlur stdDeviation="2.82351" result="effect1_foregroundBlur_111_52"/>
|
|
74
|
+
</filter>
|
|
75
|
+
<filter id="filter6_f_111_52" x="-3.97547" y="-14.6666" width="23.2857" height="22.8313" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
76
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
77
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
78
|
+
<feGaussianBlur stdDeviation="2.5589" result="effect1_foregroundBlur_111_52"/>
|
|
79
|
+
</filter>
|
|
80
|
+
<filter id="filter7_f_111_52" x="-7.7407" y="-0.945408" width="29.1982" height="30.1105" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
81
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
82
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
83
|
+
<feGaussianBlur stdDeviation="2.2852" result="effect1_foregroundBlur_111_52"/>
|
|
84
|
+
</filter>
|
|
85
|
+
<filter id="filter8_f_111_52" x="6.78641" y="-0.27231" width="16.2415" height="15.5681" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
86
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
87
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
88
|
+
<feGaussianBlur stdDeviation="2.04485" result="effect1_foregroundBlur_111_52"/>
|
|
89
|
+
</filter>
|
|
90
|
+
<filter id="filter9_f_111_52" x="3.77526" y="-8.71693" width="21.687" height="19.4212" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
91
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
92
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
93
|
+
<feGaussianBlur stdDeviation="1.72712" result="effect1_foregroundBlur_111_52"/>
|
|
94
|
+
</filter>
|
|
95
|
+
<filter id="filter10_f_111_52" x="-5.40727" y="-6.39238" width="14.3639" height="16.9254" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
96
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
97
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
98
|
+
<feGaussianBlur stdDeviation="2.1376" result="effect1_foregroundBlur_111_52"/>
|
|
99
|
+
</filter>
|
|
100
|
+
</defs>
|
|
101
|
+
</svg>
|
|
102
|
+
`,open_code:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd">
|
|
103
|
+
<title>opencode</title>
|
|
104
|
+
<path d="M16 6H8v12h8V6zm4 16H4V2h16v20z" />
|
|
105
|
+
</svg>`,copilot:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub Copilot</title><path d="M23.922 16.997C23.061 18.492 18.063 22.02 12 22.02 5.937 22.02.939 18.492.078 16.997A.641.641 0 0 1 0 16.741v-2.869a.883.883 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.098 10.098 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952C7.255 2.937 9.248 1.98 11.978 1.98c2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.841.841 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256Zm-11.75-5.992h-.344a4.359 4.359 0 0 1-.355.508c-.77.947-1.918 1.492-3.508 1.492-1.725 0-2.989-.359-3.782-1.259a2.137 2.137 0 0 1-.085-.104L4 11.746v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.359 4.359 0 0 1-.355-.508Zm2.328 3.25c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm-5 0c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm3.313-6.185c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z"/></svg>',gemini:'<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Gemini</title><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="#3186FF"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-0-_R_0_)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-1-_R_0_)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-2-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-0-_R_0_" x1="7" x2="11" y1="15.5" y2="12"><stop stop-color="#08B962"></stop><stop offset="1" stop-color="#08B962" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-1-_R_0_" x1="8" x2="11.5" y1="5.5" y2="11"><stop stop-color="#F94543"></stop><stop offset="1" stop-color="#F94543" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-2-_R_0_" x1="3.5" x2="17.5" y1="13.5" y2="12"><stop stop-color="#FABC12"></stop><stop offset=".46" stop-color="#FABC12" stop-opacity="0"></stop></linearGradient></defs></svg>',qwen_code:'<svg xmlns="http://www.w3.org/2000/svg" width="518.08" height="512" viewBox="0 0 256 253"><path fill="#623ae7" d="M129.263 0a6.75 6.75 0 0 1 5.88 3.374l15.256 26.424l65.258-.482a6.75 6.75 0 0 1 5.892 3.373l16.843 29.172a6.75 6.75 0 0 1-.038 6.811l-15.569 26.29a6.7 6.7 0 0 1-.887 1.182l33.195 56.28a6.75 6.75 0 0 1 .021 6.72l-16.94 29.706a6.75 6.75 0 0 1-5.86 3.405h-30.513l-32.21 56.756a6.75 6.75 0 0 1-5.868 3.417h-33.686a6.75 6.75 0 0 1-5.88-3.438l-15.022-26.7l-67.31.06a6.75 6.75 0 0 1-5.831-3.343l-17.256-29.523a6.75 6.75 0 0 1-.018-6.777l15.256-26.425L.929 100.008a6.75 6.75 0 0 1-.025-6.79l16.843-29.172a6.75 6.75 0 0 1 5.917-3.374l30.553.339a6.7 6.7 0 0 1 1.789.262L89.258 3.562a6.75 6.75 0 0 1 5.81-3.379z" stroke-width="6.5" stroke="#623ae7" /><path fill="#fff" d="m180.679 97.445l36.108.025l33.198 58.74h-34.51l-17.266-30.239l-68.54 119.948l-17.218-29.263zM57.85 66.893l69.028 118.902l-17.872 30.86l-67.905-.622l17.255-29.887l34.82.166L23.567 66.981zm37.24-60.8l17.256 29.887l-17.554 30.07l138.147-.616l-17.064 29.733l-137.896.33L59.917 66.05z" stroke-width="6.5" stroke="#fff" /></svg>',kimi_code:'<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M503 114.333v280c0 60.711-49.29 110-110 110H113c-60.711 0-110-49.289-110-110v-280c0-60.71 49.289-110 110-110h280c60.71 0 110 49.29 110 110z"/><path d="M342.065 189.759c1.886-2.42 3.541-4.63 5.289-6.77.81-1.007.74-1.771-.046-2.824-7.58-9.965-8.298-21.028-3.935-32.254 3.275-8.448 10.52-12.406 19.373-13.25 5.52-.521 10.936.046 15.959 2.73 6.596 3.53 10.438 8.912 11.688 16.341.995 5.926.81 11.712-.868 17.452-2.974 10.161-10.277 15.427-20.287 16.758-8.31 1.11-16.734 1.25-25.113 1.817-.648.046-1.308 0-2.06 0z" fill="#027aff"/><path d="M321.512 144.254h-50.064l-39.637 90.384h-56.036v-89.99H131v232.868h44.787v-98.103h78.973c13.598 0 26.015-7.927 31.744-20.252v118.355h44.787v-98.103c0-23.342-18.239-42.97-41.523-44.671v-.116h-24.593a45.577 45.577 0 0026.884-24.534l29.453-65.838z" fill="#fff"/></svg>',amp:'<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Amp</title><path d="M15.087 23.18L12.03 24l-2.097-7.823-5.738 5.738-2.251-2.251 5.718-5.719-7.769-2.082.82-3.057 11.294 3.08 3.08 11.295z" fill="#F34E3F"></path><path d="M19.505 18.762l-3.057.82-2.564-9.573-9.572-2.564.819-3.057 11.295 3.079 3.08 11.295z" fill="#F34E3F"></path><path d="M23.893 14.374l-3.057.82-2.565-9.572L8.7 3.057 9.52 0l11.295 3.08 3.079 11.294z" fill="#F34E3F"></path></svg>'},i1=d({name:"IconAi",props:{name:{type:String,required:!0}},setup(l){const e=h(()=>r1[l.name]||"");return()=>j("span",{class:"size-5",innerHTML:e.value})}}),s1={class:"flex flex-col border-b z-10 mb-5"},c1={class:"container mx-auto flex items-center justify-between gap-3"},f1={class:"flex flex-col h-14"},u1={class:"flex items-center gap-4 h-full"},d1={class:"flex items-center"},_1={class:"container mx-auto flex items-center justify-between pt-3 pb-1"},p1={class:"capitalize text-xs font-medium font-mono"},g1=d({name:"SiteNavbar",__name:"SiteNavbar",setup(l){const e=[{icon:"solar:home-bold-duotone",iconType:"icon",label:"home",link:"/"},...E,{icon:"ri:apps-ai-line",iconType:"icon",label:"Project",link:"/project"}],n=A(),t=h(()=>n.path);function r(o){const _=t.value===o.link,i=o.iconFillClass??(o.iconType==="ai"?"[&_svg]:fill-foreground/50":"");return y("relative flex flex-col items-center gap-1.5",_?["after:content-[''] after:absolute after:w-full after:h-px after:bg-amber-500","after:-bottom-1 after:rounded-2xl"]:["text-foreground/50",i])}return(o,_)=>{const i=q,v=n1,x=a1,B=l1,I=F,U=i1,O=k;return a(),m("header",s1,[s("div",c1,[s("div",f1,[s("div",u1,[_[0]||(_[0]=s("img",{alt:"",class:"size-8",src:V},null,-1)),f(i,{class:"w-48 fill-foreground"})])]),s("div",d1,[f(v),f(x)])]),f(B),s("div",_1,[(a(),m(M,null,P(e,p=>f(O,{key:p.label,class:G(r(p)),to:p.link},{default:g(()=>[p.iconType==="icon"?(a(),u(I,{key:0,name:p.icon,class:"size-5",mode:"svg"},null,8,["name"])):(a(),u(U,{key:1,name:p.icon},null,8,["name"])),s("span",p1,S(p.label),1)]),_:2},1032,["class","to"])),64))])])}}}),h1=Object.assign(g1,{__name:"SiteNavbar"}),m1={class:"mt-8 border-t"},v1={class:"container mx-auto flex flex-col items-center justify-between gap-2 py-4 text-center text-xs text-muted-foreground sm:flex-row sm:text-left"},x1=d({name:"SiteFooter",__name:"SiteFooter",setup(l){const{public:{appVersion:e}}=H();return(n,t)=>{const r=k;return a(),m("footer",m1,[s("div",v1,[s("p",null,[t[1]||(t[1]=w(" Copyright © 2026 ",-1)),f(r,{class:"font-medium text-foreground underline-offset-4 transition-colors hover:text-amber-600 hover:underline",rel:"noreferrer",target:"_blank",to:"https://github.com/lonewolfyx"},{default:g(()=>[...t[0]||(t[0]=[w(" lonewolfyx ",-1)])]),_:1}),t[2]||(t[2]=w(". ",-1))]),s("p",null," Built with Nuxt, extended from ccusage, and released under the MIT License. Version "+S(c(e))+". ",1)])])}}}),B1=Object.assign(x1,{__name:"SiteFooter"}),w1={};function C1(l,e){const n=h1,t=B1;return a(),m(M,null,[f(n),C(l.$slots,"default"),f(t)],64)}const k1=J(w1,[["render",C1]]);export{k1 as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{u as de,_ as Z,a as ee,b as ce,c as me,d as pe,e as fe,f as ve,g as $,h as Q,i as Me,j as Re,k as Ue,l as Ee,m as Ne,n as $e,o as Oe,p as je}from"./CBiuWPro.js";import{h as te,r as A,i as g,j as Fe,k as ge,l as H,m as De,n as Be,p as ae,q as qe,s as Ve,v as K,x as ye,y as _e,z as ze,f as k,A as G,B as Le,C as X,D as Ke,E as He,F as Ge,S as le,G as We,H as be,o as T,g as S,w as i,b as u,I as r,P as j,J as N,K as he,L as ne,M as Ye,N as Je,O as oe,Q as Qe,R as Xe,T as B,U as q,V,W as Ze,X as et,a as R,c as O,t as h,Y as tt,d as v,Z as F,$ as D,a0 as Te,a1 as at,a2 as nt,a3 as ot,a4 as st,a5 as lt}from"./DRIVB4-c.js";function re(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}const[rt]=te("ConfigProvider");function we(e){const t=rt({dir:A("ltr")});return g(()=>e?.value||t.dir?.value||"ltr")}function it(e){const t=H(),o=t?.type.emits,l={};return o?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),o?.forEach(d=>{l[Fe(ge(d))]=(...p)=>e(d,...p)}),l}function W(){const e=H(),t=A(),o=g(()=>l());De(()=>{o.value!==l()&&Be(t)});function l(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:ae(t)}const d=Object.assign({},e.exposed),p={};for(const s in e.props)Object.defineProperty(p,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(d).length>0)for(const s in d)Object.defineProperty(p,s,{enumerable:!0,configurable:!0,get:()=>d[s]});Object.defineProperty(p,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=p;function c(s){if(t.value=s,!!s&&(Object.defineProperty(p,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),!(s instanceof Element)&&!Object.hasOwn(s,"$el"))){const m=s.$.exposed,a=Object.assign({},p);for(const n in m)Object.defineProperty(a,n,{enumerable:!0,configurable:!0,get:()=>m[n]});e.exposed=a}}return{forwardRef:c,currentRef:t,currentElement:o}}function Ce(e){const t=H(),o=Object.keys(t?.type.props??{}).reduce((d,p)=>{const c=(t?.type.props[p]).default;return c!==void 0&&(d[p]=c),d},{}),l=qe(e);return g(()=>{const d={},p=t?.vnode.props??{};return Object.keys(p).forEach(c=>{d[ge(c)]=p[c]}),Object.keys({...o,...d}).reduce((c,s)=>(l.value[s]!==void 0&&(c[s]=l.value[s]),c),{})})}function ut(e,t){const o=Ce(e),l=t?it(t):{};return g(()=>({...o.value,...l}))}function dt(e,t){const o=A(e);function l(p){return t[o.value][p]??o.value}return{state:o,dispatch:p=>{o.value=l(p)}}}function ct(e,t){const o=A({}),l=A("none"),d=A(e),p=e.value?"mounted":"unmounted";let c;const s=t.value?.ownerDocument.defaultView??Ve,{state:m,dispatch:a}=dt(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),n=y=>{if(ze){const w=new CustomEvent(y,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(w)}};K(e,async(y,w)=>{const M=w!==y;if(await _e(),M){const C=l.value,U=L(t.value);y?(a("MOUNT"),n("enter"),U==="none"&&n("after-enter")):U==="none"||U==="undefined"||o.value?.display==="none"?(a("UNMOUNT"),n("leave"),n("after-leave")):w&&C!==U?(a("ANIMATION_OUT"),n("leave")):(a("UNMOUNT"),n("after-leave"))}},{immediate:!0});const f=y=>{const w=L(t.value),M=w.includes(CSS.escape(y.animationName)),C=m.value==="mounted"?"enter":"leave";if(y.target===t.value&&M&&(n(`after-${C}`),a("ANIMATION_END"),!d.value)){const U=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",c=s?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=U)})}y.target===t.value&&w==="none"&&a("ANIMATION_END")},b=y=>{y.target===t.value&&(l.value=L(t.value))},_=K(t,(y,w)=>{y?(o.value=getComputedStyle(y),y.addEventListener("animationstart",b),y.addEventListener("animationcancel",f),y.addEventListener("animationend",f)):(a("ANIMATION_END"),c!==void 0&&s?.clearTimeout(c),w?.removeEventListener("animationstart",b),w?.removeEventListener("animationcancel",f),w?.removeEventListener("animationend",f))},{immediate:!0}),I=K(m,()=>{const y=L(t.value);l.value=m.value==="mounted"?y:"none"});return ye(()=>{_(),I()}),{isPresent:g(()=>["mounted","unmountSuspended"].includes(m.value))}}function L(e){return e&&getComputedStyle(e).animationName||"none"}var mt=k({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:o}){const{present:l,forceMount:d}=G(e),p=A(),{isPresent:c}=ct(l,p);o({present:c});let s=t.default({present:c.value});s=Le(s||[]);const m=H();if(s&&s?.length>1){const a=m?.parent?.type.name?`<${m.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${a}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(n=>` - ${n}`).join(`
|
|
2
|
+
`)].join(`
|
|
3
|
+
`))}return()=>d.value||l.value||c.value?X(t.default({present:c.value})[0],{ref:a=>{const n=ae(a);return typeof n?.hasAttribute>"u"||(n?.hasAttribute("data-reka-popper-content-wrapper")?p.value=n.firstElementChild:p.value=n),n}}):null}});function ie(){const e=A(),t=g(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:ae(e));return{primitiveElement:e,currentElement:t}}const ue="data-reka-collection-item";function xe(e={}){const{key:t="",isProvider:o=!1}=e,l=`${t}CollectionProvider`;let d;if(o){const n=A(new Map);d={collectionRef:A(),itemMap:n},We(l,d)}else d=Ke(l);const p=(n=!1)=>{const f=d.collectionRef.value;if(!f)return[];const b=Array.from(f.querySelectorAll(`[${ue}]`)),I=Array.from(d.itemMap.value.values()).sort((E,y)=>b.indexOf(E.ref)-b.indexOf(y.ref));return n?I:I.filter(E=>E.ref.dataset.disabled!=="")},c=k({name:"CollectionSlot",inheritAttrs:!1,setup(n,{slots:f,attrs:b}){const{primitiveElement:_,currentElement:I}=ie();return K(I,()=>{d.collectionRef.value=I.value}),()=>X(le,{ref:_,...b},f)}}),s=k({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(n,{slots:f,attrs:b}){const{primitiveElement:_,currentElement:I}=ie();return He(E=>{if(I.value){const y=Ge(I.value);d.itemMap.value.set(y,{ref:I.value,value:n.value}),E(()=>d.itemMap.value.delete(y))}}),()=>X(le,{...b,[ue]:"",ref:_},f)}}),m=g(()=>Array.from(d.itemMap.value.values())),a=g(()=>d.itemMap.value.size);return{getItems:p,reactiveItems:m,itemMapSize:a,CollectionSlot:c,CollectionItem:s}}const pt="rovingFocusGroup.onEntryFocus",ft={bubbles:!1,cancelable:!0},vt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yt(e,t,o){const l=gt(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return vt[l]}function Se(e,t=!1){const o=re();for(const l of e)if(l===o||(l.focus({preventScroll:t}),re()!==o))return}function _t(e,t){return e.map((o,l)=>e[(t+l)%e.length])}const[bt,ht]=te("RovingFocusGroup");var Tt=k({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:o}){const l=e,d=o,{loop:p,orientation:c,dir:s}=G(l),m=we(s),a=be(l,"currentTabStopId",d,{defaultValue:l.defaultCurrentTabStopId,passive:l.currentTabStopId===void 0}),n=A(!1),f=A(!1),b=A(0),{getItems:_,CollectionSlot:I}=xe({isProvider:!0});function E(w){const M=!f.value;if(w.currentTarget&&w.target===w.currentTarget&&M&&!n.value){const C=new CustomEvent(pt,ft);if(w.currentTarget.dispatchEvent(C),d("entryFocus",C),!C.defaultPrevented){const U=_().map(x=>x.ref).filter(x=>x.dataset.disabled!==""),z=U.find(x=>x.getAttribute("data-active")===""),Y=U.find(x=>x.getAttribute("data-highlighted")===""),J=U.find(x=>x.id===a.value),P=[z,Y,J,...U].filter(Boolean);Se(P,l.preventScrollOnEntryFocus)}}f.value=!1}function y(){setTimeout(()=>{f.value=!1},1)}return t({getItems:_}),ht({loop:p,dir:m,orientation:c,currentTabStopId:a,onItemFocus:w=>{a.value=w},onItemShiftTab:()=>{n.value=!0},onFocusableItemAdd:()=>{b.value++},onFocusableItemRemove:()=>{b.value--}}),(w,M)=>(T(),S(r(I),null,{default:i(()=>[u(r(j),{tabindex:n.value||b.value===0?-1:0,"data-orientation":r(c),as:w.as,"as-child":w.asChild,dir:r(m),style:{outline:"none"},onMousedown:M[0]||(M[0]=C=>f.value=!0),onMouseup:y,onFocus:E,onBlur:M[1]||(M[1]=C=>n.value=!1)},{default:i(()=>[N(w.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),wt=Tt,Ct=k({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,o=bt(),l=de(),d=g(()=>t.tabStopId||l),p=g(()=>o.currentTabStopId.value===d.value),{getItems:c,CollectionItem:s}=xe();he(()=>{t.focusable&&o.onFocusableItemAdd()}),ye(()=>{t.focusable&&o.onFocusableItemRemove()});function m(a){if(a.key==="Tab"&&a.shiftKey){o.onItemShiftTab();return}if(a.target!==a.currentTarget)return;const n=yt(a,o.orientation.value,o.dir.value);if(n!==void 0){if(a.metaKey||a.ctrlKey||a.altKey||!t.allowShiftKey&&a.shiftKey)return;a.preventDefault();let f=[...c().map(b=>b.ref).filter(b=>b.dataset.disabled!=="")];if(n==="last")f.reverse();else if(n==="prev"||n==="next"){n==="prev"&&f.reverse();const b=f.indexOf(a.currentTarget);f=o.loop.value?_t(f,b+1):f.slice(b+1)}_e(()=>Se(f))}}return(a,n)=>(T(),S(r(s),null,{default:i(()=>[u(r(j),{tabindex:p.value?0:-1,"data-orientation":r(o).orientation.value,"data-active":a.active?"":void 0,"data-disabled":a.focusable?void 0:"",as:a.as,"as-child":a.asChild,onMousedown:n[0]||(n[0]=f=>{a.focusable?r(o).onItemFocus(d.value):f.preventDefault()}),onFocus:n[1]||(n[1]=f=>r(o).onItemFocus(d.value)),onKeydown:m},{default:i(()=>[N(a.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),xt=Ct;const[se,St]=te("TabsRoot");var kt=k({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,l=t,{orientation:d,unmountOnHide:p,dir:c}=G(o),s=we(c);W();const m=be(o,"modelValue",l,{defaultValue:o.defaultValue,passive:o.modelValue===void 0}),a=A(),n=ne(new Set);return St({modelValue:m,changeModelValue:f=>{m.value=f},orientation:d,dir:s,unmountOnHide:p,activationMode:o.activationMode,baseId:de(void 0,"reka-tabs"),tabsList:a,contentIds:n,registerContent:f=>{n.value=new Set([...n.value,f])},unregisterContent:f=>{const b=new Set(n.value);b.delete(f),n.value=b}}),(f,b)=>(T(),S(r(j),{dir:r(s),"data-orientation":r(d),"as-child":f.asChild,as:f.as},{default:i(()=>[N(f.$slots,"default",{modelValue:r(m)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),It=kt;function ke(e,t){return`${e}-trigger-${t}`}function Ie(e,t){return`${e}-content-${t}`}var Pt=k({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:o}=W(),l=se(),d=g(()=>ke(l.baseId,t.value)),p=g(()=>Ie(l.baseId,t.value)),c=g(()=>t.value===l.modelValue.value),s=A(c.value);return he(()=>{l.registerContent(t.value),requestAnimationFrame(()=>{s.value=!1})}),Ye(()=>{l.unregisterContent(t.value)}),(m,a)=>(T(),S(r(mt),{present:m.forceMount||c.value,"force-mount":""},{default:i(({present:n})=>[u(r(j),{id:p.value,ref:r(o),"as-child":m.asChild,as:m.as,role:"tabpanel","data-state":c.value?"active":"inactive","data-orientation":r(l).orientation.value,"aria-labelledby":d.value,hidden:!n,tabindex:"0",style:Je({animationDuration:s.value?"0s":void 0})},{default:i(()=>[!r(l).unmountOnHide.value||n?N(m.$slots,"default",{key:0}):oe("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),At=Pt,Mt=k({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:o}=G(t),{forwardRef:l,currentElement:d}=W(),p=se();return p.tabsList=d,(c,s)=>(T(),S(r(wt),{"as-child":"",orientation:r(p).orientation.value,dir:r(p).dir.value,loop:r(o)},{default:i(()=>[u(r(j),{ref:r(l),role:"tablist","as-child":c.asChild,as:c.as,"aria-orientation":r(p).orientation.value},{default:i(()=>[N(c.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),Rt=Mt,Ut=k({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:o}=W(),l=se(),d=g(()=>ke(l.baseId,t.value)),p=g(()=>l.contentIds.value.has(t.value)?Ie(l.baseId,t.value):void 0),c=g(()=>t.value===l.modelValue.value);return(s,m)=>(T(),S(r(xt),{"as-child":"",focusable:!s.disabled,active:c.value},{default:i(()=>[u(r(j),{id:d.value,ref:r(o),role:"tab",type:s.as==="button"?"button":void 0,as:s.as,"as-child":s.asChild,"aria-selected":c.value?"true":"false","aria-controls":p.value,"data-state":c.value?"active":"inactive",disabled:s.disabled,"data-disabled":s.disabled?"":void 0,"data-orientation":r(l).orientation.value,onMousedown:m[0]||(m[0]=Xe(a=>{!s.disabled&&a.ctrlKey===!1?r(l).changeModelValue(s.value):a.preventDefault()},["left"])),onKeydown:m[1]||(m[1]=Qe(a=>r(l).changeModelValue(s.value),["enter","space"])),onFocus:m[2]||(m[2]=()=>{const a=r(l).activationMode!=="manual";!c.value&&!s.disabled&&a&&r(l).changeModelValue(s.value)})},{default:i(()=>[N(s.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),Et=Ut;const Nt=k({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,l=t,d=B(o,"class"),p=ut(d,l);return(c,s)=>(T(),S(r(It),q({"data-slot":"tabs"},r(p),{class:r(V)("flex flex-col gap-2",o.class)}),{default:i(m=>[N(c.$slots,"default",Ze(et(m)))]),_:3},16,["class"]))}}),$t=k({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,o=B(t,"class");return(l,d)=>(T(),S(r(At),q({"data-slot":"tabs-content",class:r(V)("flex-1 outline-none",t.class)},r(o)),{default:i(()=>[N(l.$slots,"default")]),_:3},16,["class"]))}}),Ot=k({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,o=B(t,"class");return(l,d)=>(T(),S(r(Rt),q({"data-slot":"tabs-list"},r(o),{class:r(V)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t.class)}),{default:i(()=>[N(l.$slots,"default")]),_:3},16,["class"]))}}),jt=k({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,o=B(t,"class"),l=Ce(o);return(d,p)=>(T(),S(r(Et),q({"data-slot":"tabs-trigger",class:r(V)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class)},r(l)),{default:i(()=>[N(d.$slots,"default")]),_:3},16,["class"]))}}),Ft={class:"flex items-center justify-center py-10"},Pe=k({__name:"TableEmpty",props:{class:{type:[Boolean,null,String,Object,Array]},colspan:{default:1}},setup(e){const t=e,o=B(t,"class");return(l,d)=>(T(),S(Z,null,{default:i(()=>[u(ee,q({class:r(V)("p-4 whitespace-nowrap align-middle text-sm text-foreground",t.class)},r(o)),{default:i(()=>[R("div",Ft,[N(l.$slots,"default")])]),_:3},16,["class"])]),_:3}))}}),Dt={class:"mt-4 flex flex-col gap-3 border-t pt-4 sm:flex-row sm:items-center sm:justify-between"},Bt={class:"text-sm text-muted-foreground"},qt={class:"flex items-center justify-end gap-2"},Vt={class:"flex items-center gap-1"},zt=k({name:"UsageAnalyticsPaginationFooter",__name:"PaginationFooter",props:{page:{},pageCount:{},pageSize:{},total:{}},emits:["update:page"],setup(e,{emit:t}){const o=e,l=t,d=g(()=>{const c=Math.max(1,o.page-2),s=Math.min(o.pageCount,c+4),m=Math.max(1,s-4);return Array.from({length:s-m+1},(a,n)=>m+n)}),p=g(()=>{if(o.total===0)return"No records";const c=(o.page-1)*o.pageSize+1,s=Math.min(o.page*o.pageSize,o.total);return`${c}-${s} of ${o.total}`});return(c,s)=>{const m=tt;return T(),O("div",Dt,[R("p",Bt,h(r(p)),1),R("div",qt,[u(m,{disabled:e.page<=1,size:"sm",variant:"outline",onClick:s[0]||(s[0]=a=>l("update:page",e.page-1))},{default:i(()=>[...s[2]||(s[2]=[v(" Previous ",-1)])]),_:1},8,["disabled"]),R("div",Vt,[(T(!0),O(F,null,D(r(d),a=>(T(),S(m,{key:a,variant:a===e.page?"default":"ghost",class:"tabular-nums",size:"icon-sm",onClick:n=>l("update:page",a)},{default:i(()=>[v(h(a),1)]),_:2},1032,["variant","onClick"]))),128))]),u(m,{disabled:e.page>=e.pageCount,size:"sm",variant:"outline",onClick:s[1]||(s[1]=a=>l("update:page",e.page+1))},{default:i(()=>[...s[3]||(s[3]=[v(" Next ",-1)])]),_:1},8,["disabled"])])])}}}),Ae=Object.assign(zt,{__name:"UsageAnalyticsPaginationFooter"}),Lt=k({name:"UsageAnalyticsTokenUsageTabsPanel",__name:"TokenUsageTabsPanel",props:{dailyItems:{},weeklyItems:{},monthlyItems:{},sessionItems:{},pageSize:{default:10},productName:{default:"Product"}},setup(e){const t=e,o=ne("day"),l=at({day:1,month:1,session:1,week:1}),d=[{heading:"Date",label:"Day",value:"day"},{heading:"Week",label:"Week",value:"week"},{heading:"Month",label:"Month",value:"month"},{heading:"Session ID",label:"Session",value:"session"}],p=g(()=>({day:t.dailyItems,month:t.monthlyItems,session:t.sessionItems,week:t.weeklyItems})),c=g(()=>Object.fromEntries(d.map(a=>{const n=p.value[a.value],f=Math.max(1,Math.ceil(n.length/t.pageSize)),b=Math.min(l[a.value],f),_=(b-1)*t.pageSize;return[a.value,{items:n,page:b,pageCount:f,paginatedItems:n.slice(_,_+t.pageSize)}]})));function s(a,n){const f=c.value[a].pageCount;l[a]=Math.min(f,Math.max(1,n))}function m(a){return a.length>0?a.join(", "):"None"}return(a,n)=>{const f=jt,b=Ot,_=fe,I=Z,E=pe,y=ee,w=Pe,M=ve,C=me,U=Ae,z=$t,Y=Nt,J=ce;return T(),S(J,{description:`Browse ${e.productName} token consumption by day, week, month, or session.`,icon:"lucide:table-2",title:`${e.productName} Token Usage`},{default:i(()=>[u(Y,{modelValue:r(o),"onUpdate:modelValue":n[0]||(n[0]=P=>Te(o)?o.value=P:null)},{default:i(()=>[u(b,{class:"grid w-full grid-cols-4 sm:w-fit"},{default:i(()=>[(T(),O(F,null,D(d,P=>u(f,{key:P.value,value:P.value},{default:i(()=>[v(h(P.label),1)]),_:2},1032,["value"])),64))]),_:1}),(T(),O(F,null,D(d,P=>u(z,{key:P.value,class:"mt-4",value:P.value},{default:i(()=>[u(C,null,{default:i(()=>[u(E,null,{default:i(()=>[u(I,null,{default:i(()=>[u(_,null,{default:i(()=>[v(h(P.heading),1)]),_:2},1024),u(_,null,{default:i(()=>[...n[1]||(n[1]=[v("Models",-1)])]),_:1}),u(_,null,{default:i(()=>[...n[2]||(n[2]=[v("Projects",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[3]||(n[3]=[v(" Sessions ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[4]||(n[4]=[v(" Input ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[5]||(n[5]=[v(" Output ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[6]||(n[6]=[v(" Reasoning ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[7]||(n[7]=[v(" Cache Read ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[8]||(n[8]=[v(" Total Tokens ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[9]||(n[9]=[v(" Cost ",-1)])]),_:1})]),_:2},1024)]),_:2},1024),u(M,null,{default:i(()=>[(T(!0),O(F,null,D(r(c)[P.value].paginatedItems,x=>(T(),S(I,{key:x.id},{default:i(()=>[u(y,{class:"max-w-72 truncate font-medium"},{default:i(()=>[v(h(x.label),1)]),_:2},1024),u(y,null,{default:i(()=>[v(h(m(x.models)),1)]),_:2},1024),u(y,{class:"max-w-56 truncate"},{default:i(()=>[v(h(m(x.projects)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(x.sessionCount),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.inputTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.outputTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.reasoningOutputTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.cachedInputTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.totalTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(("formatCurrency"in a?a.formatCurrency:r(Q))(x.costUSD)),1)]),_:2},1024)]),_:2},1024))),128)),r(c)[P.value].items.length===0?(T(),S(w,{key:0,colspan:10},{default:i(()=>[v(" No "+h(e.productName)+" token usage found. ",1)]),_:1})):oe("",!0)]),_:2},1024)]),_:2},1024),u(U,{page:r(c)[P.value].page,"page-count":r(c)[P.value].pageCount,"page-size":e.pageSize,total:r(c)[P.value].items.length,"onUpdate:page":x=>s(P.value,x)},null,8,["page","page-count","page-size","total","onUpdate:page"])]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["description","title"])}}}),Kt=Object.assign(Lt,{__name:"UsageAnalyticsTokenUsageTabsPanel"}),Ht={class:"mb-4 grid grid-cols-1 gap-3 sm:grid-cols-3"},Gt={class:"rounded-md border px-3 py-2"},Wt={class:"mt-1 text-lg font-semibold tabular-nums"},Yt={class:"rounded-md border px-3 py-2"},Jt={class:"mt-1 text-lg font-semibold tabular-nums"},Qt={class:"rounded-md border px-3 py-2"},Xt={class:"mt-1 text-lg font-semibold tabular-nums"},Zt=k({name:"UsageAnalyticsSessionUsageTable",__name:"SessionUsageTable",props:{items:{},pageSize:{default:10},productName:{default:"Product"}},setup(e){const t=e,o=ne(1),l=g(()=>Math.max(1,Math.ceil(t.items.length/t.pageSize))),d=g(()=>{const a=(Math.min(o.value,l.value)-1)*t.pageSize;return t.items.slice(a,a+t.pageSize)}),p=g(()=>t.items.reduce((m,a)=>m+a.costUSD,0)),c=g(()=>t.items.reduce((m,a)=>m+a.tokenTotal,0));function s(m){return new Intl.DateTimeFormat("en-US",{day:"2-digit",hour:"2-digit",minute:"2-digit",month:"short"}).format(new Date(m))}return(m,a)=>{const n=fe,f=Z,b=pe,_=ee,I=Pe,E=ve,y=me,w=Ae,M=ce;return T(),S(M,{description:`Each row maps one ${e.productName} session to its session-level token consumption.`,icon:"lucide:file-json-2",title:`${e.productName} Session Statistics`},{default:i(()=>[R("div",Ht,[R("div",Gt,[a[1]||(a[1]=R("p",{class:"text-xs text-muted-foreground"}," Sessions ",-1)),R("p",Wt,h(e.items.length),1)]),R("div",Yt,[a[2]||(a[2]=R("p",{class:"text-xs text-muted-foreground"}," Tokens ",-1)),R("p",Jt,h(("formatCompactNumber"in m?m.formatCompactNumber:r(Me))(r(c))),1)]),R("div",Qt,[a[3]||(a[3]=R("p",{class:"text-xs text-muted-foreground"}," Spend ",-1)),R("p",Xt,h(("formatCurrency"in m?m.formatCurrency:r(Q))(r(p))),1)])]),u(y,null,{default:i(()=>[u(b,null,{default:i(()=>[u(f,null,{default:i(()=>[u(n,null,{default:i(()=>[...a[4]||(a[4]=[v("Session ID",-1)])]),_:1}),u(n,null,{default:i(()=>[...a[5]||(a[5]=[v("Project",-1)])]),_:1}),u(n,null,{default:i(()=>[...a[6]||(a[6]=[v("Thread",-1)])]),_:1}),u(n,null,{default:i(()=>[...a[7]||(a[7]=[v("Model",-1)])]),_:1}),u(n,null,{default:i(()=>[...a[8]||(a[8]=[v("Started",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[9]||(a[9]=[v(" Duration ",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[10]||(a[10]=[v(" Input ",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[11]||(a[11]=[v(" Output ",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[12]||(a[12]=[v(" Total Tokens ",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[13]||(a[13]=[v(" Cost ",-1)])]),_:1})]),_:1})]),_:1}),u(E,null,{default:i(()=>[(T(!0),O(F,null,D(r(d),C=>(T(),S(f,{key:C.sessionId},{default:i(()=>[u(_,{class:"max-w-80 truncate font-mono text-xs"},{default:i(()=>[v(h(C.sessionId),1)]),_:2},1024),u(_,{class:"font-medium"},{default:i(()=>[v(h(C.project),1)]),_:2},1024),u(_,{class:"max-w-64 truncate"},{default:i(()=>[v(h(C.threadName),1)]),_:2},1024),u(_,null,{default:i(()=>[v(h(C.model),1)]),_:2},1024),u(_,{class:"whitespace-nowrap"},{default:i(()=>[v(h(s(C.startedAt)),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(C.duration),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(C.inputTokens)),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(C.outputTokens)),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(C.tokenTotal)),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(("formatCurrency"in m?m.formatCurrency:r(Q))(C.costUSD)),1)]),_:2},1024)]),_:2},1024))),128)),e.items.length===0?(T(),S(I,{key:0,colspan:10},{default:i(()=>[v(" No "+h(e.productName)+" sessions found. ",1)]),_:1})):oe("",!0)]),_:1})]),_:1}),u(w,{page:r(o),"onUpdate:page":a[0]||(a[0]=C=>Te(o)?o.value=C:null),"page-count":r(l),"page-size":e.pageSize,total:e.items.length},null,8,["page","page-count","page-size","total"])]),_:1},8,["description","title"])}}}),ea=Object.assign(Zt,{__name:"UsageAnalyticsSessionUsageTable"}),ta=k({name:"DashboardTokenConsumptionDashboard",__name:"TokenConsumptionDashboard",props:{dailyRows:{},dailyTokenUsage:{},monthlyModelUsage:{},monthlyRows:{},overviewCards:{},productName:{},projectUsage:{},sessionRows:{},sessionUsage:{},weeklyRows:{}},setup(e){const t=e,o=g(()=>je(t.sessionUsage));return(l,d)=>{const p=Ue,c=Ne,s=$e,m=Oe,a=Kt,n=ea,f=Ee,b=Re;return T(),S(b,null,{default:i(()=>[u(p,{cards:e.overviewCards},null,8,["cards"]),u(f,null,{default:i(()=>[u(c,{"monthly-items":e.monthlyModelUsage,class:"md:col-span-8"},null,8,["monthly-items"]),u(s,{items:e.projectUsage,class:"md:col-span-4"},null,8,["items"]),u(m,{items:e.dailyTokenUsage,class:"md:col-span-12",title:`${e.productName} Token Heatmap`},null,8,["items","title"]),u(a,{"daily-items":r(o),"monthly-items":e.monthlyRows,"product-name":e.productName,"session-items":e.sessionRows,"weekly-items":e.weeklyRows,class:"md:col-span-12"},null,8,["daily-items","monthly-items","product-name","session-items","weekly-items"]),u(n,{items:e.sessionUsage,"product-name":e.productName,class:"md:col-span-12"},null,8,["items","product-name"])]),_:1})]),_:1})}}}),aa=Object.assign(ta,{__name:"DashboardTokenConsumptionDashboard"}),na={dailyRows:[],dailyTokenUsage:[],monthlyModelUsage:[],monthlyRows:[],overviewCards:[],projectUsage:[],sessionRows:[],sessionUsage:[],todayTopModel:null,todayTopProject:null,todayTotalCost:0,todayTotalTokens:0,weeklyRows:[]};function oa(e){const{clear:t,error:o,execute:l,payload:d,refresh:p,status:c}=nt(),s=g(()=>d.value?.[e]??na);return{clear:t,dailyRows:g(()=>s.value.dailyRows),dailyTokenUsage:g(()=>s.value.dailyTokenUsage),dashboard:s,error:o,execute:l,monthlyModelUsage:g(()=>s.value.monthlyModelUsage),monthlyRows:g(()=>s.value.monthlyRows),overviewCards:g(()=>s.value.overviewCards),projectUsage:g(()=>s.value.projectUsage),refresh:p,sessionRows:g(()=>s.value.sessionRows),sessionUsage:g(()=>s.value.sessionUsage),status:c,todayTopModel:g(()=>s.value.todayTopModel),todayTopProject:g(()=>s.value.todayTopProject),todayTotalCost:g(()=>s.value.todayTotalCost),todayTotalTokens:g(()=>s.value.todayTotalTokens),weeklyRows:g(()=>s.value.weeklyRows)}}const sa=k({name:"DashboardProductPage",__name:"ProductPage",props:{productKey:{},productName:{}},setup(e){const t=e,{dailyRows:o,dailyTokenUsage:l,monthlyModelUsage:d,monthlyRows:p,overviewCards:c,projectUsage:s,sessionRows:m,sessionUsage:a,weeklyRows:n}=oa(t.productKey);return(f,b)=>{const _=aa;return T(),S(_,{"daily-rows":r(o),"daily-token-usage":r(l),"monthly-model-usage":r(d),"monthly-rows":r(p),"overview-cards":r(c),"product-name":e.productName,"project-usage":r(s),"session-rows":r(m),"session-usage":r(a),"weekly-rows":r(n)},null,8,["daily-rows","daily-token-usage","monthly-model-usage","monthly-rows","overview-cards","product-name","project-usage","session-rows","session-usage","weekly-rows"])}}}),la=Object.assign(sa,{__name:"DashboardProductPage"}),ua=k({__name:"[product]",setup(e){const t=ot(),o=st(t.params.product);if(!o)throw lt({status:404,message:"Page not found"});return(l,d)=>{const p=la;return T(),S(p,{"product-key":r(o).payloadKey,"product-name":r(o).name},null,8,["product-key","product-name"])}}});export{ua as default};
|