diff --git a/ui/litellm-dashboard/out/404.html b/ui/litellm-dashboard/out/404.html new file mode 100644 index 00000000000..777aeda7ebd --- /dev/null +++ b/ui/litellm-dashboard/out/404.html @@ -0,0 +1 @@ +404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file diff --git a/ui/litellm-dashboard/out/__next.__PAGE__.txt b/ui/litellm-dashboard/out/__next.__PAGE__.txt new file mode 100644 index 00000000000..eb4b245623a --- /dev/null +++ b/ui/litellm-dashboard/out/__next.__PAGE__.txt @@ -0,0 +1,29 @@ +1:"$Sreact.fragment" +2:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"ClientPageRoot"] +3:I[952683,["/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js","/litellm-asset-prefix/_next/static/chunks/e7a3cb45bb6af9d6.js","/litellm-asset-prefix/_next/static/chunks/b77b079f56cfb19f.js","/litellm-asset-prefix/_next/static/chunks/e27beb50d6e28cb6.js","/litellm-asset-prefix/_next/static/chunks/2eb4155044d1e456.js","/litellm-asset-prefix/_next/static/chunks/04b04ac396b7faab.js","/litellm-asset-prefix/_next/static/chunks/3bcdf14447160d2a.js","/litellm-asset-prefix/_next/static/chunks/fd652a21698517f5.js","/litellm-asset-prefix/_next/static/chunks/0e92936a38c51813.js","/litellm-asset-prefix/_next/static/chunks/531557a6e8b137fb.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/4bfcc56a003371a5.js","/litellm-asset-prefix/_next/static/chunks/5b1bc7b500da7632.js","/litellm-asset-prefix/_next/static/chunks/6fa4fee3edf49f37.js","/litellm-asset-prefix/_next/static/chunks/a48c2c3da41eb2f3.js","/litellm-asset-prefix/_next/static/chunks/0af1926925ad57a5.js","/litellm-asset-prefix/_next/static/chunks/e6f45b06065ef0bb.js","/litellm-asset-prefix/_next/static/chunks/7c8d5f8e52ccb535.js","/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","/litellm-asset-prefix/_next/static/chunks/10601033ba1e0ecc.js","/litellm-asset-prefix/_next/static/chunks/ecc775ad0cdb3225.js","/litellm-asset-prefix/_next/static/chunks/4076db803d35c051.js","/litellm-asset-prefix/_next/static/chunks/363b1f92ab9df4c0.js","/litellm-asset-prefix/_next/static/chunks/e242ee4f768c246f.js","/litellm-asset-prefix/_next/static/chunks/7e39d36e827183f3.js","/litellm-asset-prefix/_next/static/chunks/7a5198ee4012c170.js","/litellm-asset-prefix/_next/static/chunks/d4506e49af6e6ce6.js","/litellm-asset-prefix/_next/static/chunks/ae07a280c88a17c1.js","/litellm-asset-prefix/_next/static/chunks/c5558c35efabdaca.js","/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","/litellm-asset-prefix/_next/static/chunks/c0da5702184a271f.js","/litellm-asset-prefix/_next/static/chunks/f6f0edbbe4ef774f.js","/litellm-asset-prefix/_next/static/chunks/6275fa5a19203ba7.js","/litellm-asset-prefix/_next/static/chunks/9f117476179221df.js","/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","/litellm-asset-prefix/_next/static/chunks/3e51dcc6968f2a0c.js","/litellm-asset-prefix/_next/static/chunks/68fe69e21abf3d0e.js","/litellm-asset-prefix/_next/static/chunks/c4468fd1a9f917ad.js","/litellm-asset-prefix/_next/static/chunks/452c71ffc5687d35.js","/litellm-asset-prefix/_next/static/chunks/41796bb4827abd8b.js","/litellm-asset-prefix/_next/static/chunks/e49960798f8ca873.js","/litellm-asset-prefix/_next/static/chunks/f5d65ca0d57b3565.js","/litellm-asset-prefix/_next/static/chunks/343c8276ad7a6dc8.js","/litellm-asset-prefix/_next/static/chunks/de110f9d88443bf9.js","/litellm-asset-prefix/_next/static/chunks/37f5118b69eb15a9.js","/litellm-asset-prefix/_next/static/chunks/97f68a4199613528.js","/litellm-asset-prefix/_next/static/chunks/dd09ccf212f2474b.js","/litellm-asset-prefix/_next/static/chunks/8b2051ece25bfee9.js","/litellm-asset-prefix/_next/static/chunks/af08d0afa95850c4.js","/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","/litellm-asset-prefix/_next/static/chunks/533c0ba796144dac.js","/litellm-asset-prefix/_next/static/chunks/2dc15f48354ac47f.js","/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js"],"default"] +19:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"OutletBoundary"] +1a:"$Sreact.suspense" +:HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"] +0:{"buildId":"1NmNk5Jj124bw5BD7xBbW","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","precedence":"next"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/e7a3cb45bb6af9d6.js","async":true}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/b77b079f56cfb19f.js","async":true}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/e27beb50d6e28cb6.js","async":true}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/2eb4155044d1e456.js","async":true}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/04b04ac396b7faab.js","async":true}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/3bcdf14447160d2a.js","async":true}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/fd652a21698517f5.js","async":true}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/0e92936a38c51813.js","async":true}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/531557a6e8b137fb.js","async":true}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/4bfcc56a003371a5.js","async":true}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/5b1bc7b500da7632.js","async":true}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/6fa4fee3edf49f37.js","async":true}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/a48c2c3da41eb2f3.js","async":true}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/0af1926925ad57a5.js","async":true}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/e6f45b06065ef0bb.js","async":true}],["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/7c8d5f8e52ccb535.js","async":true}],["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","async":true}],["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/10601033ba1e0ecc.js","async":true}],["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/ecc775ad0cdb3225.js","async":true}],["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/4076db803d35c051.js","async":true}],["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/363b1f92ab9df4c0.js","async":true}],["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/e242ee4f768c246f.js","async":true}],["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/7e39d36e827183f3.js","async":true}],["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/7a5198ee4012c170.js","async":true}],["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/d4506e49af6e6ce6.js","async":true}],["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/ae07a280c88a17c1.js","async":true}],["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/c5558c35efabdaca.js","async":true}],["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","async":true}],["$","script","script-29",{"src":"/litellm-asset-prefix/_next/static/chunks/c0da5702184a271f.js","async":true}],["$","script","script-30",{"src":"/litellm-asset-prefix/_next/static/chunks/f6f0edbbe4ef774f.js","async":true}],["$","script","script-31",{"src":"/litellm-asset-prefix/_next/static/chunks/6275fa5a19203ba7.js","async":true}],["$","script","script-32",{"src":"/litellm-asset-prefix/_next/static/chunks/9f117476179221df.js","async":true}],["$","script","script-33",{"src":"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","async":true}],"$L6","$L7","$L8","$L9","$La","$Lb","$Lc","$Ld","$Le","$Lf","$L10","$L11","$L12","$L13","$L14","$L15","$L16","$L17"],"$L18"]}],"loading":null,"isPartial":false} +4:{} +5:"$0:rsc:props:children:0:props:serverProvidedParams:params" +6:["$","script","script-34",{"src":"/litellm-asset-prefix/_next/static/chunks/3e51dcc6968f2a0c.js","async":true}] +7:["$","script","script-35",{"src":"/litellm-asset-prefix/_next/static/chunks/68fe69e21abf3d0e.js","async":true}] +8:["$","script","script-36",{"src":"/litellm-asset-prefix/_next/static/chunks/c4468fd1a9f917ad.js","async":true}] +9:["$","script","script-37",{"src":"/litellm-asset-prefix/_next/static/chunks/452c71ffc5687d35.js","async":true}] +a:["$","script","script-38",{"src":"/litellm-asset-prefix/_next/static/chunks/41796bb4827abd8b.js","async":true}] +b:["$","script","script-39",{"src":"/litellm-asset-prefix/_next/static/chunks/e49960798f8ca873.js","async":true}] +c:["$","script","script-40",{"src":"/litellm-asset-prefix/_next/static/chunks/f5d65ca0d57b3565.js","async":true}] +d:["$","script","script-41",{"src":"/litellm-asset-prefix/_next/static/chunks/343c8276ad7a6dc8.js","async":true}] +e:["$","script","script-42",{"src":"/litellm-asset-prefix/_next/static/chunks/de110f9d88443bf9.js","async":true}] +f:["$","script","script-43",{"src":"/litellm-asset-prefix/_next/static/chunks/37f5118b69eb15a9.js","async":true}] +10:["$","script","script-44",{"src":"/litellm-asset-prefix/_next/static/chunks/97f68a4199613528.js","async":true}] +11:["$","script","script-45",{"src":"/litellm-asset-prefix/_next/static/chunks/dd09ccf212f2474b.js","async":true}] +12:["$","script","script-46",{"src":"/litellm-asset-prefix/_next/static/chunks/8b2051ece25bfee9.js","async":true}] +13:["$","script","script-47",{"src":"/litellm-asset-prefix/_next/static/chunks/af08d0afa95850c4.js","async":true}] +14:["$","script","script-48",{"src":"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","async":true}] +15:["$","script","script-49",{"src":"/litellm-asset-prefix/_next/static/chunks/533c0ba796144dac.js","async":true}] +16:["$","script","script-50",{"src":"/litellm-asset-prefix/_next/static/chunks/2dc15f48354ac47f.js","async":true}] +17:["$","script","script-51",{"src":"/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js","async":true}] +18:["$","$L19",null,{"children":["$","$1a",null,{"name":"Next.MetadataOutlet","children":"$@1b"}]}] +1b:null diff --git a/ui/litellm-dashboard/out/__next._full.txt b/ui/litellm-dashboard/out/__next._full.txt new file mode 100644 index 00000000000..bc9631b6d72 --- /dev/null +++ b/ui/litellm-dashboard/out/__next._full.txt @@ -0,0 +1,62 @@ +1:"$Sreact.fragment" +2:I[867271,["/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js"],"default"] +3:I[71195,["/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js"],"default"] +4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"default"] +5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"default"] +6:I[713354,["/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js"],"Toaster"] +7:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"ClientPageRoot"] +8:I[952683,["/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js","/litellm-asset-prefix/_next/static/chunks/e7a3cb45bb6af9d6.js","/litellm-asset-prefix/_next/static/chunks/b77b079f56cfb19f.js","/litellm-asset-prefix/_next/static/chunks/e27beb50d6e28cb6.js","/litellm-asset-prefix/_next/static/chunks/2eb4155044d1e456.js","/litellm-asset-prefix/_next/static/chunks/04b04ac396b7faab.js","/litellm-asset-prefix/_next/static/chunks/3bcdf14447160d2a.js","/litellm-asset-prefix/_next/static/chunks/fd652a21698517f5.js","/litellm-asset-prefix/_next/static/chunks/0e92936a38c51813.js","/litellm-asset-prefix/_next/static/chunks/531557a6e8b137fb.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/4bfcc56a003371a5.js","/litellm-asset-prefix/_next/static/chunks/5b1bc7b500da7632.js","/litellm-asset-prefix/_next/static/chunks/6fa4fee3edf49f37.js","/litellm-asset-prefix/_next/static/chunks/a48c2c3da41eb2f3.js","/litellm-asset-prefix/_next/static/chunks/0af1926925ad57a5.js","/litellm-asset-prefix/_next/static/chunks/e6f45b06065ef0bb.js","/litellm-asset-prefix/_next/static/chunks/7c8d5f8e52ccb535.js","/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","/litellm-asset-prefix/_next/static/chunks/10601033ba1e0ecc.js","/litellm-asset-prefix/_next/static/chunks/ecc775ad0cdb3225.js","/litellm-asset-prefix/_next/static/chunks/4076db803d35c051.js","/litellm-asset-prefix/_next/static/chunks/363b1f92ab9df4c0.js","/litellm-asset-prefix/_next/static/chunks/e242ee4f768c246f.js","/litellm-asset-prefix/_next/static/chunks/7e39d36e827183f3.js","/litellm-asset-prefix/_next/static/chunks/7a5198ee4012c170.js","/litellm-asset-prefix/_next/static/chunks/d4506e49af6e6ce6.js","/litellm-asset-prefix/_next/static/chunks/ae07a280c88a17c1.js","/litellm-asset-prefix/_next/static/chunks/c5558c35efabdaca.js","/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","/litellm-asset-prefix/_next/static/chunks/c0da5702184a271f.js","/litellm-asset-prefix/_next/static/chunks/f6f0edbbe4ef774f.js","/litellm-asset-prefix/_next/static/chunks/6275fa5a19203ba7.js","/litellm-asset-prefix/_next/static/chunks/9f117476179221df.js","/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","/litellm-asset-prefix/_next/static/chunks/3e51dcc6968f2a0c.js","/litellm-asset-prefix/_next/static/chunks/68fe69e21abf3d0e.js","/litellm-asset-prefix/_next/static/chunks/c4468fd1a9f917ad.js","/litellm-asset-prefix/_next/static/chunks/452c71ffc5687d35.js","/litellm-asset-prefix/_next/static/chunks/41796bb4827abd8b.js","/litellm-asset-prefix/_next/static/chunks/e49960798f8ca873.js","/litellm-asset-prefix/_next/static/chunks/f5d65ca0d57b3565.js","/litellm-asset-prefix/_next/static/chunks/343c8276ad7a6dc8.js","/litellm-asset-prefix/_next/static/chunks/de110f9d88443bf9.js","/litellm-asset-prefix/_next/static/chunks/37f5118b69eb15a9.js","/litellm-asset-prefix/_next/static/chunks/97f68a4199613528.js","/litellm-asset-prefix/_next/static/chunks/dd09ccf212f2474b.js","/litellm-asset-prefix/_next/static/chunks/8b2051ece25bfee9.js","/litellm-asset-prefix/_next/static/chunks/af08d0afa95850c4.js","/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","/litellm-asset-prefix/_next/static/chunks/533c0ba796144dac.js","/litellm-asset-prefix/_next/static/chunks/2dc15f48354ac47f.js","/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js"],"default"] +31:I[168027,[],"default"] +:HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"] +:HL["/litellm-asset-prefix/_next/static/chunks/cda5de3a3ef78213.css","style"] +:HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}] +:HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"] +0:{"P":null,"b":"1NmNk5Jj124bw5BD7xBbW","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/cda5de3a3ef78213.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":[["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{"richColors":true,"position":"top-right"}]]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/e7a3cb45bb6af9d6.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/b77b079f56cfb19f.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/e27beb50d6e28cb6.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/2eb4155044d1e456.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/04b04ac396b7faab.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/3bcdf14447160d2a.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/fd652a21698517f5.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/0e92936a38c51813.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/531557a6e8b137fb.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/4bfcc56a003371a5.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/5b1bc7b500da7632.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/6fa4fee3edf49f37.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/a48c2c3da41eb2f3.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/0af1926925ad57a5.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/e6f45b06065ef0bb.js","async":true,"nonce":"$undefined"}],"$Lb","$Lc","$Ld","$Le","$Lf","$L10","$L11","$L12","$L13","$L14","$L15","$L16","$L17","$L18","$L19","$L1a","$L1b","$L1c","$L1d","$L1e","$L1f","$L20","$L21","$L22","$L23","$L24","$L25","$L26","$L27","$L28","$L29","$L2a","$L2b","$L2c","$L2d","$L2e"],"$L2f"]}],{},null,false,false]},null,false,false],"$L30",false]],"m":"$undefined","G":["$31",[]],"S":true} +32:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"OutletBoundary"] +33:"$Sreact.suspense" +35:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"ViewportBoundary"] +37:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"MetadataBoundary"] +b:["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/7c8d5f8e52ccb535.js","async":true,"nonce":"$undefined"}] +c:["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","async":true,"nonce":"$undefined"}] +d:["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/10601033ba1e0ecc.js","async":true,"nonce":"$undefined"}] +e:["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/ecc775ad0cdb3225.js","async":true,"nonce":"$undefined"}] +f:["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/4076db803d35c051.js","async":true,"nonce":"$undefined"}] +10:["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/363b1f92ab9df4c0.js","async":true,"nonce":"$undefined"}] +11:["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/e242ee4f768c246f.js","async":true,"nonce":"$undefined"}] +12:["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/7e39d36e827183f3.js","async":true,"nonce":"$undefined"}] +13:["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/7a5198ee4012c170.js","async":true,"nonce":"$undefined"}] +14:["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/d4506e49af6e6ce6.js","async":true,"nonce":"$undefined"}] +15:["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/ae07a280c88a17c1.js","async":true,"nonce":"$undefined"}] +16:["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/c5558c35efabdaca.js","async":true,"nonce":"$undefined"}] +17:["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","async":true,"nonce":"$undefined"}] +18:["$","script","script-29",{"src":"/litellm-asset-prefix/_next/static/chunks/c0da5702184a271f.js","async":true,"nonce":"$undefined"}] +19:["$","script","script-30",{"src":"/litellm-asset-prefix/_next/static/chunks/f6f0edbbe4ef774f.js","async":true,"nonce":"$undefined"}] +1a:["$","script","script-31",{"src":"/litellm-asset-prefix/_next/static/chunks/6275fa5a19203ba7.js","async":true,"nonce":"$undefined"}] +1b:["$","script","script-32",{"src":"/litellm-asset-prefix/_next/static/chunks/9f117476179221df.js","async":true,"nonce":"$undefined"}] +1c:["$","script","script-33",{"src":"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","async":true,"nonce":"$undefined"}] +1d:["$","script","script-34",{"src":"/litellm-asset-prefix/_next/static/chunks/3e51dcc6968f2a0c.js","async":true,"nonce":"$undefined"}] +1e:["$","script","script-35",{"src":"/litellm-asset-prefix/_next/static/chunks/68fe69e21abf3d0e.js","async":true,"nonce":"$undefined"}] +1f:["$","script","script-36",{"src":"/litellm-asset-prefix/_next/static/chunks/c4468fd1a9f917ad.js","async":true,"nonce":"$undefined"}] +20:["$","script","script-37",{"src":"/litellm-asset-prefix/_next/static/chunks/452c71ffc5687d35.js","async":true,"nonce":"$undefined"}] +21:["$","script","script-38",{"src":"/litellm-asset-prefix/_next/static/chunks/41796bb4827abd8b.js","async":true,"nonce":"$undefined"}] +22:["$","script","script-39",{"src":"/litellm-asset-prefix/_next/static/chunks/e49960798f8ca873.js","async":true,"nonce":"$undefined"}] +23:["$","script","script-40",{"src":"/litellm-asset-prefix/_next/static/chunks/f5d65ca0d57b3565.js","async":true,"nonce":"$undefined"}] +24:["$","script","script-41",{"src":"/litellm-asset-prefix/_next/static/chunks/343c8276ad7a6dc8.js","async":true,"nonce":"$undefined"}] +25:["$","script","script-42",{"src":"/litellm-asset-prefix/_next/static/chunks/de110f9d88443bf9.js","async":true,"nonce":"$undefined"}] +26:["$","script","script-43",{"src":"/litellm-asset-prefix/_next/static/chunks/37f5118b69eb15a9.js","async":true,"nonce":"$undefined"}] +27:["$","script","script-44",{"src":"/litellm-asset-prefix/_next/static/chunks/97f68a4199613528.js","async":true,"nonce":"$undefined"}] +28:["$","script","script-45",{"src":"/litellm-asset-prefix/_next/static/chunks/dd09ccf212f2474b.js","async":true,"nonce":"$undefined"}] +29:["$","script","script-46",{"src":"/litellm-asset-prefix/_next/static/chunks/8b2051ece25bfee9.js","async":true,"nonce":"$undefined"}] +2a:["$","script","script-47",{"src":"/litellm-asset-prefix/_next/static/chunks/af08d0afa95850c4.js","async":true,"nonce":"$undefined"}] +2b:["$","script","script-48",{"src":"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","async":true,"nonce":"$undefined"}] +2c:["$","script","script-49",{"src":"/litellm-asset-prefix/_next/static/chunks/533c0ba796144dac.js","async":true,"nonce":"$undefined"}] +2d:["$","script","script-50",{"src":"/litellm-asset-prefix/_next/static/chunks/2dc15f48354ac47f.js","async":true,"nonce":"$undefined"}] +2e:["$","script","script-51",{"src":"/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js","async":true,"nonce":"$undefined"}] +2f:["$","$L32",null,{"children":["$","$33",null,{"name":"Next.MetadataOutlet","children":"$@34"}]}] +30:["$","$1","h",{"children":[null,["$","$L35",null,{"children":"$L36"}],["$","div",null,{"hidden":true,"children":["$","$L37",null,{"children":["$","$33",null,{"name":"Next.Metadata","children":"$L38"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}] +9:{} +a:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params" +36:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +39:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"IconMark"] +34:null +38:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L39","4",{}]] diff --git a/ui/litellm-dashboard/out/__next._head.txt b/ui/litellm-dashboard/out/__next._head.txt new file mode 100644 index 00000000000..c040bd1c797 --- /dev/null +++ b/ui/litellm-dashboard/out/__next._head.txt @@ -0,0 +1,6 @@ +1:"$Sreact.fragment" +2:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"ViewportBoundary"] +3:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"MetadataBoundary"] +4:"$Sreact.suspense" +5:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"IconMark"] +0:{"buildId":"1NmNk5Jj124bw5BD7xBbW","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L5","4",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false} diff --git a/ui/litellm-dashboard/out/__next._index.txt b/ui/litellm-dashboard/out/__next._index.txt new file mode 100644 index 00000000000..9feef57434d --- /dev/null +++ b/ui/litellm-dashboard/out/__next._index.txt @@ -0,0 +1,9 @@ +1:"$Sreact.fragment" +2:I[867271,["/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js"],"default"] +3:I[71195,["/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js"],"default"] +4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"default"] +5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/16ea27c3b926bc31.js"],"default"] +6:I[713354,["/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js"],"Toaster"] +:HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"] +:HL["/litellm-asset-prefix/_next/static/chunks/cda5de3a3ef78213.css","style"] +0:{"buildId":"1NmNk5Jj124bw5BD7xBbW","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/cda5de3a3ef78213.css","precedence":"next"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/1fea01605b2ee0c6.js","async":true}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/6bb78cffd9f529e6.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":[["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","template":["$","$L5",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}],["$","$L6",null,{"richColors":true,"position":"top-right"}]]}]}]]}],"loading":null,"isPartial":false} diff --git a/ui/litellm-dashboard/out/__next._tree.txt b/ui/litellm-dashboard/out/__next._tree.txt new file mode 100644 index 00000000000..4a91912658d --- /dev/null +++ b/ui/litellm-dashboard/out/__next._tree.txt @@ -0,0 +1,5 @@ +:HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"] +:HL["/litellm-asset-prefix/_next/static/chunks/cda5de3a3ef78213.css","style"] +:HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}] +:HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"] +0:{"buildId":"1NmNk5Jj124bw5BD7xBbW","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":true},"staleTime":300} diff --git a/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_buildManifest.js b/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_buildManifest.js new file mode 100644 index 00000000000..d74e1661bbe --- /dev/null +++ b/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_buildManifest.js @@ -0,0 +1,16 @@ +self.__BUILD_MANIFEST = { + "__rewrites": { + "afterFiles": [], + "beforeFiles": [ + { + "source": "/litellm-asset-prefix/_next/:path+", + "destination": "/_next/:path+" + } + ], + "fallback": [] + }, + "sortedPages": [ + "/_app", + "/_error" + ] +};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB() \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_clientMiddlewareManifest.json b/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_clientMiddlewareManifest.json new file mode 100644 index 00000000000..0637a088a01 --- /dev/null +++ b/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_clientMiddlewareManifest.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_ssgManifest.js b/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_ssgManifest.js new file mode 100644 index 00000000000..5b3ff592fd4 --- /dev/null +++ b/ui/litellm-dashboard/out/_next/static/1NmNk5Jj124bw5BD7xBbW/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/chunks/0060982c06b3d30f.js b/ui/litellm-dashboard/out/_next/static/chunks/0060982c06b3d30f.js new file mode 100644 index 00000000000..e55de4ce180 --- /dev/null +++ b/ui/litellm-dashboard/out/_next/static/chunks/0060982c06b3d30f.js @@ -0,0 +1,11 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,991124,e=>{"use strict";let t=(0,e.i(475254).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["default",()=>t])},174886,e=>{"use strict";var t=e.i(991124);e.s(["Copy",()=>t.default])},871689,180127,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["default",()=>t],180127),e.s(["ArrowLeft",()=>t],871689)},110204,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.i(174080);var a=e.i(991918),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,l)=>{let s=(0,a.createSlot)(`Primitive.${l}`),i=r.forwardRef((e,r)=>{let{asChild:a,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?s:l,{...i,ref:r})});return i.displayName=`Primitive.${l}`,{...e,[l]:i}},{}),s=r.forwardRef((e,r)=>(0,t.jsx)(l.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var i=e.i(225913),o=e.i(975157);let n=(0,i.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(s,{ref:a,className:(0,o.cn)(n(),e),...r}));d.displayName=s.displayName,e.s(["Label",()=>d],110204)},37727,841947,e=>{"use strict";let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",()=>t],841947),e.s(["X",()=>t],37727)},326999,e=>{"use strict";let t,r,a;var l=e.i(271645),s=e.i(981140),i=e.i(820783),o=e.i(30030),n=e.i(610772),d=e.i(369340),c=e.i(726330),u=e.i(765491),p=e.i(774606),m=e.i(296626),g=e.i(248425),x=e.i(303536),f=e.i(985369),h=e.i(186312),y=e.i(843476),b=Symbol("radix.slottable");function j(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}var v="Dialog",[N,k]=(0,o.createContextScope)(v),[w,C]=N(v),D=e=>{let{__scopeDialog:t,children:r,open:a,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,c=l.useRef(null),u=l.useRef(null),[p,m]=(0,d.useControllableState)({prop:a,defaultProp:s??!1,onChange:i,caller:v});return(0,y.jsx)(w,{scope:t,triggerRef:c,contentRef:u,contentId:(0,n.useId)(),titleId:(0,n.useId)(),descriptionId:(0,n.useId)(),open:p,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(e=>!e),[m]),modal:o,children:r})};D.displayName=v;var S="DialogTrigger",R=l.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,l=C(S,r),o=(0,i.useComposedRefs)(t,l.triggerRef);return(0,y.jsx)(g.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":q(l.open),...a,ref:o,onClick:(0,s.composeEventHandlers)(e.onClick,l.onOpenToggle)})});R.displayName=S;var T="DialogPortal",[A,P]=N(T,{forceMount:void 0}),I=e=>{let{__scopeDialog:t,forceMount:r,children:a,container:s}=e,i=C(T,t);return(0,y.jsx)(A,{scope:t,forceMount:r,children:l.Children.map(a,e=>(0,y.jsx)(m.Presence,{present:r||i.open,children:(0,y.jsx)(p.Portal,{asChild:!0,container:s,children:e})}))})};I.displayName=T;var O="DialogOverlay",z=l.forwardRef((e,t)=>{let r=P(O,e.__scopeDialog),{forceMount:a=r.forceMount,...l}=e,s=C(O,e.__scopeDialog);return s.modal?(0,y.jsx)(m.Presence,{present:a||s.open,children:(0,y.jsx)(_,{...l,ref:t})}):null});z.displayName=O;var E=((a=l.forwardRef((e,t)=>{let{children:r,...a}=e;if(l.isValidElement(r)){var s;let e,o,n=(s=r,(o=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(o=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),d=function(e,t){let r={...t};for(let a in t){let l=e[a],s=t[a];/^on[A-Z]/.test(a)?l&&s?r[a]=(...e)=>{let t=s(...e);return l(...e),t}:l&&(r[a]=l):"style"===a?r[a]={...l,...s}:"className"===a&&(r[a]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==l.Fragment&&(d.ref=t?(0,i.composeRefs)(t,n):n),l.cloneElement(r,d)}return l.Children.count(r)>1?l.Children.only(null):null})).displayName="DialogOverlay.RemoveScroll.SlotClone",t=a,(r=l.forwardRef((e,r)=>{let{children:a,...s}=e,i=l.Children.toArray(a),o=i.find(j);if(o){let e=o.props.children,a=i.map(t=>t!==o?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,y.jsx)(t,{...s,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,a):null})}return(0,y.jsx)(t,{...s,ref:r,children:a})})).displayName="DialogOverlay.RemoveScroll.Slot",r),_=l.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,l=C(O,r);return(0,y.jsx)(f.RemoveScroll,{as:E,allowPinchZoom:!0,shards:[l.contentRef],children:(0,y.jsx)(g.Primitive.div,{"data-state":q(l.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),F="DialogContent",$=l.forwardRef((e,t)=>{let r=P(F,e.__scopeDialog),{forceMount:a=r.forceMount,...l}=e,s=C(F,e.__scopeDialog);return(0,y.jsx)(m.Presence,{present:a||s.open,children:s.modal?(0,y.jsx)(B,{...l,ref:t}):(0,y.jsx)(H,{...l,ref:t})})});$.displayName=F;var B=l.forwardRef((e,t)=>{let r=C(F,e.__scopeDialog),a=l.useRef(null),o=(0,i.useComposedRefs)(t,r.contentRef,a);return l.useEffect(()=>{let e=a.current;if(e)return(0,h.hideOthers)(e)},[]),(0,y.jsx)(L,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,s.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,s.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),H=l.forwardRef((e,t)=>{let r=C(F,e.__scopeDialog),a=l.useRef(!1),s=l.useRef(!1);return(0,y.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));let l=t.target;r.triggerRef.current?.contains(l)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),L=l.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,...n}=e,d=C(F,r),p=l.useRef(null),m=(0,i.useComposedRefs)(t,p);return(0,x.useFocusGuards)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(u.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:(0,y.jsx)(c.DismissableLayer,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":q(d.open),...n,ref:m,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(X,{titleId:d.titleId}),(0,y.jsx)(Q,{contentRef:p,descriptionId:d.descriptionId})]})]})}),V="DialogTitle",M=l.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,l=C(V,r);return(0,y.jsx)(g.Primitive.h2,{id:l.titleId,...a,ref:t})});M.displayName=V;var U="DialogDescription",W=l.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,l=C(U,r);return(0,y.jsx)(g.Primitive.p,{id:l.descriptionId,...a,ref:t})});W.displayName=U;var K="DialogClose",G=l.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,l=C(K,r);return(0,y.jsx)(g.Primitive.button,{type:"button",...a,ref:t,onClick:(0,s.composeEventHandlers)(e.onClick,()=>l.onOpenChange(!1))})});function q(e){return e?"open":"closed"}G.displayName=K;var Z="DialogTitleWarning",[Y,J]=(0,o.createContext)(Z,{contentName:F,titleName:V,docsSlug:"dialog"}),X=({titleId:e})=>{let t=J(Z),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Q=({contentRef:e,descriptionId:t})=>{let r=J("DialogDescriptionWarning"),a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return l.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null};e.s(["Close",()=>G,"Content",()=>$,"Description",()=>W,"Overlay",()=>z,"Portal",()=>I,"Root",()=>D,"Title",()=>M,"Trigger",()=>R,"WarningProvider",()=>Y,"createDialogScope",()=>k],326999)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(326999),l=e.i(37727),s=e.i(975157);let i=a.Root;a.Trigger;let o=a.Portal;a.Close;let n=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)(a.Overlay,{ref:l,className:(0,s.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r}));n.displayName=a.Overlay.displayName;let d=r.forwardRef(({className:e,children:r,...i},d)=>(0,t.jsxs)(o,{children:[(0,t.jsx)(n,{}),(0,t.jsxs)(a.Content,{ref:d,className:(0,s.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...i,children:[r,(0,t.jsxs)(a.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(l.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));d.displayName=a.Content.displayName;let c=({className:e,...r})=>(0,t.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});c.displayName="DialogHeader";let u=({className:e,...r})=>(0,t.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});u.displayName="DialogFooter";let p=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)(a.Title,{ref:l,className:(0,s.cn)("text-lg font-semibold leading-none tracking-tight",e),...r}));p.displayName=a.Title.displayName;let m=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)(a.Description,{ref:l,className:(0,s.cn)("text-sm text-muted-foreground",e),...r}));m.displayName=a.Description.displayName,e.s(["Dialog",()=>i,"DialogContent",()=>d,"DialogDescription",()=>m,"DialogFooter",()=>u,"DialogHeader",()=>c,"DialogTitle",()=>p])},727612,e=>{"use strict";let t=(0,e.i(475254).default)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);e.s(["Trash2",()=>t],727612)},784774,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(975157);let l=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:l,className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})}));l.displayName="Table";let s=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)("thead",{ref:l,className:(0,a.cn)("[&_tr]:border-b",e),...r}));s.displayName="TableHeader";let i=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)("tbody",{ref:l,className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r}));i.displayName="TableBody",r.forwardRef(({className:e,...r},l)=>(0,t.jsx)("tfoot",{ref:l,className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})).displayName="TableFooter";let o=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)("tr",{ref:l,className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...r}));o.displayName="TableRow";let n=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)("th",{ref:l,className:(0,a.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...r}));n.displayName="TableHead";let d=r.forwardRef(({className:e,...r},l)=>(0,t.jsx)("td",{ref:l,className:(0,a.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...r}));d.displayName="TableCell",r.forwardRef(({className:e,...r},l)=>(0,t.jsx)("caption",{ref:l,className:(0,a.cn)("mt-4 text-sm text-muted-foreground",e),...r})).displayName="TableCaption",e.s(["Table",()=>l,"TableBody",()=>i,"TableCell",()=>d,"TableHead",()=>n,"TableHeader",()=>s,"TableRow",()=>o])},868499,e=>{"use strict";let t;var r=e.i(843476),a=e.i(271645),l=e.i(30030),s=e.i(820783),i=e.i(326999),o=e.i(981140),n=Symbol("radix.slottable"),d="AlertDialog",[c,u]=(0,l.createContextScope)(d,[i.createDialogScope]),p=(0,i.createDialogScope)(),m=e=>{let{__scopeAlertDialog:t,...a}=e,l=p(t);return(0,r.jsx)(i.Root,{...l,...a,modal:!0})};m.displayName=d;var g=a.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...l}=e,s=p(a);return(0,r.jsx)(i.Trigger,{...s,...l,ref:t})});g.displayName="AlertDialogTrigger";var x=e=>{let{__scopeAlertDialog:t,...a}=e,l=p(t);return(0,r.jsx)(i.Portal,{...l,...a})};x.displayName="AlertDialogPortal";var f=a.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...l}=e,s=p(a);return(0,r.jsx)(i.Overlay,{...s,...l,ref:t})});f.displayName="AlertDialogOverlay";var h="AlertDialogContent",[y,b]=c(h),j=((t=({children:e})=>(0,r.jsx)(r.Fragment,{children:e})).displayName="AlertDialogContent.Slottable",t.__radixId=n,t),v=a.forwardRef((e,t)=>{let{__scopeAlertDialog:l,children:n,...d}=e,c=p(l),u=a.useRef(null),m=(0,s.useComposedRefs)(t,u),g=a.useRef(null);return(0,r.jsx)(i.WarningProvider,{contentName:h,titleName:N,docsSlug:"alert-dialog",children:(0,r.jsx)(y,{scope:l,cancelRef:g,children:(0,r.jsxs)(i.Content,{role:"alertdialog",...c,...d,ref:m,onOpenAutoFocus:(0,o.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,r.jsx)(j,{children:n}),(0,r.jsx)(T,{contentRef:u})]})})})});v.displayName=h;var N="AlertDialogTitle",k=a.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...l}=e,s=p(a);return(0,r.jsx)(i.Title,{...s,...l,ref:t})});k.displayName=N;var w="AlertDialogDescription",C=a.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...l}=e,s=p(a);return(0,r.jsx)(i.Description,{...s,...l,ref:t})});C.displayName=w;var D=a.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...l}=e,s=p(a);return(0,r.jsx)(i.Close,{...s,...l,ref:t})});D.displayName="AlertDialogAction";var S="AlertDialogCancel",R=a.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...l}=e,{cancelRef:o}=b(S,a),n=p(a),d=(0,s.useComposedRefs)(t,o);return(0,r.jsx)(i.Close,{...n,...l,ref:d})});R.displayName=S;var T=({contentRef:e})=>{let t=`\`${h}\` requires a description for the component to be accessible for screen reader users. + +You can add a description to the \`${h}\` by passing a \`${w}\` component as a child, which also benefits sighted users by adding visible context to the dialog. + +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${h}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. + +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return a.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},A=e.i(975157),P=e.i(519455);let I=a.forwardRef(({className:e,...t},a)=>(0,r.jsx)(f,{className:(0,A.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));I.displayName=f.displayName;let O=a.forwardRef(({className:e,...t},a)=>(0,r.jsxs)(x,{children:[(0,r.jsx)(I,{}),(0,r.jsx)(v,{ref:a,className:(0,A.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));O.displayName=v.displayName;let z=({className:e,...t})=>(0,r.jsx)("div",{className:(0,A.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...t});z.displayName="AlertDialogHeader";let E=({className:e,...t})=>(0,r.jsx)("div",{className:(0,A.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});E.displayName="AlertDialogFooter";let _=a.forwardRef(({className:e,...t},a)=>(0,r.jsx)(k,{ref:a,className:(0,A.cn)("text-lg font-semibold",e),...t}));_.displayName=k.displayName;let F=a.forwardRef(({className:e,...t},a)=>(0,r.jsx)(C,{ref:a,className:(0,A.cn)("text-sm text-muted-foreground",e),...t}));F.displayName=C.displayName;let $=a.forwardRef(({className:e,...t},a)=>(0,r.jsx)(D,{ref:a,className:(0,A.cn)((0,P.buttonVariants)(),e),...t}));$.displayName=D.displayName;let B=a.forwardRef(({className:e,...t},a)=>(0,r.jsx)(R,{ref:a,className:(0,A.cn)((0,P.buttonVariants)({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));B.displayName=R.displayName,e.s(["AlertDialog",()=>m,"AlertDialogAction",()=>$,"AlertDialogCancel",()=>B,"AlertDialogContent",()=>O,"AlertDialogDescription",()=>F,"AlertDialogFooter",()=>E,"AlertDialogHeader",()=>z,"AlertDialogTitle",()=>_,"AlertDialogTrigger",()=>g],868499)},899602,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);e.s(["ArrowUpDown",()=>t],899602)},221345,e=>{"use strict";let t=(0,e.i(475254).default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);e.s(["Link",()=>t],221345)},652272,209261,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(871689),l=e.i(174886),s=e.i(643531),i=e.i(221345);let o=e=>"github"===e.source.source&&e.source.repo?`/plugin marketplace add ${e.source.repo}`:"url"===e.source.source&&e.source.url?`/plugin marketplace add ${e.source.url}`:`/plugin marketplace add ${e.name}`;e.s(["formatInstallCommand",0,o,"getCategoryBadgeColor",0,e=>{if(!e)return"gray";let t=e.toLowerCase();if(t.includes("development")||t.includes("dev"))return"blue";if(t.includes("productivity")||t.includes("workflow"))return"green";if(t.includes("learning")||t.includes("education"))return"purple";if(t.includes("security")||t.includes("safety"))return"red";if(t.includes("data")||t.includes("analytics"))return"orange";else if(t.includes("integration")||t.includes("api"))return"yellow";return"gray"},"isValidEmail",0,e=>!e||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),"isValidSemanticVersion",0,e=>!e||/^\d+\.\d+\.\d+(-[a-zA-Z0-9.-]+)?(\+[a-zA-Z0-9.-]+)?$/.test(e),"isValidUrl",0,e=>{if(!e)return!0;try{return new URL(e),!0}catch{return!1}},"parseKeywords",0,e=>e&&""!==e.trim()?e.split(",").map(e=>e.trim()).filter(e=>""!==e):[],"validatePluginName",0,e=>!!e&&""!==e.trim()&&/^[a-z0-9-]+$/.test(e)],209261),e.s(["default",0,({skill:e,onBack:n})=>{let d,[c,u]=(0,r.useState)("overview"),[p,m]=(0,r.useState)(null),g=(e,t)=>{navigator.clipboard.writeText(e),m(t),setTimeout(()=>m(null),2e3)},x="github"===(d=e.source).source&&d.repo?`https://github.com/${d.repo}`:"git-subdir"===d.source&&d.url?d.path?`${d.url}/tree/main/${d.path}`:d.url:"url"===d.source&&d.url?d.url:null,f=o(e),h=[...e.category?[{property:"Category",value:e.category}]:[],...e.domain?[{property:"Domain",value:e.domain}]:[],...e.namespace?[{property:"Namespace",value:e.namespace}]:[],...e.version?[{property:"Version",value:e.version}]:[],...e.author?.name?[{property:"Author",value:e.author.name}]:[],...e.created_at?[{property:"Added",value:new Date(e.created_at).toLocaleDateString()}]:[]];return(0,t.jsxs)("div",{style:{padding:"24px 32px 24px 0"},children:[(0,t.jsxs)("div",{onClick:n,style:{display:"inline-flex",alignItems:"center",gap:6,color:"#5f6368",cursor:"pointer",fontSize:14,marginBottom:24},children:[(0,t.jsx)(a.ArrowLeft,{style:{fontSize:11}}),(0,t.jsx)("span",{children:"Skills"})]}),(0,t.jsxs)("div",{style:{marginBottom:8},children:[(0,t.jsx)("h1",{style:{fontSize:28,fontWeight:400,color:"#202124",margin:0,lineHeight:1.2},children:e.name}),e.description&&(0,t.jsx)("p",{style:{fontSize:14,color:"#5f6368",margin:"8px 0 0 0",lineHeight:1.6},children:e.description})]}),(0,t.jsx)("div",{style:{borderBottom:"1px solid #dadce0",marginBottom:28,marginTop:24},children:(0,t.jsx)("div",{style:{display:"flex",gap:0},children:[{key:"overview",label:"Overview"},{key:"usage",label:"How to Use"}].map(e=>(0,t.jsx)("div",{onClick:()=>u(e.key),style:{padding:"12px 20px",fontSize:14,color:c===e.key?"#1a73e8":"#5f6368",borderBottom:c===e.key?"3px solid #1a73e8":"3px solid transparent",cursor:"pointer",fontWeight:c===e.key?500:400,marginBottom:-1},children:e.label},e.key))})}),"overview"===c&&(0,t.jsxs)("div",{style:{display:"flex",gap:64},children:[(0,t.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,t.jsx)("h2",{style:{fontSize:18,fontWeight:400,color:"#202124",margin:"0 0 4px 0"},children:"Skill Details"}),(0,t.jsx)("p",{style:{fontSize:13,color:"#5f6368",margin:"0 0 16px 0"},children:"Metadata registered with this skill"}),(0,t.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:14},children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{style:{borderBottom:"1px solid #dadce0"},children:[(0,t.jsx)("th",{style:{textAlign:"left",padding:"12px 0",color:"#5f6368",fontWeight:500,width:160},children:"Property"}),(0,t.jsx)("th",{style:{textAlign:"left",padding:"12px 0",color:"#5f6368",fontWeight:500},children:e.name})]})}),(0,t.jsx)("tbody",{children:h.map((e,r)=>(0,t.jsxs)("tr",{style:{borderBottom:"1px solid #f1f3f4"},children:[(0,t.jsx)("td",{style:{padding:"12px 0",color:"#3c4043"},children:e.property}),(0,t.jsx)("td",{style:{padding:"12px 0",color:"#202124"},children:e.value})]},r))})]})]}),(0,t.jsxs)("div",{style:{width:240,flexShrink:0},children:[(0,t.jsxs)("div",{style:{marginBottom:24},children:[(0,t.jsx)("div",{style:{fontSize:12,color:"#5f6368",marginBottom:4},children:"Status"}),(0,t.jsx)("span",{style:{fontSize:12,padding:"3px 10px",borderRadius:12,backgroundColor:e.enabled?"#e6f4ea":"#f1f3f4",color:e.enabled?"#137333":"#5f6368",fontWeight:500},children:e.enabled?"Public":"Draft"})]}),x&&(0,t.jsxs)("div",{style:{marginBottom:24},children:[(0,t.jsx)("div",{style:{fontSize:12,color:"#5f6368",marginBottom:4},children:"Source"}),(0,t.jsxs)("a",{href:x,target:"_blank",rel:"noopener noreferrer",style:{fontSize:13,color:"#1a73e8",wordBreak:"break-all",display:"flex",alignItems:"center",gap:4},children:[x.replace("https://",""),(0,t.jsx)(i.Link,{style:{fontSize:11,flexShrink:0}})]})]}),e.keywords&&e.keywords.length>0&&(0,t.jsxs)("div",{style:{marginBottom:24},children:[(0,t.jsx)("div",{style:{fontSize:12,color:"#5f6368",marginBottom:8},children:"Tags"}),(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:e.keywords.map(e=>(0,t.jsx)("span",{style:{fontSize:12,padding:"4px 12px",borderRadius:16,border:"1px solid #dadce0",color:"#3c4043",backgroundColor:"#fff"},children:e},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontSize:12,color:"#5f6368",marginBottom:4},children:"Skill ID"}),(0,t.jsx)("div",{style:{fontSize:12,fontFamily:"monospace",color:"#3c4043",wordBreak:"break-all"},children:e.id})]})]})]}),"usage"===c&&(0,t.jsxs)("div",{style:{maxWidth:640},children:[(0,t.jsx)("h2",{style:{fontSize:18,fontWeight:400,color:"#202124",margin:"0 0 8px 0"},children:"Using this skill"}),(0,t.jsx)("p",{style:{fontSize:14,color:"#5f6368",margin:"0 0 24px 0",lineHeight:1.6},children:"Once your proxy is set as a marketplace, enable this skill in Claude Code with one command:"}),(0,t.jsxs)("div",{style:{border:"1px solid #dadce0",borderRadius:8,overflow:"hidden",marginBottom:24},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 16px",backgroundColor:"#f8f9fa",borderBottom:"1px solid #dadce0"},children:[(0,t.jsx)("span",{style:{fontSize:13,color:"#3c4043",fontWeight:500},children:"Run in Claude Code"}),(0,t.jsxs)("button",{onClick:()=>g(f,"install"),style:{display:"flex",alignItems:"center",gap:4,fontSize:12,color:"install"===p?"#137333":"#1a73e8",background:"none",border:"none",cursor:"pointer",padding:0},children:["install"===p?(0,t.jsx)(s.Check,{}):(0,t.jsx)(l.Copy,{}),"install"===p?"Copied":"Copy"]})]}),(0,t.jsx)("pre",{style:{margin:0,padding:"14px 16px",fontSize:14,fontFamily:"monospace",color:"#202124",backgroundColor:"#fff"},children:f})]}),(0,t.jsxs)("p",{style:{fontSize:13,color:"#5f6368",lineHeight:1.6,margin:0},children:["Don't have the marketplace configured yet?"," ",(0,t.jsx)("span",{onClick:()=>u("setup"),style:{color:"#1a73e8",cursor:"pointer"},children:"See one-time setup →"})]})]}),"setup"===c&&(0,t.jsxs)("div",{style:{maxWidth:640},children:[(0,t.jsx)("h2",{style:{fontSize:18,fontWeight:400,color:"#202124",margin:"0 0 8px 0"},children:"One-time marketplace setup"}),(0,t.jsxs)("p",{style:{fontSize:14,color:"#5f6368",margin:"0 0 24px 0",lineHeight:1.6},children:["Add this to ",(0,t.jsx)("code",{style:{fontSize:13,backgroundColor:"#f1f3f4",padding:"1px 6px",borderRadius:4},children:"~/.claude/settings.json"})," to point Claude Code at your proxy:"]}),(0,t.jsxs)("div",{style:{border:"1px solid #dadce0",borderRadius:8,overflow:"hidden"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 16px",backgroundColor:"#f8f9fa",borderBottom:"1px solid #dadce0"},children:[(0,t.jsx)("span",{style:{fontSize:13,color:"#3c4043",fontWeight:500},children:"~/.claude/settings.json"}),(0,t.jsxs)("button",{onClick:()=>{g(JSON.stringify({extraKnownMarketplaces:{"my-org":{source:"url",url:`${window.location.origin}/claude-code/marketplace.json`}}},null,2),"settings")},style:{display:"flex",alignItems:"center",gap:4,fontSize:12,color:"settings"===p?"#137333":"#1a73e8",background:"none",border:"none",cursor:"pointer",padding:0},children:["settings"===p?(0,t.jsx)(s.Check,{}):(0,t.jsx)(l.Copy,{}),"settings"===p?"Copied":"Copy"]})]}),(0,t.jsx)("pre",{style:{margin:0,padding:"14px 16px",fontSize:13,fontFamily:"monospace",color:"#202124",backgroundColor:"#fff"},children:JSON.stringify({extraKnownMarketplaces:{"my-org":{source:"url",url:`${window.location.origin}/claude-code/marketplace.json`}}},null,2)})]})]})]})}],652272)},704308,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(519455),l=e.i(868499),s=e.i(764205),i=e.i(653145),o=e.i(776639),n=e.i(793479),d=e.i(110204),c=e.i(967489),u=e.i(624687),p=e.i(888259),m=e.i(209261);let g=["Development","Productivity","Learning","Security","Data & Analytics","Integration","Testing","Documentation"],x=({visible:e,onClose:l,accessToken:x,onSuccess:f})=>{let{register:h,handleSubmit:y,setValue:b,getValues:j,reset:v,control:N,formState:k}=(0,i.useForm)({defaultValues:{skillUrl:"",name:"",domain:"",namespace:"",description:"",category:"",keywords:"",version:"",authorName:"",authorEmail:""}}),[w,C]=(0,r.useState)(!1),[D,S]=(0,r.useState)(null),R=async e=>{if(!x)return void p.default.error("No access token available");if(!D)return void p.default.error("Please enter a valid GitHub URL");if(!(0,m.validatePluginName)(e.name))return void p.default.error("Skill name must be kebab-case (lowercase letters, numbers, and hyphens only)");if(e.version&&!(0,m.isValidSemanticVersion)(e.version))return void p.default.error("Version must be in semantic versioning format (e.g., 1.0.0)");if(e.authorEmail&&!(0,m.isValidEmail)(e.authorEmail))return void p.default.error("Invalid email format");if(e.homepage&&!(0,m.isValidUrl)(e.homepage))return void p.default.error("Invalid homepage URL format");C(!0);try{let t={name:e.name.trim(),source:D.parsed};e.version&&(t.version=e.version.trim()),e.description&&(t.description=e.description.trim()),(e.authorName||e.authorEmail)&&(t.author={},e.authorName&&(t.author.name=e.authorName.trim()),e.authorEmail&&(t.author.email=e.authorEmail.trim())),e.homepage&&(t.homepage=e.homepage.trim()),e.category&&(t.category=e.category),e.keywords&&(t.keywords=(0,m.parseKeywords)(e.keywords)),e.domain&&(t.domain=e.domain.trim()),e.namespace&&(t.namespace=e.namespace.trim()),await (0,s.registerClaudeCodePlugin)(x,t),p.default.success("Skill registered successfully"),v(),S(null),f(),l()}catch(e){console.error("Error registering skill:",e),p.default.error("Failed to register skill")}finally{C(!1)}},T=()=>{v(),S(null),l()},A=h("skillUrl",{required:"Please enter a GitHub URL"});return(0,t.jsx)(o.Dialog,{open:e,onOpenChange:e=>e?void 0:T(),children:(0,t.jsxs)(o.DialogContent,{className:"max-w-[700px] max-h-[90vh] overflow-y-auto top-8",children:[(0,t.jsx)(o.DialogHeader,{children:(0,t.jsx)(o.DialogTitle,{children:"Add New Skill"})}),(0,t.jsxs)("form",{onSubmit:y(R),className:"mt-4 space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(d.Label,{htmlFor:"skillUrl",children:["GitHub URL ",(0,t.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,t.jsx)(n.Input,{id:"skillUrl",placeholder:"https://github.com/org/repo/tree/main/my-skill",className:"rounded-lg","aria-invalid":!!k.errors.skillUrl,...A,onChange:e=>{let t;A.onChange(e),S(t=function(e){let t=e.trim().replace(/^https?:\/\//,"").replace(/\/+$/,"");if(!t.startsWith("github.com/"))return null;let r=t.slice(11).split("/");if(r.length<2)return null;let a=r[0],l=r[1].replace(/\.git$/,"");if(2===r.length||2===r.length&&l)return{parsed:{source:"github",repo:`${a}/${l}`},label:`GitHub repo — ${a}/${l}`,suggestedName:l};if(r.length>=5&&("tree"===r[2]||"blob"===r[2])){let e=r.slice(4),t=e[e.length-1];if(t&&t.includes(".")&&e.pop(),0===e.length)return{parsed:{source:"github",repo:`${a}/${l}`},label:`GitHub repo — ${a}/${l}`,suggestedName:l};let s=e.join("/");return{parsed:{source:"git-subdir",url:`https://github.com/${a}/${l}`,path:s},label:`GitHub subdir — ${a}/${l} @ ${s}`,suggestedName:e[e.length-1]}}return null}(e.target.value)),t&&(j("name")||b("name",t.suggestedName,{shouldValidate:!1}))}}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Paste a GitHub URL — repo, folder, or file link. E.g. github.com/org/repo or github.com/org/repo/tree/main/my-skill"}),k.errors.skillUrl&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:k.errors.skillUrl.message})]}),D&&(0,t.jsxs)("div",{className:"px-3 py-2 bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-900 rounded-lg text-sm text-blue-700 dark:text-blue-300",children:["Detected: ",D.label]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(d.Label,{htmlFor:"name",children:["Skill Name ",(0,t.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,t.jsx)(n.Input,{id:"name",placeholder:"my-skill",className:"rounded-lg","aria-invalid":!!k.errors.name,...h("name",{required:"Please enter skill name",pattern:{value:/^[a-z0-9-]+$/,message:"Name must be kebab-case (lowercase, numbers, hyphens only)"}})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Unique identifier in kebab-case format (e.g., my-skill)"}),k.errors.name&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:k.errors.name.message})]}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)(d.Label,{htmlFor:"domain",children:"Domain (Optional)"}),(0,t.jsx)(n.Input,{id:"domain",placeholder:"Productivity",className:"rounded-lg",...h("domain")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Top-level grouping in the Skill Hub (e.g., Productivity)"})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)(d.Label,{htmlFor:"namespace",children:"Namespace (Optional)"}),(0,t.jsx)(n.Input,{id:"namespace",placeholder:"workflows",className:"rounded-lg",...h("namespace")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Sub-grouping within domain (e.g., workflows)"})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.Label,{htmlFor:"description",children:"Description (Optional)"}),(0,t.jsx)(u.Textarea,{id:"description",rows:3,placeholder:"A skill that helps with...",maxLength:500,className:"rounded-lg",...h("description")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Brief description of what the skill does"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.Label,{htmlFor:"category",children:"Category (Optional)"}),(0,t.jsx)(i.Controller,{control:N,name:"category",render:({field:e})=>(0,t.jsxs)(c.Select,{value:e.value||"",onValueChange:t=>e.onChange("__none__"===t?"":t),children:[(0,t.jsx)(c.SelectTrigger,{id:"category",className:"rounded-lg",children:(0,t.jsx)(c.SelectValue,{placeholder:"Select a category"})}),(0,t.jsxs)(c.SelectContent,{children:[(0,t.jsx)(c.SelectItem,{value:"__none__",children:(0,t.jsx)("span",{className:"text-muted-foreground",children:"None"})}),g.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:e},e))]})]})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.Label,{htmlFor:"keywords",children:"Keywords (Optional)"}),(0,t.jsx)(n.Input,{id:"keywords",placeholder:"search, web, api",className:"rounded-lg",...h("keywords")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Comma-separated list of keywords for search"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.Label,{htmlFor:"version",children:"Version (Optional)"}),(0,t.jsx)(n.Input,{id:"version",placeholder:"1.0.0",className:"rounded-lg",...h("version")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Semantic version (e.g., 1.0.0)"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.Label,{htmlFor:"authorName",children:"Author Name (Optional)"}),(0,t.jsx)(n.Input,{id:"authorName",placeholder:"Your Name or Organization",className:"rounded-lg",...h("authorName")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Name of the skill author or organization"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.Label,{htmlFor:"authorEmail",children:"Author Email (Optional)"}),(0,t.jsx)(n.Input,{id:"authorEmail",type:"email",placeholder:"author@example.com",className:"rounded-lg","aria-invalid":!!k.errors.authorEmail,...h("authorEmail",{validate:e=>!e||(0,m.isValidEmail)(e)||"Please enter a valid email"})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Contact email for the skill author"}),k.errors.authorEmail&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:k.errors.authorEmail.message})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2 pt-6 mt-6",children:[(0,t.jsx)(a.Button,{type:"button",variant:"outline",onClick:T,disabled:w,children:"Cancel"}),(0,t.jsx)(a.Button,{type:"submit",disabled:w,children:w?"Adding...":"Add Skill"})]})]})]})})};var f=e.i(152990),h=e.i(682830),y=e.i(784774),b=e.i(487486),j=e.i(746798),v=e.i(975157),N=e.i(899602),k=e.i(664659),w=e.i(655900),C=e.i(174886),D=e.i(727612),S=e.i(727749);let R={gray:"bg-muted text-muted-foreground",green:"bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300",red:"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-300",blue:"bg-blue-100 text-blue-700 dark:bg-blue-950 dark:text-blue-300",indigo:"bg-indigo-100 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-300",purple:"bg-purple-100 text-purple-700 dark:bg-purple-950 dark:text-purple-300",orange:"bg-orange-100 text-orange-700 dark:bg-orange-950 dark:text-orange-300",amber:"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-300",yellow:"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-300",cyan:"bg-cyan-100 text-cyan-700 dark:bg-cyan-950 dark:text-cyan-300",pink:"bg-pink-100 text-pink-700 dark:bg-pink-950 dark:text-pink-300",rose:"bg-rose-100 text-rose-700 dark:bg-rose-950 dark:text-rose-300",teal:"bg-teal-100 text-teal-700 dark:bg-teal-950 dark:text-teal-300"},T=e=>R[e]||R.gray,A=({pluginsList:e,isLoading:l,onDeleteClick:s,accessToken:i,isAdmin:o,onPluginClick:n})=>{let[d,c]=(0,r.useState)([{id:"created_at",desc:!0}]),u=[{header:"Skill Name",accessorKey:"name",cell:({row:e})=>{let r=e.original,a=r.name||"";return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(j.TooltipProvider,{children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:()=>n(r.id),className:"font-mono text-blue-500 bg-blue-50 hover:bg-blue-100 dark:bg-blue-950/30 dark:hover:bg-blue-950/60 text-xs font-normal px-2 py-0.5 text-left overflow-hidden truncate min-w-[150px] rounded",children:a})}),(0,t.jsx)(j.TooltipContent,{children:a})]})}),(0,t.jsx)(j.TooltipProvider,{children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:e=>{var t;e.stopPropagation(),t=r.id,navigator.clipboard.writeText(t),S.default.success("Copied to clipboard!")},className:"cursor-pointer text-muted-foreground hover:text-primary","aria-label":"Copy Plugin ID",children:(0,t.jsx)(C.Copy,{className:"h-3 w-3"})})}),(0,t.jsx)(j.TooltipContent,{children:"Copy Plugin ID"})]})})]})}},{header:"Version",accessorKey:"version",cell:({row:e})=>(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e.original.version||"N/A"})},{header:"Description",accessorKey:"description",cell:({row:e})=>{let r=e.original.description||"No description";return(0,t.jsx)(j.TooltipProvider,{children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{className:"text-xs text-muted-foreground block max-w-[300px] truncate",children:r})}),(0,t.jsx)(j.TooltipContent,{children:r})]})})}},{header:"Category",accessorKey:"category",cell:({row:e})=>{let r=e.original.category;if(!r)return(0,t.jsx)(b.Badge,{className:(0,v.cn)("text-xs font-normal",T("gray")),children:"Uncategorized"});let a=(0,m.getCategoryBadgeColor)(r);return(0,t.jsx)(b.Badge,{className:(0,v.cn)("text-xs font-normal",T(a)),children:r})}},{header:"Public",accessorKey:"enabled",cell:({row:e})=>{let r=e.original;return(0,t.jsx)(b.Badge,{className:(0,v.cn)("text-xs font-normal",T(r.enabled?"green":"gray")),children:r.enabled?"Yes":"No"})}},{header:"Created At",accessorKey:"created_at",cell:({row:e})=>{var r;let a=e.original;return(0,t.jsx)(j.TooltipProvider,{children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{className:"text-xs",children:(r=a.created_at)?new Date(r).toLocaleString():"-"})}),(0,t.jsx)(j.TooltipContent,{children:a.created_at})]})})}},...o?[{header:"Actions",id:"actions",enableSorting:!1,cell:({row:e})=>{let r=e.original;return(0,t.jsx)("div",{className:"flex items-center gap-1",children:(0,t.jsx)(j.TooltipProvider,{children:(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(a.Button,{variant:"ghost",size:"icon",className:"h-7 w-7 text-destructive hover:text-destructive hover:bg-destructive/10",onClick:e=>{e.stopPropagation(),s(r.name,r.name)},"aria-label":"Delete skill",children:(0,t.jsx)(D.Trash2,{className:"h-3.5 w-3.5"})})}),(0,t.jsx)(j.TooltipContent,{children:"Delete skill"})]})})})}}]:[]],p=(0,f.useReactTable)({data:e,columns:u,state:{sorting:d},onSortingChange:c,getCoreRowModel:(0,h.getCoreRowModel)(),getSortedRowModel:(0,h.getSortedRowModel)(),enableSorting:!0});return(0,t.jsx)("div",{className:"rounded-lg custom-border relative",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)(y.Table,{className:"[&_td]:py-0.5 [&_th]:py-1",children:[(0,t.jsx)(y.TableHeader,{children:p.getHeaderGroups().map(e=>(0,t.jsx)(y.TableRow,{children:e.headers.map(e=>(0,t.jsx)(y.TableHead,{className:`py-1 h-8 ${"actions"===e.id?"sticky right-0 bg-background shadow-[-4px_0_8px_-6px_rgba(0,0,0,0.1)]":""}`,onClick:e.column.getCanSort()?e.column.getToggleSortingHandler():void 0,children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("div",{className:"flex items-center",children:e.isPlaceholder?null:(0,f.flexRender)(e.column.columnDef.header,e.getContext())}),e.column.getCanSort()&&(0,t.jsx)("div",{className:"w-4",children:e.column.getIsSorted()?({asc:(0,t.jsx)(w.ChevronUp,{className:"h-4 w-4 text-primary"}),desc:(0,t.jsx)(k.ChevronDown,{className:"h-4 w-4 text-primary"})})[e.column.getIsSorted()]:(0,t.jsx)(N.ArrowUpDown,{className:"h-4 w-4 text-muted-foreground"})})]})},e.id))},e.id))}),(0,t.jsx)(y.TableBody,{children:l?(0,t.jsx)(y.TableRow,{children:(0,t.jsx)(y.TableCell,{colSpan:u.length,className:"h-8 text-center",children:(0,t.jsx)("div",{className:"text-center text-muted-foreground",children:(0,t.jsx)("p",{children:"Loading..."})})})}):e&&e.length>0?p.getRowModel().rows.map(e=>(0,t.jsx)(y.TableRow,{className:"h-8 cursor-pointer hover:bg-muted",onClick:()=>n(e.original.id),children:e.getVisibleCells().map(e=>(0,t.jsx)(y.TableCell,{className:`py-0.5 max-h-8 overflow-hidden text-ellipsis whitespace-nowrap ${"actions"===e.column.id?"sticky right-0 bg-background shadow-[-4px_0_8px_-6px_rgba(0,0,0,0.1)]":""}`,children:(0,f.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,t.jsx)(y.TableRow,{children:(0,t.jsx)(y.TableCell,{colSpan:u.length,className:"h-8 text-center",children:(0,t.jsx)("div",{className:"text-center text-muted-foreground",children:(0,t.jsx)("p",{children:"No skills found. Add one to get started."})})})})})]})})})};var P=e.i(652272),I=e.i(708347);e.s(["default",0,({accessToken:e,userRole:i})=>{let[o,n]=(0,r.useState)([]),[d,c]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1),[f,h]=(0,r.useState)(null),[y,b]=(0,r.useState)(null),j=!!i&&(0,I.isAdminRole)(i),v=async()=>{if(e){p(!0);try{let t=await (0,s.getClaudeCodePluginsList)(e,!1);n(t.plugins)}catch(e){console.error("Error fetching skills:",e)}finally{p(!1)}}};(0,r.useEffect)(()=>{v()},[e]);let N=async()=>{if(f&&e){g(!0);try{await (0,s.deleteClaudeCodePlugin)(e,f.name),S.default.success(`Skill "${f.displayName}" deleted successfully`),v()}catch(e){console.error("Error deleting skill:",e),S.default.error("Failed to delete skill")}finally{g(!1),h(null)}}};return(0,t.jsxs)("div",{className:"w-full mx-auto flex-auto overflow-y-auto m-8 p-2",children:[y?(0,t.jsx)(P.default,{skill:y,onBack:()=>b(null),isAdmin:j,accessToken:e,onPublishClick:v}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2 mb-4",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold",children:"Skills"}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Register Claude Code skills. Published skills appear in the Skill Hub for all users and are served via"," ",(0,t.jsx)("code",{className:"bg-muted px-1 rounded",children:"/claude-code/marketplace.json"}),"."]}),(0,t.jsx)("div",{className:"mt-2 flex gap-2",children:(0,t.jsx)(a.Button,{onClick:()=>c(!0),disabled:!e||!j,children:"+ Add Skill"})})]}),(0,t.jsx)(A,{pluginsList:o,isLoading:u,onDeleteClick:(e,t)=>{h({name:e,displayName:t})},accessToken:e,isAdmin:j,onPluginClick:e=>{let t=o.find(t=>t.id===e);t&&b(t)}})]}),(0,t.jsx)(x,{visible:d,onClose:()=>c(!1),accessToken:e,onSuccess:v}),(0,t.jsx)(l.AlertDialog,{open:null!==f,onOpenChange:e=>e?void 0:h(null),children:(0,t.jsxs)(l.AlertDialogContent,{children:[(0,t.jsxs)(l.AlertDialogHeader,{children:[(0,t.jsx)(l.AlertDialogTitle,{children:"Delete Skill"}),(0,t.jsxs)(l.AlertDialogDescription,{children:["Are you sure you want to delete skill:"," ",(0,t.jsx)("strong",{children:f?.displayName}),"? This action cannot be undone."]})]}),(0,t.jsxs)(l.AlertDialogFooter,{children:[(0,t.jsx)(l.AlertDialogCancel,{disabled:m,children:"Cancel"}),(0,t.jsx)(l.AlertDialogAction,{disabled:m,onClick:e=>{e.preventDefault(),N()},className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:m?"Deleting…":"Delete"})]})]})})]})}],704308)},974992,e=>{"use strict";var t=e.i(843476),r=e.i(704308),a=e.i(135214);e.s(["default",0,()=>{let{accessToken:e,userRole:l}=(0,a.default)();return(0,t.jsx)(r.default,{accessToken:e,userRole:l})}])}]); \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/chunks/00a18915a5529220.js b/ui/litellm-dashboard/out/_next/static/chunks/00a18915a5529220.js new file mode 100644 index 00000000000..448c9d2060d --- /dev/null +++ b/ui/litellm-dashboard/out/_next/static/chunks/00a18915a5529220.js @@ -0,0 +1 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,304911,e=>{"use strict";var t=e.i(843476),a=e.i(487486);function s({userId:e}){return"default_user_id"===e?(0,t.jsx)(a.Badge,{variant:"default",children:"Default Proxy Admin"}):(0,t.jsx)("span",{children:e})}e.s(["default",()=>s])},11751,e=>{"use strict";function t(e){return""===e?null:e}e.s(["mapEmptyStringToNull",()=>t])},252754,e=>{"use strict";let t=(0,e.i(475254).default)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);e.s(["Wallet",()=>t],252754)},784647,505022,721929,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(519455),l=e.i(746798),r=e.i(871689),i=e.i(87316),n=e.i(643531),d=e.i(503116),o=e.i(174886),c=e.i(263488),m=e.i(107233),u=e.i(790092),x=e.i(98919),p=e.i(727612),g=e.i(284614),h=e.i(252754),j=e.i(39312),_=e.i(975157),b=e.i(304911);let f=({value:e,label:s,truncate:r})=>{let[i,d]=(0,a.useState)(!1),c=async()=>{try{await navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),1500)}catch(e){}};return(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:(0,_.cn)("font-semibold",r&&"block max-w-[160px] truncate"),children:e}),(0,t.jsx)(l.TooltipProvider,{children:(0,t.jsxs)(l.Tooltip,{open:i||void 0,children:[(0,t.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:c,className:"text-muted-foreground hover:text-foreground","aria-label":`Copy ${s}`,children:i?(0,t.jsx)(n.Check,{className:"h-3 w-3 text-emerald-500"}):(0,t.jsx)(o.Copy,{className:"h-3 w-3"})})}),(0,t.jsx)(l.TooltipContent,{children:i?"Copied!":`Copy ${s}`})]})})]})};function y({label:e,value:a,icon:s,truncate:l=!1,copyable:r=!1,defaultUserIdCheck:i=!1}){let n=!a,d=i&&"default_user_id"===a,o=n?"-":a,c=d?(0,t.jsx)(b.default,{userId:a}):!r||n||d?(0,t.jsx)("span",{className:(0,_.cn)("font-semibold",l&&"block max-w-[160px] truncate"),children:o}):(0,t.jsx)(f,{value:o,label:e,truncate:l});return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 text-muted-foreground",children:[s&&(0,t.jsx)("span",{className:"text-xs",children:s}),(0,t.jsx)("span",{className:"text-xs uppercase tracking-wider",children:e})]}),(0,t.jsx)("div",{children:c})]})}let v=({text:e,label:s,copyTooltip:r})=>{let[i,d]=(0,a.useState)(!1),c=async()=>{try{await navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),1500)}catch(e){}};return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{children:s}),(0,t.jsx)(l.TooltipProvider,{children:(0,t.jsxs)(l.Tooltip,{open:i||void 0,children:[(0,t.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:c,className:"text-muted-foreground hover:text-foreground","aria-label":r,children:i?(0,t.jsx)(n.Check,{className:"h-3 w-3 text-emerald-500"}):(0,t.jsx)(o.Copy,{className:"h-3 w-3"})})}),(0,t.jsx)(l.TooltipContent,{children:i?"Copied!":r})]})})]})};function N({data:e,onBack:a,onCreateNew:n,onRegenerate:o,onDelete:_,onResetSpend:b,canModifyKey:f=!0,backButtonText:N="Back to Keys",regenerateDisabled:k=!1,regenerateTooltip:w}){return(0,t.jsxs)("div",{children:[n&&(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsxs)(s.Button,{onClick:n,children:[(0,t.jsx)(m.Plus,{className:"h-4 w-4"}),"Create New Key"]})}),(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsxs)(s.Button,{variant:"ghost",onClick:a,children:[(0,t.jsx)(r.ArrowLeft,{className:"h-4 w-4"}),N]})}),(0,t.jsxs)("div",{className:"flex justify-between items-start mb-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-xl font-semibold m-0",children:(0,t.jsx)(v,{text:e.keyName,label:e.keyName,copyTooltip:"Copy Key Alias"})}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:(0,t.jsx)(v,{text:e.keyId,label:`Key ID: ${e.keyId}`,copyTooltip:"Copy Key ID"})})]}),f&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l.TooltipProvider,{children:(0,t.jsxs)(l.Tooltip,{children:[(0,t.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{children:(0,t.jsxs)(s.Button,{variant:"outline",onClick:o,disabled:k,children:[(0,t.jsx)(u.RefreshCcw,{className:"h-4 w-4"}),"Regenerate Key"]})})}),w&&(0,t.jsx)(l.TooltipContent,{children:w})]})}),b&&(0,t.jsxs)(s.Button,{variant:"outline",className:"text-destructive border-destructive/30 hover:bg-destructive/10",onClick:b,children:[(0,t.jsx)(h.Wallet,{className:"h-4 w-4"}),"Reset Spend"]}),(0,t.jsxs)(s.Button,{variant:"outline",className:"text-destructive border-destructive/30 hover:bg-destructive/10",onClick:_,children:[(0,t.jsx)(p.Trash2,{className:"h-4 w-4"}),"Delete Key"]})]})]}),(0,t.jsxs)("div",{className:"flex items-stretch gap-10 mb-10",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(y,{label:"User Email",value:e.userEmail,icon:(0,t.jsx)(c.Mail,{className:"h-3 w-3"})}),(0,t.jsx)(y,{label:"User ID",value:e.userId,icon:(0,t.jsx)(g.User,{className:"h-3 w-3"}),truncate:!0,copyable:!0,defaultUserIdCheck:!0})]}),(0,t.jsx)("div",{className:"w-px bg-border"}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(y,{label:"Created At",value:e.createdAt,icon:(0,t.jsx)(i.Calendar,{className:"h-3 w-3"})}),(0,t.jsx)(y,{label:"Created By",value:e.createdBy,icon:(0,t.jsx)(x.Shield,{className:"h-3 w-3"}),truncate:!0,copyable:!0,defaultUserIdCheck:!0})]}),(0,t.jsx)("div",{className:"w-px bg-border"}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(y,{label:"Last Updated",value:e.lastUpdated,icon:(0,t.jsx)(d.Clock,{className:"h-3 w-3"})}),(0,t.jsx)(y,{label:"Last Active",value:e.lastActive,icon:(0,t.jsx)(j.Zap,{className:"h-3 w-3"})})]})]})]})}e.s(["KeyInfoHeader",()=>N],784647);var k=e.i(487486),w=e.i(16715);e.s(["default",0,({autoRotate:e=!1,rotationInterval:a,lastRotationAt:s,keyRotationAt:l,nextRotationAt:r,variant:i="card",className:n=""})=>{let o=e=>{let t=new Date(e),a=t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),s=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${a} at ${s}`},c=(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(w.RefreshCw,{className:"h-4 w-4 text-primary"}),(0,t.jsx)("span",{className:"font-semibold text-foreground",children:"Auto-Rotation"}),(0,t.jsx)(k.Badge,{className:(0,_.cn)(e?"bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300":"bg-muted text-muted-foreground"),children:e?"Enabled":"Disabled"}),e&&a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"•"}),(0,t.jsxs)("span",{className:"text-sm text-muted-foreground",children:["Every ",a]})]})]})}),(e||s||l||r)&&(0,t.jsxs)("div",{className:"space-y-3",children:[s&&(0,t.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-muted border border-border rounded-md",children:[(0,t.jsx)(d.Clock,{className:"w-4 h-4 text-muted-foreground"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"font-medium text-foreground",children:"Last Rotation"}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:o(s)})]})]}),(l||r)&&(0,t.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-muted border border-border rounded-md",children:[(0,t.jsx)(d.Clock,{className:"w-4 h-4 text-muted-foreground"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"font-medium text-foreground",children:"Next Scheduled Rotation"}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:o(r||l||"")})]})]}),e&&!s&&!l&&!r&&(0,t.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-muted border border-border rounded-md",children:[(0,t.jsx)(d.Clock,{className:"w-4 h-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"No rotation history available"})]})]}),!e&&!s&&!l&&!r&&(0,t.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-muted border border-border rounded-md",children:[(0,t.jsx)(w.RefreshCw,{className:"w-4 h-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Auto-rotation is not enabled for this key"})]})]});return"card"===i?(0,t.jsxs)("div",{className:`bg-background border border-border rounded-lg p-6 ${n}`,children:[(0,t.jsx)("div",{className:"flex items-center gap-2 mb-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-foreground",children:"Auto-Rotation"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Automatic key rotation settings and status for this key"})]})}),c]}):(0,t.jsxs)("div",{className:`${n}`,children:[(0,t.jsx)("p",{className:"font-medium text-foreground mb-3",children:"Auto-Rotation"}),c]})}],505022);let T=["logging"];e.s(["extractLoggingSettings",0,e=>e&&"object"==typeof e&&Array.isArray(e.logging)?e.logging:[],"formatMetadataForDisplay",0,(e,t=2)=>JSON.stringify(e&&"object"==typeof e?Object.fromEntries(Object.entries(e).filter(([e])=>!T.includes(e))):{},null,t),"stripTagsFromMetadata",0,e=>{if(!e||"object"!=typeof e)return e;let{tags:t,...a}=e;return a}],721929)},643449,e=>{"use strict";var t=e.i(843476),a=e.i(487486),s=e.i(223622),l=e.i(239616),r=e.i(557662),i=e.i(975157);e.s(["default",0,function({loggingConfigs:e=[],disabledCallbacks:n=[],variant:d="card",className:o=""}){let c=(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(l.Settings,{className:"h-4 w-4 text-blue-600"}),(0,t.jsx)("span",{className:"font-semibold text-foreground",children:"Logging Integrations"}),(0,t.jsx)(a.Badge,{className:"bg-blue-100 text-blue-800 dark:bg-blue-950/40 dark:text-blue-300",children:e.length})]}),e.length>0?(0,t.jsx)("div",{className:"space-y-3",children:e.map((e,s)=>{var i;let n=(i=e.callback_name,Object.entries(r.callback_map).find(([,e])=>e===i)?.[0]||i),d=r.callbackInfo[n]?.logo;return(0,t.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-800",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[d?(0,t.jsx)("img",{src:d,alt:n,className:"w-5 h-5 object-contain"}):(0,t.jsx)(l.Settings,{className:"h-5 w-5 text-muted-foreground"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block font-medium text-blue-800 dark:text-blue-300",children:n}),(0,t.jsxs)("span",{className:"block text-xs text-blue-600 dark:text-blue-400",children:[Object.keys(e.callback_vars).length," parameters configured"]})]})]}),(0,t.jsx)(a.Badge,{className:(e=>{switch(e){case"success":return"bg-emerald-100 text-emerald-800 dark:bg-emerald-950/40 dark:text-emerald-300";case"failure":return"bg-red-100 text-red-800 dark:bg-red-950/40 dark:text-red-300";case"success_and_failure":return"bg-blue-100 text-blue-800 dark:bg-blue-950/40 dark:text-blue-300";default:return""}})(e.callback_type),children:(e=>{switch(e){case"success":return"Success Only";case"failure":return"Failure Only";case"success_and_failure":return"Success & Failure";default:return e}})(e.callback_type)})]},s)})}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-muted border border-border",children:[(0,t.jsx)(l.Settings,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:"No logging integrations configured"})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.Ban,{className:"h-4 w-4 text-red-600"}),(0,t.jsx)("span",{className:"font-semibold text-foreground",children:"Disabled Callbacks"}),(0,t.jsx)(a.Badge,{variant:"destructive",children:n.length})]}),n.length>0?(0,t.jsx)("div",{className:"space-y-3",children:n.map((e,l)=>{let i=r.reverse_callback_map[e]||e,n=r.callbackInfo[i]?.logo;return(0,t.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg bg-red-50 dark:bg-red-950/30 border border-red-200 dark:border-red-800",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[n?(0,t.jsx)("img",{src:n,alt:i,className:"w-5 h-5 object-contain"}):(0,t.jsx)(s.Ban,{className:"h-5 w-5 text-muted-foreground"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block font-medium text-red-800 dark:text-red-300",children:i}),(0,t.jsx)("span",{className:"block text-xs text-red-600 dark:text-red-400",children:"Disabled for this key"})]})]}),(0,t.jsx)(a.Badge,{variant:"destructive",children:"Disabled"})]},l)})}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-muted border border-border",children:[(0,t.jsx)(s.Ban,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:"No callbacks disabled"})]})]})]});return"card"===d?(0,t.jsxs)("div",{className:(0,i.cn)("bg-background border border-border rounded-lg p-6",o),children:[(0,t.jsx)("div",{className:"flex items-center gap-2 mb-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block font-semibold text-foreground",children:"Logging Settings"}),(0,t.jsx)("span",{className:"block text-xs text-muted-foreground",children:"Active logging integrations and disabled callbacks for this key"})]})}),c]}):(0,t.jsxs)("div",{className:o,children:[(0,t.jsx)("span",{className:"block font-medium text-foreground mb-3",children:"Logging Settings"}),c]})}])},65932,272753,e=>{"use strict";var t=e.i(954616),a=e.i(912598),s=e.i(764205),l=e.i(135214),r=e.i(207082);let i=async(e,t)=>{let a=(0,s.getProxyBaseUrl)(),l=`${a?`${a}/key/${t}/reset_spend`:`/key/${t}/reset_spend`}`,r=await fetch(l,{method:"POST",headers:{[(0,s.getGlobalLitellmHeaderName)()]:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify({reset_to:0})});if(!r.ok){let e=await r.json(),t=(0,s.deriveErrorMessage)(e);throw(0,s.handleError)(t),Error(t)}return r.json()};e.s(["useResetKeySpend",0,()=>{let{accessToken:e}=(0,l.default)(),s=(0,a.useQueryClient)();return(0,t.useMutation)({mutationFn:async t=>{if(!e)throw Error("Access token is required");return i(e,t)},onSuccess:()=>{s.invalidateQueries({queryKey:r.keyKeys.all})}})}],65932);var n=e.i(843476),d=e.i(519455),o=e.i(776639),c=e.i(793479),m=e.i(110204),u=e.i(746798),x=e.i(643531),p=e.i(174886),g=e.i(878894),h=e.i(16715),j=e.i(618348);let _=Symbol.for("constructDateFrom");function b(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function f(e,t,a){var s;let l,{years:r=0,months:i=0,weeks:n=0,days:d=0,hours:o=0,minutes:c=0,seconds:m=0}=t,u=b(a?.in||e,e),x=i||r?function(e,t,a){let s=b(e,e);if(isNaN(t))return b(e,NaN);if(!t)return s;let l=s.getDate(),r=b(e,s.getTime());return(r.setMonth(s.getMonth()+t+1,0),l>=r.getDate())?r:(s.setFullYear(r.getFullYear(),r.getMonth(),l),s)}(u,i+12*r):u,p=d||n?(s=d+7*n,l=b(x,x),isNaN(s)?b(x,NaN):(s&&l.setDate(l.getDate()+s),l)):x;return b(a?.in||e,+p+1e3*(m+60*(c+60*o)))}var y=e.i(271645),v=e.i(653145),N=e.i(237016),k=e.i(727749);function w({selectedToken:e,visible:t,onClose:a,onKeyUpdate:r}){let{accessToken:i}=(0,l.default)(),_=(0,v.useForm)({defaultValues:{key_alias:"",max_budget:null,tpm_limit:null,rpm_limit:null,duration:"",grace_period:""}}),[b,w]=(0,y.useState)(null),[T,S]=(0,y.useState)(null),[C,I]=(0,y.useState)(!1),[A,F]=(0,y.useState)(!1),D=(0,v.useWatch)({control:_.control,name:"duration"});(0,y.useEffect)(()=>{t&&e&&i&&_.reset({key_alias:e.key_alias??"",max_budget:e.max_budget??null,tpm_limit:e.tpm_limit??null,rpm_limit:e.rpm_limit??null,duration:e.duration||"",grace_period:""})},[t,e,_,i]);let L=e=>{if(!e)return null;try{let t,a=parseInt(e);if(Number.isNaN(a))throw Error("Invalid duration format");let s=new Date;if(e.endsWith("mo"))t=f(s,{months:a});else if(e.endsWith("s"))t=f(s,{seconds:a});else if(e.endsWith("m"))t=f(s,{minutes:a});else if(e.endsWith("h"))t=f(s,{hours:a});else if(e.endsWith("d"))t=f(s,{days:a});else if(e.endsWith("w"))t=f(s,{weeks:a});else throw Error("Invalid duration format");return t.toLocaleString()}catch(e){return null}};(0,y.useEffect)(()=>{D?S(L(D)):S(null)},[D]);let M=_.handleSubmit(async t=>{if(e&&i){I(!0);try{let a=await (0,s.regenerateKeyCall)(i,e.token||e.token_id,t);w(a.key),k.default.success("Virtual Key regenerated successfully");let l={...a,token:a.token||a.key_id||e.token,key_name:a.key,max_budget:t.max_budget,tpm_limit:t.tpm_limit,rpm_limit:t.rpm_limit,expires:t.duration?L(t.duration)??e.expires:e.expires};r&&r(l),I(!1)}catch(e){console.error("Error regenerating key:",e),k.default.fromBackend(e),I(!1)}}}),P=()=>{w(null),I(!1),F(!1),_.reset({key_alias:"",max_budget:null,tpm_limit:null,rpm_limit:null,duration:"",grace_period:""}),a()};return(0,n.jsx)(o.Dialog,{open:t,onOpenChange:e=>e?void 0:P(),children:(0,n.jsxs)(o.DialogContent,{className:"max-w-[520px]",onInteractOutside:e=>e.preventDefault(),children:[(0,n.jsx)(o.DialogHeader,{children:(0,n.jsx)(o.DialogTitle,{children:"Regenerate Virtual Key"})}),b?(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-start p-3 rounded-md bg-amber-50 border border-amber-200 text-amber-800 dark:bg-amber-950/30 dark:border-amber-900 dark:text-amber-200",children:[(0,n.jsx)(g.AlertTriangle,{className:"h-4 w-4 mt-0.5 shrink-0"}),(0,n.jsx)("span",{className:"text-sm",children:"Save it now, you will not see it again"})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,n.jsx)("span",{className:"text-muted-foreground text-xs",children:"Key Alias"}),(0,n.jsx)("span",{children:e?.key_alias||"No alias set"})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)("span",{className:"text-muted-foreground text-xs",children:"Virtual Key"}),(0,n.jsx)("div",{className:"bg-muted border border-border rounded-md px-4 py-3.5 font-mono text-base break-all",children:b})]})]}):(0,n.jsx)(v.FormProvider,{..._,children:(0,n.jsxs)("form",{onSubmit:M,className:"mt-1 space-y-4",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(m.Label,{htmlFor:"key_alias",children:"Key Alias"}),(0,n.jsx)(c.Input,{id:"key_alias",disabled:!0,..._.register("key_alias")})]}),(0,n.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(m.Label,{htmlFor:"max_budget",children:"Max Budget (USD)"}),(0,n.jsx)(v.Controller,{control:_.control,name:"max_budget",render:({field:e})=>(0,n.jsx)(c.Input,{id:"max_budget",type:"number",step:.01,value:e.value??"",onChange:t=>{let a=t.target.value;e.onChange(""===a?null:Number(a))}})})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(m.Label,{htmlFor:"tpm_limit",children:"TPM Limit"}),(0,n.jsx)(v.Controller,{control:_.control,name:"tpm_limit",render:({field:e})=>(0,n.jsx)(c.Input,{id:"tpm_limit",type:"number",value:e.value??"",onChange:t=>{let a=t.target.value;e.onChange(""===a?null:Number(a))}})})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(m.Label,{htmlFor:"rpm_limit",children:"RPM Limit"}),(0,n.jsx)(v.Controller,{control:_.control,name:"rpm_limit",render:({field:e})=>(0,n.jsx)(c.Input,{id:"rpm_limit",type:"number",value:e.value??"",onChange:t=>{let a=t.target.value;e.onChange(""===a?null:Number(a))}})})]})]}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(m.Label,{htmlFor:"duration",children:"Expire Key"}),(0,n.jsx)(c.Input,{id:"duration",placeholder:"e.g. 30s, 30h, 30d",..._.register("duration")}),(0,n.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,n.jsxs)("span",{className:"text-muted-foreground text-xs",children:["Current expiry:"," ",e?.expires?new Date(e.expires).toLocaleString():"Never"]}),T&&(0,n.jsxs)("span",{className:"text-emerald-600 text-xs",children:["New expiry: ",T]})]})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(m.Label,{htmlFor:"grace_period",children:"Grace Period"}),(0,n.jsx)(u.TooltipProvider,{children:(0,n.jsxs)(u.Tooltip,{children:[(0,n.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,n.jsx)(j.HelpCircle,{className:"h-3.5 w-3.5 text-muted-foreground"})}),(0,n.jsx)(u.TooltipContent,{children:"Keep the old key valid for this duration after rotation. Both keys work during this period for seamless cutover. Empty = immediate revoke."})]})})]}),(0,n.jsx)(c.Input,{id:"grace_period",placeholder:"e.g. 24h, 2d","aria-invalid":!!_.formState.errors.grace_period,..._.register("grace_period",{pattern:{value:/^(\d+(s|m|h|d|w|mo))?$/,message:"Must be a duration like 30s, 30m, 24h, 2d, 1w, or 1mo"}})}),_.formState.errors.grace_period?(0,n.jsx)("p",{className:"text-sm text-destructive",children:_.formState.errors.grace_period.message}):(0,n.jsx)("span",{className:"text-muted-foreground text-xs",children:"Recommended: 24h to 72h for production keys"})]})]})]})}),(0,n.jsx)(o.DialogFooter,{children:b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Button,{variant:"outline",onClick:P,children:"Close"}),(0,n.jsx)(N.CopyToClipboard,{text:b,onCopy:()=>{F(!0)},children:(0,n.jsxs)(d.Button,{children:[A?(0,n.jsx)(x.Check,{className:"h-4 w-4"}):(0,n.jsx)(p.Copy,{className:"h-4 w-4"}),A?"Copied":"Copy Key"]})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Button,{variant:"outline",onClick:P,children:"Cancel"}),(0,n.jsxs)(d.Button,{onClick:M,disabled:C,children:[(0,n.jsx)(h.RefreshCw,{className:C?"h-4 w-4 animate-spin":"h-4 w-4"}),"Regenerate"]})]})})]})})}e.s(["RegenerateKeyModal",()=>w],272753)},183588,e=>{"use strict";var t=e.i(843476),a=e.i(266484);e.s(["default",0,({value:e,onChange:s,disabledCallbacks:l=[],onDisabledCallbacksChange:r})=>(0,t.jsx)(a.default,{value:e,onChange:s,disabledCallbacks:l,onDisabledCallbacksChange:r})])},20147,e=>{"use strict";var t=e.i(843476),a=e.i(135214),s=e.i(510674),l=e.i(292639),r=e.i(214541),i=e.i(500330),n=e.i(11751),d=e.i(871689),o=e.i(389083),c=e.i(994388),m=e.i(304967),u=e.i(350967),x=e.i(197647),p=e.i(653824),g=e.i(881073),h=e.i(404206),j=e.i(723731),_=e.i(599724),b=e.i(629569),f=e.i(808613),y=e.i(212931),v=e.i(262218),N=e.i(784647),k=e.i(271645),w=e.i(708347),T=e.i(557662),S=e.i(505022),C=e.i(127952),I=e.i(721929),A=e.i(643449),F=e.i(727749),D=e.i(764205),L=e.i(65932),M=e.i(384767),P=e.i(272753),R=e.i(190702),B=e.i(891547),E=e.i(109799),K=e.i(921511),U=e.i(952571),$=e.i(779241),O=e.i(311451),V=e.i(199133),W=e.i(790848),z=e.i(592968),G=e.i(552130),q=e.i(9314),J=e.i(392110),H=e.i(844565),Y=e.i(939510),Q=e.i(363256),Z=e.i(319312),X=e.i(75921),ee=e.i(390605),et=e.i(702597),ea=e.i(435451),es=e.i(183588),el=e.i(916940);function er({keyData:e,onCancel:a,onSubmit:r,teams:i,accessToken:n,userID:d,userRole:o,premiumUser:m=!1}){let u=m||null!=o&&w.rolesWithWriteAccess.includes(o),[x]=f.Form.useForm(),[p,g]=(0,k.useState)([]),[h,j]=(0,k.useState)({}),_=i?.find(t=>t.team_id===e.team_id),[b,y]=(0,k.useState)([]),[v,N]=(0,k.useState)(Array.isArray(e.metadata?.litellm_disabled_callbacks)?(0,T.mapInternalToDisplayNames)(e.metadata.litellm_disabled_callbacks):[]),[S,C]=(0,k.useState)(e.organization_id||null),[A,L]=(0,k.useState)(e.auto_rotate||!1),[M,P]=(0,k.useState)(e.rotation_interval||""),[R,er]=(0,k.useState)(!e.expires),[ei,en]=(0,k.useState)(!1),[ed,eo]=(0,k.useState)(Array.isArray(e.budget_limits)?e.budget_limits:[]),{data:ec,isLoading:em}=(0,E.useOrganizations)(),{data:eu}=(0,s.useProjects)(),{data:ex}=(0,l.useUISettings)(),ep=!!ex?.values?.enable_projects_ui,eg=!!e.project_id,eh=(()=>{if(!e.project_id)return null;let t=eu?.find(t=>t.project_id===e.project_id);return t?.project_alias?`${t.project_alias} (${e.project_id})`:e.project_id})();(0,k.useEffect)(()=>{let t=async()=>{if(d&&o&&n)try{if(null===e.team_id){let e=(await (0,D.modelAvailableCall)(n,d,o)).data.map(e=>e.id);y(e)}else if(_?.team_id){let e=await (0,et.fetchTeamModels)(d,o,n,_.team_id);y(Array.from(new Set([..._.models,...e])))}}catch(e){console.error("Error fetching models:",e)}};(async()=>{if(n)try{let e=await (0,D.getPromptsList)(n);g(e.prompts.map(e=>e.prompt_id))}catch(e){console.error("Failed to fetch prompts:",e)}})(),t()},[d,o,n,_,e.team_id]),(0,k.useEffect)(()=>{x.setFieldValue("disabled_callbacks",v)},[x,v]);let ej=e=>e&&({"24h":"daily","7d":"weekly","30d":"monthly"})[e]||null,e_={...e,token:e.token||e.token_id,budget_duration:ej(e.budget_duration),metadata:(0,I.formatMetadataForDisplay)((0,I.stripTagsFromMetadata)(e.metadata)),guardrails:e.metadata?.guardrails,disable_global_guardrails:e.metadata?.disable_global_guardrails||!1,prompts:e.metadata?.prompts,tags:e.metadata?.tags,vector_stores:e.object_permission?.vector_stores||[],mcp_servers_and_groups:{servers:e.object_permission?.mcp_servers||[],accessGroups:e.object_permission?.mcp_access_groups||[]},mcp_tool_permissions:e.object_permission?.mcp_tool_permissions||{},agents_and_groups:{agents:e.object_permission?.agents||[],accessGroups:e.object_permission?.agent_access_groups||[]},logging_settings:(0,I.extractLoggingSettings)(e.metadata),disabled_callbacks:Array.isArray(e.metadata?.litellm_disabled_callbacks)?(0,T.mapInternalToDisplayNames)(e.metadata.litellm_disabled_callbacks):[],access_group_ids:e.access_group_ids||[],auto_rotate:e.auto_rotate||!1,...e.rotation_interval&&{rotation_interval:e.rotation_interval},allowed_routes:Array.isArray(e.allowed_routes)&&e.allowed_routes.length>0?e.allowed_routes.join(", "):""};(0,k.useEffect)(()=>{x.setFieldsValue({...e,token:e.token||e.token_id,budget_duration:ej(e.budget_duration),metadata:(0,I.formatMetadataForDisplay)((0,I.stripTagsFromMetadata)(e.metadata)),guardrails:e.metadata?.guardrails,disable_global_guardrails:e.metadata?.disable_global_guardrails||!1,prompts:e.metadata?.prompts,tags:e.metadata?.tags,vector_stores:e.object_permission?.vector_stores||[],mcp_servers_and_groups:{servers:e.object_permission?.mcp_servers||[],accessGroups:e.object_permission?.mcp_access_groups||[]},mcp_tool_permissions:e.object_permission?.mcp_tool_permissions||{},logging_settings:(0,I.extractLoggingSettings)(e.metadata),disabled_callbacks:Array.isArray(e.metadata?.litellm_disabled_callbacks)?(0,T.mapInternalToDisplayNames)(e.metadata.litellm_disabled_callbacks):[],access_group_ids:e.access_group_ids||[],auto_rotate:e.auto_rotate||!1,...e.rotation_interval&&{rotation_interval:e.rotation_interval},allowed_routes:Array.isArray(e.allowed_routes)&&e.allowed_routes.length>0?e.allowed_routes.join(", "):""})},[e,x]),(0,k.useEffect)(()=>{x.setFieldValue("auto_rotate",A)},[A,x]),(0,k.useEffect)(()=>{M&&x.setFieldValue("rotation_interval",M)},[M,x]),(0,k.useEffect)(()=>{(async()=>{if(n)try{let e=await (0,D.tagListCall)(n);j(e)}catch(e){F.default.fromBackend("Error fetching tags: "+e)}})()},[n]);let eb=async e=>{try{if(en(!0),"string"==typeof e.allowed_routes){let t=e.allowed_routes.trim();""===t?e.allowed_routes=[]:e.allowed_routes=t.split(",").map(e=>e.trim()).filter(e=>e.length>0)}R&&(e.duration=null);let t=ed.filter(e=>e.budget_duration&&null!==e.max_budget&&void 0!==e.max_budget);e.budget_limits=t.length>0?t:void 0,await r(e)}finally{en(!1)}};return(0,t.jsxs)(f.Form,{form:x,onFinish:eb,initialValues:e_,layout:"vertical",children:[(0,t.jsx)(f.Form.Item,{label:"Key Alias",name:"key_alias",children:(0,t.jsx)($.TextInput,{})}),(0,t.jsx)(f.Form.Item,{label:"Models",name:"models",children:(0,t.jsx)(f.Form.Item,{noStyle:!0,shouldUpdate:(e,t)=>e.allowed_routes!==t.allowed_routes||e.models!==t.models,children:({getFieldValue:e,setFieldValue:a})=>{let s=e("allowed_routes")||"",l="string"==typeof s&&""!==s.trim()?s.split(",").map(e=>e.trim()).filter(e=>e.length>0):[],r=l.includes("management_routes")||l.includes("info_routes"),i=e("models")||[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(V.Select,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},disabled:r,value:r?[]:i,onChange:e=>a("models",e),children:[b.length>0&&(0,t.jsx)(V.Select.Option,{value:"all-team-models",children:"All Team Models"}),b.map(e=>(0,t.jsx)(V.Select.Option,{value:e,children:e},e))]}),r&&(0,t.jsx)("div",{style:{fontSize:"11px",color:"#6b7280",marginTop:"2px"},children:"Models field is disabled for this key type"})]})}})}),(0,t.jsx)(f.Form.Item,{label:"Key Type",children:(0,t.jsx)(f.Form.Item,{noStyle:!0,shouldUpdate:(e,t)=>e.allowed_routes!==t.allowed_routes,children:({getFieldValue:e,setFieldValue:a})=>{var s;let l=e("allowed_routes")||"",r=(s="string"==typeof l&&""!==l.trim()?l.split(",").map(e=>e.trim()).filter(e=>e.length>0):[])&&0!==s.length?s.includes("llm_api_routes")?"llm_api":s.includes("management_routes")?"management":s.includes("info_routes")?"read_only":"default":"default";return(0,t.jsxs)(V.Select,{placeholder:"Select key type",style:{width:"100%"},optionLabelProp:"label",value:r,onChange:e=>{switch(e){case"default":a("allowed_routes","");break;case"llm_api":a("allowed_routes","llm_api_routes");break;case"management":a("allowed_routes","management_routes"),a("models",[])}},children:[(0,t.jsx)(V.Select.Option,{value:"default",label:"Default",children:(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[(0,t.jsx)("div",{style:{fontWeight:500},children:"Default"}),(0,t.jsx)("div",{style:{fontSize:"11px",color:"#6b7280",marginTop:"2px"},children:"Can call AI APIs + Management routes"})]})}),(0,t.jsx)(V.Select.Option,{value:"llm_api",label:"AI APIs",children:(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[(0,t.jsx)("div",{style:{fontWeight:500},children:"AI APIs"}),(0,t.jsx)("div",{style:{fontSize:"11px",color:"#6b7280",marginTop:"2px"},children:"Can call only AI API routes (chat/completions, embeddings, etc.)"})]})}),(0,t.jsx)(V.Select.Option,{value:"management",label:"Management",children:(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[(0,t.jsx)("div",{style:{fontWeight:500},children:"Management"}),(0,t.jsx)("div",{style:{fontSize:"11px",color:"#6b7280",marginTop:"2px"},children:"Can call only management routes (user/team/key management)"})]})})]})}})}),(0,t.jsx)(f.Form.Item,{label:(0,t.jsxs)("span",{children:["Allowed Routes"," ",(0,t.jsx)(z.Tooltip,{title:"List of allowed routes for the key (comma-separated). Can be specific routes (e.g., '/chat/completions') or route patterns (e.g., 'llm_api_routes', 'management_routes', '/keys/*'). Leave empty to allow all routes.",children:(0,t.jsx)(U.Info,{style:{marginLeft:"4px"}})})]}),name:"allowed_routes",children:(0,t.jsx)(O.Input,{placeholder:"Enter allowed routes (comma-separated). Special values: llm_api_routes, management_routes. Examples: llm_api_routes, /chat/completions, /keys/*. Leave empty to allow all routes"})}),(0,t.jsx)(f.Form.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,t.jsx)(ea.default,{step:.01,style:{width:"100%"},placeholder:"Enter a numerical value"})}),(0,t.jsx)(f.Form.Item,{label:"Reset Budget",name:"budget_duration",children:(0,t.jsxs)(V.Select,{placeholder:"n/a",children:[(0,t.jsx)(V.Select.Option,{value:"daily",children:"Daily"}),(0,t.jsx)(V.Select.Option,{value:"weekly",children:"Weekly"}),(0,t.jsx)(V.Select.Option,{value:"monthly",children:"Monthly"})]})}),(0,t.jsx)(f.Form.Item,{label:(0,t.jsxs)("span",{children:["Budget Windows"," ",(0,t.jsx)(z.Tooltip,{title:"Set multiple independent budget windows (e.g., hourly $10 AND monthly $200). Each window tracks spend separately and resets on its own schedule.",children:(0,t.jsx)(U.Info,{style:{marginLeft:"4px"}})})]}),children:(0,t.jsx)(Z.BudgetWindowsEditor,{value:ed,onChange:eo})}),(0,t.jsx)(f.Form.Item,{label:"TPM Limit",name:"tpm_limit",children:(0,t.jsx)(ea.default,{min:0})}),(0,t.jsx)(Y.default,{type:"tpm",name:"tpm_limit_type",showDetailedDescriptions:!1}),(0,t.jsx)(f.Form.Item,{label:"RPM Limit",name:"rpm_limit",children:(0,t.jsx)(ea.default,{min:0})}),(0,t.jsx)(Y.default,{type:"rpm",name:"rpm_limit_type",showDetailedDescriptions:!1}),(0,t.jsx)(f.Form.Item,{label:"Max Parallel Requests",name:"max_parallel_requests",children:(0,t.jsx)(ea.default,{min:0})}),(0,t.jsx)(f.Form.Item,{label:"Model TPM Limit",name:"model_tpm_limit",children:(0,t.jsx)(O.Input.TextArea,{rows:4,placeholder:'{"gpt-4": 100, "claude-v1": 200}'})}),(0,t.jsx)(f.Form.Item,{label:"Model RPM Limit",name:"model_rpm_limit",children:(0,t.jsx)(O.Input.TextArea,{rows:4,placeholder:'{"gpt-4": 100, "claude-v1": 200}'})}),(0,t.jsx)(f.Form.Item,{label:"Guardrails",name:"guardrails",children:n&&(0,t.jsx)(B.default,{onChange:e=>{x.setFieldValue("guardrails",e)},accessToken:n,disabled:!u})}),(0,t.jsx)(f.Form.Item,{label:(0,t.jsxs)("span",{children:["Disable Global Guardrails"," ",(0,t.jsx)(z.Tooltip,{title:"When enabled, this key will bypass any guardrails configured to run on every request (global guardrails)",children:(0,t.jsx)(U.Info,{style:{marginLeft:"4px"}})})]}),name:"disable_global_guardrails",valuePropName:"checked",children:(0,t.jsx)(W.Switch,{disabled:!u,checkedChildren:"Yes",unCheckedChildren:"No"})}),(0,t.jsx)(f.Form.Item,{label:(0,t.jsxs)("span",{children:["Policies"," ",(0,t.jsx)(z.Tooltip,{title:"Apply policies to this key to control guardrails and other settings",children:(0,t.jsx)(U.Info,{style:{marginLeft:"4px"}})})]}),name:"policies",children:n&&(0,t.jsx)(K.default,{onChange:e=>{x.setFieldValue("policies",e)},accessToken:n,disabled:!m})}),(0,t.jsx)(f.Form.Item,{label:"Tags",name:"tags",children:(0,t.jsx)(V.Select,{mode:"tags",style:{width:"100%"},placeholder:"Select or enter tags",options:Object.values(h).map(e=>({value:e.name,label:e.name,title:e.description||e.name}))})}),(0,t.jsx)(f.Form.Item,{label:"Prompts",name:"prompts",children:(0,t.jsx)(z.Tooltip,{title:m?"":"Setting prompts by key is a premium feature",placement:"top",children:(0,t.jsx)(V.Select,{mode:"tags",style:{width:"100%"},disabled:!m,placeholder:m?Array.isArray(e.metadata?.prompts)&&e.metadata.prompts.length>0?`Current: ${e.metadata.prompts.join(", ")}`:"Select or enter prompts":"Premium feature - Upgrade to set prompts by key",options:p.map(e=>({value:e,label:e}))})})}),(0,t.jsx)(f.Form.Item,{label:(0,t.jsxs)("span",{children:["Access Groups"," ",(0,t.jsx)(z.Tooltip,{title:"Assign access groups to this key. Access groups control which models, MCP servers, and agents this key can use",children:(0,t.jsx)(U.Info,{style:{marginLeft:"4px"}})})]}),name:"access_group_ids",children:(0,t.jsx)(q.default,{placeholder:"Select access groups (optional)"})}),(0,t.jsx)(f.Form.Item,{label:"Allowed Pass Through Routes",name:"allowed_passthrough_routes",children:(0,t.jsx)(z.Tooltip,{title:m?"":"Setting allowed pass through routes by key is a premium feature",placement:"top",children:(0,t.jsx)(H.default,{onChange:e=>x.setFieldValue("allowed_passthrough_routes",e),value:x.getFieldValue("allowed_passthrough_routes"),accessToken:n||"",placeholder:m?Array.isArray(e.metadata?.allowed_passthrough_routes)&&e.metadata.allowed_passthrough_routes.length>0?`Current: ${e.metadata.allowed_passthrough_routes.join(", ")}`:"Select or enter allowed pass through routes":"Premium feature - Upgrade to set allowed pass through routes by key",disabled:!m})})}),(0,t.jsx)(f.Form.Item,{label:"Vector Stores",name:"vector_stores",children:(0,t.jsx)(el.default,{onChange:e=>x.setFieldValue("vector_stores",e),value:x.getFieldValue("vector_stores"),accessToken:n||"",placeholder:"Select vector stores"})}),(0,t.jsx)(f.Form.Item,{label:"MCP Servers / Access Groups",name:"mcp_servers_and_groups",children:(0,t.jsx)(X.default,{onChange:e=>x.setFieldValue("mcp_servers_and_groups",e),value:x.getFieldValue("mcp_servers_and_groups"),accessToken:n||"",placeholder:"Select MCP servers or access groups (optional)"})}),(0,t.jsx)(f.Form.Item,{name:"mcp_tool_permissions",initialValue:{},hidden:!0,children:(0,t.jsx)(O.Input,{type:"hidden"})}),(0,t.jsx)(f.Form.Item,{noStyle:!0,shouldUpdate:(e,t)=>e.mcp_servers_and_groups!==t.mcp_servers_and_groups||e.mcp_tool_permissions!==t.mcp_tool_permissions,children:()=>(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(ee.default,{accessToken:n||"",selectedServers:x.getFieldValue("mcp_servers_and_groups")?.servers||[],toolPermissions:x.getFieldValue("mcp_tool_permissions")||{},onChange:e=>x.setFieldsValue({mcp_tool_permissions:e})})})}),(0,t.jsx)(f.Form.Item,{label:"Agents / Access Groups",name:"agents_and_groups",children:(0,t.jsx)(G.default,{onChange:e=>x.setFieldValue("agents_and_groups",e),value:x.getFieldValue("agents_and_groups"),accessToken:n||"",placeholder:"Select agents or access groups (optional)"})}),(0,t.jsx)(f.Form.Item,{label:(0,t.jsxs)("span",{children:["Organization"," ",(0,t.jsx)(z.Tooltip,{title:"The organization this key belongs to. Selecting an organization filters the available teams.",children:(0,t.jsx)(U.Info,{style:{marginLeft:"4px"}})})]}),name:"organization_id",children:(0,t.jsx)(Q.default,{organizations:ec,loading:em,disabled:"Admin"!==o,onChange:e=>{C(e||null),x.setFieldValue("team_id",void 0)}})}),(0,t.jsx)(f.Form.Item,{label:"Team ID",name:"team_id",help:ep&&eg?"Team is locked because this key belongs to a project":void 0,children:(0,t.jsx)(V.Select,{placeholder:"Select team",showSearch:!0,disabled:ep&&eg,style:{width:"100%"},onChange:e=>{let t=i?.find(t=>t.team_id===e)||null;t?.organization_id?(C(t.organization_id),x.setFieldValue("organization_id",t.organization_id)):e||(C(null),x.setFieldValue("organization_id",void 0))},filterOption:(e,t)=>{let a=S?i?.filter(e=>e.organization_id===S):i,s=a?.find(e=>e.team_id===t?.value);return!!s&&(s.team_alias?.toLowerCase().includes(e.toLowerCase())??!1)},children:(S?i?.filter(e=>e.organization_id===S):i)?.map(e=>(0,t.jsx)(V.Select.Option,{value:e.team_id,children:`${e.team_alias} (${e.team_id})`},e.team_id))})}),ep&&eg&&(0,t.jsx)(f.Form.Item,{label:"Project",children:(0,t.jsx)(O.Input,{value:eh??"",disabled:!0})}),(0,t.jsx)(f.Form.Item,{label:"Logging Settings",name:"logging_settings",children:(0,t.jsx)(es.default,{value:x.getFieldValue("logging_settings"),onChange:e=>x.setFieldValue("logging_settings",e),disabledCallbacks:v,onDisabledCallbacksChange:e=>{N((0,T.mapInternalToDisplayNames)(e)),x.setFieldValue("disabled_callbacks",e)}})}),(0,t.jsx)(f.Form.Item,{label:"Metadata",name:"metadata",children:(0,t.jsx)(O.Input.TextArea,{rows:10})}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)(J.default,{form:x,autoRotationEnabled:A,onAutoRotationChange:L,rotationInterval:M,onRotationIntervalChange:P,neverExpire:R,onNeverExpireChange:er}),(0,t.jsx)(f.Form.Item,{name:"duration",hidden:!0,initialValue:"",children:(0,t.jsx)(O.Input,{})})]}),(0,t.jsx)(f.Form.Item,{name:"token",hidden:!0,children:(0,t.jsx)(O.Input,{})}),(0,t.jsx)(f.Form.Item,{name:"disabled_callbacks",hidden:!0,children:(0,t.jsx)(O.Input,{})}),(0,t.jsx)(f.Form.Item,{name:"auto_rotate",hidden:!0,children:(0,t.jsx)(O.Input,{})}),(0,t.jsx)(f.Form.Item,{name:"rotation_interval",hidden:!0,children:(0,t.jsx)(O.Input,{})}),(0,t.jsx)("div",{className:"sticky z-10 bg-white p-4 border-t border-gray-200 bottom-[-1.5rem] inset-x-[-1.5rem]",children:(0,t.jsxs)("div",{className:"flex justify-end items-center gap-2",children:[(0,t.jsx)(c.Button,{variant:"secondary",onClick:a,disabled:ei,children:"Cancel"}),(0,t.jsx)(c.Button,{type:"submit",loading:ei,children:"Save Changes"})]})})]})}let ei=["policies","guardrails","prompts","tags","allowed_passthrough_routes"],en=e=>null==e||Array.isArray(e)&&0===e.length||"string"==typeof e&&""===e.trim();function ed({onClose:e,keyData:B,teams:E,onKeyDataUpdate:K,onDelete:U,backButtonText:$="Back to Keys"}){let O,{accessToken:V,userId:W,userRole:z,premiumUser:G}=(0,a.default)(),q=G||null!=z&&w.rolesWithWriteAccess.includes(z),{teams:J}=(0,r.default)(),{data:H}=(0,s.useProjects)(),{data:Y}=(0,l.useUISettings)(),Q=!!Y?.values?.enable_projects_ui,[Z,X]=(0,k.useState)(!1),[ee]=f.Form.useForm(),[et,ea]=(0,k.useState)(!1),[es,el]=(0,k.useState)(!1),[ed,eo]=(0,k.useState)(""),[ec,em]=(0,k.useState)(!1),[eu,ex]=(0,k.useState)(!1),{mutate:ep,isPending:eg}=(0,L.useResetKeySpend)(),[eh,ej]=(0,k.useState)(B),[e_,eb]=(0,k.useState)(null),[ef,ey]=(0,k.useState)(!1),[ev,eN]=(0,k.useState)({}),[ek,ew]=(0,k.useState)(!1);if((0,k.useEffect)(()=>{B&&ej(B)},[B]),(0,k.useEffect)(()=>{(async()=>{let e=eh?.metadata?.policies;if(!V||!e||!Array.isArray(e)||0===e.length)return;ew(!0);let t={};try{await Promise.all(e.map(async e=>{try{let a=await (0,D.getPolicyInfoWithGuardrails)(V,e);t[e]=a.resolved_guardrails||[]}catch(a){console.error(`Failed to fetch guardrails for policy ${e}:`,a),t[e]=[]}})),eN(t)}catch(e){console.error("Failed to fetch policy guardrails:",e)}finally{ew(!1)}})()},[V,eh?.metadata?.policies]),(0,k.useEffect)(()=>{if(ef){let e=setTimeout(()=>{ey(!1)},5e3);return()=>clearTimeout(e)}},[ef]),!eh)return(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)(c.Button,{icon:d.ArrowLeft,variant:"light",onClick:e,className:"mb-4",children:$}),(0,t.jsx)(_.Text,{children:"Key not found"})]});let eT=async e=>{try{if(!V)return;let t=e.token;for(let a of(e.key=t,q||(delete e.guardrails,delete e.prompts),ei)){let t=eh.metadata?.[a]??eh[a];en(e[a])&&en(t)&&delete e[a]}if(e.max_budget=(0,n.mapEmptyStringToNull)(e.max_budget),void 0!==e.vector_stores&&(e.object_permission={...eh.object_permission,vector_stores:e.vector_stores||[]},delete e.vector_stores),void 0!==e.mcp_servers_and_groups){let{servers:t,accessGroups:a,toolsets:s}=e.mcp_servers_and_groups||{servers:[],accessGroups:[],toolsets:[]};e.object_permission={...eh.object_permission,mcp_servers:t||[],mcp_access_groups:a||[],mcp_toolsets:s||[]},delete e.mcp_servers_and_groups}if(void 0!==e.mcp_tool_permissions){let t=e.mcp_tool_permissions||{};Object.keys(t).length>0&&(e.object_permission={...e.object_permission,mcp_tool_permissions:t}),delete e.mcp_tool_permissions}if(void 0!==e.agents_and_groups){let{agents:t,accessGroups:a}=e.agents_and_groups||{agents:[],accessGroups:[]};e.object_permission={...e.object_permission,agents:t||[],agent_access_groups:a||[]},delete e.agents_and_groups}if(e.max_budget=(0,n.mapEmptyStringToNull)(e.max_budget),e.tpm_limit=(0,n.mapEmptyStringToNull)(e.tpm_limit),e.rpm_limit=(0,n.mapEmptyStringToNull)(e.rpm_limit),e.max_parallel_requests=(0,n.mapEmptyStringToNull)(e.max_parallel_requests),e.metadata&&"string"==typeof e.metadata)try{let t=JSON.parse(e.metadata);"tags"in t&&delete t.tags,e.metadata={...t,...Array.isArray(e.tags)&&e.tags.length>0?{tags:e.tags}:{},...e.guardrails?.length>0?{guardrails:e.guardrails}:{},...Array.isArray(e.logging_settings)&&e.logging_settings.length>0?{logging:e.logging_settings}:{},...e.disabled_callbacks?.length>0?{litellm_disabled_callbacks:(0,T.mapDisplayToInternalNames)(e.disabled_callbacks)}:{}}}catch(e){console.error("Error parsing metadata JSON:",e),F.default.error("Invalid metadata JSON");return}else{let{tags:t,...a}=e.metadata||{};e.metadata={...a,...Array.isArray(e.tags)&&e.tags.length>0?{tags:e.tags}:{},...e.guardrails?.length>0?{guardrails:e.guardrails}:{},...Array.isArray(e.logging_settings)&&e.logging_settings.length>0?{logging:e.logging_settings}:{},...e.disabled_callbacks?.length>0?{litellm_disabled_callbacks:(0,T.mapDisplayToInternalNames)(e.disabled_callbacks)}:{}}}"tags"in e&&delete e.tags,delete e.logging_settings,e.budget_duration&&(e.budget_duration=({daily:"24h",weekly:"7d",monthly:"30d"})[e.budget_duration]);let a=await (0,D.keyUpdateCall)(V,e);ej(e=>e?{...e,...a}:void 0),K&&K(a),F.default.success("Key updated successfully"),X(!1)}catch(e){F.default.fromBackend((0,R.parseErrorMessage)(e)),console.error("Error updating key:",e)}},eS=async()=>{try{if(el(!0),!V)return;await (0,D.keyDeleteCall)(V,eh.token||eh.token_id),F.default.success("Key deleted successfully"),U&&U(),e()}catch(e){console.error("Error deleting the key:",e),F.default.fromBackend(e)}finally{el(!1),ea(!1),eo("")}},eC=e=>{let t=new Date(e),a=t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),s=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${a} at ${s}`},eI=(0,w.isProxyAdminRole)(z||"")||J&&(0,w.isUserTeamAdminForSingleTeam)(J?.filter(e=>e.team_id===eh.team_id)[0]?.members_with_roles,W||"")||W===eh.user_id&&"Internal Viewer"!==z,eA=(0,w.isProxyAdminRole)(z||"")||J&&(0,w.isUserTeamAdminForSingleTeam)(J?.filter(e=>e.team_id===eh.team_id)[0]?.members_with_roles,W||"");return(0,t.jsxs)("div",{className:"w-full h-screen p-4",children:[(0,t.jsx)(N.KeyInfoHeader,{data:{keyName:eh.key_alias||"Virtual Key",keyId:eh.token_id||eh.token,userId:eh.user_id||"",userEmail:eh.user_email||"",createdBy:eh.user_email||eh.user_id||"",createdAt:eh.created_at?eC(eh.created_at):"",lastUpdated:eh.updated_at?eC(eh.updated_at):"",lastActive:eh.last_active?eC(eh.last_active):"Never"},onBack:e,onRegenerate:()=>em(!0),onDelete:()=>ea(!0),onResetSpend:eA?()=>ex(!0):void 0,canModifyKey:eI,backButtonText:$,regenerateDisabled:!G,regenerateTooltip:G?void 0:"This is a LiteLLM Enterprise feature, and requires a valid key to use."}),(0,t.jsx)(P.RegenerateKeyModal,{selectedToken:eh,visible:ec,onClose:()=>em(!1),onKeyUpdate:e=>{ej(t=>{if(t)return{...t,...e,created_at:new Date().toLocaleString()}}),eb(new Date),ey(!0),K&&K({...e,created_at:new Date().toLocaleString()})}}),(0,t.jsx)(C.default,{isOpen:et,title:"Delete Key",alertMessage:"This action is irreversible and will immediately revoke access for any applications using this key.",message:"Are you sure you want to delete this Virtual Key?",resourceInformationTitle:"Key Information",resourceInformation:[{label:"Key Alias",value:eh?.key_alias||"-"},{label:"Key ID",value:eh?.token_id||eh?.token||"-",code:!0},{label:"Team ID",value:eh?.team_id||"-",code:!0},{label:"Spend",value:eh?.spend?`$${(0,i.formatNumberWithCommas)(eh.spend,4)}`:"$0.0000"}],onCancel:()=>{ea(!1),eo("")},onOk:eS,confirmLoading:es,requiredConfirmation:eh?.key_alias}),(0,t.jsxs)(y.Modal,{title:"Reset Key Spend",open:eu,onOk:()=>{ep(eh.token||eh.token_id,{onSuccess:()=>{ej(e=>e?{...e,spend:0}:void 0),K&&K({spend:0}),F.default.success("Key spend reset to $0"),ex(!1)},onError:e=>{F.default.fromBackend((0,R.parseErrorMessage)(e)),console.error("Error resetting key spend:",e)}})},onCancel:()=>ex(!1),okText:"Reset",okButtonProps:{danger:!0},confirmLoading:eg,children:[(0,t.jsxs)("p",{children:["Reset spend for ",(0,t.jsx)("strong",{children:eh?.key_alias||eh?.token_id||"this key"})," to"," ",(0,t.jsx)("strong",{children:"$0"}),"?"]}),(0,t.jsxs)("p",{style:{color:"#666",fontSize:"0.875rem",marginTop:8},children:["Current spend: ",(0,t.jsxs)("strong",{children:["$",(0,i.formatNumberWithCommas)(eh.spend,4)]}),". Spend history is preserved in logs. This resets the current period spend counter, the same as an automatic budget reset."]})]}),(0,t.jsxs)(p.TabGroup,{children:[(0,t.jsxs)(g.TabList,{className:"mb-4",children:[(0,t.jsx)(x.Tab,{children:"Overview"}),(0,t.jsx)(x.Tab,{children:"Settings"})]}),(0,t.jsxs)(j.TabPanels,{children:[(0,t.jsx)(h.TabPanel,{children:(0,t.jsxs)(u.Grid,{numItems:1,numItemsSm:2,numItemsLg:3,className:"gap-6",children:[(0,t.jsxs)(m.Card,{children:[(0,t.jsx)(_.Text,{children:"Spend"}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsxs)(b.Title,{children:["$",(0,i.formatNumberWithCommas)(eh.spend,4)]}),(0,t.jsxs)(_.Text,{children:["of"," ",null!==eh.max_budget?`$${(0,i.formatNumberWithCommas)(eh.max_budget)}`:"Unlimited"]})]})]}),(0,t.jsxs)(m.Card,{children:[(0,t.jsx)(_.Text,{children:"Rate Limits"}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsxs)(_.Text,{children:["TPM: ",null!==eh.tpm_limit?eh.tpm_limit:"Unlimited"]}),(0,t.jsxs)(_.Text,{children:["RPM: ",null!==eh.rpm_limit?eh.rpm_limit:"Unlimited"]})]})]}),(0,t.jsxs)(m.Card,{children:[(0,t.jsx)(_.Text,{children:"Models"}),(0,t.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:eh.models&&eh.models.length>0?eh.models.map((e,a)=>(0,t.jsx)(o.Badge,{color:"red",children:e},a)):(0,t.jsx)(_.Text,{children:"No models specified"})})]}),(0,t.jsx)(m.Card,{children:(0,t.jsx)(M.default,{objectPermission:eh.object_permission,variant:"inline",accessToken:V})}),(0,t.jsxs)(m.Card,{children:[(0,t.jsx)(_.Text,{className:"font-medium mb-3",children:"Guardrails"}),Array.isArray(eh.metadata?.guardrails)&&eh.metadata.guardrails.length>0?(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:eh.metadata.guardrails.map((e,a)=>(0,t.jsx)(o.Badge,{color:"blue",children:e},a))}):(0,t.jsx)(_.Text,{className:"text-gray-500",children:"No guardrails configured"}),"boolean"==typeof eh.metadata?.disable_global_guardrails&&!0===eh.metadata.disable_global_guardrails&&(0,t.jsx)("div",{className:"mt-3 pt-3 border-t border-gray-200",children:(0,t.jsx)(o.Badge,{color:"yellow",children:"Global Guardrails Disabled"})})]}),(0,t.jsxs)(m.Card,{children:[(0,t.jsx)(_.Text,{className:"font-medium mb-3",children:"Policies"}),Array.isArray(eh.metadata?.policies)&&eh.metadata.policies.length>0?(0,t.jsx)("div",{className:"space-y-4",children:eh.metadata.policies.map((e,a)=>(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(o.Badge,{color:"purple",children:e}),ek&&(0,t.jsx)(_.Text,{className:"text-xs text-gray-400",children:"Loading guardrails..."})]}),!ek&&ev[e]&&ev[e].length>0&&(0,t.jsxs)("div",{className:"ml-4 pl-3 border-l-2 border-gray-200",children:[(0,t.jsx)(_.Text,{className:"text-xs text-gray-500 mb-1",children:"Resolved Guardrails:"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:ev[e].map((e,a)=>(0,t.jsx)(o.Badge,{color:"blue",size:"xs",children:e},a))})]})]},a))}):(0,t.jsx)(_.Text,{className:"text-gray-500",children:"No policies configured"})]}),(0,t.jsx)(A.default,{loggingConfigs:(0,I.extractLoggingSettings)(eh.metadata),disabledCallbacks:Array.isArray(eh.metadata?.litellm_disabled_callbacks)?(0,T.mapInternalToDisplayNames)(eh.metadata.litellm_disabled_callbacks):[],variant:"card"}),(0,t.jsx)(S.default,{autoRotate:eh.auto_rotate,rotationInterval:eh.rotation_interval,lastRotationAt:eh.last_rotation_at,keyRotationAt:eh.key_rotation_at,nextRotationAt:eh.next_rotation_at,variant:"card"})]})}),(0,t.jsx)(h.TabPanel,{children:(0,t.jsxs)(m.Card,{className:"overflow-y-auto max-h-[65vh]",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,t.jsx)(b.Title,{children:"Key Settings"}),!Z&&eI&&(0,t.jsx)(c.Button,{onClick:()=>X(!0),children:"Edit Settings"})]}),Z?(0,t.jsx)(er,{keyData:eh,onCancel:()=>X(!1),onSubmit:eT,teams:E,accessToken:V,userID:W,userRole:z,premiumUser:G}):(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Key ID"}),(0,t.jsx)(_.Text,{className:"font-mono",children:eh.token_id||eh.token})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Key Alias"}),(0,t.jsx)(_.Text,{children:eh.key_alias||"Not Set"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Secret Key"}),(0,t.jsx)(_.Text,{className:"font-mono",children:eh.key_name})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Team ID"}),(0,t.jsx)(_.Text,{children:eh.team_id||"Not Set"})]}),Q&&(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Project"}),(0,t.jsx)(_.Text,{children:eh.project_id?(O=H?.find(e=>e.project_id===eh.project_id),O?.project_alias?`${O.project_alias} (${eh.project_id})`:eh.project_id):"Not Set"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Organization"}),(0,t.jsx)(_.Text,{children:(eh.organization_id??eh.org_id)||"Not Set"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Created"}),(0,t.jsx)(_.Text,{children:eC(eh.created_at)})]}),e_&&(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Last Regenerated"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(_.Text,{children:eC(e_)}),(0,t.jsx)(o.Badge,{color:"green",size:"xs",children:"Recent"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Expires"}),(0,t.jsx)(_.Text,{children:eh.expires?eC(eh.expires):"Never"})]}),(0,t.jsx)(S.default,{autoRotate:eh.auto_rotate,rotationInterval:eh.rotation_interval,lastRotationAt:eh.last_rotation_at,keyRotationAt:eh.key_rotation_at,nextRotationAt:eh.next_rotation_at,variant:"inline",className:"pt-4 border-t border-gray-200"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Spend"}),(0,t.jsxs)(_.Text,{children:["$",(0,i.formatNumberWithCommas)(eh.spend,4)," USD"]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Budget"}),(0,t.jsx)(_.Text,{children:null!==eh.max_budget?`$${(0,i.formatNumberWithCommas)(eh.max_budget,2)}`:"Unlimited"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Tags"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 mt-1",children:Array.isArray(eh.metadata?.tags)&&eh.metadata.tags.length>0?eh.metadata.tags.map((e,a)=>(0,t.jsx)("span",{className:"px-2 mr-2 py-1 bg-blue-100 rounded text-xs",children:e},a)):"No tags specified"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Prompts"}),(0,t.jsx)(_.Text,{children:Array.isArray(eh.metadata?.prompts)&&eh.metadata.prompts.length>0?eh.metadata.prompts.map((e,a)=>(0,t.jsx)("span",{className:"px-2 mr-2 py-1 bg-blue-100 rounded text-xs",children:e},a)):"No prompts specified"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Allowed Routes"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 mt-1",children:Array.isArray(eh.allowed_routes)&&eh.allowed_routes.length>0?eh.allowed_routes.map((e,a)=>(0,t.jsx)("span",{className:"px-2 py-1 bg-blue-100 rounded text-xs",children:e},a)):(0,t.jsx)(v.Tag,{color:"green",children:"All routes allowed"})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Allowed Pass Through Routes"}),(0,t.jsx)(_.Text,{children:Array.isArray(eh.metadata?.allowed_passthrough_routes)&&eh.metadata.allowed_passthrough_routes.length>0?eh.metadata.allowed_passthrough_routes.map((e,a)=>(0,t.jsx)("span",{className:"px-2 mr-2 py-1 bg-blue-100 rounded text-xs",children:e},a)):"No pass through routes specified"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Disable Global Guardrails"}),(0,t.jsx)(_.Text,{children:eh.metadata?.disable_global_guardrails===!0?(0,t.jsx)(o.Badge,{color:"yellow",children:"Enabled - Global guardrails bypassed"}):(0,t.jsx)(o.Badge,{color:"green",children:"Disabled - Global guardrails active"})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Models"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 mt-1",children:eh.models&&eh.models.length>0?eh.models.map((e,a)=>(0,t.jsx)("span",{className:"px-2 py-1 bg-blue-100 rounded text-xs",children:e},a)):(0,t.jsx)(_.Text,{children:"No models specified"})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Rate Limits"}),(0,t.jsxs)(_.Text,{children:["TPM: ",null!==eh.tpm_limit?eh.tpm_limit:"Unlimited"]}),(0,t.jsxs)(_.Text,{children:["RPM: ",null!==eh.rpm_limit?eh.rpm_limit:"Unlimited"]}),(0,t.jsxs)(_.Text,{children:["Max Parallel Requests:"," ",null!==eh.max_parallel_requests?eh.max_parallel_requests:"Unlimited"]}),(0,t.jsxs)(_.Text,{children:["Model TPM Limits:"," ",eh.metadata?.model_tpm_limit?JSON.stringify(eh.metadata.model_tpm_limit):"Unlimited"]}),(0,t.jsxs)(_.Text,{children:["Model RPM Limits:"," ",eh.metadata?.model_rpm_limit?JSON.stringify(eh.metadata.model_rpm_limit):"Unlimited"]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(_.Text,{className:"font-medium",children:"Metadata"}),(0,t.jsx)("pre",{className:"bg-gray-100 p-2 rounded text-xs overflow-auto mt-1",children:(0,I.formatMetadataForDisplay)((0,I.stripTagsFromMetadata)(eh.metadata))})]}),(0,t.jsx)(M.default,{objectPermission:eh.object_permission,variant:"inline",className:"pt-4 border-t border-gray-200",accessToken:V}),(0,t.jsx)(A.default,{loggingConfigs:(0,I.extractLoggingSettings)(eh.metadata),disabledCallbacks:Array.isArray(eh.metadata?.litellm_disabled_callbacks)?(0,T.mapInternalToDisplayNames)(eh.metadata.litellm_disabled_callbacks):[],variant:"inline",className:"pt-4 border-t border-gray-200"})]})]})})]})]})]})}e.s(["default",()=>ed],20147)}]); \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/chunks/01af0514b9be44e8.js b/ui/litellm-dashboard/out/_next/static/chunks/01af0514b9be44e8.js new file mode 100644 index 00000000000..183ec493ca6 --- /dev/null +++ b/ui/litellm-dashboard/out/_next/static/chunks/01af0514b9be44e8.js @@ -0,0 +1,4 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,429427,371330,80758,402155,368578,544508,746725,835696,941444,914189,394487,e=>{"use strict";let t;e.i(247167);var n=e.i(271645);let r="u">typeof document?n.default.useLayoutEffect:()=>{},o=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},i=e=>e&&"window"in e&&e.window===e?e:o(e).defaultView||window;"u">typeof Element&&Element.prototype;let s=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"];s.join(":not([hidden]),"),s.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),s.join(':not([hidden]):not([tabindex="-1"]),');let u=null;function l(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function a(e){let t=(0,n.useRef)({isFocused:!1,observer:null});return r(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,n.useCallback)(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target;r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=l(n);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null==(e=t.current.observer)||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function c(e){var t;if("u"e.test(t.brand))||e.test(window.navigator.userAgent)}function d(e){var t;return"u">typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function f(e){let t=null;return()=>(null==t&&(t=e()),t)}let p=f(function(){return d(/^Mac/i)}),v=f(function(){return d(/^iPhone/i)}),m=f(function(){return d(/^iPad/i)||p()&&navigator.maxTouchPoints>1}),g=f(function(){return v()||m()});f(function(){return p()||g()});let y=f(function(){return c(/AppleWebKit/i)&&!b()}),b=f(function(){return c(/Chrome/i)}),h=f(function(){return c(/Android/i)}),E=f(function(){return c(/Firefox/i)});function w(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:l,shiftKey:a}=t;E()&&(null==(o=window.event)||null==(r=o.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(p()?i=!0:s=!0);let c=y()&&p()&&!m()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:l,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:l,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});if(w.isOpening=n,function(){if(null==u){u=!1;try{document.createElement("div").focus({get preventScroll(){return u=!0,!0}})}catch{}}return u}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeighttypeof window&&window.document&&window.document.createElement,new WeakMap;n.default.useId;let L=null,k=new Set,F=new Map,P=!1,A=!1,H={Tab:!0,Escape:!0};function O(e,t){for(let n of k)n(e,t)}function S(e){P=!0,w.isOpening||e.metaKey||!p()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(L="keyboard",O("keyboard",e))}function C(e){L="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(P=!0,O("pointer",e))}function M(e){w.isOpening||(""!==e.pointerType||!e.isTrusted)&&(h()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(P=!0,L="virtual")}function j(e){e.target!==window&&e.target!==document&&e.isTrusted&&(P||A||(L="virtual",O("virtual",e)),P=!1,A=!1)}function R(){P=!1,A=!0}function D(e){if("u"typeof PointerEvent&&(n.addEventListener("pointerdown",C,!0),n.addEventListener("pointermove",C,!0),n.addEventListener("pointerup",C,!0)),t.addEventListener("beforeunload",()=>{K(e)},{once:!0}),F.set(t,{focus:r})}let K=(e,t)=>{let n=i(e),r=o(e);t&&r.removeEventListener("DOMContentLoaded",t),F.has(n)&&(n.HTMLElement.prototype.focus=F.get(n).focus,r.removeEventListener("keydown",S,!0),r.removeEventListener("keyup",S,!0),r.removeEventListener("click",M,!0),n.removeEventListener("focus",j,!0),n.removeEventListener("blur",R,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",C,!0),r.removeEventListener("pointermove",C,!0),r.removeEventListener("pointerup",C,!0)),F.delete(n))};function N(){return"pointer"!==L}"u">typeof document&&("loading"!==(t=o(void 0)).readyState?D(void 0):t.addEventListener("DOMContentLoaded",()=>{D(void 0)}));let W=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function x(e,t){return!!t&&!!e&&e.contains(t)}function B(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),r=(0,n.useCallback)((t,n,r,o)=>{var i;let s=(null==(i=e.current.get(r))?void 0:i.fn)||r;t.removeEventListener(n,s,o),e.current.delete(r)},[]),o=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function I(e={}){var t;let{autoFocus:r=!1,isTextInput:s,within:u}=e,c=(0,n.useRef)({isFocused:!1,isFocusVisible:r||N()}),[d,f]=(0,n.useState)(!1),[p,v]=(0,n.useState)(()=>c.current.isFocused&&c.current.isFocusVisible),m=(0,n.useCallback)(()=>v(c.current.isFocused&&c.current.isFocusVisible),[]),g=(0,n.useCallback)(e=>{c.current.isFocused=e,f(e),m()},[m]);t={isTextInput:s},D(),(0,n.useEffect)(()=>{let e=(e,n)=>{var r;let s,u,l,a,d;r=!!(null==t?void 0:t.isTextInput),s=o(null==n?void 0:n.target),u="u">typeof window?i(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,l="u">typeof window?i(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="u">typeof window?i(null==n?void 0:n.target).HTMLElement:HTMLElement,d="u">typeof window?i(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent,(r=r||s.activeElement instanceof u&&!W.has(s.activeElement.type)||s.activeElement instanceof l||s.activeElement instanceof a&&s.activeElement.isContentEditable)&&"keyboard"===e&&n instanceof d&&!H[n.key]||(e=>{c.current.isFocusVisible=e,m()})(N())};return k.add(e),()=>{k.delete(e)}},[]);let{focusProps:y}=function(e){let{isDisabled:t,onFocus:r,onBlur:i,onFocusChange:s}=e,u=(0,n.useCallback)(e=>{if(e.target===e.currentTarget)return i&&i(e),s&&s(!1),!0},[i,s]),l=a(u),c=(0,n.useCallback)(e=>{var t;let n=o(e.target),i=n?((e=document)=>e.activeElement)(n):((e=document)=>e.activeElement)();e.target===e.currentTarget&&i===(t=e.nativeEvent,t.target)&&(r&&r(e),s&&s(!0),l(e))},[s,r,l]);return{focusProps:{onFocus:!t&&(r||s||i)?c:void 0,onBlur:!t&&(i||s)?u:void 0}}}({isDisabled:u,onFocusChange:g}),{focusWithinProps:b}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:i,onFocusWithinChange:s}=e,u=(0,n.useRef)({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:d}=B(),f=(0,n.useCallback)(e=>{e.currentTarget.contains(e.target)&&u.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(u.current.isFocusWithin=!1,d(),r&&r(e),s&&s(!1))},[r,s,u,d]),p=a(f),v=(0,n.useCallback)(e=>{var t;if(!e.currentTarget.contains(e.target))return;let n=o(e.target),r=((e=document)=>e.activeElement)(n);if(!u.current.isFocusWithin&&r===(t=e.nativeEvent,t.target)){i&&i(e),s&&s(!0),u.current.isFocusWithin=!0,p(e);let t=e.currentTarget;c(n,"focus",e=>{if(u.current.isFocusWithin&&!x(t,e.target)){let r=new n.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:t}),Object.defineProperty(r,"currentTarget",{value:t}),f(l(r))}},{capture:!0})}},[i,s,p,c,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:f}}}({isDisabled:!u,onFocusWithinChange:g});return{isFocused:d,isFocusVisible:p,focusProps:u?b:y}}e.s(["useFocusRing",()=>I],429427);let U=!1,V=0;function $(e){"touch"===e.pointerType&&(U=!0,setTimeout(()=>{U=!1},50))}function G(){if("u">typeof document)return 0===V&&"u">typeof PointerEvent&&document.addEventListener("pointerup",$),V++,()=>{!(--V>0)&&"u">typeof PointerEvent&&document.removeEventListener("pointerup",$)}}function q(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:i,isDisabled:s}=e,[u,l]=(0,n.useState)(!1),a=(0,n.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,n.useEffect)(G,[]);let{addGlobalListener:c,removeAllGlobalListeners:d}=B(),{hoverProps:f,triggerHoverEnd:p}=(0,n.useMemo)(()=>{let e=(e,t)=>{let n=a.target;a.pointerType="",a.target=null,"touch"!==t&&a.isHovered&&n&&(a.isHovered=!1,d(),i&&i({type:"hoverend",target:n,pointerType:t}),r&&r(!1),l(!1))},n={};return"u">typeof PointerEvent&&(n.onPointerEnter=n=>{U&&"mouse"===n.pointerType||((n,i)=>{if(a.pointerType=i,s||"touch"===i||a.isHovered||!n.currentTarget.contains(n.target))return;a.isHovered=!0;let u=n.currentTarget;a.target=u,c(o(n.target),"pointerover",t=>{a.isHovered&&a.target&&!x(a.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:i}),r&&r(!0),l(!0)})(n,n.pointerType)},n.onPointerLeave=t=>{!s&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:n,triggerHoverEnd:e}},[t,r,i,s,a,c,d]);return(0,n.useEffect)(()=>{s&&p({currentTarget:a.target},a.pointerType)},[s]),{hoverProps:f,isHovered:u}}e.s(["useHover",()=>q],371330);var Y=Object.defineProperty,X=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?Y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n};let Z=new class{constructor(){X(this,"current",this.detect()),X(this,"handoffState","pending"),X(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"setTimeout(()=>{throw e}))}function J(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return z(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=J();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Q(){let[e]=(0,n.useState)(J);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}e.s(["env",()=>Z],80758),e.s(["getOwnerDocument",()=>_],402155),e.s(["microTask",()=>z],368578),e.s(["disposables",()=>J],544508),e.s(["useDisposables",()=>Q],746725);let ee=(e,t)=>{Z.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)};function et(e){let t=(0,n.useRef)(e);return ee(()=>{t.current=e},[e]),t}e.s(["useIsoMorphicEffect",()=>ee],835696),e.s(["useLatestValue",()=>et],941444);let en=function(e){let t=et(e);return n.default.useCallback((...e)=>t.current(...e),[t])};function er({disabled:e=!1}={}){let t=(0,n.useRef)(null),[r,o]=(0,n.useState)(!1),i=Q(),s=en(()=>{t.current=null,o(!1),i.dispose()}),u=en(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,o(!0);{let n=_(e.currentTarget);i.addEventListener(n,"pointerup",s,!1),i.addEventListener(n,"pointermove",e=>{if(t.current){var n,r;let i,s;o((i=e.width/2,s=e.height/2,n={top:e.clientY-s,right:e.clientX+i,bottom:e.clientY+s,left:e.clientX-i},r=t.current.getBoundingClientRect(),!(!n||!r||n.rightr.right||n.bottomr.bottom)))}},!1),i.addEventListener(n,"pointercancel",s,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:u,onPointerUp:s,onClick:s}}}e.s(["useEvent",()=>en],914189),e.s(["useActivePress",()=>er],394487)},144279,294316,e=>{"use strict";var t=e.i(271645);function n(e,n){return(0,t.useMemo)(()=>{var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==n?void 0:n.tagName)==="BUTTON"&&!n.hasAttribute("type"))return"button"},[e.type,e.as,n])}e.s(["useResolveButtonType",()=>n],144279);var r=e.i(914189);let o=Symbol();function i(e,t=!0){return Object.assign(e,{[o]:t})}function s(...e){let n=(0,t.useRef)(e);(0,t.useEffect)(()=>{n.current=e},[e]);let i=(0,r.useEvent)(e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return e.every(e=>null==e||(null==e?void 0:e[o]))?void 0:i}e.s(["optionalRef",()=>i,"useSyncRefs",()=>s],294316)},397701,e=>{"use strict";function t(e,n,...r){if(e in n){let t=n[e];return"function"==typeof t?t(...r):t}let o=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,t),o}e.s(["match",()=>t])},732607,e=>{"use strict";function t(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}e.s(["classNames",()=>t])},700020,998348,e=>{"use strict";let t,n,r;var o=e.i(271645),i=e.i(732607),s=e.i(397701),u=((t=u||{})[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t),l=((n=l||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function a(){let e,t,n=(e=(0,o.useRef)([]),t=(0,o.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,o.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:u,mergeRefs:l}){l=null!=l?l:d;let a=f(t,e);if(i)return c(a,n,r,u,l);let p=null!=o?o:0;if(2&p){let{static:e=!1,...t}=a;if(e)return c(t,n,r,u,l)}if(1&p){let{unmount:e=!0,...t}=a;return(0,s.match)(+!e,{0:()=>null,1:()=>c({...t,hidden:!0,style:{display:"none"}},n,r,u,l)})}return c(a,n,r,u,l)})({mergeRefs:n,...e}),[n])}function c(e,t={},n,r,s){let{as:u=n,children:l,refName:a="ref",...d}=g(e,["unmount","static"]),p=void 0!==e.ref?{[a]:e.ref}:{},v="function"==typeof l?l(t):l;"className"in d&&d.className&&"function"==typeof d.className&&(d.className=d.className(t)),d["aria-labelledby"]&&d["aria-labelledby"]===d.id&&(d["aria-labelledby"]=void 0);let y={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(y["data-headlessui-state"]=n.join(" "),n))y[`data-${e}`]=""}if(u===o.Fragment&&(Object.keys(m(d)).length>0||Object.keys(m(y)).length>0))if(!(0,o.isValidElement)(v)||Array.isArray(v)&&v.length>1){if(Object.keys(m(d)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(m(d)).concat(Object.keys(m(y))).map(e=>` - ${e}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` +`)].join(` +`))}else{var b;let e=v.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>(0,i.classNames)(t(...e),d.className):(0,i.classNames)(t,d.className),r=f(v.props,m(g(d,["ref"])));for(let e in y)e in r&&delete y[e];return(0,o.cloneElement)(v,Object.assign({},r,y,p,{ref:s((b=v,o.default.version.split(".")[0]>="19"?b.props.ref:b.ref),p.ref)},n?{className:n}:{}))}return(0,o.createElement)(u,Object.assign({},g(d,["ref"]),u!==o.Fragment&&p,u!==o.Fragment&&y),v)}function d(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function f(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){for(let o of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;o(t,...r)}}});return t}function p(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){for(let r of n[e])null==r||r(...t)}});return t}function v(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function m(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}e.s(["RenderFeatures",()=>u,"RenderStrategy",()=>l,"compact",()=>m,"forwardRefWithAs",()=>v,"mergeProps",()=>p,"useRender",()=>a],700020);var y=((r=y||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r);e.s(["Keys",()=>y],998348)}]); \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/chunks/0268a0294da5ad65.js b/ui/litellm-dashboard/out/_next/static/chunks/0268a0294da5ad65.js new file mode 100644 index 00000000000..bd89fb36f72 --- /dev/null +++ b/ui/litellm-dashboard/out/_next/static/chunks/0268a0294da5ad65.js @@ -0,0 +1 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,678745,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t])},75830,586318,e=>{"use strict";var t=e.i(271645),n=e.i(30030),r=e.i(820783),o=e.i(843476);function i(e){var n;let i,a=(n=e,(i=t.forwardRef((e,n)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var a;let e,u,s=(a=o,(u=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(u=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,o.props);return o.type!==t.Fragment&&(c.ref=n?(0,r.composeRefs)(n,s):s),t.cloneElement(o,c)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,i),s=t.forwardRef((e,n)=>{let{children:r,...i}=e,s=t.Children.toArray(r),c=s.find(u);if(c){let e=c.props.children,r=s.map(n=>n!==c?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,o.jsx)(a,{...i,ref:n,children:r})});return s.displayName=`${e}.Slot`,s}var a=Symbol("radix.slottable");function u(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}function s(e){let a=e+"CollectionProvider",[u,s]=(0,n.createContextScope)(a),[c,l]=u(a,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:n,children:r}=e,i=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,o.jsx)(c,{scope:n,itemMap:a,collectionRef:i,children:r})};f.displayName=a;let d=e+"CollectionSlot",h=i(d),p=t.default.forwardRef((e,t)=>{let{scope:n,children:i}=e,a=l(d,n),u=(0,r.useComposedRefs)(t,a.collectionRef);return(0,o.jsx)(h,{ref:u,children:i})});p.displayName=d;let v=e+"CollectionItemSlot",m="data-radix-collection-item",y=i(v),g=t.default.forwardRef((e,n)=>{let{scope:i,children:a,...u}=e,s=t.default.useRef(null),c=(0,r.useComposedRefs)(n,s),f=l(v,i);return t.default.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,o.jsx)(y,{...{[m]:""},ref:c,children:a})});return g.displayName=v,[{Provider:f,Slot:p,ItemSlot:g},function(n){let r=l(e+"CollectionConsumer",n);return t.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},s]}var c=new WeakMap;function l(e,t){var n,r;let o,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let u=(n=e,r=t,o=n.length,(a=(i=f(r))>=0?i:o+i)<0||a>=o?-1:a);return -1===u?void 0:e[u]}function f(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],c.set(this,!0)}set(e,t){return c.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),i=this.#e.length,a=f(e),u=a>=0?a:i+a,s=u<0||u>=i?-1:u;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,n),this;let c=this.size+ +!o;a<0&&u++;let l=[...this.#e],d=!1;for(let e=u;e=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}}),e.s(["createCollection",()=>s],75830);var d=t.createContext(void 0);function h(e){let n=t.useContext(d);return e||n||"ltr"}e.s(["useDirection",()=>h],586318)},303536,e=>{"use strict";var t=e.i(271645),n=0;function r(){t.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??o()),document.body.insertAdjacentElement("beforeend",e[1]??o()),n++,()=>{1===n&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),n--}},[])}function o(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}e.s(["useFocusGuards",()=>r])},765491,e=>{"use strict";let t;var n=e.i(271645),r=e.i(820783),o=e.i(248425),i=e.i(30207),a=e.i(843476),u="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},l=n.forwardRef((e,t)=>{let{loop:l=!1,trapped:v=!1,onMountAutoFocus:m,onUnmountAutoFocus:y,...g}=e,[b,w]=n.useState(null),E=(0,i.useCallbackRef)(m),R=(0,i.useCallbackRef)(y),k=n.useRef(null),C=(0,r.useComposedRefs)(t,e=>w(e)),S=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(v){let e=function(e){if(S.paused||!b)return;let t=e.target;b.contains(t)?k.current=t:h(k.current,{select:!0})},t=function(e){if(S.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||h(k.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[v,b,S.paused]),n.useEffect(()=>{if(b){p.add(S);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,c);b.addEventListener(u,E),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(b))}return()=>{b.removeEventListener(u,E),setTimeout(()=>{let t=new CustomEvent(s,c);b.addEventListener(s,R),b.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),b.removeEventListener(s,R),p.remove(S)},0)}}},[b,E,R,S]);let A=n.useCallback(e=>{if(!l&&!v||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var r;let t,o=e.currentTarget,[i,a]=[d(t=f(r=o),r),d(t.reverse(),r)];i&&a?e.shiftKey||n!==a?e.shiftKey&&n===i&&(e.preventDefault(),l&&h(a,{select:!0})):(e.preventDefault(),l&&h(i,{select:!0})):n===o&&e.preventDefault()}},[l,v,S.paused]);return(0,a.jsx)(o.Primitive.div,{tabIndex:-1,...g,ref:C,onKeyDown:A})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function d(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}l.displayName="FocusScope";var p=(t=[],{add(e){let n=t[0];e!==n&&n?.pause(),(t=v(t,e)).unshift(e)},remove(e){t=v(t,e),t[0]?.resume()}});function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}e.s(["FocusScope",()=>l])},186312,e=>{"use strict";var t=new WeakMap,n=new WeakMap,r={},o=0,i=function(e){return e&&(e.host||i(e.parentNode))},a=function(e,a,u,s){var c=(Array.isArray(e)?e:[e]).map(function(e){if(a.contains(e))return e;var t=i(e);return t&&a.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",a,". Doing nothing"),null)}).filter(function(e){return!!e});r[u]||(r[u]=new WeakMap);var l=r[u],f=[],d=new Set,h=new Set(c),p=function(e){!e||d.has(e)||(d.add(e),p(e.parentNode))};c.forEach(p);var v=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))v(e);else try{var r=e.getAttribute(s),o=null!==r&&"false"!==r,i=(t.get(e)||0)+1,a=(l.get(e)||0)+1;t.set(e,i),l.set(e,a),f.push(e),1===i&&o&&n.set(e,!0),1===a&&e.setAttribute(u,"true"),o||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(a),d.clear(),o++,function(){f.forEach(function(e){var r=t.get(e)-1,o=l.get(e)-1;t.set(e,r),l.set(e,o),r||(n.has(e)||e.removeAttribute(s),n.delete(e)),o||e.removeAttribute(u)}),--o||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"u])},290571,e=>{"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function r(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;ot,"__rest",()=>n,"__spreadArray",()=>r])},985369,e=>{"use strict";var t,n,r,o,i,a,u,s=e.i(290571),c=e.i(271645),l="right-scroll-bar-position",f="width-before-scroll-bar";function d(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var h="u">typeof window?c.useLayoutEffect:c.useEffect,p=new WeakMap,v=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}).options=(0,s.__assign)({async:!0,ssr:!1},t),i),m=function(){},y=c.forwardRef(function(e,t){var n,r,o,i,a=c.useRef(null),u=c.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),l=u[0],f=u[1],y=e.forwardProps,g=e.children,b=e.className,w=e.removeScrollBar,E=e.enabled,R=e.shards,k=e.sideCar,C=e.noRelative,S=e.noIsolation,A=e.inert,x=e.allowPinchZoom,_=e.as,M=e.gapMode,N=(0,s.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=(n=[a,t],r=function(e){return n.forEach(function(t){return d(t,e)})},(o=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,h(function(){var e=p.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||d(e,null)}),r.forEach(function(e){t.has(e)||d(e,o)})}p.set(i,n)},[n]),i),T=(0,s.__assign)((0,s.__assign)({},N),l);return c.createElement(c.Fragment,null,E&&c.createElement(k,{sideCar:v,removeScrollBar:w,shards:R,noRelative:C,noIsolation:S,inert:A,setCallbacks:f,allowPinchZoom:!!x,lockRef:a,gapMode:M}),y?c.cloneElement(c.Children.only(g),(0,s.__assign)((0,s.__assign)({},T),{ref:O})):c.createElement(void 0===_?"div":_,(0,s.__assign)({},T,{className:b,ref:O}),g))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:f,zeroRight:l};var g=function(e){var t=e.sideCar,n=(0,s.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,s.__assign)({},n))};g.isSideCarExport=!0;var b=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=b();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},k=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[k(n),k(r),k(o)]},S=function(e){if(void 0===e&&(e="margin"),"u"