@juliantanx/aiusage 1.4.0 → 1.5.0
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/README.md +152 -27
- package/dist/index.js +3277 -907
- package/dist/web/_app/immutable/assets/0.BYjLgame.css +1 -0
- package/dist/web/_app/immutable/assets/11.4MyEKiO6.css +1 -0
- package/dist/web/_app/immutable/assets/12.nNHFRI35.css +1 -0
- package/dist/web/_app/immutable/assets/13.CAQKz1hf.css +1 -0
- package/dist/web/_app/immutable/assets/14.Bcofmxqa.css +1 -0
- package/dist/web/_app/immutable/assets/15.F0aA4smG.css +1 -0
- package/dist/web/_app/immutable/assets/2.GIkI4O03.css +1 -0
- package/dist/web/_app/immutable/assets/3.H3-dDI9U.css +1 -0
- package/dist/web/_app/immutable/assets/4.BOWlKC54.css +1 -0
- package/dist/web/_app/immutable/assets/5.CLn2x9cs.css +1 -0
- package/dist/web/_app/immutable/assets/6.C1lxHTyi.css +1 -0
- package/dist/web/_app/immutable/assets/7.oxd6PqWk.css +1 -0
- package/dist/web/_app/immutable/assets/8.9jvt5Dym.css +1 -0
- package/dist/web/_app/immutable/assets/9.DsmA__AV.css +1 -0
- package/dist/web/_app/immutable/assets/ToolSelector.BewzNVhC.css +1 -0
- package/dist/web/_app/immutable/assets/ToolSelector.BqfI2BMz.css +1 -0
- package/dist/web/_app/immutable/assets/_layout.D8R7GvV-.css +1 -0
- package/dist/web/_app/immutable/assets/_page.4MyEKiO6.css +1 -0
- package/dist/web/_app/immutable/assets/_page.9jvt5Dym.css +1 -0
- package/dist/web/_app/immutable/assets/_page.BOWlKC54.css +1 -0
- package/dist/web/_app/immutable/assets/_page.Bcofmxqa.css +1 -0
- package/dist/web/_app/immutable/assets/_page.C1lxHTyi.css +1 -0
- package/dist/web/_app/immutable/assets/_page.CFfU6gQq.css +1 -0
- package/dist/web/_app/immutable/assets/_page.CLn2x9cs.css +1 -0
- package/dist/web/_app/immutable/assets/_page.CMG6gS2t.css +1 -0
- package/dist/web/_app/immutable/assets/_page.DXX8tyXM.css +1 -0
- package/dist/web/_app/immutable/assets/_page.F0aA4smG.css +1 -0
- package/dist/web/_app/immutable/assets/_page.H3-dDI9U.css +1 -0
- package/dist/web/_app/immutable/assets/_page.ZSDsIDry.css +1 -0
- package/dist/web/_app/immutable/assets/_page.oxd6PqWk.css +1 -0
- package/dist/web/_app/immutable/chunks/ToolSelector.CofvKVw2.js +2 -0
- package/dist/web/_app/immutable/chunks/api.Mv_KcGhp.js +1 -0
- package/dist/web/_app/immutable/chunks/{entry.BDsSAg1a.js → entry.PDoHFbXz.js} +1 -1
- package/dist/web/_app/immutable/chunks/i18n.CwV3KceS.js +1 -0
- package/dist/web/_app/immutable/chunks/index.66Vu9Sio.js +1 -0
- package/dist/web/_app/immutable/chunks/{index.CNvYz5e_.js → index.m3oCcA6N.js} +1 -1
- package/dist/web/_app/immutable/chunks/scheduler.DsWd5xup.js +1 -0
- package/dist/web/_app/immutable/chunks/{stores.mBipGgjw.js → stores.BSI_cVy6.js} +1 -1
- package/dist/web/_app/immutable/chunks/{stores.BYIFXXy3.js → stores.Botc0ioY.js} +1 -1
- package/dist/web/_app/immutable/entry/app.CoPtpbXI.js +2 -0
- package/dist/web/_app/immutable/entry/start.CaOJNprV.js +1 -0
- package/dist/web/_app/immutable/nodes/0.CZMa2uzk.js +142 -0
- package/dist/web/_app/immutable/nodes/{1.C4vnvuzM.js → 1.DJI2NNga.js} +1 -1
- package/dist/web/_app/immutable/nodes/10.DTaETIM6.js +1 -0
- package/dist/web/_app/immutable/nodes/11.CScZqjVc.js +1 -0
- package/dist/web/_app/immutable/nodes/12.DeLNKhlw.js +1 -0
- package/dist/web/_app/immutable/nodes/13.BFaBQy6e.js +1 -0
- package/dist/web/_app/immutable/nodes/14.BgJEC28r.js +1 -0
- package/dist/web/_app/immutable/nodes/15.DjuCO6OE.js +1 -0
- package/dist/web/_app/immutable/nodes/2.CoxR54dV.js +3 -0
- package/dist/web/_app/immutable/nodes/3.Bua2oewW.js +1 -0
- package/dist/web/_app/immutable/nodes/4.DJwmYYKI.js +1 -0
- package/dist/web/_app/immutable/nodes/5.CXmtjVJL.js +1 -0
- package/dist/web/_app/immutable/nodes/6.kpxBlrHt.js +1 -0
- package/dist/web/_app/immutable/nodes/7.LSfdx4vz.js +9 -0
- package/dist/web/_app/immutable/nodes/8.ByAI01dT.js +1 -0
- package/dist/web/_app/immutable/nodes/9.Ubt4Bfxd.js +1 -0
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +10 -10
- package/dist/web/wechat-support-qr.jpg +0 -0
- package/package.json +3 -4
- package/dist/web/_app/immutable/assets/0.C3RIkHY2.css +0 -1
- package/dist/web/_app/immutable/assets/10.C9BKssg5.css +0 -1
- package/dist/web/_app/immutable/assets/11.D51Gzh6j.css +0 -1
- package/dist/web/_app/immutable/assets/12.MAt3PLLc.css +0 -1
- package/dist/web/_app/immutable/assets/13.CYY7rvzI.css +0 -1
- package/dist/web/_app/immutable/assets/2.CLCMeZwn.css +0 -1
- package/dist/web/_app/immutable/assets/3.BB9nMGBG.css +0 -1
- package/dist/web/_app/immutable/assets/4.CUknm1Jh.css +0 -1
- package/dist/web/_app/immutable/assets/5.BvcBvBEs.css +0 -1
- package/dist/web/_app/immutable/assets/6.BETPk561.css +0 -1
- package/dist/web/_app/immutable/assets/7.BeGOLIpG.css +0 -1
- package/dist/web/_app/immutable/assets/8.yw0F4oCm.css +0 -1
- package/dist/web/_app/immutable/assets/ToolSelector.BRqFUj1Q.css +0 -1
- package/dist/web/_app/immutable/assets/ToolSelector.Bqx3ytrl.css +0 -1
- package/dist/web/_app/immutable/assets/_layout.BqRkZ3UP.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BB9nMGBG.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BETPk561.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BLq-3aJQ.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BeGOLIpG.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BvEGYIGb.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BvcBvBEs.css +0 -1
- package/dist/web/_app/immutable/assets/_page.C9BKssg5.css +0 -1
- package/dist/web/_app/immutable/assets/_page.CQBzp_Oe.css +0 -1
- package/dist/web/_app/immutable/assets/_page.CUknm1Jh.css +0 -1
- package/dist/web/_app/immutable/assets/_page.CYY7rvzI.css +0 -1
- package/dist/web/_app/immutable/assets/_page.MAt3PLLc.css +0 -1
- package/dist/web/_app/immutable/chunks/ToolSelector.CCE1hHr0.js +0 -2
- package/dist/web/_app/immutable/chunks/api.CTjBjPiU.js +0 -1
- package/dist/web/_app/immutable/chunks/index.BXQEgizy.js +0 -1
- package/dist/web/_app/immutable/chunks/scheduler.DeaWU70L.js +0 -1
- package/dist/web/_app/immutable/entry/app.CCbAFnKJ.js +0 -2
- package/dist/web/_app/immutable/entry/start.BDGHATsW.js +0 -1
- package/dist/web/_app/immutable/nodes/0.vOgxhWzP.js +0 -1
- package/dist/web/_app/immutable/nodes/10.BejenNwL.js +0 -1
- package/dist/web/_app/immutable/nodes/11.Dx1YcRkP.js +0 -1
- package/dist/web/_app/immutable/nodes/12.C9dQuDmx.js +0 -1
- package/dist/web/_app/immutable/nodes/13.VP7fU2h5.js +0 -1
- package/dist/web/_app/immutable/nodes/2.DniTC2eC.js +0 -3
- package/dist/web/_app/immutable/nodes/3.BY0PLmXV.js +0 -1
- package/dist/web/_app/immutable/nodes/4.BUb_3Atw.js +0 -1
- package/dist/web/_app/immutable/nodes/5.DJ0O-s5e.js +0 -1
- package/dist/web/_app/immutable/nodes/6.nquf-x9G.js +0 -9
- package/dist/web/_app/immutable/nodes/7.BDm05vE_.js +0 -1
- package/dist/web/_app/immutable/nodes/8.mB-sVW7r.js +0 -1
- package/dist/web/_app/immutable/nodes/9.8PYvwJik.js +0 -1
- /package/dist/web/_app/immutable/assets/{9.DpWloLoX.css → 10.DpWloLoX.css} +0 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import{s as x,z as ee,x as w,A as te,B as le,C as ne,D as Yt,E as I,c as ft,o as Nl,e as wl,n as lt,r as dt}from"../chunks/scheduler.DsWd5xup.js";import{S as se,i as ae,d as c,v as Mt,l as q,m as E,H as ct,a as Z,b as u,I as Me,e as v,r as Ue,J as Ae,k as j,n as R,q as J,u as F,F as Re,g as B,j as P,w as ke,o as r,c as k,h as N,s as ce,A as ht,K as gl,C as Ye,f as he,t as de,G as Xe,z as ye,E as Fe}from"../chunks/index.66Vu9Sio.js";import{e as xe,a as Gt,E as El,F as ql}from"../chunks/api.Mv_KcGhp.js";import{p as Ml}from"../chunks/stores.Botc0ioY.js";import{a as Et,t as Al,l as Sl}from"../chunks/i18n.CwV3KceS.js";import{w as pl}from"../chunks/index.m3oCcA6N.js";import{g as Tl,e as Kt}from"../chunks/stores.BSI_cVy6.js";const Cl=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function oe(a,e){const s={},t={},n={$$scope:1};let l=a.length;for(;l--;){const o=a[l],i=e[l];if(i){for(const $ in o)$ in i||(t[$]=1);for(const $ in i)n[$]||(s[$]=i[$],n[$]=1);a[l]=i}else for(const $ in o)n[$]=1}for(const o in t)o in s||(s[o]=void 0);return s}function _e(a){return typeof a=="object"&&a!==null?a:{}}const vl="aiusage-theme";function qt(){return typeof window>"u"?"system":localStorage.getItem(vl)||"system"}function bl(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const At=pl(qt()),Il=pl(bl());function Zt(){At.update(a=>a==="system"?"dark":a==="dark"?"light":"system")}function Hl(){if(typeof window>"u")return;const a=window.matchMedia("(prefers-color-scheme: dark)");function e(s){const t=s==="system"?bl():s;document.documentElement.setAttribute("data-theme",t),Il.set(t)}e(qt()),At.subscribe(s=>{localStorage.setItem(vl,s),e(s)}),a.addEventListener("change",()=>{qt()==="system"&&e("system")})}function Dl({pathname:a,authEnabled:e,authenticated:s,authLoading:t}){const n=a==="/";return t?n?"public-home":"loading":!e||s?"shell":n?"public-home":"login-page"}/**
|
|
2
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
3
|
+
*
|
|
4
|
+
* ISC License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
7
|
+
*
|
|
8
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
10
|
+
* copyright notice and this permission notice appear in all copies.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
13
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
14
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
15
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
16
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
17
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
18
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
+
*
|
|
20
|
+
* ---
|
|
21
|
+
*
|
|
22
|
+
* The following Lucide icons are derived from the Feather project:
|
|
23
|
+
*
|
|
24
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
25
|
+
*
|
|
26
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
*
|
|
30
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
31
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
32
|
+
* in the Software without restriction, including without limitation the rights
|
|
33
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
34
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
35
|
+
* furnished to do so, subject to the following conditions:
|
|
36
|
+
*
|
|
37
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
38
|
+
* copies or substantial portions of the Software.
|
|
39
|
+
*
|
|
40
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
41
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
42
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
43
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
44
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
45
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46
|
+
* SOFTWARE.
|
|
47
|
+
*
|
|
48
|
+
*/const Jt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
49
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
50
|
+
*
|
|
51
|
+
* ISC License
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
54
|
+
*
|
|
55
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
56
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
57
|
+
* copyright notice and this permission notice appear in all copies.
|
|
58
|
+
*
|
|
59
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
60
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
61
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
62
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
63
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
64
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
65
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
66
|
+
*
|
|
67
|
+
* ---
|
|
68
|
+
*
|
|
69
|
+
* The following Lucide icons are derived from the Feather project:
|
|
70
|
+
*
|
|
71
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
72
|
+
*
|
|
73
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
74
|
+
*
|
|
75
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
76
|
+
*
|
|
77
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
78
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
79
|
+
* in the Software without restriction, including without limitation the rights
|
|
80
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
81
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
82
|
+
* furnished to do so, subject to the following conditions:
|
|
83
|
+
*
|
|
84
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
85
|
+
* copies or substantial portions of the Software.
|
|
86
|
+
*
|
|
87
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
88
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
89
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
90
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
91
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
92
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
93
|
+
* SOFTWARE.
|
|
94
|
+
*
|
|
95
|
+
*/const Qt=a=>{for(const e in a)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/**
|
|
96
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
97
|
+
*
|
|
98
|
+
* ISC License
|
|
99
|
+
*
|
|
100
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
101
|
+
*
|
|
102
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
103
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
104
|
+
* copyright notice and this permission notice appear in all copies.
|
|
105
|
+
*
|
|
106
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
107
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
108
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
109
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
110
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
111
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
112
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
113
|
+
*
|
|
114
|
+
* ---
|
|
115
|
+
*
|
|
116
|
+
* The following Lucide icons are derived from the Feather project:
|
|
117
|
+
*
|
|
118
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
119
|
+
*
|
|
120
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
121
|
+
*
|
|
122
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
123
|
+
*
|
|
124
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
125
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
126
|
+
* in the Software without restriction, including without limitation the rights
|
|
127
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
128
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
129
|
+
* furnished to do so, subject to the following conditions:
|
|
130
|
+
*
|
|
131
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
132
|
+
* copies or substantial portions of the Software.
|
|
133
|
+
*
|
|
134
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
135
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
136
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
137
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
138
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
139
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
140
|
+
* SOFTWARE.
|
|
141
|
+
*
|
|
142
|
+
*/const Xt=(...a)=>a.filter((e,s,t)=>!!e&&e.trim()!==""&&t.indexOf(e)===s).join(" ").trim();function yt(a,e,s){const t=a.slice();return t[10]=e[s][0],t[11]=e[s][1],t}function wt(a){let e,s=[a[11]],t={};for(let n=0;n<s.length;n+=1)t=w(t,s[n]);return{c(){e=Ae(a[10]),this.h()},l(n){e=Me(n,a[10],{}),v(e).forEach(c),this.h()},h(){ct(e,t)},m(n,l){Z(n,e,l)},p(n,l){ct(e,t=oe(s,[l&32&&n[11]]))},d(n){n&&c(e)}}}function xt(a){let e=a[10],s,t=a[10]&&wt(a);return{c(){t&&t.c(),s=Ue()},l(n){t&&t.l(n),s=Ue()},m(n,l){t&&t.m(n,l),Z(n,s,l)},p(n,l){n[10]?e?x(e,n[10])?(t.d(1),t=wt(n),e=n[10],t.c(),t.m(s.parentNode,s)):t.p(n,l):(t=wt(n),e=n[10],t.c(),t.m(s.parentNode,s)):e&&(t.d(1),t=null,e=n[10])},d(n){n&&c(s),t&&t.d(n)}}}function Bl(a){let e,s,t,n,l,o=xe(a[5]),i=[];for(let d=0;d<o.length;d+=1)i[d]=xt(yt(a,o,d));const $=a[9].default,h=ee($,a,a[8],null);let f=[Jt,Qt(a[6])?void 0:{"aria-hidden":"true"},a[6],{width:a[2]},{height:a[2]},{stroke:a[1]},{"stroke-width":t=a[4]?Number(a[3])*24/Number(a[2]):a[3]},{class:n=Xt("lucide-icon","lucide",a[0]?`lucide-${a[0]}`:"",a[7].class)}],_={};for(let d=0;d<f.length;d+=1)_=w(_,f[d]);return{c(){e=Ae("svg");for(let d=0;d<i.length;d+=1)i[d].c();s=Ue(),h&&h.c(),this.h()},l(d){e=Me(d,"svg",{width:!0,height:!0,stroke:!0,"stroke-width":!0,class:!0});var A=v(e);for(let b=0;b<i.length;b+=1)i[b].l(A);s=Ue(),h&&h.l(A),A.forEach(c),this.h()},h(){ct(e,_)},m(d,A){Z(d,e,A);for(let b=0;b<i.length;b+=1)i[b]&&i[b].m(e,null);u(e,s),h&&h.m(e,null),l=!0},p(d,[A]){if(A&32){o=xe(d[5]);let b;for(b=0;b<o.length;b+=1){const T=yt(d,o,b);i[b]?i[b].p(T,A):(i[b]=xt(T),i[b].c(),i[b].m(e,s))}for(;b<i.length;b+=1)i[b].d(1);i.length=o.length}h&&h.p&&(!l||A&256)&&te(h,$,d,d[8],l?ne($,d[8],A,null):le(d[8]),null),ct(e,_=oe(f,[Jt,A&64&&(Qt(d[6])?void 0:{"aria-hidden":"true"}),A&64&&d[6],(!l||A&4)&&{width:d[2]},(!l||A&4)&&{height:d[2]},(!l||A&2)&&{stroke:d[1]},(!l||A&28&&t!==(t=d[4]?Number(d[3])*24/Number(d[2]):d[3]))&&{"stroke-width":t},(!l||A&129&&n!==(n=Xt("lucide-icon","lucide",d[0]?`lucide-${d[0]}`:"",d[7].class)))&&{class:n}]))},i(d){l||(E(h,d),l=!0)},o(d){q(h,d),l=!1},d(d){d&&c(e),Mt(i,d),h&&h.d(d)}}}function Pl(a,e,s){const t=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let n=Yt(e,t),{$$slots:l={},$$scope:o}=e,{name:i=void 0}=e,{color:$="currentColor"}=e,{size:h=24}=e,{strokeWidth:f=2}=e,{absoluteStrokeWidth:_=!1}=e,{iconNode:d=[]}=e;return a.$$set=A=>{s(7,e=w(w({},e),I(A))),s(6,n=Yt(e,t)),"name"in A&&s(0,i=A.name),"color"in A&&s(1,$=A.color),"size"in A&&s(2,h=A.size),"strokeWidth"in A&&s(3,f=A.strokeWidth),"absoluteStrokeWidth"in A&&s(4,_=A.absoluteStrokeWidth),"iconNode"in A&&s(5,d=A.iconNode),"$$scope"in A&&s(8,o=A.$$scope)},e=I(e),[i,$,h,f,_,d,n,e,o,l]}class me extends se{constructor(e){super(),ae(this,e,Pl,Bl,x,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Ul(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Vl(a){let e,s;const t=[{name:"box"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Ul]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Ol(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}],["path",{d:"m3.3 7 8.7 5 8.7-5"}],["path",{d:"M12 22V12"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Wl extends se{constructor(e){super(),ae(this,e,Ol,Vl,x,{})}}function zl(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Ll(a){let e,s;const t=[{name:"circle-question-mark"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[zl]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function jl(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Rl extends se{constructor(e){super(),ae(this,e,jl,Ll,x,{})}}function Fl(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Yl(a){let e,s;const t=[{name:"coins"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Fl]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Gl(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48"}],["path",{d:"M15 6h1v4"}],["path",{d:"m6.134 14.768.866-.5 2 3.464"}],["circle",{cx:"16",cy:"8",r:"6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Kl extends se{constructor(e){super(),ae(this,e,Gl,Yl,x,{})}}function Zl(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Jl(a){let e,s;const t=[{name:"dollar-sign"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Zl]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Ql(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["line",{x1:"12",x2:"12",y1:"2",y2:"22"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Xl extends se{constructor(e){super(),ae(this,e,Ql,Jl,x,{})}}function yl(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function xl(a){let e,s;const t=[{name:"external-link"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[yl]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function en(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class tn extends se{constructor(e){super(),ae(this,e,en,xl,x,{})}}function ln(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function nn(a){let e,s;const t=[{name:"folder-kanban"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[ln]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function sn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z"}],["path",{d:"M8 10v4"}],["path",{d:"M12 10v2"}],["path",{d:"M16 10v6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class an extends se{constructor(e){super(),ae(this,e,sn,nn,x,{})}}function on(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function rn(a){let e,s;const t=[{name:"gauge"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[on]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function un(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class fn extends se{constructor(e){super(),ae(this,e,un,rn,x,{})}}function cn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function hn(a){let e,s;const t=[{name:"house"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[cn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function dn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class _n extends se{constructor(e){super(),ae(this,e,dn,hn,x,{})}}function mn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function gn(a){let e,s;const t=[{name:"layout-dashboard"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[mn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function pn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class vn extends se{constructor(e){super(),ae(this,e,pn,gn,x,{})}}function bn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function $n(a){let e,s;const t=[{name:"message-square"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[bn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function kn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Nn extends se{constructor(e){super(),ae(this,e,kn,$n,x,{})}}function wn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function En(a){let e,s;const t=[{name:"monitor-cog"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[wn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function qn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M12 17v4"}],["path",{d:"m14.305 7.53.923-.382"}],["path",{d:"m15.228 4.852-.923-.383"}],["path",{d:"m16.852 3.228-.383-.924"}],["path",{d:"m16.852 8.772-.383.923"}],["path",{d:"m19.148 3.228.383-.924"}],["path",{d:"m19.53 9.696-.382-.924"}],["path",{d:"m20.772 4.852.924-.383"}],["path",{d:"m20.772 7.148.924.383"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7"}],["path",{d:"M8 21h8"}],["circle",{cx:"18",cy:"6",r:"3"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Mn extends se{constructor(e){super(),ae(this,e,qn,En,x,{})}}function An(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Sn(a){let e,s;const t=[{name:"moon"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[An]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Tn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Cn extends se{constructor(e){super(),ae(this,e,Tn,Sn,x,{})}}function In(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Hn(a){let e,s;const t=[{name:"panel-left-close"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[In]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Dn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m16 15-3-3 3-3"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Bn extends se{constructor(e){super(),ae(this,e,Dn,Hn,x,{})}}function Pn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Un(a){let e,s;const t=[{name:"panel-left-open"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Pn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Vn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m14 9 3 3-3 3"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class On extends se{constructor(e){super(),ae(this,e,Vn,Un,x,{})}}function Wn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function zn(a){let e,s;const t=[{name:"settings"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Wn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Ln(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class jn extends se{constructor(e){super(),ae(this,e,Ln,zn,x,{})}}function Rn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Fn(a){let e,s;const t=[{name:"sun"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Rn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Yn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Gn extends se{constructor(e){super(),ae(this,e,Yn,Fn,x,{})}}function Kn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Zn(a){let e,s;const t=[{name:"tag"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Kn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Jn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Qn extends se{constructor(e){super(),ae(this,e,Jn,Zn,x,{})}}function Xn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function yn(a){let e,s;const t=[{name:"trophy"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Xn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function xn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18"}],["path",{d:"M4 22h16"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class es extends se{constructor(e){super(),ae(this,e,xn,yn,x,{})}}function ts(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function ls(a){let e,s;const t=[{name:"wrench"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[ts]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function ns(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class ss extends se{constructor(e){super(),ae(this,e,ns,ls,x,{})}}const{Boolean:$l}=Cl;function el(a,e,s){const t=a.slice();return t[30]=e[s],t}function tl(a,e,s){const t=a.slice();return t[33]=e[s],t}function ll(a){let e,s,t;return{c(){e=N("div"),this.h()},l(n){e=k(n,"DIV",{class:!0}),v(e).forEach(c),this.h()},h(){r(e,"class","mobile-backdrop svelte-4sq9id")},m(n,l){Z(n,e,l),s||(t=ke(e,"click",a[17]),s=!0)},p:lt,d(n){n&&c(e),s=!1,t()}}}function as(a){let e,s,t,n,l,o,i,$,h,f,_,d,A,b,T,Y,H,V,C,K,W,O,z=a[11]==="en"?"中":"EN",y,re,ue,G,D,g,m,M,S,fe,Ne,Q,qe,Te,_t,mt,Ie,Ce,He,St='<span class="svelte-4sq9id"></span><span class="svelte-4sq9id"></span><span class="svelte-4sq9id"></span>',gt,De,Tt='<svg class="brand-logo svelte-4sq9id" width="20" height="20" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"></rect><rect x="10" y="38" width="12" height="16" rx="3" fill="white"></rect><rect x="26" y="26" width="12" height="28" rx="3" fill="white"></rect><rect x="42" y="14" width="12" height="40" rx="3" fill="white"></rect></svg> <span class="brand-name svelte-4sq9id">AIUsage</span>',pt,Be,Ve,Oe,ie,vt,We,Ge,et=a[11]==="en"?"中":"EN",nt,bt,Ke,we,$t,Ct,$e=!a[2]&&nl(),ze=xe(a[13]),X=[];for(let p=0;p<ze.length;p+=1)X[p]=il(el(a,ze,p));const kl=p=>q(X[p],1,1,()=>{X[p]=null});var Ze=a[14][a[12]];function It(p,U){return{props:{size:14,strokeWidth:1.75}}}Ze&&(H=Xe(Ze,It()));let ge=!a[2]&&rl(a),pe=!a[2]&&ul(a);const Ht=[fs,us],Le=[];function Dt(p,U){return p[2]?0:1}m=Dt(a),M=Le[m]=Ht[m](a);let ve=!a[2]&&fl(a);Te=new tn({props:{size:14,strokeWidth:1.75}});let be=!a[2]&&cl(a);var Je=a[14][a[12]];function Bt(p,U){return{props:{size:14,strokeWidth:1.75}}}Je&&(ie=Xe(Je,Bt()));const kt=a[24].default,Ee=ee(kt,a,a[23],null);return{c(){e=N("div"),s=N("aside"),t=N("div"),n=N("a"),l=Ae("svg"),o=Ae("rect"),i=Ae("rect"),$=Ae("rect"),h=Ae("rect"),f=P(),$e&&$e.c(),_=P(),d=N("nav");for(let p=0;p<X.length;p+=1)X[p].c();A=P(),b=N("div"),T=N("button"),Y=N("span"),H&&F(H.$$.fragment),V=P(),ge&&ge.c(),K=P(),W=N("button"),O=N("span"),y=de(z),re=P(),pe&&pe.c(),G=P(),D=N("button"),g=N("span"),M.c(),S=P(),ve&&ve.c(),Ne=P(),Q=N("a"),qe=N("span"),F(Te.$$.fragment),_t=P(),be&&be.c(),mt=P(),Ie=N("div"),Ce=N("header"),He=N("button"),He.innerHTML=St,gt=P(),De=N("a"),De.innerHTML=Tt,pt=P(),Be=N("div"),Ve=N("button"),Oe=N("span"),ie&&F(ie.$$.fragment),vt=P(),We=N("button"),Ge=N("span"),nt=de(et),bt=P(),Ke=N("main"),Ee&&Ee.c(),this.h()},l(p){e=k(p,"DIV",{class:!0});var U=v(e);s=k(U,"ASIDE",{class:!0});var Se=v(s);t=k(Se,"DIV",{class:!0});var L=v(t);n=k(L,"A",{href:!0,class:!0});var je=v(n);l=Me(je,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0,"aria-hidden":!0});var tt=v(l);o=Me(tt,"rect",{width:!0,height:!0,rx:!0,fill:!0}),v(o).forEach(c),i=Me(tt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v(i).forEach(c),$=Me(tt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v($).forEach(c),h=Me(tt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v(h).forEach(c),tt.forEach(c),f=B(je),$e&&$e.l(je),je.forEach(c),_=B(L),d=k(L,"NAV",{class:!0});var Pt=v(d);for(let Nt=0;Nt<X.length;Nt+=1)X[Nt].l(Pt);Pt.forEach(c),A=B(L),b=k(L,"DIV",{class:!0});var Pe=v(b);T=k(Pe,"BUTTON",{class:!0,title:!0});var st=v(T);Y=k(st,"SPAN",{class:!0});var Ut=v(Y);H&&J(H.$$.fragment,Ut),Ut.forEach(c),V=B(st),ge&&ge.l(st),st.forEach(c),K=B(Pe),W=k(Pe,"BUTTON",{class:!0,title:!0});var at=v(W);O=k(at,"SPAN",{class:!0});var Vt=v(O);y=he(Vt,z),Vt.forEach(c),re=B(at),pe&&pe.l(at),at.forEach(c),G=B(Pe),D=k(Pe,"BUTTON",{class:!0,title:!0});var ot=v(D);g=k(ot,"SPAN",{class:!0});var Ot=v(g);M.l(Ot),Ot.forEach(c),S=B(ot),ve&&ve.l(ot),ot.forEach(c),Ne=B(Pe),Q=k(Pe,"A",{class:!0,href:!0,target:!0,rel:!0,title:!0});var it=v(Q);qe=k(it,"SPAN",{class:!0});var Wt=v(qe);J(Te.$$.fragment,Wt),Wt.forEach(c),_t=B(it),be&&be.l(it),it.forEach(c),Pe.forEach(c),L.forEach(c),Se.forEach(c),mt=B(U),Ie=k(U,"DIV",{class:!0});var rt=v(Ie);Ce=k(rt,"HEADER",{class:!0});var Qe=v(Ce);He=k(Qe,"BUTTON",{class:!0,"data-svelte-h":!0}),Ye(He)!=="svelte-tgxof7"&&(He.innerHTML=St),gt=B(Qe),De=k(Qe,"A",{href:!0,class:!0,"data-svelte-h":!0}),Ye(De)!=="svelte-dv0i7k"&&(De.innerHTML=Tt),pt=B(Qe),Be=k(Qe,"DIV",{class:!0});var ut=v(Be);Ve=k(ut,"BUTTON",{class:!0});var zt=v(Ve);Oe=k(zt,"SPAN",{class:!0});var Lt=v(Oe);ie&&J(ie.$$.fragment,Lt),Lt.forEach(c),zt.forEach(c),vt=B(ut),We=k(ut,"BUTTON",{class:!0});var jt=v(We);Ge=k(jt,"SPAN",{class:!0});var Rt=v(Ge);nt=he(Rt,et),Rt.forEach(c),jt.forEach(c),ut.forEach(c),Qe.forEach(c),bt=B(rt),Ke=k(rt,"MAIN",{class:!0});var Ft=v(Ke);Ee&&Ee.l(Ft),Ft.forEach(c),rt.forEach(c),U.forEach(c),this.h()},h(){r(o,"width","64"),r(o,"height","64"),r(o,"rx","14"),r(o,"fill","currentColor"),r(i,"x","10"),r(i,"y","38"),r(i,"width","12"),r(i,"height","16"),r(i,"rx","3"),r(i,"fill","white"),r($,"x","26"),r($,"y","26"),r($,"width","12"),r($,"height","28"),r($,"rx","3"),r($,"fill","white"),r(h,"x","42"),r(h,"y","14"),r(h,"width","12"),r(h,"height","40"),r(h,"rx","3"),r(h,"fill","white"),r(l,"class","brand-logo svelte-4sq9id"),r(l,"width","20"),r(l,"height","20"),r(l,"viewBox","0 0 64 64"),r(l,"fill","none"),r(l,"xmlns","http://www.w3.org/2000/svg"),r(l,"aria-hidden","true"),r(n,"href","/"),r(n,"class","brand svelte-4sq9id"),r(d,"class","sidebar-nav svelte-4sq9id"),r(Y,"class","ctrl-icon svelte-4sq9id"),r(T,"class","ctrl-btn svelte-4sq9id"),r(T,"title",C=a[10](`theme.${a[12]}`)),r(O,"class","ctrl-icon lang-icon svelte-4sq9id"),r(W,"class","ctrl-btn svelte-4sq9id"),r(W,"title",ue=a[11]==="en"?"中文":"EN"),r(g,"class","ctrl-icon svelte-4sq9id"),r(D,"class","ctrl-btn collapse-btn svelte-4sq9id"),r(D,"title",fe=a[10](a[2]?"nav.expand":"nav.collapse")),r(qe,"class","ctrl-icon svelte-4sq9id"),r(Q,"class","ctrl-btn svelte-4sq9id"),r(Q,"href","https://aiusage.jtanx.com"),r(Q,"target","_blank"),r(Q,"rel","noopener"),r(Q,"title","aiusage.jtanx.com"),r(b,"class","sidebar-footer svelte-4sq9id"),r(t,"class","sidebar-inner svelte-4sq9id"),r(s,"class","sidebar svelte-4sq9id"),ye(s,"open",a[3]),r(He,"class","hamburger svelte-4sq9id"),r(De,"href","/"),r(De,"class","brand brand-mobile svelte-4sq9id"),r(Oe,"class","ctrl-icon svelte-4sq9id"),r(Ve,"class","ctrl-btn svelte-4sq9id"),r(Ge,"class","ctrl-icon lang-icon svelte-4sq9id"),r(We,"class","ctrl-btn svelte-4sq9id"),r(Be,"class","mobile-controls svelte-4sq9id"),r(Ce,"class","mobile-header svelte-4sq9id"),r(Ke,"class","page-content svelte-4sq9id"),r(Ie,"class","main-area svelte-4sq9id"),r(e,"class","app svelte-4sq9id"),ye(e,"collapsed",a[2])},m(p,U){Z(p,e,U),u(e,s),u(s,t),u(t,n),u(n,l),u(l,o),u(l,i),u(l,$),u(l,h),u(n,f),$e&&$e.m(n,null),u(t,_),u(t,d);for(let Se=0;Se<X.length;Se+=1)X[Se]&&X[Se].m(d,null);u(t,A),u(t,b),u(b,T),u(T,Y),H&&R(H,Y,null),u(T,V),ge&&ge.m(T,null),u(b,K),u(b,W),u(W,O),u(O,y),u(W,re),pe&&pe.m(W,null),u(b,G),u(b,D),u(D,g),Le[m].m(g,null),u(D,S),ve&&ve.m(D,null),u(b,Ne),u(b,Q),u(Q,qe),R(Te,qe,null),u(Q,_t),be&&be.m(Q,null),u(e,mt),u(e,Ie),u(Ie,Ce),u(Ce,He),u(Ce,gt),u(Ce,De),u(Ce,pt),u(Ce,Be),u(Be,Ve),u(Ve,Oe),ie&&R(ie,Oe,null),u(Be,vt),u(Be,We),u(We,Ge),u(Ge,nt),u(Ie,bt),u(Ie,Ke),Ee&&Ee.m(Ke,null),we=!0,$t||(Ct=[ke(T,"click",Zt),ke(W,"click",Et),ke(D,"click",a[16]),ke(He,"click",a[17]),ke(Ve,"click",Zt),ke(We,"click",Et)],$t=!0)},p(p,U){if(p[2]?$e&&($e.d(1),$e=null):$e||($e=nl(),$e.c(),$e.m(n,null)),U[0]&9222){ze=xe(p[13]);let L;for(L=0;L<ze.length;L+=1){const je=el(p,ze,L);X[L]?(X[L].p(je,U),E(X[L],1)):(X[L]=il(je),X[L].c(),E(X[L],1),X[L].m(d,null))}for(Fe(),L=ze.length;L<X.length;L+=1)kl(L);Re()}if(U[0]&4096&&Ze!==(Ze=p[14][p[12]])){if(H){Fe();const L=H;q(L.$$.fragment,1,0,()=>{j(L,1)}),Re()}Ze?(H=Xe(Ze,It()),F(H.$$.fragment),E(H.$$.fragment,1),R(H,Y,null)):H=null}p[2]?ge&&(ge.d(1),ge=null):ge?ge.p(p,U):(ge=rl(p),ge.c(),ge.m(T,null)),(!we||U[0]&5120&&C!==(C=p[10](`theme.${p[12]}`)))&&r(T,"title",C),(!we||U[0]&2048)&&z!==(z=p[11]==="en"?"中":"EN")&&ce(y,z),p[2]?pe&&(pe.d(1),pe=null):pe?pe.p(p,U):(pe=ul(p),pe.c(),pe.m(W,null)),(!we||U[0]&2048&&ue!==(ue=p[11]==="en"?"中文":"EN"))&&r(W,"title",ue);let Se=m;if(m=Dt(p),m!==Se&&(Fe(),q(Le[Se],1,1,()=>{Le[Se]=null}),Re(),M=Le[m],M||(M=Le[m]=Ht[m](p),M.c()),E(M,1),M.m(g,null)),p[2]?ve&&(ve.d(1),ve=null):ve?ve.p(p,U):(ve=fl(p),ve.c(),ve.m(D,null)),(!we||U[0]&1028&&fe!==(fe=p[10](p[2]?"nav.expand":"nav.collapse")))&&r(D,"title",fe),p[2]?be&&(be.d(1),be=null):be?be.p(p,U):(be=cl(p),be.c(),be.m(Q,null)),(!we||U[0]&8)&&ye(s,"open",p[3]),U[0]&4096&&Je!==(Je=p[14][p[12]])){if(ie){Fe();const L=ie;q(L.$$.fragment,1,0,()=>{j(L,1)}),Re()}Je?(ie=Xe(Je,Bt()),F(ie.$$.fragment),E(ie.$$.fragment,1),R(ie,Oe,null)):ie=null}(!we||U[0]&2048)&&et!==(et=p[11]==="en"?"中":"EN")&&ce(nt,et),Ee&&Ee.p&&(!we||U[0]&8388608)&&te(Ee,kt,p,p[23],we?ne(kt,p[23],U,null):le(p[23]),null),(!we||U[0]&4)&&ye(e,"collapsed",p[2])},i(p){if(!we){for(let U=0;U<ze.length;U+=1)E(X[U]);H&&E(H.$$.fragment,p),E(M),E(Te.$$.fragment,p),ie&&E(ie.$$.fragment,p),E(Ee,p),we=!0}},o(p){X=X.filter($l);for(let U=0;U<X.length;U+=1)q(X[U]);H&&q(H.$$.fragment,p),q(M),q(Te.$$.fragment,p),ie&&q(ie.$$.fragment,p),q(Ee,p),we=!1},d(p){p&&c(e),$e&&$e.d(),Mt(X,p),H&&j(H),ge&&ge.d(),pe&&pe.d(),Le[m].d(),ve&&ve.d(),j(Te),be&&be.d(),ie&&j(ie),Ee&&Ee.d(p),$t=!1,dt(Ct)}}}function os(a){let e,s,t,n,l,o,i,$,h,f,_="AIUsage",d,A,b,T=a[11]==="en"?"中":"EN",Y,H,V,C,K,W,O,z,y,re;const ue=a[24].default,G=ee(ue,a,a[23],null);let D=a[7]&&hl(a);return{c(){e=N("div"),s=N("header"),t=N("button"),n=Ae("svg"),l=Ae("rect"),o=Ae("rect"),i=Ae("rect"),$=Ae("rect"),h=P(),f=N("span"),f.textContent=_,A=P(),b=N("button"),Y=de(T),V=P(),C=N("main"),K=N("div"),G&&G.c(),W=P(),D&&D.c(),O=Ue(),this.h()},l(g){e=k(g,"DIV",{class:!0});var m=v(e);s=k(m,"HEADER",{class:!0});var M=v(s);t=k(M,"BUTTON",{class:!0,type:!0,"aria-label":!0});var S=v(t);n=Me(S,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0,"aria-hidden":!0});var fe=v(n);l=Me(fe,"rect",{width:!0,height:!0,rx:!0,fill:!0}),v(l).forEach(c),o=Me(fe,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v(o).forEach(c),i=Me(fe,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v(i).forEach(c),$=Me(fe,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v($).forEach(c),fe.forEach(c),h=B(S),f=k(S,"SPAN",{"data-svelte-h":!0}),Ye(f)!=="svelte-3yic45"&&(f.textContent=_),S.forEach(c),A=B(M),b=k(M,"BUTTON",{class:!0,type:!0,title:!0});var Ne=v(b);Y=he(Ne,T),Ne.forEach(c),M.forEach(c),V=B(m),C=k(m,"MAIN",{class:!0});var Q=v(C);K=k(Q,"DIV",{class:!0});var qe=v(K);G&&G.l(qe),qe.forEach(c),Q.forEach(c),m.forEach(c),W=B(g),D&&D.l(g),O=Ue(),this.h()},h(){r(l,"width","64"),r(l,"height","64"),r(l,"rx","14"),r(l,"fill","currentColor"),r(o,"x","10"),r(o,"y","38"),r(o,"width","12"),r(o,"height","16"),r(o,"rx","3"),r(o,"fill","white"),r(i,"x","26"),r(i,"y","26"),r(i,"width","12"),r(i,"height","28"),r(i,"rx","3"),r(i,"fill","white"),r($,"x","42"),r($,"y","14"),r($,"width","12"),r($,"height","40"),r($,"rx","3"),r($,"fill","white"),r(n,"class","brand-logo svelte-4sq9id"),r(n,"width","20"),r(n,"height","20"),r(n,"viewBox","0 0 64 64"),r(n,"fill","none"),r(n,"xmlns","http://www.w3.org/2000/svg"),r(n,"aria-hidden","true"),r(t,"class","public-unlock svelte-4sq9id"),r(t,"type","button"),r(t,"aria-label",d=a[10]("auth.unlockDashboard")),r(b,"class","public-lang svelte-4sq9id"),r(b,"type","button"),r(b,"title",H=a[11]==="en"?"中文":"EN"),r(s,"class","public-header svelte-4sq9id"),r(K,"class","public-page-inner svelte-4sq9id"),r(C,"class","public-page-content svelte-4sq9id"),r(e,"class","public-shell svelte-4sq9id")},m(g,m){Z(g,e,m),u(e,s),u(s,t),u(t,n),u(n,l),u(n,o),u(n,i),u(n,$),u(t,h),u(t,f),u(s,A),u(s,b),u(b,Y),u(e,V),u(e,C),u(C,K),G&&G.m(K,null),Z(g,W,m),D&&D.m(g,m),Z(g,O,m),z=!0,y||(re=[ke(t,"click",a[18]),ke(b,"click",Et)],y=!0)},p(g,m){(!z||m[0]&1024&&d!==(d=g[10]("auth.unlockDashboard")))&&r(t,"aria-label",d),(!z||m[0]&2048)&&T!==(T=g[11]==="en"?"中":"EN")&&ce(Y,T),(!z||m[0]&2048&&H!==(H=g[11]==="en"?"中文":"EN"))&&r(b,"title",H),G&&G.p&&(!z||m[0]&8388608)&&te(G,ue,g,g[23],z?ne(ue,g[23],m,null):le(g[23]),null),g[7]?D?D.p(g,m):(D=hl(g),D.c(),D.m(O.parentNode,O)):D&&(D.d(1),D=null)},i(g){z||(E(G,g),z=!0)},o(g){q(G,g),z=!1},d(g){g&&(c(e),c(W),c(O)),G&&G.d(g),D&&D.d(g),y=!1,dt(re)}}}function is(a){let e,s,t,n=a[10]("auth.checking")+"",l;return{c(){e=N("main"),s=N("section"),t=N("div"),l=de(n),this.h()},l(o){e=k(o,"MAIN",{class:!0});var i=v(e);s=k(i,"SECTION",{class:!0});var $=v(s);t=k($,"DIV",{class:!0});var h=v(t);l=he(h,n),h.forEach(c),$.forEach(c),i.forEach(c),this.h()},h(){r(t,"class","auth-loading svelte-4sq9id"),r(s,"class","auth-card svelte-4sq9id"),r(e,"class","auth-page svelte-4sq9id")},m(o,i){Z(o,e,i),u(e,s),u(s,t),u(t,l)},p(o,i){i[0]&1024&&n!==(n=o[10]("auth.checking")+"")&&ce(l,n)},i:lt,o:lt,d(o){o&&c(e)}}}function rs(a){let e,s,t,n='<svg class="brand-logo svelte-4sq9id" width="24" height="24" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"></rect><rect x="10" y="38" width="12" height="16" rx="3" fill="white"></rect><rect x="26" y="26" width="12" height="28" rx="3" fill="white"></rect><rect x="42" y="14" width="12" height="40" rx="3" fill="white"></rect></svg> <span class="brand-name svelte-4sq9id">AIUsage</span>',l,o,i=a[10]("auth.locked")+"",$,h,f,_=a[10]("auth.lockedHint")+"",d,A,b,T,Y,H,V,C=(a[6]?a[10]("auth.unlocking"):a[10]("auth.unlock"))+"",K,W,O,z,y,re=a[10]("auth.backHome")+"",ue,G,D,g=a[5]&&_l(a);return{c(){e=N("main"),s=N("section"),t=N("a"),t.innerHTML=n,l=P(),o=N("h1"),$=de(i),h=P(),f=N("p"),d=de(_),A=P(),b=N("form"),T=N("input"),H=P(),V=N("button"),K=de(C),O=P(),g&&g.c(),z=P(),y=N("a"),ue=de(re),this.h()},l(m){e=k(m,"MAIN",{class:!0});var M=v(e);s=k(M,"SECTION",{class:!0});var S=v(s);t=k(S,"A",{href:!0,class:!0,"data-svelte-h":!0}),Ye(t)!=="svelte-9cdv68"&&(t.innerHTML=n),l=B(S),o=k(S,"H1",{class:!0});var fe=v(o);$=he(fe,i),fe.forEach(c),h=B(S),f=k(S,"P",{class:!0});var Ne=v(f);d=he(Ne,_),Ne.forEach(c),A=B(S),b=k(S,"FORM",{class:!0});var Q=v(b);T=k(Q,"INPUT",{type:!0,placeholder:!0,autocomplete:!0,class:!0}),H=B(Q),V=k(Q,"BUTTON",{type:!0,class:!0});var qe=v(V);K=he(qe,C),qe.forEach(c),Q.forEach(c),O=B(S),g&&g.l(S),z=B(S),y=k(S,"A",{class:!0,href:!0});var Te=v(y);ue=he(Te,re),Te.forEach(c),S.forEach(c),M.forEach(c),this.h()},h(){r(t,"href","/"),r(t,"class","brand auth-brand svelte-4sq9id"),r(o,"class","svelte-4sq9id"),r(f,"class","svelte-4sq9id"),r(T,"type","password"),r(T,"placeholder",Y=a[10]("auth.password")),r(T,"autocomplete","current-password"),T.autofocus=!0,r(T,"class","svelte-4sq9id"),r(V,"type","submit"),V.disabled=W=a[6]||!a[4],r(V,"class","svelte-4sq9id"),r(b,"class","svelte-4sq9id"),r(y,"class","auth-home svelte-4sq9id"),r(y,"href","/"),r(s,"class","auth-card svelte-4sq9id"),r(e,"class","auth-page svelte-4sq9id")},m(m,M){Z(m,e,M),u(e,s),u(s,t),u(s,l),u(s,o),u(o,$),u(s,h),u(s,f),u(f,d),u(s,A),u(s,b),u(b,T),ht(T,a[4]),u(b,H),u(b,V),u(V,K),u(s,O),g&&g.m(s,null),u(s,z),u(s,y),u(y,ue),T.focus(),G||(D=[ke(T,"input",a[25]),ke(b,"submit",gl(a[15]))],G=!0)},p(m,M){M[0]&1024&&i!==(i=m[10]("auth.locked")+"")&&ce($,i),M[0]&1024&&_!==(_=m[10]("auth.lockedHint")+"")&&ce(d,_),M[0]&1024&&Y!==(Y=m[10]("auth.password"))&&r(T,"placeholder",Y),M[0]&16&&T.value!==m[4]&&ht(T,m[4]),M[0]&1088&&C!==(C=(m[6]?m[10]("auth.unlocking"):m[10]("auth.unlock"))+"")&&ce(K,C),M[0]&80&&W!==(W=m[6]||!m[4])&&(V.disabled=W),m[5]?g?g.p(m,M):(g=_l(m),g.c(),g.m(s,z)):g&&(g.d(1),g=null),M[0]&1024&&re!==(re=m[10]("auth.backHome")+"")&&ce(ue,re)},i:lt,o:lt,d(m){m&&c(e),g&&g.d(),G=!1,dt(D)}}}function nl(a){let e,s="AIUsage";return{c(){e=N("span"),e.textContent=s,this.h()},l(t){e=k(t,"SPAN",{class:!0,"data-svelte-h":!0}),Ye(e)!=="svelte-u9et1t"&&(e.textContent=s),this.h()},h(){r(e,"class","brand-name svelte-4sq9id")},m(t,n){Z(t,e,n)},d(t){t&&c(e)}}}function sl(a){let e,s=a[10](a[30].key)+"",t;return{c(){e=N("div"),t=de(s),this.h()},l(n){e=k(n,"DIV",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","group-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&1024&&s!==(s=n[10](n[30].key)+"")&&ce(t,s)},d(n){n&&c(e)}}}function al(a){let e,s=a[10](a[33].key)+"",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","nav-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&1024&&s!==(s=n[10](n[33].key)+"")&&ce(t,s)},d(n){n&&c(e)}}}function ol(a){let e,s,t,n,l,o;var i=a[33].icon;function $(f,_){return{props:{size:16,strokeWidth:1.75}}}i&&(t=Xe(i,$()));let h=!a[2]&&al(a);return{c(){e=N("a"),s=N("span"),t&&F(t.$$.fragment),n=P(),h&&h.c(),this.h()},l(f){e=k(f,"A",{href:!0,class:!0,title:!0});var _=v(e);s=k(_,"SPAN",{class:!0});var d=v(s);t&&J(t.$$.fragment,d),d.forEach(c),n=B(_),h&&h.l(_),_.forEach(c),this.h()},h(){r(s,"class","nav-icon svelte-4sq9id"),r(e,"href",a[33].path),r(e,"class","nav-item svelte-4sq9id"),r(e,"title",l=a[2]?a[10](a[33].key):void 0),ye(e,"active",a[1].url.pathname===a[33].path)},m(f,_){Z(f,e,_),u(e,s),t&&R(t,s,null),u(e,n),h&&h.m(e,null),o=!0},p(f,_){if(i!==(i=f[33].icon)){if(t){Fe();const d=t;q(d.$$.fragment,1,0,()=>{j(d,1)}),Re()}i?(t=Xe(i,$()),F(t.$$.fragment),E(t.$$.fragment,1),R(t,s,null)):t=null}f[2]?h&&(h.d(1),h=null):h?h.p(f,_):(h=al(f),h.c(),h.m(e,null)),(!o||_[0]&1028&&l!==(l=f[2]?f[10](f[33].key):void 0))&&r(e,"title",l),(!o||_[0]&8194)&&ye(e,"active",f[1].url.pathname===f[33].path)},i(f){o||(t&&E(t.$$.fragment,f),o=!0)},o(f){t&&q(t.$$.fragment,f),o=!1},d(f){f&&c(e),t&&j(t),h&&h.d()}}}function il(a){let e,s,t,n,l=!a[2]&&sl(a),o=xe(a[30].items),i=[];for(let h=0;h<o.length;h+=1)i[h]=ol(tl(a,o,h));const $=h=>q(i[h],1,1,()=>{i[h]=null});return{c(){e=N("div"),l&&l.c(),s=P();for(let h=0;h<i.length;h+=1)i[h].c();t=P(),this.h()},l(h){e=k(h,"DIV",{class:!0});var f=v(e);l&&l.l(f),s=B(f);for(let _=0;_<i.length;_+=1)i[_].l(f);t=B(f),f.forEach(c),this.h()},h(){r(e,"class","nav-group svelte-4sq9id")},m(h,f){Z(h,e,f),l&&l.m(e,null),u(e,s);for(let _=0;_<i.length;_+=1)i[_]&&i[_].m(e,null);u(e,t),n=!0},p(h,f){if(h[2]?l&&(l.d(1),l=null):l?l.p(h,f):(l=sl(h),l.c(),l.m(e,s)),f[0]&9222){o=xe(h[30].items);let _;for(_=0;_<o.length;_+=1){const d=tl(h,o,_);i[_]?(i[_].p(d,f),E(i[_],1)):(i[_]=ol(d),i[_].c(),E(i[_],1),i[_].m(e,t))}for(Fe(),_=o.length;_<i.length;_+=1)$(_);Re()}},i(h){if(!n){for(let f=0;f<o.length;f+=1)E(i[f]);n=!0}},o(h){i=i.filter($l);for(let f=0;f<i.length;f+=1)q(i[f]);n=!1},d(h){h&&c(e),l&&l.d(),Mt(i,h)}}}function rl(a){let e,s=a[10](`theme.${a[12]}`)+"",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","ctrl-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&5120&&s!==(s=n[10](`theme.${n[12]}`)+"")&&ce(t,s)},d(n){n&&c(e)}}}function ul(a){let e,s=a[11]==="en"?"中文":"English",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","ctrl-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&2048&&s!==(s=n[11]==="en"?"中文":"English")&&ce(t,s)},d(n){n&&c(e)}}}function us(a){let e,s;return e=new Bn({props:{size:14,strokeWidth:1.75}}),{c(){F(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,n){R(e,t,n),s=!0},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){j(e,t)}}}function fs(a){let e,s;return e=new On({props:{size:14,strokeWidth:1.75}}),{c(){F(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,n){R(e,t,n),s=!0},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){j(e,t)}}}function fl(a){let e,s=a[10]("nav.collapse")+"",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","ctrl-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&1024&&s!==(s=n[10]("nav.collapse")+"")&&ce(t,s)},d(n){n&&c(e)}}}function cl(a){let e,s=a[11]==="en"?"Website":"官网",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","ctrl-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&2048&&s!==(s=n[11]==="en"?"Website":"官网")&&ce(t,s)},d(n){n&&c(e)}}}function hl(a){let e,s,t,n,l="×",o,i,$='<svg class="brand-logo svelte-4sq9id" width="24" height="24" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"></rect><rect x="10" y="38" width="12" height="16" rx="3" fill="white"></rect><rect x="26" y="26" width="12" height="28" rx="3" fill="white"></rect><rect x="42" y="14" width="12" height="40" rx="3" fill="white"></rect></svg> <span class="brand-name svelte-4sq9id">AIUsage</span>',h,f,_=a[10]("auth.unlockDashboard")+"",d,A,b,T=a[10]("auth.unlockHint")+"",Y,H,V,C,K,W,O,z=(a[6]?a[10]("auth.unlocking"):a[10]("auth.unlock"))+"",y,re,ue,G,D,g=a[5]&&dl(a);return{c(){e=N("div"),s=P(),t=N("section"),n=N("button"),n.textContent=l,o=P(),i=N("div"),i.innerHTML=$,h=P(),f=N("h1"),d=de(_),A=P(),b=N("p"),Y=de(T),H=P(),V=N("form"),C=N("input"),W=P(),O=N("button"),y=de(z),ue=P(),g&&g.c(),this.h()},l(m){e=k(m,"DIV",{class:!0}),v(e).forEach(c),s=B(m),t=k(m,"SECTION",{class:!0,role:!0,"aria-modal":!0,"aria-labelledby":!0});var M=v(t);n=k(M,"BUTTON",{class:!0,type:!0,"aria-label":!0,"data-svelte-h":!0}),Ye(n)!=="svelte-1irhmtp"&&(n.textContent=l),o=B(M),i=k(M,"DIV",{class:!0,"data-svelte-h":!0}),Ye(i)!=="svelte-1dvmegl"&&(i.innerHTML=$),h=B(M),f=k(M,"H1",{id:!0,class:!0});var S=v(f);d=he(S,_),S.forEach(c),A=B(M),b=k(M,"P",{class:!0});var fe=v(b);Y=he(fe,T),fe.forEach(c),H=B(M),V=k(M,"FORM",{class:!0});var Ne=v(V);C=k(Ne,"INPUT",{type:!0,placeholder:!0,autocomplete:!0,class:!0}),W=B(Ne),O=k(Ne,"BUTTON",{type:!0,class:!0});var Q=v(O);y=he(Q,z),Q.forEach(c),Ne.forEach(c),ue=B(M),g&&g.l(M),M.forEach(c),this.h()},h(){r(e,"class","auth-modal-backdrop svelte-4sq9id"),r(n,"class","auth-close svelte-4sq9id"),r(n,"type","button"),r(n,"aria-label","Close"),r(i,"class","brand auth-brand svelte-4sq9id"),r(f,"id","unlock-title"),r(f,"class","svelte-4sq9id"),r(b,"class","svelte-4sq9id"),r(C,"type","password"),r(C,"placeholder",K=a[10]("auth.password")),r(C,"autocomplete","current-password"),C.autofocus=!0,r(C,"class","svelte-4sq9id"),r(O,"type","submit"),O.disabled=re=a[6]||!a[4],r(O,"class","svelte-4sq9id"),r(V,"class","svelte-4sq9id"),r(t,"class","auth-card auth-modal svelte-4sq9id"),r(t,"role","dialog"),r(t,"aria-modal","true"),r(t,"aria-labelledby","unlock-title")},m(m,M){Z(m,e,M),Z(m,s,M),Z(m,t,M),u(t,n),u(t,o),u(t,i),u(t,h),u(t,f),u(f,d),u(t,A),u(t,b),u(b,Y),u(t,H),u(t,V),u(V,C),ht(C,a[4]),u(V,W),u(V,O),u(O,y),u(t,ue),g&&g.m(t,null),C.focus(),G||(D=[ke(e,"click",a[19]),ke(n,"click",a[19]),ke(C,"input",a[26]),ke(V,"submit",gl(a[15]))],G=!0)},p(m,M){M[0]&1024&&_!==(_=m[10]("auth.unlockDashboard")+"")&&ce(d,_),M[0]&1024&&T!==(T=m[10]("auth.unlockHint")+"")&&ce(Y,T),M[0]&1024&&K!==(K=m[10]("auth.password"))&&r(C,"placeholder",K),M[0]&16&&C.value!==m[4]&&ht(C,m[4]),M[0]&1088&&z!==(z=(m[6]?m[10]("auth.unlocking"):m[10]("auth.unlock"))+"")&&ce(y,z),M[0]&80&&re!==(re=m[6]||!m[4])&&(O.disabled=re),m[5]?g?g.p(m,M):(g=dl(m),g.c(),g.m(t,null)):g&&(g.d(1),g=null)},d(m){m&&(c(e),c(s),c(t)),g&&g.d(),G=!1,dt(D)}}}function dl(a){let e,s;return{c(){e=N("div"),s=de(a[5]),this.h()},l(t){e=k(t,"DIV",{class:!0});var n=v(e);s=he(n,a[5]),n.forEach(c),this.h()},h(){r(e,"class","auth-error svelte-4sq9id")},m(t,n){Z(t,e,n),u(e,s)},p(t,n){n[0]&32&&ce(s,t[5])},d(t){t&&c(e)}}}function _l(a){let e,s;return{c(){e=N("div"),s=de(a[5]),this.h()},l(t){e=k(t,"DIV",{class:!0});var n=v(e);s=he(n,a[5]),n.forEach(c),this.h()},h(){r(e,"class","auth-error svelte-4sq9id")},m(t,n){Z(t,e,n),u(e,s)},p(t,n){n[0]&32&&ce(s,t[5])},d(t){t&&c(e)}}}function cs(a){let e,s,t,n,l,o=a[3]&&a[0]==="shell"&&ll(a);const i=[rs,is,os,as],$=[];function h(f,_){return f[9]?0:f[0]==="loading"?1:f[8]?2:3}return s=h(a),t=$[s]=i[s](a),{c(){o&&o.c(),e=P(),t.c(),n=Ue()},l(f){o&&o.l(f),e=B(f),t.l(f),n=Ue()},m(f,_){o&&o.m(f,_),Z(f,e,_),$[s].m(f,_),Z(f,n,_),l=!0},p(f,_){f[3]&&f[0]==="shell"?o?o.p(f,_):(o=ll(f),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let d=s;s=h(f),s===d?$[s].p(f,_):(Fe(),q($[d],1,1,()=>{$[d]=null}),Re(),t=$[s],t?t.p(f,_):(t=$[s]=i[s](f),t.c()),E(t,1),t.m(n.parentNode,n))},i(f){l||(E(t),l=!0)},o(f){q(t),l=!1},d(f){f&&(c(e),c(n)),o&&o.d(f),$[s].d(f)}}}const ml="aiusage-sidebar-collapsed";function hs(a,e,s){let t,n,l,o,i,$,h;ft(a,Ml,S=>s(1,o=S)),ft(a,Al,S=>s(10,i=S)),ft(a,Sl,S=>s(11,$=S)),ft(a,At,S=>s(12,h=S));let{$$slots:f={},$$scope:_}=e;const d=[{key:"nav.group.overview",items:[{path:"/",key:"nav.home",icon:_n},{path:"/overview",key:"nav.overview",icon:vn}]},{key:"nav.group.analytics",items:[{path:"/tokens",key:"nav.tokens",icon:Kl},{path:"/cost",key:"nav.cost",icon:Xl},{path:"/models",key:"nav.models",icon:Wl}]},{key:"nav.group.activity",items:[{path:"/sessions",key:"nav.sessions",icon:Nn},{path:"/projects",key:"nav.projects",icon:an},{path:"/tool-calls",key:"nav.toolCalls",icon:ss}]},{key:"nav.group.system",items:[{path:"/quotas",key:"nav.quotas",icon:fn},{path:"/pricing",key:"nav.pricing",icon:Qn},{path:"/leaderboard",key:"nav.leaderboard",icon:es},{path:"/settings",key:"nav.settings",icon:jn},{path:"/support",key:"nav.support",icon:Rl}]}];let A=!1,b=!1;const T={system:Mn,dark:Cn,light:Gn};let Y=!0,H=!1,V=!1,C="",K="",W=!1,O=!1;async function z(){try{const S=await El();s(21,H=!!S.enabled),s(22,V=!!S.authenticated)}catch{s(21,H=!1),s(22,V=!1)}finally{s(20,Y=!1)}}async function y(){s(5,K=""),s(6,W=!0);try{await ql(C),s(22,V=!0),s(4,C=""),s(7,O=!1),Gt().then(g).catch(()=>{})}catch(S){s(5,K=S instanceof Error?S.message:i("auth.loginFailed"))}finally{s(6,W=!1)}}function re(){s(2,A=!A),typeof window<"u"&&localStorage.setItem(ml,String(A))}function ue(){s(3,b=!b)}function G(){Y||(s(7,O=!0),s(5,K=""))}function D(){s(7,O=!1),s(5,K=""),s(4,C="")}function g(S){var fe;S.displayCurrency&&Tl.set(S.displayCurrency),(fe=S.exchangeRateCache)!=null&&fe.CNY_USD&&Kt.set(S.exchangeRateCache.CNY_USD),S.exchangeRate&&Kt.set(S.exchangeRate)}Nl(()=>{Hl(),z(),Gt().then(g).catch(()=>{}),typeof window<"u"&&s(2,A=localStorage.getItem(ml)==="true")}),wl(()=>{});function m(){C=this.value,s(4,C)}function M(){C=this.value,s(4,C)}return a.$$set=S=>{"$$scope"in S&&s(23,_=S.$$scope)},a.$$.update=()=>{a.$$.dirty[0]&2&&o.url.pathname,a.$$.dirty[0]&7340034&&s(0,t=Dl({pathname:o.url.pathname,authEnabled:H,authenticated:V,authLoading:Y})),a.$$.dirty[0]&1&&s(9,n=t==="login-page"),a.$$.dirty[0]&1&&s(8,l=t==="public-home"),a.$$.dirty[0]&2&&s(3,b=!1)},[t,o,A,b,C,K,W,O,l,n,i,$,h,d,T,y,re,ue,G,D,Y,H,V,_,f,m,M]}class $s extends se{constructor(e){super(),ae(this,e,hs,cs,x,{},null,[-1,-1])}}export{$s as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as x,n as u,c as S}from"../chunks/scheduler.
|
|
1
|
+
import{s as x,n as u,c as S}from"../chunks/scheduler.DsWd5xup.js";import{S as j,i as q,d as c,s as h,a as _,b as d,c as v,e as g,f as b,g as y,h as E,t as $,j as C}from"../chunks/index.66Vu9Sio.js";import{p as H}from"../chunks/stores.Botc0ioY.js";function P(p){var f;let a,s=p[0].status+"",r,o,n,i=((f=p[0].error)==null?void 0:f.message)+"",m;return{c(){a=E("h1"),r=$(s),o=C(),n=E("p"),m=$(i)},l(e){a=v(e,"H1",{});var t=g(a);r=b(t,s),t.forEach(c),o=y(e),n=v(e,"P",{});var l=g(n);m=b(l,i),l.forEach(c)},m(e,t){_(e,a,t),d(a,r),_(e,o,t),_(e,n,t),d(n,m)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&h(r,s),t&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&h(m,i)},i:u,o:u,d(e){e&&(c(a),c(o),c(n))}}}function k(p,a,s){let r;return S(p,H,o=>s(0,r=o)),[r]}class B extends j{constructor(a){super(),q(this,a,k,P,x,{})}}export{B as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as rt,c as Se,r as it}from"../chunks/scheduler.DsWd5xup.js";import{S as ft,i as ut,d as n,k as Be,l as Me,m as Ne,s as b,a as W,b as e,n as Oe,o as B,p as ct,g as p,c as u,e as c,f as m,q as Le,r as et,j as g,h,t as v,u as ze,v as ht,w as Fe}from"../chunks/index.66Vu9Sio.js";import{q as dt,e as tt}from"../chunks/api.Mv_KcGhp.js";import{h as st,b as Ce,f as lt,a as _t,s as mt,d as vt}from"../chunks/stores.BSI_cVy6.js";import{t as pt}from"../chunks/i18n.CwV3KceS.js";import{D as gt,a as Et,T as bt}from"../chunks/ToolSelector.CofvKVw2.js";function ot(t,s,o){const a=t.slice();return a[13]=s[o],a}function Tt(t){let s,o,a,l,_,k=t[4]("sessions.time")+"",D,C,E,f=t[4]("sessions.tool")+"",R,H,q,A=t[4]("sessions.model")+"",V,T,P,U=t[4]("sessions.duration")+"",M,L,X,N=t[4]("sessions.toolCalls")+"",j,r,S,$=t[4]("sessions.input")+"",K,y,z,Z=t[4]("sessions.output")+"",x,le,te,se=t[4]("sessions.cost")+"",ne,_e,G,d,J,Q,fe,oe=t[4]("common.previous")+"",re,ie,ue,Y,me=t[4]("common.page")+"",be,je,Te,we,ve=t[4]("common.of")+"",De,Pe,pe=Math.ceil(t[1].total/de)+"",ke,Re,ee,ge=t[4]("common.next")+"",He,Ve,Ie,Ue,Ye,ce=tt(t[1].sessions),O=[];for(let i=0;i<ce.length;i+=1)O[i]=at(ot(t,ce,i));return{c(){s=h("div"),o=h("table"),a=h("thead"),l=h("tr"),_=h("th"),D=v(k),C=g(),E=h("th"),R=v(f),H=g(),q=h("th"),V=v(A),T=g(),P=h("th"),M=v(U),L=g(),X=h("th"),j=v(N),r=g(),S=h("th"),K=v($),y=g(),z=h("th"),x=v(Z),le=g(),te=h("th"),ne=v(se),_e=g(),G=h("tbody");for(let i=0;i<O.length;i+=1)O[i].c();d=g(),J=h("div"),Q=h("button"),fe=v("← "),re=v(oe),ue=g(),Y=h("span"),be=v(me),je=g(),Te=v(t[0]),we=g(),De=v(ve),Pe=g(),ke=v(pe),Re=g(),ee=h("button"),He=v(ge),Ve=v(" →"),this.h()},l(i){s=u(i,"DIV",{class:!0});var I=c(s);o=u(I,"TABLE",{});var w=c(o);a=u(w,"THEAD",{});var Ee=c(a);l=u(Ee,"TR",{});var F=c(l);_=u(F,"TH",{});var Ge=c(_);D=m(Ge,k),Ge.forEach(n),C=p(F),E=u(F,"TH",{});var Je=c(E);R=m(Je,f),Je.forEach(n),H=p(F),q=u(F,"TH",{});var Ke=c(q);V=m(Ke,A),Ke.forEach(n),T=p(F),P=u(F,"TH",{});var Qe=c(P);M=m(Qe,U),Qe.forEach(n),L=p(F),X=u(F,"TH",{});var We=c(X);j=m(We,N),We.forEach(n),r=p(F),S=u(F,"TH",{});var Xe=c(S);K=m(Xe,$),Xe.forEach(n),y=p(F),z=u(F,"TH",{});var Ze=c(z);x=m(Ze,Z),Ze.forEach(n),le=p(F),te=u(F,"TH",{});var ye=c(te);ne=m(ye,se),ye.forEach(n),F.forEach(n),Ee.forEach(n),_e=p(w),G=u(w,"TBODY",{});var xe=c(G);for(let Ae=0;Ae<O.length;Ae+=1)O[Ae].l(xe);xe.forEach(n),w.forEach(n),I.forEach(n),d=p(i),J=u(i,"DIV",{class:!0});var he=c(J);Q=u(he,"BUTTON",{class:!0});var $e=c(Q);fe=m($e,"← "),re=m($e,oe),$e.forEach(n),ue=p(he),Y=u(he,"SPAN",{class:!0});var ae=c(Y);be=m(ae,me),je=p(ae),Te=m(ae,t[0]),we=p(ae),De=m(ae,ve),Pe=p(ae),ke=m(ae,pe),ae.forEach(n),Re=p(he),ee=u(he,"BUTTON",{class:!0});var qe=c(ee);He=m(qe,ge),Ve=m(qe," →"),qe.forEach(n),he.forEach(n),this.h()},h(){B(s,"class","card"),Q.disabled=ie=t[0]<=1,B(Q,"class","svelte-4jls37"),B(Y,"class","page-info mono svelte-4jls37"),ee.disabled=Ie=t[0]*de>=t[1].total,B(ee,"class","svelte-4jls37"),B(J,"class","pagination svelte-4jls37")},m(i,I){W(i,s,I),e(s,o),e(o,a),e(a,l),e(l,_),e(_,D),e(l,C),e(l,E),e(E,R),e(l,H),e(l,q),e(q,V),e(l,T),e(l,P),e(P,M),e(l,L),e(l,X),e(X,j),e(l,r),e(l,S),e(S,K),e(l,y),e(l,z),e(z,x),e(l,le),e(l,te),e(te,ne),e(o,_e),e(o,G);for(let w=0;w<O.length;w+=1)O[w]&&O[w].m(G,null);W(i,d,I),W(i,J,I),e(J,Q),e(Q,fe),e(Q,re),e(J,ue),e(J,Y),e(Y,be),e(Y,je),e(Y,Te),e(Y,we),e(Y,De),e(Y,Pe),e(Y,ke),e(J,Re),e(J,ee),e(ee,He),e(ee,Ve),Ue||(Ye=[Fe(Q,"click",t[6]),Fe(ee,"click",t[5])],Ue=!0)},p(i,I){if(I&16&&k!==(k=i[4]("sessions.time")+"")&&b(D,k),I&16&&f!==(f=i[4]("sessions.tool")+"")&&b(R,f),I&16&&A!==(A=i[4]("sessions.model")+"")&&b(V,A),I&16&&U!==(U=i[4]("sessions.duration")+"")&&b(M,U),I&16&&N!==(N=i[4]("sessions.toolCalls")+"")&&b(j,N),I&16&&$!==($=i[4]("sessions.input")+"")&&b(K,$),I&16&&Z!==(Z=i[4]("sessions.output")+"")&&b(x,Z),I&16&&se!==(se=i[4]("sessions.cost")+"")&&b(ne,se),I&130){ce=tt(i[1].sessions);let w;for(w=0;w<ce.length;w+=1){const Ee=ot(i,ce,w);O[w]?O[w].p(Ee,I):(O[w]=at(Ee),O[w].c(),O[w].m(G,null))}for(;w<O.length;w+=1)O[w].d(1);O.length=ce.length}I&16&&oe!==(oe=i[4]("common.previous")+"")&&b(re,oe),I&1&&ie!==(ie=i[0]<=1)&&(Q.disabled=ie),I&16&&me!==(me=i[4]("common.page")+"")&&b(be,me),I&1&&b(Te,i[0]),I&16&&ve!==(ve=i[4]("common.of")+"")&&b(De,ve),I&2&&pe!==(pe=Math.ceil(i[1].total/de)+"")&&b(ke,pe),I&16&&ge!==(ge=i[4]("common.next")+"")&&b(He,ge),I&3&&Ie!==(Ie=i[0]*de>=i[1].total)&&(ee.disabled=Ie)},d(i){i&&(n(s),n(d),n(J)),ht(O,i),Ue=!1,it(Ye)}}}function Dt(t){let s,o,a=t[4]("sessions.noData")+"",l,_,k,D=t[4]("sessions.noDataHint")+"",C;return{c(){s=h("div"),o=h("h2"),l=v(a),_=g(),k=h("p"),C=v(D),this.h()},l(E){s=u(E,"DIV",{class:!0});var f=c(s);o=u(f,"H2",{});var R=c(o);l=m(R,a),R.forEach(n),_=p(f),k=u(f,"P",{});var H=c(k);C=m(H,D),H.forEach(n),f.forEach(n),this.h()},h(){B(s,"class","state-msg")},m(E,f){W(E,s,f),e(s,o),e(o,l),e(s,_),e(s,k),e(k,C)},p(E,f){f&16&&a!==(a=E[4]("sessions.noData")+"")&&b(l,a),f&16&&D!==(D=E[4]("sessions.noDataHint")+"")&&b(C,D)},d(E){E&&n(s)}}}function kt(t){let s,o;return{c(){s=h("div"),o=v(t[2]),this.h()},l(a){s=u(a,"DIV",{class:!0});var l=c(s);o=m(l,t[2]),l.forEach(n),this.h()},h(){B(s,"class","state-msg error")},m(a,l){W(a,s,l),e(s,o)},p(a,l){l&4&&b(o,a[2])},d(a){a&&n(s)}}}function Ht(t){let s,o=t[4]("common.loading")+"",a;return{c(){s=h("div"),a=v(o),this.h()},l(l){s=u(l,"DIV",{class:!0});var _=c(s);a=m(_,o),_.forEach(n),this.h()},h(){B(s,"class","state-msg")},m(l,_){W(l,s,_),e(s,a)},p(l,_){_&16&&o!==(o=l[4]("common.loading")+"")&&b(a,o)},d(l){l&&n(s)}}}function at(t){let s,o,a=st(t[13].ts)+"",l,_,k,D=t[13].tool+"",C,E,f,R=t[13].model+"",H,q,A,V=nt(t[13].duration)+"",T,P,U,M=(t[13].toolCallCount??0)+"",L,X,N,j=Ce(t[13].inputTokens)+"",r,S,$,K=Ce(t[13].outputTokens)+"",y,z,Z,x=lt(t[13].cost)+"",le,te,se,ne;function _e(){return t[11](t[13])}return{c(){s=h("tr"),o=h("td"),l=v(a),_=g(),k=h("td"),C=v(D),E=g(),f=h("td"),H=v(R),q=g(),A=h("td"),T=v(V),P=g(),U=h("td"),L=v(M),X=g(),N=h("td"),r=v(j),S=g(),$=h("td"),y=v(K),z=g(),Z=h("td"),le=v(x),te=g(),this.h()},l(G){s=u(G,"TR",{class:!0});var d=c(s);o=u(d,"TD",{class:!0});var J=c(o);l=m(J,a),J.forEach(n),_=p(d),k=u(d,"TD",{});var Q=c(k);C=m(Q,D),Q.forEach(n),E=p(d),f=u(d,"TD",{class:!0});var fe=c(f);H=m(fe,R),fe.forEach(n),q=p(d),A=u(d,"TD",{class:!0});var oe=c(A);T=m(oe,V),oe.forEach(n),P=p(d),U=u(d,"TD",{class:!0});var re=c(U);L=m(re,M),re.forEach(n),X=p(d),N=u(d,"TD",{class:!0});var ie=c(N);r=m(ie,j),ie.forEach(n),S=p(d),$=u(d,"TD",{class:!0});var ue=c($);y=m(ue,K),ue.forEach(n),z=p(d),Z=u(d,"TD",{class:!0});var Y=c(Z);le=m(Y,x),Y.forEach(n),te=p(d),d.forEach(n),this.h()},h(){B(o,"class","mono"),B(f,"class","mono model svelte-4jls37"),B(A,"class","mono muted svelte-4jls37"),B(U,"class","mono"),B(N,"class","mono green"),B($,"class","mono blue"),B(Z,"class","mono accent"),B(s,"class","clickable svelte-4jls37")},m(G,d){W(G,s,d),e(s,o),e(o,l),e(s,_),e(s,k),e(k,C),e(s,E),e(s,f),e(f,H),e(s,q),e(s,A),e(A,T),e(s,P),e(s,U),e(U,L),e(s,X),e(s,N),e(N,r),e(s,S),e(s,$),e($,y),e(s,z),e(s,Z),e(Z,le),e(s,te),se||(ne=Fe(s,"click",_e),se=!0)},p(G,d){t=G,d&2&&a!==(a=st(t[13].ts)+"")&&b(l,a),d&2&&D!==(D=t[13].tool+"")&&b(C,D),d&2&&R!==(R=t[13].model+"")&&b(H,R),d&2&&V!==(V=nt(t[13].duration)+"")&&b(T,V),d&2&&M!==(M=(t[13].toolCallCount??0)+"")&&b(L,M),d&2&&j!==(j=Ce(t[13].inputTokens)+"")&&b(r,j),d&2&&K!==(K=Ce(t[13].outputTokens)+"")&&b(y,K),d&2&&x!==(x=lt(t[13].cost)+"")&&b(le,x)},d(G){G&&n(s),se=!1,ne()}}}function It(t){let s,o,a,l,_=t[4]("sessions.title")+"",k,D,C,E=t[4]("sessions.desc")+"",f,R,H,q,A,V,T,P,U,M,L;document.title=s=t[4]("sessions.title")+" — AIUsage",q=new gt({}),V=new Et({}),P=new bt({});function X(r,S){var $;return r[3]?Ht:r[2]?kt:($=r[1])!=null&&$.sessions.length?Tt:Dt}let N=X(t),j=N(t);return{c(){o=g(),a=h("div"),l=h("h1"),k=v(_),D=g(),C=h("p"),f=v(E),R=g(),H=h("div"),ze(q.$$.fragment),A=g(),ze(V.$$.fragment),T=g(),ze(P.$$.fragment),U=g(),j.c(),M=et(),this.h()},l(r){ct("svelte-1qvtsma",document.head).forEach(n),o=p(r),a=u(r,"DIV",{class:!0});var $=c(a);l=u($,"H1",{});var K=c(l);k=m(K,_),K.forEach(n),D=p($),C=u($,"P",{});var y=c(C);f=m(y,E),y.forEach(n),$.forEach(n),R=p(r),H=u(r,"DIV",{class:!0});var z=c(H);Le(q.$$.fragment,z),A=p(z),Le(V.$$.fragment,z),T=p(z),Le(P.$$.fragment,z),z.forEach(n),U=p(r),j.l(r),M=et(),this.h()},h(){B(a,"class","page-header"),B(H,"class","filter-bar")},m(r,S){W(r,o,S),W(r,a,S),e(a,l),e(l,k),e(a,D),e(a,C),e(C,f),W(r,R,S),W(r,H,S),Oe(q,H,null),e(H,A),Oe(V,H,null),e(H,T),Oe(P,H,null),W(r,U,S),j.m(r,S),W(r,M,S),L=!0},p(r,[S]){(!L||S&16)&&s!==(s=r[4]("sessions.title")+" — AIUsage")&&(document.title=s),(!L||S&16)&&_!==(_=r[4]("sessions.title")+"")&&b(k,_),(!L||S&16)&&E!==(E=r[4]("sessions.desc")+"")&&b(f,E),N===(N=X(r))&&j?j.p(r,S):(j.d(1),j=N(r),j&&(j.c(),j.m(M.parentNode,M)))},i(r){L||(Ne(q.$$.fragment,r),Ne(V.$$.fragment,r),Ne(P.$$.fragment,r),L=!0)},o(r){Me(q.$$.fragment,r),Me(V.$$.fragment,r),Me(P.$$.fragment,r),L=!1},d(r){r&&(n(o),n(a),n(R),n(H),n(U),n(M)),Be(q),Be(V),Be(P),j.d(r)}}}const de=50;function nt(t){if(!t||t<1e3)return"< 1s";const s=Math.floor(t/1e3),o=Math.floor(s/60);return o===0?`${s}s`:`${o}m ${s%60}s`}function St(t,s,o){let a,l,_,k;Se(t,_t,T=>o(8,a=T)),Se(t,mt,T=>o(9,l=T)),Se(t,vt,T=>o(10,_=T)),Se(t,pt,T=>o(4,k=T));let D=null,C=null,E=!0,f=1;async function R(){o(3,E=!0),o(2,C=null);try{o(1,D=await dt({..._,device:a,tool:l,page:f,pageSize:de}))}catch(T){o(2,C=T instanceof Error?T.message:"Failed to load data"),o(1,D=null)}finally{o(3,E=!1)}}function H(){D&&f*de<D.total&&o(0,f++,f)}function q(){f>1&&o(0,f--,f)}function A(T){const P=new URLSearchParams;l&&P.set("tool",l),a&&P.set("device",a);const U=P.toString();window.location.href=`/sessions/${encodeURIComponent(T.sessionId)}${U?`?${U}`:""}`}const V=T=>A(T);return t.$$.update=()=>{t.$$.dirty&512&&o(0,f=1),t.$$.dirty&1793&&R()},[f,D,C,E,k,H,q,A,a,l,_,V]}class Ut extends ft{constructor(s){super(),ut(this,s,St,It,rt,{})}}export{Ut as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as ml,n as ls,c as Zs,o as bl}from"../chunks/scheduler.DsWd5xup.js";import{S as kl,i as zl,d as n,s as I,a as W,b as s,o,p as ql,g as q,c as f,e as h,f as N,r as ys,j as E,h as v,t as S,v as rs,x as K,C as ts}from"../chunks/index.66Vu9Sio.js";import{t as El,e as Ke}from"../chunks/api.Mv_KcGhp.js";import{p as Tl}from"../chunks/stores.Botc0ioY.js";import{f as Ts,b as $}from"../chunks/stores.BSI_cVy6.js";import{t as gl}from"../chunks/i18n.CwV3KceS.js";function xs(a,e,t){const l=a.slice();l[16]=e[t],l[19]=t;const i=l[16].inputTokens+l[16].outputTokens+(l[16].cacheReadTokens||0)+(l[16].cacheWriteTokens||0)+(l[16].thinkingTokens||0);return l[17]=i,l}function el(a,e,t){const l=a.slice();return l[20]=e[t],l}function Pl(a,e,t){const l=a.slice();return l[6]=e[t],l}function Nl(a,e,t){const l=a.slice();return l[6]=e[t],l}function Sl(a,e,t){const l=a.slice();return l[6]=e[t],l}function Al(a){const e=a.slice(),t=e[0].session;e[13]=t;const l=e[0].records;e[14]=l;const i=e[13].inputTokens+e[13].outputTokens+(e[13].cacheReadTokens||0)+(e[13].cacheWriteTokens||0)+(e[13].thinkingTokens||0);return e[15]=i,e}function sl(a){let e,t,l,i,c=a[13].tool+"",r,_,p,u=a[13].model+"",k,P,b,m=pl(a[13].firstTs)+"",C,w,T,d,g,D=a[3]("sessions.detail.meta.sessionId")+"",O,ae,M=a[13].sessionId+"",H,Ne,pe,oe=_l(a[13].duration)+"",_e,Re,ie,y,J,re,Se=a[3]("sessions.detail.meta.cost")+"",ce,Ae,fe,me=Ts(a[13].cost)+"",We,Me,ne,ve,te=a[3]("sessions.detail.meta.totalTokens")+"",be,He,de,Ie=$(a[15])+"",De,B,j,F,U=a[3]("sessions.detail.meta.apiCalls")+"",G,A,R,ke=a[13].recordCount+"",he,Fe,ue,we,Le=a[3]("sessions.detail.meta.toolCalls")+"",Q,je,Ve,ze=a[13].toolCallCount+"",Ue,Oe,X,qe,Qe,as=a[3]("sessions.detail.meta.input")+"",cs,Ps,Xe,Ge,Ns,Ye,is=$(a[13].inputTokens)+"",fs,Ss,Ee,Ze,ns=a[3]("sessions.detail.meta.output")+"",vs,As,ye,Be,Is,xe,os=$(a[13].outputTokens)+"",ds,Ds,hs,us,ps,Te,x=a[13].cwd&&ll(a),ee=a[13].cacheReadTokens&&tl(a),se=a[13].cacheWriteTokens&&al(a),le=a[13].thinkingTokens&&il(a),Ce=Ke(a[14]),Y=[];for(let z=0;z<Ce.length;z+=1)Y[z]=ul(xs(a,Ce,z));let Z=null;return Ce.length||(Z=nl(a)),{c(){e=v("div"),t=v("div"),l=v("div"),i=v("span"),r=S(c),_=E(),p=v("span"),k=S(u),P=E(),b=v("div"),C=S(m),w=E(),x&&x.c(),T=E(),d=v("div"),g=v("span"),O=S(D),ae=S(": "),H=S(M),Ne=E(),pe=v("span"),_e=S(oe),Re=E(),ie=v("div"),y=v("div"),J=v("div"),re=v("span"),ce=S(Se),Ae=E(),fe=v("span"),We=S(me),Me=E(),ne=v("div"),ve=v("span"),be=S(te),He=E(),de=v("span"),De=S(Ie),B=E(),j=v("div"),F=v("span"),G=S(U),A=E(),R=v("span"),he=S(ke),Fe=E(),ue=v("div"),we=v("span"),Q=S(Le),je=E(),Ve=v("span"),Ue=S(ze),Oe=E(),X=v("div"),qe=v("div"),Qe=v("span"),cs=S(as),Ps=E(),Xe=v("span"),Ge=v("span"),Ns=E(),Ye=v("span"),fs=S(is),Ss=E(),Ee=v("div"),Ze=v("span"),vs=S(ns),As=E(),ye=v("span"),Be=v("span"),Is=E(),xe=v("span"),ds=S(os),Ds=E(),ee&&ee.c(),hs=E(),se&&se.c(),us=E(),le&&le.c(),ps=E(),Te=v("div");for(let z=0;z<Y.length;z+=1)Y[z].c();Z&&Z.c(),this.h()},l(z){e=f(z,"DIV",{class:!0});var V=h(e);t=f(V,"DIV",{class:!0});var L=h(t);l=f(L,"DIV",{class:!0});var Je=h(l);i=f(Je,"SPAN",{class:!0});var Cs=h(i);r=N(Cs,c),Cs.forEach(n),_=q(Je),p=f(Je,"SPAN",{class:!0});var Rs=h(p);k=N(Rs,u),Rs.forEach(n),Je.forEach(n),P=q(L),b=f(L,"DIV",{class:!0});var Ws=h(b);C=N(Ws,m),Ws.forEach(n),w=q(L),x&&x.l(L),T=q(L),d=f(L,"DIV",{class:!0});var _s=h(d);g=f(_s,"SPAN",{class:!0});var ms=h(g);O=N(ms,D),ae=N(ms,": "),H=N(ms,M),ms.forEach(n),Ne=q(_s),pe=f(_s,"SPAN",{class:!0});var Ms=h(pe);_e=N(Ms,oe),Ms.forEach(n),_s.forEach(n),L.forEach(n),Re=q(V),ie=f(V,"DIV",{class:!0});var bs=h(ie);y=f(bs,"DIV",{class:!0});var $e=h(y);J=f($e,"DIV",{class:!0});var ks=h(J);re=f(ks,"SPAN",{class:!0});var Hs=h(re);ce=N(Hs,Se),Hs.forEach(n),Ae=q(ks),fe=f(ks,"SPAN",{class:!0});var Ls=h(fe);We=N(Ls,me),Ls.forEach(n),ks.forEach(n),Me=q($e),ne=f($e,"DIV",{class:!0});var zs=h(ne);ve=f(zs,"SPAN",{class:!0});var js=h(ve);be=N(js,te),js.forEach(n),He=q(zs),de=f(zs,"SPAN",{class:!0});var $s=h(de);De=N($s,Ie),$s.forEach(n),zs.forEach(n),B=q($e),j=f($e,"DIV",{class:!0});var qs=h(j);F=f(qs,"SPAN",{class:!0});var Fs=h(F);G=N(Fs,U),Fs.forEach(n),A=q(qs),R=f(qs,"SPAN",{class:!0});var Us=h(R);he=N(Us,ke),Us.forEach(n),qs.forEach(n),Fe=q($e),ue=f($e,"DIV",{class:!0});var Es=h(ue);we=f(Es,"SPAN",{class:!0});var Gs=h(we);Q=N(Gs,Le),Gs.forEach(n),je=q(Es),Ve=f(Es,"SPAN",{class:!0});var Bs=h(Ve);Ue=N(Bs,ze),Bs.forEach(n),Es.forEach(n),$e.forEach(n),Oe=q(bs),X=f(bs,"DIV",{class:!0});var ge=h(X);qe=f(ge,"DIV",{class:!0});var es=h(qe);Qe=f(es,"SPAN",{class:!0});var Js=h(Qe);cs=N(Js,as),Js.forEach(n),Ps=q(es),Xe=f(es,"SPAN",{class:!0});var Ks=h(Xe);Ge=f(Ks,"SPAN",{class:!0,style:!0}),h(Ge).forEach(n),Ks.forEach(n),Ns=q(es),Ye=f(es,"SPAN",{class:!0});var Os=h(Ye);fs=N(Os,is),Os.forEach(n),es.forEach(n),Ss=q(ge),Ee=f(ge,"DIV",{class:!0});var ss=h(Ee);Ze=f(ss,"SPAN",{class:!0});var Qs=h(Ze);vs=N(Qs,ns),Qs.forEach(n),As=q(ss),ye=f(ss,"SPAN",{class:!0});var Xs=h(ye);Be=f(Xs,"SPAN",{class:!0,style:!0}),h(Be).forEach(n),Xs.forEach(n),Is=q(ss),xe=f(ss,"SPAN",{class:!0});var Ys=h(xe);ds=N(Ys,os),Ys.forEach(n),ss.forEach(n),Ds=q(ge),ee&&ee.l(ge),hs=q(ge),se&&se.l(ge),us=q(ge),le&&le.l(ge),ge.forEach(n),bs.forEach(n),V.forEach(n),ps=q(z),Te=f(z,"DIV",{class:!0});var ws=h(Te);for(let Vs=0;Vs<Y.length;Vs+=1)Y[Vs].l(ws);Z&&Z.l(ws),ws.forEach(n),this.h()},h(){o(i,"class","id-tool svelte-qlezb4"),o(p,"class","id-model mono svelte-qlezb4"),o(l,"class","id-row svelte-qlezb4"),o(b,"class","id-time mono svelte-qlezb4"),o(g,"class","id-session mono svelte-qlezb4"),o(pe,"class","id-duration mono svelte-qlezb4"),o(d,"class","id-footer svelte-qlezb4"),o(t,"class","identity card svelte-qlezb4"),o(re,"class","metric-label svelte-qlezb4"),o(fe,"class","metric-value mono accent svelte-qlezb4"),o(J,"class","metric-cell svelte-qlezb4"),o(ve,"class","metric-label svelte-qlezb4"),o(de,"class","metric-value mono svelte-qlezb4"),o(ne,"class","metric-cell svelte-qlezb4"),o(F,"class","metric-label svelte-qlezb4"),o(R,"class","metric-value mono svelte-qlezb4"),o(j,"class","metric-cell svelte-qlezb4"),o(we,"class","metric-label svelte-qlezb4"),o(Ve,"class","metric-value mono svelte-qlezb4"),o(ue,"class","metric-cell svelte-qlezb4"),o(y,"class","metrics-grid svelte-qlezb4"),o(Qe,"class","tb-label svelte-qlezb4"),o(Ge,"class","tb-fill tb-input svelte-qlezb4"),K(Ge,"width",Pe(a[13].inputTokens,a[15])+"%"),o(Xe,"class","tb-bar svelte-qlezb4"),o(Ye,"class","tb-value mono svelte-qlezb4"),o(qe,"class","tb-row svelte-qlezb4"),o(Ze,"class","tb-label svelte-qlezb4"),o(Be,"class","tb-fill tb-output svelte-qlezb4"),K(Be,"width",Pe(a[13].outputTokens,a[15])+"%"),o(ye,"class","tb-bar svelte-qlezb4"),o(xe,"class","tb-value mono svelte-qlezb4"),o(Ee,"class","tb-row svelte-qlezb4"),o(X,"class","token-breakdown svelte-qlezb4"),o(ie,"class","metrics card svelte-qlezb4"),o(e,"class","detail-header svelte-qlezb4"),o(Te,"class","timeline svelte-qlezb4")},m(z,V){W(z,e,V),s(e,t),s(t,l),s(l,i),s(i,r),s(l,_),s(l,p),s(p,k),s(t,P),s(t,b),s(b,C),s(t,w),x&&x.m(t,null),s(t,T),s(t,d),s(d,g),s(g,O),s(g,ae),s(g,H),s(d,Ne),s(d,pe),s(pe,_e),s(e,Re),s(e,ie),s(ie,y),s(y,J),s(J,re),s(re,ce),s(J,Ae),s(J,fe),s(fe,We),s(y,Me),s(y,ne),s(ne,ve),s(ve,be),s(ne,He),s(ne,de),s(de,De),s(y,B),s(y,j),s(j,F),s(F,G),s(j,A),s(j,R),s(R,he),s(y,Fe),s(y,ue),s(ue,we),s(we,Q),s(ue,je),s(ue,Ve),s(Ve,Ue),s(ie,Oe),s(ie,X),s(X,qe),s(qe,Qe),s(Qe,cs),s(qe,Ps),s(qe,Xe),s(Xe,Ge),s(qe,Ns),s(qe,Ye),s(Ye,fs),s(X,Ss),s(X,Ee),s(Ee,Ze),s(Ze,vs),s(Ee,As),s(Ee,ye),s(ye,Be),s(Ee,Is),s(Ee,xe),s(xe,ds),s(X,Ds),ee&&ee.m(X,null),s(X,hs),se&&se.m(X,null),s(X,us),le&&le.m(X,null),W(z,ps,V),W(z,Te,V);for(let L=0;L<Y.length;L+=1)Y[L]&&Y[L].m(Te,null);Z&&Z.m(Te,null)},p(z,V){if(V&1&&c!==(c=z[13].tool+"")&&I(r,c),V&1&&u!==(u=z[13].model+"")&&I(k,u),V&1&&m!==(m=pl(z[13].firstTs)+"")&&I(C,m),z[13].cwd?x?x.p(z,V):(x=ll(z),x.c(),x.m(t,T)):x&&(x.d(1),x=null),V&8&&D!==(D=z[3]("sessions.detail.meta.sessionId")+"")&&I(O,D),V&1&&M!==(M=z[13].sessionId+"")&&I(H,M),V&1&&oe!==(oe=_l(z[13].duration)+"")&&I(_e,oe),V&8&&Se!==(Se=z[3]("sessions.detail.meta.cost")+"")&&I(ce,Se),V&1&&me!==(me=Ts(z[13].cost)+"")&&I(We,me),V&8&&te!==(te=z[3]("sessions.detail.meta.totalTokens")+"")&&I(be,te),V&1&&Ie!==(Ie=$(z[15])+"")&&I(De,Ie),V&8&&U!==(U=z[3]("sessions.detail.meta.apiCalls")+"")&&I(G,U),V&1&&ke!==(ke=z[13].recordCount+"")&&I(he,ke),V&8&&Le!==(Le=z[3]("sessions.detail.meta.toolCalls")+"")&&I(Q,Le),V&1&&ze!==(ze=z[13].toolCallCount+"")&&I(Ue,ze),V&8&&as!==(as=z[3]("sessions.detail.meta.input")+"")&&I(cs,as),V&1&&K(Ge,"width",Pe(z[13].inputTokens,z[15])+"%"),V&1&&is!==(is=$(z[13].inputTokens)+"")&&I(fs,is),V&8&&ns!==(ns=z[3]("sessions.detail.meta.output")+"")&&I(vs,ns),V&1&&K(Be,"width",Pe(z[13].outputTokens,z[15])+"%"),V&1&&os!==(os=$(z[13].outputTokens)+"")&&I(ds,os),z[13].cacheReadTokens?ee?ee.p(z,V):(ee=tl(z),ee.c(),ee.m(X,hs)):ee&&(ee.d(1),ee=null),z[13].cacheWriteTokens?se?se.p(z,V):(se=al(z),se.c(),se.m(X,us)):se&&(se.d(1),se=null),z[13].thinkingTokens?le?le.p(z,V):(le=il(z),le.c(),le.m(X,null)):le&&(le.d(1),le=null),V&25){Ce=Ke(z[14]);let L;for(L=0;L<Ce.length;L+=1){const Je=xs(z,Ce,L);Y[L]?Y[L].p(Je,V):(Y[L]=ul(Je),Y[L].c(),Y[L].m(Te,null))}for(;L<Y.length;L+=1)Y[L].d(1);Y.length=Ce.length,!Ce.length&&Z?Z.p(z,V):Ce.length?Z&&(Z.d(1),Z=null):(Z=nl(z),Z.c(),Z.m(Te,null))}},d(z){z&&(n(e),n(ps),n(Te)),x&&x.d(),ee&&ee.d(),se&&se.d(),le&&le.d(),rs(Y,z),Z&&Z.d()}}}function Il(a){let e,t;return{c(){e=v("div"),t=S(a[1]),this.h()},l(l){e=f(l,"DIV",{class:!0});var i=h(e);t=N(i,a[1]),i.forEach(n),this.h()},h(){o(e,"class","state-msg error")},m(l,i){W(l,e,i),s(e,t)},p(l,i){i&2&&I(t,l[1])},d(l){l&&n(e)}}}function Dl(a){let e,t,l='<div class="ph-line ph-w40 svelte-qlezb4"></div> <div class="ph-line ph-w60 svelte-qlezb4"></div> <div class="ph-line ph-w80 svelte-qlezb4"></div> <div class="id-footer svelte-qlezb4" style="margin-top:auto; padding-top:0.5rem; border-top:1px solid var(--border-subtle);"><div class="ph-line ph-w50 svelte-qlezb4"></div> <div class="ph-line ph-w20 svelte-qlezb4"></div></div>',i,c,r,_,p,u,k,P=Ke([1,2,3,4]),b=[];for(let d=0;d<4;d+=1)b[d]=Cl(Sl(a,P,d));let m=Ke([1,2]),C=[];for(let d=0;d<2;d+=1)C[d]=Rl(Nl(a,m,d));let w=Ke([1,2,3]),T=[];for(let d=0;d<3;d+=1)T[d]=Wl(Pl(a,w,d));return{c(){e=v("div"),t=v("div"),t.innerHTML=l,i=E(),c=v("div"),r=v("div");for(let d=0;d<4;d+=1)b[d].c();_=E(),p=v("div");for(let d=0;d<2;d+=1)C[d].c();u=E(),k=v("div");for(let d=0;d<3;d+=1)T[d].c();this.h()},l(d){e=f(d,"DIV",{class:!0});var g=h(e);t=f(g,"DIV",{class:!0,"data-svelte-h":!0}),ts(t)!=="svelte-cj5h4s"&&(t.innerHTML=l),i=q(g),c=f(g,"DIV",{class:!0});var D=h(c);r=f(D,"DIV",{class:!0});var O=h(r);for(let H=0;H<4;H+=1)b[H].l(O);O.forEach(n),_=q(D),p=f(D,"DIV",{style:!0});var ae=h(p);for(let H=0;H<2;H+=1)C[H].l(ae);ae.forEach(n),D.forEach(n),g.forEach(n),u=q(d),k=f(d,"DIV",{class:!0});var M=h(k);for(let H=0;H<3;H+=1)T[H].l(M);M.forEach(n),this.h()},h(){o(t,"class","identity card svelte-qlezb4"),o(r,"class","metrics-grid svelte-qlezb4"),K(p,"padding-top","0.5rem"),K(p,"border-top","1px solid var(--border-subtle)"),K(p,"display","flex"),K(p,"flex-direction","column"),K(p,"gap","0.3rem"),o(c,"class","metrics card svelte-qlezb4"),o(e,"class","detail-header svelte-qlezb4"),o(k,"class","timeline svelte-qlezb4")},m(d,g){W(d,e,g),s(e,t),s(e,i),s(e,c),s(c,r);for(let D=0;D<4;D+=1)b[D]&&b[D].m(r,null);s(c,_),s(c,p);for(let D=0;D<2;D+=1)C[D]&&C[D].m(p,null);W(d,u,g),W(d,k,g);for(let D=0;D<3;D+=1)T[D]&&T[D].m(k,null)},p:ls,d(d){d&&(n(e),n(u),n(k)),rs(b,d),rs(C,d),rs(T,d)}}}function ll(a){let e,t=a[13].cwd+"",l,i;return{c(){e=v("div"),l=S(t),this.h()},l(c){e=f(c,"DIV",{class:!0,title:!0});var r=h(e);l=N(r,t),r.forEach(n),this.h()},h(){o(e,"class","id-path mono svelte-qlezb4"),o(e,"title",i=a[13].cwd)},m(c,r){W(c,e,r),s(e,l)},p(c,r){r&1&&t!==(t=c[13].cwd+"")&&I(l,t),r&1&&i!==(i=c[13].cwd)&&o(e,"title",i)},d(c){c&&n(e)}}}function tl(a){let e,t,l=a[3]("sessions.detail.meta.cacheRead")+"",i,c,r,_,p,u,k=$(a[13].cacheReadTokens)+"",P;return{c(){e=v("div"),t=v("span"),i=S(l),c=E(),r=v("span"),_=v("span"),p=E(),u=v("span"),P=S(k),this.h()},l(b){e=f(b,"DIV",{class:!0});var m=h(e);t=f(m,"SPAN",{class:!0});var C=h(t);i=N(C,l),C.forEach(n),c=q(m),r=f(m,"SPAN",{class:!0});var w=h(r);_=f(w,"SPAN",{class:!0,style:!0}),h(_).forEach(n),w.forEach(n),p=q(m),u=f(m,"SPAN",{class:!0});var T=h(u);P=N(T,k),T.forEach(n),m.forEach(n),this.h()},h(){o(t,"class","tb-label svelte-qlezb4"),o(_,"class","tb-fill tb-cache-read svelte-qlezb4"),K(_,"width",Pe(a[13].cacheReadTokens,a[15])+"%"),o(r,"class","tb-bar svelte-qlezb4"),o(u,"class","tb-value mono svelte-qlezb4"),o(e,"class","tb-row svelte-qlezb4")},m(b,m){W(b,e,m),s(e,t),s(t,i),s(e,c),s(e,r),s(r,_),s(e,p),s(e,u),s(u,P)},p(b,m){m&8&&l!==(l=b[3]("sessions.detail.meta.cacheRead")+"")&&I(i,l),m&1&&K(_,"width",Pe(b[13].cacheReadTokens,b[15])+"%"),m&1&&k!==(k=$(b[13].cacheReadTokens)+"")&&I(P,k)},d(b){b&&n(e)}}}function al(a){let e,t,l=a[3]("sessions.detail.meta.cacheWrite")+"",i,c,r,_,p,u,k=$(a[13].cacheWriteTokens)+"",P;return{c(){e=v("div"),t=v("span"),i=S(l),c=E(),r=v("span"),_=v("span"),p=E(),u=v("span"),P=S(k),this.h()},l(b){e=f(b,"DIV",{class:!0});var m=h(e);t=f(m,"SPAN",{class:!0});var C=h(t);i=N(C,l),C.forEach(n),c=q(m),r=f(m,"SPAN",{class:!0});var w=h(r);_=f(w,"SPAN",{class:!0,style:!0}),h(_).forEach(n),w.forEach(n),p=q(m),u=f(m,"SPAN",{class:!0});var T=h(u);P=N(T,k),T.forEach(n),m.forEach(n),this.h()},h(){o(t,"class","tb-label svelte-qlezb4"),o(_,"class","tb-fill tb-cache-write svelte-qlezb4"),K(_,"width",Pe(a[13].cacheWriteTokens,a[15])+"%"),o(r,"class","tb-bar svelte-qlezb4"),o(u,"class","tb-value mono svelte-qlezb4"),o(e,"class","tb-row svelte-qlezb4")},m(b,m){W(b,e,m),s(e,t),s(t,i),s(e,c),s(e,r),s(r,_),s(e,p),s(e,u),s(u,P)},p(b,m){m&8&&l!==(l=b[3]("sessions.detail.meta.cacheWrite")+"")&&I(i,l),m&1&&K(_,"width",Pe(b[13].cacheWriteTokens,b[15])+"%"),m&1&&k!==(k=$(b[13].cacheWriteTokens)+"")&&I(P,k)},d(b){b&&n(e)}}}function il(a){let e,t,l=a[3]("sessions.detail.meta.thinking")+"",i,c,r,_,p,u,k=$(a[13].thinkingTokens)+"",P;return{c(){e=v("div"),t=v("span"),i=S(l),c=E(),r=v("span"),_=v("span"),p=E(),u=v("span"),P=S(k),this.h()},l(b){e=f(b,"DIV",{class:!0});var m=h(e);t=f(m,"SPAN",{class:!0});var C=h(t);i=N(C,l),C.forEach(n),c=q(m),r=f(m,"SPAN",{class:!0});var w=h(r);_=f(w,"SPAN",{class:!0,style:!0}),h(_).forEach(n),w.forEach(n),p=q(m),u=f(m,"SPAN",{class:!0});var T=h(u);P=N(T,k),T.forEach(n),m.forEach(n),this.h()},h(){o(t,"class","tb-label svelte-qlezb4"),o(_,"class","tb-fill tb-thinking svelte-qlezb4"),K(_,"width",Pe(a[13].thinkingTokens,a[15])+"%"),o(r,"class","tb-bar svelte-qlezb4"),o(u,"class","tb-value mono svelte-qlezb4"),o(e,"class","tb-row svelte-qlezb4")},m(b,m){W(b,e,m),s(e,t),s(t,i),s(e,c),s(e,r),s(r,_),s(e,p),s(e,u),s(u,P)},p(b,m){m&8&&l!==(l=b[3]("sessions.detail.meta.thinking")+"")&&I(i,l),m&1&&K(_,"width",Pe(b[13].thinkingTokens,b[15])+"%"),m&1&&k!==(k=$(b[13].thinkingTokens)+"")&&I(P,k)},d(b){b&&n(e)}}}function nl(a){let e,t,l=a[3]("sessions.noData")+"",i,c,r,_=a[3]("sessions.noDataHint")+"",p,u;return{c(){e=v("div"),t=v("h2"),i=S(l),c=E(),r=v("p"),p=S(_),u=E(),this.h()},l(k){e=f(k,"DIV",{class:!0});var P=h(e);t=f(P,"H2",{});var b=h(t);i=N(b,l),b.forEach(n),c=q(P),r=f(P,"P",{});var m=h(r);p=N(m,_),m.forEach(n),u=q(P),P.forEach(n),this.h()},h(){o(e,"class","state-msg")},m(k,P){W(k,e,P),s(e,t),s(t,i),s(e,c),s(e,r),s(r,p),s(e,u)},p(k,P){P&8&&l!==(l=k[3]("sessions.noData")+"")&&I(i,l),P&8&&_!==(_=k[3]("sessions.noDataHint")+"")&&I(p,_)},d(k){k&&n(e)}}}function ol(a){let e,t,l=a[4](a[16].ts-a[14][a[19]-1].ts)+"",i;return{c(){e=v("div"),t=v("span"),i=S(l),this.h()},l(c){e=f(c,"DIV",{class:!0});var r=h(e);t=f(r,"SPAN",{class:!0});var _=h(t);i=N(_,l),_.forEach(n),r.forEach(n),this.h()},h(){o(t,"class","gap-text svelte-qlezb4"),o(e,"class","gap-divider svelte-qlezb4")},m(c,r){W(c,e,r),s(e,t),s(t,i)},p(c,r){r&1&&l!==(l=c[4](c[16].ts-c[14][c[19]-1].ts)+"")&&I(i,l)},d(c){c&&n(e)}}}function rl(a){let e,t,l,i,c=$(a[16].cacheReadTokens)+"",r,_;return{c(){e=v("span"),t=v("span"),l=E(),i=v("span"),r=S(c),this.h()},l(p){e=f(p,"SPAN",{class:!0,title:!0});var u=h(e);t=f(u,"SPAN",{class:!0}),h(t).forEach(n),l=q(u),i=f(u,"SPAN",{class:!0});var k=h(i);r=N(k,c),k.forEach(n),u.forEach(n),this.h()},h(){o(t,"class","rt-dot rt-cache-read svelte-qlezb4"),o(i,"class","rt-val mono svelte-qlezb4"),o(e,"class","rt-item svelte-qlezb4"),o(e,"title",_=a[3]("sessions.detail.meta.cacheRead"))},m(p,u){W(p,e,u),s(e,t),s(e,l),s(e,i),s(i,r)},p(p,u){u&1&&c!==(c=$(p[16].cacheReadTokens)+"")&&I(r,c),u&8&&_!==(_=p[3]("sessions.detail.meta.cacheRead"))&&o(e,"title",_)},d(p){p&&n(e)}}}function cl(a){let e,t,l,i,c=$(a[16].cacheWriteTokens)+"",r,_;return{c(){e=v("span"),t=v("span"),l=E(),i=v("span"),r=S(c),this.h()},l(p){e=f(p,"SPAN",{class:!0,title:!0});var u=h(e);t=f(u,"SPAN",{class:!0}),h(t).forEach(n),l=q(u),i=f(u,"SPAN",{class:!0});var k=h(i);r=N(k,c),k.forEach(n),u.forEach(n),this.h()},h(){o(t,"class","rt-dot rt-cache-write svelte-qlezb4"),o(i,"class","rt-val mono svelte-qlezb4"),o(e,"class","rt-item svelte-qlezb4"),o(e,"title",_=a[3]("sessions.detail.meta.cacheWrite"))},m(p,u){W(p,e,u),s(e,t),s(e,l),s(e,i),s(i,r)},p(p,u){u&1&&c!==(c=$(p[16].cacheWriteTokens)+"")&&I(r,c),u&8&&_!==(_=p[3]("sessions.detail.meta.cacheWrite"))&&o(e,"title",_)},d(p){p&&n(e)}}}function fl(a){let e,t,l,i,c=$(a[16].thinkingTokens)+"",r,_;return{c(){e=v("span"),t=v("span"),l=E(),i=v("span"),r=S(c),this.h()},l(p){e=f(p,"SPAN",{class:!0,title:!0});var u=h(e);t=f(u,"SPAN",{class:!0}),h(t).forEach(n),l=q(u),i=f(u,"SPAN",{class:!0});var k=h(i);r=N(k,c),k.forEach(n),u.forEach(n),this.h()},h(){o(t,"class","rt-dot rt-thinking svelte-qlezb4"),o(i,"class","rt-val mono svelte-qlezb4"),o(e,"class","rt-item svelte-qlezb4"),o(e,"title",_=a[3]("sessions.detail.meta.thinking"))},m(p,u){W(p,e,u),s(e,t),s(e,l),s(e,i),s(i,r)},p(p,u){u&1&&c!==(c=$(p[16].thinkingTokens)+"")&&I(r,c),u&8&&_!==(_=p[3]("sessions.detail.meta.thinking"))&&o(e,"title",_)},d(p){p&&n(e)}}}function vl(a){let e,t=Ke(a[16].toolCalls),l=[];for(let i=0;i<t.length;i+=1)l[i]=hl(el(a,t,i));return{c(){e=v("div");for(let i=0;i<l.length;i+=1)l[i].c();this.h()},l(i){e=f(i,"DIV",{class:!0});var c=h(e);for(let r=0;r<l.length;r+=1)l[r].l(c);c.forEach(n),this.h()},h(){o(e,"class","tool-calls svelte-qlezb4")},m(i,c){W(i,e,c);for(let r=0;r<l.length;r+=1)l[r]&&l[r].m(e,null)},p(i,c){if(c&1){t=Ke(i[16].toolCalls);let r;for(r=0;r<t.length;r+=1){const _=el(i,t,r);l[r]?l[r].p(_,c):(l[r]=hl(_),l[r].c(),l[r].m(e,null))}for(;r<l.length;r+=1)l[r].d(1);l.length=t.length}},d(i){i&&n(e),rs(l,i)}}}function dl(a){let e,t=gs(a[20].ts-a[16].ts)+"",l;return{c(){e=v("span"),l=S(t),this.h()},l(i){e=f(i,"SPAN",{class:!0});var c=h(e);l=N(c,t),c.forEach(n),this.h()},h(){o(e,"class","tc-offset mono muted svelte-qlezb4")},m(i,c){W(i,e,c),s(e,l)},p(i,c){c&1&&t!==(t=gs(i[20].ts-i[16].ts)+"")&&I(l,t)},d(i){i&&n(e)}}}function wl(a){let e,t="skill";return{c(){e=v("span"),e.textContent=t,this.h()},l(l){e=f(l,"SPAN",{class:!0,"data-svelte-h":!0}),ts(e)!=="svelte-slxz3u"&&(e.textContent=t),this.h()},h(){o(e,"class","badge badge-skill svelte-qlezb4")},m(l,i){W(l,e,i)},d(l){l&&n(e)}}}function Vl(a){let e,t="mcp";return{c(){e=v("span"),e.textContent=t,this.h()},l(l){e=f(l,"SPAN",{class:!0,"data-svelte-h":!0}),ts(e)!=="svelte-uwmdxw"&&(e.textContent=t),this.h()},h(){o(e,"class","badge badge-mcp svelte-qlezb4")},m(l,i){W(l,e,i)},d(l){l&&n(e)}}}function hl(a){let e,t,l,i=a[20].callIndex+1+"",c,r,_,p=a[20].displayName+"",u,k,P,b,m=a[20].ts!=null&&dl(a);function C(d,g){if(d[20].type==="mcp")return Vl;if(d[20].type==="skill")return wl}let w=C(a),T=w&&w(a);return{c(){e=v("div"),t=v("span"),l=S("#"),c=S(i),r=E(),_=v("span"),u=S(p),k=E(),m&&m.c(),P=E(),T&&T.c(),b=E(),this.h()},l(d){e=f(d,"DIV",{class:!0});var g=h(e);t=f(g,"SPAN",{class:!0});var D=h(t);l=N(D,"#"),c=N(D,i),D.forEach(n),r=q(g),_=f(g,"SPAN",{class:!0});var O=h(_);u=N(O,p),O.forEach(n),k=q(g),m&&m.l(g),P=q(g),T&&T.l(g),b=q(g),g.forEach(n),this.h()},h(){o(t,"class","tc-index mono muted svelte-qlezb4"),o(_,"class","tc-name mono svelte-qlezb4"),o(e,"class","tool-call svelte-qlezb4")},m(d,g){W(d,e,g),s(e,t),s(t,l),s(t,c),s(e,r),s(e,_),s(_,u),s(e,k),m&&m.m(e,null),s(e,P),T&&T.m(e,null),s(e,b)},p(d,g){g&1&&i!==(i=d[20].callIndex+1+"")&&I(c,i),g&1&&p!==(p=d[20].displayName+"")&&I(u,p),d[20].ts!=null?m?m.p(d,g):(m=dl(d),m.c(),m.m(e,P)):m&&(m.d(1),m=null),w!==(w=C(d))&&(T&&T.d(1),T=w&&w(d),T&&(T.c(),T.m(e,b)))},d(d){d&&n(e),m&&m.d(),T&&T.d()}}}function ul(a){let e,t,l,i,c,r,_=a[19]+1+"",p,u,k,P=gs(a[16].ts-a[13].firstTs)+"",b,m,C,w=a[16].model+"",T,d,g,D=Ts(a[16].cost)+"",O,ae,M,H,Ne,pe,oe,_e=$(a[16].inputTokens)+"",Re,ie,y,J,re,Se,ce,Ae=$(a[16].outputTokens)+"",fe,me,We,Me,ne,ve,te,be=$(a[17])+"",He,de,Ie,De,B=a[19]>0&&a[16].ts-a[14][a[19]-1].ts>1e3&&ol(a),j=a[16].cacheReadTokens&&rl(a),F=a[16].cacheWriteTokens&&cl(a),U=a[16].thinkingTokens&&fl(a),G=a[16].toolCalls&&a[16].toolCalls.length>0&&vl(a);return{c(){B&&B.c(),e=E(),t=v("div"),l=v("div"),i=v("div"),c=v("span"),r=S("#"),p=S(_),u=E(),k=v("span"),b=S(P),m=E(),C=v("span"),T=S(w),d=E(),g=v("span"),O=S(D),ae=E(),M=v("div"),H=v("span"),Ne=v("span"),pe=E(),oe=v("span"),Re=S(_e),y=E(),J=v("span"),re=v("span"),Se=E(),ce=v("span"),fe=S(Ae),We=E(),j&&j.c(),Me=E(),F&&F.c(),ne=E(),U&&U.c(),ve=E(),te=v("span"),He=S(be),Ie=E(),G&&G.c(),De=E(),this.h()},l(A){B&&B.l(A),e=q(A),t=f(A,"DIV",{class:!0});var R=h(t);l=f(R,"DIV",{class:!0});var ke=h(l);i=f(ke,"DIV",{class:!0});var he=h(i);c=f(he,"SPAN",{class:!0});var Fe=h(c);r=N(Fe,"#"),p=N(Fe,_),Fe.forEach(n),u=q(he),k=f(he,"SPAN",{class:!0});var ue=h(k);b=N(ue,P),ue.forEach(n),m=q(he),C=f(he,"SPAN",{class:!0});var we=h(C);T=N(we,w),we.forEach(n),he.forEach(n),d=q(ke),g=f(ke,"SPAN",{class:!0});var Le=h(g);O=N(Le,D),Le.forEach(n),ke.forEach(n),ae=q(R),M=f(R,"DIV",{class:!0});var Q=h(M);H=f(Q,"SPAN",{class:!0,title:!0});var je=h(H);Ne=f(je,"SPAN",{class:!0}),h(Ne).forEach(n),pe=q(je),oe=f(je,"SPAN",{class:!0});var Ve=h(oe);Re=N(Ve,_e),Ve.forEach(n),je.forEach(n),y=q(Q),J=f(Q,"SPAN",{class:!0,title:!0});var ze=h(J);re=f(ze,"SPAN",{class:!0}),h(re).forEach(n),Se=q(ze),ce=f(ze,"SPAN",{class:!0});var Ue=h(ce);fe=N(Ue,Ae),Ue.forEach(n),ze.forEach(n),We=q(Q),j&&j.l(Q),Me=q(Q),F&&F.l(Q),ne=q(Q),U&&U.l(Q),ve=q(Q),te=f(Q,"SPAN",{class:!0,title:!0});var Oe=h(te);He=N(Oe,be),Oe.forEach(n),Q.forEach(n),Ie=q(R),G&&G.l(R),De=q(R),R.forEach(n),this.h()},h(){o(c,"class","record-index mono svelte-qlezb4"),o(k,"class","record-relts mono muted svelte-qlezb4"),o(C,"class","record-model mono svelte-qlezb4"),o(i,"class","record-meta-left svelte-qlezb4"),o(g,"class","record-cost mono accent svelte-qlezb4"),o(l,"class","record-header svelte-qlezb4"),o(Ne,"class","rt-dot rt-input svelte-qlezb4"),o(oe,"class","rt-val mono svelte-qlezb4"),o(H,"class","rt-item svelte-qlezb4"),o(H,"title",ie=a[3]("sessions.detail.meta.input")),o(re,"class","rt-dot rt-output svelte-qlezb4"),o(ce,"class","rt-val mono svelte-qlezb4"),o(J,"class","rt-item svelte-qlezb4"),o(J,"title",me=a[3]("sessions.detail.meta.output")),o(te,"class","rt-total mono muted svelte-qlezb4"),o(te,"title",de=a[3]("sessions.detail.meta.totalTokens")),o(M,"class","record-tokens svelte-qlezb4"),o(t,"class","record-card card svelte-qlezb4")},m(A,R){B&&B.m(A,R),W(A,e,R),W(A,t,R),s(t,l),s(l,i),s(i,c),s(c,r),s(c,p),s(i,u),s(i,k),s(k,b),s(i,m),s(i,C),s(C,T),s(l,d),s(l,g),s(g,O),s(t,ae),s(t,M),s(M,H),s(H,Ne),s(H,pe),s(H,oe),s(oe,Re),s(M,y),s(M,J),s(J,re),s(J,Se),s(J,ce),s(ce,fe),s(M,We),j&&j.m(M,null),s(M,Me),F&&F.m(M,null),s(M,ne),U&&U.m(M,null),s(M,ve),s(M,te),s(te,He),s(t,Ie),G&&G.m(t,null),s(t,De)},p(A,R){A[19]>0&&A[16].ts-A[14][A[19]-1].ts>1e3?B?B.p(A,R):(B=ol(A),B.c(),B.m(e.parentNode,e)):B&&(B.d(1),B=null),R&1&&P!==(P=gs(A[16].ts-A[13].firstTs)+"")&&I(b,P),R&1&&w!==(w=A[16].model+"")&&I(T,w),R&1&&D!==(D=Ts(A[16].cost)+"")&&I(O,D),R&1&&_e!==(_e=$(A[16].inputTokens)+"")&&I(Re,_e),R&8&&ie!==(ie=A[3]("sessions.detail.meta.input"))&&o(H,"title",ie),R&1&&Ae!==(Ae=$(A[16].outputTokens)+"")&&I(fe,Ae),R&8&&me!==(me=A[3]("sessions.detail.meta.output"))&&o(J,"title",me),A[16].cacheReadTokens?j?j.p(A,R):(j=rl(A),j.c(),j.m(M,Me)):j&&(j.d(1),j=null),A[16].cacheWriteTokens?F?F.p(A,R):(F=cl(A),F.c(),F.m(M,ne)):F&&(F.d(1),F=null),A[16].thinkingTokens?U?U.p(A,R):(U=fl(A),U.c(),U.m(M,ve)):U&&(U.d(1),U=null),R&1&&be!==(be=$(A[17])+"")&&I(He,be),R&8&&de!==(de=A[3]("sessions.detail.meta.totalTokens"))&&o(te,"title",de),A[16].toolCalls&&A[16].toolCalls.length>0?G?G.p(A,R):(G=vl(A),G.c(),G.m(t,De)):G&&(G.d(1),G=null)},d(A){A&&(n(e),n(t)),B&&B.d(A),j&&j.d(),F&&F.d(),U&&U.d(),G&&G.d()}}}function Cl(a){let e,t='<div class="ph-line ph-w60 svelte-qlezb4" style="height:0.5rem;margin-bottom:0.25rem"></div> <div class="ph-line ph-w40 svelte-qlezb4" style="height:0.85rem"></div> ';return{c(){e=v("div"),e.innerHTML=t,this.h()},l(l){e=f(l,"DIV",{class:!0,"data-svelte-h":!0}),ts(e)!=="svelte-sj1wh2"&&(e.innerHTML=t),this.h()},h(){o(e,"class","metric-cell svelte-qlezb4")},m(l,i){W(l,e,i)},p:ls,d(l){l&&n(e)}}}function Rl(a){let e,t='<div class="ph-line ph-w60 svelte-qlezb4" style="height:0.5rem"></div> <div class="ph-line svelte-qlezb4" style="height:6px;border-radius:3px"></div> <div class="ph-line ph-w50 svelte-qlezb4" style="height:0.5rem"></div> ';return{c(){e=v("div"),e.innerHTML=t,this.h()},l(l){e=f(l,"DIV",{style:!0,"data-svelte-h":!0}),ts(e)!=="svelte-1h640di"&&(e.innerHTML=t),this.h()},h(){K(e,"display","grid"),K(e,"grid-template-columns","5.5rem 1fr 4.5rem"),K(e,"gap","0.5rem"),K(e,"align-items","center")},m(l,i){W(l,e,i)},p:ls,d(l){l&&n(e)}}}function Wl(a){let e,t='<div style="display:flex;justify-content:space-between;margin-bottom:0.375rem"><div class="ph-line ph-w40 svelte-qlezb4"></div> <div class="ph-line ph-w20 svelte-qlezb4"></div></div> <div style="display:flex;gap:0.75rem;margin-bottom:0.375rem"><div class="ph-line ph-w20 svelte-qlezb4"></div> <div class="ph-line ph-w20 svelte-qlezb4"></div></div> ';return{c(){e=v("div"),e.innerHTML=t,this.h()},l(l){e=f(l,"DIV",{class:!0,"data-svelte-h":!0}),ts(e)!=="svelte-8o0mhs"&&(e.innerHTML=t),this.h()},h(){o(e,"class","record-card card svelte-qlezb4")},m(l,i){W(l,e,i)},p:ls,d(l){l&&n(e)}}}function Ml(a){let e,t,l,i,c=a[3]("sessions.detail.back")+"",r,_,p,u=a[3]("sessions.detail.title")+"",k,P,b;document.title=e=a[3]("sessions.detail.title")+" — AIUsage";function m(d,g){if(d[2])return Dl;if(d[1])return Il;if(d[0])return sl}function C(d,g){return g===sl?Al(d):d}let w=m(a),T=w&&w(C(a,w));return{c(){t=E(),l=v("div"),i=v("a"),r=S(c),_=E(),p=v("h1"),k=S(u),P=E(),T&&T.c(),b=ys(),this.h()},l(d){ql("svelte-11yx7zf",document.head).forEach(n),t=q(d),l=f(d,"DIV",{class:!0});var D=h(l);i=f(D,"A",{class:!0,href:!0});var O=h(i);r=N(O,c),O.forEach(n),_=q(D),p=f(D,"H1",{});var ae=h(p);k=N(ae,u),ae.forEach(n),D.forEach(n),P=q(d),T&&T.l(d),b=ys(),this.h()},h(){o(i,"class","back-link svelte-qlezb4"),o(i,"href","/sessions"),o(l,"class","page-header")},m(d,g){W(d,t,g),W(d,l,g),s(l,i),s(i,r),s(l,_),s(l,p),s(p,k),W(d,P,g),T&&T.m(d,g),W(d,b,g)},p(d,[g]){g&8&&e!==(e=d[3]("sessions.detail.title")+" — AIUsage")&&(document.title=e),g&8&&c!==(c=d[3]("sessions.detail.back")+"")&&I(r,c),g&8&&u!==(u=d[3]("sessions.detail.title")+"")&&I(k,u),w===(w=m(d))&&T?T.p(C(d,w),g):(T&&T.d(1),T=w&&w(C(d,w)),T&&(T.c(),T.m(b.parentNode,b)))},i:ls,o:ls,d(d){d&&(n(t),n(l),n(P),n(b)),T&&T.d(d)}}}function pl(a){return new Date(a).toLocaleString()}function _l(a){if(!a||a<1e3)return"< 1s";const e=Math.floor(a/1e3),t=Math.floor(e/60),l=Math.floor(t/60);return l>0?`${l}h ${t%60}m ${e%60}s`:t===0?`${e}s`:`${t}m ${e%60}s`}function gs(a){if(a<=0)return"+0ms";if(a<1e3)return`+${a}ms`;const e=a/1e3;return`+${e%1===0?e.toFixed(0):e.toFixed(1)}s`}function Pe(a,e){return!e||!a?0:Math.round(a/e*1e3)/10}function Hl(a,e,t){let l,i;Zs(a,Tl,u=>t(5,l=u)),Zs(a,gl,u=>t(3,i=u));let c=null,r=null,_=!0;function p(u){return`— ${Math.round(u/1e3)}s ${i("sessions.detail.gap")} —`}return bl(async()=>{const u=l.params.sessionId,k=l.url.searchParams.get("tool")||"",P=l.url.searchParams.get("device")||"";try{t(0,c=await El(u,{tool:k,device:P}))}catch(b){t(1,r=b instanceof Error?b.message:"Failed to load session")}finally{t(2,_=!1)}}),[c,r,_,i,p]}class Bl extends kl{constructor(e){super(),zl(this,e,Hl,Ml,ml,{})}}export{Bl as component};
|